@zonastery/bursar 2.0.6 → 2.2.0
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/README.md +33 -4
- package/dist/billing/auto-recharge-port.d.ts +11 -0
- package/dist/billing/auto-recharge-port.d.ts.map +1 -1
- package/dist/billing/auto-recharge-port.js.map +1 -1
- package/dist/billing/auto-recharge-service.d.ts.map +1 -1
- package/dist/billing/auto-recharge-service.js +53 -26
- package/dist/billing/auto-recharge-service.js.map +1 -1
- package/dist/billing/billing-service.d.ts +38 -3
- package/dist/billing/billing-service.d.ts.map +1 -1
- package/dist/billing/billing-service.js +51 -7
- package/dist/billing/billing-service.js.map +1 -1
- package/dist/billing/billing-store.d.ts +34 -9
- package/dist/billing/billing-store.d.ts.map +1 -1
- package/dist/billing/billing-store.js +2 -0
- package/dist/billing/billing-store.js.map +1 -1
- package/dist/billing/contracts.d.ts +35 -3
- package/dist/billing/contracts.d.ts.map +1 -1
- package/dist/billing/contracts.js.map +1 -1
- package/dist/billing/event-handlers.d.ts +1 -2
- package/dist/billing/event-handlers.d.ts.map +1 -1
- package/dist/billing/event-handlers.js +69 -29
- package/dist/billing/event-handlers.js.map +1 -1
- package/dist/billing/event-processor.d.ts +2 -2
- package/dist/billing/event-processor.d.ts.map +1 -1
- package/dist/billing/event-processor.js +82 -19
- package/dist/billing/event-processor.js.map +1 -1
- package/dist/billing/financial-event-handlers.d.ts +2 -0
- package/dist/billing/financial-event-handlers.d.ts.map +1 -1
- package/dist/billing/financial-event-handlers.js +168 -44
- package/dist/billing/financial-event-handlers.js.map +1 -1
- package/dist/billing/index.d.ts +1 -1
- package/dist/billing/index.d.ts.map +1 -1
- package/dist/billing/index.js.map +1 -1
- package/dist/billing/management.d.ts +16 -3
- package/dist/billing/management.d.ts.map +1 -1
- package/dist/billing/management.js +11 -2
- package/dist/billing/management.js.map +1 -1
- package/dist/billing/postgres/repositories/auto-recharge.d.ts +13 -1
- package/dist/billing/postgres/repositories/auto-recharge.d.ts.map +1 -1
- package/dist/billing/postgres/repositories/auto-recharge.js +71 -12
- package/dist/billing/postgres/repositories/auto-recharge.js.map +1 -1
- package/dist/billing/postgres/repositories/invoice.d.ts +3 -2
- package/dist/billing/postgres/repositories/invoice.d.ts.map +1 -1
- package/dist/billing/postgres/repositories/invoice.js +33 -3
- package/dist/billing/postgres/repositories/invoice.js.map +1 -1
- package/dist/billing/postgres/repositories/offer.d.ts +5 -1
- package/dist/billing/postgres/repositories/offer.d.ts.map +1 -1
- package/dist/billing/postgres/repositories/offer.js +7 -10
- package/dist/billing/postgres/repositories/offer.js.map +1 -1
- package/dist/billing/postgres/repositories/payment.d.ts +6 -1
- package/dist/billing/postgres/repositories/payment.d.ts.map +1 -1
- package/dist/billing/postgres/repositories/payment.js +25 -16
- package/dist/billing/postgres/repositories/payment.js.map +1 -1
- package/dist/billing/postgres/repositories/subscription-change.d.ts +1 -0
- package/dist/billing/postgres/repositories/subscription-change.d.ts.map +1 -1
- package/dist/billing/postgres/repositories/subscription-change.js +25 -4
- package/dist/billing/postgres/repositories/subscription-change.js.map +1 -1
- package/dist/billing/postgres/repositories/subscription.d.ts +3 -2
- package/dist/billing/postgres/repositories/subscription.d.ts.map +1 -1
- package/dist/billing/postgres/repositories/subscription.js +44 -48
- package/dist/billing/postgres/repositories/subscription.js.map +1 -1
- package/dist/billing/postgres/repositories/topup.d.ts +6 -1
- package/dist/billing/postgres/repositories/topup.d.ts.map +1 -1
- package/dist/billing/postgres/repositories/topup.js +27 -10
- package/dist/billing/postgres/repositories/topup.js.map +1 -1
- package/dist/billing/postgres/store.d.ts +46 -34
- package/dist/billing/postgres/store.d.ts.map +1 -1
- package/dist/billing/postgres/store.js +152 -126
- package/dist/billing/postgres/store.js.map +1 -1
- package/dist/billing/service-types.d.ts +0 -1
- package/dist/billing/service-types.d.ts.map +1 -1
- package/dist/billing/service-types.js.map +1 -1
- package/dist/billing/types/auto-recharge.d.ts +2 -0
- package/dist/billing/types/auto-recharge.d.ts.map +1 -1
- package/dist/billing/types/auto-recharge.js.map +1 -1
- package/dist/billing/types/catalog.d.ts +1 -0
- package/dist/billing/types/catalog.d.ts.map +1 -1
- package/dist/billing/types/catalog.js.map +1 -1
- package/dist/billing/types/documents.d.ts +15 -1
- package/dist/billing/types/documents.d.ts.map +1 -1
- package/dist/billing/types/documents.js.map +1 -1
- package/dist/billing/types/events.d.ts +2 -0
- package/dist/billing/types/events.d.ts.map +1 -1
- package/dist/billing/types/events.js +15 -0
- package/dist/billing/types/events.js.map +1 -1
- package/dist/billing/types/subscriptions.d.ts +12 -0
- package/dist/billing/types/subscriptions.d.ts.map +1 -1
- package/dist/billing/types/subscriptions.js.map +1 -1
- package/dist/breakdown.d.ts +2 -24
- package/dist/breakdown.d.ts.map +1 -1
- package/dist/breakdown.js +1 -29
- package/dist/breakdown.js.map +1 -1
- package/dist/bursar.d.ts +13 -21
- package/dist/bursar.d.ts.map +1 -1
- package/dist/bursar.js +44 -50
- package/dist/bursar.js.map +1 -1
- package/dist/catalog.d.ts +21 -2
- package/dist/catalog.d.ts.map +1 -1
- package/dist/catalog.js +27 -4
- package/dist/catalog.js.map +1 -1
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +147 -0
- package/dist/cli.js.map +1 -0
- package/dist/commerce/plan-change.d.ts +3 -3
- package/dist/commerce/plan-change.d.ts.map +1 -1
- package/dist/commerce/plan-change.js +14 -7
- package/dist/commerce/plan-change.js.map +1 -1
- package/dist/commerce/provider-registry.d.ts.map +1 -1
- package/dist/commerce/provider-registry.js +8 -2
- package/dist/commerce/provider-registry.js.map +1 -1
- package/dist/commerce/service.d.ts +2 -0
- package/dist/commerce/service.d.ts.map +1 -1
- package/dist/commerce/service.js +330 -76
- package/dist/commerce/service.js.map +1 -1
- package/dist/commerce/types.d.ts +12 -3
- package/dist/commerce/types.d.ts.map +1 -1
- package/dist/commerce/types.js.map +1 -1
- package/dist/config/availability.d.ts +4 -0
- package/dist/config/availability.d.ts.map +1 -0
- package/dist/config/availability.js +10 -0
- package/dist/config/availability.js.map +1 -0
- package/dist/config/normalize.d.ts +7 -0
- package/dist/config/normalize.d.ts.map +1 -0
- package/dist/config/normalize.js +119 -0
- package/dist/config/normalize.js.map +1 -0
- package/dist/config/parse-access.d.ts.map +1 -1
- package/dist/config/parse-access.js +4 -1
- package/dist/config/parse-access.js.map +1 -1
- package/dist/config/parse-commerce.d.ts +5 -1
- package/dist/config/parse-commerce.d.ts.map +1 -1
- package/dist/config/parse-commerce.js +79 -22
- package/dist/config/parse-commerce.js.map +1 -1
- package/dist/config/parse-credits.d.ts.map +1 -1
- package/dist/config/parse-credits.js +10 -7
- package/dist/config/parse-credits.js.map +1 -1
- package/dist/config/parse-plans.d.ts.map +1 -1
- package/dist/config/parse-plans.js +31 -15
- package/dist/config/parse-plans.js.map +1 -1
- package/dist/config/parse-pricing.d.ts.map +1 -1
- package/dist/config/parse-pricing.js +42 -27
- package/dist/config/parse-pricing.js.map +1 -1
- package/dist/config/parse-utils.d.ts +4 -0
- package/dist/config/parse-utils.d.ts.map +1 -1
- package/dist/config/parse-utils.js +26 -1
- package/dist/config/parse-utils.js.map +1 -1
- package/dist/config/types.d.ts +8 -4
- package/dist/config/types.d.ts.map +1 -1
- package/dist/config/types.js.map +1 -1
- package/dist/config.d.ts +5 -4
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +118 -70
- package/dist/config.js.map +1 -1
- package/dist/credits/amount.d.ts.map +1 -1
- package/dist/credits/amount.js +5 -4
- package/dist/credits/amount.js.map +1 -1
- package/dist/credits/catalog-runtime.d.ts +15 -2
- package/dist/credits/catalog-runtime.d.ts.map +1 -1
- package/dist/credits/catalog-runtime.js +77 -21
- package/dist/credits/catalog-runtime.js.map +1 -1
- package/dist/credits/lease-workflow.d.ts +3 -1
- package/dist/credits/lease-workflow.d.ts.map +1 -1
- package/dist/credits/lease-workflow.js +47 -38
- package/dist/credits/lease-workflow.js.map +1 -1
- package/dist/credits/low-balance-monitor.d.ts +2 -7
- package/dist/credits/low-balance-monitor.d.ts.map +1 -1
- package/dist/credits/low-balance-monitor.js +6 -57
- package/dist/credits/low-balance-monitor.js.map +1 -1
- package/dist/credits/postgres/repositories/analytics.d.ts +3 -3
- package/dist/credits/postgres/repositories/analytics.d.ts.map +1 -1
- package/dist/credits/postgres/repositories/analytics.js +25 -7
- package/dist/credits/postgres/repositories/analytics.js.map +1 -1
- package/dist/credits/postgres/repositories/balance.d.ts +28 -0
- package/dist/credits/postgres/repositories/balance.d.ts.map +1 -1
- package/dist/credits/postgres/repositories/balance.js +33 -14
- package/dist/credits/postgres/repositories/balance.js.map +1 -1
- package/dist/credits/postgres/repositories/bucket.d.ts.map +1 -1
- package/dist/credits/postgres/repositories/bucket.js +2 -2
- package/dist/credits/postgres/repositories/bucket.js.map +1 -1
- package/dist/credits/postgres/repositories/catalog.d.ts +2 -2
- package/dist/credits/postgres/repositories/catalog.d.ts.map +1 -1
- package/dist/credits/postgres/repositories/catalog.js +2 -12
- package/dist/credits/postgres/repositories/catalog.js.map +1 -1
- package/dist/credits/postgres/repositories/deduction.d.ts +2 -0
- package/dist/credits/postgres/repositories/deduction.d.ts.map +1 -1
- package/dist/credits/postgres/repositories/deduction.js +9 -2
- package/dist/credits/postgres/repositories/deduction.js.map +1 -1
- package/dist/credits/postgres/repositories/lease.d.ts +3 -0
- package/dist/credits/postgres/repositories/lease.d.ts.map +1 -1
- package/dist/credits/postgres/repositories/lease.js +46 -12
- package/dist/credits/postgres/repositories/lease.js.map +1 -1
- package/dist/credits/postgres/repositories/plan.d.ts +6 -1
- package/dist/credits/postgres/repositories/plan.d.ts.map +1 -1
- package/dist/credits/postgres/repositories/plan.js +13 -3
- package/dist/credits/postgres/repositories/plan.js.map +1 -1
- package/dist/credits/postgres/repositories/team.d.ts +1 -1
- package/dist/credits/postgres/repositories/team.d.ts.map +1 -1
- package/dist/credits/postgres/repositories/team.js +9 -5
- package/dist/credits/postgres/repositories/team.js.map +1 -1
- package/dist/credits/postgres/store.d.ts +30 -20
- package/dist/credits/postgres/store.d.ts.map +1 -1
- package/dist/credits/postgres/store.js +335 -251
- package/dist/credits/postgres/store.js.map +1 -1
- package/dist/credits/postgres/value-mappers.d.ts.map +1 -1
- package/dist/credits/postgres/value-mappers.js +4 -4
- package/dist/credits/postgres/value-mappers.js.map +1 -1
- package/dist/credits/rated-wire.d.ts +7 -0
- package/dist/credits/rated-wire.d.ts.map +1 -0
- package/dist/credits/rated-wire.js +70 -0
- package/dist/credits/rated-wire.js.map +1 -0
- package/dist/credits/service-errors.d.ts.map +1 -1
- package/dist/credits/service-errors.js +8 -1
- package/dist/credits/service-errors.js.map +1 -1
- package/dist/credits/service-types.d.ts +5 -7
- package/dist/credits/service-types.d.ts.map +1 -1
- package/dist/credits/service-types.js.map +1 -1
- package/dist/credits/service.d.ts +12 -9
- package/dist/credits/service.d.ts.map +1 -1
- package/dist/credits/service.js +161 -138
- package/dist/credits/service.js.map +1 -1
- package/dist/credits/store.d.ts +11 -3
- package/dist/credits/store.d.ts.map +1 -1
- package/dist/credits/store.js +9 -0
- package/dist/credits/store.js.map +1 -1
- package/dist/credits/types/account.d.ts +9 -1
- package/dist/credits/types/account.d.ts.map +1 -1
- package/dist/credits/types/account.js.map +1 -1
- package/dist/credits/types/admission.d.ts +1 -0
- package/dist/credits/types/admission.d.ts.map +1 -1
- package/dist/credits/types/admission.js.map +1 -1
- package/dist/credits/types/catalog.d.ts +1 -0
- package/dist/credits/types/catalog.d.ts.map +1 -1
- package/dist/credits/types/catalog.js.map +1 -1
- package/dist/credits/types/grants.d.ts +12 -0
- package/dist/credits/types/grants.d.ts.map +1 -1
- package/dist/credits/types/grants.js.map +1 -1
- package/dist/credits/types/ledger.d.ts +13 -0
- package/dist/credits/types/ledger.d.ts.map +1 -1
- package/dist/credits/types/ledger.js.map +1 -1
- package/dist/credits/types/quotas.d.ts +2 -1
- package/dist/credits/types/quotas.d.ts.map +1 -1
- package/dist/credits/types/quotas.js.map +1 -1
- package/dist/engine.d.ts +4 -1
- package/dist/engine.d.ts.map +1 -1
- package/dist/engine.js +59 -36
- package/dist/engine.js.map +1 -1
- package/dist/errors.d.ts +12 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +13 -0
- package/dist/errors.js.map +1 -1
- package/dist/expr/evaluator.d.ts.map +1 -1
- package/dist/expr/evaluator.js +29 -9
- package/dist/expr/evaluator.js.map +1 -1
- package/dist/expr/language.js +1 -1
- package/dist/expr/language.js.map +1 -1
- package/dist/expr.d.ts.map +1 -1
- package/dist/expr.js +5 -6
- package/dist/expr.js.map +1 -1
- package/dist/generated/pricing-config.schema.json +272 -228
- package/dist/generated/pricing-config.types.d.ts +128 -79
- package/dist/generated/pricing-config.types.d.ts.map +1 -1
- package/dist/generated/pricing-config.types.js.map +1 -1
- package/dist/index.d.ts +8 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/load-config-file.d.ts +5 -1
- package/dist/load-config-file.d.ts.map +1 -1
- package/dist/load-config-file.js +56 -17
- package/dist/load-config-file.js.map +1 -1
- package/dist/metrics.d.ts +1 -1
- package/dist/metrics.d.ts.map +1 -1
- package/dist/metrics.js.map +1 -1
- package/dist/node.d.ts +2 -2
- package/dist/node.d.ts.map +1 -1
- package/dist/node.js +1 -1
- package/dist/node.js.map +1 -1
- package/dist/pricing-decimal.d.ts +7 -0
- package/dist/pricing-decimal.d.ts.map +1 -0
- package/dist/pricing-decimal.js +43 -0
- package/dist/pricing-decimal.js.map +1 -0
- package/dist/providers/dodo/better-auth-core.d.ts +1 -1
- package/dist/providers/dodo/better-auth-core.d.ts.map +1 -1
- package/dist/providers/dodo/better-auth-core.js +2 -2
- package/dist/providers/dodo/better-auth-core.js.map +1 -1
- package/dist/providers/dodo/better-auth.d.ts.map +1 -1
- package/dist/providers/dodo/better-auth.js +16 -2
- package/dist/providers/dodo/better-auth.js.map +1 -1
- package/dist/providers/dodo/event-mapper.d.ts +1 -1
- package/dist/providers/dodo/event-mapper.d.ts.map +1 -1
- package/dist/providers/dodo/event-mapper.js +124 -18
- package/dist/providers/dodo/event-mapper.js.map +1 -1
- package/dist/providers/dodo/nextjs-core.d.ts +1 -1
- package/dist/providers/dodo/nextjs-core.d.ts.map +1 -1
- package/dist/providers/dodo/nextjs-core.js +2 -2
- package/dist/providers/dodo/nextjs-core.js.map +1 -1
- package/dist/providers/dodo/nextjs.d.ts.map +1 -1
- package/dist/providers/dodo/nextjs.js +16 -6
- package/dist/providers/dodo/nextjs.js.map +1 -1
- package/dist/providers/dodo/provider.d.ts +5 -2
- package/dist/providers/dodo/provider.d.ts.map +1 -1
- package/dist/providers/dodo/provider.js +46 -7
- package/dist/providers/dodo/provider.js.map +1 -1
- package/dist/providers/dodo/verified-payment-payload.d.ts +6 -0
- package/dist/providers/dodo/verified-payment-payload.d.ts.map +1 -0
- package/dist/providers/dodo/verified-payment-payload.js +42 -0
- package/dist/providers/dodo/verified-payment-payload.js.map +1 -0
- package/dist/providers/index.d.ts +1 -1
- package/dist/providers/index.d.ts.map +1 -1
- package/dist/providers/index.js.map +1 -1
- package/dist/providers/mock/provider.d.ts +4 -1
- package/dist/providers/mock/provider.d.ts.map +1 -1
- package/dist/providers/mock/provider.js +3 -1
- package/dist/providers/mock/provider.js.map +1 -1
- package/dist/providers/stripe/event-mapper.d.ts.map +1 -1
- package/dist/providers/stripe/event-mapper.js +51 -24
- package/dist/providers/stripe/event-mapper.js.map +1 -1
- package/dist/providers/stripe/provider.d.ts +4 -1
- package/dist/providers/stripe/provider.d.ts.map +1 -1
- package/dist/providers/stripe/provider.js +118 -34
- package/dist/providers/stripe/provider.js.map +1 -1
- package/dist/providers/types.d.ts +16 -2
- package/dist/providers/types.d.ts.map +1 -1
- package/dist/providers/types.js +9 -0
- package/dist/providers/types.js.map +1 -1
- package/dist/shared/postgres-client.d.ts +5 -0
- package/dist/shared/postgres-client.d.ts.map +1 -1
- package/dist/shared/postgres-client.js +72 -11
- package/dist/shared/postgres-client.js.map +1 -1
- package/dist/shared/postgres-errors.d.ts.map +1 -1
- package/dist/shared/postgres-errors.js +6 -0
- package/dist/shared/postgres-errors.js.map +1 -1
- package/dist/shared/provider-rejection.d.ts +3 -0
- package/dist/shared/provider-rejection.d.ts.map +1 -0
- package/dist/shared/provider-rejection.js +17 -0
- package/dist/shared/provider-rejection.js.map +1 -0
- package/dist/shared/timestamp.d.ts +5 -0
- package/dist/shared/timestamp.d.ts.map +1 -0
- package/dist/shared/timestamp.js +21 -0
- package/dist/shared/timestamp.js.map +1 -0
- package/dist/starter.yaml +17 -0
- package/dist/storage/adapters/clickhouse.d.ts +1 -1
- package/dist/storage/adapters/clickhouse.d.ts.map +1 -1
- package/dist/storage/adapters/clickhouse.js +42 -37
- package/dist/storage/adapters/clickhouse.js.map +1 -1
- package/dist/storage/adapters/s3.d.ts +5 -0
- package/dist/storage/adapters/s3.d.ts.map +1 -1
- package/dist/storage/adapters/s3.js +46 -14
- package/dist/storage/adapters/s3.js.map +1 -1
- package/dist/storage/diagnostics.d.ts +3 -7
- package/dist/storage/diagnostics.d.ts.map +1 -1
- package/dist/storage/diagnostics.js +6 -15
- package/dist/storage/diagnostics.js.map +1 -1
- package/dist/storage/outbox-worker.d.ts.map +1 -1
- package/dist/storage/outbox-worker.js +4 -3
- package/dist/storage/outbox-worker.js.map +1 -1
- package/dist/storage/ports.d.ts +8 -0
- package/dist/storage/ports.d.ts.map +1 -1
- package/dist/storage/ports.js.map +1 -1
- package/dist/storage/postgres-repository.d.ts +1 -3
- package/dist/storage/postgres-repository.d.ts.map +1 -1
- package/dist/storage/postgres-repository.js +34 -12
- package/dist/storage/postgres-repository.js.map +1 -1
- package/dist/storage/raw-json.d.ts +10 -0
- package/dist/storage/raw-json.d.ts.map +1 -0
- package/dist/storage/raw-json.js +19 -0
- package/dist/storage/raw-json.js.map +1 -0
- package/dist/storage/runtime.d.ts +15 -10
- package/dist/storage/runtime.d.ts.map +1 -1
- package/dist/storage/runtime.js +97 -68
- package/dist/storage/runtime.js.map +1 -1
- package/dist/telemetry/index.d.ts +1 -1
- package/dist/telemetry/index.js +1 -1
- package/dist/telemetry/index.js.map +1 -1
- package/package.json +78 -71
- package/dist/credits/queries.d.ts +0 -33
- package/dist/credits/queries.d.ts.map +0 -1
- package/dist/credits/queries.js +0 -71
- package/dist/credits/queries.js.map +0 -1
|
@@ -5,33 +5,22 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export type Version = 1;
|
|
7
7
|
export type DefaultPlan = string | null;
|
|
8
|
+
/**
|
|
9
|
+
* Plan assigned when a subscription ends; omission clears the entitlement if it still comes from that subscription.
|
|
10
|
+
*/
|
|
11
|
+
export type SubscriptionEndPlan = string | null;
|
|
8
12
|
export type Unit = string;
|
|
9
|
-
export type Type = "string" | "number" | "boolean";
|
|
10
|
-
export type Required = boolean;
|
|
11
|
-
export type Extends = string | null;
|
|
12
|
-
export type Op = "eq";
|
|
13
|
-
export type Value = string | number | boolean;
|
|
14
|
-
export type Op1 = "in";
|
|
15
13
|
/**
|
|
16
|
-
*
|
|
14
|
+
* Require this usage measure; set false to treat omission as zero.
|
|
17
15
|
*/
|
|
18
|
-
export type
|
|
19
|
-
export type Op2 = "not_in";
|
|
16
|
+
export type Required = boolean;
|
|
20
17
|
/**
|
|
21
|
-
*
|
|
18
|
+
* Inline charge for root rate cards; cannot duplicate a root card operation. Null means omitted.
|
|
22
19
|
*/
|
|
23
|
-
export type
|
|
24
|
-
export type
|
|
25
|
-
export type Value1 = string;
|
|
26
|
-
export type Op4 = "range";
|
|
27
|
-
export type Gt = string | null;
|
|
28
|
-
export type Gte = string | null;
|
|
29
|
-
export type Lt = string | null;
|
|
30
|
-
export type Lte = string | null;
|
|
31
|
-
export type Charge = FlatCharge | PerUnitCharge | PackageCharge | GraduatedCharge | VolumeCharge | ExpressionCharge | SumCharge;
|
|
32
|
-
export type Type1 = "flat";
|
|
20
|
+
export type Charge = (FlatCharge | PerUnitCharge | PackageCharge | GraduatedCharge | VolumeCharge | ExpressionCharge | SumCharge) | null;
|
|
21
|
+
export type Type = "flat";
|
|
33
22
|
export type Amount = string;
|
|
34
|
-
export type
|
|
23
|
+
export type Type1 = "per_unit";
|
|
35
24
|
export type Measure = string;
|
|
36
25
|
/**
|
|
37
26
|
* Credits charged for each unit_size units of the selected measure.
|
|
@@ -41,12 +30,12 @@ export type Rate = string;
|
|
|
41
30
|
* Number of measure units represented by one rate unit; use 1000000 for per-million-token rates.
|
|
42
31
|
*/
|
|
43
32
|
export type UnitSize = string;
|
|
44
|
-
export type
|
|
33
|
+
export type Type2 = "package";
|
|
45
34
|
export type Measure1 = string;
|
|
46
35
|
export type Units = string;
|
|
47
36
|
export type Amount1 = string;
|
|
48
37
|
export type Rounding = "ceil" | "floor" | "nearest";
|
|
49
|
-
export type
|
|
38
|
+
export type Type3 = "graduated";
|
|
50
39
|
export type Measure2 = string;
|
|
51
40
|
/**
|
|
52
41
|
* @minItems 1
|
|
@@ -54,15 +43,15 @@ export type Measure2 = string;
|
|
|
54
43
|
export type Tiers = [GraduatedTier, ...GraduatedTier[]];
|
|
55
44
|
export type UpTo = string | null;
|
|
56
45
|
export type Rate1 = string;
|
|
57
|
-
export type
|
|
46
|
+
export type Type4 = "volume";
|
|
58
47
|
export type Measure3 = string;
|
|
59
48
|
/**
|
|
60
49
|
* @minItems 1
|
|
61
50
|
*/
|
|
62
51
|
export type Tiers1 = [GraduatedTier, ...GraduatedTier[]];
|
|
63
|
-
export type
|
|
52
|
+
export type Type5 = "expression";
|
|
64
53
|
export type Formula = string;
|
|
65
|
-
export type
|
|
54
|
+
export type Type6 = "sum";
|
|
66
55
|
/**
|
|
67
56
|
* @minItems 1
|
|
68
57
|
*/
|
|
@@ -70,11 +59,38 @@ export type Components = [
|
|
|
70
59
|
(FlatCharge | PerUnitCharge | PackageCharge | GraduatedCharge | VolumeCharge | ExpressionCharge | SumCharge),
|
|
71
60
|
...(FlatCharge | PerUnitCharge | PackageCharge | GraduatedCharge | VolumeCharge | ExpressionCharge | SumCharge)[]
|
|
72
61
|
];
|
|
62
|
+
export type Type7 = "string" | "number" | "boolean";
|
|
63
|
+
export type Required1 = boolean;
|
|
64
|
+
export type Extends = string | null;
|
|
65
|
+
export type Op = "eq";
|
|
66
|
+
export type Value = string | number | boolean;
|
|
67
|
+
export type Op1 = "in";
|
|
68
|
+
/**
|
|
69
|
+
* @minItems 1
|
|
70
|
+
*/
|
|
71
|
+
export type Values = [string | number | boolean, ...(string | number | boolean)[]];
|
|
72
|
+
export type Op2 = "not_in";
|
|
73
|
+
/**
|
|
74
|
+
* @minItems 1
|
|
75
|
+
*/
|
|
76
|
+
export type Values1 = [string | number | boolean, ...(string | number | boolean)[]];
|
|
77
|
+
export type Op3 = "prefix";
|
|
78
|
+
export type Value1 = string;
|
|
79
|
+
export type Op4 = "range";
|
|
80
|
+
export type Gt = string | null;
|
|
81
|
+
export type Gte = string | null;
|
|
82
|
+
export type Lt = string | null;
|
|
83
|
+
export type Lte = string | null;
|
|
84
|
+
export type Charge1 = FlatCharge | PerUnitCharge | PackageCharge | GraduatedCharge | VolumeCharge | ExpressionCharge | SumCharge;
|
|
73
85
|
export type Rules = PriceRule[];
|
|
74
86
|
export type Unmatched = RejectUnmatched | ChargeUnmatched;
|
|
75
87
|
export type Action = "reject";
|
|
76
88
|
export type Action1 = "charge";
|
|
77
|
-
export type
|
|
89
|
+
export type Charge2 = FlatCharge | PerUnitCharge | PackageCharge | GraduatedCharge | VolumeCharge | ExpressionCharge | SumCharge;
|
|
90
|
+
/**
|
|
91
|
+
* Grant this amount once per subject on account creation; null means omitted.
|
|
92
|
+
*/
|
|
93
|
+
export type OnSignup = string | null;
|
|
78
94
|
export type Priority = number;
|
|
79
95
|
export type Expiry = NeverExpiry | AfterGrantExpiry | EndOfWindowExpiry | FixedExpiry | SubscriptionEndExpiry;
|
|
80
96
|
export type Type8 = "never";
|
|
@@ -111,7 +127,13 @@ export type EndsAt = string | null;
|
|
|
111
127
|
export type Regions = string[];
|
|
112
128
|
export type Plans = string[];
|
|
113
129
|
export type Regions1 = string[];
|
|
130
|
+
/**
|
|
131
|
+
* Account-created programs must award at most once per subject.
|
|
132
|
+
*/
|
|
114
133
|
export type MaxAwardsPerSubject = number;
|
|
134
|
+
/**
|
|
135
|
+
* Account-created programs must use subject scope.
|
|
136
|
+
*/
|
|
115
137
|
export type IdempotencyScope = "subject" | "event";
|
|
116
138
|
export type Currency = string;
|
|
117
139
|
export type UnitsPerMajor = string;
|
|
@@ -132,6 +154,10 @@ export type Default3 = string;
|
|
|
132
154
|
export type Pattern = string | null;
|
|
133
155
|
export type MaxInFlight = number | null;
|
|
134
156
|
export type MaxInFlight1 = number;
|
|
157
|
+
/**
|
|
158
|
+
* Plan level for subscription changes, distinct from display rank.
|
|
159
|
+
*/
|
|
160
|
+
export type Tier = number;
|
|
135
161
|
export type DisplayName = string;
|
|
136
162
|
/**
|
|
137
163
|
* Public catalog ordering. Lower ranks appear first; ties are ordered by plan key.
|
|
@@ -139,7 +165,10 @@ export type DisplayName = string;
|
|
|
139
165
|
export type Rank = number;
|
|
140
166
|
export type Description = string | null;
|
|
141
167
|
export type RateCard1 = string | null;
|
|
142
|
-
|
|
168
|
+
/**
|
|
169
|
+
* Allow all, none, or a nonempty list of operations; omission denies all.
|
|
170
|
+
*/
|
|
171
|
+
export type AllowedOperations = ("all" | "none") | [string, ...string[]];
|
|
143
172
|
export type Amount3 = string;
|
|
144
173
|
/**
|
|
145
174
|
* Spend priority shared with credit buckets. Lower values are used first.
|
|
@@ -172,12 +201,27 @@ export type AmountMinor = number;
|
|
|
172
201
|
export type Currency1 = string;
|
|
173
202
|
export type TaxBehavior = "inclusive" | "exclusive" | "unspecified";
|
|
174
203
|
export type Type25 = "stripe_price";
|
|
175
|
-
|
|
204
|
+
/**
|
|
205
|
+
* Provider ID or test/live/sandbox mapping; resolved when using a provider in that environment.
|
|
206
|
+
*/
|
|
207
|
+
export type PriceId = string | {
|
|
208
|
+
[k: string]: string;
|
|
209
|
+
};
|
|
176
210
|
export type Type26 = "dodo_product";
|
|
177
|
-
|
|
211
|
+
/**
|
|
212
|
+
* Provider ID or test/live/sandbox mapping; resolved when using a provider in that environment.
|
|
213
|
+
*/
|
|
214
|
+
export type ProductId = string | {
|
|
215
|
+
[k: string]: string;
|
|
216
|
+
};
|
|
178
217
|
export type Type27 = "custom_object";
|
|
179
218
|
export type ObjectKind = "subscription" | "one_time";
|
|
180
|
-
|
|
219
|
+
/**
|
|
220
|
+
* Provider ID or test/live/sandbox mapping; resolved when using a provider in that environment.
|
|
221
|
+
*/
|
|
222
|
+
export type ExternalId = string | {
|
|
223
|
+
[k: string]: string;
|
|
224
|
+
};
|
|
181
225
|
export type Type28 = "subscription";
|
|
182
226
|
export type Plan = string;
|
|
183
227
|
export type Amount4 = string;
|
|
@@ -224,7 +268,7 @@ export interface BursarConfig {
|
|
|
224
268
|
* Usage operations, their measures and dimensions, and reusable rate cards.
|
|
225
269
|
*/
|
|
226
270
|
pricing?: PricingConfig | null;
|
|
227
|
-
credits
|
|
271
|
+
credits?: CreditsConfig;
|
|
228
272
|
entitlements?: EntitlementsConfig;
|
|
229
273
|
admission?: AdmissionConfig;
|
|
230
274
|
plans?: Plans1;
|
|
@@ -235,16 +279,18 @@ export interface BursarConfig {
|
|
|
235
279
|
*/
|
|
236
280
|
export interface CatalogConfig {
|
|
237
281
|
default_plan?: DefaultPlan;
|
|
282
|
+
subscription_end_plan?: SubscriptionEndPlan;
|
|
238
283
|
}
|
|
239
284
|
export interface PricingConfig {
|
|
240
285
|
operations: Operations;
|
|
241
|
-
rate_cards
|
|
286
|
+
rate_cards?: RateCards;
|
|
242
287
|
}
|
|
243
288
|
export interface Operations {
|
|
244
289
|
[k: string]: OperationDefinition;
|
|
245
290
|
}
|
|
246
291
|
export interface OperationDefinition {
|
|
247
|
-
measures
|
|
292
|
+
measures?: Measures;
|
|
293
|
+
charge?: Charge;
|
|
248
294
|
dimensions?: Dimensions;
|
|
249
295
|
}
|
|
250
296
|
export interface Measures {
|
|
@@ -252,13 +298,53 @@ export interface Measures {
|
|
|
252
298
|
}
|
|
253
299
|
export interface MeasureDefinition {
|
|
254
300
|
unit: Unit;
|
|
301
|
+
required?: Required;
|
|
302
|
+
}
|
|
303
|
+
export interface FlatCharge {
|
|
304
|
+
type: Type;
|
|
305
|
+
amount: Amount;
|
|
306
|
+
}
|
|
307
|
+
export interface PerUnitCharge {
|
|
308
|
+
type: Type1;
|
|
309
|
+
measure: Measure;
|
|
310
|
+
rate: Rate;
|
|
311
|
+
unit_size?: UnitSize;
|
|
312
|
+
}
|
|
313
|
+
export interface PackageCharge {
|
|
314
|
+
type: Type2;
|
|
315
|
+
measure: Measure1;
|
|
316
|
+
units: Units;
|
|
317
|
+
amount: Amount1;
|
|
318
|
+
rounding?: Rounding;
|
|
319
|
+
}
|
|
320
|
+
export interface GraduatedCharge {
|
|
321
|
+
type: Type3;
|
|
322
|
+
measure: Measure2;
|
|
323
|
+
tiers: Tiers;
|
|
324
|
+
}
|
|
325
|
+
export interface GraduatedTier {
|
|
326
|
+
up_to?: UpTo;
|
|
327
|
+
rate: Rate1;
|
|
328
|
+
}
|
|
329
|
+
export interface VolumeCharge {
|
|
330
|
+
type: Type4;
|
|
331
|
+
measure: Measure3;
|
|
332
|
+
tiers: Tiers1;
|
|
333
|
+
}
|
|
334
|
+
export interface ExpressionCharge {
|
|
335
|
+
type: Type5;
|
|
336
|
+
formula: Formula;
|
|
337
|
+
}
|
|
338
|
+
export interface SumCharge {
|
|
339
|
+
type: Type6;
|
|
340
|
+
components: Components;
|
|
255
341
|
}
|
|
256
342
|
export interface Dimensions {
|
|
257
343
|
[k: string]: DimensionDefinition;
|
|
258
344
|
}
|
|
259
345
|
export interface DimensionDefinition {
|
|
260
|
-
type:
|
|
261
|
-
required?:
|
|
346
|
+
type: Type7;
|
|
347
|
+
required?: Required1;
|
|
262
348
|
}
|
|
263
349
|
export interface RateCards {
|
|
264
350
|
[k: string]: RateCard;
|
|
@@ -276,7 +362,7 @@ export interface OperationPricing {
|
|
|
276
362
|
}
|
|
277
363
|
export interface PriceRule {
|
|
278
364
|
when: When;
|
|
279
|
-
charge:
|
|
365
|
+
charge: Charge1;
|
|
280
366
|
}
|
|
281
367
|
export interface When {
|
|
282
368
|
[k: string]: EqualMatcher | InMatcher | NotInMatcher | PrefixMatcher | RangeMatcher;
|
|
@@ -304,56 +390,18 @@ export interface RangeMatcher {
|
|
|
304
390
|
lt?: Lt;
|
|
305
391
|
lte?: Lte;
|
|
306
392
|
}
|
|
307
|
-
export interface FlatCharge {
|
|
308
|
-
type: Type1;
|
|
309
|
-
amount: Amount;
|
|
310
|
-
}
|
|
311
|
-
export interface PerUnitCharge {
|
|
312
|
-
type: Type2;
|
|
313
|
-
measure: Measure;
|
|
314
|
-
rate: Rate;
|
|
315
|
-
unit_size?: UnitSize;
|
|
316
|
-
}
|
|
317
|
-
export interface PackageCharge {
|
|
318
|
-
type: Type3;
|
|
319
|
-
measure: Measure1;
|
|
320
|
-
units: Units;
|
|
321
|
-
amount: Amount1;
|
|
322
|
-
rounding?: Rounding;
|
|
323
|
-
}
|
|
324
|
-
export interface GraduatedCharge {
|
|
325
|
-
type: Type4;
|
|
326
|
-
measure: Measure2;
|
|
327
|
-
tiers: Tiers;
|
|
328
|
-
}
|
|
329
|
-
export interface GraduatedTier {
|
|
330
|
-
up_to?: UpTo;
|
|
331
|
-
rate: Rate1;
|
|
332
|
-
}
|
|
333
|
-
export interface VolumeCharge {
|
|
334
|
-
type: Type5;
|
|
335
|
-
measure: Measure3;
|
|
336
|
-
tiers: Tiers1;
|
|
337
|
-
}
|
|
338
|
-
export interface ExpressionCharge {
|
|
339
|
-
type: Type6;
|
|
340
|
-
formula: Formula;
|
|
341
|
-
}
|
|
342
|
-
export interface SumCharge {
|
|
343
|
-
type: Type7;
|
|
344
|
-
components: Components;
|
|
345
|
-
}
|
|
346
393
|
export interface RejectUnmatched {
|
|
347
394
|
action: Action;
|
|
348
395
|
}
|
|
349
396
|
export interface ChargeUnmatched {
|
|
350
397
|
action: Action1;
|
|
351
|
-
charge:
|
|
398
|
+
charge: Charge2;
|
|
352
399
|
}
|
|
353
400
|
/**
|
|
354
401
|
* Credit buckets, spending policies, grants, and optional display conversion.
|
|
355
402
|
*/
|
|
356
403
|
export interface CreditsConfig {
|
|
404
|
+
on_signup?: OnSignup;
|
|
357
405
|
buckets?: Buckets;
|
|
358
406
|
default_bucket?: DefaultBucket;
|
|
359
407
|
policies?: Policies;
|
|
@@ -496,6 +544,7 @@ export interface Plans1 {
|
|
|
496
544
|
[k: string]: PlanDefinition;
|
|
497
545
|
}
|
|
498
546
|
export interface PlanDefinition {
|
|
547
|
+
tier?: Tier;
|
|
499
548
|
display_name: DisplayName;
|
|
500
549
|
rank?: Rank;
|
|
501
550
|
description?: Description;
|
|
@@ -588,11 +637,11 @@ export interface Providers1 {
|
|
|
588
637
|
[k: string]: StripePriceReference | DodoProductReference | CustomObjectReference;
|
|
589
638
|
}
|
|
590
639
|
export interface StripePriceReference {
|
|
591
|
-
type
|
|
640
|
+
type?: Type25;
|
|
592
641
|
price_id: PriceId;
|
|
593
642
|
}
|
|
594
643
|
export interface DodoProductReference {
|
|
595
|
-
type
|
|
644
|
+
type?: Type26;
|
|
596
645
|
product_id: ProductId;
|
|
597
646
|
}
|
|
598
647
|
export interface CustomObjectReference {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pricing-config.types.d.ts","sourceRoot":"","sources":["../../src/generated/pricing-config.types.ts"],"names":[],"mappings":"AACA;;;;GAIG;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC;AACxB,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,IAAI,CAAC;AACxC,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC;AAC1B,MAAM,MAAM,IAAI,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AACnD,MAAM,MAAM,QAAQ,GAAG,OAAO,CA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Ac,CAAC;CAClC;AACD,MAAM,WAAW,sBAAsB;IACrC,eAAe,EAAE,cAAc,CAAC;IAChC,aAAa,EAAE,YAAY,CAAC;IAC5B,WAAW,EAAE,UAAU,CAAC;IACxB,QAAQ,EAAE,YAAY,CAAC;IACvB,MAAM,EAAE,kBAAkB,CAAC;CAC5B;AACD,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,QAAQ,CAAC;IAClB,OAAO,EAAE,QAAQ,CAAC;IAClB,OAAO,EAAE,QAAQ,CAAC;CACnB;AACD,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,QAAQ,CAAC;IAClB,OAAO,EAAE,QAAQ,CAAC;IAClB,OAAO,EAAE,QAAQ,CAAC;CACnB;AACD,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,YAAY,CAAC;IAC5B,MAAM,EAAE,OAAO,CAAC;IAChB,gBAAgB,EAAE,cAAc,CAAC;IACjC,QAAQ,EAAE,QAAQ,CAAC;IACnB,wBAAwB,CAAC,EAAE,sBAAsB,CAAC;IAClD,cAAc,CAAC,EAAE,aAAa,CAAC;CAChC"}
|
|
1
|
+
{"version":3,"file":"pricing-config.types.d.ts","sourceRoot":"","sources":["../../src/generated/pricing-config.types.ts"],"names":[],"mappings":"AACA;;;;GAIG;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC;AACxB,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,IAAI,CAAC;AACxC;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,IAAI,CAAC;AAChD,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC;AAC1B;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,CAAC;AAC/B;;GAEG;AACH,MAAM,MAAM,MAAM,GACd,CACI,UAAU,GACV,aAAa,GACb,aAAa,GACb,eAAe,GACf,YAAY,GACZ,gBAAgB,GAChB,SAAS,CACZ,GACD,IAAI,CAAC;AACT,MAAM,MAAM,IAAI,GAAG,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B,MAAM,EAAE,OAAO,CAAC;IAChB,gBAAgB,EAAE,cAAc,CAAC;IACjC,QAAQ,EAAE,QAAQ,CAAC;IACnB,wBAAwB,CAAC,EAAE,sBAAsB,CAAC;IAClD,cAAc,CAAC,EAAE,aAAa,CAAC;CAChC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pricing-config.types.js","sourceRoot":"","sources":["../../src/generated/pricing-config.types.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;;GAIG","sourcesContent":["/* eslint-disable */\n/**\n * This file was automatically generated by json-schema-to-typescript.\n * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,\n * and run json-schema-to-typescript to regenerate this file.\n */\n\nexport type Version = 1;\nexport type DefaultPlan = string | null;\nexport type Unit = string;\nexport type Type = \"string\" | \"number\" | \"boolean\";\nexport type Required = boolean;\nexport type Extends = string | null;\nexport type Op = \"eq\";\nexport type Value = string | number | boolean;\nexport type Op1 = \"in\";\n/**\n * @minItems 1\n */\nexport type Values = [string | number | boolean, ...(string | number | boolean)[]];\nexport type Op2 = \"not_in\";\n/**\n * @minItems 1\n */\nexport type Values1 = [string | number | boolean, ...(string | number | boolean)[]];\nexport type Op3 = \"prefix\";\nexport type Value1 = string;\nexport type Op4 = \"range\";\nexport type Gt = string | null;\nexport type Gte = string | null;\nexport type Lt = string | null;\nexport type Lte = string | null;\nexport type Charge =\n | FlatCharge\n | PerUnitCharge\n | PackageCharge\n | GraduatedCharge\n | VolumeCharge\n | ExpressionCharge\n | SumCharge;\nexport type Type1 = \"flat\";\nexport type Amount = string;\nexport type Type2 = \"per_unit\";\nexport type Measure = string;\n/**\n * Credits charged for each unit_size units of the selected measure.\n */\nexport type Rate = string;\n/**\n * Number of measure units represented by one rate unit; use 1000000 for per-million-token rates.\n */\nexport type UnitSize = string;\nexport type Type3 = \"package\";\nexport type Measure1 = string;\nexport type Units = string;\nexport type Amount1 = string;\nexport type Rounding = \"ceil\" | \"floor\" | \"nearest\";\nexport type Type4 = \"graduated\";\nexport type Measure2 = string;\n/**\n * @minItems 1\n */\nexport type Tiers = [GraduatedTier, ...GraduatedTier[]];\nexport type UpTo = string | null;\nexport type Rate1 = string;\nexport type Type5 = \"volume\";\nexport type Measure3 = string;\n/**\n * @minItems 1\n */\nexport type Tiers1 = [GraduatedTier, ...GraduatedTier[]];\nexport type Type6 = \"expression\";\nexport type Formula = string;\nexport type Type7 = \"sum\";\n/**\n * @minItems 1\n */\nexport type Components = [\n (\n | FlatCharge\n | PerUnitCharge\n | PackageCharge\n | GraduatedCharge\n | VolumeCharge\n | ExpressionCharge\n | SumCharge\n ),\n ...(\n | FlatCharge\n | PerUnitCharge\n | PackageCharge\n | GraduatedCharge\n | VolumeCharge\n | ExpressionCharge\n | SumCharge\n )[],\n];\nexport type Rules = PriceRule[];\nexport type Unmatched = RejectUnmatched | ChargeUnmatched;\nexport type Action = \"reject\";\nexport type Action1 = \"charge\";\nexport type Charge1 =\n | FlatCharge\n | PerUnitCharge\n | PackageCharge\n | GraduatedCharge\n | VolumeCharge\n | ExpressionCharge\n | SumCharge;\nexport type Priority = number;\nexport type Expiry =\n | NeverExpiry\n | AfterGrantExpiry\n | EndOfWindowExpiry\n | FixedExpiry\n | SubscriptionEndExpiry;\nexport type Type8 = \"never\";\nexport type Type9 = \"after_grant\";\nexport type Unit1 = \"day\" | \"week\" | \"month\" | \"year\";\nexport type Count = number;\nexport type Timezone = string;\nexport type Type10 = \"end_of_window\";\nexport type Window = CalendarWindow | PlanAssignmentWindow;\nexport type Type11 = \"calendar\";\nexport type Unit2 = \"day\" | \"week\" | \"month\" | \"year\";\nexport type Count1 = number;\nexport type Timezone1 = string;\nexport type Type12 = \"plan_assignment\";\nexport type Timezone2 = string;\nexport type Type13 = \"fixed_at\";\nexport type At = string;\nexport type Type14 = \"subscription_end\";\nexport type DefaultBucket = string | null;\nexport type Type15 = \"prepaid\";\nexport type Type16 = \"credit_line\";\nexport type Limit = string;\nexport type Trigger = \"account_created\" | \"referral_completed\" | \"promo_code_redeemed\" | \"manual\";\n/**\n * @minItems 1\n */\nexport type Awards = [GrantAward, ...GrantAward[]];\nexport type Recipient = \"subject\" | \"referrer\";\nexport type Amount2 = string;\nexport type Bucket = string;\nexport type Expiry1 =\n | (NeverExpiry | AfterGrantExpiry | EndOfWindowExpiry | FixedExpiry | SubscriptionEndExpiry)\n | null;\nexport type StartsAt = string | null;\nexport type EndsAt = string | null;\nexport type Regions = string[];\nexport type Plans = string[];\nexport type Regions1 = string[];\nexport type MaxAwardsPerSubject = number;\nexport type IdempotencyScope = \"subject\" | \"event\";\nexport type Currency = string;\nexport type UnitsPerMajor = string;\nexport type Type17 = \"boolean\";\nexport type Default = boolean;\nexport type Type18 = \"enum\";\n/**\n * @minItems 1\n */\nexport type Values2 = [string, ...string[]];\nexport type Default1 = string;\nexport type Type19 = \"integer\";\nexport type Default2 = number;\nexport type Minimum = number | null;\nexport type Maximum = number | null;\nexport type Type20 = \"string\";\nexport type Default3 = string;\nexport type Pattern = string | null;\nexport type MaxInFlight = number | null;\nexport type MaxInFlight1 = number;\nexport type DisplayName = string;\n/**\n * Public catalog ordering. Lower ranks appear first; ties are ordered by plan key.\n */\nexport type Rank = number;\nexport type Description = string | null;\nexport type RateCard1 = string | null;\nexport type AllowedOperations = string[];\nexport type Amount3 = string;\n/**\n * Spend priority shared with credit buckets. Lower values are used first.\n */\nexport type Priority1 = number;\nexport type Window1 = CalendarWindow | RollingWindow | PlanAssignmentWindow;\nexport type Type21 = \"rolling\";\nexport type Unit3 = \"second\" | \"minute\" | \"hour\" | \"day\" | \"week\";\nexport type Count2 = number;\nexport type Operation = string;\nexport type Measure4 = string;\nexport type Limit1 = string;\nexport type Window2 = CalendarWindow | RollingWindow | PlanAssignmentWindow;\nexport type Enforcement = \"block\" | \"allow\";\nexport type EmitAtPercent = number[];\nexport type CreditPolicy = string | null;\nexport type AdmissionPolicy1 = string | null;\n/**\n * Default adoption timing for existing assignments when a newer catalog revision changes this plan. A catalog activation may override it for one release.\n */\nexport type DefaultRollout = \"immediate\" | \"next_renewal\" | \"new_assignments_only\";\nexport type Type22 = \"stripe\";\nexport type Type23 = \"dodo\";\nexport type Type24 = \"custom\";\nexport type Adapter = string;\nexport type DisplayName1 = string;\nexport type Description1 = string | null;\nexport type SortOrder = number;\nexport type AmountMinor = number;\nexport type Currency1 = string;\nexport type TaxBehavior = \"inclusive\" | \"exclusive\" | \"unspecified\";\nexport type Type25 = \"stripe_price\";\nexport type PriceId = string;\nexport type Type26 = \"dodo_product\";\nexport type ProductId = string;\nexport type Type27 = \"custom_object\";\nexport type ObjectKind = \"subscription\" | \"one_time\";\nexport type ExternalId = string;\nexport type Type28 = \"subscription\";\nexport type Plan = string;\nexport type Amount4 = string;\nexport type Bucket1 = string;\nexport type Renewal = \"replace_previous\" | \"accumulate\";\nexport type Expiry2 =\n | NeverExpiry\n | AfterGrantExpiry\n | EndOfWindowExpiry\n | FixedExpiry\n | SubscriptionEndExpiry;\nexport type DisplayName2 = string;\nexport type Description2 = string | null;\nexport type SortOrder1 = number;\nexport type Type29 = \"topup\";\nexport type CreditsPerUnit = string;\nexport type Minimum1 = number;\nexport type Maximum1 = number;\nexport type Default4 = number;\nexport type Bucket2 = string;\nexport type Expiry3 =\n | (NeverExpiry | AfterGrantExpiry | EndOfWindowExpiry | FixedExpiry | SubscriptionEndExpiry)\n | null;\nexport type LotBehavior = \"separate_lots\" | \"merge_and_refresh\";\nexport type Effective = \"immediate\" | \"renewal\";\nexport type Proration = \"prorated\" | \"none\";\nexport type PaymentFailure = \"prevent_change\" | \"apply_change\";\n/**\n * @minItems 1\n */\nexport type EligibleTopups = [string, ...string[]];\nexport type Minimum2 = string;\nexport type Maximum2 = string;\nexport type Default5 = string;\n/**\n * Balance that rearms auto-recharge; it must exceed balance_below.maximum.\n */\nexport type RearmAbove = string;\nexport type Minimum3 = number;\nexport type Maximum3 = number;\nexport type Default6 = number;\nexport type MaxPurchases = number;\nexport type Window3 = CalendarWindow | RollingWindow;\nexport type MaxChargeMinor = number;\nexport type MaxConsecutiveFailures = number;\nexport type FailureAction = \"pause\";\n\nexport interface BursarConfig {\n version: Version;\n catalog?: CatalogConfig;\n /**\n * Usage operations, their measures and dimensions, and reusable rate cards.\n */\n pricing?: PricingConfig | null;\n credits: CreditsConfig;\n entitlements?: EntitlementsConfig;\n admission?: AdmissionConfig;\n plans?: Plans1;\n commerce?: CommerceConfig;\n}\n/**\n * Catalog-wide publication settings such as the default signup plan.\n */\nexport interface CatalogConfig {\n default_plan?: DefaultPlan;\n}\nexport interface PricingConfig {\n operations: Operations;\n rate_cards: RateCards;\n}\nexport interface Operations {\n [k: string]: OperationDefinition;\n}\nexport interface OperationDefinition {\n measures: Measures;\n dimensions?: Dimensions;\n}\nexport interface Measures {\n [k: string]: MeasureDefinition;\n}\nexport interface MeasureDefinition {\n unit: Unit;\n}\nexport interface Dimensions {\n [k: string]: DimensionDefinition;\n}\nexport interface DimensionDefinition {\n type: Type;\n required?: Required;\n}\nexport interface RateCards {\n [k: string]: RateCard;\n}\nexport interface RateCard {\n extends?: Extends;\n operations?: Operations1;\n}\nexport interface Operations1 {\n [k: string]: OperationPricing;\n}\nexport interface OperationPricing {\n rules?: Rules;\n unmatched: Unmatched;\n}\nexport interface PriceRule {\n when: When;\n charge: Charge;\n}\nexport interface When {\n [k: string]: EqualMatcher | InMatcher | NotInMatcher | PrefixMatcher | RangeMatcher;\n}\nexport interface EqualMatcher {\n op: Op;\n value: Value;\n}\nexport interface InMatcher {\n op: Op1;\n values: Values;\n}\nexport interface NotInMatcher {\n op: Op2;\n values: Values1;\n}\nexport interface PrefixMatcher {\n op: Op3;\n value: Value1;\n}\nexport interface RangeMatcher {\n op: Op4;\n gt?: Gt;\n gte?: Gte;\n lt?: Lt;\n lte?: Lte;\n}\nexport interface FlatCharge {\n type: Type1;\n amount: Amount;\n}\nexport interface PerUnitCharge {\n type: Type2;\n measure: Measure;\n rate: Rate;\n unit_size?: UnitSize;\n}\nexport interface PackageCharge {\n type: Type3;\n measure: Measure1;\n units: Units;\n amount: Amount1;\n rounding?: Rounding;\n}\nexport interface GraduatedCharge {\n type: Type4;\n measure: Measure2;\n tiers: Tiers;\n}\nexport interface GraduatedTier {\n up_to?: UpTo;\n rate: Rate1;\n}\nexport interface VolumeCharge {\n type: Type5;\n measure: Measure3;\n tiers: Tiers1;\n}\nexport interface ExpressionCharge {\n type: Type6;\n formula: Formula;\n}\nexport interface SumCharge {\n type: Type7;\n components: Components;\n}\nexport interface RejectUnmatched {\n action: Action;\n}\nexport interface ChargeUnmatched {\n action: Action1;\n charge: Charge1;\n}\n/**\n * Credit buckets, spending policies, grants, and optional display conversion.\n */\nexport interface CreditsConfig {\n buckets?: Buckets;\n default_bucket?: DefaultBucket;\n policies?: Policies;\n grant_programs?: GrantPrograms;\n display?: CreditDisplay | null;\n}\nexport interface Buckets {\n [k: string]: BucketDefinition;\n}\nexport interface BucketDefinition {\n priority: Priority;\n expiry?: Expiry;\n}\nexport interface NeverExpiry {\n type: Type8;\n}\nexport interface AfterGrantExpiry {\n type: Type9;\n interval: BillingInterval;\n timezone?: Timezone;\n}\nexport interface BillingInterval {\n unit: Unit1;\n count?: Count;\n}\nexport interface EndOfWindowExpiry {\n type: Type10;\n window: Window;\n}\nexport interface CalendarWindow {\n type: Type11;\n unit: Unit2;\n count?: Count1;\n timezone?: Timezone1;\n}\nexport interface PlanAssignmentWindow {\n type: Type12;\n interval: BillingInterval;\n timezone?: Timezone2;\n}\nexport interface FixedExpiry {\n type: Type13;\n at: At;\n}\nexport interface SubscriptionEndExpiry {\n type: Type14;\n}\nexport interface Policies {\n [k: string]: PrepaidCreditPolicy | CreditLinePolicy;\n}\nexport interface PrepaidCreditPolicy {\n type: Type15;\n}\nexport interface CreditLinePolicy {\n type: Type16;\n limit: Limit;\n}\nexport interface GrantPrograms {\n [k: string]: GrantProgram;\n}\nexport interface GrantProgram {\n trigger: Trigger;\n awards: Awards;\n availability?: Availability | null;\n eligibility?: GrantEligibility;\n max_awards_per_subject?: MaxAwardsPerSubject;\n idempotency_scope?: IdempotencyScope;\n}\nexport interface GrantAward {\n recipient?: Recipient;\n amount: Amount2;\n bucket: Bucket;\n expiry?: Expiry1;\n}\nexport interface Availability {\n starts_at?: StartsAt;\n ends_at?: EndsAt;\n regions?: Regions;\n}\nexport interface GrantEligibility {\n plans?: Plans;\n regions?: Regions1;\n}\nexport interface CreditDisplay {\n currency: Currency;\n units_per_major: UnitsPerMajor;\n}\n/**\n * Typed feature definitions referenced by plan feature values.\n */\nexport interface EntitlementsConfig {\n features?: Features;\n}\nexport interface Features {\n [k: string]: BooleanFeature | EnumFeature | IntegerFeature | StringFeature;\n}\nexport interface BooleanFeature {\n type: Type17;\n default: Default;\n}\nexport interface EnumFeature {\n type: Type18;\n values: Values2;\n default: Default1;\n}\nexport interface IntegerFeature {\n type: Type19;\n default: Default2;\n minimum?: Minimum;\n maximum?: Maximum;\n}\nexport interface StringFeature {\n type: Type20;\n default: Default3;\n pattern?: Pattern;\n}\n/**\n * Reusable global and per-operation concurrency policies.\n */\nexport interface AdmissionConfig {\n policies?: Policies1;\n}\nexport interface Policies1 {\n [k: string]: AdmissionPolicy;\n}\nexport interface AdmissionPolicy {\n max_in_flight?: MaxInFlight;\n operations?: Operations2;\n}\nexport interface Operations2 {\n [k: string]: OperationAdmission;\n}\nexport interface OperationAdmission {\n max_in_flight: MaxInFlight1;\n}\n/**\n * Product plans keyed by stable snake_case identifiers.\n */\nexport interface Plans1 {\n [k: string]: PlanDefinition;\n}\nexport interface PlanDefinition {\n display_name: DisplayName;\n rank?: Rank;\n description?: Description;\n rate_card?: RateCard1;\n allowed_operations?: AllowedOperations;\n features?: Features1;\n credit_allowance?: CreditAllowance | null;\n quotas?: Quotas;\n credit_policy?: CreditPolicy;\n admission_policy?: AdmissionPolicy1;\n /**\n * Catalog evolution defaults. When omitted, subscription-backed plans use next_renewal and other plans use immediate; canonical output materializes the default.\n */\n evolution?: PlanEvolution | null;\n}\nexport interface Features1 {\n [k: string]: boolean | number | string;\n}\nexport interface CreditAllowance {\n amount: Amount3;\n priority: Priority1;\n window: Window1;\n}\nexport interface RollingWindow {\n type: Type21;\n duration: Duration;\n}\nexport interface Duration {\n unit: Unit3;\n count: Count2;\n}\nexport interface Quotas {\n [k: string]: QuotaDefinition;\n}\nexport interface QuotaDefinition {\n operation: Operation;\n measure: Measure4;\n limit: Limit1;\n window: Window2;\n enforcement: Enforcement;\n emit_at_percent?: EmitAtPercent;\n}\nexport interface PlanEvolution {\n default_rollout: DefaultRollout;\n}\n/**\n * Payment providers, subscription and top-up offers, and purchase guardrails.\n */\nexport interface CommerceConfig {\n providers?: Providers;\n offers?: Offers;\n subscription_changes?: SubscriptionChanges | null;\n auto_recharge?: AutoRechargeGuardrails | null;\n}\nexport interface Providers {\n [k: string]: StripeProvider | DodoProvider | CustomProvider;\n}\nexport interface StripeProvider {\n type: Type22;\n}\nexport interface DodoProvider {\n type: Type23;\n}\nexport interface CustomProvider {\n type: Type24;\n adapter: Adapter;\n}\nexport interface Offers {\n [k: string]: SubscriptionOffer | TopupOffer;\n}\nexport interface SubscriptionOffer {\n display_name: DisplayName1;\n description?: Description1;\n sort_order?: SortOrder;\n availability?: Availability | null;\n price: OfferPrice;\n providers: Providers1;\n type: Type28;\n plan: Plan;\n billing_interval: BillingInterval;\n trial?: BillingInterval | null;\n cycle_grant?: CycleGrant | null;\n}\nexport interface OfferPrice {\n amount_minor: AmountMinor;\n currency: Currency1;\n tax_behavior?: TaxBehavior;\n}\nexport interface Providers1 {\n [k: string]: StripePriceReference | DodoProductReference | CustomObjectReference;\n}\nexport interface StripePriceReference {\n type: Type25;\n price_id: PriceId;\n}\nexport interface DodoProductReference {\n type: Type26;\n product_id: ProductId;\n}\nexport interface CustomObjectReference {\n type: Type27;\n object_kind: ObjectKind;\n external_id: ExternalId;\n}\nexport interface CycleGrant {\n amount: Amount4;\n bucket: Bucket1;\n renewal: Renewal;\n expiry?: Expiry2;\n}\nexport interface TopupOffer {\n display_name: DisplayName2;\n description?: Description2;\n sort_order?: SortOrder1;\n availability?: Availability | null;\n price: OfferPrice;\n providers: Providers2;\n type: Type29;\n credits_per_unit: CreditsPerUnit;\n quantity?: QuantityBounds;\n bucket: Bucket2;\n expiry?: Expiry3;\n lot_behavior?: LotBehavior;\n}\nexport interface Providers2 {\n [k: string]: StripePriceReference | DodoProductReference | CustomObjectReference;\n}\nexport interface QuantityBounds {\n minimum?: Minimum1;\n maximum?: Maximum1;\n default?: Default4;\n}\nexport interface SubscriptionChanges {\n upgrade?: SubscriptionChangePolicy | null;\n downgrade?: SubscriptionChangePolicy | null;\n lateral?: SubscriptionChangePolicy | null;\n cadence_change?: SubscriptionChangePolicy | null;\n}\nexport interface SubscriptionChangePolicy {\n effective: Effective;\n proration: Proration;\n payment_failure?: PaymentFailure;\n}\nexport interface AutoRechargeGuardrails {\n eligible_topups: EligibleTopups;\n balance_below: DecimalRange;\n rearm_above: RearmAbove;\n quantity: IntegerRange;\n limits: AutoRechargeLimits;\n}\nexport interface DecimalRange {\n minimum: Minimum2;\n maximum: Maximum2;\n default: Default5;\n}\nexport interface IntegerRange {\n minimum: Minimum3;\n maximum: Maximum3;\n default: Default6;\n}\nexport interface AutoRechargeLimits {\n max_purchases: MaxPurchases;\n window: Window3;\n max_charge_minor: MaxChargeMinor;\n cooldown: Duration;\n max_consecutive_failures?: MaxConsecutiveFailures;\n failure_action?: FailureAction;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"pricing-config.types.js","sourceRoot":"","sources":["../../src/generated/pricing-config.types.ts"],"names":[],"mappings":"AAAA,oBAAoB;AACpB;;;;GAIG","sourcesContent":["/* eslint-disable */\n/**\n * This file was automatically generated by json-schema-to-typescript.\n * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,\n * and run json-schema-to-typescript to regenerate this file.\n */\n\nexport type Version = 1;\nexport type DefaultPlan = string | null;\n/**\n * Plan assigned when a subscription ends; omission clears the entitlement if it still comes from that subscription.\n */\nexport type SubscriptionEndPlan = string | null;\nexport type Unit = string;\n/**\n * Require this usage measure; set false to treat omission as zero.\n */\nexport type Required = boolean;\n/**\n * Inline charge for root rate cards; cannot duplicate a root card operation. Null means omitted.\n */\nexport type Charge =\n | (\n | FlatCharge\n | PerUnitCharge\n | PackageCharge\n | GraduatedCharge\n | VolumeCharge\n | ExpressionCharge\n | SumCharge\n )\n | null;\nexport type Type = \"flat\";\nexport type Amount = string;\nexport type Type1 = \"per_unit\";\nexport type Measure = string;\n/**\n * Credits charged for each unit_size units of the selected measure.\n */\nexport type Rate = string;\n/**\n * Number of measure units represented by one rate unit; use 1000000 for per-million-token rates.\n */\nexport type UnitSize = string;\nexport type Type2 = \"package\";\nexport type Measure1 = string;\nexport type Units = string;\nexport type Amount1 = string;\nexport type Rounding = \"ceil\" | \"floor\" | \"nearest\";\nexport type Type3 = \"graduated\";\nexport type Measure2 = string;\n/**\n * @minItems 1\n */\nexport type Tiers = [GraduatedTier, ...GraduatedTier[]];\nexport type UpTo = string | null;\nexport type Rate1 = string;\nexport type Type4 = \"volume\";\nexport type Measure3 = string;\n/**\n * @minItems 1\n */\nexport type Tiers1 = [GraduatedTier, ...GraduatedTier[]];\nexport type Type5 = \"expression\";\nexport type Formula = string;\nexport type Type6 = \"sum\";\n/**\n * @minItems 1\n */\nexport type Components = [\n (\n | FlatCharge\n | PerUnitCharge\n | PackageCharge\n | GraduatedCharge\n | VolumeCharge\n | ExpressionCharge\n | SumCharge\n ),\n ...(\n | FlatCharge\n | PerUnitCharge\n | PackageCharge\n | GraduatedCharge\n | VolumeCharge\n | ExpressionCharge\n | SumCharge\n )[],\n];\nexport type Type7 = \"string\" | \"number\" | \"boolean\";\nexport type Required1 = boolean;\nexport type Extends = string | null;\nexport type Op = \"eq\";\nexport type Value = string | number | boolean;\nexport type Op1 = \"in\";\n/**\n * @minItems 1\n */\nexport type Values = [string | number | boolean, ...(string | number | boolean)[]];\nexport type Op2 = \"not_in\";\n/**\n * @minItems 1\n */\nexport type Values1 = [string | number | boolean, ...(string | number | boolean)[]];\nexport type Op3 = \"prefix\";\nexport type Value1 = string;\nexport type Op4 = \"range\";\nexport type Gt = string | null;\nexport type Gte = string | null;\nexport type Lt = string | null;\nexport type Lte = string | null;\nexport type Charge1 =\n | FlatCharge\n | PerUnitCharge\n | PackageCharge\n | GraduatedCharge\n | VolumeCharge\n | ExpressionCharge\n | SumCharge;\nexport type Rules = PriceRule[];\nexport type Unmatched = RejectUnmatched | ChargeUnmatched;\nexport type Action = \"reject\";\nexport type Action1 = \"charge\";\nexport type Charge2 =\n | FlatCharge\n | PerUnitCharge\n | PackageCharge\n | GraduatedCharge\n | VolumeCharge\n | ExpressionCharge\n | SumCharge;\n/**\n * Grant this amount once per subject on account creation; null means omitted.\n */\nexport type OnSignup = string | null;\nexport type Priority = number;\nexport type Expiry =\n | NeverExpiry\n | AfterGrantExpiry\n | EndOfWindowExpiry\n | FixedExpiry\n | SubscriptionEndExpiry;\nexport type Type8 = \"never\";\nexport type Type9 = \"after_grant\";\nexport type Unit1 = \"day\" | \"week\" | \"month\" | \"year\";\nexport type Count = number;\nexport type Timezone = string;\nexport type Type10 = \"end_of_window\";\nexport type Window = CalendarWindow | PlanAssignmentWindow;\nexport type Type11 = \"calendar\";\nexport type Unit2 = \"day\" | \"week\" | \"month\" | \"year\";\nexport type Count1 = number;\nexport type Timezone1 = string;\nexport type Type12 = \"plan_assignment\";\nexport type Timezone2 = string;\nexport type Type13 = \"fixed_at\";\nexport type At = string;\nexport type Type14 = \"subscription_end\";\nexport type DefaultBucket = string | null;\nexport type Type15 = \"prepaid\";\nexport type Type16 = \"credit_line\";\nexport type Limit = string;\nexport type Trigger = \"account_created\" | \"referral_completed\" | \"promo_code_redeemed\" | \"manual\";\n/**\n * @minItems 1\n */\nexport type Awards = [GrantAward, ...GrantAward[]];\nexport type Recipient = \"subject\" | \"referrer\";\nexport type Amount2 = string;\nexport type Bucket = string;\nexport type Expiry1 =\n | (NeverExpiry | AfterGrantExpiry | EndOfWindowExpiry | FixedExpiry | SubscriptionEndExpiry)\n | null;\nexport type StartsAt = string | null;\nexport type EndsAt = string | null;\nexport type Regions = string[];\nexport type Plans = string[];\nexport type Regions1 = string[];\n/**\n * Account-created programs must award at most once per subject.\n */\nexport type MaxAwardsPerSubject = number;\n/**\n * Account-created programs must use subject scope.\n */\nexport type IdempotencyScope = \"subject\" | \"event\";\nexport type Currency = string;\nexport type UnitsPerMajor = string;\nexport type Type17 = \"boolean\";\nexport type Default = boolean;\nexport type Type18 = \"enum\";\n/**\n * @minItems 1\n */\nexport type Values2 = [string, ...string[]];\nexport type Default1 = string;\nexport type Type19 = \"integer\";\nexport type Default2 = number;\nexport type Minimum = number | null;\nexport type Maximum = number | null;\nexport type Type20 = \"string\";\nexport type Default3 = string;\nexport type Pattern = string | null;\nexport type MaxInFlight = number | null;\nexport type MaxInFlight1 = number;\n/**\n * Plan level for subscription changes, distinct from display rank.\n */\nexport type Tier = number;\nexport type DisplayName = string;\n/**\n * Public catalog ordering. Lower ranks appear first; ties are ordered by plan key.\n */\nexport type Rank = number;\nexport type Description = string | null;\nexport type RateCard1 = string | null;\n/**\n * Allow all, none, or a nonempty list of operations; omission denies all.\n */\nexport type AllowedOperations = (\"all\" | \"none\") | [string, ...string[]];\nexport type Amount3 = string;\n/**\n * Spend priority shared with credit buckets. Lower values are used first.\n */\nexport type Priority1 = number;\nexport type Window1 = CalendarWindow | RollingWindow | PlanAssignmentWindow;\nexport type Type21 = \"rolling\";\nexport type Unit3 = \"second\" | \"minute\" | \"hour\" | \"day\" | \"week\";\nexport type Count2 = number;\nexport type Operation = string;\nexport type Measure4 = string;\nexport type Limit1 = string;\nexport type Window2 = CalendarWindow | RollingWindow | PlanAssignmentWindow;\nexport type Enforcement = \"block\" | \"allow\";\nexport type EmitAtPercent = number[];\nexport type CreditPolicy = string | null;\nexport type AdmissionPolicy1 = string | null;\n/**\n * Default adoption timing for existing assignments when a newer catalog revision changes this plan. A catalog activation may override it for one release.\n */\nexport type DefaultRollout = \"immediate\" | \"next_renewal\" | \"new_assignments_only\";\nexport type Type22 = \"stripe\";\nexport type Type23 = \"dodo\";\nexport type Type24 = \"custom\";\nexport type Adapter = string;\nexport type DisplayName1 = string;\nexport type Description1 = string | null;\nexport type SortOrder = number;\nexport type AmountMinor = number;\nexport type Currency1 = string;\nexport type TaxBehavior = \"inclusive\" | \"exclusive\" | \"unspecified\";\nexport type Type25 = \"stripe_price\";\n/**\n * Provider ID or test/live/sandbox mapping; resolved when using a provider in that environment.\n */\nexport type PriceId =\n | string\n | {\n [k: string]: string;\n };\nexport type Type26 = \"dodo_product\";\n/**\n * Provider ID or test/live/sandbox mapping; resolved when using a provider in that environment.\n */\nexport type ProductId =\n | string\n | {\n [k: string]: string;\n };\nexport type Type27 = \"custom_object\";\nexport type ObjectKind = \"subscription\" | \"one_time\";\n/**\n * Provider ID or test/live/sandbox mapping; resolved when using a provider in that environment.\n */\nexport type ExternalId =\n | string\n | {\n [k: string]: string;\n };\nexport type Type28 = \"subscription\";\nexport type Plan = string;\nexport type Amount4 = string;\nexport type Bucket1 = string;\nexport type Renewal = \"replace_previous\" | \"accumulate\";\nexport type Expiry2 =\n | NeverExpiry\n | AfterGrantExpiry\n | EndOfWindowExpiry\n | FixedExpiry\n | SubscriptionEndExpiry;\nexport type DisplayName2 = string;\nexport type Description2 = string | null;\nexport type SortOrder1 = number;\nexport type Type29 = \"topup\";\nexport type CreditsPerUnit = string;\nexport type Minimum1 = number;\nexport type Maximum1 = number;\nexport type Default4 = number;\nexport type Bucket2 = string;\nexport type Expiry3 =\n | (NeverExpiry | AfterGrantExpiry | EndOfWindowExpiry | FixedExpiry | SubscriptionEndExpiry)\n | null;\nexport type LotBehavior = \"separate_lots\" | \"merge_and_refresh\";\nexport type Effective = \"immediate\" | \"renewal\";\nexport type Proration = \"prorated\" | \"none\";\nexport type PaymentFailure = \"prevent_change\" | \"apply_change\";\n/**\n * @minItems 1\n */\nexport type EligibleTopups = [string, ...string[]];\nexport type Minimum2 = string;\nexport type Maximum2 = string;\nexport type Default5 = string;\n/**\n * Balance that rearms auto-recharge; it must exceed balance_below.maximum.\n */\nexport type RearmAbove = string;\nexport type Minimum3 = number;\nexport type Maximum3 = number;\nexport type Default6 = number;\nexport type MaxPurchases = number;\nexport type Window3 = CalendarWindow | RollingWindow;\nexport type MaxChargeMinor = number;\nexport type MaxConsecutiveFailures = number;\nexport type FailureAction = \"pause\";\n\nexport interface BursarConfig {\n version: Version;\n catalog?: CatalogConfig;\n /**\n * Usage operations, their measures and dimensions, and reusable rate cards.\n */\n pricing?: PricingConfig | null;\n credits?: CreditsConfig;\n entitlements?: EntitlementsConfig;\n admission?: AdmissionConfig;\n plans?: Plans1;\n commerce?: CommerceConfig;\n}\n/**\n * Catalog-wide publication settings such as the default signup plan.\n */\nexport interface CatalogConfig {\n default_plan?: DefaultPlan;\n subscription_end_plan?: SubscriptionEndPlan;\n}\nexport interface PricingConfig {\n operations: Operations;\n rate_cards?: RateCards;\n}\nexport interface Operations {\n [k: string]: OperationDefinition;\n}\nexport interface OperationDefinition {\n measures?: Measures;\n charge?: Charge;\n dimensions?: Dimensions;\n}\nexport interface Measures {\n [k: string]: MeasureDefinition;\n}\nexport interface MeasureDefinition {\n unit: Unit;\n required?: Required;\n}\nexport interface FlatCharge {\n type: Type;\n amount: Amount;\n}\nexport interface PerUnitCharge {\n type: Type1;\n measure: Measure;\n rate: Rate;\n unit_size?: UnitSize;\n}\nexport interface PackageCharge {\n type: Type2;\n measure: Measure1;\n units: Units;\n amount: Amount1;\n rounding?: Rounding;\n}\nexport interface GraduatedCharge {\n type: Type3;\n measure: Measure2;\n tiers: Tiers;\n}\nexport interface GraduatedTier {\n up_to?: UpTo;\n rate: Rate1;\n}\nexport interface VolumeCharge {\n type: Type4;\n measure: Measure3;\n tiers: Tiers1;\n}\nexport interface ExpressionCharge {\n type: Type5;\n formula: Formula;\n}\nexport interface SumCharge {\n type: Type6;\n components: Components;\n}\nexport interface Dimensions {\n [k: string]: DimensionDefinition;\n}\nexport interface DimensionDefinition {\n type: Type7;\n required?: Required1;\n}\nexport interface RateCards {\n [k: string]: RateCard;\n}\nexport interface RateCard {\n extends?: Extends;\n operations?: Operations1;\n}\nexport interface Operations1 {\n [k: string]: OperationPricing;\n}\nexport interface OperationPricing {\n rules?: Rules;\n unmatched: Unmatched;\n}\nexport interface PriceRule {\n when: When;\n charge: Charge1;\n}\nexport interface When {\n [k: string]: EqualMatcher | InMatcher | NotInMatcher | PrefixMatcher | RangeMatcher;\n}\nexport interface EqualMatcher {\n op: Op;\n value: Value;\n}\nexport interface InMatcher {\n op: Op1;\n values: Values;\n}\nexport interface NotInMatcher {\n op: Op2;\n values: Values1;\n}\nexport interface PrefixMatcher {\n op: Op3;\n value: Value1;\n}\nexport interface RangeMatcher {\n op: Op4;\n gt?: Gt;\n gte?: Gte;\n lt?: Lt;\n lte?: Lte;\n}\nexport interface RejectUnmatched {\n action: Action;\n}\nexport interface ChargeUnmatched {\n action: Action1;\n charge: Charge2;\n}\n/**\n * Credit buckets, spending policies, grants, and optional display conversion.\n */\nexport interface CreditsConfig {\n on_signup?: OnSignup;\n buckets?: Buckets;\n default_bucket?: DefaultBucket;\n policies?: Policies;\n grant_programs?: GrantPrograms;\n display?: CreditDisplay | null;\n}\nexport interface Buckets {\n [k: string]: BucketDefinition;\n}\nexport interface BucketDefinition {\n priority: Priority;\n expiry?: Expiry;\n}\nexport interface NeverExpiry {\n type: Type8;\n}\nexport interface AfterGrantExpiry {\n type: Type9;\n interval: BillingInterval;\n timezone?: Timezone;\n}\nexport interface BillingInterval {\n unit: Unit1;\n count?: Count;\n}\nexport interface EndOfWindowExpiry {\n type: Type10;\n window: Window;\n}\nexport interface CalendarWindow {\n type: Type11;\n unit: Unit2;\n count?: Count1;\n timezone?: Timezone1;\n}\nexport interface PlanAssignmentWindow {\n type: Type12;\n interval: BillingInterval;\n timezone?: Timezone2;\n}\nexport interface FixedExpiry {\n type: Type13;\n at: At;\n}\nexport interface SubscriptionEndExpiry {\n type: Type14;\n}\nexport interface Policies {\n [k: string]: PrepaidCreditPolicy | CreditLinePolicy;\n}\nexport interface PrepaidCreditPolicy {\n type: Type15;\n}\nexport interface CreditLinePolicy {\n type: Type16;\n limit: Limit;\n}\nexport interface GrantPrograms {\n [k: string]: GrantProgram;\n}\nexport interface GrantProgram {\n trigger: Trigger;\n awards: Awards;\n availability?: Availability | null;\n eligibility?: GrantEligibility;\n max_awards_per_subject?: MaxAwardsPerSubject;\n idempotency_scope?: IdempotencyScope;\n}\nexport interface GrantAward {\n recipient?: Recipient;\n amount: Amount2;\n bucket: Bucket;\n expiry?: Expiry1;\n}\nexport interface Availability {\n starts_at?: StartsAt;\n ends_at?: EndsAt;\n regions?: Regions;\n}\nexport interface GrantEligibility {\n plans?: Plans;\n regions?: Regions1;\n}\nexport interface CreditDisplay {\n currency: Currency;\n units_per_major: UnitsPerMajor;\n}\n/**\n * Typed feature definitions referenced by plan feature values.\n */\nexport interface EntitlementsConfig {\n features?: Features;\n}\nexport interface Features {\n [k: string]: BooleanFeature | EnumFeature | IntegerFeature | StringFeature;\n}\nexport interface BooleanFeature {\n type: Type17;\n default: Default;\n}\nexport interface EnumFeature {\n type: Type18;\n values: Values2;\n default: Default1;\n}\nexport interface IntegerFeature {\n type: Type19;\n default: Default2;\n minimum?: Minimum;\n maximum?: Maximum;\n}\nexport interface StringFeature {\n type: Type20;\n default: Default3;\n pattern?: Pattern;\n}\n/**\n * Reusable global and per-operation concurrency policies.\n */\nexport interface AdmissionConfig {\n policies?: Policies1;\n}\nexport interface Policies1 {\n [k: string]: AdmissionPolicy;\n}\nexport interface AdmissionPolicy {\n max_in_flight?: MaxInFlight;\n operations?: Operations2;\n}\nexport interface Operations2 {\n [k: string]: OperationAdmission;\n}\nexport interface OperationAdmission {\n max_in_flight: MaxInFlight1;\n}\n/**\n * Product plans keyed by stable snake_case identifiers.\n */\nexport interface Plans1 {\n [k: string]: PlanDefinition;\n}\nexport interface PlanDefinition {\n tier?: Tier;\n display_name: DisplayName;\n rank?: Rank;\n description?: Description;\n rate_card?: RateCard1;\n allowed_operations?: AllowedOperations;\n features?: Features1;\n credit_allowance?: CreditAllowance | null;\n quotas?: Quotas;\n credit_policy?: CreditPolicy;\n admission_policy?: AdmissionPolicy1;\n /**\n * Catalog evolution defaults. When omitted, subscription-backed plans use next_renewal and other plans use immediate; canonical output materializes the default.\n */\n evolution?: PlanEvolution | null;\n}\nexport interface Features1 {\n [k: string]: boolean | number | string;\n}\nexport interface CreditAllowance {\n amount: Amount3;\n priority: Priority1;\n window: Window1;\n}\nexport interface RollingWindow {\n type: Type21;\n duration: Duration;\n}\nexport interface Duration {\n unit: Unit3;\n count: Count2;\n}\nexport interface Quotas {\n [k: string]: QuotaDefinition;\n}\nexport interface QuotaDefinition {\n operation: Operation;\n measure: Measure4;\n limit: Limit1;\n window: Window2;\n enforcement: Enforcement;\n emit_at_percent?: EmitAtPercent;\n}\nexport interface PlanEvolution {\n default_rollout: DefaultRollout;\n}\n/**\n * Payment providers, subscription and top-up offers, and purchase guardrails.\n */\nexport interface CommerceConfig {\n providers?: Providers;\n offers?: Offers;\n subscription_changes?: SubscriptionChanges | null;\n auto_recharge?: AutoRechargeGuardrails | null;\n}\nexport interface Providers {\n [k: string]: StripeProvider | DodoProvider | CustomProvider;\n}\nexport interface StripeProvider {\n type: Type22;\n}\nexport interface DodoProvider {\n type: Type23;\n}\nexport interface CustomProvider {\n type: Type24;\n adapter: Adapter;\n}\nexport interface Offers {\n [k: string]: SubscriptionOffer | TopupOffer;\n}\nexport interface SubscriptionOffer {\n display_name: DisplayName1;\n description?: Description1;\n sort_order?: SortOrder;\n availability?: Availability | null;\n price: OfferPrice;\n providers: Providers1;\n type: Type28;\n plan: Plan;\n billing_interval: BillingInterval;\n trial?: BillingInterval | null;\n cycle_grant?: CycleGrant | null;\n}\nexport interface OfferPrice {\n amount_minor: AmountMinor;\n currency: Currency1;\n tax_behavior?: TaxBehavior;\n}\nexport interface Providers1 {\n [k: string]: StripePriceReference | DodoProductReference | CustomObjectReference;\n}\nexport interface StripePriceReference {\n type?: Type25;\n price_id: PriceId;\n}\nexport interface DodoProductReference {\n type?: Type26;\n product_id: ProductId;\n}\nexport interface CustomObjectReference {\n type: Type27;\n object_kind: ObjectKind;\n external_id: ExternalId;\n}\nexport interface CycleGrant {\n amount: Amount4;\n bucket: Bucket1;\n renewal: Renewal;\n expiry?: Expiry2;\n}\nexport interface TopupOffer {\n display_name: DisplayName2;\n description?: Description2;\n sort_order?: SortOrder1;\n availability?: Availability | null;\n price: OfferPrice;\n providers: Providers2;\n type: Type29;\n credits_per_unit: CreditsPerUnit;\n quantity?: QuantityBounds;\n bucket: Bucket2;\n expiry?: Expiry3;\n lot_behavior?: LotBehavior;\n}\nexport interface Providers2 {\n [k: string]: StripePriceReference | DodoProductReference | CustomObjectReference;\n}\nexport interface QuantityBounds {\n minimum?: Minimum1;\n maximum?: Maximum1;\n default?: Default4;\n}\nexport interface SubscriptionChanges {\n upgrade?: SubscriptionChangePolicy | null;\n downgrade?: SubscriptionChangePolicy | null;\n lateral?: SubscriptionChangePolicy | null;\n cadence_change?: SubscriptionChangePolicy | null;\n}\nexport interface SubscriptionChangePolicy {\n effective: Effective;\n proration: Proration;\n payment_failure?: PaymentFailure;\n}\nexport interface AutoRechargeGuardrails {\n eligible_topups: EligibleTopups;\n balance_below: DecimalRange;\n rearm_above: RearmAbove;\n quantity: IntegerRange;\n limits: AutoRechargeLimits;\n}\nexport interface DecimalRange {\n minimum: Minimum2;\n maximum: Maximum2;\n default: Default5;\n}\nexport interface IntegerRange {\n minimum: Minimum3;\n maximum: Maximum3;\n default: Default6;\n}\nexport interface AutoRechargeLimits {\n max_purchases: MaxPurchases;\n window: Window3;\n max_charge_minor: MaxChargeMinor;\n cooldown: Duration;\n max_consecutive_failures?: MaxConsecutiveFailures;\n failure_action?: FailureAction;\n}\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
/** Confirmed plan changes can be retried using the same operation key and request. */
|
|
2
|
+
export declare const PLAN_CHANGE_REPLAY_SAFE = true;
|
|
1
3
|
export { PricingEngine } from "./engine.js";
|
|
2
4
|
export type { CostBreakdown } from "./breakdown.js";
|
|
3
|
-
export { makeCostBreakdown } from "./breakdown.js";
|
|
4
5
|
export type { UsageMetrics } from "./metrics.js";
|
|
5
6
|
export type { BursarConfigData, CatalogRollout, ParsedBursarConfig, PricingConfig, CreditsConfig, PlanDefinition, PlanEvolution, PlanRollout, PlanRolloutStrategy, CommerceConfig, Window, Charge, FeatureDefinition, } from "./config.js";
|
|
6
7
|
export { canonicalBursarConfigDict, canonicalCatalogRolloutDict, loadCatalogRollout, loadConfigFromDict, validateCatalogRollout, } from "./config.js";
|
|
7
8
|
export { projectPublicCatalog } from "./catalog.js";
|
|
8
|
-
export type { PublicCatalog, PublicCatalogOffer, PublicCatalogPlan, PublicCatalogWindow, } from "./catalog.js";
|
|
9
|
-
export { AutoRechargeDisabledError, AutoRechargeNotConfiguredError, BillingError, BursarError, CapabilityNotConfiguredError, CapabilityNotSupportedError, CapReachedError, ConcurrencyLimitError, CreditError, ConfigError, ExpressionError, FeatureNotEntitledError, ImportError, InsufficientCreditsError, LeaseExpiredError, LeaseNotFoundError, OperationNotAllowedError, PaymentMethodRequiredError, ProviderCapabilityNotSupportedError, ProviderResponseError, CatalogNotLoadedError, RefundError, QuotaExceededError, StoreError, StoreClosedError, StoreTimeoutError, StoreUnavailableError, bursarErrorHttpStatus, bursarErrorPublicMessage, isBursarError, isRetryableBursarError, } from "./errors.js";
|
|
9
|
+
export type { PublicCatalog, PublicCatalogOffer, PublicCatalogScope, PublicCatalogPlan, PublicCatalogWindow, } from "./catalog.js";
|
|
10
|
+
export { AutoRechargeDisabledError, AutoRechargeNotConfiguredError, BillingError, BursarError, CapabilityNotConfiguredError, CapabilityNotSupportedError, CapReachedError, ConcurrencyLimitError, CreditError, ConfigError, ExpressionError, FeatureNotEntitledError, ImportError, IdempotencyConflictError, InsufficientCreditsError, LeaseExpiredError, LeaseNotFoundError, OperationNotAllowedError, PaymentMethodRequiredError, ProviderCapabilityNotSupportedError, ProviderResponseError, CatalogNotLoadedError, StaleQuoteError, RefundError, QuotaExceededError, StoreError, StoreClosedError, StoreTimeoutError, StoreUnavailableError, bursarErrorHttpStatus, bursarErrorPublicMessage, isBursarError, isRetryableBursarError, } from "./errors.js";
|
|
10
11
|
export type { BursarErrorCategory, BursarErrorDetails, BursarErrorOptions, SerializedBursarError, StoreErrorOptions, } from "./errors.js";
|
|
11
12
|
export { retryBursarOperation } from "./retry.js";
|
|
12
13
|
export type { BursarRetryOptions } from "./retry.js";
|
|
@@ -16,13 +17,14 @@ export type { Instrumentation, TelemetryAttributes, TelemetryAttributeValue, } f
|
|
|
16
17
|
export { AccountService, Bursar, CatalogService } from "./bursar.js";
|
|
17
18
|
export type { AccountCreatedInput, AccountCreatedResult, BillingBursarOptions, BursarOptions, BillingCapability, BillingEventSink, CommerceOptions, CreditsService, CreditsOnlyBursarOptions, } from "./bursar.js";
|
|
18
19
|
export * from "./commerce/index.js";
|
|
19
|
-
export type { AddCreditsResult, AddTeamMemberResult, AggregateStats, AllowanceResult, AvailableResult, BalanceResult, BillingMode, CatalogRevisionSummary, CatalogRevision, BucketBalance, BucketBalancesResult, BucketDefinition, CanAffordResult, CheckFeatureResult, CreateTeamResult, CreditMetadata, DailySpendRow, DeductionResult, DeductionFailure, DeductionSuccess, DeductWithAllowanceOptions, ExecuteGrantProgramRequest, GetUserPlanResult, GrantProgramAwardResult, GrantProgramTrigger, LeaseResult, LeaseFailure, LeaseSuccess, LeasePricingContext, ListQuotaEventsOptions, PlanAllowancePolicy, PlanAdmissionPolicy, PlanCreditPolicy, PlanMigrationBatchResult, PlanMigrationStartResult, QuotaEvent, QuotaState, RefundResult, RefundFailure, RefundSuccess, RevokeCreditsResult, ReleaseResult, SetUserPlanResult, SpendByModelRow, SpendByUserRow, ListLedgerEntriesOptions, ListUsageChargesOptions, ListUsageEntriesOptions, LedgerCursor, LedgerPage, LedgerEntry, UsageCharge, UsageChargeCursor, UsageChargePage, UsageRecordResult, UsageRecordFailure, UsageRecordSuccess, SweepResult, Team, TeamBalanceResult, TeamDeductionResult, TeamDeductionFailure, TeamDeductionSuccess, TeamMember, TopUserRow, UsageAnalyticsStore, } from "./credits/types/index.js";
|
|
20
|
-
export type { CreateLeaseOptions, CreateTeamOptions, SettleLeaseOptions } from "./credits/store.js";
|
|
20
|
+
export type { AddCreditsResult, AddTeamMemberResult, AggregateStats, AllowanceResult, AvailableResult, BalanceResult, BillingMode, CatalogRevisionSummary, CatalogRevision, BucketBalance, BucketBalancesResult, BucketDefinition, CanAffordResult, CheckFeatureResult, CreateTeamResult, CreditMetadata, DailySpendRow, DeductionResult, DeductionFailure, DeductionSuccess, DeductWithAllowanceOptions, ExecuteGrantProgramRequest, GetUserPlanResult, GrantProgramAwardResult, GrantProgramTrigger, LeaseResult, LeaseFailure, LeaseSuccess, LeasePricingContext, ListQuotaEventsOptions, PlanAllowancePolicy, PlanAdmissionPolicy, PlanCreditPolicy, PlanMigrationBatchResult, PlanMigrationStartResult, QuotaEvent, QuotaState, RefundResult, RefundFailure, RefundSuccess, RevokeCreditsResult, ReleaseResult, SetUserPlanResult, SpendByModelRow, SpendByUserRow, ListLedgerEntriesOptions, ListUsageChargesOptions, ListUsageEntriesOptions, LedgerCursor, LedgerPage, LedgerEntry, OperationReceipt, UsageCharge, UsageChargeCursor, UsageChargePage, UsageRecordResult, UsageRecordFailure, UsageRecordSuccess, SweepResult, Team, TeamBalanceResult, TeamDeductionResult, TeamDeductionFailure, TeamDeductionSuccess, TeamMember, TopUserRow, UsageAnalyticsStore, } from "./credits/types/index.js";
|
|
21
|
+
export type { CreateLeaseOptions, CreateTeamOptions, DeductTeamStoreOptions, SettleLeaseOptions, } from "./credits/store.js";
|
|
21
22
|
export type { AddCreditsOptions, BeginBilledOperationOptions, CanAffordOptions, CreditsServiceOptions, DeductCreditsOptions, DeductFlatJobOptions, DeductOptions, DeductTeamOptions, ExactAmount, GrantSubscriptionCycleOptions, LowBalanceConfig, MetricsOrAmount, PostDeductionContext, RecordUsageOptions, RefundCreditsOptions, ReserveOptions, RunBilledOptions, SettleOptions, } from "./credits/service-types.js";
|
|
22
23
|
export { CreditStore } from "./credits/store.js";
|
|
23
24
|
export { PostgresStore } from "./credits/postgres/store.js";
|
|
24
25
|
export type { PostgresStoreOptions } from "./credits/postgres/store.js";
|
|
25
26
|
export type { PostgresConnectionOptions } from "./shared/postgres-client.js";
|
|
27
|
+
export { resolveProviderId } from "./config/parse-commerce.js";
|
|
26
28
|
export { PROVIDER_ENVIRONMENTS } from "./providers/environment.js";
|
|
27
29
|
export type { ProviderEnvironment } from "./providers/environment.js";
|
|
28
30
|
export type { CreditEvent, CreditEventType } from "./credits/events.js";
|
|
@@ -30,5 +32,5 @@ export { CreditEventEmitter } from "./credits/events.js";
|
|
|
30
32
|
export { BillingStore, PostgresBillingStore } from "./billing/index.js";
|
|
31
33
|
export { AUTO_RECHARGE_STATES, BillingEventType } from "./billing/index.js";
|
|
32
34
|
export type { BillingServiceOptions } from "./billing/billing-service.js";
|
|
33
|
-
export type { BillingAutoRechargeAttempt, BillingAutoRechargeAttemptState, BillingAutoRechargeProfile, BillingAutoRechargeStatus, BillingProvisioningPort, BillingCreditPostingResult, BillingCustomerInfo, BillingCustomerRecord, BillingDisputeInfo, BillingEvent, BillingEventClaim, BillingEventHandler, BillingEventResult, BillingInvoiceInfo, BillingInvoiceRecord, BillingOfferInterval, BillingPaymentInfo, BillingPaymentRecord, BillingPreferences, PostgresBillingStoreOptions, BillingRefundInfo, BillingSubscriptionInfo, BillingSubscriptionChange, BillingSubscriptionChangeInput, BillingSubscriptionOfferContext, BillingSubscriptionChangeState, BillingSubscriptionState, BillingSubscriptionStatus, EntitlementMode, ProviderRef, SubscriptionGrant, } from "./billing/index.js";
|
|
35
|
+
export type { BillingAutoRechargeAttempt, BillingAutoRechargeAttemptState, BillingAutoRechargeProfile, BillingAutoRechargeStatus, BillingProvisioningPort, BillingCreditPostingResult, BillingCustomerInfo, BillingCustomerRecord, BillingDisputeInfo, BillingEvent, BillingEventClaim, BillingEventHandler, BillingEventResult, BillingInvoiceInfo, BillingInvoiceRecord, BillingInvoiceCursor, BillingInvoicePage, ListBillingInvoicesOptions, BillingOfferInterval, BillingPaymentInfo, BillingPaymentRecord, BillingPreferences, PostgresBillingStoreOptions, BillingRefundInfo, BillingSubscriptionInfo, BillingSubscriptionChange, BillingSubscriptionChangeInput, BillingSubscriptionOfferContext, BillingSubscriptionChangeState, BillingSubscriptionState, BillingSubscriptionStatus, EntitlementMode, ProviderRef, SubscriptionGrant, } from "./billing/index.js";
|
|
34
36
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AACtF,eAAO,MAAM,uBAAuB,OAAO,CAAC;AAE5C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,YAAY,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,YAAY,EACV,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,aAAa,EACb,aAAa,EACb,cAAc,EACd,aAAa,EACb,WAAW,EACX,mBAAmB,EACnB,cAAc,EACd,MAAM,EACN,MAAM,EACN,iBAAiB,GAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,yBAAyB,EACzB,2BAA2B,EAC3B,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,C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,EACvB,yBAAyB,EACzB,8BAA8B,EAC9B,+BAA+B,EAC/B,8BAA8B,EAC9B,wBAAwB,EACxB,yBAAyB,EACzB,eAAe,EACf,WAAW,EACX,iBAAiB,GAClB,MAAM,oBAAoB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
/** Confirmed plan changes can be retried using the same operation key and request. */
|
|
2
|
+
export const PLAN_CHANGE_REPLAY_SAFE = true;
|
|
1
3
|
export { PricingEngine } from "./engine.js";
|
|
2
|
-
export { makeCostBreakdown } from "./breakdown.js";
|
|
3
4
|
export { canonicalBursarConfigDict, canonicalCatalogRolloutDict, loadCatalogRollout, loadConfigFromDict, validateCatalogRollout, } from "./config.js";
|
|
4
5
|
export { projectPublicCatalog } from "./catalog.js";
|
|
5
|
-
export { AutoRechargeDisabledError, AutoRechargeNotConfiguredError, BillingError, BursarError, CapabilityNotConfiguredError, CapabilityNotSupportedError, CapReachedError, ConcurrencyLimitError, CreditError, ConfigError, ExpressionError, FeatureNotEntitledError, ImportError, InsufficientCreditsError, LeaseExpiredError, LeaseNotFoundError, OperationNotAllowedError, PaymentMethodRequiredError, ProviderCapabilityNotSupportedError, ProviderResponseError, CatalogNotLoadedError, RefundError, QuotaExceededError, StoreError, StoreClosedError, StoreTimeoutError, StoreUnavailableError, bursarErrorHttpStatus, bursarErrorPublicMessage, isBursarError, isRetryableBursarError, } from "./errors.js";
|
|
6
|
+
export { AutoRechargeDisabledError, AutoRechargeNotConfiguredError, BillingError, BursarError, CapabilityNotConfiguredError, CapabilityNotSupportedError, CapReachedError, ConcurrencyLimitError, CreditError, ConfigError, ExpressionError, FeatureNotEntitledError, ImportError, IdempotencyConflictError, InsufficientCreditsError, LeaseExpiredError, LeaseNotFoundError, OperationNotAllowedError, PaymentMethodRequiredError, ProviderCapabilityNotSupportedError, ProviderResponseError, CatalogNotLoadedError, StaleQuoteError, RefundError, QuotaExceededError, StoreError, StoreClosedError, StoreTimeoutError, StoreUnavailableError, bursarErrorHttpStatus, bursarErrorPublicMessage, isBursarError, isRetryableBursarError, } from "./errors.js";
|
|
6
7
|
export { retryBursarOperation } from "./retry.js";
|
|
7
8
|
export { validateExpression, evaluateExpression } from "./expr.js";
|
|
8
9
|
export { BURSAR_INSTRUMENTATION_SCOPE, BURSAR_INSTRUMENTATION_VERSION, NOOP_INSTRUMENTATION, NoopInstrumentation, getDefaultInstrumentation, sanitizeTelemetryAttributes, setDefaultInstrumentation, telemetryErrorAttributes, telemetryOperationAttributes, } from "./telemetry/index.js";
|
|
@@ -12,6 +13,7 @@ export * from "./commerce/index.js";
|
|
|
12
13
|
// Stores
|
|
13
14
|
export { CreditStore } from "./credits/store.js";
|
|
14
15
|
export { PostgresStore } from "./credits/postgres/store.js";
|
|
16
|
+
export { resolveProviderId } from "./config/parse-commerce.js";
|
|
15
17
|
export { PROVIDER_ENVIRONMENTS } from "./providers/environment.js";
|
|
16
18
|
export { CreditEventEmitter } from "./credits/events.js";
|
|
17
19
|
// Billing
|