Skip to content

Commit 31968db

Browse files
authored
fix(api): remove deprecation from DELETE /api/v1/grants (#3687)
1 parent 62b9223 commit 31968db

File tree

9 files changed

+672
-696
lines changed

9 files changed

+672
-696
lines changed

api/api.gen.go

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

api/client/go/client.gen.go

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

api/client/javascript/src/client/schemas.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,11 +1048,8 @@ export interface paths {
10481048
post?: never
10491049
/**
10501050
* Void grant
1051-
* @deprecated
10521051
* @description Voiding a grant means it is no longer valid, it doesn't take part in further balance calculations. Voiding a grant does not retroactively take effect, meaning any usage that has already been attributed to the grant will remain, but future usage cannot be burnt down from the grant.
10531052
* For example, if you have a single grant for your metered entitlement with an initial amount of 100, and so far 60 usage has been metered, the grant (and the entitlement itself) would have a balance of 40. If you then void that grant, balance becomes 0, but the 60 previous usage will not be affected.
1054-
*
1055-
* ⚠️ __Deprecated__: Use [`DELETE /api/v2/grants/{grantId}`](#tag/entitlements/delete/api/v2/grants/{grantId}) instead.
10561053
*/
10571054
delete: operations['voidGrant']
10581055
options?: never

api/client/javascript/src/zod/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8247,9 +8247,6 @@ export const listGrantsQueryParams = zod.object({
82478247
/**
82488248
* Voiding a grant means it is no longer valid, it doesn't take part in further balance calculations. Voiding a grant does not retroactively take effect, meaning any usage that has already been attributed to the grant will remain, but future usage cannot be burnt down from the grant.
82498249
For example, if you have a single grant for your metered entitlement with an initial amount of 100, and so far 60 usage has been metered, the grant (and the entitlement itself) would have a balance of 40. If you then void that grant, balance becomes 0, but the 60 previous usage will not be affected.
8250-
8251-
⚠️ __Deprecated__: Use [`DELETE /api/v2/grants/{grantId}`](#tag/entitlements/delete/api/v2/grants/{grantId}) instead.
8252-
* @deprecated
82538250
* @summary Void grant
82548251
*/
82558252
export const voidGrantParams = zod.object({

api/client/python/openmeter/_generated/aio/operations/_operations.py

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

api/client/python/openmeter/_generated/operations/_operations.py

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

api/openapi.cloud.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4789,8 +4789,6 @@ paths:
47894789
description: |-
47904790
Voiding a grant means it is no longer valid, it doesn't take part in further balance calculations. Voiding a grant does not retroactively take effect, meaning any usage that has already been attributed to the grant will remain, but future usage cannot be burnt down from the grant.
47914791
For example, if you have a single grant for your metered entitlement with an initial amount of 100, and so far 60 usage has been metered, the grant (and the entitlement itself) would have a balance of 40. If you then void that grant, balance becomes 0, but the 60 previous usage will not be affected.
4792-
4793-
⚠️ __Deprecated__: Use [`DELETE /api/v2/grants/{grantId}`](#tag/entitlements/delete/api/v2/grants/{grantId}) instead.
47944792
parameters:
47954793
- name: grantId
47964794
in: path
@@ -4856,7 +4854,6 @@ paths:
48564854
$ref: '#/components/schemas/UnexpectedProblemResponse'
48574855
tags:
48584856
- Entitlements
4859-
deprecated: true
48604857
/api/v1/info/currencies:
48614858
get:
48624859
operationId: listCurrencies

api/openapi.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4791,8 +4791,6 @@ paths:
47914791
description: |-
47924792
Voiding a grant means it is no longer valid, it doesn't take part in further balance calculations. Voiding a grant does not retroactively take effect, meaning any usage that has already been attributed to the grant will remain, but future usage cannot be burnt down from the grant.
47934793
For example, if you have a single grant for your metered entitlement with an initial amount of 100, and so far 60 usage has been metered, the grant (and the entitlement itself) would have a balance of 40. If you then void that grant, balance becomes 0, but the 60 previous usage will not be affected.
4794-
4795-
⚠️ __Deprecated__: Use [`DELETE /api/v2/grants/{grantId}`](#tag/entitlements/delete/api/v2/grants/{grantId}) instead.
47964794
parameters:
47974795
- name: grantId
47984796
in: path
@@ -4858,7 +4856,6 @@ paths:
48584856
$ref: '#/components/schemas/UnexpectedProblemResponse'
48594857
tags:
48604858
- Entitlements
4861-
deprecated: true
48624859
/api/v1/info/currencies:
48634860
get:
48644861
operationId: listCurrencies

api/spec/src/entitlements/grant.tsp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,7 @@ interface GrantsEndpoints {
6666
/**
6767
* Voiding a grant means it is no longer valid, it doesn't take part in further balance calculations. Voiding a grant does not retroactively take effect, meaning any usage that has already been attributed to the grant will remain, but future usage cannot be burnt down from the grant.
6868
* For example, if you have a single grant for your metered entitlement with an initial amount of 100, and so far 60 usage has been metered, the grant (and the entitlement itself) would have a balance of 40. If you then void that grant, balance becomes 0, but the 60 previous usage will not be affected.
69-
*
70-
* ⚠️ __Deprecated__: Use [`DELETE /api/v2/grants/{grantId}`](#tag/entitlements/delete/api/v2/grants/{grantId}) instead.
7169
*/
72-
#deprecated "Use `DELETE /api/v2/grants/{grantId}` instead"
73-
#suppress "deprecated" "V1 Grants APIs will be removed on December 1st, 2025"
7470
@delete
7571
@operationId("voidGrant")
7672
@summary("Void grant")

0 commit comments

Comments
 (0)