Skip to content

Commit d475e72

Browse files
Update openapi spec and regenerate libs for 'tags'
1 parent dc4e196 commit d475e72

File tree

17 files changed

+284
-54
lines changed

17 files changed

+284
-54
lines changed

csharp/Svix/Message.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ public List<MessageOut> List(string appId, MessageListOptions options = null, st
128128
options?.Before,
129129
options?.After,
130130
options?.WithContent,
131+
options?.Tag,
131132
options?.EventTypes
132133
);
133134

@@ -156,6 +157,7 @@ public async Task<List<MessageOut>> ListAsync(string appId, MessageListOptions o
156157
options?.Before,
157158
options?.After,
158159
options?.WithContent,
160+
options?.Tag,
159161
options?.EventTypes,
160162
cancellationToken);
161163

csharp/Svix/Models/MessageListOptions.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,7 @@ public sealed class MessageListOptions : ListOptions
1414
public DateTime? After { get; set; }
1515

1616
public bool? WithContent { get; set; }
17+
18+
public string? Tag { get; set; }
1719
}
1820
}

csharp/Svix/Statistics.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public AppUsageStatsOut AggregateAppStats(AppUsageStatsIn appUsageStatsIn, strin
2222
{
2323
try
2424
{
25-
var res = _statisticsApi.AggregateAppStats(
25+
var res = _statisticsApi.V1StatisticsAggregateAppStats(
2626
appUsageStatsIn,
2727
idempotencyKey);
2828

@@ -43,7 +43,7 @@ public async Task<AppUsageStatsOut> AggregateAppStatsAsync(AppUsageStatsIn appUs
4343
{
4444
try
4545
{
46-
var res = await _statisticsApi.AggregateAppStatsAsync(
46+
var res = await _statisticsApi.V1StatisticsAggregateAppStatsAsync(
4747
appUsageStatsIn,
4848
idempotencyKey);
4949

@@ -64,7 +64,7 @@ public AggregateEventTypesOut AggregateEventTypes()
6464
{
6565
try
6666
{
67-
var res = _statisticsApi.AggregateEventTypes();
67+
var res = _statisticsApi.V1StatisticsAggregateEventTypes();
6868

6969
return res;
7070
}
@@ -83,7 +83,7 @@ public async Task<AggregateEventTypesOut> AggregateEventTypesAsync()
8383
{
8484
try
8585
{
86-
var res = await _statisticsApi.AggregateEventTypesAsync();
86+
var res = await _statisticsApi.V1StatisticsAggregateEventTypesAsync();
8787

8888
return res;
8989
}

go/internal/openapi/api_message.go

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/internal/openapi/api_statistics.go

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/internal/openapi/model_message_in.go

Lines changed: 38 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/statistics.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type (
1717
)
1818

1919
func (s *Statistics) AggregateAppStats(ctx context.Context, appUsageStatsIn *AppUsageStatsIn, options *PostOptions) (*AppUsageStatsOut, error) {
20-
req := s.api.StatisticsApi.AggregateAppStats(ctx)
20+
req := s.api.StatisticsApi.V1StatisticsAggregateAppStats(ctx)
2121
if appUsageStatsIn != nil {
2222
req = req.AppUsageStatsIn(*appUsageStatsIn)
2323
}
@@ -35,7 +35,7 @@ func (s *Statistics) AggregateAppStats(ctx context.Context, appUsageStatsIn *App
3535
}
3636

3737
func (s *Statistics) AggregateEventTypes(ctx context.Context) (*AggregateEventTypesOut, error) {
38-
req := s.api.StatisticsApi.AggregateEventTypes(ctx)
38+
req := s.api.StatisticsApi.V1StatisticsAggregateEventTypes(ctx)
3939

4040
out, res, err := req.Execute()
4141
if err != nil {

java/lib/src/main/java/com/svix/Message.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public ListResponseMessageOut list(final String appId, final MessageListOptions
2626
options.getBefore(),
2727
options.getAfter(),
2828
options.getWithContent(),
29+
options.getTag(),
2930
new HashSet<>(options.getEventTypes())
3031
);
3132
} catch (com.svix.internal.ApiException e) {

java/lib/src/main/java/com/svix/MessageListOptions.java

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ public class MessageListOptions extends ListOptions {
99
private OffsetDateTime after;
1010
private String channel;
1111
private Boolean withContent;
12+
private String tag;
1213

1314
public MessageListOptions eventTypes(final List<String> eventTypes) {
1415
this.eventTypes = eventTypes;
@@ -74,4 +75,17 @@ public MessageListOptions withContent(final Boolean withContent) {
7475
this.withContent = withContent;
7576
return this;
7677
}
78+
79+
public String getTag() {
80+
return tag;
81+
}
82+
83+
public MessageListOptions tag(final String tag) {
84+
this.tag = tag;
85+
return this;
86+
}
87+
88+
public void setTag(final String tag) {
89+
this.tag = tag;
90+
}
7791
}

java/lib/src/main/java/com/svix/Statistics.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ public class Statistics {
1515

1616
public AppUsageStatsOut aggregateAppStats(final AppUsageStatsIn appUsageStatsIn, final PostOptions options) throws ApiException {
1717
try {
18-
return api.aggregateAppStats(appUsageStatsIn, options.getIdempotencyKey());
18+
return api.v1StatisticsAggregateAppStats(appUsageStatsIn, options.getIdempotencyKey());
1919
} catch (com.svix.internal.ApiException e) {
2020
throw Utils.wrapInternalApiException(e);
2121
}
2222
}
2323

2424
public AggregateEventTypesOut aggregateEventTypes() throws com.svix.internal.ApiException {
2525
try {
26-
return api.aggregateEventTypes();
26+
return api.v1StatisticsAggregateEventTypes();
2727
} catch (com.svix.internal.ApiException e) {
2828
throw Utils.wrapInternalApiException(e);
2929
}

0 commit comments

Comments
 (0)