Skip to content

Commit

Permalink
feat(api): change entitlements api to beta (#1837)
Browse files Browse the repository at this point in the history
  • Loading branch information
hekike authored Nov 12, 2024
1 parent 7b5475b commit 2ebb715
Show file tree
Hide file tree
Showing 9 changed files with 345 additions and 345 deletions.
292 changes: 146 additions & 146 deletions api/api.gen.go

Large diffs are not rendered by default.

306 changes: 153 additions & 153 deletions api/client/go/client.gen.go

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions api/openapi.cloud.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tags:
- name: Portal
- name: Apps
- name: Notification (Beta)
- name: Entitlements (Experimental)
- name: Entitlements (Beta)
- name: Customers
- name: Billing (Experimental)
- name: Plan (Experimental)
Expand Down Expand Up @@ -2290,7 +2290,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (Beta)
/api/v1/entitlements/{entitlementId}:
get:
operationId: getEntitlementById
Expand Down Expand Up @@ -2353,7 +2353,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (Beta)
/api/v1/events:
get:
operationId: listEvents
Expand Down Expand Up @@ -2624,7 +2624,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (Beta)
post:
operationId: createFeature
description: |-
Expand Down Expand Up @@ -2677,7 +2677,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (Beta)
requestBody:
required: true
content:
Expand Down Expand Up @@ -2744,7 +2744,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (Beta)
delete:
operationId: deleteFeature
description: |-
Expand Down Expand Up @@ -2804,7 +2804,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (Beta)
/api/v1/grants:
get:
operationId: listGrants
Expand Down Expand Up @@ -2897,7 +2897,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (Beta)
/api/v1/grants/{grantId}:
delete:
operationId: voidGrant
Expand Down Expand Up @@ -2962,7 +2962,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (Beta)
/api/v1/integration/stripe/checkout/sessions:
post:
operationId: createStripeCheckoutSession
Expand Down Expand Up @@ -6137,7 +6137,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (Beta)
requestBody:
required: true
content:
Expand Down Expand Up @@ -6206,7 +6206,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (Beta)
/api/v1/subjects/{subjectIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/grants:
get:
operationId: listEntitlementGrants
Expand Down Expand Up @@ -6282,7 +6282,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (Beta)
post:
operationId: createGrant
description: |-
Expand Down Expand Up @@ -6358,7 +6358,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (Beta)
requestBody:
required: true
content:
Expand Down Expand Up @@ -6439,7 +6439,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (Beta)
requestBody:
required: true
content:
Expand Down Expand Up @@ -6521,7 +6521,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (Beta)
/api/v1/subjects/{subjectIdOrKey}/entitlements/{entitlementId}:
get:
operationId: getEntitlement
Expand Down Expand Up @@ -6587,7 +6587,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (Beta)
delete:
operationId: deleteEntitlement
description: |-
Expand Down Expand Up @@ -6650,7 +6650,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (Beta)
/api/v1/subjects/{subjectIdOrKey}/entitlements/{entitlementId}/history:
get:
operationId: getEntitlementHistory
Expand Down Expand Up @@ -6752,7 +6752,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (Beta)
/api/v1/subjects/{subjectIdOrKey}/entitlements/{entitlementId}/reset:
post:
operationId: resetEntitlementUsage
Expand Down Expand Up @@ -6817,7 +6817,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (Beta)
requestBody:
required: true
content:
Expand Down
38 changes: 19 additions & 19 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tags:
- name: Apps
- name: Portal
- name: Notification (Beta)
- name: Entitlements (Experimental)
- name: Entitlements (Beta)
- name: Billing (Experimental)
- name: Plan (Experimental)
- name: Subscriptions
Expand Down Expand Up @@ -2289,7 +2289,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (Beta)
/api/v1/entitlements/{entitlementId}:
get:
operationId: getEntitlementById
Expand Down Expand Up @@ -2352,7 +2352,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (Beta)
/api/v1/events:
get:
operationId: listEvents
Expand Down Expand Up @@ -2623,7 +2623,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (Beta)
post:
operationId: createFeature
description: |-
Expand Down Expand Up @@ -2676,7 +2676,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (Beta)
requestBody:
required: true
content:
Expand Down Expand Up @@ -2743,7 +2743,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (Beta)
delete:
operationId: deleteFeature
description: |-
Expand Down Expand Up @@ -2803,7 +2803,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (Beta)
/api/v1/grants:
get:
operationId: listGrants
Expand Down Expand Up @@ -2896,7 +2896,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (Beta)
/api/v1/grants/{grantId}:
delete:
operationId: voidGrant
Expand Down Expand Up @@ -2961,7 +2961,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (Beta)
/api/v1/integration/stripe/checkout/sessions:
post:
operationId: createStripeCheckoutSession
Expand Down Expand Up @@ -5743,7 +5743,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (Beta)
requestBody:
required: true
content:
Expand Down Expand Up @@ -5812,7 +5812,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (Beta)
/api/v1/subjects/{subjectIdOrKey}/entitlements/{entitlementIdOrFeatureKey}/grants:
get:
operationId: listEntitlementGrants
Expand Down Expand Up @@ -5888,7 +5888,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (Beta)
post:
operationId: createGrant
description: |-
Expand Down Expand Up @@ -5964,7 +5964,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (Beta)
requestBody:
required: true
content:
Expand Down Expand Up @@ -6045,7 +6045,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (Beta)
requestBody:
required: true
content:
Expand Down Expand Up @@ -6127,7 +6127,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (Beta)
/api/v1/subjects/{subjectIdOrKey}/entitlements/{entitlementId}:
get:
operationId: getEntitlement
Expand Down Expand Up @@ -6193,7 +6193,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (Beta)
delete:
operationId: deleteEntitlement
description: |-
Expand Down Expand Up @@ -6256,7 +6256,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (Beta)
/api/v1/subjects/{subjectIdOrKey}/entitlements/{entitlementId}/history:
get:
operationId: getEntitlementHistory
Expand Down Expand Up @@ -6358,7 +6358,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (Beta)
/api/v1/subjects/{subjectIdOrKey}/entitlements/{entitlementId}/reset:
post:
operationId: resetEntitlementUsage
Expand Down Expand Up @@ -6423,7 +6423,7 @@ paths:
schema:
$ref: '#/components/schemas/UnexpectedProblemResponse'
tags:
- Entitlements (Experimental)
- Entitlements (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 @@ -128,19 +128,19 @@ namespace OpenMeterCloud.Notification {

namespace OpenMeterCloud.Entitlements {
@route("/api/v1/entitlements")
@tag("Entitlements (Experimental)")
@tag("Entitlements (Beta)")
interface Entitlements extends OpenMeter.Entitlements.Entitlements {}

@route("/api/v1/features")
@tag("Entitlements (Experimental)")
@tag("Entitlements (Beta)")
interface Features extends OpenMeter.Entitlements.Features {}

@route("/api/v1/grants")
@tag("Entitlements (Experimental)")
@tag("Entitlements (Beta)")
interface Grants extends OpenMeter.Entitlements.Grants {}

@route("/api/v1/subjects/{subjectIdOrKey}/entitlements")
@tag("Entitlements (Experimental)")
@tag("Entitlements (Beta)")
interface Subjects extends OpenMeter.Entitlements.Subjects {}
}

Expand Down
2 changes: 1 addition & 1 deletion api/spec/src/entitlements/entitlements.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ enum EntitlementOrderBy {
}

@route("/api/v1/entitlements")
@tag("Entitlements (Experimental)")
@tag("Entitlements (Beta)")
interface Entitlements {
/**
* List all entitlements for all the subjects and features. This endpoint is intended for administrative purposes only.
Expand Down
2 changes: 1 addition & 1 deletion api/spec/src/entitlements/feature.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ enum FeatureOrderBy {
}

@route("/api/v1/features")
@tag("Entitlements (Experimental)")
@tag("Entitlements (Beta)")
interface Features {
/**
* List features.
Expand Down
2 changes: 1 addition & 1 deletion api/spec/src/entitlements/grant.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ enum GrantOrderBy {
}

@route("/api/v1/grants")
@tag("Entitlements (Experimental)")
@tag("Entitlements (Beta)")
interface Grants {
/**
* List all grants for all the subjects and entitlements. This endpoint is intended for administrative purposes only.
Expand Down
Loading

0 comments on commit 2ebb715

Please sign in to comment.