Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,466 changes: 1,252 additions & 1,214 deletions api/api.gen.go

Large diffs are not rendered by default.

2,393 changes: 1,216 additions & 1,177 deletions api/client/go/client.gen.go

Large diffs are not rendered by default.

60 changes: 60 additions & 0 deletions api/client/javascript/src/client/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5706,6 +5706,29 @@ export interface components {
[key: string]: unknown
} | null
}
/** @description The response of the event delivery attempt. */
EventDeliveryAttemptResponse: {
/**
* Status Code
* @description Status code of the response if available.
*/
readonly statusCode?: number
/**
* Response Body
* @description The body of the response.
*/
readonly body: string
/**
* Response Duration
* @description The duration of the response in milliseconds.
*/
readonly durationMs: number
/**
* URL
* @description URL where the event was sent in case of notification channel with webhook type.
*/
readonly url?: string
}
/**
* @description The expiration duration enum
* @enum {string}
Expand Down Expand Up @@ -8056,6 +8079,27 @@ export interface components {
/** Threshold */
readonly threshold: components['schemas']['NotificationRuleBalanceThresholdValue']
}
/** @description The delivery attempt of the notification event. */
NotificationEventDeliveryAttempt: {
/**
* State of teh delivery attempt
* @description State of teh delivery attempt.
* @example SUCCESS
*/
readonly state: components['schemas']['NotificationEventDeliveryStatusState']
/**
* Response returned by the notification event recipient
* @description Response returned by the notification event recipient.
*/
readonly response: components['schemas']['EventDeliveryAttemptResponse']
/**
* Timestamp of the delivery attempt
* Format: date-time
* @description Timestamp of the delivery attempt.
* @example 2023-01-01T01:01:01.001Z
*/
readonly timestamp: Date
}
/** @description The delivery status of the notification event. */
NotificationEventDeliveryStatus: {
/**
Expand Down Expand Up @@ -8086,6 +8130,18 @@ export interface components {
* @description Set of key-value pairs managed by the system. Cannot be modified by user.
*/
readonly annotations?: components['schemas']['Annotations']
/**
* Timestamp of the next delivery attempt
* Format: date-time
* @description Timestamp of the next delivery attempt. If null it means there will be no more delivery attempts.
* @example 2023-01-01T01:01:01.001Z
*/
readonly nextAttempt?: Date
/**
* Delivery Attempts
* @description List of delivery attempts.
*/
readonly attempts: components['schemas']['NotificationEventDeliveryAttempt'][]
}
/**
* Delivery State
Expand Down Expand Up @@ -11859,6 +11915,8 @@ export type EntitlementV2PaginatedResponse =
export type EntitlementValue = components['schemas']['EntitlementValue']
export type ErrorExtension = components['schemas']['ErrorExtension']
export type Event = components['schemas']['Event']
export type EventDeliveryAttemptResponse =
components['schemas']['EventDeliveryAttemptResponse']
export type ExpirationDuration = components['schemas']['ExpirationDuration']
export type ExpirationPeriod = components['schemas']['ExpirationPeriod']
export type Feature = components['schemas']['Feature']
Expand Down Expand Up @@ -12013,6 +12071,8 @@ export type NotificationEventBalanceThresholdPayload =
components['schemas']['NotificationEventBalanceThresholdPayload']
export type NotificationEventBalanceThresholdPayloadData =
components['schemas']['NotificationEventBalanceThresholdPayloadData']
export type NotificationEventDeliveryAttempt =
components['schemas']['NotificationEventDeliveryAttempt']
export type NotificationEventDeliveryStatus =
components['schemas']['NotificationEventDeliveryStatus']
export type NotificationEventDeliveryStatusState =
Expand Down
4 changes: 4 additions & 0 deletions api/client/python/openmeter/_generated/models/__init__.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

52 changes: 52 additions & 0 deletions api/client/python/openmeter/_generated/models/_models.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

70 changes: 70 additions & 0 deletions api/openapi.cloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17101,6 +17101,33 @@ components:
x-go-type-import:
path: github.com/cloudevents/sdk-go/v2/event
x-go-type: event.Event
EventDeliveryAttemptResponse:
type: object
required:
- body
- durationMs
properties:
statusCode:
type: integer
description: Status code of the response if available.
title: Status Code
readOnly: true
body:
type: string
description: The body of the response.
title: Response Body
readOnly: true
durationMs:
type: integer
description: The duration of the response in milliseconds.
title: Response Duration
readOnly: true
url:
type: string
description: URL where the event was sent in case of notification channel with webhook type.
title: URL
readOnly: true
description: The response of the event delivery attempt.
ExpirationDuration:
type: string
enum:
Expand Down Expand Up @@ -20385,13 +20412,42 @@ components:
title: Threshold
readOnly: true
description: Data of the payload for notification event with `entitlements.balance.threshold` type.
NotificationEventDeliveryAttempt:
type: object
required:
- state
- response
- timestamp
properties:
state:
allOf:
- $ref: '#/components/schemas/NotificationEventDeliveryStatusState'
description: State of teh delivery attempt.
title: State of teh delivery attempt
example: SUCCESS
readOnly: true
response:
allOf:
- $ref: '#/components/schemas/EventDeliveryAttemptResponse'
description: Response returned by the notification event recipient.
title: Response returned by the notification event recipient
readOnly: true
timestamp:
type: string
format: date-time
description: Timestamp of the delivery attempt.
example: '2023-01-01T01:01:01.001Z'
title: Timestamp of the delivery attempt
readOnly: true
description: The delivery attempt of the notification event.
NotificationEventDeliveryStatus:
type: object
required:
- state
- reason
- updatedAt
- channel
- attempts
properties:
state:
allOf:
Expand Down Expand Up @@ -20424,6 +20480,20 @@ components:
description: Set of key-value pairs managed by the system. Cannot be modified by user.
title: Annotations
readOnly: true
nextAttempt:
type: string
format: date-time
description: Timestamp of the next delivery attempt. If null it means there will be no more delivery attempts.
example: '2023-01-01T01:01:01.001Z'
title: Timestamp of the next delivery attempt
readOnly: true
attempts:
type: array
items:
$ref: '#/components/schemas/NotificationEventDeliveryAttempt'
description: List of delivery attempts.
title: Delivery Attempts
readOnly: true
description: The delivery status of the notification event.
NotificationEventDeliveryStatusState:
type: string
Expand Down
Loading
Loading