@schematichq/schematic-typescript-node 1.2.1 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +114 -0
- package/dist/Client.d.ts +2 -2
- package/dist/api/resources/accesstokens/client/Client.d.ts +3 -3
- package/dist/api/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.d.ts +1 -3
- package/dist/api/resources/accounts/client/Client.d.ts +29 -8
- package/dist/api/resources/accounts/client/requests/CountApiKeysRequest.d.ts +4 -1
- package/dist/api/resources/accounts/client/requests/CountApiRequestsRequest.d.ts +7 -1
- package/dist/api/resources/accounts/client/requests/ListApiKeysRequest.d.ts +4 -1
- package/dist/api/resources/accounts/client/requests/ListApiRequestsRequest.d.ts +7 -1
- package/dist/api/resources/accounts/client/requests/ListEnvironmentsRequest.d.ts +4 -1
- package/dist/api/resources/accounts/types/ListApiKeysResponse.d.ts +0 -1
- package/dist/api/resources/accounts/types/ListApiRequestsResponse.d.ts +0 -1
- package/dist/api/resources/accounts/types/ListEnvironmentsResponse.d.ts +0 -1
- package/dist/api/resources/billing/client/Client.d.ts +87 -15
- package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +12 -1
- package/dist/api/resources/billing/client/requests/CountCustomersRequest.d.ts +7 -1
- package/dist/api/resources/billing/client/requests/{CreateBillingSubscriptionsRequestBody.d.ts → CreateBillingSubscriptionRequestBody.d.ts} +3 -2
- package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +12 -1
- package/dist/api/resources/billing/client/requests/ListCouponsRequest.d.ts +6 -1
- package/dist/api/resources/billing/client/requests/ListCustomersWithSubscriptionsRequest.d.ts +7 -1
- package/dist/api/resources/billing/client/requests/ListInvoicesRequest.d.ts +4 -1
- package/dist/api/resources/billing/client/requests/ListMetersRequest.d.ts +5 -1
- package/dist/api/resources/billing/client/requests/ListPaymentMethodsRequest.d.ts +4 -1
- package/dist/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +12 -1
- package/dist/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +28 -3
- package/dist/api/resources/billing/client/requests/index.d.ts +1 -1
- package/dist/api/resources/billing/types/CreateBillingSubscriptionRequestBodyTrialEndSetting.d.ts +8 -0
- package/dist/api/resources/billing/types/ListBillingProductsResponse.d.ts +0 -1
- package/dist/api/resources/billing/types/ListCouponsResponse.d.ts +0 -1
- package/dist/api/resources/billing/types/ListCustomersWithSubscriptionsResponse.d.ts +0 -1
- package/dist/api/resources/billing/types/ListInvoicesResponse.d.ts +0 -1
- package/dist/api/resources/billing/types/ListMetersResponse.d.ts +0 -1
- package/dist/api/resources/billing/types/ListPaymentMethodsResponse.d.ts +0 -1
- package/dist/api/resources/billing/types/ListProductPricesResponse.d.ts +0 -1
- package/dist/api/resources/billing/types/SearchBillingPricesParams.d.ts +7 -0
- package/dist/api/resources/billing/types/SearchBillingPricesResponse.d.ts +0 -1
- package/dist/api/resources/billing/types/index.d.ts +2 -2
- package/dist/api/resources/checkout/client/Client.d.ts +59 -3
- package/dist/api/resources/checkout/types/CheckoutInternalResponse.d.ts +1 -1
- package/dist/api/resources/checkout/types/ManagePlanResponse.d.ts +9 -0
- package/dist/api/resources/checkout/types/PreviewManagePlanResponse.d.ts +9 -0
- package/dist/api/resources/checkout/types/index.d.ts +2 -0
- package/dist/api/resources/companies/client/Client.d.ts +132 -19
- package/dist/api/resources/companies/client/requests/CountCompaniesForAdvancedFilterRequest.d.ts +15 -2
- package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +9 -1
- package/dist/api/resources/companies/client/requests/CountEntityKeyDefinitionsRequest.d.ts +6 -1
- package/dist/api/resources/companies/client/requests/CountEntityTraitDefinitionsRequest.d.ts +7 -1
- package/dist/api/resources/companies/client/requests/CountPlanTraitsRequest.d.ts +6 -1
- package/dist/api/resources/companies/client/requests/CountUsersRequest.d.ts +7 -1
- package/dist/api/resources/companies/client/requests/GetActiveCompanySubscriptionRequest.d.ts +5 -1
- package/dist/api/resources/companies/client/requests/GetActiveDealsRequest.d.ts +3 -1
- package/dist/api/resources/companies/client/requests/GetEntityTraitValuesRequest.d.ts +4 -1
- package/dist/api/resources/companies/client/requests/ListCompaniesForAdvancedFilterRequest.d.ts +15 -2
- package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +9 -1
- package/dist/api/resources/companies/client/requests/ListCompanyMembershipsRequest.d.ts +6 -1
- package/dist/api/resources/companies/client/requests/ListEntityKeyDefinitionsRequest.d.ts +6 -1
- package/dist/api/resources/companies/client/requests/ListEntityTraitDefinitionsRequest.d.ts +7 -1
- package/dist/api/resources/companies/client/requests/ListPlanTraitsRequest.d.ts +6 -1
- package/dist/api/resources/companies/client/requests/ListUsersRequest.d.ts +7 -1
- package/dist/api/resources/companies/client/requests/UpdatePlanTraitBulkRequestBody.d.ts +18 -0
- package/dist/api/resources/companies/client/requests/index.d.ts +1 -0
- package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterParams.d.ts +3 -1
- package/dist/api/resources/companies/types/GetActiveCompanySubscriptionResponse.d.ts +0 -1
- package/dist/api/resources/companies/types/GetActiveDealsResponse.d.ts +0 -1
- package/dist/api/resources/companies/types/GetEntityTraitValuesResponse.d.ts +0 -1
- package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterParams.d.ts +3 -1
- package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterResponse.d.ts +0 -1
- package/dist/api/resources/companies/types/ListCompaniesResponse.d.ts +0 -1
- package/dist/api/resources/companies/types/ListCompanyMembershipsResponse.d.ts +0 -1
- package/dist/api/resources/companies/types/ListEntityKeyDefinitionsResponse.d.ts +0 -1
- package/dist/api/resources/companies/types/ListEntityTraitDefinitionsResponse.d.ts +0 -1
- package/dist/api/resources/companies/types/ListPlanTraitsResponse.d.ts +0 -1
- package/dist/api/resources/companies/types/ListUsersResponse.d.ts +0 -1
- package/dist/api/resources/companies/types/UpdatePlanTraitsBulkResponse.d.ts +9 -0
- package/dist/api/resources/companies/types/index.d.ts +1 -0
- package/dist/api/resources/components/client/Client.d.ts +17 -6
- package/dist/api/resources/components/client/requests/CountComponentsRequest.d.ts +5 -1
- package/dist/api/resources/components/client/requests/ListComponentsRequest.d.ts +5 -1
- package/dist/api/resources/components/client/requests/PreviewComponentDataRequest.d.ts +4 -1
- package/dist/api/resources/components/types/ListComponentsResponse.d.ts +0 -1
- package/dist/api/resources/credits/client/Client.d.ts +104 -12
- package/dist/api/resources/credits/client/requests/CountBillingCreditsGrantsRequest.d.ts +5 -1
- package/dist/api/resources/credits/client/requests/CountBillingCreditsRequest.d.ts +5 -1
- package/dist/api/resources/credits/client/requests/CountBillingPlanCreditGrantsRequest.d.ts +6 -1
- package/dist/api/resources/credits/client/requests/CountCreditBundlesRequest.d.ts +7 -1
- package/dist/api/resources/credits/client/requests/CountCreditLedgerRequest.d.ts +33 -0
- package/dist/api/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.d.ts +4 -0
- package/dist/api/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +5 -0
- package/dist/api/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +1 -1
- package/dist/api/resources/credits/client/requests/GetEnrichedCreditLedgerRequest.d.ts +33 -0
- package/dist/api/resources/credits/client/requests/ListBillingCreditsRequest.d.ts +5 -1
- package/dist/api/resources/credits/client/requests/ListBillingPlanCreditGrantsRequest.d.ts +6 -1
- package/dist/api/resources/credits/client/requests/ListCompanyGrantsRequest.d.ts +7 -1
- package/dist/api/resources/credits/client/requests/ListCreditBundlesRequest.d.ts +7 -1
- package/dist/api/resources/credits/client/requests/ListGrantsForCreditRequest.d.ts +5 -1
- package/dist/api/resources/credits/client/requests/UpdateCreditBundleDetailsRequestBody.d.ts +1 -0
- package/dist/api/resources/credits/client/requests/index.d.ts +2 -0
- package/dist/api/resources/credits/types/CountCreditLedgerParams.d.ts +19 -0
- package/dist/api/resources/credits/types/CountCreditLedgerRequestPeriod.d.ts +10 -0
- package/dist/api/resources/credits/types/CountCreditLedgerResponse.d.ts +9 -0
- package/dist/api/resources/credits/types/CountCreditLedgerResponseParamsPeriod.d.ts +10 -0
- package/dist/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyExpiryType.d.ts +11 -0
- package/dist/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyExpiryUnit.d.ts +8 -0
- package/dist/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetType.d.ts +8 -0
- package/dist/api/resources/credits/types/CreateCompanyCreditGrantExpiryType.d.ts +11 -0
- package/dist/api/resources/credits/types/CreateCompanyCreditGrantExpiryUnit.d.ts +8 -0
- package/dist/api/resources/credits/types/CreateCreditBundleRequestBodyExpiryType.d.ts +5 -2
- package/dist/api/resources/credits/types/CreateCreditBundleRequestBodyExpiryUnit.d.ts +8 -0
- package/dist/api/resources/credits/types/GetEnrichedCreditLedgerParams.d.ts +19 -0
- package/dist/api/resources/credits/types/GetEnrichedCreditLedgerRequestPeriod.d.ts +10 -0
- package/dist/api/resources/credits/types/GetEnrichedCreditLedgerResponse.d.ts +9 -0
- package/dist/api/resources/credits/types/GetEnrichedCreditLedgerResponseParamsPeriod.d.ts +10 -0
- package/dist/api/resources/credits/types/ListBillingCreditsResponse.d.ts +0 -1
- package/dist/api/resources/credits/types/ListBillingPlanCreditGrantsResponse.d.ts +0 -1
- package/dist/api/resources/credits/types/ListCompanyGrantsResponse.d.ts +0 -1
- package/dist/api/resources/credits/types/ListCreditBundlesResponse.d.ts +0 -1
- package/dist/api/resources/credits/types/ListGrantsForCreditResponse.d.ts +0 -1
- package/dist/api/resources/credits/types/UpdateCreditBundleDetailsRequestBodyExpiryType.d.ts +5 -2
- package/dist/api/resources/credits/types/UpdateCreditBundleDetailsRequestBodyExpiryUnit.d.ts +8 -0
- package/dist/api/resources/credits/types/ZeroOutGrantRequestBodyReason.d.ts +2 -1
- package/dist/api/resources/credits/types/index.d.ts +15 -0
- package/dist/api/resources/crm/client/Client.d.ts +8 -4
- package/dist/api/resources/crm/client/requests/ListCrmProductsRequest.d.ts +5 -1
- package/dist/api/resources/crm/types/ListCrmProductsResponse.d.ts +0 -1
- package/dist/api/resources/dataexports/client/Client.d.ts +3 -3
- package/dist/api/resources/entitlements/client/Client.d.ts +65 -13
- package/dist/api/resources/entitlements/client/requests/CountCompanyOverridesRequest.d.ts +8 -1
- package/dist/api/resources/entitlements/client/requests/CountFeatureCompaniesRequest.d.ts +4 -1
- package/dist/api/resources/entitlements/client/requests/CountFeatureUsageRequest.d.ts +7 -1
- package/dist/api/resources/entitlements/client/requests/CountFeatureUsersRequest.d.ts +4 -1
- package/dist/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +8 -1
- package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +1 -0
- package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -0
- package/dist/api/resources/entitlements/client/requests/ListCompanyOverridesRequest.d.ts +8 -1
- package/dist/api/resources/entitlements/client/requests/ListFeatureCompaniesRequest.d.ts +4 -1
- package/dist/api/resources/entitlements/client/requests/ListFeatureUsageRequest.d.ts +7 -1
- package/dist/api/resources/entitlements/client/requests/ListFeatureUsersRequest.d.ts +4 -1
- package/dist/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +8 -1
- package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +1 -0
- package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -0
- package/dist/api/resources/entitlements/types/ListCompanyOverridesResponse.d.ts +0 -1
- package/dist/api/resources/entitlements/types/ListFeatureCompaniesResponse.d.ts +0 -1
- package/dist/api/resources/entitlements/types/ListFeatureUsageResponse.d.ts +0 -1
- package/dist/api/resources/entitlements/types/ListFeatureUsersResponse.d.ts +0 -1
- package/dist/api/resources/entitlements/types/ListPlanEntitlementsResponse.d.ts +0 -1
- package/dist/api/resources/events/client/Client.d.ts +16 -5
- package/dist/api/resources/events/client/requests/GetEventSummariesRequest.d.ts +5 -1
- package/dist/api/resources/events/client/requests/ListEventsRequest.d.ts +8 -1
- package/dist/api/resources/events/types/GetEventSummariesResponse.d.ts +0 -1
- package/dist/api/resources/events/types/ListEventsResponse.d.ts +0 -1
- package/dist/api/resources/features/client/Client.d.ts +31 -7
- package/dist/api/resources/features/client/requests/CountFeaturesRequest.d.ts +11 -1
- package/dist/api/resources/features/client/requests/CountFlagsRequest.d.ts +9 -1
- package/dist/api/resources/features/client/requests/ListFeaturesRequest.d.ts +11 -1
- package/dist/api/resources/features/client/requests/ListFlagsRequest.d.ts +9 -1
- package/dist/api/resources/features/types/CountFeaturesParams.d.ts +1 -0
- package/dist/api/resources/features/types/CountFlagsParams.d.ts +1 -0
- package/dist/api/resources/features/types/ListAudienceCompaniesResponse.d.ts +0 -1
- package/dist/api/resources/features/types/ListAudienceUsersResponse.d.ts +0 -1
- package/dist/api/resources/features/types/ListFeaturesParams.d.ts +1 -0
- package/dist/api/resources/features/types/ListFeaturesResponse.d.ts +0 -1
- package/dist/api/resources/features/types/ListFlagsParams.d.ts +1 -0
- package/dist/api/resources/features/types/ListFlagsResponse.d.ts +0 -1
- package/dist/api/resources/plangroups/client/Client.d.ts +21 -5
- package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +22 -1
- package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +22 -1
- package/dist/api/resources/plans/client/Client.d.ts +50 -5
- package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +31 -1
- package/dist/api/resources/plans/client/requests/ListPlanIssuesRequest.d.ts +12 -0
- package/dist/api/resources/plans/client/requests/ListPlansRequest.d.ts +31 -1
- package/dist/api/resources/plans/client/requests/index.d.ts +1 -0
- package/dist/api/resources/plans/types/CountPlansParams.d.ts +8 -0
- package/dist/api/resources/plans/types/ListPlanIssuesParams.d.ts +9 -0
- package/dist/api/resources/plans/types/ListPlanIssuesResponse.d.ts +9 -0
- package/dist/api/resources/plans/types/ListPlansParams.d.ts +8 -0
- package/dist/api/resources/plans/types/ListPlansResponse.d.ts +0 -1
- package/dist/api/resources/plans/types/index.d.ts +2 -0
- package/dist/api/resources/webhooks/client/Client.d.ts +25 -7
- package/dist/api/resources/webhooks/client/requests/CountWebhookEventsRequest.d.ts +6 -1
- package/dist/api/resources/webhooks/client/requests/CountWebhooksRequest.d.ts +5 -1
- package/dist/api/resources/webhooks/client/requests/ListWebhookEventsRequest.d.ts +6 -1
- package/dist/api/resources/webhooks/client/requests/ListWebhooksRequest.d.ts +5 -1
- package/dist/api/resources/webhooks/types/ListWebhookEventsResponse.d.ts +0 -1
- package/dist/api/resources/webhooks/types/ListWebhooksResponse.d.ts +0 -1
- package/dist/api/types/ApiKeyCreateResponseData.d.ts +0 -3
- package/dist/api/types/ApiKeyRequestResponseData.d.ts +0 -3
- package/dist/api/types/ApiKeyResponseData.d.ts +0 -3
- package/dist/api/types/BillingCreditBundleResponseData.d.ts +1 -0
- package/dist/api/types/BillingCreditBundleView.d.ts +1 -0
- package/dist/api/types/BillingCreditLedgerResponseData.d.ts +11 -0
- package/dist/api/types/BillingCustomerResponseData.d.ts +0 -3
- package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +7 -0
- package/dist/api/types/BillingProductDetailResponseData.d.ts +2 -1
- package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +2 -0
- package/dist/api/types/BillingProductPlanResponseData.d.ts +0 -3
- package/dist/api/types/BillingProductPricing.d.ts +2 -0
- package/dist/api/types/BillingProductResponseData.d.ts +2 -1
- package/dist/api/types/BillingSubscriptionView.d.ts +0 -3
- package/dist/api/types/CheckFlagResponseData.d.ts +0 -3
- package/dist/api/types/CheckFlagsResponseData.d.ts +0 -3
- package/dist/api/types/CheckoutDataResponseData.d.ts +0 -3
- package/dist/api/types/CheckoutSettingsResponseData.d.ts +8 -0
- package/dist/api/types/CheckoutSubscription.d.ts +25 -0
- package/dist/api/types/CompanyDetailResponseData.d.ts +1 -0
- package/dist/api/types/CompanyLedgerResponseData.d.ts +8 -0
- package/dist/api/types/CompanyOverrideNoteResponseData.d.ts +11 -0
- package/dist/api/types/CompanyOverrideResponseData.d.ts +1 -0
- package/dist/api/types/CompanyPlanDetailResponseData.d.ts +1 -0
- package/dist/api/types/CompanyViewWithFeatureUsageResponseData.d.ts +1 -0
- package/dist/api/types/ComponentCheckoutSettings.d.ts +9 -0
- package/dist/api/types/ComponentHydrateResponseData.d.ts +4 -0
- package/dist/api/types/ComponentPreviewResponseData.d.ts +4 -3
- package/dist/api/types/ComponentResponseData.d.ts +0 -3
- package/dist/api/types/Condition.d.ts +21 -0
- package/dist/api/types/ConditionGroup.d.ts +7 -0
- package/dist/api/types/CountResponse.d.ts +2 -4
- package/dist/api/types/CreditCompanyGrantView.d.ts +3 -0
- package/dist/api/types/CreditGrantDetail.d.ts +10 -0
- package/dist/api/types/CreditGrantDetailGrantReason.d.ts +9 -0
- package/dist/api/types/CreditLedgerEnrichedEntryResponseData.d.ts +27 -0
- package/dist/api/types/CreditUsage.d.ts +14 -0
- package/dist/api/types/CreditUsageResponseData.d.ts +14 -0
- package/dist/api/types/CrmDealResponseData.d.ts +0 -3
- package/dist/api/types/CrmLineItemResponseData.d.ts +0 -3
- package/dist/api/types/CrmProductResponseData.d.ts +0 -3
- package/dist/api/types/DataExportResponseData.d.ts +0 -3
- package/dist/api/types/EnvironmentDetailResponseData.d.ts +0 -3
- package/dist/api/types/EnvironmentResponseData.d.ts +0 -3
- package/dist/api/types/FeatureCompanyResponseData.d.ts +34 -1
- package/dist/api/types/FeatureCompanyResponseDataCreditGrantReason.d.ts +12 -0
- package/dist/api/types/FeatureCompanyUserResponseDataAllocationType.d.ts +2 -1
- package/dist/api/types/FeatureLedgerResponseData.d.ts +9 -0
- package/dist/api/types/FeatureUsageDataResponseData.d.ts +8 -0
- package/dist/api/types/FeatureUsageResponseData.d.ts +25 -0
- package/dist/api/types/FeatureUsageResponseDataCreditGrantReason.d.ts +12 -0
- package/dist/api/types/IssueTemporaryAccessTokenResponseData.d.ts +0 -3
- package/dist/api/types/ManagePlanPreviewResponseResponseData.d.ts +7 -0
- package/dist/api/types/ManagePlanRequest.d.ts +15 -0
- package/dist/api/types/ManagePlanResponseResponseData.d.ts +8 -0
- package/dist/api/types/PlanAudienceDetailResponseData.d.ts +0 -3
- package/dist/api/types/PlanCreditGrantView.d.ts +4 -0
- package/dist/api/types/PlanDetailResponseData.d.ts +1 -0
- package/dist/api/types/PlanEntitlementResponseData.d.ts +1 -0
- package/dist/api/types/PlanGroupDetailResponseData.d.ts +16 -3
- package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +1 -0
- package/dist/api/types/PlanGroupResponseData.d.ts +11 -3
- package/dist/api/types/PlanIssueResponseData.d.ts +9 -0
- package/dist/api/types/PlanSelection.d.ts +7 -0
- package/dist/api/types/PlanTraitResponseData.d.ts +0 -3
- package/dist/api/types/PreviewSubscriptionChangeResponseData.d.ts +0 -3
- package/dist/api/types/PreviewSubscriptionFinanceResponseData.d.ts +3 -0
- package/dist/api/types/RawEventBatchResponseData.d.ts +0 -3
- package/dist/api/types/Rule.d.ts +16 -0
- package/dist/api/types/RulesDetailResponseData.d.ts +0 -3
- package/dist/api/types/SegmentStatusResp.d.ts +0 -3
- package/dist/api/types/TraitDefinition.d.ts +8 -0
- package/dist/api/types/UpdatePlanTraitTraitRequestBody.d.ts +7 -0
- package/dist/api/types/UsageBasedEntitlementRequestBody.d.ts +1 -0
- package/dist/api/types/UsageBasedEntitlementResponseData.d.ts +1 -0
- package/dist/api/types/index.d.ts +24 -0
- package/dist/index.js +3 -3
- package/dist/serialization/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.d.ts +0 -1
- package/dist/serialization/resources/billing/client/requests/{CreateBillingSubscriptionsRequestBody.d.ts → CreateBillingSubscriptionRequestBody.d.ts} +5 -4
- package/dist/serialization/resources/billing/client/requests/index.d.ts +1 -1
- package/dist/serialization/resources/billing/types/CreateBillingSubscriptionRequestBodyTrialEndSetting.d.ts +10 -0
- package/dist/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +4 -0
- package/dist/serialization/resources/billing/types/index.d.ts +2 -2
- package/dist/serialization/resources/checkout/types/CheckoutInternalResponse.d.ts +2 -2
- package/dist/serialization/resources/checkout/types/ManagePlanResponse.d.ts +14 -0
- package/dist/serialization/resources/checkout/types/PreviewManagePlanResponse.d.ts +14 -0
- package/dist/serialization/resources/checkout/types/index.d.ts +2 -0
- package/dist/serialization/resources/companies/client/requests/UpdatePlanTraitBulkRequestBody.d.ts +14 -0
- package/dist/serialization/resources/companies/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterParams.d.ts +1 -0
- package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterParams.d.ts +1 -0
- package/dist/serialization/resources/companies/types/UpdatePlanTraitsBulkResponse.d.ts +14 -0
- package/dist/serialization/resources/companies/types/index.d.ts +1 -0
- package/dist/serialization/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.d.ts +7 -0
- package/dist/serialization/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +6 -0
- package/dist/serialization/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +2 -1
- package/dist/serialization/resources/credits/client/requests/UpdateCreditBundleDetailsRequestBody.d.ts +2 -0
- package/dist/serialization/resources/credits/types/CountCreditLedgerParams.d.ts +20 -0
- package/dist/serialization/resources/credits/types/CountCreditLedgerRequestPeriod.d.ts +10 -0
- package/dist/serialization/resources/credits/types/CountCreditLedgerResponse.d.ts +15 -0
- package/dist/serialization/resources/credits/types/CountCreditLedgerResponseParamsPeriod.d.ts +10 -0
- package/dist/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyExpiryType.d.ts +10 -0
- package/dist/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyExpiryUnit.d.ts +10 -0
- package/dist/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetType.d.ts +10 -0
- package/dist/serialization/resources/credits/types/CreateCompanyCreditGrantExpiryType.d.ts +10 -0
- package/dist/serialization/resources/credits/types/CreateCompanyCreditGrantExpiryUnit.d.ts +10 -0
- package/dist/serialization/resources/credits/types/CreateCreditBundleRequestBodyExpiryType.d.ts +1 -1
- package/dist/serialization/resources/credits/types/CreateCreditBundleRequestBodyExpiryUnit.d.ts +10 -0
- package/dist/serialization/resources/credits/types/GetEnrichedCreditLedgerParams.d.ts +20 -0
- package/dist/serialization/resources/credits/types/GetEnrichedCreditLedgerRequestPeriod.d.ts +10 -0
- package/dist/serialization/resources/credits/types/GetEnrichedCreditLedgerResponse.d.ts +15 -0
- package/dist/serialization/resources/credits/types/GetEnrichedCreditLedgerResponseParamsPeriod.d.ts +10 -0
- package/dist/serialization/resources/credits/types/UpdateCreditBundleDetailsRequestBodyExpiryType.d.ts +1 -1
- package/dist/serialization/resources/credits/types/UpdateCreditBundleDetailsRequestBodyExpiryUnit.d.ts +10 -0
- package/dist/serialization/resources/credits/types/ZeroOutGrantRequestBodyReason.d.ts +1 -1
- package/dist/serialization/resources/credits/types/index.d.ts +15 -0
- package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +1 -0
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +1 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -0
- package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +13 -0
- package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +13 -0
- package/dist/serialization/resources/plans/types/CountPlansParams.d.ts +4 -0
- package/dist/serialization/resources/plans/types/ListPlanIssuesParams.d.ts +12 -0
- package/dist/serialization/resources/plans/types/ListPlanIssuesResponse.d.ts +15 -0
- package/dist/serialization/resources/plans/types/ListPlansParams.d.ts +4 -0
- package/dist/serialization/resources/plans/types/index.d.ts +2 -0
- package/dist/serialization/types/BillingCreditBundleResponseData.d.ts +1 -0
- package/dist/serialization/types/BillingCreditBundleView.d.ts +1 -0
- package/dist/serialization/types/BillingCreditLedgerResponseData.d.ts +17 -0
- package/dist/serialization/types/BillingPlanCreditGrantResponseData.d.ts +7 -0
- package/dist/serialization/types/BillingProductDetailResponseData.d.ts +1 -1
- package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +2 -0
- package/dist/serialization/types/BillingProductPricing.d.ts +2 -0
- package/dist/serialization/types/BillingProductResponseData.d.ts +1 -1
- package/dist/serialization/types/CheckoutSettingsResponseData.d.ts +14 -0
- package/dist/serialization/types/CheckoutSubscription.d.ts +31 -0
- package/dist/serialization/types/CompanyDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/CompanyLedgerResponseData.d.ts +14 -0
- package/dist/serialization/types/CompanyOverrideNoteResponseData.d.ts +17 -0
- package/dist/serialization/types/CompanyOverrideResponseData.d.ts +2 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/CompanyViewWithFeatureUsageResponseData.d.ts +2 -0
- package/dist/serialization/types/ComponentCheckoutSettings.d.ts +15 -0
- package/dist/serialization/types/ComponentHydrateResponseData.d.ts +5 -0
- package/dist/serialization/types/ComponentPreviewResponseData.d.ts +5 -0
- package/dist/serialization/types/Condition.d.ts +27 -0
- package/dist/serialization/types/ConditionGroup.d.ts +13 -0
- package/dist/serialization/types/CountResponse.d.ts +1 -1
- package/dist/serialization/types/CreditCompanyGrantView.d.ts +3 -0
- package/dist/serialization/types/CreditGrantDetail.d.ts +16 -0
- package/dist/serialization/types/CreditGrantDetailGrantReason.d.ts +10 -0
- package/dist/serialization/types/CreditLedgerEnrichedEntryResponseData.d.ts +35 -0
- package/dist/serialization/types/CreditUsage.d.ts +20 -0
- package/dist/serialization/types/CreditUsageResponseData.d.ts +20 -0
- package/dist/serialization/types/FeatureCompanyResponseData.d.ts +28 -0
- package/dist/serialization/types/FeatureCompanyResponseDataCreditGrantReason.d.ts +10 -0
- package/dist/serialization/types/FeatureCompanyUserResponseDataAllocationType.d.ts +1 -1
- package/dist/serialization/types/FeatureLedgerResponseData.d.ts +15 -0
- package/dist/serialization/types/FeatureUsageDataResponseData.d.ts +9 -0
- package/dist/serialization/types/FeatureUsageResponseData.d.ts +17 -0
- package/dist/serialization/types/FeatureUsageResponseDataCreditGrantReason.d.ts +10 -0
- package/dist/serialization/types/ManagePlanPreviewResponseResponseData.d.ts +13 -0
- package/dist/serialization/types/ManagePlanRequest.d.ts +23 -0
- package/dist/serialization/types/ManagePlanResponseResponseData.d.ts +14 -0
- package/dist/serialization/types/PlanCreditGrantView.d.ts +4 -0
- package/dist/serialization/types/PlanDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanEntitlementResponseData.d.ts +1 -0
- package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +18 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanGroupResponseData.d.ts +12 -0
- package/dist/serialization/types/PlanIssueResponseData.d.ts +15 -0
- package/dist/serialization/types/PlanSelection.d.ts +13 -0
- package/dist/serialization/types/PreviewSubscriptionFinanceResponseData.d.ts +3 -0
- package/dist/serialization/types/Rule.d.ts +23 -0
- package/dist/serialization/types/TraitDefinition.d.ts +14 -0
- package/dist/serialization/types/UpdatePlanTraitTraitRequestBody.d.ts +13 -0
- package/dist/serialization/types/UsageBasedEntitlementRequestBody.d.ts +1 -0
- package/dist/serialization/types/UsageBasedEntitlementResponseData.d.ts +1 -0
- package/dist/serialization/types/index.d.ts +24 -0
- package/dist/wrapper.d.ts +8 -0
- package/package.json +2 -1
- package/dist/api/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.d.ts +0 -8
- package/dist/serialization/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.d.ts +0 -10
package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts
CHANGED
|
@@ -13,14 +13,27 @@ export declare namespace CreatePlanGroupRequestBody {
|
|
|
13
13
|
interface Raw {
|
|
14
14
|
add_on_compatibilities?: CompatiblePlans.Raw[] | null;
|
|
15
15
|
add_on_ids: string[];
|
|
16
|
+
checkout_collect_address: boolean;
|
|
17
|
+
checkout_collect_email: boolean;
|
|
18
|
+
checkout_collect_phone: boolean;
|
|
16
19
|
custom_plan_config?: CustomPlanConfig.Raw | null;
|
|
17
20
|
custom_plan_id?: string | null;
|
|
18
21
|
default_plan_id?: string | null;
|
|
22
|
+
enable_tax_collection: boolean;
|
|
23
|
+
fallback_plan_id?: string | null;
|
|
24
|
+
initial_plan_id?: string | null;
|
|
25
|
+
initial_plan_price_id?: string | null;
|
|
19
26
|
ordered_add_ons: OrderedPlansInGroup.Raw[];
|
|
20
27
|
ordered_bundle_list: PlanGroupBundleOrder.Raw[];
|
|
21
28
|
ordered_plans: OrderedPlansInGroup.Raw[];
|
|
29
|
+
prevent_downgrades_when_over_limit: boolean;
|
|
30
|
+
show_credits: boolean;
|
|
22
31
|
show_period_toggle: boolean;
|
|
32
|
+
show_zero_price_as_free: boolean;
|
|
33
|
+
sync_customer_billing_details_for_tax: boolean;
|
|
23
34
|
trial_days?: number | null;
|
|
35
|
+
trial_expiry_plan_id?: string | null;
|
|
36
|
+
trial_expiry_plan_price_id?: string | null;
|
|
24
37
|
trial_payment_method_required?: boolean | null;
|
|
25
38
|
}
|
|
26
39
|
}
|
package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts
CHANGED
|
@@ -13,14 +13,27 @@ export declare namespace UpdatePlanGroupRequestBody {
|
|
|
13
13
|
interface Raw {
|
|
14
14
|
add_on_compatibilities?: CompatiblePlans.Raw[] | null;
|
|
15
15
|
add_on_ids: string[];
|
|
16
|
+
checkout_collect_address: boolean;
|
|
17
|
+
checkout_collect_email: boolean;
|
|
18
|
+
checkout_collect_phone: boolean;
|
|
16
19
|
custom_plan_config?: CustomPlanConfig.Raw | null;
|
|
17
20
|
custom_plan_id?: string | null;
|
|
18
21
|
default_plan_id?: string | null;
|
|
22
|
+
enable_tax_collection: boolean;
|
|
23
|
+
fallback_plan_id?: string | null;
|
|
24
|
+
initial_plan_id?: string | null;
|
|
25
|
+
initial_plan_price_id?: string | null;
|
|
19
26
|
ordered_add_ons: OrderedPlansInGroup.Raw[];
|
|
20
27
|
ordered_bundle_list: PlanGroupBundleOrder.Raw[];
|
|
21
28
|
ordered_plans: OrderedPlansInGroup.Raw[];
|
|
29
|
+
prevent_downgrades_when_over_limit: boolean;
|
|
30
|
+
show_credits: boolean;
|
|
22
31
|
show_period_toggle: boolean;
|
|
32
|
+
show_zero_price_as_free: boolean;
|
|
33
|
+
sync_customer_billing_details_for_tax: boolean;
|
|
23
34
|
trial_days?: number | null;
|
|
35
|
+
trial_expiry_plan_id?: string | null;
|
|
36
|
+
trial_expiry_plan_price_id?: string | null;
|
|
24
37
|
trial_payment_method_required?: boolean | null;
|
|
25
38
|
}
|
|
26
39
|
}
|
|
@@ -9,12 +9,16 @@ export declare const CountPlansParams: core.serialization.ObjectSchema<serialize
|
|
|
9
9
|
export declare namespace CountPlansParams {
|
|
10
10
|
interface Raw {
|
|
11
11
|
company_id?: string | null;
|
|
12
|
+
for_fallback_plan?: boolean | null;
|
|
13
|
+
for_initial_plan?: boolean | null;
|
|
14
|
+
for_trial_expiry_plan?: boolean | null;
|
|
12
15
|
has_product_id?: boolean | null;
|
|
13
16
|
ids?: string[] | null;
|
|
14
17
|
limit?: number | null;
|
|
15
18
|
offset?: number | null;
|
|
16
19
|
plan_type?: CountPlansResponseParamsPlanType.Raw | null;
|
|
17
20
|
q?: string | null;
|
|
21
|
+
requires_payment_method?: boolean | null;
|
|
18
22
|
without_entitlement_for?: string | null;
|
|
19
23
|
without_paid_product_id?: boolean | null;
|
|
20
24
|
without_product_id?: boolean | null;
|
|
@@ -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 ListPlanIssuesParams: core.serialization.ObjectSchema<serializers.ListPlanIssuesParams.Raw, Schematic.ListPlanIssuesParams>;
|
|
8
|
+
export declare namespace ListPlanIssuesParams {
|
|
9
|
+
interface Raw {
|
|
10
|
+
plan_id?: string | null;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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 { PlanIssueResponseData } from "../../../types/PlanIssueResponseData";
|
|
8
|
+
import { ListPlanIssuesParams } from "./ListPlanIssuesParams";
|
|
9
|
+
export declare const ListPlanIssuesResponse: core.serialization.ObjectSchema<serializers.ListPlanIssuesResponse.Raw, Schematic.ListPlanIssuesResponse>;
|
|
10
|
+
export declare namespace ListPlanIssuesResponse {
|
|
11
|
+
interface Raw {
|
|
12
|
+
data: PlanIssueResponseData.Raw[];
|
|
13
|
+
params: ListPlanIssuesParams.Raw;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -9,12 +9,16 @@ export declare const ListPlansParams: core.serialization.ObjectSchema<serializer
|
|
|
9
9
|
export declare namespace ListPlansParams {
|
|
10
10
|
interface Raw {
|
|
11
11
|
company_id?: string | null;
|
|
12
|
+
for_fallback_plan?: boolean | null;
|
|
13
|
+
for_initial_plan?: boolean | null;
|
|
14
|
+
for_trial_expiry_plan?: boolean | null;
|
|
12
15
|
has_product_id?: boolean | null;
|
|
13
16
|
ids?: string[] | null;
|
|
14
17
|
limit?: number | null;
|
|
15
18
|
offset?: number | null;
|
|
16
19
|
plan_type?: ListPlansResponseParamsPlanType.Raw | null;
|
|
17
20
|
q?: string | null;
|
|
21
|
+
requires_payment_method?: boolean | null;
|
|
18
22
|
without_entitlement_for?: string | null;
|
|
19
23
|
without_paid_product_id?: boolean | null;
|
|
20
24
|
without_product_id?: boolean | null;
|
|
@@ -0,0 +1,17 @@
|
|
|
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 BillingCreditLedgerResponseData: core.serialization.ObjectSchema<serializers.BillingCreditLedgerResponseData.Raw, Schematic.BillingCreditLedgerResponseData>;
|
|
8
|
+
export declare namespace BillingCreditLedgerResponseData {
|
|
9
|
+
interface Raw {
|
|
10
|
+
description?: string | null;
|
|
11
|
+
icon?: string | null;
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
plural_name?: string | null;
|
|
15
|
+
singular_name?: string | null;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -10,11 +10,18 @@ export declare namespace BillingPlanCreditGrantResponseData {
|
|
|
10
10
|
created_at: string;
|
|
11
11
|
credit_amount: number;
|
|
12
12
|
credit_id: string;
|
|
13
|
+
credit_name: string;
|
|
14
|
+
credit_plural_name?: string | null;
|
|
15
|
+
credit_singular_name?: string | null;
|
|
16
|
+
expiry_type?: string | null;
|
|
17
|
+
expiry_unit?: string | null;
|
|
18
|
+
expiry_unit_count?: number | null;
|
|
13
19
|
id: string;
|
|
14
20
|
plan_id: string;
|
|
15
21
|
plan_name: string;
|
|
16
22
|
reset_cadence: string;
|
|
17
23
|
reset_start: string;
|
|
24
|
+
reset_type?: string | null;
|
|
18
25
|
updated_at: string;
|
|
19
26
|
}
|
|
20
27
|
}
|
|
@@ -9,6 +9,7 @@ export declare const BillingProductForSubscriptionResponseData: core.serializati
|
|
|
9
9
|
export declare namespace BillingProductForSubscriptionResponseData {
|
|
10
10
|
interface Raw {
|
|
11
11
|
billing_scheme: string;
|
|
12
|
+
billing_threshold?: number | null;
|
|
12
13
|
created_at: string;
|
|
13
14
|
currency: string;
|
|
14
15
|
environment_id: string;
|
|
@@ -25,6 +26,7 @@ export declare namespace BillingProductForSubscriptionResponseData {
|
|
|
25
26
|
price_tier: BillingProductPriceTierResponseData.Raw[];
|
|
26
27
|
quantity: number;
|
|
27
28
|
subscription_id: string;
|
|
29
|
+
subscription_item_external_id?: string | null;
|
|
28
30
|
updated_at: string;
|
|
29
31
|
usage_type: string;
|
|
30
32
|
}
|
|
@@ -8,6 +8,7 @@ import { BillingProductPricingUsageType } from "./BillingProductPricingUsageType
|
|
|
8
8
|
export declare const BillingProductPricing: core.serialization.ObjectSchema<serializers.BillingProductPricing.Raw, Schematic.BillingProductPricing>;
|
|
9
9
|
export declare namespace BillingProductPricing {
|
|
10
10
|
interface Raw {
|
|
11
|
+
billing_threshold?: number | null;
|
|
11
12
|
currency: string;
|
|
12
13
|
interval: string;
|
|
13
14
|
meter_id?: string | null;
|
|
@@ -17,6 +18,7 @@ export declare namespace BillingProductPricing {
|
|
|
17
18
|
price_external_id: string;
|
|
18
19
|
product_external_id: string;
|
|
19
20
|
quantity: number;
|
|
21
|
+
subscription_item_external_id?: string | null;
|
|
20
22
|
usage_type: BillingProductPricingUsageType.Raw;
|
|
21
23
|
}
|
|
22
24
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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 CheckoutSettingsResponseData: core.serialization.ObjectSchema<serializers.CheckoutSettingsResponseData.Raw, Schematic.CheckoutSettingsResponseData>;
|
|
8
|
+
export declare namespace CheckoutSettingsResponseData {
|
|
9
|
+
interface Raw {
|
|
10
|
+
collect_address: boolean;
|
|
11
|
+
collect_email: boolean;
|
|
12
|
+
collect_phone: boolean;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 CheckoutSubscription: core.serialization.ObjectSchema<serializers.CheckoutSubscription.Raw, Schematic.CheckoutSubscription>;
|
|
8
|
+
export declare namespace CheckoutSubscription {
|
|
9
|
+
interface Raw {
|
|
10
|
+
cancel_at?: number | null;
|
|
11
|
+
cancel_at_period_end: boolean;
|
|
12
|
+
company_id?: string | null;
|
|
13
|
+
confirm_payment_intent_client_secret?: string | null;
|
|
14
|
+
confirm_payment_intent_id?: string | null;
|
|
15
|
+
created_at: string;
|
|
16
|
+
currency: string;
|
|
17
|
+
customer_external_id: string;
|
|
18
|
+
default_payment_method_id?: string | null;
|
|
19
|
+
expired_at?: string | null;
|
|
20
|
+
id: string;
|
|
21
|
+
interval: string;
|
|
22
|
+
metadata?: Record<string, unknown> | null;
|
|
23
|
+
period_end: number;
|
|
24
|
+
period_start: number;
|
|
25
|
+
status: string;
|
|
26
|
+
subscription_external_id: string;
|
|
27
|
+
total_price: number;
|
|
28
|
+
trial_end?: number | null;
|
|
29
|
+
trial_end_setting?: string | null;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -11,6 +11,7 @@ import { EntityTraitDetailResponseData } from "./EntityTraitDetailResponseData";
|
|
|
11
11
|
import { EntityKeyDetailResponseData } from "./EntityKeyDetailResponseData";
|
|
12
12
|
import { CompanyEventPeriodMetricsResponseData } from "./CompanyEventPeriodMetricsResponseData";
|
|
13
13
|
import { GenericPreviewObject } from "./GenericPreviewObject";
|
|
14
|
+
import { Rule } from "./Rule";
|
|
14
15
|
export declare const CompanyDetailResponseData: core.serialization.ObjectSchema<serializers.CompanyDetailResponseData.Raw, Schematic.CompanyDetailResponseData>;
|
|
15
16
|
export declare namespace CompanyDetailResponseData {
|
|
16
17
|
interface Raw {
|
|
@@ -31,6 +32,7 @@ export declare namespace CompanyDetailResponseData {
|
|
|
31
32
|
payment_methods: PaymentMethodResponseData.Raw[];
|
|
32
33
|
plan?: CompanyPlanWithBillingSubView.Raw | null;
|
|
33
34
|
plans: GenericPreviewObject.Raw[];
|
|
35
|
+
rules: Rule.Raw[];
|
|
34
36
|
traits?: Record<string, unknown> | null;
|
|
35
37
|
updated_at: string;
|
|
36
38
|
user_count: number;
|
|
@@ -0,0 +1,14 @@
|
|
|
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 CompanyLedgerResponseData: core.serialization.ObjectSchema<serializers.CompanyLedgerResponseData.Raw, Schematic.CompanyLedgerResponseData>;
|
|
8
|
+
export declare namespace CompanyLedgerResponseData {
|
|
9
|
+
interface Raw {
|
|
10
|
+
id: string;
|
|
11
|
+
logo_url?: string | null;
|
|
12
|
+
name: string;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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 CompanyOverrideNoteResponseData: core.serialization.ObjectSchema<serializers.CompanyOverrideNoteResponseData.Raw, Schematic.CompanyOverrideNoteResponseData>;
|
|
8
|
+
export declare namespace CompanyOverrideNoteResponseData {
|
|
9
|
+
interface Raw {
|
|
10
|
+
created_at: string;
|
|
11
|
+
external_user_id: string;
|
|
12
|
+
external_user_name: string;
|
|
13
|
+
id: string;
|
|
14
|
+
note: string;
|
|
15
|
+
updated_at: string;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -6,6 +6,7 @@ import * as Schematic from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { CompanyDetailResponseData } from "./CompanyDetailResponseData";
|
|
8
8
|
import { FeatureResponseData } from "./FeatureResponseData";
|
|
9
|
+
import { CompanyOverrideNoteResponseData } from "./CompanyOverrideNoteResponseData";
|
|
9
10
|
import { EntityTraitDefinitionResponseData } from "./EntityTraitDefinitionResponseData";
|
|
10
11
|
export declare const CompanyOverrideResponseData: core.serialization.ObjectSchema<serializers.CompanyOverrideResponseData.Raw, Schematic.CompanyOverrideResponseData>;
|
|
11
12
|
export declare namespace CompanyOverrideResponseData {
|
|
@@ -21,6 +22,7 @@ export declare namespace CompanyOverrideResponseData {
|
|
|
21
22
|
id: string;
|
|
22
23
|
metric_period?: string | null;
|
|
23
24
|
metric_period_month_reset?: string | null;
|
|
25
|
+
notes: CompanyOverrideNoteResponseData.Raw[];
|
|
24
26
|
rule_id?: string | null;
|
|
25
27
|
rule_id_usage_exceeded?: string | null;
|
|
26
28
|
updated_at: string;
|
|
@@ -10,6 +10,7 @@ import { PlanEntitlementResponseData } from "./PlanEntitlementResponseData";
|
|
|
10
10
|
import { FeatureDetailResponseData } from "./FeatureDetailResponseData";
|
|
11
11
|
import { PlanCreditGrantView } from "./PlanCreditGrantView";
|
|
12
12
|
import { BillingPriceResponseData } from "./BillingPriceResponseData";
|
|
13
|
+
import { FeatureUsageResponseData } from "./FeatureUsageResponseData";
|
|
13
14
|
export declare const CompanyPlanDetailResponseData: core.serialization.ObjectSchema<serializers.CompanyPlanDetailResponseData.Raw, Schematic.CompanyPlanDetailResponseData>;
|
|
14
15
|
export declare namespace CompanyPlanDetailResponseData {
|
|
15
16
|
interface Raw {
|
|
@@ -40,6 +41,7 @@ export declare namespace CompanyPlanDetailResponseData {
|
|
|
40
41
|
plan_type: string;
|
|
41
42
|
trial_days?: number | null;
|
|
42
43
|
updated_at: string;
|
|
44
|
+
usage_violations: FeatureUsageResponseData.Raw[];
|
|
43
45
|
valid: boolean;
|
|
44
46
|
yearly_price?: BillingPriceResponseData.Raw | null;
|
|
45
47
|
}
|
|
@@ -12,6 +12,7 @@ import { FeatureUsageDataResponseData } from "./FeatureUsageDataResponseData";
|
|
|
12
12
|
import { EntityKeyDetailResponseData } from "./EntityKeyDetailResponseData";
|
|
13
13
|
import { CompanyEventPeriodMetricsResponseData } from "./CompanyEventPeriodMetricsResponseData";
|
|
14
14
|
import { GenericPreviewObject } from "./GenericPreviewObject";
|
|
15
|
+
import { Rule } from "./Rule";
|
|
15
16
|
export declare const CompanyViewWithFeatureUsageResponseData: core.serialization.ObjectSchema<serializers.CompanyViewWithFeatureUsageResponseData.Raw, Schematic.CompanyViewWithFeatureUsageResponseData>;
|
|
16
17
|
export declare namespace CompanyViewWithFeatureUsageResponseData {
|
|
17
18
|
interface Raw {
|
|
@@ -33,6 +34,7 @@ export declare namespace CompanyViewWithFeatureUsageResponseData {
|
|
|
33
34
|
payment_methods: PaymentMethodResponseData.Raw[];
|
|
34
35
|
plan?: CompanyPlanWithBillingSubView.Raw | null;
|
|
35
36
|
plans: GenericPreviewObject.Raw[];
|
|
37
|
+
rules: Rule.Raw[];
|
|
36
38
|
traits?: Record<string, unknown> | null;
|
|
37
39
|
updated_at: string;
|
|
38
40
|
user_count: number;
|
|
@@ -0,0 +1,15 @@
|
|
|
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 ComponentCheckoutSettings: core.serialization.ObjectSchema<serializers.ComponentCheckoutSettings.Raw, Schematic.ComponentCheckoutSettings>;
|
|
8
|
+
export declare namespace ComponentCheckoutSettings {
|
|
9
|
+
interface Raw {
|
|
10
|
+
collect_address: boolean;
|
|
11
|
+
collect_email: boolean;
|
|
12
|
+
collect_phone: boolean;
|
|
13
|
+
tax_collection_enabled: boolean;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -8,6 +8,7 @@ import { CompanyPlanDetailResponseData } from "./CompanyPlanDetailResponseData";
|
|
|
8
8
|
import { UsageBasedEntitlementResponseData } from "./UsageBasedEntitlementResponseData";
|
|
9
9
|
import { CompatiblePlans } from "./CompatiblePlans";
|
|
10
10
|
import { ComponentCapabilities } from "./ComponentCapabilities";
|
|
11
|
+
import { ComponentCheckoutSettings } from "./ComponentCheckoutSettings";
|
|
11
12
|
import { CompanyDetailResponseData } from "./CompanyDetailResponseData";
|
|
12
13
|
import { ComponentResponseData } from "./ComponentResponseData";
|
|
13
14
|
import { BillingCreditBundleView } from "./BillingCreditBundleView";
|
|
@@ -25,13 +26,17 @@ export declare namespace ComponentHydrateResponseData {
|
|
|
25
26
|
active_usage_based_entitlements: UsageBasedEntitlementResponseData.Raw[];
|
|
26
27
|
add_on_compatibilities: CompatiblePlans.Raw[];
|
|
27
28
|
capabilities?: ComponentCapabilities.Raw | null;
|
|
29
|
+
checkout_settings: ComponentCheckoutSettings.Raw;
|
|
28
30
|
company?: CompanyDetailResponseData.Raw | null;
|
|
29
31
|
component?: ComponentResponseData.Raw | null;
|
|
30
32
|
credit_bundles: BillingCreditBundleView.Raw[];
|
|
31
33
|
credit_grants: CreditCompanyGrantView.Raw[];
|
|
32
34
|
default_plan?: PlanDetailResponseData.Raw | null;
|
|
33
35
|
feature_usage?: FeatureUsageDetailResponseData.Raw | null;
|
|
36
|
+
post_trial_plan?: PlanDetailResponseData.Raw | null;
|
|
37
|
+
show_credits: boolean;
|
|
34
38
|
show_period_toggle: boolean;
|
|
39
|
+
show_zero_price_as_free: boolean;
|
|
35
40
|
stripe_embed?: StripeEmbedInfo.Raw | null;
|
|
36
41
|
subscription?: CompanySubscriptionResponseData.Raw | null;
|
|
37
42
|
trial_payment_method_required?: boolean | null;
|
|
@@ -8,6 +8,7 @@ import { CompanyPlanDetailResponseData } from "./CompanyPlanDetailResponseData";
|
|
|
8
8
|
import { UsageBasedEntitlementResponseData } from "./UsageBasedEntitlementResponseData";
|
|
9
9
|
import { CompatiblePlans } from "./CompatiblePlans";
|
|
10
10
|
import { ComponentCapabilities } from "./ComponentCapabilities";
|
|
11
|
+
import { ComponentCheckoutSettings } from "./ComponentCheckoutSettings";
|
|
11
12
|
import { CompanyDetailResponseData } from "./CompanyDetailResponseData";
|
|
12
13
|
import { ComponentResponseData } from "./ComponentResponseData";
|
|
13
14
|
import { BillingCreditBundleView } from "./BillingCreditBundleView";
|
|
@@ -25,6 +26,7 @@ export declare namespace ComponentPreviewResponseData {
|
|
|
25
26
|
active_usage_based_entitlements: UsageBasedEntitlementResponseData.Raw[];
|
|
26
27
|
add_on_compatibilities: CompatiblePlans.Raw[];
|
|
27
28
|
capabilities?: ComponentCapabilities.Raw | null;
|
|
29
|
+
checkout_settings: ComponentCheckoutSettings.Raw;
|
|
28
30
|
company?: CompanyDetailResponseData.Raw | null;
|
|
29
31
|
component?: ComponentResponseData.Raw | null;
|
|
30
32
|
credit_bundles: BillingCreditBundleView.Raw[];
|
|
@@ -32,7 +34,10 @@ export declare namespace ComponentPreviewResponseData {
|
|
|
32
34
|
default_plan?: PlanDetailResponseData.Raw | null;
|
|
33
35
|
feature_usage?: FeatureUsageDetailResponseData.Raw | null;
|
|
34
36
|
invoices: InvoiceResponseData.Raw[];
|
|
37
|
+
post_trial_plan?: PlanDetailResponseData.Raw | null;
|
|
38
|
+
show_credits: boolean;
|
|
35
39
|
show_period_toggle: boolean;
|
|
40
|
+
show_zero_price_as_free: boolean;
|
|
36
41
|
stripe_embed?: StripeEmbedInfo.Raw | null;
|
|
37
42
|
subscription?: CompanySubscriptionResponseData.Raw | null;
|
|
38
43
|
trial_payment_method_required?: boolean | null;
|
|
@@ -0,0 +1,27 @@
|
|
|
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 { TraitDefinition } from "./TraitDefinition";
|
|
8
|
+
export declare const Condition: core.serialization.ObjectSchema<serializers.Condition.Raw, Schematic.Condition>;
|
|
9
|
+
export declare namespace Condition {
|
|
10
|
+
interface Raw {
|
|
11
|
+
account_id: string;
|
|
12
|
+
comparison_trait_definition?: TraitDefinition.Raw | null;
|
|
13
|
+
condition_type: string;
|
|
14
|
+
consumption_rate?: number | null;
|
|
15
|
+
credit_id?: string | null;
|
|
16
|
+
environment_id: string;
|
|
17
|
+
event_subtype?: string | null;
|
|
18
|
+
id: string;
|
|
19
|
+
metric_period?: string | null;
|
|
20
|
+
metric_period_month_reset?: string | null;
|
|
21
|
+
metric_value?: number | null;
|
|
22
|
+
operator: string;
|
|
23
|
+
resource_ids: string[];
|
|
24
|
+
trait_definition?: TraitDefinition.Raw | null;
|
|
25
|
+
trait_value: string;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
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 { Condition } from "./Condition";
|
|
8
|
+
export declare const ConditionGroup: core.serialization.ObjectSchema<serializers.ConditionGroup.Raw, Schematic.ConditionGroup>;
|
|
9
|
+
export declare namespace ConditionGroup {
|
|
10
|
+
interface Raw {
|
|
11
|
+
conditions: Condition.Raw[];
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -7,6 +7,6 @@ import * as core from "../../core";
|
|
|
7
7
|
export declare const CountResponse: core.serialization.ObjectSchema<serializers.CountResponse.Raw, Schematic.CountResponse>;
|
|
8
8
|
export declare namespace CountResponse {
|
|
9
9
|
interface Raw {
|
|
10
|
-
count
|
|
10
|
+
count?: number | null;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
@@ -17,6 +17,9 @@ export declare namespace CreditCompanyGrantView {
|
|
|
17
17
|
credit_icon?: string | null;
|
|
18
18
|
credit_name: string;
|
|
19
19
|
expires_at?: string | null;
|
|
20
|
+
expiry_type?: string | null;
|
|
21
|
+
expiry_unit?: string | null;
|
|
22
|
+
expiry_unit_count?: number | null;
|
|
20
23
|
grant_reason: string;
|
|
21
24
|
id: string;
|
|
22
25
|
plan_id?: string | null;
|
|
@@ -0,0 +1,16 @@
|
|
|
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 { CreditGrantDetailGrantReason } from "./CreditGrantDetailGrantReason";
|
|
8
|
+
export declare const CreditGrantDetail: core.serialization.ObjectSchema<serializers.CreditGrantDetail.Raw, Schematic.CreditGrantDetail>;
|
|
9
|
+
export declare namespace CreditGrantDetail {
|
|
10
|
+
interface Raw {
|
|
11
|
+
credit_type_icon?: string | null;
|
|
12
|
+
expires_at?: string | null;
|
|
13
|
+
grant_reason: CreditGrantDetailGrantReason.Raw;
|
|
14
|
+
quantity: number;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -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 CreditGrantDetailGrantReason: core.serialization.Schema<serializers.CreditGrantDetailGrantReason.Raw, Schematic.CreditGrantDetailGrantReason>;
|
|
8
|
+
export declare namespace CreditGrantDetailGrantReason {
|
|
9
|
+
type Raw = "free" | "plan" | "purchased";
|
|
10
|
+
}
|
|
@@ -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 { CompanyLedgerResponseData } from "./CompanyLedgerResponseData";
|
|
8
|
+
import { BillingCreditLedgerResponseData } from "./BillingCreditLedgerResponseData";
|
|
9
|
+
import { FeatureLedgerResponseData } from "./FeatureLedgerResponseData";
|
|
10
|
+
export declare const CreditLedgerEnrichedEntryResponseData: core.serialization.ObjectSchema<serializers.CreditLedgerEnrichedEntryResponseData.Raw, Schematic.CreditLedgerEnrichedEntryResponseData>;
|
|
11
|
+
export declare namespace CreditLedgerEnrichedEntryResponseData {
|
|
12
|
+
interface Raw {
|
|
13
|
+
billing_credit_id: string;
|
|
14
|
+
company?: CompanyLedgerResponseData.Raw | null;
|
|
15
|
+
company_id: string;
|
|
16
|
+
credit?: BillingCreditLedgerResponseData.Raw | null;
|
|
17
|
+
expired_grant_count: number;
|
|
18
|
+
feature?: FeatureLedgerResponseData.Raw | null;
|
|
19
|
+
feature_id?: string | null;
|
|
20
|
+
first_transaction_at: string;
|
|
21
|
+
free_grant_count: number;
|
|
22
|
+
grant_count: number;
|
|
23
|
+
last_transaction_at: string;
|
|
24
|
+
manually_zeroed_count: number;
|
|
25
|
+
net_change: number;
|
|
26
|
+
plan_grant_count: number;
|
|
27
|
+
purchased_grant_count: number;
|
|
28
|
+
time_bucket: string;
|
|
29
|
+
total_consumed: number;
|
|
30
|
+
total_granted: number;
|
|
31
|
+
transaction_count: number;
|
|
32
|
+
usage_count: number;
|
|
33
|
+
zeroed_out_count: number;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { CreditGrantDetail } from "./CreditGrantDetail";
|
|
8
|
+
export declare const CreditUsage: core.serialization.ObjectSchema<serializers.CreditUsage.Raw, Schematic.CreditUsage>;
|
|
9
|
+
export declare namespace CreditUsage {
|
|
10
|
+
interface Raw {
|
|
11
|
+
credit_consumption_rate?: number | null;
|
|
12
|
+
credit_grant_counts?: Record<string, number> | null;
|
|
13
|
+
credit_grant_details?: CreditGrantDetail.Raw[] | null;
|
|
14
|
+
credit_remaining?: number | null;
|
|
15
|
+
credit_total?: number | null;
|
|
16
|
+
credit_type_icon?: string | null;
|
|
17
|
+
credit_type_name?: string | null;
|
|
18
|
+
credit_used?: number | null;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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 { CreditGrantDetail } from "./CreditGrantDetail";
|
|
8
|
+
export declare const CreditUsageResponseData: core.serialization.ObjectSchema<serializers.CreditUsageResponseData.Raw, Schematic.CreditUsageResponseData>;
|
|
9
|
+
export declare namespace CreditUsageResponseData {
|
|
10
|
+
interface Raw {
|
|
11
|
+
credit_consumption_rate?: number | null;
|
|
12
|
+
credit_grant_counts?: Record<string, number> | null;
|
|
13
|
+
credit_grant_details: CreditGrantDetail.Raw[];
|
|
14
|
+
credit_remaining?: number | null;
|
|
15
|
+
credit_total?: number | null;
|
|
16
|
+
credit_type_icon?: string | null;
|
|
17
|
+
credit_type_name?: string | null;
|
|
18
|
+
credit_used?: number | null;
|
|
19
|
+
}
|
|
20
|
+
}
|