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
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
import * as environments from "../../../../environments.mjs";
|
|
14
|
+
import * as core from "../../../../core/index.mjs";
|
|
15
|
+
import * as Lark from "../../../index.mjs";
|
|
16
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
17
|
+
import * as errors from "../../../../errors/index.mjs";
|
|
18
|
+
export class CustomerPortal {
|
|
19
|
+
constructor(_options) {
|
|
20
|
+
this._options = _options;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @param {Lark.CreateCustomerPortalSessionRequest} request
|
|
24
|
+
* @param {CustomerPortal.RequestOptions} requestOptions - Request-specific configuration.
|
|
25
|
+
*
|
|
26
|
+
* @throws {@link Lark.UnprocessableEntityError}
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* await client.customerPortal.createCustomerPortalSession({
|
|
30
|
+
* subject_id: "subject_id"
|
|
31
|
+
* })
|
|
32
|
+
*/
|
|
33
|
+
createCustomerPortalSession(request, requestOptions) {
|
|
34
|
+
return core.HttpResponsePromise.fromPromise(this.__createCustomerPortalSession(request, requestOptions));
|
|
35
|
+
}
|
|
36
|
+
__createCustomerPortalSession(request, requestOptions) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
var _a, _b, _c;
|
|
39
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
40
|
+
const _response = yield core.fetcher({
|
|
41
|
+
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, "customer-portal/sessions"),
|
|
42
|
+
method: "POST",
|
|
43
|
+
headers: _headers,
|
|
44
|
+
contentType: "application/json",
|
|
45
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
46
|
+
requestType: "json",
|
|
47
|
+
body: request,
|
|
48
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
49
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
50
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
51
|
+
});
|
|
52
|
+
if (_response.ok) {
|
|
53
|
+
return {
|
|
54
|
+
data: _response.body,
|
|
55
|
+
rawResponse: _response.rawResponse,
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
if (_response.error.reason === "status-code") {
|
|
59
|
+
switch (_response.error.statusCode) {
|
|
60
|
+
case 422:
|
|
61
|
+
throw new Lark.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
62
|
+
default:
|
|
63
|
+
throw new errors.LarkError({
|
|
64
|
+
statusCode: _response.error.statusCode,
|
|
65
|
+
body: _response.error.body,
|
|
66
|
+
rawResponse: _response.rawResponse,
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
switch (_response.error.reason) {
|
|
71
|
+
case "non-json":
|
|
72
|
+
throw new errors.LarkError({
|
|
73
|
+
statusCode: _response.error.statusCode,
|
|
74
|
+
body: _response.error.rawBody,
|
|
75
|
+
rawResponse: _response.rawResponse,
|
|
76
|
+
});
|
|
77
|
+
case "timeout":
|
|
78
|
+
throw new errors.LarkTimeoutError("Timeout exceeded when calling POST /customer-portal/sessions.");
|
|
79
|
+
case "unknown":
|
|
80
|
+
throw new errors.LarkError({
|
|
81
|
+
message: _response.error.errorMessage,
|
|
82
|
+
rawResponse: _response.rawResponse,
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
_getCustomAuthorizationHeaders() {
|
|
88
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
89
|
+
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
90
|
+
return { "X-API-Key": apiKeyValue };
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type CreateCustomerPortalSessionRequest } from "./CreateCustomerPortalSessionRequest.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
export * as rateCards from "./rateCards/index.mjs";
|
|
2
2
|
export * from "./rateCards/types/index.mjs";
|
|
3
|
+
export * as pricingMetrics from "./pricingMetrics/index.mjs";
|
|
4
|
+
export * from "./pricingMetrics/types/index.mjs";
|
|
3
5
|
export * as checkout from "./checkout/index.mjs";
|
|
6
|
+
export * as customerPortal from "./customerPortal/index.mjs";
|
|
4
7
|
export * as usageEvents from "./usageEvents/index.mjs";
|
|
5
8
|
export * as subscriptions from "./subscriptions/index.mjs";
|
|
6
|
-
export * as featureAccess from "./featureAccess/index.mjs";
|
|
7
9
|
export * as subjects from "./subjects/index.mjs";
|
|
10
|
+
export * as customerAccess from "./customerAccess/index.mjs";
|
|
11
|
+
export * as invoices from "./invoices/index.mjs";
|
|
8
12
|
export * from "./checkout/client/requests/index.mjs";
|
|
13
|
+
export * from "./customerPortal/client/requests/index.mjs";
|
|
9
14
|
export * from "./rateCards/client/requests/index.mjs";
|
|
10
15
|
export * from "./usageEvents/client/requests/index.mjs";
|
|
11
16
|
export * from "./subscriptions/client/requests/index.mjs";
|
|
12
17
|
export * from "./subjects/client/requests/index.mjs";
|
|
18
|
+
export * from "./pricingMetrics/client/requests/index.mjs";
|
|
19
|
+
export * from "./invoices/client/requests/index.mjs";
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
export * as rateCards from "./rateCards/index.mjs";
|
|
2
2
|
export * from "./rateCards/types/index.mjs";
|
|
3
|
+
export * as pricingMetrics from "./pricingMetrics/index.mjs";
|
|
4
|
+
export * from "./pricingMetrics/types/index.mjs";
|
|
3
5
|
export * as checkout from "./checkout/index.mjs";
|
|
6
|
+
export * as customerPortal from "./customerPortal/index.mjs";
|
|
4
7
|
export * as usageEvents from "./usageEvents/index.mjs";
|
|
5
8
|
export * as subscriptions from "./subscriptions/index.mjs";
|
|
6
|
-
export * as featureAccess from "./featureAccess/index.mjs";
|
|
7
9
|
export * as subjects from "./subjects/index.mjs";
|
|
10
|
+
export * as customerAccess from "./customerAccess/index.mjs";
|
|
11
|
+
export * as invoices from "./invoices/index.mjs";
|
|
8
12
|
export * from "./checkout/client/requests/index.mjs";
|
|
13
|
+
export * from "./customerPortal/client/requests/index.mjs";
|
|
9
14
|
export * from "./rateCards/client/requests/index.mjs";
|
|
10
15
|
export * from "./usageEvents/client/requests/index.mjs";
|
|
11
16
|
export * from "./subscriptions/client/requests/index.mjs";
|
|
12
17
|
export * from "./subjects/client/requests/index.mjs";
|
|
18
|
+
export * from "./pricingMetrics/client/requests/index.mjs";
|
|
19
|
+
export * from "./invoices/client/requests/index.mjs";
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments.mjs";
|
|
5
|
+
import * as core from "../../../../core/index.mjs";
|
|
6
|
+
import * as Lark from "../../../index.mjs";
|
|
7
|
+
export declare namespace Invoices {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.LarkEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
apiKey: core.Supplier<string>;
|
|
13
|
+
/** Additional headers to include in requests. */
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
|
+
}
|
|
16
|
+
interface RequestOptions {
|
|
17
|
+
/** The maximum time to wait for a response in seconds. */
|
|
18
|
+
timeoutInSeconds?: number;
|
|
19
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
20
|
+
maxRetries?: number;
|
|
21
|
+
/** A hook to abort the request. */
|
|
22
|
+
abortSignal?: AbortSignal;
|
|
23
|
+
/** Additional query string parameters to include in the request. */
|
|
24
|
+
queryParams?: Record<string, unknown>;
|
|
25
|
+
/** Additional headers to include in the request. */
|
|
26
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export declare class Invoices {
|
|
30
|
+
protected readonly _options: Invoices.Options;
|
|
31
|
+
constructor(_options: Invoices.Options);
|
|
32
|
+
/**
|
|
33
|
+
* @param {Lark.ListInvoicesInvoicesGetRequest} request
|
|
34
|
+
* @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
|
+
*
|
|
36
|
+
* @throws {@link Lark.UnprocessableEntityError}
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* await client.invoices.listInvoices({
|
|
40
|
+
* subject_id: "subject_id",
|
|
41
|
+
* limit: 1,
|
|
42
|
+
* offset: 1
|
|
43
|
+
* })
|
|
44
|
+
*/
|
|
45
|
+
listInvoices(request: Lark.ListInvoicesInvoicesGetRequest, requestOptions?: Invoices.RequestOptions): core.HttpResponsePromise<Lark.ListInvoicesResponse>;
|
|
46
|
+
private __listInvoices;
|
|
47
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
48
|
+
"X-API-Key": string;
|
|
49
|
+
}>;
|
|
50
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
import * as environments from "../../../../environments.mjs";
|
|
14
|
+
import * as core from "../../../../core/index.mjs";
|
|
15
|
+
import * as Lark from "../../../index.mjs";
|
|
16
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
17
|
+
import * as errors from "../../../../errors/index.mjs";
|
|
18
|
+
export class Invoices {
|
|
19
|
+
constructor(_options) {
|
|
20
|
+
this._options = _options;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @param {Lark.ListInvoicesInvoicesGetRequest} request
|
|
24
|
+
* @param {Invoices.RequestOptions} requestOptions - Request-specific configuration.
|
|
25
|
+
*
|
|
26
|
+
* @throws {@link Lark.UnprocessableEntityError}
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* await client.invoices.listInvoices({
|
|
30
|
+
* subject_id: "subject_id",
|
|
31
|
+
* limit: 1,
|
|
32
|
+
* offset: 1
|
|
33
|
+
* })
|
|
34
|
+
*/
|
|
35
|
+
listInvoices(request, requestOptions) {
|
|
36
|
+
return core.HttpResponsePromise.fromPromise(this.__listInvoices(request, requestOptions));
|
|
37
|
+
}
|
|
38
|
+
__listInvoices(request, requestOptions) {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
var _a, _b, _c;
|
|
41
|
+
const { subject_id: subjectId, limit, offset } = request;
|
|
42
|
+
const _queryParams = {};
|
|
43
|
+
_queryParams["subject_id"] = subjectId;
|
|
44
|
+
if (limit != null) {
|
|
45
|
+
_queryParams["limit"] = limit.toString();
|
|
46
|
+
}
|
|
47
|
+
if (offset != null) {
|
|
48
|
+
_queryParams["offset"] = offset.toString();
|
|
49
|
+
}
|
|
50
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
51
|
+
const _response = yield core.fetcher({
|
|
52
|
+
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, "invoices"),
|
|
53
|
+
method: "GET",
|
|
54
|
+
headers: _headers,
|
|
55
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
56
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
57
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
58
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
59
|
+
});
|
|
60
|
+
if (_response.ok) {
|
|
61
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
62
|
+
}
|
|
63
|
+
if (_response.error.reason === "status-code") {
|
|
64
|
+
switch (_response.error.statusCode) {
|
|
65
|
+
case 422:
|
|
66
|
+
throw new Lark.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
67
|
+
default:
|
|
68
|
+
throw new errors.LarkError({
|
|
69
|
+
statusCode: _response.error.statusCode,
|
|
70
|
+
body: _response.error.body,
|
|
71
|
+
rawResponse: _response.rawResponse,
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
switch (_response.error.reason) {
|
|
76
|
+
case "non-json":
|
|
77
|
+
throw new errors.LarkError({
|
|
78
|
+
statusCode: _response.error.statusCode,
|
|
79
|
+
body: _response.error.rawBody,
|
|
80
|
+
rawResponse: _response.rawResponse,
|
|
81
|
+
});
|
|
82
|
+
case "timeout":
|
|
83
|
+
throw new errors.LarkTimeoutError("Timeout exceeded when calling GET /invoices.");
|
|
84
|
+
case "unknown":
|
|
85
|
+
throw new errors.LarkError({
|
|
86
|
+
message: _response.error.errorMessage,
|
|
87
|
+
rawResponse: _response.rawResponse,
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
_getCustomAuthorizationHeaders() {
|
|
93
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
94
|
+
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
95
|
+
return { "X-API-Key": apiKeyValue };
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* subject_id: "subject_id",
|
|
8
|
+
* limit: 1,
|
|
9
|
+
* offset: 1
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface ListInvoicesInvoicesGetRequest {
|
|
13
|
+
/** The ID of the subject to list invoices for. */
|
|
14
|
+
subject_id: string;
|
|
15
|
+
limit?: number;
|
|
16
|
+
offset?: number;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type ListInvoicesInvoicesGetRequest } from "./ListInvoicesInvoicesGetRequest.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments.mjs";
|
|
5
|
+
import * as core from "../../../../core/index.mjs";
|
|
6
|
+
import * as Lark from "../../../index.mjs";
|
|
7
|
+
export declare namespace PricingMetrics {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.LarkEnvironment | string>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
apiKey: core.Supplier<string>;
|
|
13
|
+
/** Additional headers to include in requests. */
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
15
|
+
}
|
|
16
|
+
interface RequestOptions {
|
|
17
|
+
/** The maximum time to wait for a response in seconds. */
|
|
18
|
+
timeoutInSeconds?: number;
|
|
19
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
20
|
+
maxRetries?: number;
|
|
21
|
+
/** A hook to abort the request. */
|
|
22
|
+
abortSignal?: AbortSignal;
|
|
23
|
+
/** Additional query string parameters to include in the request. */
|
|
24
|
+
queryParams?: Record<string, unknown>;
|
|
25
|
+
/** Additional headers to include in the request. */
|
|
26
|
+
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export declare class PricingMetrics {
|
|
30
|
+
protected readonly _options: PricingMetrics.Options;
|
|
31
|
+
constructor(_options: PricingMetrics.Options);
|
|
32
|
+
/**
|
|
33
|
+
* @param {Lark.ListPricingMetricsPricingMetricsGetRequest} request
|
|
34
|
+
* @param {PricingMetrics.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
|
+
*
|
|
36
|
+
* @throws {@link Lark.UnprocessableEntityError}
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* await client.pricingMetrics.listPricingMetrics({
|
|
40
|
+
* limit: 1
|
|
41
|
+
* })
|
|
42
|
+
*/
|
|
43
|
+
listPricingMetrics(request?: Lark.ListPricingMetricsPricingMetricsGetRequest, requestOptions?: PricingMetrics.RequestOptions): core.HttpResponsePromise<Lark.ListPricingMetricsResponse>;
|
|
44
|
+
private __listPricingMetrics;
|
|
45
|
+
/**
|
|
46
|
+
* @param {Lark.CreatePricingMetricRequest} request
|
|
47
|
+
* @param {PricingMetrics.RequestOptions} requestOptions - Request-specific configuration.
|
|
48
|
+
*
|
|
49
|
+
* @throws {@link Lark.UnprocessableEntityError}
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* await client.pricingMetrics.createPricingMetric({
|
|
53
|
+
* name: "name",
|
|
54
|
+
* event_name: "event_name",
|
|
55
|
+
* aggregation: {
|
|
56
|
+
* aggregation_type: "count"
|
|
57
|
+
* },
|
|
58
|
+
* unit: "unit"
|
|
59
|
+
* })
|
|
60
|
+
*/
|
|
61
|
+
createPricingMetric(request: Lark.CreatePricingMetricRequest, requestOptions?: PricingMetrics.RequestOptions): core.HttpResponsePromise<Lark.CreatePricingMetricResponse>;
|
|
62
|
+
private __createPricingMetric;
|
|
63
|
+
/**
|
|
64
|
+
* @param {string} pricingMetricId
|
|
65
|
+
* @param {PricingMetrics.RequestOptions} requestOptions - Request-specific configuration.
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link Lark.UnprocessableEntityError}
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* await client.pricingMetrics.getPricingMetric("pricing_metric_id")
|
|
71
|
+
*/
|
|
72
|
+
getPricingMetric(pricingMetricId: string, requestOptions?: PricingMetrics.RequestOptions): core.HttpResponsePromise<Lark.GetPricingMetricResponse>;
|
|
73
|
+
private __getPricingMetric;
|
|
74
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
75
|
+
"X-API-Key": string;
|
|
76
|
+
}>;
|
|
77
|
+
}
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
8
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
9
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
10
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
import * as environments from "../../../../environments.mjs";
|
|
14
|
+
import * as core from "../../../../core/index.mjs";
|
|
15
|
+
import * as Lark from "../../../index.mjs";
|
|
16
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
17
|
+
import * as errors from "../../../../errors/index.mjs";
|
|
18
|
+
export class PricingMetrics {
|
|
19
|
+
constructor(_options) {
|
|
20
|
+
this._options = _options;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @param {Lark.ListPricingMetricsPricingMetricsGetRequest} request
|
|
24
|
+
* @param {PricingMetrics.RequestOptions} requestOptions - Request-specific configuration.
|
|
25
|
+
*
|
|
26
|
+
* @throws {@link Lark.UnprocessableEntityError}
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* await client.pricingMetrics.listPricingMetrics({
|
|
30
|
+
* limit: 1
|
|
31
|
+
* })
|
|
32
|
+
*/
|
|
33
|
+
listPricingMetrics(request = {}, requestOptions) {
|
|
34
|
+
return core.HttpResponsePromise.fromPromise(this.__listPricingMetrics(request, requestOptions));
|
|
35
|
+
}
|
|
36
|
+
__listPricingMetrics() {
|
|
37
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
38
|
+
var _a, _b, _c;
|
|
39
|
+
const { limit } = request;
|
|
40
|
+
const _queryParams = {};
|
|
41
|
+
if (limit != null) {
|
|
42
|
+
_queryParams["limit"] = limit.toString();
|
|
43
|
+
}
|
|
44
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
45
|
+
const _response = yield core.fetcher({
|
|
46
|
+
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, "pricing-metrics"),
|
|
47
|
+
method: "GET",
|
|
48
|
+
headers: _headers,
|
|
49
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
50
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
51
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
52
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
53
|
+
});
|
|
54
|
+
if (_response.ok) {
|
|
55
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
56
|
+
}
|
|
57
|
+
if (_response.error.reason === "status-code") {
|
|
58
|
+
switch (_response.error.statusCode) {
|
|
59
|
+
case 422:
|
|
60
|
+
throw new Lark.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
61
|
+
default:
|
|
62
|
+
throw new errors.LarkError({
|
|
63
|
+
statusCode: _response.error.statusCode,
|
|
64
|
+
body: _response.error.body,
|
|
65
|
+
rawResponse: _response.rawResponse,
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
switch (_response.error.reason) {
|
|
70
|
+
case "non-json":
|
|
71
|
+
throw new errors.LarkError({
|
|
72
|
+
statusCode: _response.error.statusCode,
|
|
73
|
+
body: _response.error.rawBody,
|
|
74
|
+
rawResponse: _response.rawResponse,
|
|
75
|
+
});
|
|
76
|
+
case "timeout":
|
|
77
|
+
throw new errors.LarkTimeoutError("Timeout exceeded when calling GET /pricing-metrics.");
|
|
78
|
+
case "unknown":
|
|
79
|
+
throw new errors.LarkError({
|
|
80
|
+
message: _response.error.errorMessage,
|
|
81
|
+
rawResponse: _response.rawResponse,
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* @param {Lark.CreatePricingMetricRequest} request
|
|
88
|
+
* @param {PricingMetrics.RequestOptions} requestOptions - Request-specific configuration.
|
|
89
|
+
*
|
|
90
|
+
* @throws {@link Lark.UnprocessableEntityError}
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* await client.pricingMetrics.createPricingMetric({
|
|
94
|
+
* name: "name",
|
|
95
|
+
* event_name: "event_name",
|
|
96
|
+
* aggregation: {
|
|
97
|
+
* aggregation_type: "count"
|
|
98
|
+
* },
|
|
99
|
+
* unit: "unit"
|
|
100
|
+
* })
|
|
101
|
+
*/
|
|
102
|
+
createPricingMetric(request, requestOptions) {
|
|
103
|
+
return core.HttpResponsePromise.fromPromise(this.__createPricingMetric(request, requestOptions));
|
|
104
|
+
}
|
|
105
|
+
__createPricingMetric(request, requestOptions) {
|
|
106
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
107
|
+
var _a, _b, _c;
|
|
108
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
109
|
+
const _response = yield core.fetcher({
|
|
110
|
+
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, "pricing-metrics"),
|
|
111
|
+
method: "POST",
|
|
112
|
+
headers: _headers,
|
|
113
|
+
contentType: "application/json",
|
|
114
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
115
|
+
requestType: "json",
|
|
116
|
+
body: request,
|
|
117
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
118
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
119
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
120
|
+
});
|
|
121
|
+
if (_response.ok) {
|
|
122
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
123
|
+
}
|
|
124
|
+
if (_response.error.reason === "status-code") {
|
|
125
|
+
switch (_response.error.statusCode) {
|
|
126
|
+
case 422:
|
|
127
|
+
throw new Lark.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
128
|
+
default:
|
|
129
|
+
throw new errors.LarkError({
|
|
130
|
+
statusCode: _response.error.statusCode,
|
|
131
|
+
body: _response.error.body,
|
|
132
|
+
rawResponse: _response.rawResponse,
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
switch (_response.error.reason) {
|
|
137
|
+
case "non-json":
|
|
138
|
+
throw new errors.LarkError({
|
|
139
|
+
statusCode: _response.error.statusCode,
|
|
140
|
+
body: _response.error.rawBody,
|
|
141
|
+
rawResponse: _response.rawResponse,
|
|
142
|
+
});
|
|
143
|
+
case "timeout":
|
|
144
|
+
throw new errors.LarkTimeoutError("Timeout exceeded when calling POST /pricing-metrics.");
|
|
145
|
+
case "unknown":
|
|
146
|
+
throw new errors.LarkError({
|
|
147
|
+
message: _response.error.errorMessage,
|
|
148
|
+
rawResponse: _response.rawResponse,
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* @param {string} pricingMetricId
|
|
155
|
+
* @param {PricingMetrics.RequestOptions} requestOptions - Request-specific configuration.
|
|
156
|
+
*
|
|
157
|
+
* @throws {@link Lark.UnprocessableEntityError}
|
|
158
|
+
*
|
|
159
|
+
* @example
|
|
160
|
+
* await client.pricingMetrics.getPricingMetric("pricing_metric_id")
|
|
161
|
+
*/
|
|
162
|
+
getPricingMetric(pricingMetricId, requestOptions) {
|
|
163
|
+
return core.HttpResponsePromise.fromPromise(this.__getPricingMetric(pricingMetricId, requestOptions));
|
|
164
|
+
}
|
|
165
|
+
__getPricingMetric(pricingMetricId, requestOptions) {
|
|
166
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
167
|
+
var _a, _b, _c;
|
|
168
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
169
|
+
const _response = yield core.fetcher({
|
|
170
|
+
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, `pricing-metrics/${encodeURIComponent(pricingMetricId)}`),
|
|
171
|
+
method: "GET",
|
|
172
|
+
headers: _headers,
|
|
173
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
174
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
175
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
176
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
177
|
+
});
|
|
178
|
+
if (_response.ok) {
|
|
179
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
180
|
+
}
|
|
181
|
+
if (_response.error.reason === "status-code") {
|
|
182
|
+
switch (_response.error.statusCode) {
|
|
183
|
+
case 422:
|
|
184
|
+
throw new Lark.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
185
|
+
default:
|
|
186
|
+
throw new errors.LarkError({
|
|
187
|
+
statusCode: _response.error.statusCode,
|
|
188
|
+
body: _response.error.body,
|
|
189
|
+
rawResponse: _response.rawResponse,
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
switch (_response.error.reason) {
|
|
194
|
+
case "non-json":
|
|
195
|
+
throw new errors.LarkError({
|
|
196
|
+
statusCode: _response.error.statusCode,
|
|
197
|
+
body: _response.error.rawBody,
|
|
198
|
+
rawResponse: _response.rawResponse,
|
|
199
|
+
});
|
|
200
|
+
case "timeout":
|
|
201
|
+
throw new errors.LarkTimeoutError("Timeout exceeded when calling GET /pricing-metrics/{pricing_metric_id}.");
|
|
202
|
+
case "unknown":
|
|
203
|
+
throw new errors.LarkError({
|
|
204
|
+
message: _response.error.errorMessage,
|
|
205
|
+
rawResponse: _response.rawResponse,
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
_getCustomAuthorizationHeaders() {
|
|
211
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
212
|
+
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
213
|
+
return { "X-API-Key": apiKeyValue };
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
}
|