Skip to content

Commit

Permalink
feat(api): change notification api to beta (#1836)
Browse files Browse the repository at this point in the history
  • Loading branch information
hekike authored Nov 12, 2024
1 parent eaf51c4 commit 7b5475b
Show file tree
Hide file tree
Showing 9 changed files with 538 additions and 538 deletions.
492 changes: 246 additions & 246 deletions api/api.gen.go

Large diffs are not rendered by default.

508 changes: 254 additions & 254 deletions api/client/go/client.gen.go

Large diffs are not rendered by default.

30 changes: 15 additions & 15 deletions api/openapi.cloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ info:
tags:
- name: Portal
- name: Apps
- name: Notification (Experimental)
- name: Notification (Beta)
- name: Entitlements (Experimental)
- name: Customers
- name: Billing (Experimental)
Expand Down Expand Up @@ -3748,7 +3748,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Notification (Experimental)
- Notification (Beta)
post:
operationId: createNotificationChannel
summary: Create a notification channel
Expand Down Expand Up @@ -3798,7 +3798,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Notification (Experimental)
- Notification (Beta)
requestBody:
required: true
content:
Expand Down Expand Up @@ -3868,7 +3868,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Notification (Experimental)
- Notification (Beta)
requestBody:
required: true
content:
Expand Down Expand Up @@ -3937,7 +3937,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Notification (Experimental)
- Notification (Beta)
delete:
operationId: deleteNotificationChannel
summary: Delete a notification channel
Expand Down Expand Up @@ -3999,7 +3999,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Notification (Experimental)
- Notification (Beta)
/api/v1/notification/events:
get:
operationId: listNotificationEvents
Expand Down Expand Up @@ -4124,7 +4124,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Notification (Experimental)
- Notification (Beta)
/api/v1/notification/events/{eventId}:
get:
operationId: getNotificationEvent
Expand Down Expand Up @@ -4186,7 +4186,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Notification (Experimental)
- Notification (Beta)
/api/v1/notification/rules:
get:
operationId: listNotificationRules
Expand Down Expand Up @@ -4293,7 +4293,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Notification (Experimental)
- Notification (Beta)
post:
operationId: createNotificationRule
summary: Create a notification rule
Expand Down Expand Up @@ -4343,7 +4343,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Notification (Experimental)
- Notification (Beta)
requestBody:
required: true
content:
Expand Down Expand Up @@ -4413,7 +4413,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Notification (Experimental)
- Notification (Beta)
requestBody:
required: true
content:
Expand Down Expand Up @@ -4482,7 +4482,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Notification (Experimental)
- Notification (Beta)
delete:
operationId: deleteNotificationRule
summary: Delete a notification rule
Expand Down Expand Up @@ -4544,7 +4544,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Notification (Experimental)
- Notification (Beta)
/api/v1/notification/rules/{ruleId}/test:
post:
operationId: testNotificationRule
Expand Down Expand Up @@ -4607,7 +4607,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Notification (Experimental)
- Notification (Beta)
/api/v1/notification/webhook/svix:
post:
operationId: receiveSvixOperationalEvent
Expand Down Expand Up @@ -4654,7 +4654,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Notification (Experimental)
- Notification (Beta)
requestBody:
required: true
content:
Expand Down
30 changes: 15 additions & 15 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ info:
tags:
- name: Apps
- name: Portal
- name: Notification (Experimental)
- name: Notification (Beta)
- name: Entitlements (Experimental)
- name: Billing (Experimental)
- name: Plan (Experimental)
Expand Down Expand Up @@ -3639,7 +3639,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Notification (Experimental)
- Notification (Beta)
post:
operationId: createNotificationChannel
summary: Create a notification channel
Expand Down Expand Up @@ -3689,7 +3689,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Notification (Experimental)
- Notification (Beta)
requestBody:
required: true
content:
Expand Down Expand Up @@ -3759,7 +3759,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Notification (Experimental)
- Notification (Beta)
requestBody:
required: true
content:
Expand Down Expand Up @@ -3828,7 +3828,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Notification (Experimental)
- Notification (Beta)
delete:
operationId: deleteNotificationChannel
summary: Delete a notification channel
Expand Down Expand Up @@ -3890,7 +3890,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Notification (Experimental)
- Notification (Beta)
/api/v1/notification/events:
get:
operationId: listNotificationEvents
Expand Down Expand Up @@ -4015,7 +4015,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Notification (Experimental)
- Notification (Beta)
/api/v1/notification/events/{eventId}:
get:
operationId: getNotificationEvent
Expand Down Expand Up @@ -4077,7 +4077,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Notification (Experimental)
- Notification (Beta)
/api/v1/notification/rules:
get:
operationId: listNotificationRules
Expand Down Expand Up @@ -4184,7 +4184,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Notification (Experimental)
- Notification (Beta)
post:
operationId: createNotificationRule
summary: Create a notification rule
Expand Down Expand Up @@ -4234,7 +4234,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Notification (Experimental)
- Notification (Beta)
requestBody:
required: true
content:
Expand Down Expand Up @@ -4304,7 +4304,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Notification (Experimental)
- Notification (Beta)
requestBody:
required: true
content:
Expand Down Expand Up @@ -4373,7 +4373,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Notification (Experimental)
- Notification (Beta)
delete:
operationId: deleteNotificationRule
summary: Delete a notification rule
Expand Down Expand Up @@ -4435,7 +4435,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Notification (Experimental)
- Notification (Beta)
/api/v1/notification/rules/{ruleId}/test:
post:
operationId: testNotificationRule
Expand Down Expand Up @@ -4498,7 +4498,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Notification (Experimental)
- Notification (Beta)
/api/v1/notification/webhook/svix:
post:
operationId: receiveSvixOperationalEvent
Expand Down Expand Up @@ -4545,7 +4545,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Notification (Experimental)
- Notification (Beta)
requestBody:
required: true
content:
Expand Down
8 changes: 4 additions & 4 deletions api/spec/src/cloud/main.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -109,19 +109,19 @@ namespace OpenMeterCloud.App {

namespace OpenMeterCloud.Notification {
@route("/api/v1/notification/channels")
@tag("Notification (Experimental)")
@tag("Notification (Beta)")
interface Channels extends OpenMeter.Notification.Channels {}

@route("/api/v1/notification/rules")
@tag("Notification (Experimental)")
@tag("Notification (Beta)")
interface Rules extends OpenMeter.Notification.Rules {}

@route("/api/v1/notification/events")
@tag("Notification (Experimental)")
@tag("Notification (Beta)")
interface Events extends OpenMeter.Notification.Events {}

@route("/api/v1/notification/webhook/svix")
@tag("Notification (Experimental)")
@tag("Notification (Beta)")
interface SvixOperationalWebhooks
extends OpenMeter.Notification.SvixOperationalWebhooks {}
}
Expand Down
2 changes: 1 addition & 1 deletion api/spec/src/notification/channel.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ enum NotificationChannelOrderBy {
}

@route("/api/v1/notification/channels")
@tag("Notification (Experimental)")
@tag("Notification (Beta)")
interface Channels {
/**
* List all notification channels.
Expand Down
2 changes: 1 addition & 1 deletion api/spec/src/notification/event.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ enum NotificationEventOrderBy {
}

@route("/api/v1/notification/events")
@tag("Notification (Experimental)")
@tag("Notification (Beta)")
interface Events {
/**
* List all notification events.
Expand Down
2 changes: 1 addition & 1 deletion api/spec/src/notification/rule.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ enum NotificationRuleOrderBy {
}

@route("/api/v1/notification/rules")
@tag("Notification (Experimental)")
@tag("Notification (Beta)")
interface Rules {
/**
* List all notification rules.
Expand Down
2 changes: 1 addition & 1 deletion api/spec/src/notification/svix.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ model SvixOperationalWebhookRequest {
}

@route("/api/v1/notification/webhook/svix")
@tag("Notification (Experimental)")
@tag("Notification (Beta)")
interface SvixOperationalWebhooks {
/**
* Callback endpoint used by Svix to notify about operational events.
Expand Down

0 comments on commit 7b5475b

Please sign in to comment.