@openmeter/sdk 1.0.0-beta.227 → 1.0.0-beta.228
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Makefile +0 -1
- package/dist/cjs/src/client/customers.d.cts +3 -0
- package/dist/cjs/src/client/features.d.cts +3 -0
- package/dist/cjs/src/client/meters.cjs +10 -10
- package/dist/cjs/src/client/meters.d.cts +83 -14
- package/dist/cjs/src/client/plans.d.cts +5 -0
- package/dist/cjs/src/client/schemas.d.cts +283 -3
- package/dist/cjs/src/client/subscriptions.d.cts +5 -0
- package/dist/cjs/src/zod/index.cjs +714 -159
- package/dist/cjs/src/zod/index.cjs.map +1 -1
- package/dist/cjs/src/zod/index.d.cts +769 -648
- package/dist/src/client/customers.d.ts +3 -0
- package/dist/src/client/features.d.ts +3 -0
- package/dist/src/client/meters.d.ts +83 -14
- package/dist/src/client/meters.js +11 -11
- package/dist/src/client/meters.js.map +1 -1
- package/dist/src/client/plans.d.ts +5 -0
- package/dist/src/client/schemas.d.ts +283 -3
- package/dist/src/client/subscriptions.d.ts +5 -0
- package/dist/src/zod/index.d.ts +769 -648
- package/dist/src/zod/index.js +686 -132
- package/dist/src/zod/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/orval.config.ts +1 -1
- package/package.json +13 -14
- package/patches/openapi-typescript.patch +901 -828
- package/pnpm-workspace.yaml +3 -0
|
@@ -975,7 +975,6 @@ export interface paths {
|
|
|
975
975
|
* @description Features are either metered or static. A feature is metered if meterSlug is provided at creation.
|
|
976
976
|
* For metered features you can pass additional filters that will be applied when calculating feature usage, based on the meter's groupBy fields.
|
|
977
977
|
* Meters with SUM, COUNT, UNIQUE_COUNT and LATEST aggregations are supported for features.
|
|
978
|
-
* Features cannot be updated later, only archived.
|
|
979
978
|
*/
|
|
980
979
|
post: operations['createFeature'];
|
|
981
980
|
delete?: never;
|
|
@@ -3258,6 +3257,14 @@ export interface components {
|
|
|
3258
3257
|
/** @description The billing workflow settings for this profile. */
|
|
3259
3258
|
workflow: components['schemas']['BillingWorkflow'];
|
|
3260
3259
|
};
|
|
3260
|
+
/**
|
|
3261
|
+
* @description The settlement mode of a plan.
|
|
3262
|
+
* It determines how the billing system generates invoices and credits for the subscriptions using this plan.
|
|
3263
|
+
* - credit_then_invoice: credits from the previous billing period are applied first, then the remaining balance is invoiced. This is the default and most common settlement mode.
|
|
3264
|
+
* - credit_only: only credits from the previous billing period are generated and applied. No invoices are generated for the subscription.
|
|
3265
|
+
* @enum {string}
|
|
3266
|
+
*/
|
|
3267
|
+
BillingSettlementMode: 'credit_then_invoice' | 'credit_only';
|
|
3261
3268
|
/** @description TaxIdentificationCode is a normalized tax code shown on the original identity document. */
|
|
3262
3269
|
BillingTaxIdentificationCode: string;
|
|
3263
3270
|
/** @description BillingWorkflow represents the settings for a billing workflow. */
|
|
@@ -4033,6 +4040,16 @@ export interface components {
|
|
|
4033
4040
|
* }
|
|
4034
4041
|
*/
|
|
4035
4042
|
proRatingConfig?: components['schemas']['ProRatingConfig'];
|
|
4043
|
+
/**
|
|
4044
|
+
* Settlement mode
|
|
4045
|
+
* @description The settlement mode of the plan.
|
|
4046
|
+
* It determines how the billing system generates invoices and credits for the subscriptions using this plan.
|
|
4047
|
+
* - credit_then_invoice: credits from the previous billing period are applied first, then the remaining balance is invoiced.
|
|
4048
|
+
* - credit_only: only credits from the previous billing period are generated and applied. No invoices are generated for the subscription.
|
|
4049
|
+
* This is the default and most common settlement mode.
|
|
4050
|
+
* @default credit_then_invoice
|
|
4051
|
+
*/
|
|
4052
|
+
settlementMode?: components['schemas']['BillingSettlementMode'];
|
|
4036
4053
|
/**
|
|
4037
4054
|
* Plan phases
|
|
4038
4055
|
* @description The plan phase or pricing ramp allows changing a plan's rate cards over time as a subscription progresses.
|
|
@@ -5773,6 +5790,50 @@ export interface components {
|
|
|
5773
5790
|
*/
|
|
5774
5791
|
readonly config?: string;
|
|
5775
5792
|
};
|
|
5793
|
+
/** @description EntitlementValueV2 returns entitlement access state and value fields for customer-scoped V2 APIs. */
|
|
5794
|
+
EntitlementValueV2: {
|
|
5795
|
+
/**
|
|
5796
|
+
* @description Whether the subject has access to the feature. Shared accross all entitlement types.
|
|
5797
|
+
* @example true
|
|
5798
|
+
*/
|
|
5799
|
+
readonly hasAccess: boolean;
|
|
5800
|
+
/**
|
|
5801
|
+
* Format: double
|
|
5802
|
+
* @description Only available for metered entitlements. Metered entitlements are built around a balance calculation where feature usage is deducted from the issued grants. Balance represents the remaining balance of the entitlement, it's value never turns negative.
|
|
5803
|
+
* @example 100
|
|
5804
|
+
*/
|
|
5805
|
+
readonly balance?: number;
|
|
5806
|
+
/**
|
|
5807
|
+
* Format: double
|
|
5808
|
+
* @description Only available for metered entitlements. Returns the total feature usage in the current period.
|
|
5809
|
+
* @example 50
|
|
5810
|
+
*/
|
|
5811
|
+
readonly usage?: number;
|
|
5812
|
+
/**
|
|
5813
|
+
* Format: double
|
|
5814
|
+
* @description Only available for metered entitlements. Overage represents the usage that wasn't covered by grants, e.g. if the subject had a total feature usage of 100 in the period but they were only granted 80, there would be 20 overage.
|
|
5815
|
+
* @example 0
|
|
5816
|
+
*/
|
|
5817
|
+
readonly overage?: number;
|
|
5818
|
+
/**
|
|
5819
|
+
* Format: double
|
|
5820
|
+
* @description Only available for metered entitlements. The summed amount of all grant active at query time PLUS the used amount of since inactive grants.
|
|
5821
|
+
* @example 100
|
|
5822
|
+
*/
|
|
5823
|
+
readonly totalAvailableGrantAmount?: number;
|
|
5824
|
+
/**
|
|
5825
|
+
* @description Only available for static entitlements. The JSON parsable config of the entitlement.
|
|
5826
|
+
* @example { key: "value" }
|
|
5827
|
+
*/
|
|
5828
|
+
readonly config?: string;
|
|
5829
|
+
/**
|
|
5830
|
+
* @description Only available for metered entitlements. The closing balance of each active grant at query time.
|
|
5831
|
+
* The key is the grant ID and the value is the remaining balance.
|
|
5832
|
+
*/
|
|
5833
|
+
readonly grantBalances?: {
|
|
5834
|
+
[key: string]: number;
|
|
5835
|
+
};
|
|
5836
|
+
};
|
|
5776
5837
|
/** @description Generic ErrorExtension as part of HTTPProblem.Extensions.[StatusCode] */
|
|
5777
5838
|
ErrorExtension: {
|
|
5778
5839
|
/**
|
|
@@ -5988,6 +6049,13 @@ export interface components {
|
|
|
5988
6049
|
advancedMeterGroupByFilters?: {
|
|
5989
6050
|
[key: string]: components['schemas']['FilterString'];
|
|
5990
6051
|
};
|
|
6052
|
+
/**
|
|
6053
|
+
* Unit cost
|
|
6054
|
+
* @description Optional per-unit cost configuration.
|
|
6055
|
+
* Use "manual" for a fixed per-unit cost, or "llm" to look up cost
|
|
6056
|
+
* from the LLM cost database based on meter group-by properties.
|
|
6057
|
+
*/
|
|
6058
|
+
unitCost?: components['schemas']['FeatureUnitCost'];
|
|
5991
6059
|
/**
|
|
5992
6060
|
* @description Readonly unique ULID identifier.
|
|
5993
6061
|
* @example 01ARZ3NDEKTSV4RRFFQ69G5FAV
|
|
@@ -6055,6 +6123,113 @@ export interface components {
|
|
|
6055
6123
|
advancedMeterGroupByFilters?: {
|
|
6056
6124
|
[key: string]: components['schemas']['FilterString'];
|
|
6057
6125
|
};
|
|
6126
|
+
/**
|
|
6127
|
+
* Unit cost
|
|
6128
|
+
* @description Optional per-unit cost configuration.
|
|
6129
|
+
* Use "manual" for a fixed per-unit cost, or "llm" to look up cost
|
|
6130
|
+
* from the LLM cost database based on meter group-by properties.
|
|
6131
|
+
*/
|
|
6132
|
+
unitCost?: components['schemas']['FeatureUnitCost'];
|
|
6133
|
+
};
|
|
6134
|
+
/**
|
|
6135
|
+
* @description LLM cost lookup configuration.
|
|
6136
|
+
* Maps meter group-by dimensions to LLM cost database fields.
|
|
6137
|
+
*/
|
|
6138
|
+
FeatureLLMUnitCost: {
|
|
6139
|
+
/**
|
|
6140
|
+
* @description discriminator enum property added by openapi-typescript
|
|
6141
|
+
* @enum {string}
|
|
6142
|
+
*/
|
|
6143
|
+
type: 'llm';
|
|
6144
|
+
/**
|
|
6145
|
+
* Provider property
|
|
6146
|
+
* @description Meter group-by property that holds the LLM provider.
|
|
6147
|
+
* Use this when the meter has a group-by dimension for provider.
|
|
6148
|
+
* Mutually exclusive with `provider`.
|
|
6149
|
+
*/
|
|
6150
|
+
providerProperty?: string;
|
|
6151
|
+
/**
|
|
6152
|
+
* Provider
|
|
6153
|
+
* @description Static LLM provider value (e.g., "openai", "anthropic").
|
|
6154
|
+
* Use this when the feature tracks a single provider.
|
|
6155
|
+
* Mutually exclusive with `providerProperty`.
|
|
6156
|
+
*/
|
|
6157
|
+
provider?: string;
|
|
6158
|
+
/**
|
|
6159
|
+
* Model property
|
|
6160
|
+
* @description Meter group-by property that holds the model ID.
|
|
6161
|
+
* Use this when the meter has a group-by dimension for model.
|
|
6162
|
+
* Mutually exclusive with `model`.
|
|
6163
|
+
*/
|
|
6164
|
+
modelProperty?: string;
|
|
6165
|
+
/**
|
|
6166
|
+
* Model
|
|
6167
|
+
* @description Static model ID value (e.g., "gpt-4", "claude-3-5-sonnet").
|
|
6168
|
+
* Use this when the feature tracks a single model.
|
|
6169
|
+
* Mutually exclusive with `modelProperty`.
|
|
6170
|
+
*/
|
|
6171
|
+
model?: string;
|
|
6172
|
+
/**
|
|
6173
|
+
* Token type property
|
|
6174
|
+
* @description Meter group-by property that holds the token type.
|
|
6175
|
+
* Use this when the meter has a group-by dimension for token type.
|
|
6176
|
+
* Mutually exclusive with `tokenType`.
|
|
6177
|
+
*/
|
|
6178
|
+
tokenTypeProperty?: string;
|
|
6179
|
+
/**
|
|
6180
|
+
* Token type
|
|
6181
|
+
* @description Static token type value.
|
|
6182
|
+
* Use this when the feature tracks a single token type (e.g., only input tokens).
|
|
6183
|
+
* Expected values: input, output, cache_read, reasoning, cache_write, request, response.
|
|
6184
|
+
* `request` is an alias for `input`, `response` is an alias for `output`.
|
|
6185
|
+
* Mutually exclusive with `tokenTypeProperty`.
|
|
6186
|
+
*/
|
|
6187
|
+
tokenType?: string;
|
|
6188
|
+
/**
|
|
6189
|
+
* Resolved pricing
|
|
6190
|
+
* @description Resolved per-token pricing from the LLM cost database.
|
|
6191
|
+
* Only populated in responses when the feature's meter group-by filters
|
|
6192
|
+
* specify exact provider and model values.
|
|
6193
|
+
*/
|
|
6194
|
+
readonly pricing?: components['schemas']['FeatureLLMUnitCostPricing'];
|
|
6195
|
+
};
|
|
6196
|
+
/** @description Resolved per-token pricing from the LLM cost database. */
|
|
6197
|
+
FeatureLLMUnitCostPricing: {
|
|
6198
|
+
/**
|
|
6199
|
+
* Input per token
|
|
6200
|
+
* @description Cost per input token in USD.
|
|
6201
|
+
*/
|
|
6202
|
+
inputPerToken: components['schemas']['Numeric'];
|
|
6203
|
+
/**
|
|
6204
|
+
* Output per token
|
|
6205
|
+
* @description Cost per output token in USD.
|
|
6206
|
+
*/
|
|
6207
|
+
outputPerToken: components['schemas']['Numeric'];
|
|
6208
|
+
/**
|
|
6209
|
+
* Cache read per token
|
|
6210
|
+
* @description Cost per cache read token in USD.
|
|
6211
|
+
*/
|
|
6212
|
+
cacheReadPerToken?: components['schemas']['Numeric'];
|
|
6213
|
+
/**
|
|
6214
|
+
* Reasoning per token
|
|
6215
|
+
* @description Cost per reasoning token in USD.
|
|
6216
|
+
*/
|
|
6217
|
+
reasoningPerToken?: components['schemas']['Numeric'];
|
|
6218
|
+
/**
|
|
6219
|
+
* Cache write per token
|
|
6220
|
+
* @description Cost per cache write token in USD.
|
|
6221
|
+
*/
|
|
6222
|
+
cacheWritePerToken?: components['schemas']['Numeric'];
|
|
6223
|
+
};
|
|
6224
|
+
/** @description A fixed per-unit cost amount. */
|
|
6225
|
+
FeatureManualUnitCost: {
|
|
6226
|
+
/**
|
|
6227
|
+
* @description discriminator enum property added by openapi-typescript
|
|
6228
|
+
* @enum {string}
|
|
6229
|
+
*/
|
|
6230
|
+
type: 'manual';
|
|
6231
|
+
/** @description Fixed per-unit cost amount in USD. */
|
|
6232
|
+
amount: components['schemas']['Numeric'];
|
|
6058
6233
|
};
|
|
6059
6234
|
/** @description Limited representation of a feature resource which includes only its unique identifiers (id, key). */
|
|
6060
6235
|
FeatureMeta: {
|
|
@@ -6097,6 +6272,11 @@ export interface components {
|
|
|
6097
6272
|
/** @description The items in the current page. */
|
|
6098
6273
|
items: components['schemas']['Feature'][];
|
|
6099
6274
|
};
|
|
6275
|
+
/**
|
|
6276
|
+
* @description Per-unit cost configuration for a feature.
|
|
6277
|
+
* Either a fixed manual amount or a dynamic LLM cost lookup.
|
|
6278
|
+
*/
|
|
6279
|
+
FeatureUnitCost: components['schemas']['FeatureManualUnitCost'] | components['schemas']['FeatureLLMUnitCost'];
|
|
6100
6280
|
/** @description A filter for a ID (ULID) field allowing only equality or inclusion. */
|
|
6101
6281
|
FilterIDExact: {
|
|
6102
6282
|
/** @description The field must be in the provided list of values. */
|
|
@@ -6623,6 +6803,12 @@ export interface components {
|
|
|
6623
6803
|
* discounts that are affecting multiple lines.
|
|
6624
6804
|
*/
|
|
6625
6805
|
readonly discounts?: components['schemas']['InvoiceLineDiscounts'];
|
|
6806
|
+
/**
|
|
6807
|
+
* @description Credit allocations applied to this line.
|
|
6808
|
+
*
|
|
6809
|
+
* Credits are deducted from the line total before taxes are applied.
|
|
6810
|
+
*/
|
|
6811
|
+
readonly creditAllocations?: components['schemas']['InvoiceLineCreditAllocation'][];
|
|
6626
6812
|
/** @description The invoice this item belongs to. */
|
|
6627
6813
|
invoice?: components['schemas']['InvoiceReference'];
|
|
6628
6814
|
/** @description The currency of this line. */
|
|
@@ -6803,6 +6989,12 @@ export interface components {
|
|
|
6803
6989
|
* discounts that are affecting multiple lines.
|
|
6804
6990
|
*/
|
|
6805
6991
|
readonly discounts?: components['schemas']['InvoiceLineDiscounts'];
|
|
6992
|
+
/**
|
|
6993
|
+
* @description Credit allocations applied to this line.
|
|
6994
|
+
*
|
|
6995
|
+
* Credits are deducted from the line total before taxes are applied.
|
|
6996
|
+
*/
|
|
6997
|
+
readonly creditAllocations?: components['schemas']['InvoiceLineCreditAllocation'][];
|
|
6806
6998
|
/** @description The invoice this item belongs to. */
|
|
6807
6999
|
invoice?: components['schemas']['InvoiceReference'];
|
|
6808
7000
|
/** @description The currency of this line. */
|
|
@@ -6926,6 +7118,16 @@ export interface components {
|
|
|
6926
7118
|
/** @description The external ID of the invoice in the tax app if available. */
|
|
6927
7119
|
readonly tax?: string;
|
|
6928
7120
|
};
|
|
7121
|
+
/** @description InvoiceLineCreditAllocation represents a credit amount allocated to the line before taxes are applied. */
|
|
7122
|
+
InvoiceLineCreditAllocation: {
|
|
7123
|
+
/**
|
|
7124
|
+
* Amount in the currency of the invoice
|
|
7125
|
+
* @description Amount allocated from credits.
|
|
7126
|
+
*/
|
|
7127
|
+
readonly amount: components['schemas']['Numeric'];
|
|
7128
|
+
/** @description Text description as to why the credit was allocated. */
|
|
7129
|
+
readonly description?: string;
|
|
7130
|
+
};
|
|
6929
7131
|
/** @description InvoiceLineDiscounts represents the discounts applied to the invoice line by type. */
|
|
6930
7132
|
InvoiceLineDiscounts: {
|
|
6931
7133
|
/**
|
|
@@ -7390,6 +7592,8 @@ export interface components {
|
|
|
7390
7592
|
readonly chargesTotal: components['schemas']['Numeric'];
|
|
7391
7593
|
/** @description The amount of value of the line that are due to discounts. */
|
|
7392
7594
|
readonly discountsTotal: components['schemas']['Numeric'];
|
|
7595
|
+
/** @description The amount of value of the line that are due to credits. */
|
|
7596
|
+
readonly creditsTotal: components['schemas']['Numeric'];
|
|
7393
7597
|
/** @description The total amount of taxes that are included in the line. */
|
|
7394
7598
|
readonly taxesInclusiveTotal: components['schemas']['Numeric'];
|
|
7395
7599
|
/** @description The total amount of taxes that are added on top of amount from the line. */
|
|
@@ -9180,6 +9384,16 @@ export interface components {
|
|
|
9180
9384
|
* - scheduled = now < effectiveFrom < effectiveTo
|
|
9181
9385
|
*/
|
|
9182
9386
|
readonly status: components['schemas']['PlanStatus'];
|
|
9387
|
+
/**
|
|
9388
|
+
* Settlement mode
|
|
9389
|
+
* @description The settlement mode of the plan.
|
|
9390
|
+
* It determines how the billing system generates invoices and credits for the subscriptions using this plan.
|
|
9391
|
+
* - credit_then_invoice: credits from the previous billing period are applied first, then the remaining balance is invoiced.
|
|
9392
|
+
* - credit_only: only credits from the previous billing period are generated and applied. No invoices are generated for the subscription.
|
|
9393
|
+
* This is the default and most common settlement mode.
|
|
9394
|
+
* @default credit_then_invoice
|
|
9395
|
+
*/
|
|
9396
|
+
settlementMode?: components['schemas']['BillingSettlementMode'];
|
|
9183
9397
|
/**
|
|
9184
9398
|
* Plan phases
|
|
9185
9399
|
* @description The plan phase or pricing ramp allows changing a plan's rate cards over time as a subscription progresses.
|
|
@@ -9364,6 +9578,16 @@ export interface components {
|
|
|
9364
9578
|
* }
|
|
9365
9579
|
*/
|
|
9366
9580
|
proRatingConfig?: components['schemas']['ProRatingConfig'];
|
|
9581
|
+
/**
|
|
9582
|
+
* Settlement mode
|
|
9583
|
+
* @description The settlement mode of the plan.
|
|
9584
|
+
* It determines how the billing system generates invoices and credits for the subscriptions using this plan.
|
|
9585
|
+
* - credit_then_invoice: credits from the previous billing period are applied first, then the remaining balance is invoiced.
|
|
9586
|
+
* - credit_only: only credits from the previous billing period are generated and applied. No invoices are generated for the subscription.
|
|
9587
|
+
* This is the default and most common settlement mode.
|
|
9588
|
+
* @default credit_then_invoice
|
|
9589
|
+
*/
|
|
9590
|
+
settlementMode?: components['schemas']['BillingSettlementMode'];
|
|
9367
9591
|
/**
|
|
9368
9592
|
* Plan phases
|
|
9369
9593
|
* @description The plan phase or pricing ramp allows changing a plan's rate cards over time as a subscription progresses.
|
|
@@ -9487,6 +9711,16 @@ export interface components {
|
|
|
9487
9711
|
* }
|
|
9488
9712
|
*/
|
|
9489
9713
|
proRatingConfig?: components['schemas']['ProRatingConfig'];
|
|
9714
|
+
/**
|
|
9715
|
+
* Settlement mode
|
|
9716
|
+
* @description The settlement mode of the plan.
|
|
9717
|
+
* It determines how the billing system generates invoices and credits for the subscriptions using this plan.
|
|
9718
|
+
* - credit_then_invoice: credits from the previous billing period are applied first, then the remaining balance is invoiced.
|
|
9719
|
+
* - credit_only: only credits from the previous billing period are generated and applied. No invoices are generated for the subscription.
|
|
9720
|
+
* This is the default and most common settlement mode.
|
|
9721
|
+
* @default credit_then_invoice
|
|
9722
|
+
*/
|
|
9723
|
+
settlementMode?: components['schemas']['BillingSettlementMode'];
|
|
9490
9724
|
/**
|
|
9491
9725
|
* Plan phases
|
|
9492
9726
|
* @description The plan phase or pricing ramp allows changing a plan's rate cards over time as a subscription progresses.
|
|
@@ -9567,6 +9801,8 @@ export interface components {
|
|
|
9567
9801
|
* @example 2023-01-01T01:01:01.001Z
|
|
9568
9802
|
*/
|
|
9569
9803
|
billingAnchor?: Date;
|
|
9804
|
+
/** @description The settlement mode of the subscription. */
|
|
9805
|
+
settlementMode?: components['schemas']['BillingSettlementMode'];
|
|
9570
9806
|
};
|
|
9571
9807
|
/**
|
|
9572
9808
|
* @description A consumer portal token.
|
|
@@ -10653,6 +10889,15 @@ export interface components {
|
|
|
10653
10889
|
* @example 2023-01-01T01:01:01.001Z
|
|
10654
10890
|
*/
|
|
10655
10891
|
readonly billingAnchor: Date;
|
|
10892
|
+
/**
|
|
10893
|
+
* Settlement mode
|
|
10894
|
+
* @description The settlement mode of the subscription.
|
|
10895
|
+
* - credit_then_invoice: credits from the previous billing period are applied first, then the remaining balance is invoiced.
|
|
10896
|
+
* - credit_only: only credits from the previous billing period are generated and applied. No invoices are generated for the subscription.
|
|
10897
|
+
* This is the default and most common settlement mode.
|
|
10898
|
+
* @default credit_then_invoice
|
|
10899
|
+
*/
|
|
10900
|
+
readonly settlementMode: components['schemas']['BillingSettlementMode'];
|
|
10656
10901
|
};
|
|
10657
10902
|
/** @description A subscription add-on, represents concrete instances of an add-on for a given subscription. */
|
|
10658
10903
|
SubscriptionAddon: {
|
|
@@ -11104,6 +11349,15 @@ export interface components {
|
|
|
11104
11349
|
* @example 2023-01-01T01:01:01.001Z
|
|
11105
11350
|
*/
|
|
11106
11351
|
readonly billingAnchor: Date;
|
|
11352
|
+
/**
|
|
11353
|
+
* Settlement mode
|
|
11354
|
+
* @description The settlement mode of the subscription.
|
|
11355
|
+
* - credit_then_invoice: credits from the previous billing period are applied first, then the remaining balance is invoiced.
|
|
11356
|
+
* - credit_only: only credits from the previous billing period are generated and applied. No invoices are generated for the subscription.
|
|
11357
|
+
* This is the default and most common settlement mode.
|
|
11358
|
+
* @default credit_then_invoice
|
|
11359
|
+
*/
|
|
11360
|
+
readonly settlementMode: components['schemas']['BillingSettlementMode'];
|
|
11107
11361
|
/** @description Alignment details enriched with the current billing period. */
|
|
11108
11362
|
alignment?: components['schemas']['SubscriptionAlignment'];
|
|
11109
11363
|
/** @description The phases of the subscription. */
|
|
@@ -11381,14 +11635,25 @@ export interface components {
|
|
|
11381
11635
|
behavior?: components['schemas']['TaxBehavior'];
|
|
11382
11636
|
/**
|
|
11383
11637
|
* Stripe tax config
|
|
11638
|
+
* @deprecated
|
|
11384
11639
|
* @description Stripe tax config.
|
|
11385
11640
|
*/
|
|
11386
11641
|
stripe?: components['schemas']['StripeTaxConfig'];
|
|
11387
11642
|
/**
|
|
11388
11643
|
* Custom invoicing tax config
|
|
11644
|
+
* @deprecated
|
|
11389
11645
|
* @description Custom invoicing tax config.
|
|
11390
11646
|
*/
|
|
11391
11647
|
customInvoicing?: components['schemas']['CustomInvoicingTaxConfig'];
|
|
11648
|
+
/**
|
|
11649
|
+
* Tax code ID
|
|
11650
|
+
* @description Tax code reference.
|
|
11651
|
+
*
|
|
11652
|
+
* When both `taxCodeId` and `stripe.code` are provided, `taxCodeId` takes precedence:
|
|
11653
|
+
* the referenced tax code entity is used and `stripe.code` is ignored.
|
|
11654
|
+
* @example 01G65Z755AFWAKHE12NY0CQ9FH
|
|
11655
|
+
*/
|
|
11656
|
+
taxCodeId?: string;
|
|
11392
11657
|
};
|
|
11393
11658
|
/**
|
|
11394
11659
|
* @description The mode of the tiered price.
|
|
@@ -12023,6 +12288,7 @@ export type BillingProfileExpand = components['schemas']['BillingProfileExpand']
|
|
|
12023
12288
|
export type BillingProfileOrderBy = components['schemas']['BillingProfileOrderBy'];
|
|
12024
12289
|
export type BillingProfilePaginatedResponse = components['schemas']['BillingProfilePaginatedResponse'];
|
|
12025
12290
|
export type BillingProfileReplaceUpdateWithWorkflow = components['schemas']['BillingProfileReplaceUpdateWithWorkflow'];
|
|
12291
|
+
export type BillingSettlementMode = components['schemas']['BillingSettlementMode'];
|
|
12026
12292
|
export type BillingTaxIdentificationCode = components['schemas']['BillingTaxIdentificationCode'];
|
|
12027
12293
|
export type BillingWorkflow = components['schemas']['BillingWorkflow'];
|
|
12028
12294
|
export type BillingWorkflowCollectionAlignment = components['schemas']['BillingWorkflowCollectionAlignment'];
|
|
@@ -12123,6 +12389,7 @@ export type EntitlementV2 = components['schemas']['EntitlementV2'];
|
|
|
12123
12389
|
export type EntitlementV2CreateInputs = components['schemas']['EntitlementV2CreateInputs'];
|
|
12124
12390
|
export type EntitlementV2PaginatedResponse = components['schemas']['EntitlementV2PaginatedResponse'];
|
|
12125
12391
|
export type EntitlementValue = components['schemas']['EntitlementValue'];
|
|
12392
|
+
export type EntitlementValueV2 = components['schemas']['EntitlementValueV2'];
|
|
12126
12393
|
export type ErrorExtension = components['schemas']['ErrorExtension'];
|
|
12127
12394
|
export type Event = components['schemas']['Event'];
|
|
12128
12395
|
export type EventDeliveryAttemptResponse = components['schemas']['EventDeliveryAttemptResponse'];
|
|
@@ -12130,9 +12397,13 @@ export type ExpirationDuration = components['schemas']['ExpirationDuration'];
|
|
|
12130
12397
|
export type ExpirationPeriod = components['schemas']['ExpirationPeriod'];
|
|
12131
12398
|
export type Feature = components['schemas']['Feature'];
|
|
12132
12399
|
export type FeatureCreateInputs = components['schemas']['FeatureCreateInputs'];
|
|
12400
|
+
export type FeatureLlmUnitCost = components['schemas']['FeatureLLMUnitCost'];
|
|
12401
|
+
export type FeatureLlmUnitCostPricing = components['schemas']['FeatureLLMUnitCostPricing'];
|
|
12402
|
+
export type FeatureManualUnitCost = components['schemas']['FeatureManualUnitCost'];
|
|
12133
12403
|
export type FeatureMeta = components['schemas']['FeatureMeta'];
|
|
12134
12404
|
export type FeatureOrderBy = components['schemas']['FeatureOrderBy'];
|
|
12135
12405
|
export type FeaturePaginatedResponse = components['schemas']['FeaturePaginatedResponse'];
|
|
12406
|
+
export type FeatureUnitCost = components['schemas']['FeatureUnitCost'];
|
|
12136
12407
|
export type FilterIdExact = components['schemas']['FilterIDExact'];
|
|
12137
12408
|
export type FilterString = components['schemas']['FilterString'];
|
|
12138
12409
|
export type FilterTime = components['schemas']['FilterTime'];
|
|
@@ -12166,6 +12437,7 @@ export type InvoiceGenericDocumentRef = components['schemas']['InvoiceGenericDoc
|
|
|
12166
12437
|
export type InvoiceLine = components['schemas']['InvoiceLine'];
|
|
12167
12438
|
export type InvoiceLineAmountDiscount = components['schemas']['InvoiceLineAmountDiscount'];
|
|
12168
12439
|
export type InvoiceLineAppExternalIds = components['schemas']['InvoiceLineAppExternalIds'];
|
|
12440
|
+
export type InvoiceLineCreditAllocation = components['schemas']['InvoiceLineCreditAllocation'];
|
|
12169
12441
|
export type InvoiceLineDiscounts = components['schemas']['InvoiceLineDiscounts'];
|
|
12170
12442
|
export type InvoiceLineManagedBy = components['schemas']['InvoiceLineManagedBy'];
|
|
12171
12443
|
export type InvoiceLineReplaceUpdate = components['schemas']['InvoiceLineReplaceUpdate'];
|
|
@@ -18546,7 +18818,14 @@ export interface operations {
|
|
|
18546
18818
|
};
|
|
18547
18819
|
voidGrant: {
|
|
18548
18820
|
parameters: {
|
|
18549
|
-
query?:
|
|
18821
|
+
query?: {
|
|
18822
|
+
/**
|
|
18823
|
+
* @description The time at which the grant should be voided.
|
|
18824
|
+
* Must not be in the future and must be within the current usage period of the entitlement.
|
|
18825
|
+
* Defaults to the current time if not specified.
|
|
18826
|
+
*/
|
|
18827
|
+
at?: Date | string;
|
|
18828
|
+
};
|
|
18550
18829
|
header?: never;
|
|
18551
18830
|
path: {
|
|
18552
18831
|
grantId: string;
|
|
@@ -20143,6 +20422,7 @@ export interface operations {
|
|
|
20143
20422
|
};
|
|
20144
20423
|
content: {
|
|
20145
20424
|
'application/json': components['schemas']['MeterQueryResult'];
|
|
20425
|
+
'text/csv': string;
|
|
20146
20426
|
};
|
|
20147
20427
|
};
|
|
20148
20428
|
/** @description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). */
|
|
@@ -27150,7 +27430,7 @@ export interface operations {
|
|
|
27150
27430
|
[name: string]: unknown;
|
|
27151
27431
|
};
|
|
27152
27432
|
content: {
|
|
27153
|
-
'application/json': components['schemas']['
|
|
27433
|
+
'application/json': components['schemas']['EntitlementValueV2'];
|
|
27154
27434
|
};
|
|
27155
27435
|
};
|
|
27156
27436
|
/** @description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). */
|
|
@@ -32,6 +32,7 @@ export declare class Subscriptions {
|
|
|
32
32
|
readonly billingCadence: string;
|
|
33
33
|
readonly proRatingConfig?: import("./schemas.cjs").components["schemas"]["ProRatingConfig"];
|
|
34
34
|
readonly billingAnchor: Date;
|
|
35
|
+
readonly settlementMode: import("./schemas.cjs").components["schemas"]["BillingSettlementMode"];
|
|
35
36
|
} | undefined>;
|
|
36
37
|
/**
|
|
37
38
|
* Get a subscription
|
|
@@ -57,6 +58,7 @@ export declare class Subscriptions {
|
|
|
57
58
|
readonly billingCadence: string;
|
|
58
59
|
readonly proRatingConfig?: import("./schemas.cjs").components["schemas"]["ProRatingConfig"];
|
|
59
60
|
readonly billingAnchor: Date;
|
|
61
|
+
readonly settlementMode: import("./schemas.cjs").components["schemas"]["BillingSettlementMode"];
|
|
60
62
|
alignment?: import("./schemas.cjs").components["schemas"]["SubscriptionAlignment"];
|
|
61
63
|
phases: import("./schemas.cjs").components["schemas"]["SubscriptionPhaseExpanded"][];
|
|
62
64
|
} | undefined>;
|
|
@@ -86,6 +88,7 @@ export declare class Subscriptions {
|
|
|
86
88
|
readonly billingCadence: string;
|
|
87
89
|
readonly proRatingConfig?: import("./schemas.cjs").components["schemas"]["ProRatingConfig"];
|
|
88
90
|
readonly billingAnchor: Date;
|
|
91
|
+
readonly settlementMode: import("./schemas.cjs").components["schemas"]["BillingSettlementMode"];
|
|
89
92
|
} | undefined>;
|
|
90
93
|
/**
|
|
91
94
|
* Cancel a subscription
|
|
@@ -113,6 +116,7 @@ export declare class Subscriptions {
|
|
|
113
116
|
readonly billingCadence: string;
|
|
114
117
|
readonly proRatingConfig?: import("./schemas.cjs").components["schemas"]["ProRatingConfig"];
|
|
115
118
|
readonly billingAnchor: Date;
|
|
119
|
+
readonly settlementMode: import("./schemas.cjs").components["schemas"]["BillingSettlementMode"];
|
|
116
120
|
} | undefined>;
|
|
117
121
|
/**
|
|
118
122
|
* Change a subscription
|
|
@@ -163,6 +167,7 @@ export declare class Subscriptions {
|
|
|
163
167
|
readonly billingCadence: string;
|
|
164
168
|
readonly proRatingConfig?: import("./schemas.cjs").components["schemas"]["ProRatingConfig"];
|
|
165
169
|
readonly billingAnchor: Date;
|
|
170
|
+
readonly settlementMode: import("./schemas.cjs").components["schemas"]["BillingSettlementMode"];
|
|
166
171
|
} | undefined>;
|
|
167
172
|
/**
|
|
168
173
|
* Delete subscription
|