@@ -1759,6 +1759,26 @@ export interface paths {
1759
1759
patch?: never
1760
1760
trace?: never
1761
1761
}
1762
+ '/api/v2/events': {
1763
+ parameters: {
1764
+ query?: never
1765
+ header?: never
1766
+ path?: never
1767
+ cookie?: never
1768
+ }
1769
+ /**
1770
+ * List ingested events
1771
+ * @description List ingested events with advanced filtering and cursor pagination.
1772
+ */
1773
+ get: operations['listEventsV2']
1774
+ put?: never
1775
+ post?: never
1776
+ delete?: never
1777
+ options?: never
1778
+ head?: never
1779
+ patch?: never
1780
+ trace?: never
1781
+ }
1762
1782
}
1763
1783
export type webhooks = Record<string, never>
1764
1784
export interface components {
@@ -3904,6 +3924,64 @@ export interface components {
3904
3924
/** @description The items in the current page. */
3905
3925
items: components['schemas']['Feature'][]
3906
3926
}
3927
+ /** @description A filter for a string field. */
3928
+ FilterString: {
3929
+ /** @description The field must be equal to the provided value. */
3930
+ $eq?: string | null
3931
+ /** @description The field must not be equal to the provided value. */
3932
+ $ne?: string | null
3933
+ /** @description The field must be in the provided list of values. */
3934
+ $in?: string[] | null
3935
+ /** @description The field must not be in the provided list of values. */
3936
+ $nin?: string[] | null
3937
+ /** @description The field must match the provided value. */
3938
+ $like?: string | null
3939
+ /** @description The field must not match the provided value. */
3940
+ $nlike?: string | null
3941
+ /** @description The field must match the provided value, ignoring case. */
3942
+ $ilike?: string | null
3943
+ /** @description The field must not match the provided value, ignoring case. */
3944
+ $nilike?: string | null
3945
+ /** @description The field must be greater than the provided value. */
3946
+ $gt?: string | null
3947
+ /** @description The field must be greater than or equal to the provided value. */
3948
+ $gte?: string | null
3949
+ /** @description The field must be less than the provided value. */
3950
+ $lt?: string | null
3951
+ /** @description The field must be less than or equal to the provided value. */
3952
+ $lte?: string | null
3953
+ /** @description Provide a list of filters to be combined with a logical AND. */
3954
+ $and?: components['schemas']['FilterString'][] | null
3955
+ /** @description Provide a list of filters to be combined with a logical OR. */
3956
+ $or?: components['schemas']['FilterString'][] | null
3957
+ }
3958
+ /** @description A filter for a time field. */
3959
+ FilterTime: {
3960
+ /**
3961
+ * Format: date-time
3962
+ * @description The field must be greater than the provided value.
3963
+ */
3964
+ $gt?: Date | null
3965
+ /**
3966
+ * Format: date-time
3967
+ * @description The field must be greater than or equal to the provided value.
3968
+ */
3969
+ $gte?: Date | null
3970
+ /**
3971
+ * Format: date-time
3972
+ * @description The field must be less than the provided value.
3973
+ */
3974
+ $lt?: Date | null
3975
+ /**
3976
+ * Format: date-time
3977
+ * @description The field must be less than or equal to the provided value.
3978
+ */
3979
+ $lte?: Date | null
3980
+ /** @description Provide a list of filters to be combined with a logical AND. */
3981
+ $and?: components['schemas']['FilterTime'][] | null
3982
+ /** @description Provide a list of filters to be combined with a logical OR. */
3983
+ $or?: components['schemas']['FilterTime'][] | null
3984
+ }
3907
3985
/** @description Flat price. */
3908
3986
FlatPrice: {
3909
3987
/**
@@ -4071,6 +4149,13 @@ export interface components {
4071
4149
*/
4072
4150
storedAt: Date
4073
4151
}
4152
+ /** @description A response for cursor pagination. */
4153
+ IngestedEventCursorList: {
4154
+ /** @description The items in the response. */
4155
+ items: components['schemas']['IngestedEvent'][]
4156
+ /** @description The cursor of the last item in the list. */
4157
+ nextCursor: string
4158
+ }
4074
4159
/** @description The server encountered an unexpected condition that prevented it from fulfilling the request. */
4075
4160
InternalServerErrorProblemResponse: components['schemas']['UnexpectedProblemResponse']
4076
4161
/** @description Invoice represents an invoice in the system. */
@@ -7868,6 +7953,10 @@ export interface components {
7868
7953
'BillingProfileOrderByOrdering.order': components['schemas']['SortOrder']
7869
7954
/** @description The order by field. */
7870
7955
'BillingProfileOrderByOrdering.orderBy': components['schemas']['BillingProfileOrderBy']
7956
+ /** @description The cursor after which to start the pagination. */
7957
+ 'CursorPaginatedQuery.cursor': string
7958
+ /** @description The limit of the pagination. */
7959
+ 'CursorPaginatedQuery.limit': number
7871
7960
/** @description The order direction. */
7872
7961
'CustomerOrderByOrdering.order': components['schemas']['SortOrder']
7873
7962
/** @description The order by field. */
@@ -8180,6 +8269,8 @@ export type FeatureMeta = components['schemas']['FeatureMeta']
8180
8269
export type FeatureOrderBy = components['schemas']['FeatureOrderBy']
8181
8270
export type FeaturePaginatedResponse =
8182
8271
components['schemas']['FeaturePaginatedResponse']
8272
+ export type FilterString = components['schemas']['FilterString']
8273
+ export type FilterTime = components['schemas']['FilterTime']
8183
8274
export type FlatPrice = components['schemas']['FlatPrice']
8184
8275
export type FlatPriceWithPaymentTerm =
8185
8276
components['schemas']['FlatPriceWithPaymentTerm']
@@ -8196,6 +8287,8 @@ export type GrantUsageRecord = components['schemas']['GrantUsageRecord']
8196
8287
export type IdResource = components['schemas']['IDResource']
8197
8288
export type IngestEventsBody = components['schemas']['IngestEventsBody']
8198
8289
export type IngestedEvent = components['schemas']['IngestedEvent']
8290
+ export type IngestedEventCursorList =
8291
+ components['schemas']['IngestedEventCursorList']
8199
8292
export type InternalServerErrorProblemResponse =
8200
8293
components['schemas']['InternalServerErrorProblemResponse']
8201
8294
export type Invoice = components['schemas']['Invoice']
@@ -8495,6 +8588,10 @@ export type ParameterBillingProfileOrderByOrderingOrder =
8495
8588
components['parameters']['BillingProfileOrderByOrdering.order']
8496
8589
export type ParameterBillingProfileOrderByOrderingOrderBy =
8497
8590
components['parameters']['BillingProfileOrderByOrdering.orderBy']
8591
+ export type ParameterCursorPaginatedQueryCursor =
8592
+ components['parameters']['CursorPaginatedQuery.cursor']
8593
+ export type ParameterCursorPaginatedQueryLimit =
8594
+ components['parameters']['CursorPaginatedQuery.limit']
8498
8595
export type ParameterCustomerOrderByOrderingOrder =
8499
8596
components['parameters']['CustomerOrderByOrdering.order']
8500
8597
export type ParameterCustomerOrderByOrderingOrderBy =
@@ -18232,6 +18329,94 @@ export interface operations {
18232
18329
}
18233
18330
}
18234
18331
}
18332
+ listEventsV2: {
18333
+ parameters: {
18334
+ query?: {
18335
+ /** @description The cursor after which to start the pagination. */
18336
+ cursor?: components['parameters']['CursorPaginatedQuery.cursor']
18337
+ /** @description The limit of the pagination. */
18338
+ limit?: components['parameters']['CursorPaginatedQuery.limit']
18339
+ /** @description Client ID
18340
+ * Useful to track progress of a query. */
18341
+ clientId?: string
18342
+ id?: components['schemas']['FilterString']
18343
+ source?: components['schemas']['FilterString']
18344
+ subject?: components['schemas']['FilterString']
18345
+ type?: components['schemas']['FilterString']
18346
+ time?: components['schemas']['FilterTime']
18347
+ ingestedAt?: components['schemas']['FilterTime']
18348
+ }
18349
+ header?: never
18350
+ path?: never
18351
+ cookie?: never
18352
+ }
18353
+ requestBody?: never
18354
+ responses: {
18355
+ /** @description The request has succeeded. */
18356
+ 200: {
18357
+ headers: {
18358
+ [name: string]: unknown
18359
+ }
18360
+ content: {
18361
+ 'application/json': components['schemas']['IngestedEventCursorList']
18362
+ }
18363
+ }
18364
+ /** @description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). */
18365
+ 400: {
18366
+ headers: {
18367
+ [name: string]: unknown
18368
+ }
18369
+ content: {
18370
+ 'application/problem+json': components['schemas']['BadRequestProblemResponse']
18371
+ }
18372
+ }
18373
+ /** @description The request has not been applied because it lacks valid authentication credentials for the target resource. */
18374
+ 401: {
18375
+ headers: {
18376
+ [name: string]: unknown
18377
+ }
18378
+ content: {
18379
+ 'application/problem+json': components['schemas']['UnauthorizedProblemResponse']
18380
+ }
18381
+ }
18382
+ /** @description The server understood the request but refuses to authorize it. */
18383
+ 403: {
18384
+ headers: {
18385
+ [name: string]: unknown
18386
+ }
18387
+ content: {
18388
+ 'application/problem+json': components['schemas']['ForbiddenProblemResponse']
18389
+ }
18390
+ }
18391
+ /** @description The server encountered an unexpected condition that prevented it from fulfilling the request. */
18392
+ 500: {
18393
+ headers: {
18394
+ [name: string]: unknown
18395
+ }
18396
+ content: {
18397
+ 'application/problem+json': components['schemas']['InternalServerErrorProblemResponse']
18398
+ }
18399
+ }
18400
+ /** @description The server is currently unable to handle the request due to a temporary overload or scheduled maintenance, which will likely be alleviated after some delay. */
18401
+ 503: {
18402
+ headers: {
18403
+ [name: string]: unknown
18404
+ }
18405
+ content: {
18406
+ 'application/problem+json': components['schemas']['ServiceUnavailableProblemResponse']
18407
+ }
18408
+ }
18409
+ /** @description An unexpected error response. */
18410
+ default: {
18411
+ headers: {
18412
+ [name: string]: unknown
18413
+ }
18414
+ content: {
18415
+ 'application/problem+json': components['schemas']['UnexpectedProblemResponse']
18416
+ }
18417
+ }
18418
+ }
18419
+ }
18235
18420
}
18236
18421
type WithRequired<T, K extends keyof T> = T & {
18237
18422
[P in K]-?: T[P]
0 commit comments