Skip to content

Commit 5bd91ea

Browse files
committed
chore(api): remove x-private extensions from operations
1 parent 80d86ac commit 5bd91ea

9 files changed

Lines changed: 162 additions & 196 deletions

File tree

api/spec/packages/aip/src/currencies/cost-bases/operations.tsp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ interface CurrenciesCustomCostBasesOperations {
2929
* List cost bases for a currency.
3030
* For custom currencies, there can be multiple cost bases with different `effective_from` dates.
3131
*/
32-
@extension(Shared.PrivateExtension, true)
3332
@extension(Shared.UnstableExtension, true)
3433
@extension(Shared.InternalExtension, true)
3534
@get
@@ -52,7 +51,6 @@ interface CurrenciesCustomCostBasesOperations {
5251
/**
5352
* Create a cost basis for a currency.
5453
*/
55-
@extension(Shared.PrivateExtension, true)
5654
@extension(Shared.UnstableExtension, true)
5755
@extension(Shared.InternalExtension, true)
5856
@post

api/spec/packages/aip/src/currencies/operations.tsp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ interface CurrenciesOperations {
2727
/**
2828
* List currencies supported by the billing system.
2929
*/
30-
@extension(Shared.PrivateExtension, true)
3130
@extension(Shared.UnstableExtension, true)
3231
@extension(Shared.InternalExtension, true)
3332
@get
@@ -51,7 +50,6 @@ interface CurrenciesCustomOperations {
5150
* Create a custom currency.
5251
* This operation allows defining your own custom currency for billing purposes.
5352
*/
54-
@extension(Shared.PrivateExtension, true)
5553
@extension(Shared.UnstableExtension, true)
5654
@extension(Shared.InternalExtension, true)
5755
@post

api/spec/packages/aip/src/customers/charges/operations.tsp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ interface CustomerChargesOperations {
3737
*
3838
* Returns the customer's charges that are represented as either flat fee or usage-based charges.
3939
*/
40-
@extension(Shared.PrivateExtension, true)
4140
@extension(Shared.UnstableExtension, true)
4241
@extension(Shared.InternalExtension, true)
4342
@get

api/spec/packages/aip/src/customers/credits/operations.tsp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ interface CustomerCreditGrantsOperations {
3636
* Create a new credit grant.
3737
* A credit grant represents an allocation of prepaid credits to a customer.
3838
*/
39-
@extension(Shared.PrivateExtension, true)
4039
@extension(Shared.UnstableExtension, true)
4140
@extension(Shared.InternalExtension, true)
4241
@post
@@ -50,7 +49,6 @@ interface CustomerCreditGrantsOperations {
5049
/**
5150
* Get a credit grant.
5251
*/
53-
@extension(Shared.PrivateExtension, true)
5452
@extension(Shared.UnstableExtension, true)
5553
@extension(Shared.InternalExtension, true)
5654
@get
@@ -64,7 +62,6 @@ interface CustomerCreditGrantsOperations {
6462
/**
6563
* List credit grants.
6664
*/
67-
@extension(Shared.PrivateExtension, true)
6865
@extension(Shared.UnstableExtension, true)
6966
@extension(Shared.InternalExtension, true)
7067
@get
@@ -119,7 +116,6 @@ interface CustomerCreditGrantExternalSettlementOperations {
119116
* Use this endpoint to synchronize the payment state of an external payment
120117
* with the system so that revenue recognition and credit availability work as expected.
121118
*/
122-
@extension(Shared.PrivateExtension, true)
123119
@extension(Shared.UnstableExtension, true)
124120
@extension(Shared.InternalExtension, true)
125121
@post
@@ -147,7 +143,6 @@ interface CustomerCreditBalancesOperations {
147143
/**
148144
* Get a credit balance.
149145
*/
150-
@extension(Shared.PrivateExtension, true)
151146
@extension(Shared.UnstableExtension, true)
152147
@extension(Shared.InternalExtension, true)
153148
@get
@@ -187,7 +182,6 @@ interface CustomerCreditTransactionOperations {
187182
* funded credits and consumed credits.
188183
* Transactions are returned in reverse chronological order by default.
189184
*/
190-
@extension(Shared.PrivateExtension, true)
191185
@extension(Shared.UnstableExtension, true)
192186
@extension(Shared.InternalExtension, true)
193187
@get
@@ -212,7 +206,6 @@ interface CustomerCreditAdjustmentsOperations {
212206
* Supported use-cases:
213207
* - Usage correction
214208
*/
215-
@extension(Shared.PrivateExtension, true)
216209
@extension(Shared.UnstableExtension, true)
217210
@extension(Shared.InternalExtension, true)
218211
@post

api/spec/packages/aip/src/defaults/operations.tsp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ interface OrganizationDefaultTaxCodesOperations {
1515
@get
1616
@operationId("get-organization-default-tax-codes")
1717
@summary("Get organization default tax codes")
18-
@extension(Shared.PrivateExtension, true)
1918
@extension(Shared.UnstableExtension, true)
2019
@extension(Shared.InternalExtension, true)
2120
get(
@@ -24,7 +23,6 @@ interface OrganizationDefaultTaxCodesOperations {
2423
@put
2524
@operationId("update-organization-default-tax-codes")
2625
@summary("Update organization default tax codes")
27-
@extension(Shared.PrivateExtension, true)
2826
@extension(Shared.UnstableExtension, true)
2927
@extension(Shared.InternalExtension, true)
3028
update(

api/spec/packages/aip/src/llmcost/operations.tsp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ interface LLMCostPricesOperations {
4242
* List global LLM cost prices.
4343
* Returns prices with overrides applied if any.
4444
*/
45-
@extension(Shared.PrivateExtension, true)
4645
@extension(Shared.UnstableExtension, true)
4746
@extension(Shared.InternalExtension, true)
4847
@get
@@ -77,7 +76,6 @@ interface LLMCostPricesOperations {
7776
* Get a specific LLM cost price by ID.
7877
* Returns the price with overrides applied if any.
7978
*/
80-
@extension(Shared.PrivateExtension, true)
8179
@extension(Shared.UnstableExtension, true)
8280
@extension(Shared.InternalExtension, true)
8381
@get
@@ -95,7 +93,6 @@ interface LLMCostOverridesOperations {
9593
/**
9694
* List per-namespace price overrides.
9795
*/
98-
@extension(Shared.PrivateExtension, true)
9996
@extension(Shared.UnstableExtension, true)
10097
@extension(Shared.InternalExtension, true)
10198
@get
@@ -111,7 +108,6 @@ interface LLMCostOverridesOperations {
111108
/**
112109
* Create a per-namespace price override.
113110
*/
114-
@extension(Shared.PrivateExtension, true)
115111
@extension(Shared.UnstableExtension, true)
116112
@extension(Shared.InternalExtension, true)
117113
@post
@@ -124,7 +120,6 @@ interface LLMCostOverridesOperations {
124120
/**
125121
* Delete a per-namespace price override.
126122
*/
127-
@extension(Shared.PrivateExtension, true)
128123
@extension(Shared.UnstableExtension, true)
129124
@extension(Shared.InternalExtension, true)
130125
@delete

api/spec/packages/aip/src/shared/consts.tsp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ namespace Shared;
22

33
const MeteringAndBillingTitle = "Metering & Billing";
44
const OpenMeterTitle = "OpenMeter";
5+
56
const MetersTag = "Meters";
67
const MetersDescription = "Meters specify how to aggregate events for billing and analytics purposes. Meters can be configured with multiple aggregation methods and groupings. Multiple meters can be created for the same event type, enabling flexible metering scenarios.";
78

@@ -38,6 +39,9 @@ const ProductCatalogDescription = "Product catalog manages plans, add-ons, and t
3839
const DefaultsTag = "OpenMeter Defaults";
3940
const DefaultsDescription = "Organization-level default configuration.";
4041

42+
// The functionality should be considered unstable.
4143
const UnstableExtension = "x-unstable";
44+
// The functionality is internal and should not be used by customers.
4245
const InternalExtension = "x-internal";
46+
// The functionality is private and should not be exposed to customers.
4347
const PrivateExtension = "x-private";

0 commit comments

Comments
 (0)