lark-billing 0.0.6 → 0.0.8
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 +2 -1
- package/dist/cjs/Client.d.ts +15 -5
- package/dist/cjs/Client.js +28 -13
- package/dist/cjs/api/resources/checkout/client/Client.d.ts +6 -15
- package/dist/cjs/api/resources/checkout/client/Client.js +5 -63
- package/dist/cjs/api/resources/checkout/client/requests/CreateSubscriptionCheckoutSessionRequest.d.ts +6 -2
- package/dist/cjs/api/resources/{featureAccess → customerAccess}/client/Client.d.ts +13 -11
- package/dist/cjs/api/resources/{featureAccess → customerAccess}/client/Client.js +13 -11
- package/dist/cjs/api/resources/customerPortal/client/Client.d.ts +48 -0
- package/dist/cjs/api/resources/customerPortal/client/Client.js +130 -0
- package/dist/cjs/api/resources/customerPortal/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/customerPortal/client/index.js +17 -0
- package/dist/cjs/api/resources/customerPortal/client/requests/CreateCustomerPortalSessionRequest.d.ts +12 -0
- package/dist/cjs/api/resources/customerPortal/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/customerPortal/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/customerPortal/index.d.ts +1 -0
- package/dist/cjs/api/resources/customerPortal/index.js +17 -0
- package/dist/cjs/api/resources/index.d.ts +8 -1
- package/dist/cjs/api/resources/index.js +9 -2
- package/dist/cjs/api/resources/invoices/client/Client.d.ts +50 -0
- package/dist/cjs/api/resources/invoices/client/Client.js +135 -0
- package/dist/cjs/api/resources/invoices/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/invoices/client/index.js +17 -0
- package/dist/cjs/api/resources/{subscriptions/client/requests/SubscriptionsListSubscriptionsRequest.d.ts → invoices/client/requests/ListInvoicesInvoicesGetRequest.d.ts} +4 -1
- package/dist/cjs/api/resources/invoices/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/invoices/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/invoices/index.d.ts +1 -0
- package/dist/cjs/api/resources/invoices/index.js +17 -0
- package/dist/cjs/api/resources/pricingMetrics/client/Client.d.ts +77 -0
- package/dist/cjs/api/resources/pricingMetrics/client/Client.js +253 -0
- package/dist/cjs/api/resources/pricingMetrics/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/pricingMetrics/client/index.js +17 -0
- package/dist/cjs/api/resources/pricingMetrics/client/requests/CreatePricingMetricRequest.d.ts +22 -0
- package/dist/{esm/api/resources/subjects/client/requests/SubjectsListSubjectsRequest.d.mts → cjs/api/resources/pricingMetrics/client/requests/ListPricingMetricsPricingMetricsGetRequest.d.ts} +2 -4
- package/dist/cjs/api/resources/pricingMetrics/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/pricingMetrics/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/pricingMetrics/index.d.ts +2 -0
- package/dist/cjs/api/resources/pricingMetrics/index.js +18 -0
- package/dist/cjs/api/resources/pricingMetrics/types/PricingMetricAggregation.d.ts +13 -0
- package/dist/cjs/api/resources/pricingMetrics/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/pricingMetrics/types/index.js +17 -0
- package/dist/cjs/api/resources/rateCards/client/Client.d.ts +9 -112
- package/dist/cjs/api/resources/rateCards/client/Client.js +10 -247
- package/dist/cjs/api/resources/rateCards/client/requests/CreateRateCardRequest.d.ts +3 -38
- package/dist/{esm/api/resources/rateCards/client/requests/RateCardsListRateCardsRequest.d.mts → cjs/api/resources/rateCards/client/requests/ListRateCardsRateCardsGetRequest.d.ts} +2 -4
- package/dist/cjs/api/resources/rateCards/client/requests/index.d.ts +1 -2
- package/dist/cjs/api/resources/rateCards/types/CreateRateCardRequestUsageBasedRatesItem.d.ts +2 -5
- package/dist/cjs/api/resources/rateCards/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/rateCards/types/index.js +0 -1
- package/dist/cjs/api/resources/subjects/client/Client.d.ts +6 -5
- package/dist/cjs/api/resources/subjects/client/Client.js +12 -11
- package/dist/cjs/api/resources/subjects/client/requests/CreateSubjectRequest.d.ts +4 -1
- package/dist/cjs/api/resources/subjects/client/requests/{SubjectsListSubjectsRequest.d.ts → ListSubjectsSubjectsGetRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/subjects/client/requests/UpdateSubjectRequest.d.ts +3 -2
- package/dist/cjs/api/resources/subjects/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/subscriptions/client/Client.d.ts +22 -13
- package/dist/cjs/api/resources/subscriptions/client/Client.js +70 -42
- package/dist/cjs/api/resources/subscriptions/client/requests/CancelSubscriptionRequest.d.ts +13 -0
- package/dist/cjs/api/resources/subscriptions/client/requests/ChangeSubscriptionRateCardRequest.d.ts +12 -0
- package/dist/cjs/api/resources/subscriptions/client/requests/CreateSubscriptionRequest.d.ts +6 -6
- package/dist/cjs/api/resources/subscriptions/client/requests/ListSubscriptionsSubscriptionsGetRequest.d.ts +18 -0
- package/dist/cjs/api/resources/subscriptions/client/requests/index.d.ts +3 -1
- package/dist/cjs/api/resources/usageEvents/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/usageEvents/client/Client.js +5 -5
- package/dist/cjs/api/resources/usageEvents/client/requests/CreateUsageEventRequest.d.ts +1 -2
- package/dist/cjs/api/types/Aggregation.d.ts +3 -12
- package/dist/cjs/api/types/Amount.d.ts +2 -1
- package/dist/cjs/api/types/BillingStateResponse.d.ts +7 -0
- package/dist/cjs/api/types/{CreditGrantScheduleOneTimeResource.d.ts → CountAggregationPricingMetricResource.d.ts} +1 -1
- package/dist/cjs/api/types/CreateCustomerPortalSessionResponse.d.ts +7 -0
- package/dist/cjs/api/types/{CreatePricingMatrixInterface.d.ts → CreateFixedRateRequest.d.ts} +4 -2
- package/dist/cjs/api/types/{PricingMetricInterface.d.ts → CreatePricingMetricResponse.d.ts} +1 -2
- package/dist/cjs/api/types/CreateSimpleUsageBasedRateRequest.d.ts +12 -0
- package/dist/cjs/api/types/CreateSubjectResponse.d.ts +7 -1
- package/dist/cjs/api/types/CreateSubscriptionCheckoutSessionResponse.d.ts +1 -2
- package/dist/cjs/api/types/CreateUsageEventSummaryResponse.d.ts +1 -1
- package/dist/cjs/api/types/FixedRateInterface.d.ts +1 -4
- package/dist/cjs/api/types/{CreatePricingMetricInterface.d.ts → GetPricingMetricResponse.d.ts} +2 -2
- package/dist/cjs/api/types/{CompleteSubscriptionCheckoutResponse.d.ts → InvoiceLineItemResource.d.ts} +4 -2
- package/dist/cjs/api/types/InvoiceResource.d.ts +25 -0
- package/dist/cjs/api/types/InvoiceResource.js +16 -0
- package/dist/cjs/api/types/{PricingMatrixInterface.d.ts → ListInvoicesResponse.d.ts} +3 -2
- package/dist/cjs/api/types/ListPricingMetricsResponse.d.ts +8 -0
- package/dist/cjs/api/types/PeriodResource.d.ts +9 -0
- package/dist/cjs/api/types/Price.d.ts +10 -1
- package/dist/cjs/api/types/PricingMetricResource.d.ts +11 -0
- package/dist/cjs/api/types/RateCardResource.d.ts +0 -4
- package/dist/cjs/api/types/RateCardResourceUsageBasedRatesItem.d.ts +1 -4
- package/dist/cjs/api/types/SimpleUsageBasedRateInterface.d.ts +2 -4
- package/dist/cjs/api/types/SubjectResource.d.ts +7 -1
- package/dist/cjs/api/types/SubscriptionResource.d.ts +4 -2
- package/dist/cjs/api/types/{MaxAggregationPricingMetricInterface.d.ts → SumAggregationPricingMetricResource.d.ts} +1 -2
- package/dist/cjs/api/types/index.d.ts +14 -88
- package/dist/cjs/api/types/index.js +14 -88
- package/dist/cjs/environments.d.ts +7 -0
- package/dist/cjs/environments.js +9 -0
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +3 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +15 -5
- package/dist/esm/Client.mjs +22 -7
- package/dist/esm/api/resources/checkout/client/Client.d.mts +6 -15
- package/dist/esm/api/resources/checkout/client/Client.mjs +5 -63
- package/dist/esm/api/resources/checkout/client/requests/CreateSubscriptionCheckoutSessionRequest.d.mts +6 -2
- package/dist/esm/api/resources/{featureAccess → customerAccess}/client/Client.d.mts +13 -11
- package/dist/esm/api/resources/{featureAccess → customerAccess}/client/Client.mjs +11 -9
- package/dist/esm/api/resources/customerPortal/client/Client.d.mts +48 -0
- package/dist/esm/api/resources/customerPortal/client/Client.mjs +93 -0
- package/dist/esm/api/resources/customerPortal/client/index.d.mts +2 -0
- package/dist/esm/api/resources/customerPortal/client/index.mjs +1 -0
- package/dist/esm/api/resources/customerPortal/client/requests/CreateCustomerPortalSessionRequest.d.mts +12 -0
- package/dist/esm/api/resources/customerPortal/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/customerPortal/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/customerPortal/index.d.mts +1 -0
- package/dist/esm/api/resources/customerPortal/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +8 -1
- package/dist/esm/api/resources/index.mjs +8 -1
- package/dist/esm/api/resources/invoices/client/Client.d.mts +50 -0
- package/dist/esm/api/resources/invoices/client/Client.mjs +98 -0
- package/dist/esm/api/resources/invoices/client/index.d.mts +2 -0
- package/dist/esm/api/resources/invoices/client/index.mjs +1 -0
- package/dist/esm/api/resources/invoices/client/requests/ListInvoicesInvoicesGetRequest.d.mts +17 -0
- package/dist/esm/api/resources/invoices/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/invoices/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/invoices/index.d.mts +1 -0
- package/dist/esm/api/resources/invoices/index.mjs +1 -0
- package/dist/esm/api/resources/pricingMetrics/client/Client.d.mts +77 -0
- package/dist/esm/api/resources/pricingMetrics/client/Client.mjs +216 -0
- package/dist/esm/api/resources/pricingMetrics/client/index.d.mts +2 -0
- package/dist/esm/api/resources/pricingMetrics/client/index.mjs +1 -0
- package/dist/esm/api/resources/pricingMetrics/client/requests/CreatePricingMetricRequest.d.mts +22 -0
- package/dist/esm/api/resources/pricingMetrics/client/requests/ListPricingMetricsPricingMetricsGetRequest.d.mts +12 -0
- package/dist/esm/api/resources/pricingMetrics/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/pricingMetrics/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/pricingMetrics/index.d.mts +2 -0
- package/dist/esm/api/resources/pricingMetrics/index.mjs +2 -0
- package/dist/esm/api/resources/pricingMetrics/types/PricingMetricAggregation.d.mts +13 -0
- package/dist/esm/api/resources/pricingMetrics/types/index.d.mts +1 -0
- package/dist/esm/api/resources/pricingMetrics/types/index.mjs +1 -0
- package/dist/esm/api/resources/rateCards/client/Client.d.mts +9 -112
- package/dist/esm/api/resources/rateCards/client/Client.mjs +10 -247
- package/dist/esm/api/resources/rateCards/client/requests/CreateRateCardRequest.d.mts +3 -38
- package/dist/esm/api/resources/rateCards/client/requests/ListRateCardsRateCardsGetRequest.d.mts +12 -0
- package/dist/esm/api/resources/rateCards/client/requests/index.d.mts +1 -2
- package/dist/esm/api/resources/rateCards/types/CreateRateCardRequestUsageBasedRatesItem.d.mts +2 -5
- package/dist/esm/api/resources/rateCards/types/index.d.mts +0 -1
- package/dist/esm/api/resources/rateCards/types/index.mjs +0 -1
- package/dist/esm/api/resources/subjects/client/Client.d.mts +6 -5
- package/dist/esm/api/resources/subjects/client/Client.mjs +12 -11
- package/dist/esm/api/resources/subjects/client/requests/CreateSubjectRequest.d.mts +4 -1
- package/dist/{cjs/api/resources/rateCards/client/requests/RateCardsListRateCardsRequest.d.ts → esm/api/resources/subjects/client/requests/ListSubjectsSubjectsGetRequest.d.mts} +1 -1
- package/dist/esm/api/resources/subjects/client/requests/UpdateSubjectRequest.d.mts +3 -2
- package/dist/esm/api/resources/subjects/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/subscriptions/client/Client.d.mts +22 -13
- package/dist/esm/api/resources/subscriptions/client/Client.mjs +70 -42
- package/dist/esm/api/resources/subscriptions/client/requests/CancelSubscriptionRequest.d.mts +13 -0
- package/dist/esm/api/resources/subscriptions/client/requests/ChangeSubscriptionRateCardRequest.d.mts +12 -0
- package/dist/esm/api/resources/subscriptions/client/requests/CreateSubscriptionRequest.d.mts +6 -6
- package/dist/esm/api/resources/subscriptions/client/requests/ListSubscriptionsSubscriptionsGetRequest.d.mts +18 -0
- package/dist/esm/api/resources/subscriptions/client/requests/index.d.mts +3 -1
- package/dist/esm/api/resources/usageEvents/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/usageEvents/client/Client.mjs +5 -5
- package/dist/esm/api/resources/usageEvents/client/requests/CreateUsageEventRequest.d.mts +1 -2
- package/dist/esm/api/types/Aggregation.d.mts +3 -12
- package/dist/esm/api/types/Amount.d.mts +2 -1
- package/dist/esm/api/types/BillingStateResponse.d.mts +7 -0
- package/dist/esm/api/types/{CreditGrantScheduleOneTimeResource.d.mts → CountAggregationPricingMetricResource.d.mts} +1 -1
- package/dist/esm/api/types/CreateCustomerPortalSessionResponse.d.mts +7 -0
- package/dist/esm/api/types/{PricingMatrixInterface.d.mts → CreateFixedRateRequest.d.mts} +4 -2
- package/dist/esm/api/types/{PricingMetricInterface.d.mts → CreatePricingMetricResponse.d.mts} +1 -2
- package/dist/esm/api/types/CreateSimpleUsageBasedRateRequest.d.mts +12 -0
- package/dist/esm/api/types/CreateSubjectResponse.d.mts +7 -1
- package/dist/esm/api/types/CreateSubscriptionCheckoutSessionResponse.d.mts +1 -2
- package/dist/esm/api/types/CreateUsageEventSummaryResponse.d.mts +1 -1
- package/dist/esm/api/types/FixedRateInterface.d.mts +1 -4
- package/dist/esm/api/types/{CreatePricingMetricInterface.d.mts → GetPricingMetricResponse.d.mts} +2 -2
- package/dist/esm/api/types/InvoiceLineItemResource.d.mts +10 -0
- package/dist/esm/api/types/InvoiceResource.d.mts +25 -0
- package/dist/esm/api/types/InvoiceResource.mjs +13 -0
- package/dist/esm/api/types/{CompleteSubscriptionCheckoutResponse.d.mts → ListInvoicesResponse.d.mts} +3 -3
- package/dist/esm/api/types/ListPricingMetricsResponse.d.mts +8 -0
- package/dist/esm/api/types/PeriodResource.d.mts +9 -0
- package/dist/esm/api/types/Price.d.mts +10 -1
- package/dist/esm/api/types/PricingMetricResource.d.mts +11 -0
- package/dist/esm/api/types/RateCardResource.d.mts +0 -4
- package/dist/esm/api/types/RateCardResourceUsageBasedRatesItem.d.mts +1 -4
- package/dist/esm/api/types/SimpleUsageBasedRateInterface.d.mts +2 -4
- package/dist/esm/api/types/SubjectResource.d.mts +7 -1
- package/dist/esm/api/types/SubscriptionResource.d.mts +4 -2
- package/dist/esm/api/types/{MaxAggregationPricingMetricInterface.d.mts → SumAggregationPricingMetricResource.d.mts} +1 -2
- package/dist/esm/api/types/index.d.mts +14 -88
- package/dist/esm/api/types/index.mjs +14 -88
- package/dist/esm/environments.d.mts +7 -0
- package/dist/esm/environments.mjs +6 -0
- package/dist/esm/index.d.mts +1 -0
- package/dist/esm/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +192 -195
- package/dist/cjs/api/resources/rateCards/client/requests/CreateRateCardVersionRequest.d.ts +0 -63
- package/dist/cjs/api/resources/rateCards/client/requests/CreateRateCardVersionRequest.js +0 -13
- package/dist/cjs/api/resources/rateCards/types/CreateRateCardVersionRequestUsageBasedRatesItem.d.ts +0 -13
- package/dist/cjs/api/types/CheckFeatureAccessRequest.d.ts +0 -8
- package/dist/cjs/api/types/CheckFeatureAccessResponse.d.ts +0 -8
- package/dist/cjs/api/types/CreateCreditGrantInterface.d.ts +0 -12
- package/dist/cjs/api/types/CreateCreditGrantInterfaceExpiration.d.ts +0 -10
- package/dist/cjs/api/types/CreateCreditPoolRequest.d.ts +0 -4
- package/dist/cjs/api/types/CreateDimensionCoordinateInterface.d.ts +0 -7
- package/dist/cjs/api/types/CreateDimensionInterface.d.ts +0 -7
- package/dist/cjs/api/types/CreateDimensionalUsageBasedRateInterface.d.ts +0 -14
- package/dist/cjs/api/types/CreateFixedRateInterface.d.ts +0 -12
- package/dist/cjs/api/types/CreatePricingMatrixCellInterface.d.ts +0 -8
- package/dist/cjs/api/types/CreatePricingPlanRequest.d.ts +0 -4
- package/dist/cjs/api/types/CreateRateCardResponse.d.ts +0 -26
- package/dist/cjs/api/types/CreateRateCardResponse.js +0 -13
- package/dist/cjs/api/types/CreateRateCardResponseUsageBasedRatesItem.d.ts +0 -13
- package/dist/cjs/api/types/CreateRateCardVersionResponse.d.ts +0 -26
- package/dist/cjs/api/types/CreateRateCardVersionResponse.js +0 -13
- package/dist/cjs/api/types/CreateRateCardVersionResponseUsageBasedRatesItem.d.ts +0 -13
- package/dist/cjs/api/types/CreateSimpleUsageBasedRateInterface.d.ts +0 -13
- package/dist/cjs/api/types/CreditGrant.d.ts +0 -4
- package/dist/cjs/api/types/CreditGrantDateTimeExpirationInterface.d.ts +0 -6
- package/dist/cjs/api/types/CreditGrantDateTimeExpirationResource.d.ts +0 -6
- package/dist/cjs/api/types/CreditGrantDateTimeExpirationResource.js +0 -5
- package/dist/cjs/api/types/CreditGrantDurationExpirationInterface.d.ts +0 -17
- package/dist/cjs/api/types/CreditGrantDurationExpirationInterface.js +0 -16
- package/dist/cjs/api/types/CreditGrantDurationExpirationResource.d.ts +0 -17
- package/dist/cjs/api/types/CreditGrantDurationExpirationResource.js +0 -16
- package/dist/cjs/api/types/CreditGrantInterface.d.ts +0 -12
- package/dist/cjs/api/types/CreditGrantInterface.js +0 -5
- package/dist/cjs/api/types/CreditGrantInterfaceInputExpiration.d.ts +0 -10
- package/dist/cjs/api/types/CreditGrantInterfaceInputExpiration.js +0 -5
- package/dist/cjs/api/types/CreditGrantInterfaceOutputExpiration.d.ts +0 -13
- package/dist/cjs/api/types/CreditGrantInterfaceOutputExpiration.js +0 -5
- package/dist/cjs/api/types/CreditGrantInterfaceOutputSchedule.d.ts +0 -13
- package/dist/cjs/api/types/CreditGrantInterfaceOutputSchedule.js +0 -5
- package/dist/cjs/api/types/CreditGrantResource.d.ts +0 -12
- package/dist/cjs/api/types/CreditGrantResource.js +0 -5
- package/dist/cjs/api/types/CreditGrantResourceInputExpiration.d.ts +0 -10
- package/dist/cjs/api/types/CreditGrantResourceInputExpiration.js +0 -5
- package/dist/cjs/api/types/CreditGrantResourceInputSchedule.d.ts +0 -13
- package/dist/cjs/api/types/CreditGrantResourceInputSchedule.js +0 -5
- package/dist/cjs/api/types/CreditGrantResourceOutputExpiration.d.ts +0 -13
- package/dist/cjs/api/types/CreditGrantResourceOutputExpiration.js +0 -5
- package/dist/cjs/api/types/CreditGrantResourceOutputSchedule.d.ts +0 -13
- package/dist/cjs/api/types/CreditGrantResourceOutputSchedule.js +0 -5
- package/dist/cjs/api/types/CreditGrantSchedule.d.ts +0 -4
- package/dist/cjs/api/types/CreditGrantSchedule.js +0 -5
- package/dist/cjs/api/types/CreditGrantScheduleOneTimeInterface.d.ts +0 -6
- package/dist/cjs/api/types/CreditGrantScheduleOneTimeInterface.js +0 -5
- package/dist/cjs/api/types/CreditGrantScheduleOneTimeResource.js +0 -5
- package/dist/cjs/api/types/CreditGrantScheduleRateCycleStartInterface.d.ts +0 -6
- package/dist/cjs/api/types/CreditGrantScheduleRateCycleStartInterface.js +0 -5
- package/dist/cjs/api/types/CreditGrantScheduleRateCycleStartResource.d.ts +0 -5
- package/dist/cjs/api/types/CreditGrantScheduleRateCycleStartResource.js +0 -5
- package/dist/cjs/api/types/CreditGrantSubjectGrantingConfigInterface.d.ts +0 -7
- package/dist/cjs/api/types/CreditGrantSubjectGrantingConfigInterface.js +0 -5
- package/dist/cjs/api/types/CreditPool.d.ts +0 -4
- package/dist/cjs/api/types/CreditPool.js +0 -5
- package/dist/cjs/api/types/CreditPoolRolloverConfig.d.ts +0 -4
- package/dist/cjs/api/types/CreditPoolRolloverConfig.js +0 -5
- package/dist/cjs/api/types/CustomAggregationPricingMetricInterface.d.ts +0 -7
- package/dist/cjs/api/types/CustomAggregationPricingMetricInterface.js +0 -5
- package/dist/cjs/api/types/CustomPricingMetric.d.ts +0 -4
- package/dist/cjs/api/types/CustomPricingMetric.js +0 -5
- package/dist/cjs/api/types/CustomUnit.d.ts +0 -4
- package/dist/cjs/api/types/CustomUnit.js +0 -5
- package/dist/cjs/api/types/CustomUnitAmount.d.ts +0 -4
- package/dist/cjs/api/types/CustomUnitAmount.js +0 -5
- package/dist/cjs/api/types/Dimension.d.ts +0 -4
- package/dist/cjs/api/types/Dimension.js +0 -5
- package/dist/cjs/api/types/DimensionCoordinate.d.ts +0 -4
- package/dist/cjs/api/types/DimensionCoordinate.js +0 -5
- package/dist/cjs/api/types/DimensionCoordinateInterface.d.ts +0 -7
- package/dist/cjs/api/types/DimensionCoordinateInterface.js +0 -5
- package/dist/cjs/api/types/DimensionCoordinateSet.d.ts +0 -4
- package/dist/cjs/api/types/DimensionCoordinateSet.js +0 -5
- package/dist/cjs/api/types/DimensionInterface.d.ts +0 -7
- package/dist/cjs/api/types/DimensionInterface.js +0 -5
- package/dist/cjs/api/types/DimensionalRateMatrix.d.ts +0 -4
- package/dist/cjs/api/types/DimensionalRateMatrix.js +0 -5
- package/dist/cjs/api/types/DimensionalRateMatrixCell.d.ts +0 -4
- package/dist/cjs/api/types/DimensionalRateMatrixCell.js +0 -5
- package/dist/cjs/api/types/DimensionalUsageBasedRate.d.ts +0 -4
- package/dist/cjs/api/types/DimensionalUsageBasedRate.js +0 -5
- package/dist/cjs/api/types/DimensionalUsageBasedRateInput.d.ts +0 -4
- package/dist/cjs/api/types/DimensionalUsageBasedRateInput.js +0 -5
- package/dist/cjs/api/types/DimensionalUsageBasedRateInterface.d.ts +0 -15
- package/dist/cjs/api/types/DimensionalUsageBasedRateInterface.js +0 -5
- package/dist/cjs/api/types/FeatureAccessResource.d.ts +0 -8
- package/dist/cjs/api/types/FeatureAccessResource.js +0 -5
- package/dist/cjs/api/types/GetRateCardResponse.d.ts +0 -26
- package/dist/cjs/api/types/GetRateCardResponse.js +0 -13
- package/dist/cjs/api/types/GetRateCardResponseUsageBasedRatesItem.d.ts +0 -13
- package/dist/cjs/api/types/GetRateCardResponseUsageBasedRatesItem.js +0 -5
- package/dist/cjs/api/types/GrantCreditsRequest.d.ts +0 -4
- package/dist/cjs/api/types/GrantCreditsRequest.js +0 -5
- package/dist/cjs/api/types/LastAggregationPricingMetricInterface.d.ts +0 -7
- package/dist/cjs/api/types/LastAggregationPricingMetricInterface.js +0 -5
- package/dist/cjs/api/types/LicenseBasedRate.d.ts +0 -4
- package/dist/cjs/api/types/LicenseBasedRate.js +0 -5
- package/dist/cjs/api/types/LicenseBasedRateInput.d.ts +0 -4
- package/dist/cjs/api/types/LicenseBasedRateInput.js +0 -5
- package/dist/cjs/api/types/MaxAggregationPricingMetricInterface.js +0 -5
- package/dist/cjs/api/types/MonetaryAmount.d.ts +0 -4
- package/dist/cjs/api/types/MonetaryAmount.js +0 -5
- package/dist/cjs/api/types/PackagePriceWrapper.d.ts +0 -4
- package/dist/cjs/api/types/PackagePriceWrapper.js +0 -5
- package/dist/cjs/api/types/PricingMatrixCellInterface.d.ts +0 -8
- package/dist/cjs/api/types/PricingMatrixCellInterface.js +0 -5
- package/dist/cjs/api/types/PricingMatrixInterface.js +0 -5
- package/dist/cjs/api/types/PricingMetric.d.ts +0 -4
- package/dist/cjs/api/types/PricingMetric.js +0 -5
- package/dist/cjs/api/types/PricingMetricInterface.js +0 -5
- package/dist/cjs/api/types/PricingPlan.d.ts +0 -4
- package/dist/cjs/api/types/PricingPlan.js +0 -5
- package/dist/cjs/api/types/PricingPlanSubscription.d.ts +0 -4
- package/dist/cjs/api/types/PricingPlanSubscription.js +0 -5
- package/dist/cjs/api/types/PricingTier.d.ts +0 -4
- package/dist/cjs/api/types/PricingTier.js +0 -5
- package/dist/cjs/api/types/RateCard.d.ts +0 -4
- package/dist/cjs/api/types/RateCard.js +0 -5
- package/dist/cjs/api/types/RateCardVersion.d.ts +0 -4
- package/dist/cjs/api/types/RateCardVersion.js +0 -5
- package/dist/cjs/api/types/RateCardVersionInput.d.ts +0 -4
- package/dist/cjs/api/types/RateCardVersionInput.js +0 -5
- package/dist/cjs/api/types/SimpleUsageBasedRate.d.ts +0 -4
- package/dist/cjs/api/types/SimpleUsageBasedRate.js +0 -5
- package/dist/cjs/api/types/SimpleUsageBasedRateInput.d.ts +0 -4
- package/dist/cjs/api/types/SimpleUsageBasedRateInput.js +0 -5
- package/dist/cjs/api/types/Subject.d.ts +0 -4
- package/dist/cjs/api/types/Subject.js +0 -5
- package/dist/cjs/api/types/SubjectGrantingConfig.d.ts +0 -4
- package/dist/cjs/api/types/SubjectGrantingConfig.js +0 -5
- package/dist/cjs/api/types/SubjectGrantingConfigResource.d.ts +0 -7
- package/dist/cjs/api/types/SubjectGrantingConfigResource.js +0 -5
- package/dist/cjs/api/types/TieredPrice.d.ts +0 -4
- package/dist/cjs/api/types/TieredPrice.js +0 -5
- package/dist/cjs/api/types/TieredPriceWrapper.d.ts +0 -4
- package/dist/cjs/api/types/TieredPriceWrapper.js +0 -5
- package/dist/cjs/api/types/UpdatePricingPlanRequest.d.ts +0 -4
- package/dist/cjs/api/types/UpdatePricingPlanRequest.js +0 -5
- package/dist/cjs/api/types/UpdateRateCardRequest.d.ts +0 -4
- package/dist/cjs/api/types/UpdateRateCardRequest.js +0 -5
- package/dist/cjs/api/types/UpdateSubscriptionRequest.d.ts +0 -4
- package/dist/cjs/api/types/UpdateSubscriptionRequest.js +0 -5
- package/dist/cjs/api/types/UsageBasedRate.d.ts +0 -4
- package/dist/cjs/api/types/UsageBasedRate.js +0 -5
- package/dist/cjs/api/types/UsageBasedRateInput.d.ts +0 -4
- package/dist/cjs/api/types/UsageBasedRateInput.js +0 -5
- package/dist/cjs/api/types/UsageUnit.d.ts +0 -4
- package/dist/cjs/api/types/UsageUnit.js +0 -5
- package/dist/esm/api/resources/rateCards/client/requests/CreateRateCardVersionRequest.d.mts +0 -63
- package/dist/esm/api/resources/rateCards/client/requests/CreateRateCardVersionRequest.mjs +0 -10
- package/dist/esm/api/resources/rateCards/types/CreateRateCardVersionRequestUsageBasedRatesItem.d.mts +0 -13
- package/dist/esm/api/resources/subscriptions/client/requests/SubscriptionsListSubscriptionsRequest.d.mts +0 -14
- package/dist/esm/api/types/CheckFeatureAccessRequest.d.mts +0 -8
- package/dist/esm/api/types/CheckFeatureAccessResponse.d.mts +0 -8
- package/dist/esm/api/types/CreateCreditGrantInterface.d.mts +0 -12
- package/dist/esm/api/types/CreateCreditGrantInterfaceExpiration.d.mts +0 -10
- package/dist/esm/api/types/CreateCreditPoolRequest.d.mts +0 -4
- package/dist/esm/api/types/CreateDimensionCoordinateInterface.d.mts +0 -7
- package/dist/esm/api/types/CreateDimensionInterface.d.mts +0 -7
- package/dist/esm/api/types/CreateDimensionalUsageBasedRateInterface.d.mts +0 -14
- package/dist/esm/api/types/CreateFixedRateInterface.d.mts +0 -12
- package/dist/esm/api/types/CreatePricingMatrixCellInterface.d.mts +0 -8
- package/dist/esm/api/types/CreatePricingMatrixInterface.d.mts +0 -7
- package/dist/esm/api/types/CreatePricingPlanRequest.d.mts +0 -4
- package/dist/esm/api/types/CreateRateCardResponse.d.mts +0 -26
- package/dist/esm/api/types/CreateRateCardResponse.mjs +0 -10
- package/dist/esm/api/types/CreateRateCardResponseUsageBasedRatesItem.d.mts +0 -13
- package/dist/esm/api/types/CreateRateCardVersionResponse.d.mts +0 -26
- package/dist/esm/api/types/CreateRateCardVersionResponse.mjs +0 -10
- package/dist/esm/api/types/CreateRateCardVersionResponseUsageBasedRatesItem.d.mts +0 -13
- package/dist/esm/api/types/CreateSimpleUsageBasedRateInterface.d.mts +0 -13
- package/dist/esm/api/types/CreditGrant.d.mts +0 -4
- package/dist/esm/api/types/CreditGrantDateTimeExpirationInterface.d.mts +0 -6
- package/dist/esm/api/types/CreditGrantDateTimeExpirationResource.d.mts +0 -6
- package/dist/esm/api/types/CreditGrantDateTimeExpirationResource.mjs +0 -4
- package/dist/esm/api/types/CreditGrantDurationExpirationInterface.d.mts +0 -17
- package/dist/esm/api/types/CreditGrantDurationExpirationInterface.mjs +0 -13
- package/dist/esm/api/types/CreditGrantDurationExpirationResource.d.mts +0 -17
- package/dist/esm/api/types/CreditGrantDurationExpirationResource.mjs +0 -13
- package/dist/esm/api/types/CreditGrantInterface.d.mts +0 -12
- package/dist/esm/api/types/CreditGrantInterface.mjs +0 -4
- package/dist/esm/api/types/CreditGrantInterfaceInputExpiration.d.mts +0 -10
- package/dist/esm/api/types/CreditGrantInterfaceInputExpiration.mjs +0 -4
- package/dist/esm/api/types/CreditGrantInterfaceOutputExpiration.d.mts +0 -13
- package/dist/esm/api/types/CreditGrantInterfaceOutputExpiration.mjs +0 -4
- package/dist/esm/api/types/CreditGrantInterfaceOutputSchedule.d.mts +0 -13
- package/dist/esm/api/types/CreditGrantInterfaceOutputSchedule.mjs +0 -4
- package/dist/esm/api/types/CreditGrantResource.d.mts +0 -12
- package/dist/esm/api/types/CreditGrantResource.mjs +0 -4
- package/dist/esm/api/types/CreditGrantResourceInputExpiration.d.mts +0 -10
- package/dist/esm/api/types/CreditGrantResourceInputExpiration.mjs +0 -4
- package/dist/esm/api/types/CreditGrantResourceInputSchedule.d.mts +0 -13
- package/dist/esm/api/types/CreditGrantResourceInputSchedule.mjs +0 -4
- package/dist/esm/api/types/CreditGrantResourceOutputExpiration.d.mts +0 -13
- package/dist/esm/api/types/CreditGrantResourceOutputExpiration.mjs +0 -4
- package/dist/esm/api/types/CreditGrantResourceOutputSchedule.d.mts +0 -13
- package/dist/esm/api/types/CreditGrantResourceOutputSchedule.mjs +0 -4
- package/dist/esm/api/types/CreditGrantSchedule.d.mts +0 -4
- package/dist/esm/api/types/CreditGrantSchedule.mjs +0 -4
- package/dist/esm/api/types/CreditGrantScheduleOneTimeInterface.d.mts +0 -6
- package/dist/esm/api/types/CreditGrantScheduleOneTimeInterface.mjs +0 -4
- package/dist/esm/api/types/CreditGrantScheduleOneTimeResource.mjs +0 -4
- package/dist/esm/api/types/CreditGrantScheduleRateCycleStartInterface.d.mts +0 -6
- package/dist/esm/api/types/CreditGrantScheduleRateCycleStartInterface.mjs +0 -4
- package/dist/esm/api/types/CreditGrantScheduleRateCycleStartResource.d.mts +0 -5
- package/dist/esm/api/types/CreditGrantScheduleRateCycleStartResource.mjs +0 -4
- package/dist/esm/api/types/CreditGrantSubjectGrantingConfigInterface.d.mts +0 -7
- package/dist/esm/api/types/CreditGrantSubjectGrantingConfigInterface.mjs +0 -4
- package/dist/esm/api/types/CreditPool.d.mts +0 -4
- package/dist/esm/api/types/CreditPool.mjs +0 -4
- package/dist/esm/api/types/CreditPoolRolloverConfig.d.mts +0 -4
- package/dist/esm/api/types/CreditPoolRolloverConfig.mjs +0 -4
- package/dist/esm/api/types/CustomAggregationPricingMetricInterface.d.mts +0 -7
- package/dist/esm/api/types/CustomAggregationPricingMetricInterface.mjs +0 -4
- package/dist/esm/api/types/CustomPricingMetric.d.mts +0 -4
- package/dist/esm/api/types/CustomPricingMetric.mjs +0 -4
- package/dist/esm/api/types/CustomUnit.d.mts +0 -4
- package/dist/esm/api/types/CustomUnit.mjs +0 -4
- package/dist/esm/api/types/CustomUnitAmount.d.mts +0 -4
- package/dist/esm/api/types/CustomUnitAmount.mjs +0 -4
- package/dist/esm/api/types/Dimension.d.mts +0 -4
- package/dist/esm/api/types/Dimension.mjs +0 -4
- package/dist/esm/api/types/DimensionCoordinate.d.mts +0 -4
- package/dist/esm/api/types/DimensionCoordinate.mjs +0 -4
- package/dist/esm/api/types/DimensionCoordinateInterface.d.mts +0 -7
- package/dist/esm/api/types/DimensionCoordinateInterface.mjs +0 -4
- package/dist/esm/api/types/DimensionCoordinateSet.d.mts +0 -4
- package/dist/esm/api/types/DimensionCoordinateSet.mjs +0 -4
- package/dist/esm/api/types/DimensionInterface.d.mts +0 -7
- package/dist/esm/api/types/DimensionInterface.mjs +0 -4
- package/dist/esm/api/types/DimensionalRateMatrix.d.mts +0 -4
- package/dist/esm/api/types/DimensionalRateMatrix.mjs +0 -4
- package/dist/esm/api/types/DimensionalRateMatrixCell.d.mts +0 -4
- package/dist/esm/api/types/DimensionalRateMatrixCell.mjs +0 -4
- package/dist/esm/api/types/DimensionalUsageBasedRate.d.mts +0 -4
- package/dist/esm/api/types/DimensionalUsageBasedRate.mjs +0 -4
- package/dist/esm/api/types/DimensionalUsageBasedRateInput.d.mts +0 -4
- package/dist/esm/api/types/DimensionalUsageBasedRateInput.mjs +0 -4
- package/dist/esm/api/types/DimensionalUsageBasedRateInterface.d.mts +0 -15
- package/dist/esm/api/types/DimensionalUsageBasedRateInterface.mjs +0 -4
- package/dist/esm/api/types/FeatureAccessResource.d.mts +0 -8
- package/dist/esm/api/types/FeatureAccessResource.mjs +0 -4
- package/dist/esm/api/types/GetRateCardResponse.d.mts +0 -26
- package/dist/esm/api/types/GetRateCardResponse.mjs +0 -10
- package/dist/esm/api/types/GetRateCardResponseUsageBasedRatesItem.d.mts +0 -13
- package/dist/esm/api/types/GetRateCardResponseUsageBasedRatesItem.mjs +0 -4
- package/dist/esm/api/types/GrantCreditsRequest.d.mts +0 -4
- package/dist/esm/api/types/GrantCreditsRequest.mjs +0 -4
- package/dist/esm/api/types/LastAggregationPricingMetricInterface.d.mts +0 -7
- package/dist/esm/api/types/LastAggregationPricingMetricInterface.mjs +0 -4
- package/dist/esm/api/types/LicenseBasedRate.d.mts +0 -4
- package/dist/esm/api/types/LicenseBasedRate.mjs +0 -4
- package/dist/esm/api/types/LicenseBasedRateInput.d.mts +0 -4
- package/dist/esm/api/types/LicenseBasedRateInput.mjs +0 -4
- package/dist/esm/api/types/MaxAggregationPricingMetricInterface.mjs +0 -4
- package/dist/esm/api/types/MonetaryAmount.d.mts +0 -4
- package/dist/esm/api/types/MonetaryAmount.mjs +0 -4
- package/dist/esm/api/types/PackagePriceWrapper.d.mts +0 -4
- package/dist/esm/api/types/PackagePriceWrapper.mjs +0 -4
- package/dist/esm/api/types/PricingMatrixCellInterface.d.mts +0 -8
- package/dist/esm/api/types/PricingMatrixCellInterface.mjs +0 -4
- package/dist/esm/api/types/PricingMatrixInterface.mjs +0 -4
- package/dist/esm/api/types/PricingMetric.d.mts +0 -4
- package/dist/esm/api/types/PricingMetric.mjs +0 -4
- package/dist/esm/api/types/PricingMetricInterface.mjs +0 -4
- package/dist/esm/api/types/PricingPlan.d.mts +0 -4
- package/dist/esm/api/types/PricingPlan.mjs +0 -4
- package/dist/esm/api/types/PricingPlanSubscription.d.mts +0 -4
- package/dist/esm/api/types/PricingPlanSubscription.mjs +0 -4
- package/dist/esm/api/types/PricingTier.d.mts +0 -4
- package/dist/esm/api/types/PricingTier.mjs +0 -4
- package/dist/esm/api/types/RateCard.d.mts +0 -4
- package/dist/esm/api/types/RateCard.mjs +0 -4
- package/dist/esm/api/types/RateCardVersion.d.mts +0 -4
- package/dist/esm/api/types/RateCardVersion.mjs +0 -4
- package/dist/esm/api/types/RateCardVersionInput.d.mts +0 -4
- package/dist/esm/api/types/RateCardVersionInput.mjs +0 -4
- package/dist/esm/api/types/SimpleUsageBasedRate.d.mts +0 -4
- package/dist/esm/api/types/SimpleUsageBasedRate.mjs +0 -4
- package/dist/esm/api/types/SimpleUsageBasedRateInput.d.mts +0 -4
- package/dist/esm/api/types/SimpleUsageBasedRateInput.mjs +0 -4
- package/dist/esm/api/types/Subject.d.mts +0 -4
- package/dist/esm/api/types/Subject.mjs +0 -4
- package/dist/esm/api/types/SubjectGrantingConfig.d.mts +0 -4
- package/dist/esm/api/types/SubjectGrantingConfig.mjs +0 -4
- package/dist/esm/api/types/SubjectGrantingConfigResource.d.mts +0 -7
- package/dist/esm/api/types/SubjectGrantingConfigResource.mjs +0 -4
- package/dist/esm/api/types/TieredPrice.d.mts +0 -4
- package/dist/esm/api/types/TieredPrice.mjs +0 -4
- package/dist/esm/api/types/TieredPriceWrapper.d.mts +0 -4
- package/dist/esm/api/types/TieredPriceWrapper.mjs +0 -4
- package/dist/esm/api/types/UpdatePricingPlanRequest.d.mts +0 -4
- package/dist/esm/api/types/UpdatePricingPlanRequest.mjs +0 -4
- package/dist/esm/api/types/UpdateRateCardRequest.d.mts +0 -4
- package/dist/esm/api/types/UpdateRateCardRequest.mjs +0 -4
- package/dist/esm/api/types/UpdateSubscriptionRequest.d.mts +0 -4
- package/dist/esm/api/types/UpdateSubscriptionRequest.mjs +0 -4
- package/dist/esm/api/types/UsageBasedRate.d.mts +0 -4
- package/dist/esm/api/types/UsageBasedRate.mjs +0 -4
- package/dist/esm/api/types/UsageBasedRateInput.d.mts +0 -4
- package/dist/esm/api/types/UsageBasedRateInput.mjs +0 -4
- package/dist/esm/api/types/UsageUnit.d.mts +0 -4
- package/dist/esm/api/types/UsageUnit.mjs +0 -4
- /package/dist/cjs/api/resources/{featureAccess → customerAccess}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{featureAccess → customerAccess}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{featureAccess → customerAccess}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{featureAccess → customerAccess}/index.js +0 -0
- /package/dist/cjs/api/resources/{rateCards/client/requests/RateCardsListRateCardsRequest.js → customerPortal/client/requests/CreateCustomerPortalSessionRequest.js} +0 -0
- /package/dist/cjs/api/resources/{rateCards/types/CreateRateCardVersionRequestUsageBasedRatesItem.js → invoices/client/requests/ListInvoicesInvoicesGetRequest.js} +0 -0
- /package/dist/cjs/api/resources/{subjects/client/requests/SubjectsListSubjectsRequest.js → pricingMetrics/client/requests/CreatePricingMetricRequest.js} +0 -0
- /package/dist/cjs/api/resources/{subscriptions/client/requests/SubscriptionsListSubscriptionsRequest.js → pricingMetrics/client/requests/ListPricingMetricsPricingMetricsGetRequest.js} +0 -0
- /package/dist/cjs/api/{types/CheckFeatureAccessRequest.js → resources/pricingMetrics/types/PricingMetricAggregation.js} +0 -0
- /package/dist/cjs/api/{types/CheckFeatureAccessResponse.js → resources/rateCards/client/requests/ListRateCardsRateCardsGetRequest.js} +0 -0
- /package/dist/cjs/api/{types/CompleteSubscriptionCheckoutResponse.js → resources/subjects/client/requests/ListSubjectsSubjectsGetRequest.js} +0 -0
- /package/dist/cjs/api/{types/CreateCreditGrantInterface.js → resources/subscriptions/client/requests/CancelSubscriptionRequest.js} +0 -0
- /package/dist/cjs/api/{types/CreateCreditGrantInterfaceExpiration.js → resources/subscriptions/client/requests/ChangeSubscriptionRateCardRequest.js} +0 -0
- /package/dist/cjs/api/{types/CreateCreditPoolRequest.js → resources/subscriptions/client/requests/ListSubscriptionsSubscriptionsGetRequest.js} +0 -0
- /package/dist/cjs/api/types/{CreateDimensionCoordinateInterface.js → BillingStateResponse.js} +0 -0
- /package/dist/cjs/api/types/{CreateDimensionInterface.js → CountAggregationPricingMetricResource.js} +0 -0
- /package/dist/cjs/api/types/{CreateDimensionalUsageBasedRateInterface.js → CreateCustomerPortalSessionResponse.js} +0 -0
- /package/dist/cjs/api/types/{CreateFixedRateInterface.js → CreateFixedRateRequest.js} +0 -0
- /package/dist/cjs/api/types/{CreatePricingMatrixCellInterface.js → CreatePricingMetricResponse.js} +0 -0
- /package/dist/cjs/api/types/{CreatePricingMatrixInterface.js → CreateSimpleUsageBasedRateRequest.js} +0 -0
- /package/dist/cjs/api/types/{CreatePricingMetricInterface.js → GetPricingMetricResponse.js} +0 -0
- /package/dist/cjs/api/types/{CreatePricingPlanRequest.js → InvoiceLineItemResource.js} +0 -0
- /package/dist/cjs/api/types/{CreateRateCardResponseUsageBasedRatesItem.js → ListInvoicesResponse.js} +0 -0
- /package/dist/cjs/api/types/{CreateRateCardVersionResponseUsageBasedRatesItem.js → ListPricingMetricsResponse.js} +0 -0
- /package/dist/cjs/api/types/{CreateSimpleUsageBasedRateInterface.js → PeriodResource.js} +0 -0
- /package/dist/cjs/api/types/{CreditGrant.js → PricingMetricResource.js} +0 -0
- /package/dist/cjs/api/types/{CreditGrantDateTimeExpirationInterface.js → SumAggregationPricingMetricResource.js} +0 -0
- /package/dist/esm/api/resources/{featureAccess → customerAccess}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{featureAccess → customerAccess}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{featureAccess → customerAccess}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{featureAccess → customerAccess}/index.mjs +0 -0
- /package/dist/esm/api/resources/{rateCards/client/requests/RateCardsListRateCardsRequest.mjs → customerPortal/client/requests/CreateCustomerPortalSessionRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{rateCards/types/CreateRateCardVersionRequestUsageBasedRatesItem.mjs → invoices/client/requests/ListInvoicesInvoicesGetRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{subjects/client/requests/SubjectsListSubjectsRequest.mjs → pricingMetrics/client/requests/CreatePricingMetricRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{subscriptions/client/requests/SubscriptionsListSubscriptionsRequest.mjs → pricingMetrics/client/requests/ListPricingMetricsPricingMetricsGetRequest.mjs} +0 -0
- /package/dist/esm/api/{types/CheckFeatureAccessRequest.mjs → resources/pricingMetrics/types/PricingMetricAggregation.mjs} +0 -0
- /package/dist/esm/api/{types/CheckFeatureAccessResponse.mjs → resources/rateCards/client/requests/ListRateCardsRateCardsGetRequest.mjs} +0 -0
- /package/dist/esm/api/{types/CompleteSubscriptionCheckoutResponse.mjs → resources/subjects/client/requests/ListSubjectsSubjectsGetRequest.mjs} +0 -0
- /package/dist/esm/api/{types/CreateCreditGrantInterface.mjs → resources/subscriptions/client/requests/CancelSubscriptionRequest.mjs} +0 -0
- /package/dist/esm/api/{types/CreateCreditGrantInterfaceExpiration.mjs → resources/subscriptions/client/requests/ChangeSubscriptionRateCardRequest.mjs} +0 -0
- /package/dist/esm/api/{types/CreateCreditPoolRequest.mjs → resources/subscriptions/client/requests/ListSubscriptionsSubscriptionsGetRequest.mjs} +0 -0
- /package/dist/esm/api/types/{CreateDimensionCoordinateInterface.mjs → BillingStateResponse.mjs} +0 -0
- /package/dist/esm/api/types/{CreateDimensionInterface.mjs → CountAggregationPricingMetricResource.mjs} +0 -0
- /package/dist/esm/api/types/{CreateDimensionalUsageBasedRateInterface.mjs → CreateCustomerPortalSessionResponse.mjs} +0 -0
- /package/dist/esm/api/types/{CreateFixedRateInterface.mjs → CreateFixedRateRequest.mjs} +0 -0
- /package/dist/esm/api/types/{CreatePricingMatrixCellInterface.mjs → CreatePricingMetricResponse.mjs} +0 -0
- /package/dist/esm/api/types/{CreatePricingMatrixInterface.mjs → CreateSimpleUsageBasedRateRequest.mjs} +0 -0
- /package/dist/esm/api/types/{CreatePricingMetricInterface.mjs → GetPricingMetricResponse.mjs} +0 -0
- /package/dist/esm/api/types/{CreatePricingPlanRequest.mjs → InvoiceLineItemResource.mjs} +0 -0
- /package/dist/esm/api/types/{CreateRateCardResponseUsageBasedRatesItem.mjs → ListInvoicesResponse.mjs} +0 -0
- /package/dist/esm/api/types/{CreateRateCardVersionResponseUsageBasedRatesItem.mjs → ListPricingMetricsResponse.mjs} +0 -0
- /package/dist/esm/api/types/{CreateSimpleUsageBasedRateInterface.mjs → PeriodResource.mjs} +0 -0
- /package/dist/esm/api/types/{CreditGrant.mjs → PricingMetricResource.mjs} +0 -0
- /package/dist/esm/api/types/{CreditGrantDateTimeExpirationInterface.mjs → SumAggregationPricingMetricResource.mjs} +0 -0
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export { type
|
|
1
|
+
export { type ListRateCardsRateCardsGetRequest } from "./ListRateCardsRateCardsGetRequest.js";
|
|
2
2
|
export { type CreateRateCardRequest } from "./CreateRateCardRequest.js";
|
|
3
|
-
export { type CreateRateCardVersionRequest } from "./CreateRateCardVersionRequest.js";
|
package/dist/cjs/api/resources/rateCards/types/CreateRateCardRequestUsageBasedRatesItem.d.ts
CHANGED
|
@@ -2,12 +2,9 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Lark from "../../../index.js";
|
|
5
|
-
export type CreateRateCardRequestUsageBasedRatesItem = Lark.CreateRateCardRequestUsageBasedRatesItem.
|
|
5
|
+
export type CreateRateCardRequestUsageBasedRatesItem = Lark.CreateRateCardRequestUsageBasedRatesItem.Simple;
|
|
6
6
|
export declare namespace CreateRateCardRequestUsageBasedRatesItem {
|
|
7
|
-
interface
|
|
8
|
-
usage_based_rate_type: "dimensional";
|
|
9
|
-
}
|
|
10
|
-
interface Simple extends Lark.CreateSimpleUsageBasedRateInterface {
|
|
7
|
+
interface Simple extends Lark.CreateSimpleUsageBasedRateRequest {
|
|
11
8
|
usage_based_rate_type: "simple";
|
|
12
9
|
}
|
|
13
10
|
}
|
|
@@ -15,4 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./CreateRateCardRequestUsageBasedRatesItem.js"), exports);
|
|
18
|
-
__exportStar(require("./CreateRateCardVersionRequestUsageBasedRatesItem.js"), exports);
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as environments from "../../../../environments.js";
|
|
4
5
|
import * as core from "../../../../core/index.js";
|
|
5
6
|
import * as Lark from "../../../index.js";
|
|
6
7
|
export declare namespace Subjects {
|
|
7
8
|
interface Options {
|
|
8
|
-
environment
|
|
9
|
+
environment?: core.Supplier<environments.LarkEnvironment | string>;
|
|
9
10
|
/** Specify a custom URL to connect the client to. */
|
|
10
11
|
baseUrl?: core.Supplier<string>;
|
|
11
|
-
apiKey
|
|
12
|
+
apiKey: core.Supplier<string>;
|
|
12
13
|
/** Additional headers to include in requests. */
|
|
13
14
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
14
15
|
}
|
|
@@ -29,7 +30,7 @@ export declare class Subjects {
|
|
|
29
30
|
protected readonly _options: Subjects.Options;
|
|
30
31
|
constructor(_options: Subjects.Options);
|
|
31
32
|
/**
|
|
32
|
-
* @param {Lark.
|
|
33
|
+
* @param {Lark.ListSubjectsSubjectsGetRequest} request
|
|
33
34
|
* @param {Subjects.RequestOptions} requestOptions - Request-specific configuration.
|
|
34
35
|
*
|
|
35
36
|
* @throws {@link Lark.UnprocessableEntityError}
|
|
@@ -40,7 +41,7 @@ export declare class Subjects {
|
|
|
40
41
|
* offset: 1
|
|
41
42
|
* })
|
|
42
43
|
*/
|
|
43
|
-
listSubjects(request?: Lark.
|
|
44
|
+
listSubjects(request?: Lark.ListSubjectsSubjectsGetRequest, requestOptions?: Subjects.RequestOptions): core.HttpResponsePromise<Lark.ListSubjectsResponse>;
|
|
44
45
|
private __listSubjects;
|
|
45
46
|
/**
|
|
46
47
|
* @param {Lark.CreateSubjectRequest} request
|
|
@@ -88,6 +89,6 @@ export declare class Subjects {
|
|
|
88
89
|
deleteSubject(subjectId: string, requestOptions?: Subjects.RequestOptions): core.HttpResponsePromise<unknown>;
|
|
89
90
|
private __deleteSubject;
|
|
90
91
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
91
|
-
"X-API-Key": string
|
|
92
|
+
"X-API-Key": string;
|
|
92
93
|
}>;
|
|
93
94
|
}
|
|
@@ -46,6 +46,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
46
46
|
};
|
|
47
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
48
|
exports.Subjects = void 0;
|
|
49
|
+
const environments = __importStar(require("../../../../environments.js"));
|
|
49
50
|
const core = __importStar(require("../../../../core/index.js"));
|
|
50
51
|
const Lark = __importStar(require("../../../index.js"));
|
|
51
52
|
const headers_js_1 = require("../../../../core/headers.js");
|
|
@@ -55,7 +56,7 @@ class Subjects {
|
|
|
55
56
|
this._options = _options;
|
|
56
57
|
}
|
|
57
58
|
/**
|
|
58
|
-
* @param {Lark.
|
|
59
|
+
* @param {Lark.ListSubjectsSubjectsGetRequest} request
|
|
59
60
|
* @param {Subjects.RequestOptions} requestOptions - Request-specific configuration.
|
|
60
61
|
*
|
|
61
62
|
* @throws {@link Lark.UnprocessableEntityError}
|
|
@@ -71,7 +72,7 @@ class Subjects {
|
|
|
71
72
|
}
|
|
72
73
|
__listSubjects() {
|
|
73
74
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
74
|
-
var _a, _b;
|
|
75
|
+
var _a, _b, _c;
|
|
75
76
|
const { limit, offset } = request;
|
|
76
77
|
const _queryParams = {};
|
|
77
78
|
if (limit != null) {
|
|
@@ -82,7 +83,7 @@ class Subjects {
|
|
|
82
83
|
}
|
|
83
84
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
84
85
|
const _response = yield core.fetcher({
|
|
85
|
-
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "subjects"),
|
|
86
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LarkEnvironment.Default, "subjects"),
|
|
86
87
|
method: "GET",
|
|
87
88
|
headers: _headers,
|
|
88
89
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -136,10 +137,10 @@ class Subjects {
|
|
|
136
137
|
}
|
|
137
138
|
__createSubject() {
|
|
138
139
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
139
|
-
var _a, _b;
|
|
140
|
+
var _a, _b, _c;
|
|
140
141
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
141
142
|
const _response = yield core.fetcher({
|
|
142
|
-
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "subjects"),
|
|
143
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LarkEnvironment.Default, "subjects"),
|
|
143
144
|
method: "POST",
|
|
144
145
|
headers: _headers,
|
|
145
146
|
contentType: "application/json",
|
|
@@ -196,10 +197,10 @@ class Subjects {
|
|
|
196
197
|
}
|
|
197
198
|
__getSubject(subjectId, requestOptions) {
|
|
198
199
|
return __awaiter(this, void 0, void 0, function* () {
|
|
199
|
-
var _a, _b;
|
|
200
|
+
var _a, _b, _c;
|
|
200
201
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
201
202
|
const _response = yield core.fetcher({
|
|
202
|
-
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `subjects/${encodeURIComponent(subjectId)}`),
|
|
203
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LarkEnvironment.Default, `subjects/${encodeURIComponent(subjectId)}`),
|
|
203
204
|
method: "GET",
|
|
204
205
|
headers: _headers,
|
|
205
206
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -254,10 +255,10 @@ class Subjects {
|
|
|
254
255
|
}
|
|
255
256
|
__updateSubject(subjectId_1) {
|
|
256
257
|
return __awaiter(this, arguments, void 0, function* (subjectId, request = {}, requestOptions) {
|
|
257
|
-
var _a, _b;
|
|
258
|
+
var _a, _b, _c;
|
|
258
259
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
259
260
|
const _response = yield core.fetcher({
|
|
260
|
-
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `subjects/${encodeURIComponent(subjectId)}`),
|
|
261
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LarkEnvironment.Default, `subjects/${encodeURIComponent(subjectId)}`),
|
|
261
262
|
method: "PUT",
|
|
262
263
|
headers: _headers,
|
|
263
264
|
contentType: "application/json",
|
|
@@ -314,10 +315,10 @@ class Subjects {
|
|
|
314
315
|
}
|
|
315
316
|
__deleteSubject(subjectId, requestOptions) {
|
|
316
317
|
return __awaiter(this, void 0, void 0, function* () {
|
|
317
|
-
var _a, _b;
|
|
318
|
+
var _a, _b, _c;
|
|
318
319
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
319
320
|
const _response = yield core.fetcher({
|
|
320
|
-
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `subjects/${encodeURIComponent(subjectId)}`),
|
|
321
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LarkEnvironment.Default, `subjects/${encodeURIComponent(subjectId)}`),
|
|
321
322
|
method: "DELETE",
|
|
322
323
|
headers: _headers,
|
|
323
324
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -6,9 +6,12 @@
|
|
|
6
6
|
* {}
|
|
7
7
|
*/
|
|
8
8
|
export interface CreateSubjectRequest {
|
|
9
|
+
/** The ID of the subject in your system. If provided, you may use pass it to the API in place of the subject ID. Must be unique. */
|
|
9
10
|
external_id?: string;
|
|
11
|
+
/** The name of the subject. Used for display in the dashboard. */
|
|
10
12
|
name?: string;
|
|
13
|
+
/** The email of the subject. Must be a valid email address. */
|
|
11
14
|
email?: string;
|
|
12
|
-
|
|
15
|
+
/** Additional metadata about the subject. You may use this to store any custom data about the subject. */
|
|
13
16
|
metadata?: Record<string, string>;
|
|
14
17
|
}
|
|
@@ -6,9 +6,10 @@
|
|
|
6
6
|
* {}
|
|
7
7
|
*/
|
|
8
8
|
export interface UpdateSubjectRequest {
|
|
9
|
-
|
|
9
|
+
/** The name of the subject. Used for display in the dashboard. */
|
|
10
10
|
name?: string;
|
|
11
|
+
/** The email of the subject. Must be a valid email address. */
|
|
11
12
|
email?: string;
|
|
12
|
-
|
|
13
|
+
/** Additional metadata about the subject. You may use this to store any custom data about the subject. */
|
|
13
14
|
metadata?: Record<string, string | undefined>;
|
|
14
15
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { type
|
|
1
|
+
export { type ListSubjectsSubjectsGetRequest } from "./ListSubjectsSubjectsGetRequest.js";
|
|
2
2
|
export { type CreateSubjectRequest } from "./CreateSubjectRequest.js";
|
|
3
3
|
export { type UpdateSubjectRequest } from "./UpdateSubjectRequest.js";
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as environments from "../../../../environments.js";
|
|
4
5
|
import * as core from "../../../../core/index.js";
|
|
5
6
|
import * as Lark from "../../../index.js";
|
|
6
7
|
export declare namespace Subscriptions {
|
|
7
8
|
interface Options {
|
|
8
|
-
environment
|
|
9
|
+
environment?: core.Supplier<environments.LarkEnvironment | string>;
|
|
9
10
|
/** Specify a custom URL to connect the client to. */
|
|
10
11
|
baseUrl?: core.Supplier<string>;
|
|
11
|
-
apiKey
|
|
12
|
+
apiKey: core.Supplier<string>;
|
|
12
13
|
/** Additional headers to include in requests. */
|
|
13
14
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
14
15
|
}
|
|
@@ -29,7 +30,7 @@ export declare class Subscriptions {
|
|
|
29
30
|
protected readonly _options: Subscriptions.Options;
|
|
30
31
|
constructor(_options: Subscriptions.Options);
|
|
31
32
|
/**
|
|
32
|
-
* @param {Lark.
|
|
33
|
+
* @param {Lark.ListSubscriptionsSubscriptionsGetRequest} request
|
|
33
34
|
* @param {Subscriptions.RequestOptions} requestOptions - Request-specific configuration.
|
|
34
35
|
*
|
|
35
36
|
* @throws {@link Lark.UnprocessableEntityError}
|
|
@@ -37,10 +38,11 @@ export declare class Subscriptions {
|
|
|
37
38
|
* @example
|
|
38
39
|
* await client.subscriptions.listSubscriptions({
|
|
39
40
|
* limit: 1,
|
|
40
|
-
*
|
|
41
|
+
* subject_id: "subject_id",
|
|
42
|
+
* rate_card_id: "rate_card_id"
|
|
41
43
|
* })
|
|
42
44
|
*/
|
|
43
|
-
listSubscriptions(request?: Lark.
|
|
45
|
+
listSubscriptions(request?: Lark.ListSubscriptionsSubscriptionsGetRequest, requestOptions?: Subscriptions.RequestOptions): core.HttpResponsePromise<Lark.ListSubscriptionsResponse>;
|
|
44
46
|
private __listSubscriptions;
|
|
45
47
|
/**
|
|
46
48
|
* @param {Lark.CreateSubscriptionRequest} request
|
|
@@ -50,9 +52,8 @@ export declare class Subscriptions {
|
|
|
50
52
|
*
|
|
51
53
|
* @example
|
|
52
54
|
* await client.subscriptions.createSubscription({
|
|
53
|
-
* rate_card_id: "
|
|
54
|
-
* subject_id: "
|
|
55
|
-
* effective_at: "2024-01-15T09:30:00Z"
|
|
55
|
+
* rate_card_id: "rc_AJWMxR81jxoRlli6p13uf3JB",
|
|
56
|
+
* subject_id: "subj_VyX6Q96h5avMho8O7QWlKeXE"
|
|
56
57
|
* })
|
|
57
58
|
*/
|
|
58
59
|
createSubscription(request: Lark.CreateSubscriptionRequest, requestOptions?: Subscriptions.RequestOptions): core.HttpResponsePromise<Lark.SubscriptionResource>;
|
|
@@ -70,23 +71,31 @@ export declare class Subscriptions {
|
|
|
70
71
|
private __getSubscription;
|
|
71
72
|
/**
|
|
72
73
|
* @param {string} subscriptionId
|
|
74
|
+
* @param {Lark.CancelSubscriptionRequest} request
|
|
73
75
|
* @param {Subscriptions.RequestOptions} requestOptions - Request-specific configuration.
|
|
74
76
|
*
|
|
77
|
+
* @throws {@link Lark.UnprocessableEntityError}
|
|
78
|
+
*
|
|
75
79
|
* @example
|
|
76
80
|
* await client.subscriptions.cancelSubscription("subscription_id")
|
|
77
81
|
*/
|
|
78
|
-
cancelSubscription(subscriptionId: string, requestOptions?: Subscriptions.RequestOptions): core.HttpResponsePromise<
|
|
82
|
+
cancelSubscription(subscriptionId: string, request?: Lark.CancelSubscriptionRequest, requestOptions?: Subscriptions.RequestOptions): core.HttpResponsePromise<Lark.SubscriptionResource>;
|
|
79
83
|
private __cancelSubscription;
|
|
80
84
|
/**
|
|
81
85
|
* @param {string} subscriptionId
|
|
86
|
+
* @param {Lark.ChangeSubscriptionRateCardRequest} request
|
|
82
87
|
* @param {Subscriptions.RequestOptions} requestOptions - Request-specific configuration.
|
|
83
88
|
*
|
|
89
|
+
* @throws {@link Lark.UnprocessableEntityError}
|
|
90
|
+
*
|
|
84
91
|
* @example
|
|
85
|
-
* await client.subscriptions.
|
|
92
|
+
* await client.subscriptions.changeSubscriptionRateCard("subscription_id", {
|
|
93
|
+
* rate_card_id: "rc_AJWMxR81jxoRlli6p13uf3JB"
|
|
94
|
+
* })
|
|
86
95
|
*/
|
|
87
|
-
|
|
88
|
-
private
|
|
96
|
+
changeSubscriptionRateCard(subscriptionId: string, request: Lark.ChangeSubscriptionRateCardRequest, requestOptions?: Subscriptions.RequestOptions): core.HttpResponsePromise<Lark.SubscriptionResource>;
|
|
97
|
+
private __changeSubscriptionRateCard;
|
|
89
98
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
90
|
-
"X-API-Key": string
|
|
99
|
+
"X-API-Key": string;
|
|
91
100
|
}>;
|
|
92
101
|
}
|
|
@@ -46,6 +46,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
46
46
|
};
|
|
47
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
48
|
exports.Subscriptions = void 0;
|
|
49
|
+
const environments = __importStar(require("../../../../environments.js"));
|
|
49
50
|
const core = __importStar(require("../../../../core/index.js"));
|
|
50
51
|
const Lark = __importStar(require("../../../index.js"));
|
|
51
52
|
const headers_js_1 = require("../../../../core/headers.js");
|
|
@@ -55,7 +56,7 @@ class Subscriptions {
|
|
|
55
56
|
this._options = _options;
|
|
56
57
|
}
|
|
57
58
|
/**
|
|
58
|
-
* @param {Lark.
|
|
59
|
+
* @param {Lark.ListSubscriptionsSubscriptionsGetRequest} request
|
|
59
60
|
* @param {Subscriptions.RequestOptions} requestOptions - Request-specific configuration.
|
|
60
61
|
*
|
|
61
62
|
* @throws {@link Lark.UnprocessableEntityError}
|
|
@@ -63,7 +64,8 @@ class Subscriptions {
|
|
|
63
64
|
* @example
|
|
64
65
|
* await client.subscriptions.listSubscriptions({
|
|
65
66
|
* limit: 1,
|
|
66
|
-
*
|
|
67
|
+
* subject_id: "subject_id",
|
|
68
|
+
* rate_card_id: "rate_card_id"
|
|
67
69
|
* })
|
|
68
70
|
*/
|
|
69
71
|
listSubscriptions(request = {}, requestOptions) {
|
|
@@ -71,18 +73,21 @@ class Subscriptions {
|
|
|
71
73
|
}
|
|
72
74
|
__listSubscriptions() {
|
|
73
75
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
74
|
-
var _a, _b;
|
|
75
|
-
const { limit,
|
|
76
|
+
var _a, _b, _c;
|
|
77
|
+
const { limit, subject_id: subjectId, rate_card_id: rateCardId } = request;
|
|
76
78
|
const _queryParams = {};
|
|
77
79
|
if (limit != null) {
|
|
78
80
|
_queryParams["limit"] = limit.toString();
|
|
79
81
|
}
|
|
80
|
-
if (
|
|
81
|
-
_queryParams["
|
|
82
|
+
if (subjectId != null) {
|
|
83
|
+
_queryParams["subject_id"] = subjectId;
|
|
84
|
+
}
|
|
85
|
+
if (rateCardId != null) {
|
|
86
|
+
_queryParams["rate_card_id"] = rateCardId;
|
|
82
87
|
}
|
|
83
88
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
84
89
|
const _response = yield core.fetcher({
|
|
85
|
-
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "subscriptions"),
|
|
90
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LarkEnvironment.Default, "subscriptions"),
|
|
86
91
|
method: "GET",
|
|
87
92
|
headers: _headers,
|
|
88
93
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -130,9 +135,8 @@ class Subscriptions {
|
|
|
130
135
|
*
|
|
131
136
|
* @example
|
|
132
137
|
* await client.subscriptions.createSubscription({
|
|
133
|
-
* rate_card_id: "
|
|
134
|
-
* subject_id: "
|
|
135
|
-
* effective_at: "2024-01-15T09:30:00Z"
|
|
138
|
+
* rate_card_id: "rc_AJWMxR81jxoRlli6p13uf3JB",
|
|
139
|
+
* subject_id: "subj_VyX6Q96h5avMho8O7QWlKeXE"
|
|
136
140
|
* })
|
|
137
141
|
*/
|
|
138
142
|
createSubscription(request, requestOptions) {
|
|
@@ -140,10 +144,10 @@ class Subscriptions {
|
|
|
140
144
|
}
|
|
141
145
|
__createSubscription(request, requestOptions) {
|
|
142
146
|
return __awaiter(this, void 0, void 0, function* () {
|
|
143
|
-
var _a, _b;
|
|
147
|
+
var _a, _b, _c;
|
|
144
148
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
145
149
|
const _response = yield core.fetcher({
|
|
146
|
-
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "subscriptions"),
|
|
150
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LarkEnvironment.Default, "subscriptions"),
|
|
147
151
|
method: "POST",
|
|
148
152
|
headers: _headers,
|
|
149
153
|
contentType: "application/json",
|
|
@@ -200,10 +204,10 @@ class Subscriptions {
|
|
|
200
204
|
}
|
|
201
205
|
__getSubscription(subscriptionId, requestOptions) {
|
|
202
206
|
return __awaiter(this, void 0, void 0, function* () {
|
|
203
|
-
var _a, _b;
|
|
207
|
+
var _a, _b, _c;
|
|
204
208
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
205
209
|
const _response = yield core.fetcher({
|
|
206
|
-
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `subscriptions/${encodeURIComponent(subscriptionId)}`),
|
|
210
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LarkEnvironment.Default, `subscriptions/${encodeURIComponent(subscriptionId)}`),
|
|
207
211
|
method: "GET",
|
|
208
212
|
headers: _headers,
|
|
209
213
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -245,36 +249,47 @@ class Subscriptions {
|
|
|
245
249
|
}
|
|
246
250
|
/**
|
|
247
251
|
* @param {string} subscriptionId
|
|
252
|
+
* @param {Lark.CancelSubscriptionRequest} request
|
|
248
253
|
* @param {Subscriptions.RequestOptions} requestOptions - Request-specific configuration.
|
|
249
254
|
*
|
|
255
|
+
* @throws {@link Lark.UnprocessableEntityError}
|
|
256
|
+
*
|
|
250
257
|
* @example
|
|
251
258
|
* await client.subscriptions.cancelSubscription("subscription_id")
|
|
252
259
|
*/
|
|
253
|
-
cancelSubscription(subscriptionId, requestOptions) {
|
|
254
|
-
return core.HttpResponsePromise.fromPromise(this.__cancelSubscription(subscriptionId, requestOptions));
|
|
260
|
+
cancelSubscription(subscriptionId, request = {}, requestOptions) {
|
|
261
|
+
return core.HttpResponsePromise.fromPromise(this.__cancelSubscription(subscriptionId, request, requestOptions));
|
|
255
262
|
}
|
|
256
|
-
__cancelSubscription(
|
|
257
|
-
return __awaiter(this,
|
|
258
|
-
var _a, _b;
|
|
263
|
+
__cancelSubscription(subscriptionId_1) {
|
|
264
|
+
return __awaiter(this, arguments, void 0, function* (subscriptionId, request = {}, requestOptions) {
|
|
265
|
+
var _a, _b, _c;
|
|
259
266
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
260
267
|
const _response = yield core.fetcher({
|
|
261
|
-
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `subscriptions/${encodeURIComponent(subscriptionId)}`),
|
|
262
|
-
method: "
|
|
268
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LarkEnvironment.Default, `subscriptions/${encodeURIComponent(subscriptionId)}/cancel`),
|
|
269
|
+
method: "POST",
|
|
263
270
|
headers: _headers,
|
|
271
|
+
contentType: "application/json",
|
|
264
272
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
273
|
+
requestType: "json",
|
|
274
|
+
body: request,
|
|
265
275
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
266
276
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
267
277
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
268
278
|
});
|
|
269
279
|
if (_response.ok) {
|
|
270
|
-
return { data:
|
|
280
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
271
281
|
}
|
|
272
282
|
if (_response.error.reason === "status-code") {
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
283
|
+
switch (_response.error.statusCode) {
|
|
284
|
+
case 422:
|
|
285
|
+
throw new Lark.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
286
|
+
default:
|
|
287
|
+
throw new errors.LarkError({
|
|
288
|
+
statusCode: _response.error.statusCode,
|
|
289
|
+
body: _response.error.body,
|
|
290
|
+
rawResponse: _response.rawResponse,
|
|
291
|
+
});
|
|
292
|
+
}
|
|
278
293
|
}
|
|
279
294
|
switch (_response.error.reason) {
|
|
280
295
|
case "non-json":
|
|
@@ -284,7 +299,7 @@ class Subscriptions {
|
|
|
284
299
|
rawResponse: _response.rawResponse,
|
|
285
300
|
});
|
|
286
301
|
case "timeout":
|
|
287
|
-
throw new errors.LarkTimeoutError("Timeout exceeded when calling
|
|
302
|
+
throw new errors.LarkTimeoutError("Timeout exceeded when calling POST /subscriptions/{subscription_id}/cancel.");
|
|
288
303
|
case "unknown":
|
|
289
304
|
throw new errors.LarkError({
|
|
290
305
|
message: _response.error.errorMessage,
|
|
@@ -295,36 +310,49 @@ class Subscriptions {
|
|
|
295
310
|
}
|
|
296
311
|
/**
|
|
297
312
|
* @param {string} subscriptionId
|
|
313
|
+
* @param {Lark.ChangeSubscriptionRateCardRequest} request
|
|
298
314
|
* @param {Subscriptions.RequestOptions} requestOptions - Request-specific configuration.
|
|
299
315
|
*
|
|
316
|
+
* @throws {@link Lark.UnprocessableEntityError}
|
|
317
|
+
*
|
|
300
318
|
* @example
|
|
301
|
-
* await client.subscriptions.
|
|
319
|
+
* await client.subscriptions.changeSubscriptionRateCard("subscription_id", {
|
|
320
|
+
* rate_card_id: "rc_AJWMxR81jxoRlli6p13uf3JB"
|
|
321
|
+
* })
|
|
302
322
|
*/
|
|
303
|
-
|
|
304
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
323
|
+
changeSubscriptionRateCard(subscriptionId, request, requestOptions) {
|
|
324
|
+
return core.HttpResponsePromise.fromPromise(this.__changeSubscriptionRateCard(subscriptionId, request, requestOptions));
|
|
305
325
|
}
|
|
306
|
-
|
|
326
|
+
__changeSubscriptionRateCard(subscriptionId, request, requestOptions) {
|
|
307
327
|
return __awaiter(this, void 0, void 0, function* () {
|
|
308
|
-
var _a, _b;
|
|
328
|
+
var _a, _b, _c;
|
|
309
329
|
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
310
330
|
const _response = yield core.fetcher({
|
|
311
|
-
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `subscriptions/${encodeURIComponent(subscriptionId)}`),
|
|
312
|
-
method: "
|
|
331
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.LarkEnvironment.Default, `subscriptions/${encodeURIComponent(subscriptionId)}/change-rate-card`),
|
|
332
|
+
method: "POST",
|
|
313
333
|
headers: _headers,
|
|
334
|
+
contentType: "application/json",
|
|
314
335
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
336
|
+
requestType: "json",
|
|
337
|
+
body: request,
|
|
315
338
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
316
339
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
317
340
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
318
341
|
});
|
|
319
342
|
if (_response.ok) {
|
|
320
|
-
return { data:
|
|
343
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
321
344
|
}
|
|
322
345
|
if (_response.error.reason === "status-code") {
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
346
|
+
switch (_response.error.statusCode) {
|
|
347
|
+
case 422:
|
|
348
|
+
throw new Lark.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
349
|
+
default:
|
|
350
|
+
throw new errors.LarkError({
|
|
351
|
+
statusCode: _response.error.statusCode,
|
|
352
|
+
body: _response.error.body,
|
|
353
|
+
rawResponse: _response.rawResponse,
|
|
354
|
+
});
|
|
355
|
+
}
|
|
328
356
|
}
|
|
329
357
|
switch (_response.error.reason) {
|
|
330
358
|
case "non-json":
|
|
@@ -334,7 +362,7 @@ class Subscriptions {
|
|
|
334
362
|
rawResponse: _response.rawResponse,
|
|
335
363
|
});
|
|
336
364
|
case "timeout":
|
|
337
|
-
throw new errors.LarkTimeoutError("Timeout exceeded when calling
|
|
365
|
+
throw new errors.LarkTimeoutError("Timeout exceeded when calling POST /subscriptions/{subscription_id}/change-rate-card.");
|
|
338
366
|
case "unknown":
|
|
339
367
|
throw new errors.LarkError({
|
|
340
368
|
message: _response.error.errorMessage,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {}
|
|
7
|
+
*/
|
|
8
|
+
export interface CancelSubscriptionRequest {
|
|
9
|
+
/** The reason for cancelling the subscription. */
|
|
10
|
+
reason?: string;
|
|
11
|
+
/** Whether to cancel the subscription at end of cycle. */
|
|
12
|
+
cancel_at_end_of_cycle?: boolean;
|
|
13
|
+
}
|
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
|
-
* rate_card_id: "
|
|
8
|
-
* subject_id: "
|
|
9
|
-
* effective_at: "2024-01-15T09:30:00Z"
|
|
7
|
+
* rate_card_id: "rc_AJWMxR81jxoRlli6p13uf3JB",
|
|
8
|
+
* subject_id: "subj_VyX6Q96h5avMho8O7QWlKeXE"
|
|
10
9
|
* }
|
|
11
10
|
*/
|
|
12
11
|
export interface CreateSubscriptionRequest {
|
|
12
|
+
/** The ID of the rate card to use for the subscription. */
|
|
13
13
|
rate_card_id: string;
|
|
14
|
+
/** The ID of the subject to create the subscription for. */
|
|
14
15
|
subject_id: string;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
metadata?: Record<string, string | undefined>;
|
|
16
|
+
/** Additional metadata about the subscription. You may use this to store any custom data about the subscription. */
|
|
17
|
+
metadata?: Record<string, string>;
|
|
18
18
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* limit: 1,
|
|
8
|
+
* subject_id: "subject_id",
|
|
9
|
+
* rate_card_id: "rate_card_id"
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface ListSubscriptionsSubscriptionsGetRequest {
|
|
13
|
+
limit?: number;
|
|
14
|
+
/** The ID of the subject to list subscriptions for. Cannot be used with rate_card_id. */
|
|
15
|
+
subject_id?: string;
|
|
16
|
+
/** The ID of the rate card to list subscriptions for. Cannot be used with subject_id. */
|
|
17
|
+
rate_card_id?: string;
|
|
18
|
+
}
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
export { type
|
|
1
|
+
export { type ListSubscriptionsSubscriptionsGetRequest } from "./ListSubscriptionsSubscriptionsGetRequest.js";
|
|
2
2
|
export { type CreateSubscriptionRequest } from "./CreateSubscriptionRequest.js";
|
|
3
|
+
export { type CancelSubscriptionRequest } from "./CancelSubscriptionRequest.js";
|
|
4
|
+
export { type ChangeSubscriptionRateCardRequest } from "./ChangeSubscriptionRateCardRequest.js";
|