@schematichq/schematic-typescript-node 1.1.4 → 1.1.6
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/Client.d.ts +3 -0
- package/Client.js +10 -5
- package/api/resources/accesstokens/client/Client.js +1 -1
- package/api/resources/accounts/client/Client.d.ts +1 -1
- package/api/resources/accounts/client/Client.js +15 -15
- package/api/resources/accounts/client/requests/CreateEnvironmentRequestBody.d.ts +1 -1
- package/api/resources/billing/client/Client.d.ts +117 -32
- package/api/resources/billing/client/Client.js +667 -83
- package/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +33 -0
- package/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +6 -1
- package/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +12 -2
- package/api/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +29 -0
- package/api/resources/billing/client/requests/CreateMeterRequestBody.d.ts +18 -0
- package/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +26 -0
- package/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +13 -0
- package/{dist/api/resources/events/client/requests/ListMetricCountsRequest.d.ts → api/resources/billing/client/requests/ListInvoicesRequest.d.ts} +6 -9
- package/api/resources/billing/client/requests/ListMetersRequest.d.ts +18 -0
- package/api/resources/{events/client/requests/ListMetricCountsRequest.d.ts → billing/client/requests/ListPaymentMethodsRequest.d.ts} +6 -9
- package/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +13 -0
- package/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +20 -0
- package/api/resources/billing/client/requests/index.d.ts +8 -3
- package/api/resources/billing/types/CountBillingProductsParams.d.ts +22 -0
- package/api/resources/billing/types/CountBillingProductsResponse.d.ts +9 -0
- package/api/resources/{components/types/HydrateComponentResponse.d.ts → billing/types/DeleteProductPriceResponse.d.ts} +2 -2
- package/api/resources/billing/types/ListBillingProductsParams.d.ts +7 -0
- package/api/resources/{events/types/ListMetricCountsParams.d.ts → billing/types/ListInvoicesParams.d.ts} +3 -8
- package/api/resources/{plans/types/ListActivePlansResponse.d.ts → billing/types/ListInvoicesResponse.d.ts} +3 -3
- package/api/resources/billing/types/ListMetersParams.d.ts +13 -0
- package/{dist/api/resources/plans/types/ListActivePlansResponse.d.ts → api/resources/billing/types/ListMetersResponse.d.ts} +3 -3
- package/{dist/api/resources/events/types/ListMetricCountsParams.d.ts → api/resources/billing/types/ListPaymentMethodsParams.d.ts} +3 -8
- package/api/resources/{events/types/ListMetricCountsResponse.d.ts → billing/types/ListPaymentMethodsResponse.d.ts} +3 -3
- package/api/resources/billing/types/ListProductPricesParams.d.ts +7 -0
- package/api/resources/billing/types/SearchBillingPricesParams.d.ts +15 -0
- package/{dist/api/resources/events/types/ListMetricCountsResponse.d.ts → api/resources/billing/types/SearchBillingPricesResponse.d.ts} +3 -3
- package/{dist/api/resources/components/types/HydrateComponentResponse.d.ts → api/resources/billing/types/UpsertBillingMeterResponse.d.ts} +2 -2
- package/api/resources/billing/types/{UpdateBillingPlanGroupResponse.d.ts → UpsertInvoiceResponse.d.ts} +2 -2
- package/api/resources/billing/types/{CreateBillingPlanGroupResponse.d.ts → UpsertPaymentMethodResponse.d.ts} +2 -2
- package/api/resources/billing/types/index.d.ts +14 -4
- package/api/resources/billing/types/index.js +14 -4
- package/api/resources/companies/client/Client.d.ts +5 -7
- package/api/resources/companies/client/Client.js +64 -50
- package/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +11 -1
- package/api/resources/companies/client/requests/CountEntityTraitDefinitionsRequest.d.ts +1 -1
- package/api/resources/companies/client/requests/CountUsersRequest.d.ts +10 -1
- package/api/resources/companies/client/requests/CreateEntityTraitDefinitionRequestBody.d.ts +2 -2
- package/api/resources/companies/client/requests/GetActiveCompanySubscriptionRequest.d.ts +3 -4
- package/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +11 -1
- package/api/resources/companies/client/requests/ListEntityTraitDefinitionsRequest.d.ts +1 -1
- package/api/resources/companies/client/requests/ListUsersRequest.d.ts +10 -1
- package/api/resources/companies/client/requests/UpdateEntityTraitDefinitionRequestBody.d.ts +1 -1
- package/api/resources/companies/types/CountCompaniesParams.d.ts +5 -1
- package/api/resources/companies/types/CountUsersParams.d.ts +4 -1
- package/api/resources/companies/types/GetActiveCompanySubscriptionParams.d.ts +1 -0
- package/api/resources/companies/types/ListCompaniesParams.d.ts +5 -1
- package/api/resources/companies/types/ListUsersParams.d.ts +4 -1
- package/api/resources/components/client/Client.d.ts +9 -9
- package/api/resources/components/client/Client.js +49 -40
- package/api/resources/components/client/requests/CreateComponentRequestBody.d.ts +1 -1
- package/api/resources/components/client/requests/PreviewComponentDataRequest.d.ts +11 -0
- package/api/resources/components/client/requests/index.d.ts +1 -0
- package/api/resources/components/types/PreviewComponentDataParams.d.ts +10 -0
- package/api/resources/{billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts → components/types/PreviewComponentDataResponse.d.ts} +3 -3
- package/api/resources/components/types/index.d.ts +2 -1
- package/api/resources/components/types/index.js +2 -1
- package/api/resources/crm/client/Client.js +5 -5
- package/api/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
- package/api/resources/entitlements/client/Client.d.ts +4 -4
- package/api/resources/entitlements/client/Client.js +39 -27
- package/api/resources/entitlements/client/requests/CountCompanyOverridesRequest.d.ts +18 -0
- package/api/resources/entitlements/client/requests/CountFeatureUsageRequest.d.ts +2 -1
- package/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +22 -0
- package/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +4 -1
- package/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +5 -1
- package/api/resources/entitlements/client/requests/ListCompanyOverridesRequest.d.ts +18 -0
- package/api/resources/entitlements/client/requests/ListFeatureUsageRequest.d.ts +2 -1
- package/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +22 -0
- package/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +4 -1
- package/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -1
- package/api/resources/entitlements/types/CountCompanyOverridesParams.d.ts +6 -0
- package/api/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
- package/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +8 -0
- package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +3 -1
- package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +2 -0
- package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
- package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
- package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +3 -1
- package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +2 -0
- package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
- package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
- package/api/resources/entitlements/types/ListCompanyOverridesParams.d.ts +6 -0
- package/api/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
- package/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +8 -0
- package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +3 -1
- package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +2 -0
- package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
- package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
- package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +3 -1
- package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +2 -0
- package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
- package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
- package/api/resources/entitlements/types/index.d.ts +4 -0
- package/api/resources/entitlements/types/index.js +4 -0
- package/api/resources/events/client/Client.d.ts +2 -15
- package/api/resources/events/client/Client.js +9 -142
- package/api/resources/events/client/requests/CreateEventBatchRequestBody.d.ts +1 -1
- package/api/resources/events/client/requests/index.d.ts +0 -1
- package/api/resources/events/types/index.d.ts +0 -2
- package/api/resources/events/types/index.js +0 -2
- package/api/resources/features/client/Client.d.ts +21 -21
- package/api/resources/features/client/Client.js +40 -40
- package/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +1 -1
- package/api/resources/features/client/requests/UpdateFlagRulesRequestBody.d.ts +4 -4
- package/api/resources/index.d.ts +3 -0
- package/api/resources/index.js +4 -1
- package/api/resources/plangroups/client/Client.d.ts +74 -0
- package/api/resources/plangroups/client/Client.js +346 -0
- package/api/resources/plangroups/client/index.d.ts +1 -0
- package/api/resources/plangroups/client/index.js +17 -0
- package/{dist/api/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts → api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts} +5 -1
- package/api/resources/{billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts → plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts} +5 -1
- package/api/resources/plangroups/client/requests/index.d.ts +2 -0
- package/api/resources/plangroups/client/requests/index.js +2 -0
- package/api/resources/plangroups/index.d.ts +2 -0
- package/api/resources/plangroups/index.js +18 -0
- package/api/resources/plangroups/types/CreatePlanGroupResponse.d.ts +9 -0
- package/api/resources/plangroups/types/GetPlanGroupResponse.d.ts +9 -0
- package/api/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +9 -0
- package/api/resources/plangroups/types/index.d.ts +3 -0
- package/api/resources/plangroups/types/index.js +19 -0
- package/api/resources/plans/client/Client.d.ts +7 -18
- package/api/resources/plans/client/Client.js +37 -113
- package/api/resources/plans/client/requests/CountPlansRequest.d.ts +9 -1
- package/api/resources/plans/client/requests/CreatePlanRequestBody.d.ts +1 -1
- package/api/resources/plans/client/requests/ListPlansRequest.d.ts +9 -1
- package/api/resources/plans/client/requests/UpdateAudienceRequestBody.d.ts +4 -4
- package/api/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +6 -2
- package/api/resources/plans/types/CountPlansParams.d.ts +4 -0
- package/api/resources/plans/types/ListPlansParams.d.ts +4 -0
- package/api/resources/plans/types/index.d.ts +0 -1
- package/api/resources/plans/types/index.js +0 -1
- package/api/resources/webhooks/client/Client.d.ts +1 -1
- package/api/resources/webhooks/client/Client.js +18 -18
- package/api/resources/webhooks/client/requests/CountWebhookEventsRequest.d.ts +1 -1
- package/api/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +1 -1
- package/api/resources/webhooks/client/requests/ListWebhookEventsRequest.d.ts +1 -1
- package/api/types/BillingCustomerSubscription.d.ts +4 -0
- package/api/types/BillingMeterResponseData.d.ts +10 -0
- package/api/types/BillingPriceResponseData.d.ts +1 -0
- package/api/types/BillingPriceView.d.ts +18 -0
- package/api/types/BillingProductDetailResponseData.d.ts +1 -1
- package/api/types/BillingProductForSubscriptionResponseData.d.ts +5 -2
- package/api/types/BillingProductPlanResponseData.d.ts +2 -0
- package/api/types/BillingProductPriceResponseData.d.ts +15 -0
- package/api/types/BillingProductPricing.d.ts +6 -2
- package/api/types/BillingSubscriptionResponseData.d.ts +13 -6
- package/api/types/BillingSubscriptionView.d.ts +23 -0
- package/api/types/CheckFlagRequestBody.d.ts +2 -2
- package/api/types/CompanyDetailResponseData.d.ts +5 -3
- package/api/types/CompanyOverrideResponseData.d.ts +3 -1
- package/api/types/CompanyPlanDetailResponseData.d.ts +26 -0
- package/api/types/{BillingPlan.d.ts → CompanyPlanWithBillingSubView.d.ts} +2 -1
- package/api/types/CompanySubscriptionResponseData.d.ts +5 -0
- package/api/types/ComponentCapabilities.d.ts +6 -0
- package/api/types/ComponentCapabilities.js +5 -0
- package/api/types/ComponentHydrateResponseData.d.ts +6 -3
- package/api/types/ComponentPreviewResponseData.d.ts +19 -0
- package/api/types/ComponentPreviewResponseData.js +5 -0
- package/api/types/ComponentResponseData.d.ts +3 -0
- package/api/types/CreateEntitlementReqCommon.d.ts +14 -0
- package/api/types/CreateEntitlementReqCommon.js +5 -0
- package/api/types/CreateEntitlementReqCommonMetricPeriod.d.ts +11 -0
- package/api/types/{UpdateReqCommonMetricPeriod.js → CreateEntitlementReqCommonMetricPeriod.js} +4 -2
- package/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
- package/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
- package/api/types/{UpdateReqCommonValueType.d.ts → CreateEntitlementReqCommonValueType.d.ts} +2 -2
- package/{dist/api/types/CreateReqCommonValueType.js → api/types/CreateEntitlementReqCommonValueType.js} +2 -2
- package/api/types/CreateOrUpdateConditionRequestBody.d.ts +2 -0
- package/api/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +2 -1
- package/api/types/CreateOrUpdateConditionRequestBodyConditionType.js +1 -0
- package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +3 -1
- package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +2 -0
- package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +11 -0
- package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +10 -0
- package/api/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +3 -1
- package/api/types/CreateOrUpdateConditionRequestBodyOperator.js +2 -0
- package/api/types/EventBodyFlagCheck.d.ts +2 -2
- package/api/types/FeatureCompanyResponseData.d.ts +2 -0
- package/api/types/FeatureCompanyUserResponseData.d.ts +2 -0
- package/api/types/FeatureUsageResponseData.d.ts +2 -0
- package/{dist/api/types/RuleConditionResourceResponseData.d.ts → api/types/GenericPreviewObject.d.ts} +3 -1
- package/api/types/GenericPreviewObject.js +5 -0
- package/api/types/InvoiceRequestBody.d.ts +16 -0
- package/api/types/InvoiceRequestBody.js +5 -0
- package/api/types/InvoiceResponseData.d.ts +22 -0
- package/api/types/InvoiceResponseData.js +5 -0
- package/api/types/MeterRequestBody.d.ts +8 -0
- package/api/types/MeterRequestBody.js +5 -0
- package/api/types/PaymentMethodRequestBody.d.ts +17 -0
- package/api/types/PaymentMethodRequestBody.js +5 -0
- package/api/types/PaymentMethodResponseData.d.ts +23 -0
- package/api/types/PaymentMethodResponseData.js +5 -0
- package/api/types/PlanDetailResponseData.d.ts +7 -3
- package/api/types/PlanEntitlementResponseData.d.ts +3 -3
- package/api/types/PlanGroupDetailResponseData.d.ts +16 -0
- package/api/types/PlanGroupDetailResponseData.js +5 -0
- package/api/types/PlanGroupPlanDetailResponseData.d.ts +24 -0
- package/api/types/PlanGroupPlanDetailResponseData.js +5 -0
- package/api/types/{BillingPlanGroupResponseData.d.ts → PlanGroupResponseData.d.ts} +4 -1
- package/api/types/PlanGroupResponseData.js +5 -0
- package/api/types/PlanResponseData.d.ts +1 -0
- package/api/types/PreviewObjectResponseData.d.ts +9 -0
- package/api/types/PreviewObjectResponseData.js +5 -0
- package/api/types/RuleConditionDetailResponseData.d.ts +2 -1
- package/api/types/RuleConditionResponseData.d.ts +1 -0
- package/api/types/StripeEmbedInfo.d.ts +7 -0
- package/api/types/StripeEmbedInfo.js +5 -0
- package/api/types/UpdateEntitlementReqCommon.d.ts +13 -0
- package/api/types/UpdateEntitlementReqCommon.js +5 -0
- package/api/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +11 -0
- package/api/types/{CreateReqCommonMetricPeriod.js → UpdateEntitlementReqCommonMetricPeriod.js} +4 -2
- package/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
- package/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
- package/{dist/api/types/CreateReqCommonValueType.d.ts → api/types/UpdateEntitlementReqCommonValueType.d.ts} +2 -2
- package/{dist/api/types/UpdateReqCommonValueType.js → api/types/UpdateEntitlementReqCommonValueType.js} +2 -2
- package/api/types/index.d.ts +28 -10
- package/api/types/index.js +28 -10
- package/core/fetcher/Fetcher.d.ts +1 -1
- package/core/fetcher/getResponseBody.js +3 -0
- package/core/fetcher/requestWithRetries.js +13 -4
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +8 -8
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +23 -2
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +2 -1
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +16 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +2 -1
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +23 -2
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +1 -1
- package/core/schemas/Schema.d.ts +1 -0
- package/core/schemas/Schema.js +1 -0
- package/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/core/schemas/builders/bigint/bigint.js +50 -0
- package/core/schemas/builders/bigint/index.d.ts +1 -0
- package/core/schemas/builders/bigint/index.js +5 -0
- package/core/schemas/builders/index.d.ts +1 -0
- package/core/schemas/builders/index.js +1 -0
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +10 -5
- package/dist/api/resources/accesstokens/client/Client.js +1 -1
- package/dist/api/resources/accounts/client/Client.d.ts +1 -1
- package/dist/api/resources/accounts/client/Client.js +15 -15
- package/dist/api/resources/accounts/client/requests/CreateEnvironmentRequestBody.d.ts +1 -1
- package/dist/api/resources/billing/client/Client.d.ts +117 -32
- package/dist/api/resources/billing/client/Client.js +667 -83
- package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +33 -0
- package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.js +5 -0
- package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +6 -1
- package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +12 -2
- package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +29 -0
- package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.js +5 -0
- package/dist/api/resources/billing/client/requests/CreateMeterRequestBody.d.ts +18 -0
- package/dist/api/resources/billing/client/requests/CreateMeterRequestBody.js +5 -0
- package/dist/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +26 -0
- package/dist/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +5 -0
- package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +13 -0
- package/dist/api/resources/billing/client/requests/ListInvoicesRequest.d.ts +22 -0
- package/dist/api/resources/billing/client/requests/ListInvoicesRequest.js +5 -0
- package/dist/api/resources/billing/client/requests/ListMetersRequest.d.ts +18 -0
- package/dist/api/resources/billing/client/requests/ListMetersRequest.js +5 -0
- package/dist/api/resources/billing/client/requests/ListPaymentMethodsRequest.d.ts +22 -0
- package/dist/api/resources/billing/client/requests/ListPaymentMethodsRequest.js +5 -0
- package/dist/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +13 -0
- package/dist/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +20 -0
- package/dist/api/resources/billing/client/requests/SearchBillingPricesRequest.js +5 -0
- package/dist/api/resources/billing/client/requests/index.d.ts +8 -3
- package/dist/api/resources/billing/types/CountBillingProductsParams.d.ts +22 -0
- package/dist/api/resources/billing/types/CountBillingProductsParams.js +5 -0
- package/dist/api/resources/billing/types/CountBillingProductsResponse.d.ts +9 -0
- package/dist/api/resources/billing/types/CountBillingProductsResponse.js +5 -0
- package/dist/api/resources/billing/types/DeleteProductPriceResponse.d.ts +9 -0
- package/dist/api/resources/billing/types/DeleteProductPriceResponse.js +5 -0
- package/dist/api/resources/billing/types/ListBillingProductsParams.d.ts +7 -0
- package/dist/api/resources/billing/types/ListInvoicesParams.d.ts +15 -0
- package/dist/api/resources/billing/types/ListInvoicesParams.js +5 -0
- package/dist/api/resources/billing/types/ListInvoicesResponse.d.ts +10 -0
- package/dist/api/resources/billing/types/ListInvoicesResponse.js +5 -0
- package/dist/api/resources/billing/types/ListMetersParams.d.ts +13 -0
- package/dist/api/resources/billing/types/ListMetersParams.js +5 -0
- package/dist/api/resources/billing/types/ListMetersResponse.d.ts +10 -0
- package/dist/api/resources/billing/types/ListMetersResponse.js +5 -0
- package/dist/api/resources/billing/types/ListPaymentMethodsParams.d.ts +15 -0
- package/dist/api/resources/billing/types/ListPaymentMethodsParams.js +5 -0
- package/dist/api/resources/billing/types/ListPaymentMethodsResponse.d.ts +10 -0
- package/dist/api/resources/billing/types/ListPaymentMethodsResponse.js +5 -0
- package/dist/api/resources/billing/types/ListProductPricesParams.d.ts +7 -0
- package/dist/api/resources/billing/types/SearchBillingPricesParams.d.ts +15 -0
- package/dist/api/resources/billing/types/SearchBillingPricesParams.js +5 -0
- package/dist/api/resources/billing/types/SearchBillingPricesResponse.d.ts +10 -0
- package/dist/api/resources/billing/types/SearchBillingPricesResponse.js +5 -0
- package/dist/api/resources/billing/types/UpsertBillingMeterResponse.d.ts +9 -0
- package/dist/api/resources/billing/types/UpsertBillingMeterResponse.js +5 -0
- package/dist/api/resources/billing/types/UpsertInvoiceResponse.d.ts +9 -0
- package/dist/api/resources/billing/types/UpsertInvoiceResponse.js +5 -0
- package/dist/api/resources/billing/types/UpsertPaymentMethodResponse.d.ts +9 -0
- package/dist/api/resources/billing/types/UpsertPaymentMethodResponse.js +5 -0
- package/dist/api/resources/billing/types/index.d.ts +14 -4
- package/dist/api/resources/billing/types/index.js +14 -4
- package/dist/api/resources/companies/client/Client.d.ts +5 -7
- package/dist/api/resources/companies/client/Client.js +64 -50
- package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +11 -1
- package/dist/api/resources/companies/client/requests/CountEntityTraitDefinitionsRequest.d.ts +1 -1
- package/dist/api/resources/companies/client/requests/CountUsersRequest.d.ts +10 -1
- package/dist/api/resources/companies/client/requests/CreateEntityTraitDefinitionRequestBody.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/GetActiveCompanySubscriptionRequest.d.ts +3 -4
- package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +11 -1
- package/dist/api/resources/companies/client/requests/ListEntityTraitDefinitionsRequest.d.ts +1 -1
- package/dist/api/resources/companies/client/requests/ListUsersRequest.d.ts +10 -1
- package/dist/api/resources/companies/client/requests/UpdateEntityTraitDefinitionRequestBody.d.ts +1 -1
- package/dist/api/resources/companies/types/CountCompaniesParams.d.ts +5 -1
- package/dist/api/resources/companies/types/CountUsersParams.d.ts +4 -1
- package/dist/api/resources/companies/types/GetActiveCompanySubscriptionParams.d.ts +1 -0
- package/dist/api/resources/companies/types/ListCompaniesParams.d.ts +5 -1
- package/dist/api/resources/companies/types/ListUsersParams.d.ts +4 -1
- package/dist/api/resources/components/client/Client.d.ts +9 -9
- package/dist/api/resources/components/client/Client.js +49 -40
- package/dist/api/resources/components/client/requests/CreateComponentRequestBody.d.ts +1 -1
- package/dist/api/resources/components/client/requests/PreviewComponentDataRequest.d.ts +11 -0
- package/dist/api/resources/components/client/requests/PreviewComponentDataRequest.js +5 -0
- package/dist/api/resources/components/client/requests/index.d.ts +1 -0
- package/dist/api/resources/components/types/PreviewComponentDataParams.d.ts +10 -0
- package/dist/api/resources/components/types/PreviewComponentDataParams.js +5 -0
- package/{api/resources/billing/types/ChangeSubscriptionWebResponse.d.ts → dist/api/resources/components/types/PreviewComponentDataResponse.d.ts} +3 -3
- package/dist/api/resources/components/types/PreviewComponentDataResponse.js +5 -0
- package/dist/api/resources/components/types/index.d.ts +2 -1
- package/dist/api/resources/components/types/index.js +2 -1
- package/dist/api/resources/crm/client/Client.js +5 -5
- package/dist/api/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
- package/dist/api/resources/entitlements/client/Client.d.ts +4 -4
- package/dist/api/resources/entitlements/client/Client.js +39 -27
- package/dist/api/resources/entitlements/client/requests/CountCompanyOverridesRequest.d.ts +18 -0
- package/dist/api/resources/entitlements/client/requests/CountFeatureUsageRequest.d.ts +2 -1
- package/dist/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +22 -0
- package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +4 -1
- package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +5 -1
- package/dist/api/resources/entitlements/client/requests/ListCompanyOverridesRequest.d.ts +18 -0
- package/dist/api/resources/entitlements/client/requests/ListFeatureUsageRequest.d.ts +2 -1
- package/dist/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +22 -0
- package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +4 -1
- package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -1
- package/dist/api/resources/entitlements/types/CountCompanyOverridesParams.d.ts +6 -0
- package/dist/api/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
- package/dist/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +8 -0
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +3 -1
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +2 -0
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +3 -1
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +2 -0
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
- package/dist/api/resources/entitlements/types/ListCompanyOverridesParams.d.ts +6 -0
- package/dist/api/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
- package/dist/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +8 -0
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +3 -1
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +2 -0
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +8 -0
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +10 -0
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +3 -1
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +2 -0
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +8 -0
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +10 -0
- package/dist/api/resources/entitlements/types/index.d.ts +4 -0
- package/dist/api/resources/entitlements/types/index.js +4 -0
- package/dist/api/resources/events/client/Client.d.ts +2 -15
- package/dist/api/resources/events/client/Client.js +9 -142
- package/dist/api/resources/events/client/requests/CreateEventBatchRequestBody.d.ts +1 -1
- package/dist/api/resources/events/client/requests/index.d.ts +0 -1
- package/dist/api/resources/events/types/index.d.ts +0 -2
- package/dist/api/resources/events/types/index.js +0 -2
- package/dist/api/resources/features/client/Client.d.ts +21 -21
- package/dist/api/resources/features/client/Client.js +40 -40
- package/dist/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +1 -1
- package/dist/api/resources/features/client/requests/UpdateFlagRulesRequestBody.d.ts +4 -4
- package/dist/api/resources/index.d.ts +3 -0
- package/dist/api/resources/index.js +4 -1
- package/dist/api/resources/plangroups/client/Client.d.ts +74 -0
- package/dist/api/resources/plangroups/client/Client.js +346 -0
- package/dist/api/resources/plangroups/client/index.d.ts +1 -0
- package/dist/api/resources/plangroups/client/index.js +17 -0
- package/{api/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts → dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts} +5 -1
- package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +5 -0
- package/dist/api/resources/{billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts → plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts} +5 -1
- package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +5 -0
- package/dist/api/resources/plangroups/client/requests/index.d.ts +2 -0
- package/dist/api/resources/plangroups/client/requests/index.js +2 -0
- package/dist/api/resources/plangroups/index.d.ts +2 -0
- package/dist/api/resources/plangroups/index.js +18 -0
- package/dist/api/resources/plangroups/types/CreatePlanGroupResponse.d.ts +9 -0
- package/dist/api/resources/plangroups/types/CreatePlanGroupResponse.js +5 -0
- package/dist/api/resources/plangroups/types/GetPlanGroupResponse.d.ts +9 -0
- package/dist/api/resources/plangroups/types/GetPlanGroupResponse.js +5 -0
- package/dist/api/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +9 -0
- package/dist/api/resources/plangroups/types/UpdatePlanGroupResponse.js +5 -0
- package/dist/api/resources/plangroups/types/index.d.ts +3 -0
- package/dist/api/resources/plangroups/types/index.js +19 -0
- package/dist/api/resources/plans/client/Client.d.ts +7 -18
- package/dist/api/resources/plans/client/Client.js +37 -113
- package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +9 -1
- package/dist/api/resources/plans/client/requests/CreatePlanRequestBody.d.ts +1 -1
- package/dist/api/resources/plans/client/requests/ListPlansRequest.d.ts +9 -1
- package/dist/api/resources/plans/client/requests/UpdateAudienceRequestBody.d.ts +4 -4
- package/dist/api/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +6 -2
- package/dist/api/resources/plans/types/CountPlansParams.d.ts +4 -0
- package/dist/api/resources/plans/types/ListPlansParams.d.ts +4 -0
- package/dist/api/resources/plans/types/index.d.ts +0 -1
- package/dist/api/resources/plans/types/index.js +0 -1
- package/dist/api/resources/webhooks/client/Client.d.ts +1 -1
- package/dist/api/resources/webhooks/client/Client.js +18 -18
- package/dist/api/resources/webhooks/client/requests/CountWebhookEventsRequest.d.ts +1 -1
- package/dist/api/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +1 -1
- package/dist/api/resources/webhooks/client/requests/ListWebhookEventsRequest.d.ts +1 -1
- package/dist/api/types/BillingCustomerSubscription.d.ts +4 -0
- package/dist/api/types/BillingMeterResponseData.d.ts +10 -0
- package/dist/api/types/BillingMeterResponseData.js +5 -0
- package/dist/api/types/BillingPriceResponseData.d.ts +1 -0
- package/dist/api/types/BillingPriceView.d.ts +18 -0
- package/dist/api/types/BillingPriceView.js +5 -0
- package/dist/api/types/BillingProductDetailResponseData.d.ts +1 -1
- package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +5 -2
- package/dist/api/types/BillingProductPlanResponseData.d.ts +2 -0
- package/dist/api/types/BillingProductPriceResponseData.d.ts +15 -0
- package/dist/api/types/BillingProductPriceResponseData.js +5 -0
- package/dist/api/types/BillingProductPricing.d.ts +6 -2
- package/dist/api/types/BillingSubscriptionResponseData.d.ts +13 -6
- package/dist/api/types/BillingSubscriptionView.d.ts +23 -0
- package/dist/api/types/BillingSubscriptionView.js +5 -0
- package/dist/api/types/CheckFlagRequestBody.d.ts +2 -2
- package/dist/api/types/CompanyDetailResponseData.d.ts +5 -3
- package/dist/api/types/CompanyOverrideResponseData.d.ts +3 -1
- package/dist/api/types/CompanyPlanDetailResponseData.d.ts +26 -0
- package/dist/api/types/CompanyPlanDetailResponseData.js +5 -0
- package/dist/api/types/{BillingPlan.d.ts → CompanyPlanWithBillingSubView.d.ts} +2 -1
- package/dist/api/types/CompanyPlanWithBillingSubView.js +5 -0
- package/dist/api/types/CompanySubscriptionResponseData.d.ts +5 -0
- package/dist/api/types/ComponentCapabilities.d.ts +6 -0
- package/dist/api/types/ComponentCapabilities.js +5 -0
- package/dist/api/types/ComponentHydrateResponseData.d.ts +6 -3
- package/dist/api/types/ComponentPreviewResponseData.d.ts +19 -0
- package/dist/api/types/ComponentPreviewResponseData.js +5 -0
- package/dist/api/types/ComponentResponseData.d.ts +3 -0
- package/dist/api/types/CreateEntitlementReqCommon.d.ts +14 -0
- package/dist/api/types/CreateEntitlementReqCommon.js +5 -0
- package/dist/api/types/CreateEntitlementReqCommonMetricPeriod.d.ts +11 -0
- package/dist/api/types/{CreateReqCommonMetricPeriod.js → CreateEntitlementReqCommonMetricPeriod.js} +4 -2
- package/dist/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
- package/dist/api/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
- package/{api/types/CreateReqCommonValueType.d.ts → dist/api/types/CreateEntitlementReqCommonValueType.d.ts} +2 -2
- package/{api/types/UpdateReqCommonValueType.js → dist/api/types/CreateEntitlementReqCommonValueType.js} +2 -2
- package/dist/api/types/CreateOrUpdateConditionRequestBody.d.ts +2 -0
- package/dist/api/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +2 -1
- package/dist/api/types/CreateOrUpdateConditionRequestBodyConditionType.js +1 -0
- package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +3 -1
- package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +2 -0
- package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +11 -0
- package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +10 -0
- package/dist/api/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +3 -1
- package/dist/api/types/CreateOrUpdateConditionRequestBodyOperator.js +2 -0
- package/dist/api/types/EventBodyFlagCheck.d.ts +2 -2
- package/dist/api/types/FeatureCompanyResponseData.d.ts +2 -0
- package/dist/api/types/FeatureCompanyUserResponseData.d.ts +2 -0
- package/dist/api/types/FeatureUsageResponseData.d.ts +2 -0
- package/{api/types/RuleConditionResourceResponseData.d.ts → dist/api/types/GenericPreviewObject.d.ts} +3 -1
- package/dist/api/types/GenericPreviewObject.js +5 -0
- package/dist/api/types/InvoiceRequestBody.d.ts +16 -0
- package/dist/api/types/InvoiceRequestBody.js +5 -0
- package/dist/api/types/InvoiceResponseData.d.ts +22 -0
- package/dist/api/types/InvoiceResponseData.js +5 -0
- package/dist/api/types/MeterRequestBody.d.ts +8 -0
- package/dist/api/types/MeterRequestBody.js +5 -0
- package/dist/api/types/PaymentMethodRequestBody.d.ts +17 -0
- package/dist/api/types/PaymentMethodRequestBody.js +5 -0
- package/dist/api/types/PaymentMethodResponseData.d.ts +23 -0
- package/dist/api/types/PaymentMethodResponseData.js +5 -0
- package/dist/api/types/PlanDetailResponseData.d.ts +7 -3
- package/dist/api/types/PlanEntitlementResponseData.d.ts +3 -3
- package/dist/api/types/PlanGroupDetailResponseData.d.ts +16 -0
- package/dist/api/types/PlanGroupDetailResponseData.js +5 -0
- package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +24 -0
- package/dist/api/types/PlanGroupPlanDetailResponseData.js +5 -0
- package/dist/api/types/{BillingPlanGroupResponseData.d.ts → PlanGroupResponseData.d.ts} +4 -1
- package/dist/api/types/PlanGroupResponseData.js +5 -0
- package/dist/api/types/PlanResponseData.d.ts +1 -0
- package/dist/api/types/PreviewObjectResponseData.d.ts +9 -0
- package/dist/api/types/PreviewObjectResponseData.js +5 -0
- package/dist/api/types/RuleConditionDetailResponseData.d.ts +2 -1
- package/dist/api/types/RuleConditionResponseData.d.ts +1 -0
- package/dist/api/types/StripeEmbedInfo.d.ts +7 -0
- package/dist/api/types/StripeEmbedInfo.js +5 -0
- package/dist/api/types/UpdateEntitlementReqCommon.d.ts +13 -0
- package/dist/api/types/UpdateEntitlementReqCommon.js +5 -0
- package/dist/api/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +11 -0
- package/dist/api/types/{UpdateReqCommonMetricPeriod.js → UpdateEntitlementReqCommonMetricPeriod.js} +4 -2
- package/dist/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +8 -0
- package/dist/api/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +10 -0
- package/dist/api/types/{UpdateReqCommonValueType.d.ts → UpdateEntitlementReqCommonValueType.d.ts} +2 -2
- package/{api/types/CreateReqCommonValueType.js → dist/api/types/UpdateEntitlementReqCommonValueType.js} +2 -2
- package/dist/api/types/index.d.ts +28 -10
- package/dist/api/types/index.js +28 -10
- package/dist/core/fetcher/Fetcher.d.ts +1 -1
- package/dist/core/fetcher/getResponseBody.js +3 -0
- package/dist/core/fetcher/requestWithRetries.js +13 -4
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +8 -8
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +23 -2
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +2 -1
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +16 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +2 -1
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +23 -2
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +1 -1
- package/dist/core/schemas/Schema.d.ts +1 -0
- package/dist/core/schemas/Schema.js +1 -0
- package/dist/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/dist/core/schemas/builders/bigint/bigint.js +50 -0
- package/dist/core/schemas/builders/bigint/index.d.ts +1 -0
- package/dist/core/schemas/builders/bigint/index.js +5 -0
- package/dist/core/schemas/builders/index.d.ts +1 -0
- package/dist/core/schemas/builders/index.js +1 -0
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +3 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +3 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +4 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +4 -0
- package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +23 -0
- package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.js +44 -0
- package/dist/serialization/resources/billing/client/requests/CreateMeterRequestBody.d.ts +15 -0
- package/dist/serialization/resources/billing/client/requests/{ChangeSubscriptionRequestBody.js → CreateMeterRequestBody.js} +6 -5
- package/dist/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +24 -0
- package/dist/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +45 -0
- package/dist/serialization/resources/billing/client/requests/index.d.ts +3 -3
- package/dist/serialization/resources/billing/client/requests/index.js +7 -7
- package/dist/serialization/resources/billing/types/CountBillingProductsParams.d.ts +20 -0
- package/dist/serialization/resources/{events/types/ListMetricCountsParams.js → billing/types/CountBillingProductsParams.js} +9 -10
- package/dist/serialization/resources/billing/types/CountBillingProductsResponse.d.ts +15 -0
- package/dist/serialization/resources/billing/types/CountBillingProductsResponse.js +36 -0
- package/dist/serialization/resources/billing/types/DeleteProductPriceResponse.d.ts +14 -0
- package/{serialization/resources/plans/types/ListActivePlansResponse.js → dist/serialization/resources/billing/types/DeleteProductPriceResponse.js} +4 -4
- package/dist/serialization/resources/billing/types/ListBillingProductsParams.d.ts +4 -0
- package/dist/serialization/resources/billing/types/ListBillingProductsParams.js +4 -0
- package/dist/serialization/resources/billing/types/ListInvoicesParams.d.ts +16 -0
- package/dist/serialization/resources/billing/types/ListInvoicesParams.js +37 -0
- package/dist/serialization/resources/billing/types/ListInvoicesResponse.d.ts +15 -0
- package/dist/serialization/resources/billing/types/ListInvoicesResponse.js +36 -0
- package/dist/serialization/resources/billing/types/ListMetersParams.d.ts +14 -0
- package/dist/serialization/resources/billing/types/ListMetersParams.js +35 -0
- package/dist/serialization/resources/billing/types/ListMetersResponse.d.ts +15 -0
- package/dist/serialization/resources/billing/types/ListMetersResponse.js +36 -0
- package/dist/serialization/resources/billing/types/ListPaymentMethodsParams.d.ts +16 -0
- package/dist/serialization/resources/billing/types/ListPaymentMethodsParams.js +37 -0
- package/dist/serialization/resources/billing/types/ListPaymentMethodsResponse.d.ts +15 -0
- package/dist/serialization/resources/billing/types/{ChangeSubscriptionWebResponse.js → ListPaymentMethodsResponse.js} +6 -5
- package/dist/serialization/resources/billing/types/ListProductPricesParams.d.ts +4 -0
- package/dist/serialization/resources/billing/types/ListProductPricesParams.js +4 -0
- package/dist/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +16 -0
- package/dist/serialization/resources/billing/types/SearchBillingPricesParams.js +37 -0
- package/dist/serialization/resources/billing/types/SearchBillingPricesResponse.d.ts +15 -0
- package/dist/serialization/resources/billing/types/{CreateBillingPlanGroupResponse.js → SearchBillingPricesResponse.js} +6 -5
- package/dist/serialization/resources/billing/types/UpsertBillingMeterResponse.d.ts +14 -0
- package/dist/serialization/resources/{plans/types/ListActivePlansResponse.js → billing/types/UpsertBillingMeterResponse.js} +4 -4
- package/dist/serialization/resources/billing/types/UpsertInvoiceResponse.d.ts +14 -0
- package/{serialization/resources/components/types/HydrateComponentResponse.js → dist/serialization/resources/billing/types/UpsertInvoiceResponse.js} +4 -4
- package/dist/serialization/resources/billing/types/UpsertPaymentMethodResponse.d.ts +14 -0
- package/dist/serialization/resources/{components/types/HydrateComponentResponse.js → billing/types/UpsertPaymentMethodResponse.js} +4 -4
- package/dist/serialization/resources/billing/types/index.d.ts +14 -4
- package/dist/serialization/resources/billing/types/index.js +14 -4
- package/dist/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
- package/dist/serialization/resources/companies/types/CountCompaniesParams.js +1 -0
- package/dist/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.d.ts +1 -0
- package/dist/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.js +1 -0
- package/dist/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
- package/dist/serialization/resources/companies/types/ListCompaniesParams.js +1 -0
- package/dist/serialization/resources/components/types/PreviewComponentDataParams.d.ts +13 -0
- package/dist/serialization/resources/components/types/PreviewComponentDataParams.js +34 -0
- package/dist/serialization/resources/components/types/PreviewComponentDataResponse.d.ts +15 -0
- package/dist/serialization/resources/{billing/types/UpdateBillingPlanGroupResponse.js → components/types/PreviewComponentDataResponse.js} +6 -5
- package/dist/serialization/resources/components/types/index.d.ts +2 -1
- package/dist/serialization/resources/components/types/index.js +2 -1
- package/dist/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
- package/dist/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.js +1 -1
- package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +4 -0
- package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +4 -0
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +5 -0
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +5 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +4 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +4 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +3 -0
- package/dist/serialization/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
- package/dist/serialization/resources/entitlements/types/CountFeatureUsageParams.js +1 -0
- package/dist/serialization/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +1 -0
- package/dist/serialization/resources/entitlements/types/CountPlanEntitlementsParams.js +1 -0
- package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
- package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
- package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
- package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
- package/dist/serialization/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
- package/dist/serialization/resources/entitlements/types/ListFeatureUsageParams.js +1 -0
- package/dist/serialization/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +1 -0
- package/dist/serialization/resources/entitlements/types/ListPlanEntitlementsParams.js +1 -0
- package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
- package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
- package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
- package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
- package/dist/serialization/resources/entitlements/types/index.d.ts +4 -0
- package/dist/serialization/resources/entitlements/types/index.js +4 -0
- package/dist/serialization/resources/events/types/index.d.ts +0 -2
- package/dist/serialization/resources/events/types/index.js +0 -2
- package/dist/serialization/resources/index.d.ts +3 -0
- package/dist/serialization/resources/index.js +4 -1
- package/dist/serialization/resources/plangroups/client/index.d.ts +1 -0
- package/dist/serialization/resources/plangroups/client/index.js +17 -0
- package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +16 -0
- package/{serialization/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.js → dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js} +5 -2
- package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +16 -0
- package/dist/serialization/resources/{billing/client/requests/CreateBillingPlanGroupRequestBody.js → plangroups/client/requests/UpdatePlanGroupRequestBody.js} +5 -2
- package/dist/serialization/resources/plangroups/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/plangroups/client/requests/index.js +7 -0
- package/dist/serialization/resources/plangroups/index.d.ts +2 -0
- package/dist/serialization/resources/plangroups/index.js +18 -0
- package/dist/serialization/resources/plangroups/types/CreatePlanGroupResponse.d.ts +14 -0
- package/dist/serialization/resources/plangroups/types/CreatePlanGroupResponse.js +35 -0
- package/dist/serialization/resources/plangroups/types/GetPlanGroupResponse.d.ts +14 -0
- package/dist/serialization/resources/plangroups/types/GetPlanGroupResponse.js +35 -0
- package/dist/serialization/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +14 -0
- package/dist/serialization/resources/plangroups/types/UpdatePlanGroupResponse.js +35 -0
- package/dist/serialization/resources/plangroups/types/index.d.ts +3 -0
- package/dist/serialization/resources/plangroups/types/index.js +19 -0
- package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +4 -1
- package/dist/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +4 -1
- package/dist/serialization/resources/plans/types/CountPlansParams.d.ts +2 -0
- package/dist/serialization/resources/plans/types/CountPlansParams.js +2 -0
- package/dist/serialization/resources/plans/types/ListPlansParams.d.ts +2 -0
- package/dist/serialization/resources/plans/types/ListPlansParams.js +2 -0
- package/dist/serialization/resources/plans/types/index.d.ts +0 -1
- package/dist/serialization/resources/plans/types/index.js +0 -1
- package/dist/serialization/types/BillingCustomerSubscription.d.ts +4 -0
- package/dist/serialization/types/BillingCustomerSubscription.js +4 -0
- package/dist/serialization/types/BillingMeterResponseData.d.ts +16 -0
- package/dist/serialization/types/BillingMeterResponseData.js +37 -0
- package/dist/serialization/types/BillingPriceResponseData.d.ts +1 -0
- package/dist/serialization/types/BillingPriceResponseData.js +1 -0
- package/dist/serialization/types/BillingPriceView.d.ts +24 -0
- package/dist/serialization/types/BillingPriceView.js +45 -0
- package/dist/serialization/types/BillingProductDetailResponseData.d.ts +1 -1
- package/dist/serialization/types/BillingProductDetailResponseData.js +1 -1
- package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +5 -2
- package/dist/serialization/types/BillingProductForSubscriptionResponseData.js +5 -2
- package/dist/serialization/types/BillingProductPlanResponseData.d.ts +2 -0
- package/dist/serialization/types/BillingProductPlanResponseData.js +2 -0
- package/dist/serialization/types/BillingProductPriceResponseData.d.ts +21 -0
- package/{serialization/types/MetricCountsHourlyResponseData.js → dist/serialization/types/BillingProductPriceResponseData.js} +11 -8
- package/dist/serialization/types/BillingProductPricing.d.ts +6 -2
- package/dist/serialization/types/BillingProductPricing.js +6 -2
- package/dist/serialization/types/BillingSubscriptionResponseData.d.ts +13 -3
- package/dist/serialization/types/BillingSubscriptionResponseData.js +13 -3
- package/dist/serialization/types/BillingSubscriptionView.d.ts +31 -0
- package/dist/serialization/types/BillingSubscriptionView.js +52 -0
- package/dist/serialization/types/CheckFlagRequestBody.d.ts +2 -2
- package/dist/serialization/types/CheckFlagRequestBody.js +2 -2
- package/dist/serialization/types/CompanyDetailResponseData.d.ts +8 -5
- package/dist/serialization/types/CompanyDetailResponseData.js +8 -5
- package/dist/serialization/types/CompanyOverrideResponseData.d.ts +3 -1
- package/dist/serialization/types/CompanyOverrideResponseData.js +3 -1
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +35 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.js +56 -0
- package/dist/serialization/types/{BillingPlan.d.ts → CompanyPlanWithBillingSubView.d.ts} +3 -2
- package/dist/serialization/types/{BillingPlan.js → CompanyPlanWithBillingSubView.js} +3 -2
- package/dist/serialization/types/CompanySubscriptionResponseData.d.ts +7 -0
- package/dist/serialization/types/CompanySubscriptionResponseData.js +7 -0
- package/dist/serialization/types/ComponentCapabilities.d.ts +12 -0
- package/dist/serialization/types/{UpdateReqCommonValueType.js → ComponentCapabilities.js} +4 -2
- package/dist/serialization/types/ComponentHydrateResponseData.d.ts +11 -0
- package/dist/serialization/types/ComponentHydrateResponseData.js +11 -0
- package/dist/serialization/types/ComponentPreviewResponseData.d.ts +29 -0
- package/dist/serialization/types/ComponentPreviewResponseData.js +50 -0
- package/dist/serialization/types/CreateEntitlementReqCommon.d.ts +22 -0
- package/{serialization/types/CreateReqCommon.js → dist/serialization/types/CreateEntitlementReqCommon.js} +9 -6
- package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriod.d.ts +10 -0
- package/dist/serialization/types/{RuleConditionResourceResponseData.js → CreateEntitlementReqCommonMetricPeriod.js} +2 -5
- package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
- package/dist/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
- package/dist/serialization/types/{UpdateReqCommonValueType.d.ts → CreateEntitlementReqCommonValueType.d.ts} +2 -2
- package/dist/serialization/types/{CreateReqCommonMetricPeriod.js → CreateEntitlementReqCommonValueType.js} +2 -2
- package/dist/serialization/types/CreateOrUpdateConditionRequestBody.d.ts +2 -0
- package/dist/serialization/types/CreateOrUpdateConditionRequestBody.js +2 -0
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +1 -1
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.js +10 -1
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -1
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +10 -0
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +31 -0
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +1 -1
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyOperator.js +1 -1
- package/dist/serialization/types/EventBodyFlagCheck.d.ts +2 -2
- package/dist/serialization/types/EventBodyFlagCheck.js +2 -2
- package/dist/serialization/types/FeatureCompanyResponseData.d.ts +1 -0
- package/dist/serialization/types/FeatureCompanyResponseData.js +1 -0
- package/dist/serialization/types/FeatureCompanyUserResponseData.d.ts +1 -0
- package/dist/serialization/types/FeatureCompanyUserResponseData.js +1 -0
- package/dist/serialization/types/FeatureUsageResponseData.d.ts +1 -0
- package/dist/serialization/types/FeatureUsageResponseData.js +1 -0
- package/dist/serialization/types/{RuleConditionResourceResponseData.d.ts → GenericPreviewObject.d.ts} +4 -2
- package/{serialization/types/RuleConditionResourceResponseData.js → dist/serialization/types/GenericPreviewObject.js} +4 -2
- package/dist/serialization/types/InvoiceRequestBody.d.ts +22 -0
- package/dist/serialization/types/InvoiceRequestBody.js +43 -0
- package/dist/serialization/types/InvoiceResponseData.d.ts +28 -0
- package/dist/serialization/types/InvoiceResponseData.js +49 -0
- package/dist/serialization/types/MeterRequestBody.d.ts +14 -0
- package/{serialization/types/BillingPlanGroupResponseData.js → dist/serialization/types/MeterRequestBody.js} +5 -5
- package/dist/serialization/types/PaymentMethodRequestBody.d.ts +23 -0
- package/dist/serialization/types/PaymentMethodRequestBody.js +44 -0
- package/dist/serialization/types/PaymentMethodResponseData.d.ts +29 -0
- package/dist/serialization/types/PaymentMethodResponseData.js +50 -0
- package/dist/serialization/types/PlanDetailResponseData.d.ts +8 -0
- package/dist/serialization/types/PlanDetailResponseData.js +8 -0
- package/dist/serialization/types/PlanEntitlementResponseData.d.ts +4 -0
- package/dist/serialization/types/PlanEntitlementResponseData.js +4 -0
- package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +19 -0
- package/dist/serialization/types/PlanGroupDetailResponseData.js +40 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +33 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.js +54 -0
- package/dist/serialization/types/PlanGroupResponseData.d.ts +17 -0
- package/dist/serialization/types/PlanGroupResponseData.js +38 -0
- package/dist/serialization/types/PlanResponseData.d.ts +1 -0
- package/dist/serialization/types/PlanResponseData.js +1 -0
- package/dist/serialization/types/PreviewObjectResponseData.d.ts +15 -0
- package/dist/serialization/types/PreviewObjectResponseData.js +36 -0
- package/dist/serialization/types/RuleConditionDetailResponseData.d.ts +3 -2
- package/dist/serialization/types/RuleConditionDetailResponseData.js +3 -2
- package/dist/serialization/types/RuleConditionResponseData.d.ts +1 -0
- package/dist/serialization/types/RuleConditionResponseData.js +1 -0
- package/dist/serialization/types/RulesDetailResponseData.d.ts +1 -1
- package/dist/serialization/types/RulesDetailResponseData.js +1 -1
- package/dist/serialization/types/StripeEmbedInfo.d.ts +13 -0
- package/dist/serialization/types/StripeEmbedInfo.js +34 -0
- package/dist/serialization/types/UpdateEntitlementReqCommon.d.ts +21 -0
- package/dist/serialization/types/{UpdateReqCommon.js → UpdateEntitlementReqCommon.js} +9 -6
- package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +10 -0
- package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +31 -0
- package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
- package/dist/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
- package/{serialization/types/CreateReqCommonValueType.d.ts → dist/serialization/types/UpdateEntitlementReqCommonValueType.d.ts} +2 -2
- package/dist/serialization/types/{CreateReqCommonValueType.js → UpdateEntitlementReqCommonValueType.js} +2 -2
- package/dist/serialization/types/index.d.ts +28 -10
- package/dist/serialization/types/index.js +28 -10
- package/package.json +8 -3
- package/reference.md +457 -133
- package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +3 -0
- package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +3 -0
- package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +4 -0
- package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +4 -0
- package/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +23 -0
- package/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.js +44 -0
- package/serialization/resources/billing/client/requests/CreateMeterRequestBody.d.ts +15 -0
- package/serialization/resources/billing/client/requests/{ChangeSubscriptionRequestBody.js → CreateMeterRequestBody.js} +6 -5
- package/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +24 -0
- package/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +45 -0
- package/serialization/resources/billing/client/requests/index.d.ts +3 -3
- package/serialization/resources/billing/client/requests/index.js +7 -7
- package/serialization/resources/billing/types/CountBillingProductsParams.d.ts +20 -0
- package/serialization/resources/{events/types/ListMetricCountsParams.js → billing/types/CountBillingProductsParams.js} +9 -10
- package/serialization/resources/billing/types/CountBillingProductsResponse.d.ts +15 -0
- package/serialization/resources/billing/types/CountBillingProductsResponse.js +36 -0
- package/serialization/resources/billing/types/DeleteProductPriceResponse.d.ts +14 -0
- package/serialization/resources/billing/types/DeleteProductPriceResponse.js +35 -0
- package/serialization/resources/billing/types/ListBillingProductsParams.d.ts +4 -0
- package/serialization/resources/billing/types/ListBillingProductsParams.js +4 -0
- package/serialization/resources/billing/types/ListInvoicesParams.d.ts +16 -0
- package/serialization/resources/billing/types/ListInvoicesParams.js +37 -0
- package/serialization/resources/billing/types/ListInvoicesResponse.d.ts +15 -0
- package/serialization/resources/billing/types/ListInvoicesResponse.js +36 -0
- package/serialization/resources/billing/types/ListMetersParams.d.ts +14 -0
- package/serialization/resources/billing/types/ListMetersParams.js +35 -0
- package/serialization/resources/billing/types/ListMetersResponse.d.ts +15 -0
- package/serialization/resources/billing/types/ListMetersResponse.js +36 -0
- package/serialization/resources/billing/types/ListPaymentMethodsParams.d.ts +16 -0
- package/serialization/resources/billing/types/ListPaymentMethodsParams.js +37 -0
- package/serialization/resources/billing/types/ListPaymentMethodsResponse.d.ts +15 -0
- package/serialization/resources/billing/types/ListPaymentMethodsResponse.js +36 -0
- package/serialization/resources/billing/types/ListProductPricesParams.d.ts +4 -0
- package/serialization/resources/billing/types/ListProductPricesParams.js +4 -0
- package/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +16 -0
- package/serialization/resources/billing/types/SearchBillingPricesParams.js +37 -0
- package/serialization/resources/billing/types/SearchBillingPricesResponse.d.ts +15 -0
- package/{dist/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.js → serialization/resources/billing/types/SearchBillingPricesResponse.js} +6 -5
- package/serialization/resources/billing/types/UpsertBillingMeterResponse.d.ts +14 -0
- package/serialization/resources/billing/types/UpsertBillingMeterResponse.js +35 -0
- package/serialization/resources/billing/types/UpsertInvoiceResponse.d.ts +14 -0
- package/serialization/resources/billing/types/UpsertInvoiceResponse.js +35 -0
- package/serialization/resources/billing/types/UpsertPaymentMethodResponse.d.ts +14 -0
- package/serialization/resources/billing/types/UpsertPaymentMethodResponse.js +35 -0
- package/serialization/resources/billing/types/index.d.ts +14 -4
- package/serialization/resources/billing/types/index.js +14 -4
- package/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
- package/serialization/resources/companies/types/CountCompaniesParams.js +1 -0
- package/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.d.ts +1 -0
- package/serialization/resources/companies/types/GetActiveCompanySubscriptionParams.js +1 -0
- package/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
- package/serialization/resources/companies/types/ListCompaniesParams.js +1 -0
- package/serialization/resources/components/types/PreviewComponentDataParams.d.ts +13 -0
- package/serialization/resources/components/types/PreviewComponentDataParams.js +34 -0
- package/serialization/resources/components/types/PreviewComponentDataResponse.d.ts +15 -0
- package/serialization/resources/components/types/PreviewComponentDataResponse.js +36 -0
- package/serialization/resources/components/types/index.d.ts +2 -1
- package/serialization/resources/components/types/index.js +2 -1
- package/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.d.ts +1 -1
- package/serialization/resources/crm/client/requests/CreateCrmLineItemRequestBody.js +1 -1
- package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +4 -0
- package/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.js +4 -0
- package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +5 -0
- package/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.js +5 -0
- package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +4 -0
- package/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.js +4 -0
- package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -0
- package/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.js +3 -0
- package/serialization/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
- package/serialization/resources/entitlements/types/CountFeatureUsageParams.js +1 -0
- package/serialization/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +1 -0
- package/serialization/resources/entitlements/types/CountPlanEntitlementsParams.js +1 -0
- package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
- package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
- package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
- package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
- package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
- package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
- package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
- package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
- package/serialization/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
- package/serialization/resources/entitlements/types/ListFeatureUsageParams.js +1 -0
- package/serialization/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +1 -0
- package/serialization/resources/entitlements/types/ListPlanEntitlementsParams.js +1 -0
- package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
- package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
- package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.d.ts +10 -0
- package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriodMonthReset.js +31 -0
- package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
- package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
- package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +10 -0
- package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriodMonthReset.js +31 -0
- package/serialization/resources/entitlements/types/index.d.ts +4 -0
- package/serialization/resources/entitlements/types/index.js +4 -0
- package/serialization/resources/events/types/index.d.ts +0 -2
- package/serialization/resources/events/types/index.js +0 -2
- package/serialization/resources/index.d.ts +3 -0
- package/serialization/resources/index.js +4 -1
- package/serialization/resources/plangroups/client/index.d.ts +1 -0
- package/serialization/resources/plangroups/client/index.js +17 -0
- package/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +16 -0
- package/{dist/serialization/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.js → serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js} +5 -2
- package/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +16 -0
- package/serialization/resources/{billing/client/requests/UpdateBillingPlanGroupRequestBody.js → plangroups/client/requests/UpdatePlanGroupRequestBody.js} +5 -2
- package/serialization/resources/plangroups/client/requests/index.d.ts +2 -0
- package/serialization/resources/plangroups/client/requests/index.js +7 -0
- package/serialization/resources/plangroups/index.d.ts +2 -0
- package/serialization/resources/plangroups/index.js +18 -0
- package/serialization/resources/plangroups/types/CreatePlanGroupResponse.d.ts +14 -0
- package/serialization/resources/plangroups/types/CreatePlanGroupResponse.js +35 -0
- package/serialization/resources/plangroups/types/GetPlanGroupResponse.d.ts +14 -0
- package/serialization/resources/plangroups/types/GetPlanGroupResponse.js +35 -0
- package/serialization/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +14 -0
- package/serialization/resources/plangroups/types/UpdatePlanGroupResponse.js +35 -0
- package/serialization/resources/plangroups/types/index.d.ts +3 -0
- package/serialization/resources/plangroups/types/index.js +19 -0
- package/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.d.ts +4 -1
- package/serialization/resources/plans/client/requests/UpsertBillingProductRequestBody.js +4 -1
- package/serialization/resources/plans/types/CountPlansParams.d.ts +2 -0
- package/serialization/resources/plans/types/CountPlansParams.js +2 -0
- package/serialization/resources/plans/types/ListPlansParams.d.ts +2 -0
- package/serialization/resources/plans/types/ListPlansParams.js +2 -0
- package/serialization/resources/plans/types/index.d.ts +0 -1
- package/serialization/resources/plans/types/index.js +0 -1
- package/serialization/types/BillingCustomerSubscription.d.ts +4 -0
- package/serialization/types/BillingCustomerSubscription.js +4 -0
- package/serialization/types/BillingMeterResponseData.d.ts +16 -0
- package/serialization/types/BillingMeterResponseData.js +37 -0
- package/serialization/types/BillingPriceResponseData.d.ts +1 -0
- package/serialization/types/BillingPriceResponseData.js +1 -0
- package/serialization/types/BillingPriceView.d.ts +24 -0
- package/serialization/types/BillingPriceView.js +45 -0
- package/serialization/types/BillingProductDetailResponseData.d.ts +1 -1
- package/serialization/types/BillingProductDetailResponseData.js +1 -1
- package/serialization/types/BillingProductForSubscriptionResponseData.d.ts +5 -2
- package/serialization/types/BillingProductForSubscriptionResponseData.js +5 -2
- package/serialization/types/BillingProductPlanResponseData.d.ts +2 -0
- package/serialization/types/BillingProductPlanResponseData.js +2 -0
- package/serialization/types/BillingProductPriceResponseData.d.ts +21 -0
- package/{dist/serialization/types/MetricCountsHourlyResponseData.js → serialization/types/BillingProductPriceResponseData.js} +11 -8
- package/serialization/types/BillingProductPricing.d.ts +6 -2
- package/serialization/types/BillingProductPricing.js +6 -2
- package/serialization/types/BillingSubscriptionResponseData.d.ts +13 -3
- package/serialization/types/BillingSubscriptionResponseData.js +13 -3
- package/serialization/types/BillingSubscriptionView.d.ts +31 -0
- package/serialization/types/BillingSubscriptionView.js +52 -0
- package/serialization/types/CheckFlagRequestBody.d.ts +2 -2
- package/serialization/types/CheckFlagRequestBody.js +2 -2
- package/serialization/types/CompanyDetailResponseData.d.ts +8 -5
- package/serialization/types/CompanyDetailResponseData.js +8 -5
- package/serialization/types/CompanyOverrideResponseData.d.ts +3 -1
- package/serialization/types/CompanyOverrideResponseData.js +3 -1
- package/serialization/types/CompanyPlanDetailResponseData.d.ts +35 -0
- package/serialization/types/CompanyPlanDetailResponseData.js +56 -0
- package/serialization/types/{BillingPlan.d.ts → CompanyPlanWithBillingSubView.d.ts} +3 -2
- package/serialization/types/{BillingPlan.js → CompanyPlanWithBillingSubView.js} +3 -2
- package/serialization/types/CompanySubscriptionResponseData.d.ts +7 -0
- package/serialization/types/CompanySubscriptionResponseData.js +7 -0
- package/serialization/types/ComponentCapabilities.d.ts +12 -0
- package/serialization/types/{CreateReqCommonValueType.js → ComponentCapabilities.js} +4 -2
- package/serialization/types/ComponentHydrateResponseData.d.ts +11 -0
- package/serialization/types/ComponentHydrateResponseData.js +11 -0
- package/serialization/types/ComponentPreviewResponseData.d.ts +29 -0
- package/serialization/types/ComponentPreviewResponseData.js +50 -0
- package/serialization/types/CreateEntitlementReqCommon.d.ts +22 -0
- package/{dist/serialization/types/CreateReqCommon.js → serialization/types/CreateEntitlementReqCommon.js} +9 -6
- package/serialization/types/CreateEntitlementReqCommonMetricPeriod.d.ts +10 -0
- package/serialization/types/CreateEntitlementReqCommonMetricPeriod.js +31 -0
- package/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
- package/serialization/types/CreateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
- package/{dist/serialization/types/CreateReqCommonValueType.d.ts → serialization/types/CreateEntitlementReqCommonValueType.d.ts} +2 -2
- package/{dist/serialization/types/UpdateReqCommonMetricPeriod.js → serialization/types/CreateEntitlementReqCommonValueType.js} +2 -2
- package/serialization/types/CreateOrUpdateConditionRequestBody.d.ts +2 -0
- package/serialization/types/CreateOrUpdateConditionRequestBody.js +2 -0
- package/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +1 -1
- package/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.js +10 -1
- package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
- package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -1
- package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.d.ts +10 -0
- package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriodMonthReset.js +31 -0
- package/serialization/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +1 -1
- package/serialization/types/CreateOrUpdateConditionRequestBodyOperator.js +1 -1
- package/serialization/types/EventBodyFlagCheck.d.ts +2 -2
- package/serialization/types/EventBodyFlagCheck.js +2 -2
- package/serialization/types/FeatureCompanyResponseData.d.ts +1 -0
- package/serialization/types/FeatureCompanyResponseData.js +1 -0
- package/serialization/types/FeatureCompanyUserResponseData.d.ts +1 -0
- package/serialization/types/FeatureCompanyUserResponseData.js +1 -0
- package/serialization/types/FeatureUsageResponseData.d.ts +1 -0
- package/serialization/types/FeatureUsageResponseData.js +1 -0
- package/serialization/types/{RuleConditionResourceResponseData.d.ts → GenericPreviewObject.d.ts} +4 -2
- package/serialization/types/GenericPreviewObject.js +36 -0
- package/serialization/types/InvoiceRequestBody.d.ts +22 -0
- package/serialization/types/InvoiceRequestBody.js +43 -0
- package/serialization/types/InvoiceResponseData.d.ts +28 -0
- package/serialization/types/InvoiceResponseData.js +49 -0
- package/serialization/types/MeterRequestBody.d.ts +14 -0
- package/{dist/serialization/types/BillingPlanGroupResponseData.js → serialization/types/MeterRequestBody.js} +5 -5
- package/serialization/types/PaymentMethodRequestBody.d.ts +23 -0
- package/serialization/types/PaymentMethodRequestBody.js +44 -0
- package/serialization/types/PaymentMethodResponseData.d.ts +29 -0
- package/serialization/types/PaymentMethodResponseData.js +50 -0
- package/serialization/types/PlanDetailResponseData.d.ts +8 -0
- package/serialization/types/PlanDetailResponseData.js +8 -0
- package/serialization/types/PlanEntitlementResponseData.d.ts +4 -0
- package/serialization/types/PlanEntitlementResponseData.js +4 -0
- package/serialization/types/PlanGroupDetailResponseData.d.ts +19 -0
- package/serialization/types/PlanGroupDetailResponseData.js +40 -0
- package/serialization/types/PlanGroupPlanDetailResponseData.d.ts +33 -0
- package/serialization/types/PlanGroupPlanDetailResponseData.js +54 -0
- package/serialization/types/PlanGroupResponseData.d.ts +17 -0
- package/serialization/types/PlanGroupResponseData.js +38 -0
- package/serialization/types/PlanResponseData.d.ts +1 -0
- package/serialization/types/PlanResponseData.js +1 -0
- package/serialization/types/PreviewObjectResponseData.d.ts +15 -0
- package/serialization/types/PreviewObjectResponseData.js +36 -0
- package/serialization/types/RuleConditionDetailResponseData.d.ts +3 -2
- package/serialization/types/RuleConditionDetailResponseData.js +3 -2
- package/serialization/types/RuleConditionResponseData.d.ts +1 -0
- package/serialization/types/RuleConditionResponseData.js +1 -0
- package/serialization/types/RulesDetailResponseData.d.ts +1 -1
- package/serialization/types/RulesDetailResponseData.js +1 -1
- package/serialization/types/StripeEmbedInfo.d.ts +13 -0
- package/serialization/types/StripeEmbedInfo.js +34 -0
- package/serialization/types/UpdateEntitlementReqCommon.d.ts +21 -0
- package/serialization/types/{UpdateReqCommon.js → UpdateEntitlementReqCommon.js} +9 -6
- package/serialization/types/UpdateEntitlementReqCommonMetricPeriod.d.ts +10 -0
- package/serialization/types/UpdateEntitlementReqCommonMetricPeriod.js +31 -0
- package/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.d.ts +10 -0
- package/serialization/types/UpdateEntitlementReqCommonMetricPeriodMonthReset.js +31 -0
- package/serialization/types/{UpdateReqCommonValueType.d.ts → UpdateEntitlementReqCommonValueType.d.ts} +2 -2
- package/serialization/types/UpdateEntitlementReqCommonValueType.js +31 -0
- package/serialization/types/index.d.ts +28 -10
- package/serialization/types/index.js +28 -10
- package/api/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +0 -16
- package/api/types/CreateReqCommon.d.ts +0 -12
- package/api/types/CreateReqCommonMetricPeriod.d.ts +0 -9
- package/api/types/MetricCountsHourlyResponseData.d.ts +0 -12
- package/api/types/UpdateReqCommon.d.ts +0 -11
- package/api/types/UpdateReqCommonMetricPeriod.d.ts +0 -9
- package/dist/api/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +0 -16
- package/dist/api/resources/billing/types/ChangeSubscriptionWebResponse.d.ts +0 -9
- package/dist/api/resources/billing/types/CreateBillingPlanGroupResponse.d.ts +0 -9
- package/dist/api/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts +0 -9
- package/dist/api/resources/billing/types/UpdateBillingPlanGroupResponse.d.ts +0 -9
- package/dist/api/types/CreateReqCommon.d.ts +0 -12
- package/dist/api/types/CreateReqCommonMetricPeriod.d.ts +0 -9
- package/dist/api/types/MetricCountsHourlyResponseData.d.ts +0 -12
- package/dist/api/types/UpdateReqCommon.d.ts +0 -11
- package/dist/api/types/UpdateReqCommonMetricPeriod.d.ts +0 -9
- package/dist/serialization/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +0 -14
- package/dist/serialization/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts +0 -13
- package/dist/serialization/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts +0 -13
- package/dist/serialization/resources/billing/types/ChangeSubscriptionWebResponse.d.ts +0 -14
- package/dist/serialization/resources/billing/types/CreateBillingPlanGroupResponse.d.ts +0 -14
- package/dist/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts +0 -14
- package/dist/serialization/resources/billing/types/UpdateBillingPlanGroupResponse.d.ts +0 -14
- package/dist/serialization/resources/components/types/HydrateComponentResponse.d.ts +0 -14
- package/dist/serialization/resources/events/types/ListMetricCountsParams.d.ts +0 -21
- package/dist/serialization/resources/events/types/ListMetricCountsResponse.d.ts +0 -15
- package/dist/serialization/resources/events/types/ListMetricCountsResponse.js +0 -36
- package/dist/serialization/resources/plans/types/ListActivePlansResponse.d.ts +0 -14
- package/dist/serialization/types/BillingPlanGroupResponseData.d.ts +0 -14
- package/dist/serialization/types/CreateReqCommon.d.ts +0 -19
- package/dist/serialization/types/CreateReqCommonMetricPeriod.d.ts +0 -10
- package/dist/serialization/types/MetricCountsHourlyResponseData.d.ts +0 -18
- package/dist/serialization/types/UpdateReqCommon.d.ts +0 -18
- package/dist/serialization/types/UpdateReqCommonMetricPeriod.d.ts +0 -10
- package/serialization/resources/billing/client/requests/ChangeSubscriptionRequestBody.d.ts +0 -14
- package/serialization/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.d.ts +0 -13
- package/serialization/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.d.ts +0 -13
- package/serialization/resources/billing/types/ChangeSubscriptionWebResponse.d.ts +0 -14
- package/serialization/resources/billing/types/ChangeSubscriptionWebResponse.js +0 -35
- package/serialization/resources/billing/types/CreateBillingPlanGroupResponse.d.ts +0 -14
- package/serialization/resources/billing/types/CreateBillingPlanGroupResponse.js +0 -35
- package/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.d.ts +0 -14
- package/serialization/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.js +0 -35
- package/serialization/resources/billing/types/UpdateBillingPlanGroupResponse.d.ts +0 -14
- package/serialization/resources/billing/types/UpdateBillingPlanGroupResponse.js +0 -35
- package/serialization/resources/components/types/HydrateComponentResponse.d.ts +0 -14
- package/serialization/resources/events/types/ListMetricCountsParams.d.ts +0 -21
- package/serialization/resources/events/types/ListMetricCountsResponse.d.ts +0 -15
- package/serialization/resources/events/types/ListMetricCountsResponse.js +0 -36
- package/serialization/resources/plans/types/ListActivePlansResponse.d.ts +0 -14
- package/serialization/types/BillingPlanGroupResponseData.d.ts +0 -14
- package/serialization/types/CreateReqCommon.d.ts +0 -19
- package/serialization/types/CreateReqCommonMetricPeriod.d.ts +0 -10
- package/serialization/types/CreateReqCommonMetricPeriod.js +0 -31
- package/serialization/types/MetricCountsHourlyResponseData.d.ts +0 -18
- package/serialization/types/UpdateReqCommon.d.ts +0 -18
- package/serialization/types/UpdateReqCommonMetricPeriod.d.ts +0 -10
- package/serialization/types/UpdateReqCommonMetricPeriod.js +0 -31
- package/serialization/types/UpdateReqCommonValueType.js +0 -31
- /package/api/resources/billing/client/requests/{ChangeSubscriptionRequestBody.js → CountBillingProductsRequest.js} +0 -0
- /package/api/resources/billing/client/requests/{CreateBillingPlanGroupRequestBody.js → CreateInvoiceRequestBody.js} +0 -0
- /package/api/resources/billing/client/requests/{UpdateBillingPlanGroupRequestBody.js → CreateMeterRequestBody.js} +0 -0
- /package/api/resources/billing/{types/ChangeSubscriptionWebResponse.js → client/requests/CreatePaymentMethodRequestBody.js} +0 -0
- /package/api/resources/billing/{types/CreateBillingPlanGroupResponse.js → client/requests/ListInvoicesRequest.js} +0 -0
- /package/api/resources/billing/{types/GetBillingPlanGroupByAccountIdResponse.js → client/requests/ListMetersRequest.js} +0 -0
- /package/api/resources/billing/{types/UpdateBillingPlanGroupResponse.js → client/requests/ListPaymentMethodsRequest.js} +0 -0
- /package/api/resources/{components/types/HydrateComponentResponse.js → billing/client/requests/SearchBillingPricesRequest.js} +0 -0
- /package/api/resources/{events/client/requests/ListMetricCountsRequest.js → billing/types/CountBillingProductsParams.js} +0 -0
- /package/api/resources/{events/types/ListMetricCountsParams.js → billing/types/CountBillingProductsResponse.js} +0 -0
- /package/api/resources/{events/types/ListMetricCountsResponse.js → billing/types/DeleteProductPriceResponse.js} +0 -0
- /package/api/resources/{plans/types/ListActivePlansResponse.js → billing/types/ListInvoicesParams.js} +0 -0
- /package/api/{types/BillingPlan.js → resources/billing/types/ListInvoicesResponse.js} +0 -0
- /package/api/{types/BillingPlanGroupResponseData.js → resources/billing/types/ListMetersParams.js} +0 -0
- /package/api/{types/CreateReqCommon.js → resources/billing/types/ListMetersResponse.js} +0 -0
- /package/api/{types/MetricCountsHourlyResponseData.js → resources/billing/types/ListPaymentMethodsParams.js} +0 -0
- /package/api/{types/RuleConditionResourceResponseData.js → resources/billing/types/ListPaymentMethodsResponse.js} +0 -0
- /package/api/{types/UpdateReqCommon.js → resources/billing/types/SearchBillingPricesParams.js} +0 -0
- /package/{dist/api/resources/billing/client/requests/ChangeSubscriptionRequestBody.js → api/resources/billing/types/SearchBillingPricesResponse.js} +0 -0
- /package/{dist/api/resources/billing/client/requests/CreateBillingPlanGroupRequestBody.js → api/resources/billing/types/UpsertBillingMeterResponse.js} +0 -0
- /package/{dist/api/resources/billing/client/requests/UpdateBillingPlanGroupRequestBody.js → api/resources/billing/types/UpsertInvoiceResponse.js} +0 -0
- /package/{dist/api/resources/billing/types/ChangeSubscriptionWebResponse.js → api/resources/billing/types/UpsertPaymentMethodResponse.js} +0 -0
- /package/{dist/api/resources/billing/types/CreateBillingPlanGroupResponse.js → api/resources/components/client/requests/PreviewComponentDataRequest.js} +0 -0
- /package/{dist/api/resources/billing/types/GetBillingPlanGroupByAccountIdResponse.js → api/resources/components/types/PreviewComponentDataParams.js} +0 -0
- /package/{dist/api/resources/billing/types/UpdateBillingPlanGroupResponse.js → api/resources/components/types/PreviewComponentDataResponse.js} +0 -0
- /package/{dist/api/resources/components/types/HydrateComponentResponse.js → api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js} +0 -0
- /package/{dist/api/resources/events/client/requests/ListMetricCountsRequest.js → api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js} +0 -0
- /package/{dist/api/resources/events/types/ListMetricCountsParams.js → api/resources/plangroups/types/CreatePlanGroupResponse.js} +0 -0
- /package/{dist/api/resources/events/types/ListMetricCountsResponse.js → api/resources/plangroups/types/GetPlanGroupResponse.js} +0 -0
- /package/{dist/api/resources/plans/types/ListActivePlansResponse.js → api/resources/plangroups/types/UpdatePlanGroupResponse.js} +0 -0
- /package/{dist/api/types/BillingPlan.js → api/types/BillingMeterResponseData.js} +0 -0
- /package/{dist/api/types/BillingPlanGroupResponseData.js → api/types/BillingPriceView.js} +0 -0
- /package/{dist/api/types/CreateReqCommon.js → api/types/BillingProductPriceResponseData.js} +0 -0
- /package/{dist/api/types/MetricCountsHourlyResponseData.js → api/types/BillingSubscriptionView.js} +0 -0
- /package/{dist/api/types/RuleConditionResourceResponseData.js → api/types/CompanyPlanDetailResponseData.js} +0 -0
- /package/{dist/api/types/UpdateReqCommon.js → api/types/CompanyPlanWithBillingSubView.js} +0 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.BillingSubscriptionView = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const InvoiceResponseData_1 = require("./InvoiceResponseData");
|
|
32
|
+
const PaymentMethodResponseData_1 = require("./PaymentMethodResponseData");
|
|
33
|
+
const BillingProductForSubscriptionResponseData_1 = require("./BillingProductForSubscriptionResponseData");
|
|
34
|
+
exports.BillingSubscriptionView = core.serialization.object({
|
|
35
|
+
companyId: core.serialization.property("company_id", core.serialization.string().optional()),
|
|
36
|
+
createdAt: core.serialization.property("created_at", core.serialization.date()),
|
|
37
|
+
currency: core.serialization.string(),
|
|
38
|
+
customerExternalId: core.serialization.property("customer_external_id", core.serialization.string()),
|
|
39
|
+
expiredAt: core.serialization.property("expired_at", core.serialization.date().optional()),
|
|
40
|
+
id: core.serialization.string(),
|
|
41
|
+
interval: core.serialization.string(),
|
|
42
|
+
latestInvoice: core.serialization.property("latest_invoice", InvoiceResponseData_1.InvoiceResponseData.optional()),
|
|
43
|
+
metadata: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
44
|
+
paymentMethod: core.serialization.property("payment_method", PaymentMethodResponseData_1.PaymentMethodResponseData.optional()),
|
|
45
|
+
periodEnd: core.serialization.property("period_end", core.serialization.number()),
|
|
46
|
+
periodStart: core.serialization.property("period_start", core.serialization.number()),
|
|
47
|
+
products: core.serialization.list(BillingProductForSubscriptionResponseData_1.BillingProductForSubscriptionResponseData),
|
|
48
|
+
status: core.serialization.string(),
|
|
49
|
+
subscriptionExternalId: core.serialization.property("subscription_external_id", core.serialization.string()),
|
|
50
|
+
totalPrice: core.serialization.property("total_price", core.serialization.number()),
|
|
51
|
+
trialEnd: core.serialization.property("trial_end", core.serialization.number().optional()),
|
|
52
|
+
});
|
|
@@ -7,7 +7,7 @@ import * as core from "../../core";
|
|
|
7
7
|
export declare const CheckFlagRequestBody: core.serialization.ObjectSchema<serializers.CheckFlagRequestBody.Raw, Schematic.CheckFlagRequestBody>;
|
|
8
8
|
export declare namespace CheckFlagRequestBody {
|
|
9
9
|
interface Raw {
|
|
10
|
-
company?: Record<string, string
|
|
11
|
-
user?: Record<string, string
|
|
10
|
+
company?: Record<string, string> | null;
|
|
11
|
+
user?: Record<string, string> | null;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -29,6 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.CheckFlagRequestBody = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
31
|
exports.CheckFlagRequestBody = core.serialization.object({
|
|
32
|
-
company: core.serialization.record(core.serialization.string(), core.serialization.string()
|
|
33
|
-
user: core.serialization.record(core.serialization.string(), core.serialization.string()
|
|
32
|
+
company: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
33
|
+
user: core.serialization.record(core.serialization.string(), core.serialization.string()).optional(),
|
|
34
34
|
});
|
|
@@ -4,14 +4,17 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Schematic from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
import {
|
|
7
|
+
import { CompanyPlanWithBillingSubView } from "./CompanyPlanWithBillingSubView";
|
|
8
|
+
import { BillingSubscriptionView } from "./BillingSubscriptionView";
|
|
8
9
|
import { EntityTraitDetailResponseData } from "./EntityTraitDetailResponseData";
|
|
9
10
|
import { EntityKeyDetailResponseData } from "./EntityKeyDetailResponseData";
|
|
10
|
-
import {
|
|
11
|
+
import { GenericPreviewObject } from "./GenericPreviewObject";
|
|
11
12
|
export declare const CompanyDetailResponseData: core.serialization.ObjectSchema<serializers.CompanyDetailResponseData.Raw, Schematic.CompanyDetailResponseData>;
|
|
12
13
|
export declare namespace CompanyDetailResponseData {
|
|
13
14
|
interface Raw {
|
|
14
|
-
add_ons:
|
|
15
|
+
add_ons: CompanyPlanWithBillingSubView.Raw[];
|
|
16
|
+
billing_subscription?: BillingSubscriptionView.Raw | null;
|
|
17
|
+
billing_subscriptions: BillingSubscriptionView.Raw[];
|
|
15
18
|
created_at: string;
|
|
16
19
|
entity_traits: EntityTraitDetailResponseData.Raw[];
|
|
17
20
|
environment_id: string;
|
|
@@ -20,8 +23,8 @@ export declare namespace CompanyDetailResponseData {
|
|
|
20
23
|
last_seen_at?: string | null;
|
|
21
24
|
logo_url?: string | null;
|
|
22
25
|
name: string;
|
|
23
|
-
plan?:
|
|
24
|
-
plans:
|
|
26
|
+
plan?: CompanyPlanWithBillingSubView.Raw | null;
|
|
27
|
+
plans: GenericPreviewObject.Raw[];
|
|
25
28
|
traits?: Record<string, unknown> | null;
|
|
26
29
|
updated_at: string;
|
|
27
30
|
user_count: number;
|
|
@@ -28,12 +28,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.CompanyDetailResponseData = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
const
|
|
31
|
+
const CompanyPlanWithBillingSubView_1 = require("./CompanyPlanWithBillingSubView");
|
|
32
|
+
const BillingSubscriptionView_1 = require("./BillingSubscriptionView");
|
|
32
33
|
const EntityTraitDetailResponseData_1 = require("./EntityTraitDetailResponseData");
|
|
33
34
|
const EntityKeyDetailResponseData_1 = require("./EntityKeyDetailResponseData");
|
|
34
|
-
const
|
|
35
|
+
const GenericPreviewObject_1 = require("./GenericPreviewObject");
|
|
35
36
|
exports.CompanyDetailResponseData = core.serialization.object({
|
|
36
|
-
addOns: core.serialization.property("add_ons", core.serialization.list(
|
|
37
|
+
addOns: core.serialization.property("add_ons", core.serialization.list(CompanyPlanWithBillingSubView_1.CompanyPlanWithBillingSubView)),
|
|
38
|
+
billingSubscription: core.serialization.property("billing_subscription", BillingSubscriptionView_1.BillingSubscriptionView.optional()),
|
|
39
|
+
billingSubscriptions: core.serialization.property("billing_subscriptions", core.serialization.list(BillingSubscriptionView_1.BillingSubscriptionView)),
|
|
37
40
|
createdAt: core.serialization.property("created_at", core.serialization.date()),
|
|
38
41
|
entityTraits: core.serialization.property("entity_traits", core.serialization.list(EntityTraitDetailResponseData_1.EntityTraitDetailResponseData)),
|
|
39
42
|
environmentId: core.serialization.property("environment_id", core.serialization.string()),
|
|
@@ -42,8 +45,8 @@ exports.CompanyDetailResponseData = core.serialization.object({
|
|
|
42
45
|
lastSeenAt: core.serialization.property("last_seen_at", core.serialization.date().optional()),
|
|
43
46
|
logoUrl: core.serialization.property("logo_url", core.serialization.string().optional()),
|
|
44
47
|
name: core.serialization.string(),
|
|
45
|
-
plan:
|
|
46
|
-
plans: core.serialization.list(
|
|
48
|
+
plan: CompanyPlanWithBillingSubView_1.CompanyPlanWithBillingSubView.optional(),
|
|
49
|
+
plans: core.serialization.list(GenericPreviewObject_1.GenericPreviewObject),
|
|
47
50
|
traits: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(),
|
|
48
51
|
updatedAt: core.serialization.property("updated_at", core.serialization.date()),
|
|
49
52
|
userCount: core.serialization.property("user_count", core.serialization.number()),
|
|
@@ -14,11 +14,13 @@ export declare namespace CompanyOverrideResponseData {
|
|
|
14
14
|
company_id: string;
|
|
15
15
|
created_at: string;
|
|
16
16
|
environment_id: string;
|
|
17
|
+
expiration_date?: string | null;
|
|
17
18
|
feature?: FeatureResponseData.Raw | null;
|
|
18
19
|
feature_id: string;
|
|
19
20
|
id: string;
|
|
20
21
|
metric_period?: string | null;
|
|
21
|
-
|
|
22
|
+
metric_period_month_reset?: string | null;
|
|
23
|
+
rule_id?: string | null;
|
|
22
24
|
updated_at: string;
|
|
23
25
|
value_bool?: boolean | null;
|
|
24
26
|
value_numeric?: number | null;
|
|
@@ -36,11 +36,13 @@ exports.CompanyOverrideResponseData = core.serialization.object({
|
|
|
36
36
|
companyId: core.serialization.property("company_id", core.serialization.string()),
|
|
37
37
|
createdAt: core.serialization.property("created_at", core.serialization.date()),
|
|
38
38
|
environmentId: core.serialization.property("environment_id", core.serialization.string()),
|
|
39
|
+
expirationDate: core.serialization.property("expiration_date", core.serialization.date().optional()),
|
|
39
40
|
feature: FeatureResponseData_1.FeatureResponseData.optional(),
|
|
40
41
|
featureId: core.serialization.property("feature_id", core.serialization.string()),
|
|
41
42
|
id: core.serialization.string(),
|
|
42
43
|
metricPeriod: core.serialization.property("metric_period", core.serialization.string().optional()),
|
|
43
|
-
|
|
44
|
+
metricPeriodMonthReset: core.serialization.property("metric_period_month_reset", core.serialization.string().optional()),
|
|
45
|
+
ruleId: core.serialization.property("rule_id", core.serialization.string().optional()),
|
|
44
46
|
updatedAt: core.serialization.property("updated_at", core.serialization.date()),
|
|
45
47
|
valueBool: core.serialization.property("value_bool", core.serialization.boolean().optional()),
|
|
46
48
|
valueNumeric: core.serialization.property("value_numeric", core.serialization.number().optional()),
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Schematic from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { BillingProductDetailResponseData } from "./BillingProductDetailResponseData";
|
|
8
|
+
import { PlanEntitlementResponseData } from "./PlanEntitlementResponseData";
|
|
9
|
+
import { FeatureDetailResponseData } from "./FeatureDetailResponseData";
|
|
10
|
+
import { BillingPriceResponseData } from "./BillingPriceResponseData";
|
|
11
|
+
export declare const CompanyPlanDetailResponseData: core.serialization.ObjectSchema<serializers.CompanyPlanDetailResponseData.Raw, Schematic.CompanyPlanDetailResponseData>;
|
|
12
|
+
export declare namespace CompanyPlanDetailResponseData {
|
|
13
|
+
interface Raw {
|
|
14
|
+
audience_type?: string | null;
|
|
15
|
+
billing_product?: BillingProductDetailResponseData.Raw | null;
|
|
16
|
+
company_count: number;
|
|
17
|
+
created_at: string;
|
|
18
|
+
current: boolean;
|
|
19
|
+
description: string;
|
|
20
|
+
entitlements: PlanEntitlementResponseData.Raw[];
|
|
21
|
+
features: FeatureDetailResponseData.Raw[];
|
|
22
|
+
icon: string;
|
|
23
|
+
id: string;
|
|
24
|
+
is_default: boolean;
|
|
25
|
+
is_free: boolean;
|
|
26
|
+
is_trialable: boolean;
|
|
27
|
+
monthly_price?: BillingPriceResponseData.Raw | null;
|
|
28
|
+
name: string;
|
|
29
|
+
plan_type: string;
|
|
30
|
+
trial_days?: number | null;
|
|
31
|
+
updated_at: string;
|
|
32
|
+
valid: boolean;
|
|
33
|
+
yearly_price?: BillingPriceResponseData.Raw | null;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.CompanyPlanDetailResponseData = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const BillingProductDetailResponseData_1 = require("./BillingProductDetailResponseData");
|
|
32
|
+
const PlanEntitlementResponseData_1 = require("./PlanEntitlementResponseData");
|
|
33
|
+
const FeatureDetailResponseData_1 = require("./FeatureDetailResponseData");
|
|
34
|
+
const BillingPriceResponseData_1 = require("./BillingPriceResponseData");
|
|
35
|
+
exports.CompanyPlanDetailResponseData = core.serialization.object({
|
|
36
|
+
audienceType: core.serialization.property("audience_type", core.serialization.string().optional()),
|
|
37
|
+
billingProduct: core.serialization.property("billing_product", BillingProductDetailResponseData_1.BillingProductDetailResponseData.optional()),
|
|
38
|
+
companyCount: core.serialization.property("company_count", core.serialization.number()),
|
|
39
|
+
createdAt: core.serialization.property("created_at", core.serialization.date()),
|
|
40
|
+
current: core.serialization.boolean(),
|
|
41
|
+
description: core.serialization.string(),
|
|
42
|
+
entitlements: core.serialization.list(PlanEntitlementResponseData_1.PlanEntitlementResponseData),
|
|
43
|
+
features: core.serialization.list(FeatureDetailResponseData_1.FeatureDetailResponseData),
|
|
44
|
+
icon: core.serialization.string(),
|
|
45
|
+
id: core.serialization.string(),
|
|
46
|
+
isDefault: core.serialization.property("is_default", core.serialization.boolean()),
|
|
47
|
+
isFree: core.serialization.property("is_free", core.serialization.boolean()),
|
|
48
|
+
isTrialable: core.serialization.property("is_trialable", core.serialization.boolean()),
|
|
49
|
+
monthlyPrice: core.serialization.property("monthly_price", BillingPriceResponseData_1.BillingPriceResponseData.optional()),
|
|
50
|
+
name: core.serialization.string(),
|
|
51
|
+
planType: core.serialization.property("plan_type", core.serialization.string()),
|
|
52
|
+
trialDays: core.serialization.property("trial_days", core.serialization.number().optional()),
|
|
53
|
+
updatedAt: core.serialization.property("updated_at", core.serialization.date()),
|
|
54
|
+
valid: core.serialization.boolean(),
|
|
55
|
+
yearlyPrice: core.serialization.property("yearly_price", BillingPriceResponseData_1.BillingPriceResponseData.optional()),
|
|
56
|
+
});
|
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Schematic from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
export declare const
|
|
8
|
-
export declare namespace
|
|
7
|
+
export declare const CompanyPlanWithBillingSubView: core.serialization.ObjectSchema<serializers.CompanyPlanWithBillingSubView.Raw, Schematic.CompanyPlanWithBillingSubView>;
|
|
8
|
+
export declare namespace CompanyPlanWithBillingSubView {
|
|
9
9
|
interface Raw {
|
|
10
|
+
billing_product_id?: string | null;
|
|
10
11
|
description?: string | null;
|
|
11
12
|
id: string;
|
|
12
13
|
image_url?: string | null;
|
|
@@ -26,9 +26,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.CompanyPlanWithBillingSubView = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
31
|
+
exports.CompanyPlanWithBillingSubView = core.serialization.object({
|
|
32
|
+
billingProductId: core.serialization.property("billing_product_id", core.serialization.string().optional()),
|
|
32
33
|
description: core.serialization.string().optional(),
|
|
33
34
|
id: core.serialization.string(),
|
|
34
35
|
imageUrl: core.serialization.property("image_url", core.serialization.string().optional()),
|
|
@@ -4,14 +4,21 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Schematic from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
+
import { InvoiceResponseData } from "./InvoiceResponseData";
|
|
8
|
+
import { PaymentMethodResponseData } from "./PaymentMethodResponseData";
|
|
7
9
|
import { BillingProductForSubscriptionResponseData } from "./BillingProductForSubscriptionResponseData";
|
|
8
10
|
export declare const CompanySubscriptionResponseData: core.serialization.ObjectSchema<serializers.CompanySubscriptionResponseData.Raw, Schematic.CompanySubscriptionResponseData>;
|
|
9
11
|
export declare namespace CompanySubscriptionResponseData {
|
|
10
12
|
interface Raw {
|
|
13
|
+
currency: string;
|
|
11
14
|
customer_external_id: string;
|
|
12
15
|
expired_at?: string | null;
|
|
13
16
|
interval: string;
|
|
17
|
+
latest_invoice?: InvoiceResponseData.Raw | null;
|
|
18
|
+
payment_method?: PaymentMethodResponseData.Raw | null;
|
|
14
19
|
products: BillingProductForSubscriptionResponseData.Raw[];
|
|
20
|
+
status: string;
|
|
15
21
|
subscription_external_id: string;
|
|
22
|
+
total_price: number;
|
|
16
23
|
}
|
|
17
24
|
}
|
|
@@ -28,11 +28,18 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.CompanySubscriptionResponseData = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
+
const InvoiceResponseData_1 = require("./InvoiceResponseData");
|
|
32
|
+
const PaymentMethodResponseData_1 = require("./PaymentMethodResponseData");
|
|
31
33
|
const BillingProductForSubscriptionResponseData_1 = require("./BillingProductForSubscriptionResponseData");
|
|
32
34
|
exports.CompanySubscriptionResponseData = core.serialization.object({
|
|
35
|
+
currency: core.serialization.string(),
|
|
33
36
|
customerExternalId: core.serialization.property("customer_external_id", core.serialization.string()),
|
|
34
37
|
expiredAt: core.serialization.property("expired_at", core.serialization.date().optional()),
|
|
35
38
|
interval: core.serialization.string(),
|
|
39
|
+
latestInvoice: core.serialization.property("latest_invoice", InvoiceResponseData_1.InvoiceResponseData.optional()),
|
|
40
|
+
paymentMethod: core.serialization.property("payment_method", PaymentMethodResponseData_1.PaymentMethodResponseData.optional()),
|
|
36
41
|
products: core.serialization.list(BillingProductForSubscriptionResponseData_1.BillingProductForSubscriptionResponseData),
|
|
42
|
+
status: core.serialization.string(),
|
|
37
43
|
subscriptionExternalId: core.serialization.property("subscription_external_id", core.serialization.string()),
|
|
44
|
+
totalPrice: core.serialization.property("total_price", core.serialization.number()),
|
|
38
45
|
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Schematic from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const ComponentCapabilities: core.serialization.ObjectSchema<serializers.ComponentCapabilities.Raw, Schematic.ComponentCapabilities>;
|
|
8
|
+
export declare namespace ComponentCapabilities {
|
|
9
|
+
interface Raw {
|
|
10
|
+
checkout: boolean;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -26,6 +26,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.ComponentCapabilities = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
31
|
+
exports.ComponentCapabilities = core.serialization.object({
|
|
32
|
+
checkout: core.serialization.boolean(),
|
|
33
|
+
});
|
|
@@ -4,14 +4,25 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Schematic from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
+
import { CompanyPlanDetailResponseData } from "./CompanyPlanDetailResponseData";
|
|
8
|
+
import { ComponentCapabilities } from "./ComponentCapabilities";
|
|
7
9
|
import { CompanyDetailResponseData } from "./CompanyDetailResponseData";
|
|
8
10
|
import { ComponentResponseData } from "./ComponentResponseData";
|
|
9
11
|
import { FeatureUsageDetailResponseData } from "./FeatureUsageDetailResponseData";
|
|
12
|
+
import { StripeEmbedInfo } from "./StripeEmbedInfo";
|
|
13
|
+
import { CompanySubscriptionResponseData } from "./CompanySubscriptionResponseData";
|
|
14
|
+
import { InvoiceResponseData } from "./InvoiceResponseData";
|
|
10
15
|
export declare const ComponentHydrateResponseData: core.serialization.ObjectSchema<serializers.ComponentHydrateResponseData.Raw, Schematic.ComponentHydrateResponseData>;
|
|
11
16
|
export declare namespace ComponentHydrateResponseData {
|
|
12
17
|
interface Raw {
|
|
18
|
+
active_add_ons: CompanyPlanDetailResponseData.Raw[];
|
|
19
|
+
active_plans: CompanyPlanDetailResponseData.Raw[];
|
|
20
|
+
capabilities?: ComponentCapabilities.Raw | null;
|
|
13
21
|
company?: CompanyDetailResponseData.Raw | null;
|
|
14
22
|
component?: ComponentResponseData.Raw | null;
|
|
15
23
|
feature_usage?: FeatureUsageDetailResponseData.Raw | null;
|
|
24
|
+
stripe_embed?: StripeEmbedInfo.Raw | null;
|
|
25
|
+
subscription?: CompanySubscriptionResponseData.Raw | null;
|
|
26
|
+
upcoming_invoice?: InvoiceResponseData.Raw | null;
|
|
16
27
|
}
|
|
17
28
|
}
|
|
@@ -28,11 +28,22 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.ComponentHydrateResponseData = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
+
const CompanyPlanDetailResponseData_1 = require("./CompanyPlanDetailResponseData");
|
|
32
|
+
const ComponentCapabilities_1 = require("./ComponentCapabilities");
|
|
31
33
|
const CompanyDetailResponseData_1 = require("./CompanyDetailResponseData");
|
|
32
34
|
const ComponentResponseData_1 = require("./ComponentResponseData");
|
|
33
35
|
const FeatureUsageDetailResponseData_1 = require("./FeatureUsageDetailResponseData");
|
|
36
|
+
const StripeEmbedInfo_1 = require("./StripeEmbedInfo");
|
|
37
|
+
const CompanySubscriptionResponseData_1 = require("./CompanySubscriptionResponseData");
|
|
38
|
+
const InvoiceResponseData_1 = require("./InvoiceResponseData");
|
|
34
39
|
exports.ComponentHydrateResponseData = core.serialization.object({
|
|
40
|
+
activeAddOns: core.serialization.property("active_add_ons", core.serialization.list(CompanyPlanDetailResponseData_1.CompanyPlanDetailResponseData)),
|
|
41
|
+
activePlans: core.serialization.property("active_plans", core.serialization.list(CompanyPlanDetailResponseData_1.CompanyPlanDetailResponseData)),
|
|
42
|
+
capabilities: ComponentCapabilities_1.ComponentCapabilities.optional(),
|
|
35
43
|
company: CompanyDetailResponseData_1.CompanyDetailResponseData.optional(),
|
|
36
44
|
component: ComponentResponseData_1.ComponentResponseData.optional(),
|
|
37
45
|
featureUsage: core.serialization.property("feature_usage", FeatureUsageDetailResponseData_1.FeatureUsageDetailResponseData.optional()),
|
|
46
|
+
stripeEmbed: core.serialization.property("stripe_embed", StripeEmbedInfo_1.StripeEmbedInfo.optional()),
|
|
47
|
+
subscription: CompanySubscriptionResponseData_1.CompanySubscriptionResponseData.optional(),
|
|
48
|
+
upcomingInvoice: core.serialization.property("upcoming_invoice", InvoiceResponseData_1.InvoiceResponseData.optional()),
|
|
38
49
|
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Schematic from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { CompanyPlanDetailResponseData } from "./CompanyPlanDetailResponseData";
|
|
8
|
+
import { ComponentCapabilities } from "./ComponentCapabilities";
|
|
9
|
+
import { CompanyDetailResponseData } from "./CompanyDetailResponseData";
|
|
10
|
+
import { ComponentResponseData } from "./ComponentResponseData";
|
|
11
|
+
import { FeatureUsageDetailResponseData } from "./FeatureUsageDetailResponseData";
|
|
12
|
+
import { InvoiceResponseData } from "./InvoiceResponseData";
|
|
13
|
+
import { StripeEmbedInfo } from "./StripeEmbedInfo";
|
|
14
|
+
import { CompanySubscriptionResponseData } from "./CompanySubscriptionResponseData";
|
|
15
|
+
export declare const ComponentPreviewResponseData: core.serialization.ObjectSchema<serializers.ComponentPreviewResponseData.Raw, Schematic.ComponentPreviewResponseData>;
|
|
16
|
+
export declare namespace ComponentPreviewResponseData {
|
|
17
|
+
interface Raw {
|
|
18
|
+
active_add_ons: CompanyPlanDetailResponseData.Raw[];
|
|
19
|
+
active_plans: CompanyPlanDetailResponseData.Raw[];
|
|
20
|
+
capabilities?: ComponentCapabilities.Raw | null;
|
|
21
|
+
company?: CompanyDetailResponseData.Raw | null;
|
|
22
|
+
component?: ComponentResponseData.Raw | null;
|
|
23
|
+
feature_usage?: FeatureUsageDetailResponseData.Raw | null;
|
|
24
|
+
invoices: InvoiceResponseData.Raw[];
|
|
25
|
+
stripe_embed?: StripeEmbedInfo.Raw | null;
|
|
26
|
+
subscription?: CompanySubscriptionResponseData.Raw | null;
|
|
27
|
+
upcoming_invoice?: InvoiceResponseData.Raw | null;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ComponentPreviewResponseData = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
const CompanyPlanDetailResponseData_1 = require("./CompanyPlanDetailResponseData");
|
|
32
|
+
const ComponentCapabilities_1 = require("./ComponentCapabilities");
|
|
33
|
+
const CompanyDetailResponseData_1 = require("./CompanyDetailResponseData");
|
|
34
|
+
const ComponentResponseData_1 = require("./ComponentResponseData");
|
|
35
|
+
const FeatureUsageDetailResponseData_1 = require("./FeatureUsageDetailResponseData");
|
|
36
|
+
const InvoiceResponseData_1 = require("./InvoiceResponseData");
|
|
37
|
+
const StripeEmbedInfo_1 = require("./StripeEmbedInfo");
|
|
38
|
+
const CompanySubscriptionResponseData_1 = require("./CompanySubscriptionResponseData");
|
|
39
|
+
exports.ComponentPreviewResponseData = core.serialization.object({
|
|
40
|
+
activeAddOns: core.serialization.property("active_add_ons", core.serialization.list(CompanyPlanDetailResponseData_1.CompanyPlanDetailResponseData)),
|
|
41
|
+
activePlans: core.serialization.property("active_plans", core.serialization.list(CompanyPlanDetailResponseData_1.CompanyPlanDetailResponseData)),
|
|
42
|
+
capabilities: ComponentCapabilities_1.ComponentCapabilities.optional(),
|
|
43
|
+
company: CompanyDetailResponseData_1.CompanyDetailResponseData.optional(),
|
|
44
|
+
component: ComponentResponseData_1.ComponentResponseData.optional(),
|
|
45
|
+
featureUsage: core.serialization.property("feature_usage", FeatureUsageDetailResponseData_1.FeatureUsageDetailResponseData.optional()),
|
|
46
|
+
invoices: core.serialization.list(InvoiceResponseData_1.InvoiceResponseData),
|
|
47
|
+
stripeEmbed: core.serialization.property("stripe_embed", StripeEmbedInfo_1.StripeEmbedInfo.optional()),
|
|
48
|
+
subscription: CompanySubscriptionResponseData_1.CompanySubscriptionResponseData.optional(),
|
|
49
|
+
upcomingInvoice: core.serialization.property("upcoming_invoice", InvoiceResponseData_1.InvoiceResponseData.optional()),
|
|
50
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Schematic from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { CreateEntitlementReqCommonMetricPeriod } from "./CreateEntitlementReqCommonMetricPeriod";
|
|
8
|
+
import { CreateEntitlementReqCommonMetricPeriodMonthReset } from "./CreateEntitlementReqCommonMetricPeriodMonthReset";
|
|
9
|
+
import { CreateEntitlementReqCommonValueType } from "./CreateEntitlementReqCommonValueType";
|
|
10
|
+
export declare const CreateEntitlementReqCommon: core.serialization.ObjectSchema<serializers.CreateEntitlementReqCommon.Raw, Schematic.CreateEntitlementReqCommon>;
|
|
11
|
+
export declare namespace CreateEntitlementReqCommon {
|
|
12
|
+
interface Raw {
|
|
13
|
+
feature_id: string;
|
|
14
|
+
metered_price_id?: string | null;
|
|
15
|
+
metric_period?: CreateEntitlementReqCommonMetricPeriod.Raw | null;
|
|
16
|
+
metric_period_month_reset?: CreateEntitlementReqCommonMetricPeriodMonthReset.Raw | null;
|
|
17
|
+
value_bool?: boolean | null;
|
|
18
|
+
value_numeric?: number | null;
|
|
19
|
+
value_trait_id?: string | null;
|
|
20
|
+
value_type: CreateEntitlementReqCommonValueType.Raw;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -26,15 +26,18 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.CreateEntitlementReqCommon = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
|
|
31
|
+
const CreateEntitlementReqCommonMetricPeriod_1 = require("./CreateEntitlementReqCommonMetricPeriod");
|
|
32
|
+
const CreateEntitlementReqCommonMetricPeriodMonthReset_1 = require("./CreateEntitlementReqCommonMetricPeriodMonthReset");
|
|
33
|
+
const CreateEntitlementReqCommonValueType_1 = require("./CreateEntitlementReqCommonValueType");
|
|
34
|
+
exports.CreateEntitlementReqCommon = core.serialization.object({
|
|
34
35
|
featureId: core.serialization.property("feature_id", core.serialization.string()),
|
|
35
|
-
|
|
36
|
+
meteredPriceId: core.serialization.property("metered_price_id", core.serialization.string().optional()),
|
|
37
|
+
metricPeriod: core.serialization.property("metric_period", CreateEntitlementReqCommonMetricPeriod_1.CreateEntitlementReqCommonMetricPeriod.optional()),
|
|
38
|
+
metricPeriodMonthReset: core.serialization.property("metric_period_month_reset", CreateEntitlementReqCommonMetricPeriodMonthReset_1.CreateEntitlementReqCommonMetricPeriodMonthReset.optional()),
|
|
36
39
|
valueBool: core.serialization.property("value_bool", core.serialization.boolean().optional()),
|
|
37
40
|
valueNumeric: core.serialization.property("value_numeric", core.serialization.number().optional()),
|
|
38
41
|
valueTraitId: core.serialization.property("value_trait_id", core.serialization.string().optional()),
|
|
39
|
-
valueType: core.serialization.property("value_type",
|
|
42
|
+
valueType: core.serialization.property("value_type", CreateEntitlementReqCommonValueType_1.CreateEntitlementReqCommonValueType),
|
|
40
43
|
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Schematic from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const CreateEntitlementReqCommonMetricPeriod: core.serialization.Schema<serializers.CreateEntitlementReqCommonMetricPeriod.Raw, Schematic.CreateEntitlementReqCommonMetricPeriod>;
|
|
8
|
+
export declare namespace CreateEntitlementReqCommonMetricPeriod {
|
|
9
|
+
type Raw = "all_time" | "billing" | "current_month" | "current_week" | "current_day";
|
|
10
|
+
}
|
|
@@ -26,9 +26,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.CreateEntitlementReqCommonMetricPeriod = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
|
31
|
-
exports.
|
|
32
|
-
id: core.serialization.string(),
|
|
33
|
-
name: core.serialization.string(),
|
|
34
|
-
});
|
|
31
|
+
exports.CreateEntitlementReqCommonMetricPeriod = core.serialization.enum_(["all_time", "billing", "current_month", "current_week", "current_day"]);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Schematic from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const CreateEntitlementReqCommonMetricPeriodMonthReset: core.serialization.Schema<serializers.CreateEntitlementReqCommonMetricPeriodMonthReset.Raw, Schematic.CreateEntitlementReqCommonMetricPeriodMonthReset>;
|
|
8
|
+
export declare namespace CreateEntitlementReqCommonMetricPeriodMonthReset {
|
|
9
|
+
type Raw = "first_of_month" | "billing_cycle";
|
|
10
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.CreateEntitlementReqCommonMetricPeriodMonthReset = void 0;
|
|
30
|
+
const core = __importStar(require("../../core"));
|
|
31
|
+
exports.CreateEntitlementReqCommonMetricPeriodMonthReset = core.serialization.enum_(["first_of_month", "billing_cycle"]);
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Schematic from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
-
export declare const
|
|
8
|
-
export declare namespace
|
|
7
|
+
export declare const CreateEntitlementReqCommonValueType: core.serialization.Schema<serializers.CreateEntitlementReqCommonValueType.Raw, Schematic.CreateEntitlementReqCommonValueType>;
|
|
8
|
+
export declare namespace CreateEntitlementReqCommonValueType {
|
|
9
9
|
type Raw = "boolean" | "numeric" | "trait" | "unlimited";
|
|
10
10
|
}
|