lark-billing 0.0.5 → 0.0.7
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 +11 -10
- package/dist/cjs/Client.d.ts +12 -10
- package/dist/cjs/Client.js +19 -19
- package/dist/cjs/api/resources/checkout/client/Client.d.ts +12 -6
- package/dist/cjs/api/resources/checkout/client/Client.js +22 -11
- package/dist/cjs/api/resources/checkout/client/requests/{CreateRateCardCheckoutRequest.d.ts → CreateSubscriptionCheckoutSessionRequest.d.ts} +4 -3
- package/dist/cjs/api/resources/checkout/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/{featureAccess → customerAccess}/client/Client.d.ts +15 -9
- package/dist/cjs/api/resources/{featureAccess → customerAccess}/client/Client.js +20 -12
- 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/{rateCards/types → customerPortal/client}/index.js +1 -2
- 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/index.d.ts +7 -5
- package/dist/cjs/api/resources/index.js +8 -6
- package/dist/cjs/api/resources/pricingMetrics/client/Client.d.ts +64 -0
- package/dist/cjs/api/resources/{creditPools → pricingMetrics}/client/Client.js +66 -81
- 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/cjs/api/resources/pricingMetrics/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/{pricingPlans → pricingMetrics}/index.d.ts +1 -0
- package/dist/cjs/api/resources/{pricingPlans → pricingMetrics}/index.js +1 -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 +11 -106
- package/dist/cjs/api/resources/rateCards/client/Client.js +16 -243
- package/dist/cjs/api/resources/rateCards/client/requests/CreateRateCardRequest.d.ts +2 -36
- package/dist/{esm/api/resources/subjects/client/requests/SubjectsListSubjectsRequest.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/index.d.ts +0 -1
- package/dist/cjs/api/resources/rateCards/index.js +0 -1
- package/dist/cjs/api/resources/subjects/client/Client.d.ts +8 -3
- package/dist/cjs/api/resources/subjects/client/Client.js +23 -16
- package/dist/cjs/api/resources/subjects/client/requests/CreateSubjectRequest.d.ts +0 -1
- package/dist/{esm/api/resources/rateCards/client/requests/RateCardsListRateCardsRequest.d.mts → cjs/api/resources/subjects/client/requests/ListSubjectsSubjectsGetRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/subjects/client/requests/UpdateSubjectRequest.d.ts +0 -1
- package/dist/cjs/api/resources/subjects/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/subscriptions/client/Client.d.ts +11 -24
- package/dist/cjs/api/resources/subscriptions/client/Client.js +23 -113
- package/dist/cjs/api/resources/subscriptions/client/requests/CreateSubscriptionRequest.d.ts +1 -4
- package/dist/cjs/api/resources/subscriptions/client/requests/ListSubscriptionsSubscriptionsGetRequest.d.ts +18 -0
- package/dist/cjs/api/resources/subscriptions/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/usageEvents/client/Client.d.ts +25 -2
- package/dist/cjs/api/resources/usageEvents/client/Client.js +78 -4
- package/dist/cjs/api/resources/usageEvents/client/requests/CreateUsageEventRequest.d.ts +2 -3
- package/dist/cjs/api/resources/usageEvents/client/requests/CreateUsageEventSummaryRequest.d.ts +30 -0
- package/dist/cjs/api/resources/usageEvents/client/requests/CreateUsageEventSummaryRequest.js +14 -0
- package/dist/cjs/api/resources/usageEvents/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/types/Aggregation.d.ts +5 -5
- 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/{esm/api/types/CreateRateCardCheckoutResponse.d.mts → cjs/api/types/CreateCustomerPortalSessionResponse.d.ts} +2 -1
- package/dist/cjs/api/types/CreateFixedRateInterface.d.ts +2 -4
- package/dist/cjs/api/types/{CreatePricingMetricInterface.d.ts → CreatePricingMetricResponse.d.ts} +2 -1
- package/dist/cjs/api/types/CreateSimpleUsageBasedRateInterface.d.ts +4 -3
- package/dist/cjs/api/types/CreateSubjectResponse.d.ts +1 -1
- package/dist/cjs/api/types/CreateSubscriptionCheckoutSessionResponse.d.ts +9 -0
- package/dist/cjs/api/types/CreateUsageEventSummaryResponse.d.ts +10 -0
- package/dist/{esm/api/types/CustomAggregationPricingMetricInterface.d.mts → cjs/api/types/CustomPricingMetricResource.d.ts} +1 -1
- package/dist/cjs/api/types/FixedRateInterface.d.ts +2 -3
- package/dist/cjs/api/types/{PricingMetricInterface.d.ts → GetPricingMetricResponse.d.ts} +2 -1
- package/dist/cjs/api/types/{MaxAggregationPricingMetricInterface.d.ts → LastAggregationPricingMetricResource.d.ts} +1 -1
- package/dist/{esm/api/types/MaxAggregationPricingMetricInterface.d.mts → cjs/api/types/MaxAggregationPricingMetricResource.d.ts} +1 -1
- package/dist/cjs/api/types/Period.d.ts +9 -0
- package/dist/cjs/api/types/Price.d.ts +10 -1
- 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 +5 -2
- package/dist/cjs/api/types/SubjectResource.d.ts +1 -1
- package/dist/cjs/api/types/SubscriptionResource.d.ts +1 -3
- package/dist/cjs/api/types/SubscriptionResource.js +0 -1
- package/dist/cjs/api/types/SumAggregationPricingMetricInterface.d.ts +1 -0
- package/dist/cjs/api/types/{LastAggregationPricingMetricInterface.d.ts → SumAggregationPricingMetricResource.d.ts} +1 -1
- package/dist/cjs/api/types/index.d.ts +12 -86
- package/dist/cjs/api/types/index.js +12 -86
- 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 +12 -10
- package/dist/esm/Client.mjs +13 -13
- package/dist/esm/api/resources/checkout/client/Client.d.mts +12 -6
- package/dist/esm/api/resources/checkout/client/Client.mjs +23 -12
- package/dist/esm/api/resources/checkout/client/requests/{CreateRateCardCheckoutRequest.d.mts → CreateSubscriptionCheckoutSessionRequest.d.mts} +4 -3
- package/dist/esm/api/resources/checkout/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/{featureAccess → customerAccess}/client/Client.d.mts +15 -9
- package/dist/esm/api/resources/{featureAccess → customerAccess}/client/Client.mjs +19 -11
- 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/index.d.mts +7 -5
- package/dist/esm/api/resources/index.mjs +7 -5
- package/dist/esm/api/resources/pricingMetrics/client/Client.d.mts +64 -0
- package/dist/esm/api/resources/pricingMetrics/client/Client.mjs +152 -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/index.d.mts +1 -0
- package/dist/esm/api/resources/{pricingPlans → pricingMetrics}/index.d.mts +1 -0
- package/dist/esm/api/resources/{pricingPlans → pricingMetrics}/index.mjs +1 -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 +11 -106
- package/dist/esm/api/resources/rateCards/client/Client.mjs +17 -244
- package/dist/esm/api/resources/rateCards/client/requests/CreateRateCardRequest.d.mts +2 -36
- package/dist/{cjs/api/resources/rateCards/client/requests/RateCardsListRateCardsRequest.d.ts → esm/api/resources/rateCards/client/requests/ListRateCardsRateCardsGetRequest.d.mts} +2 -4
- package/dist/esm/api/resources/rateCards/client/requests/index.d.mts +1 -2
- package/dist/esm/api/resources/rateCards/index.d.mts +0 -1
- package/dist/esm/api/resources/rateCards/index.mjs +0 -1
- package/dist/esm/api/resources/subjects/client/Client.d.mts +8 -3
- package/dist/esm/api/resources/subjects/client/Client.mjs +24 -17
- package/dist/esm/api/resources/subjects/client/requests/CreateSubjectRequest.d.mts +0 -1
- package/dist/{cjs/api/resources/subjects/client/requests/SubjectsListSubjectsRequest.d.ts → esm/api/resources/subjects/client/requests/ListSubjectsSubjectsGetRequest.d.mts} +1 -1
- package/dist/esm/api/resources/subjects/client/requests/UpdateSubjectRequest.d.mts +0 -1
- package/dist/esm/api/resources/subjects/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/subscriptions/client/Client.d.mts +11 -24
- package/dist/esm/api/resources/subscriptions/client/Client.mjs +24 -114
- package/dist/esm/api/resources/subscriptions/client/requests/CreateSubscriptionRequest.d.mts +1 -4
- package/dist/esm/api/resources/subscriptions/client/requests/ListSubscriptionsSubscriptionsGetRequest.d.mts +18 -0
- package/dist/esm/api/resources/subscriptions/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/usageEvents/client/Client.d.mts +25 -2
- package/dist/esm/api/resources/usageEvents/client/Client.mjs +79 -5
- package/dist/esm/api/resources/usageEvents/client/requests/CreateUsageEventRequest.d.mts +2 -3
- package/dist/esm/api/resources/usageEvents/client/requests/CreateUsageEventSummaryRequest.d.mts +30 -0
- package/dist/esm/api/resources/usageEvents/client/requests/CreateUsageEventSummaryRequest.mjs +11 -0
- package/dist/esm/api/resources/usageEvents/client/requests/index.d.mts +1 -0
- package/dist/esm/api/types/Aggregation.d.mts +5 -5
- 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/{cjs/api/types/CreateRateCardCheckoutResponse.d.ts → esm/api/types/CreateCustomerPortalSessionResponse.d.mts} +2 -1
- package/dist/esm/api/types/CreateFixedRateInterface.d.mts +2 -4
- package/dist/esm/api/types/{PricingMetricInterface.d.mts → CreatePricingMetricResponse.d.mts} +2 -1
- package/dist/esm/api/types/CreateSimpleUsageBasedRateInterface.d.mts +4 -3
- package/dist/esm/api/types/CreateSubjectResponse.d.mts +1 -1
- package/dist/esm/api/types/CreateSubscriptionCheckoutSessionResponse.d.mts +9 -0
- package/dist/esm/api/types/CreateUsageEventSummaryResponse.d.mts +10 -0
- package/dist/{cjs/api/types/CustomAggregationPricingMetricInterface.d.ts → esm/api/types/CustomPricingMetricResource.d.mts} +1 -1
- package/dist/esm/api/types/FixedRateInterface.d.mts +2 -3
- package/dist/esm/api/types/{CreatePricingMetricInterface.d.mts → GetPricingMetricResponse.d.mts} +2 -1
- package/dist/esm/api/types/{LastAggregationPricingMetricInterface.d.mts → LastAggregationPricingMetricResource.d.mts} +1 -1
- package/dist/esm/api/types/MaxAggregationPricingMetricResource.d.mts +6 -0
- package/dist/esm/api/types/Period.d.mts +9 -0
- package/dist/esm/api/types/Price.d.mts +10 -1
- 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 +5 -2
- package/dist/esm/api/types/SubjectResource.d.mts +1 -1
- package/dist/esm/api/types/SubscriptionResource.d.mts +1 -3
- package/dist/esm/api/types/SubscriptionResource.mjs +0 -1
- package/dist/esm/api/types/SumAggregationPricingMetricInterface.d.mts +1 -0
- package/dist/esm/api/types/SumAggregationPricingMetricResource.d.mts +6 -0
- package/dist/esm/api/types/index.d.mts +12 -86
- package/dist/esm/api/types/index.mjs +12 -86
- 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 +67 -528
- package/dist/cjs/api/resources/creditPools/client/Client.d.ts +0 -53
- package/dist/cjs/api/resources/featureAccess/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/pricingPlans/client/Client.d.ts +0 -72
- package/dist/cjs/api/resources/pricingPlans/client/Client.js +0 -305
- package/dist/cjs/api/resources/pricingPlans/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/rateCards/client/requests/CreateRateCardVersionRequest.d.ts +0 -60
- package/dist/cjs/api/resources/rateCards/client/requests/CreateRateCardVersionRequest.js +0 -13
- package/dist/cjs/api/resources/rateCards/types/CreateRateCardRequestUsageBasedRatesItem.d.ts +0 -13
- package/dist/cjs/api/resources/rateCards/types/CreateRateCardVersionRequestUsageBasedRatesItem.d.ts +0 -13
- package/dist/cjs/api/resources/rateCards/types/index.d.ts +0 -2
- package/dist/cjs/api/resources/subscriptions/client/requests/SubscriptionsListSubscriptionsRequest.d.ts +0 -14
- 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 -12
- package/dist/cjs/api/types/CreatePricingMatrixCellInterface.d.ts +0 -8
- package/dist/cjs/api/types/CreatePricingMatrixInterface.d.ts +0 -7
- 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/CreateRateCardResponseUsageBasedRatesItem.js +0 -5
- 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/CreateRateCardVersionResponseUsageBasedRatesItem.js +0 -5
- package/dist/cjs/api/types/CreditGrant.d.ts +0 -4
- package/dist/cjs/api/types/CreditGrant.js +0 -5
- package/dist/cjs/api/types/CreditGrantDateTimeExpirationInterface.d.ts +0 -6
- package/dist/cjs/api/types/CreditGrantDateTimeExpirationInterface.js +0 -5
- 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.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 -12
- 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.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.d.ts +0 -7
- 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/creditPools/client/Client.d.mts +0 -53
- package/dist/esm/api/resources/creditPools/client/Client.mjs +0 -167
- package/dist/esm/api/resources/featureAccess/client/index.d.mts +0 -1
- package/dist/esm/api/resources/pricingPlans/client/Client.d.mts +0 -72
- package/dist/esm/api/resources/pricingPlans/client/Client.mjs +0 -268
- package/dist/esm/api/resources/pricingPlans/client/index.d.mts +0 -1
- package/dist/esm/api/resources/rateCards/client/requests/CreateRateCardVersionRequest.d.mts +0 -60
- package/dist/esm/api/resources/rateCards/client/requests/CreateRateCardVersionRequest.mjs +0 -10
- package/dist/esm/api/resources/rateCards/types/CreateRateCardRequestUsageBasedRatesItem.d.mts +0 -13
- package/dist/esm/api/resources/rateCards/types/CreateRateCardVersionRequestUsageBasedRatesItem.d.mts +0 -13
- package/dist/esm/api/resources/rateCards/types/index.d.mts +0 -2
- package/dist/esm/api/resources/rateCards/types/index.mjs +0 -2
- 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 -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/CreateRateCardResponseUsageBasedRatesItem.mjs +0 -4
- 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/CreateRateCardVersionResponseUsageBasedRatesItem.mjs +0 -4
- package/dist/esm/api/types/CreditGrant.d.mts +0 -4
- package/dist/esm/api/types/CreditGrant.mjs +0 -4
- package/dist/esm/api/types/CreditGrantDateTimeExpirationInterface.d.mts +0 -6
- package/dist/esm/api/types/CreditGrantDateTimeExpirationInterface.mjs +0 -4
- 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.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 -12
- 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.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.d.mts +0 -7
- 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/checkout/client/requests/{CreateRateCardCheckoutRequest.js → CreateSubscriptionCheckoutSessionRequest.js} +0 -0
- /package/dist/cjs/api/resources/{creditPools → customerAccess}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{creditPools → customerAccess}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{creditPools → customerAccess}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{creditPools → 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/{featureAccess/client → customerPortal/client/requests}/index.js +0 -0
- /package/dist/cjs/api/resources/{featureAccess → customerPortal}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{featureAccess → customerPortal}/index.js +0 -0
- /package/dist/cjs/api/resources/{rateCards/types/CreateRateCardRequestUsageBasedRatesItem.js → pricingMetrics/client/requests/CreatePricingMetricRequest.js} +0 -0
- /package/dist/cjs/api/resources/{pricingPlans/client → pricingMetrics/client/requests}/index.js +0 -0
- /package/dist/cjs/api/resources/{rateCards/types/CreateRateCardVersionRequestUsageBasedRatesItem.js → pricingMetrics/types/PricingMetricAggregation.js} +0 -0
- /package/dist/cjs/api/resources/{subjects/client/requests/SubjectsListSubjectsRequest.js → rateCards/client/requests/ListRateCardsRateCardsGetRequest.js} +0 -0
- /package/dist/cjs/api/resources/{subscriptions/client/requests/SubscriptionsListSubscriptionsRequest.js → subjects/client/requests/ListSubjectsSubjectsGetRequest.js} +0 -0
- /package/dist/cjs/api/{types/CheckFeatureAccessRequest.js → resources/subscriptions/client/requests/ListSubscriptionsSubscriptionsGetRequest.js} +0 -0
- /package/dist/cjs/api/types/{CheckFeatureAccessResponse.js → BillingStateResponse.js} +0 -0
- /package/dist/cjs/api/types/{CreateCreditGrantInterface.js → CountAggregationPricingMetricResource.js} +0 -0
- /package/dist/cjs/api/types/{CreateCreditGrantInterfaceExpiration.js → CreateCustomerPortalSessionResponse.js} +0 -0
- /package/dist/cjs/api/types/{CreateCreditPoolRequest.js → CreatePricingMetricResponse.js} +0 -0
- /package/dist/cjs/api/types/{CreateDimensionCoordinateInterface.js → CreateSubscriptionCheckoutSessionResponse.js} +0 -0
- /package/dist/cjs/api/types/{CreateDimensionInterface.js → CreateUsageEventSummaryResponse.js} +0 -0
- /package/dist/cjs/api/types/{CreateDimensionalUsageBasedRateInterface.js → CustomPricingMetricResource.js} +0 -0
- /package/dist/cjs/api/types/{CreatePricingMatrixCellInterface.js → GetPricingMetricResponse.js} +0 -0
- /package/dist/cjs/api/types/{CreatePricingMatrixInterface.js → LastAggregationPricingMetricResource.js} +0 -0
- /package/dist/cjs/api/types/{CreatePricingMetricInterface.js → MaxAggregationPricingMetricResource.js} +0 -0
- /package/dist/cjs/api/types/{CreatePricingPlanRequest.js → Period.js} +0 -0
- /package/dist/cjs/api/types/{CreateRateCardCheckoutResponse.js → SumAggregationPricingMetricResource.js} +0 -0
- /package/dist/esm/api/resources/checkout/client/requests/{CreateRateCardCheckoutRequest.mjs → CreateSubscriptionCheckoutSessionRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{creditPools → customerAccess}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{creditPools → customerAccess}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{creditPools → customerAccess}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{creditPools → 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/{featureAccess/client → customerPortal/client/requests}/index.mjs +0 -0
- /package/dist/esm/api/resources/{featureAccess → customerPortal}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{featureAccess → customerPortal}/index.mjs +0 -0
- /package/dist/esm/api/resources/{rateCards/types/CreateRateCardRequestUsageBasedRatesItem.mjs → pricingMetrics/client/requests/CreatePricingMetricRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{pricingPlans/client → pricingMetrics/client/requests}/index.mjs +0 -0
- /package/dist/esm/api/resources/{rateCards/types/CreateRateCardVersionRequestUsageBasedRatesItem.mjs → pricingMetrics/types/PricingMetricAggregation.mjs} +0 -0
- /package/dist/esm/api/resources/{subjects/client/requests/SubjectsListSubjectsRequest.mjs → rateCards/client/requests/ListRateCardsRateCardsGetRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{subscriptions/client/requests/SubscriptionsListSubscriptionsRequest.mjs → subjects/client/requests/ListSubjectsSubjectsGetRequest.mjs} +0 -0
- /package/dist/esm/api/{types/CheckFeatureAccessRequest.mjs → resources/subscriptions/client/requests/ListSubscriptionsSubscriptionsGetRequest.mjs} +0 -0
- /package/dist/esm/api/types/{CheckFeatureAccessResponse.mjs → BillingStateResponse.mjs} +0 -0
- /package/dist/esm/api/types/{CreateCreditGrantInterface.mjs → CountAggregationPricingMetricResource.mjs} +0 -0
- /package/dist/esm/api/types/{CreateCreditGrantInterfaceExpiration.mjs → CreateCustomerPortalSessionResponse.mjs} +0 -0
- /package/dist/esm/api/types/{CreateCreditPoolRequest.mjs → CreatePricingMetricResponse.mjs} +0 -0
- /package/dist/esm/api/types/{CreateDimensionCoordinateInterface.mjs → CreateSubscriptionCheckoutSessionResponse.mjs} +0 -0
- /package/dist/esm/api/types/{CreateDimensionInterface.mjs → CreateUsageEventSummaryResponse.mjs} +0 -0
- /package/dist/esm/api/types/{CreateDimensionalUsageBasedRateInterface.mjs → CustomPricingMetricResource.mjs} +0 -0
- /package/dist/esm/api/types/{CreatePricingMatrixCellInterface.mjs → GetPricingMetricResponse.mjs} +0 -0
- /package/dist/esm/api/types/{CreatePricingMatrixInterface.mjs → LastAggregationPricingMetricResource.mjs} +0 -0
- /package/dist/esm/api/types/{CreatePricingMetricInterface.mjs → MaxAggregationPricingMetricResource.mjs} +0 -0
- /package/dist/esm/api/types/{CreatePricingPlanRequest.mjs → Period.mjs} +0 -0
- /package/dist/esm/api/types/{CreateRateCardCheckoutResponse.mjs → SumAggregationPricingMetricResource.mjs} +0 -0
|
@@ -1,13 +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.mjs";
|
|
4
5
|
import * as core from "../../../../core/index.mjs";
|
|
5
6
|
import * as Lark from "../../../index.mjs";
|
|
6
7
|
export declare namespace Checkout {
|
|
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>;
|
|
12
|
+
apiKey: core.Supplier<string>;
|
|
11
13
|
/** Additional headers to include in requests. */
|
|
12
14
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
13
15
|
}
|
|
@@ -28,17 +30,21 @@ export declare class Checkout {
|
|
|
28
30
|
protected readonly _options: Checkout.Options;
|
|
29
31
|
constructor(_options: Checkout.Options);
|
|
30
32
|
/**
|
|
31
|
-
* @param {Lark.
|
|
33
|
+
* @param {Lark.CreateSubscriptionCheckoutSessionRequest} request
|
|
32
34
|
* @param {Checkout.RequestOptions} requestOptions - Request-specific configuration.
|
|
33
35
|
*
|
|
34
36
|
* @throws {@link Lark.UnprocessableEntityError}
|
|
35
37
|
*
|
|
36
38
|
* @example
|
|
37
|
-
* await client.checkout.
|
|
39
|
+
* await client.checkout.createSubscriptionCheckoutSession({
|
|
38
40
|
* subject_id: "subject_id",
|
|
39
|
-
* rate_card_id: "rate_card_id"
|
|
41
|
+
* rate_card_id: "rate_card_id",
|
|
42
|
+
* callback_url: "callback_url"
|
|
40
43
|
* })
|
|
41
44
|
*/
|
|
42
|
-
|
|
43
|
-
private
|
|
45
|
+
createSubscriptionCheckoutSession(request: Lark.CreateSubscriptionCheckoutSessionRequest, requestOptions?: Checkout.RequestOptions): core.HttpResponsePromise<Lark.CreateSubscriptionCheckoutSessionResponse>;
|
|
46
|
+
private __createSubscriptionCheckoutSession;
|
|
47
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
48
|
+
"X-API-Key": string;
|
|
49
|
+
}>;
|
|
44
50
|
}
|
|
@@ -10,35 +10,37 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
11
|
});
|
|
12
12
|
};
|
|
13
|
+
import * as environments from "../../../../environments.mjs";
|
|
13
14
|
import * as core from "../../../../core/index.mjs";
|
|
14
15
|
import * as Lark from "../../../index.mjs";
|
|
15
|
-
import { mergeHeaders } from "../../../../core/headers.mjs";
|
|
16
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
16
17
|
import * as errors from "../../../../errors/index.mjs";
|
|
17
18
|
export class Checkout {
|
|
18
19
|
constructor(_options) {
|
|
19
20
|
this._options = _options;
|
|
20
21
|
}
|
|
21
22
|
/**
|
|
22
|
-
* @param {Lark.
|
|
23
|
+
* @param {Lark.CreateSubscriptionCheckoutSessionRequest} request
|
|
23
24
|
* @param {Checkout.RequestOptions} requestOptions - Request-specific configuration.
|
|
24
25
|
*
|
|
25
26
|
* @throws {@link Lark.UnprocessableEntityError}
|
|
26
27
|
*
|
|
27
28
|
* @example
|
|
28
|
-
* await client.checkout.
|
|
29
|
+
* await client.checkout.createSubscriptionCheckoutSession({
|
|
29
30
|
* subject_id: "subject_id",
|
|
30
|
-
* rate_card_id: "rate_card_id"
|
|
31
|
+
* rate_card_id: "rate_card_id",
|
|
32
|
+
* callback_url: "callback_url"
|
|
31
33
|
* })
|
|
32
34
|
*/
|
|
33
|
-
|
|
34
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
35
|
+
createSubscriptionCheckoutSession(request, requestOptions) {
|
|
36
|
+
return core.HttpResponsePromise.fromPromise(this.__createSubscriptionCheckoutSession(request, requestOptions));
|
|
35
37
|
}
|
|
36
|
-
|
|
38
|
+
__createSubscriptionCheckoutSession(request, requestOptions) {
|
|
37
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
-
var _a, _b;
|
|
39
|
-
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
40
|
+
var _a, _b, _c;
|
|
41
|
+
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
42
|
const _response = yield core.fetcher({
|
|
41
|
-
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "checkout
|
|
43
|
+
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, "checkout"),
|
|
42
44
|
method: "POST",
|
|
43
45
|
headers: _headers,
|
|
44
46
|
contentType: "application/json",
|
|
@@ -50,7 +52,10 @@ export class Checkout {
|
|
|
50
52
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
51
53
|
});
|
|
52
54
|
if (_response.ok) {
|
|
53
|
-
return {
|
|
55
|
+
return {
|
|
56
|
+
data: _response.body,
|
|
57
|
+
rawResponse: _response.rawResponse,
|
|
58
|
+
};
|
|
54
59
|
}
|
|
55
60
|
if (_response.error.reason === "status-code") {
|
|
56
61
|
switch (_response.error.statusCode) {
|
|
@@ -72,7 +77,7 @@ export class Checkout {
|
|
|
72
77
|
rawResponse: _response.rawResponse,
|
|
73
78
|
});
|
|
74
79
|
case "timeout":
|
|
75
|
-
throw new errors.LarkTimeoutError("Timeout exceeded when calling POST /checkout
|
|
80
|
+
throw new errors.LarkTimeoutError("Timeout exceeded when calling POST /checkout.");
|
|
76
81
|
case "unknown":
|
|
77
82
|
throw new errors.LarkError({
|
|
78
83
|
message: _response.error.errorMessage,
|
|
@@ -81,4 +86,10 @@ export class Checkout {
|
|
|
81
86
|
}
|
|
82
87
|
});
|
|
83
88
|
}
|
|
89
|
+
_getCustomAuthorizationHeaders() {
|
|
90
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
91
|
+
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
92
|
+
return { "X-API-Key": apiKeyValue };
|
|
93
|
+
});
|
|
94
|
+
}
|
|
84
95
|
}
|
|
@@ -5,11 +5,12 @@
|
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
7
|
* subject_id: "subject_id",
|
|
8
|
-
* rate_card_id: "rate_card_id"
|
|
8
|
+
* rate_card_id: "rate_card_id",
|
|
9
|
+
* callback_url: "callback_url"
|
|
9
10
|
* }
|
|
10
11
|
*/
|
|
11
|
-
export interface
|
|
12
|
+
export interface CreateSubscriptionCheckoutSessionRequest {
|
|
12
13
|
subject_id: string;
|
|
13
14
|
rate_card_id: string;
|
|
14
|
-
|
|
15
|
+
callback_url: string;
|
|
15
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { type
|
|
1
|
+
export { type CreateSubscriptionCheckoutSessionRequest } from "./CreateSubscriptionCheckoutSessionRequest.mjs";
|
|
@@ -1,13 +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.mjs";
|
|
4
5
|
import * as core from "../../../../core/index.mjs";
|
|
5
6
|
import * as Lark from "../../../index.mjs";
|
|
6
|
-
export declare namespace
|
|
7
|
+
export declare namespace CustomerAccess {
|
|
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>;
|
|
12
|
+
apiKey: core.Supplier<string>;
|
|
11
13
|
/** Additional headers to include in requests. */
|
|
12
14
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
13
15
|
}
|
|
@@ -24,17 +26,21 @@ export declare namespace FeatureAccess {
|
|
|
24
26
|
headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
|
|
25
27
|
}
|
|
26
28
|
}
|
|
27
|
-
export declare class
|
|
28
|
-
protected readonly _options:
|
|
29
|
-
constructor(_options:
|
|
29
|
+
export declare class CustomerAccess {
|
|
30
|
+
protected readonly _options: CustomerAccess.Options;
|
|
31
|
+
constructor(_options: CustomerAccess.Options);
|
|
30
32
|
/**
|
|
31
|
-
* @param {
|
|
33
|
+
* @param {string} subjectId
|
|
34
|
+
* @param {CustomerAccess.RequestOptions} requestOptions - Request-specific configuration.
|
|
32
35
|
*
|
|
33
36
|
* @throws {@link Lark.UnprocessableEntityError}
|
|
34
37
|
*
|
|
35
38
|
* @example
|
|
36
|
-
* await client.
|
|
39
|
+
* await client.customerAccess.getBillingState("subject_id")
|
|
37
40
|
*/
|
|
38
|
-
|
|
39
|
-
private
|
|
41
|
+
getBillingState(subjectId: string, requestOptions?: CustomerAccess.RequestOptions): core.HttpResponsePromise<Lark.BillingStateResponse>;
|
|
42
|
+
private __getBillingState;
|
|
43
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
44
|
+
"X-API-Key": string;
|
|
45
|
+
}>;
|
|
40
46
|
}
|
|
@@ -10,31 +10,33 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
11
11
|
});
|
|
12
12
|
};
|
|
13
|
+
import * as environments from "../../../../environments.mjs";
|
|
13
14
|
import * as core from "../../../../core/index.mjs";
|
|
14
15
|
import * as Lark from "../../../index.mjs";
|
|
15
|
-
import { mergeHeaders } from "../../../../core/headers.mjs";
|
|
16
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.mjs";
|
|
16
17
|
import * as errors from "../../../../errors/index.mjs";
|
|
17
|
-
export class
|
|
18
|
+
export class CustomerAccess {
|
|
18
19
|
constructor(_options) {
|
|
19
20
|
this._options = _options;
|
|
20
21
|
}
|
|
21
22
|
/**
|
|
22
|
-
* @param {
|
|
23
|
+
* @param {string} subjectId
|
|
24
|
+
* @param {CustomerAccess.RequestOptions} requestOptions - Request-specific configuration.
|
|
23
25
|
*
|
|
24
26
|
* @throws {@link Lark.UnprocessableEntityError}
|
|
25
27
|
*
|
|
26
28
|
* @example
|
|
27
|
-
* await client.
|
|
29
|
+
* await client.customerAccess.getBillingState("subject_id")
|
|
28
30
|
*/
|
|
29
|
-
|
|
30
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
31
|
+
getBillingState(subjectId, requestOptions) {
|
|
32
|
+
return core.HttpResponsePromise.fromPromise(this.__getBillingState(subjectId, requestOptions));
|
|
31
33
|
}
|
|
32
|
-
|
|
34
|
+
__getBillingState(subjectId, requestOptions) {
|
|
33
35
|
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
-
var _a, _b;
|
|
35
|
-
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
36
|
+
var _a, _b, _c;
|
|
37
|
+
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);
|
|
36
38
|
const _response = yield core.fetcher({
|
|
37
|
-
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)),
|
|
39
|
+
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-access/${encodeURIComponent(subjectId)}/billing-state`),
|
|
38
40
|
method: "GET",
|
|
39
41
|
headers: _headers,
|
|
40
42
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -65,7 +67,7 @@ export class FeatureAccess {
|
|
|
65
67
|
rawResponse: _response.rawResponse,
|
|
66
68
|
});
|
|
67
69
|
case "timeout":
|
|
68
|
-
throw new errors.LarkTimeoutError("Timeout exceeded when calling GET /
|
|
70
|
+
throw new errors.LarkTimeoutError("Timeout exceeded when calling GET /customer-access/{subject_id}/billing-state.");
|
|
69
71
|
case "unknown":
|
|
70
72
|
throw new errors.LarkError({
|
|
71
73
|
message: _response.error.errorMessage,
|
|
@@ -74,4 +76,10 @@ export class FeatureAccess {
|
|
|
74
76
|
}
|
|
75
77
|
});
|
|
76
78
|
}
|
|
79
|
+
_getCustomAuthorizationHeaders() {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
82
|
+
return { "X-API-Key": apiKeyValue };
|
|
83
|
+
});
|
|
84
|
+
}
|
|
77
85
|
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 CustomerPortal {
|
|
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 CustomerPortal {
|
|
30
|
+
protected readonly _options: CustomerPortal.Options;
|
|
31
|
+
constructor(_options: CustomerPortal.Options);
|
|
32
|
+
/**
|
|
33
|
+
* @param {Lark.CreateCustomerPortalSessionRequest} request
|
|
34
|
+
* @param {CustomerPortal.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
|
+
*
|
|
36
|
+
* @throws {@link Lark.UnprocessableEntityError}
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* await client.customerPortal.createCustomerPortalSession({
|
|
40
|
+
* subject_id: "subject_id"
|
|
41
|
+
* })
|
|
42
|
+
*/
|
|
43
|
+
createCustomerPortalSession(request: Lark.CreateCustomerPortalSessionRequest, requestOptions?: CustomerPortal.RequestOptions): core.HttpResponsePromise<Lark.CreateCustomerPortalSessionResponse>;
|
|
44
|
+
private __createCustomerPortalSession;
|
|
45
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
46
|
+
"X-API-Key": string;
|
|
47
|
+
}>;
|
|
48
|
+
}
|
|
@@ -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";
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
export * as
|
|
2
|
-
export * from "./
|
|
1
|
+
export * as pricingMetrics from "./pricingMetrics/index.mjs";
|
|
2
|
+
export * from "./pricingMetrics/types/index.mjs";
|
|
3
3
|
export * as checkout from "./checkout/index.mjs";
|
|
4
|
+
export * as customerPortal from "./customerPortal/index.mjs";
|
|
5
|
+
export * as rateCards from "./rateCards/index.mjs";
|
|
4
6
|
export * as usageEvents from "./usageEvents/index.mjs";
|
|
5
7
|
export * as subscriptions from "./subscriptions/index.mjs";
|
|
6
|
-
export * as featureAccess from "./featureAccess/index.mjs";
|
|
7
8
|
export * as subjects from "./subjects/index.mjs";
|
|
8
|
-
export * as
|
|
9
|
-
export * as creditPools from "./creditPools/index.mjs";
|
|
9
|
+
export * as customerAccess from "./customerAccess/index.mjs";
|
|
10
10
|
export * from "./checkout/client/requests/index.mjs";
|
|
11
|
+
export * from "./customerPortal/client/requests/index.mjs";
|
|
11
12
|
export * from "./rateCards/client/requests/index.mjs";
|
|
12
13
|
export * from "./usageEvents/client/requests/index.mjs";
|
|
13
14
|
export * from "./subscriptions/client/requests/index.mjs";
|
|
14
15
|
export * from "./subjects/client/requests/index.mjs";
|
|
16
|
+
export * from "./pricingMetrics/client/requests/index.mjs";
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
export * as
|
|
2
|
-
export * from "./
|
|
1
|
+
export * as pricingMetrics from "./pricingMetrics/index.mjs";
|
|
2
|
+
export * from "./pricingMetrics/types/index.mjs";
|
|
3
3
|
export * as checkout from "./checkout/index.mjs";
|
|
4
|
+
export * as customerPortal from "./customerPortal/index.mjs";
|
|
5
|
+
export * as rateCards from "./rateCards/index.mjs";
|
|
4
6
|
export * as usageEvents from "./usageEvents/index.mjs";
|
|
5
7
|
export * as subscriptions from "./subscriptions/index.mjs";
|
|
6
|
-
export * as featureAccess from "./featureAccess/index.mjs";
|
|
7
8
|
export * as subjects from "./subjects/index.mjs";
|
|
8
|
-
export * as
|
|
9
|
-
export * as creditPools from "./creditPools/index.mjs";
|
|
9
|
+
export * as customerAccess from "./customerAccess/index.mjs";
|
|
10
10
|
export * from "./checkout/client/requests/index.mjs";
|
|
11
|
+
export * from "./customerPortal/client/requests/index.mjs";
|
|
11
12
|
export * from "./rateCards/client/requests/index.mjs";
|
|
12
13
|
export * from "./usageEvents/client/requests/index.mjs";
|
|
13
14
|
export * from "./subscriptions/client/requests/index.mjs";
|
|
14
15
|
export * from "./subjects/client/requests/index.mjs";
|
|
16
|
+
export * from "./pricingMetrics/client/requests/index.mjs";
|
|
@@ -0,0 +1,64 @@
|
|
|
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.CreatePricingMetricRequest} request
|
|
34
|
+
* @param {PricingMetrics.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
|
+
*
|
|
36
|
+
* @throws {@link Lark.UnprocessableEntityError}
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* await client.pricingMetrics.createPricingMetric({
|
|
40
|
+
* name: "name",
|
|
41
|
+
* event_name: "event_name",
|
|
42
|
+
* aggregation: {
|
|
43
|
+
* aggregation_type: "count"
|
|
44
|
+
* },
|
|
45
|
+
* unit: "unit"
|
|
46
|
+
* })
|
|
47
|
+
*/
|
|
48
|
+
createPricingMetric(request: Lark.CreatePricingMetricRequest, requestOptions?: PricingMetrics.RequestOptions): core.HttpResponsePromise<Lark.CreatePricingMetricResponse>;
|
|
49
|
+
private __createPricingMetric;
|
|
50
|
+
/**
|
|
51
|
+
* @param {string} pricingMetricId
|
|
52
|
+
* @param {PricingMetrics.RequestOptions} requestOptions - Request-specific configuration.
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link Lark.UnprocessableEntityError}
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* await client.pricingMetrics.getPricingMetric("pricing_metric_id")
|
|
58
|
+
*/
|
|
59
|
+
getPricingMetric(pricingMetricId: string, requestOptions?: PricingMetrics.RequestOptions): core.HttpResponsePromise<Lark.GetPricingMetricResponse>;
|
|
60
|
+
private __getPricingMetric;
|
|
61
|
+
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
62
|
+
"X-API-Key": string;
|
|
63
|
+
}>;
|
|
64
|
+
}
|