@schematichq/schematic-typescript-node 1.4.4 → 1.4.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/LICENSE +1 -1
- package/dist/BaseClient.d.ts +1 -1
- package/dist/Client.d.ts +14 -0
- package/dist/api/resources/accesstokens/exports.d.ts +2 -0
- package/dist/api/resources/accounts/client/Client.d.ts +43 -10
- package/dist/api/resources/accounts/client/requests/CountApiKeysRequest.d.ts +2 -2
- package/dist/api/resources/accounts/client/requests/CountAuditLogsRequest.d.ts +2 -2
- package/dist/api/resources/accounts/client/requests/ListAccountMembersRequest.d.ts +17 -0
- package/dist/api/resources/accounts/client/requests/ListApiKeysRequest.d.ts +2 -2
- package/dist/api/resources/accounts/client/requests/ListAuditLogsRequest.d.ts +2 -2
- package/dist/api/resources/accounts/client/requests/ListEnvironmentsRequest.d.ts +2 -2
- package/dist/api/resources/accounts/client/requests/index.d.ts +1 -0
- package/dist/api/resources/accounts/exports.d.ts +2 -0
- package/dist/api/resources/accounts/types/GetAccountMemberResponse.d.ts +6 -0
- package/dist/api/resources/accounts/types/ListAccountMembersParams.d.ts +12 -0
- package/dist/api/resources/accounts/types/ListAccountMembersResponse.d.ts +6 -0
- package/dist/api/resources/accounts/types/index.d.ts +3 -0
- package/dist/api/resources/billing/client/Client.d.ts +42 -40
- package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +3 -3
- package/dist/api/resources/billing/client/requests/CountCustomersRequest.d.ts +3 -3
- package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +1 -1
- package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +4 -3
- package/dist/api/resources/billing/client/requests/CreateCouponRequestBody.d.ts +4 -4
- package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +4 -4
- package/dist/api/resources/billing/client/requests/CreateMeterRequestBody.d.ts +2 -0
- package/dist/api/resources/billing/client/requests/ListBillingPricesRequest.d.ts +7 -4
- package/dist/api/resources/billing/client/requests/ListBillingProductPricesRequest.d.ts +7 -4
- package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +3 -3
- package/dist/api/resources/billing/client/requests/ListCouponsRequest.d.ts +2 -2
- package/dist/api/resources/billing/client/requests/ListCustomersWithSubscriptionsRequest.d.ts +3 -3
- package/dist/api/resources/billing/client/requests/ListInvoicesRequest.d.ts +2 -2
- package/dist/api/resources/billing/client/requests/ListMetersRequest.d.ts +2 -2
- package/dist/api/resources/billing/client/requests/ListPaymentMethodsRequest.d.ts +2 -2
- package/dist/api/resources/billing/exports.d.ts +2 -0
- package/dist/api/resources/billing/types/ListBillingPricesParams.d.ts +2 -0
- package/dist/api/resources/billing/types/ListBillingProductPricesParams.d.ts +2 -0
- package/dist/api/resources/checkout/client/Client.d.ts +8 -8
- package/dist/api/resources/checkout/exports.d.ts +2 -0
- package/dist/api/resources/companies/client/Client.d.ts +38 -30
- package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +5 -2
- package/dist/api/resources/companies/client/requests/CountEntityKeyDefinitionsRequest.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/CountEntityTraitDefinitionsRequest.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/CountPlanTraitsRequest.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/CountUsersRequest.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/GetActiveCompanySubscriptionRequest.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/GetEntityTraitValuesRequest.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +5 -2
- package/dist/api/resources/companies/client/requests/ListCompanyMembershipsRequest.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/ListEntityKeyDefinitionsRequest.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/ListEntityTraitDefinitionsRequest.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/ListPlanChangesRequest.d.ts +7 -6
- package/dist/api/resources/companies/client/requests/ListPlanTraitsRequest.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/ListUsersRequest.d.ts +2 -2
- package/dist/api/resources/companies/exports.d.ts +2 -0
- package/dist/api/resources/companies/types/CountCompaniesParams.d.ts +2 -0
- package/dist/api/resources/companies/types/ListCompaniesParams.d.ts +2 -0
- package/dist/api/resources/companies/types/ListPlanChangesParams.d.ts +3 -2
- package/dist/api/resources/components/client/Client.d.ts +4 -4
- package/dist/api/resources/components/client/requests/CountComponentsRequest.d.ts +2 -2
- package/dist/api/resources/components/client/requests/ListComponentsRequest.d.ts +2 -2
- package/dist/api/resources/components/exports.d.ts +2 -0
- package/dist/api/resources/componentspublic/exports.d.ts +2 -0
- package/dist/api/resources/credits/client/Client.d.ts +47 -33
- package/dist/api/resources/credits/client/requests/CountBillingCreditsGrantsRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/CountBillingCreditsRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/CountBillingPlanCreditGrantsRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/CountCompanyGrantsRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/CountCreditBundlesRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/CountCreditEventLedgerRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/CountCreditLedgerRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/CreateBillingCreditRequestBody.d.ts +1 -0
- package/dist/api/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +3 -2
- package/dist/api/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +2 -1
- package/dist/api/resources/credits/client/requests/GetEnrichedCreditLedgerRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/ListBillingCreditsRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/ListBillingPlanCreditGrantsRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/ListCompanyGrantsRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/ListCreditBundlesRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/ListCreditEventLedgerRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/ListGrantsForCreditRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/UpdateBillingCreditRequestBody.d.ts +1 -0
- package/dist/api/resources/credits/client/requests/UpdateCreditBundleDetailsRequestBody.d.ts +2 -1
- package/dist/api/resources/credits/exports.d.ts +2 -0
- package/dist/api/resources/credits/types/GetSingleBillingPlanCreditGrantResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/index.d.ts +1 -0
- package/dist/api/resources/dataexports/exports.d.ts +2 -0
- package/dist/api/resources/entitlements/client/Client.d.ts +41 -20
- package/dist/api/resources/entitlements/client/requests/CountCompanyOverridesRequest.d.ts +2 -2
- package/dist/api/resources/entitlements/client/requests/CountFeatureCompaniesRequest.d.ts +2 -2
- package/dist/api/resources/entitlements/client/requests/CountFeatureUsageRequest.d.ts +2 -2
- package/dist/api/resources/entitlements/client/requests/CountFeatureUsersRequest.d.ts +2 -2
- package/dist/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +2 -2
- package/dist/api/resources/entitlements/client/requests/CreateBillingLinkedPlanEntitlementRequestBody.d.ts +44 -0
- package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -0
- package/dist/api/resources/entitlements/client/requests/ListCompanyOverridesRequest.d.ts +2 -2
- package/dist/api/resources/entitlements/client/requests/ListFeatureCompaniesRequest.d.ts +2 -2
- package/dist/api/resources/entitlements/client/requests/ListFeatureUsageRequest.d.ts +2 -2
- package/dist/api/resources/entitlements/client/requests/ListFeatureUsersRequest.d.ts +2 -2
- package/dist/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +2 -2
- package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -0
- package/dist/api/resources/entitlements/client/requests/index.d.ts +1 -0
- package/dist/api/resources/entitlements/exports.d.ts +2 -0
- package/dist/api/resources/entitlements/types/CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriod.d.ts +7 -0
- package/dist/api/resources/entitlements/types/CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +5 -0
- package/dist/api/resources/entitlements/types/UpsertPlanEntitlementForBillingProductResponse.d.ts +6 -0
- package/dist/api/resources/entitlements/types/index.d.ts +3 -0
- package/dist/api/resources/events/client/Client.d.ts +4 -4
- package/dist/api/resources/events/client/requests/GetEventSummariesRequest.d.ts +2 -2
- package/dist/api/resources/events/client/requests/ListEventsRequest.d.ts +2 -2
- package/dist/api/resources/events/exports.d.ts +2 -0
- package/dist/api/resources/features/client/Client.d.ts +34 -13
- package/dist/api/resources/features/client/requests/CountFeaturesRequest.d.ts +10 -10
- package/dist/api/resources/features/client/requests/CountFlagsRequest.d.ts +2 -2
- package/dist/api/resources/features/client/requests/CreateBillingLinkedFeatureRequestBody.d.ts +26 -0
- package/dist/api/resources/features/client/requests/ListFeaturesRequest.d.ts +10 -10
- package/dist/api/resources/features/client/requests/ListFlagsRequest.d.ts +2 -2
- package/dist/api/resources/features/client/requests/UpdateFlagRulesRequestBody.d.ts +1 -1
- package/dist/api/resources/features/client/requests/index.d.ts +1 -0
- package/dist/api/resources/features/exports.d.ts +2 -0
- package/dist/api/resources/features/types/UpsertFeatureForBillingProductResponse.d.ts +6 -0
- package/dist/api/resources/features/types/index.d.ts +1 -0
- package/dist/api/resources/index.d.ts +2 -0
- package/dist/api/resources/integrationsapi/client/Client.d.ts +27 -0
- package/dist/api/resources/integrationsapi/client/index.d.ts +1 -0
- package/dist/api/resources/integrationsapi/exports.d.ts +2 -0
- package/dist/api/resources/integrationsapi/index.d.ts +2 -0
- package/dist/api/resources/integrationsapi/types/GetIntegrationWebhookUrlResponse.d.ts +6 -0
- package/dist/api/resources/integrationsapi/types/index.d.ts +1 -0
- package/dist/api/resources/planbundle/exports.d.ts +2 -0
- package/dist/api/resources/plangroups/exports.d.ts +2 -0
- package/dist/api/resources/planmigrations/client/Client.d.ts +8 -8
- package/dist/api/resources/planmigrations/client/requests/CountCompanyMigrationsRequest.d.ts +2 -2
- package/dist/api/resources/planmigrations/client/requests/CountMigrationsRequest.d.ts +2 -2
- package/dist/api/resources/planmigrations/client/requests/ListCompanyMigrationsRequest.d.ts +2 -2
- package/dist/api/resources/planmigrations/client/requests/ListMigrationsRequest.d.ts +2 -2
- package/dist/api/resources/planmigrations/exports.d.ts +2 -0
- package/dist/api/resources/plans/client/Client.d.ts +98 -7
- package/dist/api/resources/plans/client/requests/CountBillingProductMatchCompaniesRequest.d.ts +19 -0
- package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +8 -2
- package/dist/api/resources/plans/client/requests/CreateBillingLinkedPlanRequestBody.d.ts +19 -0
- package/dist/api/resources/plans/client/requests/CreateCustomPlanRequestBody.d.ts +16 -0
- package/dist/api/resources/plans/client/requests/DeletePlanVersionRequest.d.ts +9 -0
- package/dist/api/resources/plans/client/requests/ListBillingProductMatchCompaniesRequest.d.ts +19 -0
- package/dist/api/resources/plans/client/requests/ListPlansRequest.d.ts +8 -2
- package/dist/api/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +9 -1
- package/dist/api/resources/plans/client/requests/index.d.ts +5 -0
- package/dist/api/resources/plans/exports.d.ts +2 -0
- package/dist/api/resources/plans/types/CountBillingProductMatchCompaniesParams.d.ts +13 -0
- package/dist/api/resources/plans/types/CountBillingProductMatchCompaniesResponse.d.ts +6 -0
- package/dist/api/resources/plans/types/CountPlansParams.d.ts +4 -0
- package/dist/api/resources/plans/types/CreateCustomPlanResponse.d.ts +6 -0
- package/dist/api/resources/plans/types/DeletePlanVersionParams.d.ts +6 -0
- package/dist/api/resources/plans/types/DeletePlanVersionResponse.d.ts +1 -1
- package/dist/api/resources/plans/types/ListBillingProductMatchCompaniesParams.d.ts +13 -0
- package/dist/api/resources/plans/types/ListBillingProductMatchCompaniesResponse.d.ts +6 -0
- package/dist/api/resources/plans/types/ListPlansParams.d.ts +4 -0
- package/dist/api/resources/plans/types/UpsertPlanForBillingProductResponse.d.ts +6 -0
- package/dist/api/resources/plans/types/index.d.ts +7 -0
- package/dist/api/resources/scheduledcheckout/client/Client.d.ts +2 -2
- package/dist/api/resources/scheduledcheckout/client/requests/ListScheduledCheckoutsRequest.d.ts +2 -2
- package/dist/api/resources/scheduledcheckout/exports.d.ts +2 -0
- package/dist/api/resources/webhooks/client/Client.d.ts +8 -8
- package/dist/api/resources/webhooks/client/requests/CountWebhookEventsRequest.d.ts +2 -2
- package/dist/api/resources/webhooks/client/requests/CountWebhooksRequest.d.ts +2 -2
- package/dist/api/resources/webhooks/client/requests/ListWebhookEventsRequest.d.ts +2 -2
- package/dist/api/resources/webhooks/client/requests/ListWebhooksRequest.d.ts +2 -2
- package/dist/api/resources/webhooks/exports.d.ts +2 -0
- package/dist/api/types/AccountMemberPermission.d.ts +18 -0
- package/dist/api/types/AccountMemberResponseData.d.ts +11 -0
- package/dist/api/types/AccountMemberRole.d.ts +5 -0
- package/dist/api/types/BillingCreditBundleResponseData.d.ts +2 -0
- package/dist/api/types/BillingCreditBundleView.d.ts +1 -0
- package/dist/api/types/BillingCreditGrantReason.d.ts +1 -0
- package/dist/api/types/BillingCreditGrantResponseData.d.ts +1 -0
- package/dist/api/types/BillingCreditResponseData.d.ts +1 -0
- package/dist/api/types/BillingLinkedResourceResponseData.d.ts +6 -0
- package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +1 -0
- package/dist/api/types/BillingProductPlanResponseData.d.ts +1 -1
- package/dist/api/types/BillingProviderType.d.ts +1 -0
- package/dist/api/types/CheckoutSubscription.d.ts +1 -0
- package/dist/api/types/CompanyDetailResponseData.d.ts +1 -0
- package/dist/api/types/CompanyPlanDetailResponseData.d.ts +7 -2
- package/dist/api/types/ConditionGroupResponseData.d.ts +0 -1
- package/dist/api/types/ConditionGroupView.d.ts +0 -1
- package/dist/api/types/ConditionResponseData.d.ts +0 -1
- package/dist/api/types/ConditionView.d.ts +0 -1
- package/dist/api/types/CreateBillingPlanCreditGrantRequestBody.d.ts +1 -0
- package/dist/api/types/CreateEntitlementInBundleRequestBody.d.ts +1 -0
- package/dist/api/types/CreatePlanRequestBody.d.ts +1 -1
- package/dist/api/types/CreditBundleCurrencyPrice.d.ts +5 -0
- package/dist/api/types/CreditBundleCurrencyPriceRequestBody.d.ts +5 -0
- package/dist/api/types/CreditBundleCurrencyPriceResponseData.d.ts +5 -0
- package/dist/api/types/CreditCompanyGrantView.d.ts +1 -0
- package/dist/api/types/CreditCurrencyPriceRequestBody.d.ts +5 -0
- package/dist/api/types/CreditCurrencyPriceResponseData.d.ts +5 -0
- package/dist/api/types/CurrencyPriceRequestBody.d.ts +10 -0
- package/dist/api/types/CustomPlanActivationStrategy.d.ts +5 -0
- package/dist/api/types/CustomPlanBillingResponseData.d.ts +14 -0
- package/dist/api/types/CustomPlanBillingStatus.d.ts +6 -0
- package/dist/api/types/DatastreamCompanyPlan.d.ts +2 -0
- package/dist/api/types/EntitlementCurrencyPricesResponseData.d.ts +6 -0
- package/dist/api/types/FeatureDetailResponseData.d.ts +1 -0
- package/dist/api/types/FeatureView.d.ts +1 -0
- package/dist/api/types/IntegrationType.d.ts +7 -0
- package/dist/api/types/IntegrationWebhookUrlResponseData.d.ts +5 -0
- package/dist/api/types/ManagePlanRequest.d.ts +1 -0
- package/dist/api/types/PlanCreditGrantView.d.ts +1 -0
- package/dist/api/types/PlanCurrencyPriceRequestBody.d.ts +6 -0
- package/dist/api/types/PlanCurrencyPricesResponseData.d.ts +7 -0
- package/dist/api/types/PlanDetailResponseData.d.ts +7 -2
- package/dist/api/types/PlanEntitlementResponseData.d.ts +2 -0
- package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +7 -2
- package/dist/api/types/PlanIcon.d.ts +28 -0
- package/dist/api/types/PlanResponseData.d.ts +3 -1
- package/dist/api/types/PlanSelection.d.ts +1 -0
- package/dist/api/types/PlanVersionResponseData.d.ts +1 -1
- package/dist/api/types/PlanViewPublicResponseData.d.ts +7 -2
- package/dist/api/types/RuleView.d.ts +0 -1
- package/dist/api/types/RulesEngineSchemaVersion.d.ts +1 -1
- package/dist/api/types/TrialStatus.d.ts +6 -0
- package/dist/api/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +1 -0
- package/dist/api/types/UpdatePlanRequestBody.d.ts +2 -1
- package/dist/api/types/UpsertBillingProductRequestBody.d.ts +1 -0
- package/dist/api/types/UsageBasedEntitlementRequestBody.d.ts +1 -0
- package/dist/api/types/WebScheduledDowngradeWebhookOutput.d.ts +10 -0
- package/dist/api/types/WebhookRequestType.d.ts +1 -0
- package/dist/api/types/WebhookUrl.d.ts +5 -0
- package/dist/api/types/index.d.ts +22 -1
- package/dist/auth/HeaderAuthProvider.d.ts +14 -10
- package/dist/core/fetcher/BinaryResponse.d.ts +1 -1
- package/dist/core/fetcher/EndpointSupplier.d.ts +2 -2
- package/dist/core/fetcher/Fetcher.d.ts +1 -2
- package/dist/core/fetcher/index.d.ts +2 -0
- package/dist/core/fetcher/makePassthroughRequest.d.ts +49 -0
- package/dist/core/fetcher/makeRequest.d.ts +6 -1
- package/dist/core/headers.d.ts +2 -2
- package/dist/core/schemas/builders/record/index.d.ts +2 -2
- package/dist/core/schemas/builders/record/record.d.ts +2 -1
- package/dist/core/schemas/builders/record/types.d.ts +2 -0
- package/dist/datastream/merge.d.ts +25 -0
- package/dist/datastream/types.d.ts +1 -0
- package/dist/index.js +3 -3
- package/dist/serialization/resources/accounts/types/GetAccountMemberResponse.d.ts +11 -0
- package/dist/serialization/resources/accounts/types/ListAccountMembersParams.d.ts +12 -0
- package/dist/serialization/resources/accounts/types/ListAccountMembersResponse.d.ts +12 -0
- package/dist/serialization/resources/accounts/types/index.d.ts +3 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +2 -0
- package/dist/serialization/resources/billing/client/requests/CreateMeterRequestBody.d.ts +2 -0
- package/dist/serialization/resources/billing/types/ListBillingPricesParams.d.ts +1 -0
- package/dist/serialization/resources/billing/types/ListBillingProductPricesParams.d.ts +1 -0
- package/dist/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
- package/dist/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
- package/dist/serialization/resources/companies/types/ListPlanChangesParams.d.ts +4 -2
- package/dist/serialization/resources/credits/client/requests/CreateBillingCreditRequestBody.d.ts +2 -0
- package/dist/serialization/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +1 -0
- package/dist/serialization/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +2 -0
- package/dist/serialization/resources/credits/client/requests/UpdateBillingCreditRequestBody.d.ts +2 -0
- package/dist/serialization/resources/credits/client/requests/UpdateCreditBundleDetailsRequestBody.d.ts +2 -0
- package/dist/serialization/resources/credits/types/GetSingleBillingPlanCreditGrantResponse.d.ts +11 -0
- package/dist/serialization/resources/credits/types/index.d.ts +1 -0
- package/dist/serialization/resources/entitlements/client/requests/CreateBillingLinkedPlanEntitlementRequestBody.d.ts +46 -0
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +2 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +2 -0
- package/dist/serialization/resources/entitlements/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/entitlements/types/CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriod.d.ts +7 -0
- package/dist/serialization/resources/entitlements/types/CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +7 -0
- package/dist/serialization/resources/entitlements/types/UpsertPlanEntitlementForBillingProductResponse.d.ts +11 -0
- package/dist/serialization/resources/entitlements/types/index.d.ts +3 -0
- package/dist/serialization/resources/features/client/requests/CreateBillingLinkedFeatureRequestBody.d.ts +25 -0
- package/dist/serialization/resources/features/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/features/types/UpsertFeatureForBillingProductResponse.d.ts +11 -0
- package/dist/serialization/resources/features/types/index.d.ts +1 -0
- package/dist/serialization/resources/index.d.ts +2 -0
- package/dist/serialization/resources/integrationsapi/index.d.ts +1 -0
- package/dist/serialization/resources/integrationsapi/types/GetIntegrationWebhookUrlResponse.d.ts +11 -0
- package/dist/serialization/resources/integrationsapi/types/index.d.ts +1 -0
- package/dist/serialization/resources/plans/client/requests/CreateBillingLinkedPlanRequestBody.d.ts +17 -0
- package/dist/serialization/resources/plans/client/requests/CreateCustomPlanRequestBody.d.ts +14 -0
- package/dist/serialization/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +6 -0
- package/dist/serialization/resources/plans/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/plans/types/CountBillingProductMatchCompaniesParams.d.ts +12 -0
- package/dist/serialization/resources/plans/types/CountBillingProductMatchCompaniesResponse.d.ts +12 -0
- package/dist/serialization/resources/plans/types/CountPlansParams.d.ts +2 -0
- package/dist/serialization/resources/plans/types/CreateCustomPlanResponse.d.ts +11 -0
- package/dist/serialization/resources/plans/types/DeletePlanVersionParams.d.ts +9 -0
- package/dist/serialization/resources/plans/types/DeletePlanVersionResponse.d.ts +2 -1
- package/dist/serialization/resources/plans/types/ListBillingProductMatchCompaniesParams.d.ts +12 -0
- package/dist/serialization/resources/plans/types/ListBillingProductMatchCompaniesResponse.d.ts +12 -0
- package/dist/serialization/resources/plans/types/ListPlansParams.d.ts +2 -0
- package/dist/serialization/resources/plans/types/UpsertPlanForBillingProductResponse.d.ts +11 -0
- package/dist/serialization/resources/plans/types/index.d.ts +7 -0
- package/dist/serialization/types/AccountMemberPermission.d.ts +7 -0
- package/dist/serialization/types/AccountMemberResponseData.d.ts +18 -0
- package/dist/serialization/types/AccountMemberRole.d.ts +7 -0
- package/dist/serialization/types/BillingCreditBundleResponseData.d.ts +3 -0
- package/dist/serialization/types/BillingCreditBundleView.d.ts +2 -0
- package/dist/serialization/types/BillingCreditGrantReason.d.ts +1 -1
- package/dist/serialization/types/BillingCreditGrantResponseData.d.ts +1 -0
- package/dist/serialization/types/BillingCreditResponseData.d.ts +2 -0
- package/dist/serialization/types/BillingLinkedResourceResponseData.d.ts +12 -0
- package/dist/serialization/types/BillingPlanCreditGrantResponseData.d.ts +1 -0
- package/dist/serialization/types/BillingProductPlanResponseData.d.ts +2 -2
- package/dist/serialization/types/BillingProviderType.d.ts +1 -1
- package/dist/serialization/types/CheckoutSubscription.d.ts +1 -0
- package/dist/serialization/types/CompanyDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +10 -3
- package/dist/serialization/types/ConditionGroupResponseData.d.ts +0 -1
- package/dist/serialization/types/ConditionGroupView.d.ts +0 -1
- package/dist/serialization/types/ConditionResponseData.d.ts +0 -1
- package/dist/serialization/types/ConditionView.d.ts +0 -1
- package/dist/serialization/types/CreateBillingPlanCreditGrantRequestBody.d.ts +1 -0
- package/dist/serialization/types/CreateEntitlementInBundleRequestBody.d.ts +2 -0
- package/dist/serialization/types/CreatePlanRequestBody.d.ts +2 -1
- package/dist/serialization/types/CreditBundleCurrencyPrice.d.ts +11 -0
- package/dist/serialization/types/CreditBundleCurrencyPriceRequestBody.d.ts +11 -0
- package/dist/serialization/types/CreditBundleCurrencyPriceResponseData.d.ts +11 -0
- package/dist/serialization/types/CreditCompanyGrantView.d.ts +1 -0
- package/dist/serialization/types/CreditCurrencyPriceRequestBody.d.ts +11 -0
- package/dist/serialization/types/CreditCurrencyPriceResponseData.d.ts +11 -0
- package/dist/serialization/types/CurrencyPriceRequestBody.d.ts +16 -0
- package/dist/serialization/types/CustomPlanActivationStrategy.d.ts +7 -0
- package/dist/serialization/types/CustomPlanBillingResponseData.d.ts +21 -0
- package/dist/serialization/types/CustomPlanBillingStatus.d.ts +7 -0
- package/dist/serialization/types/DatastreamCompanyPlan.d.ts +2 -0
- package/dist/serialization/types/EntitlementCurrencyPricesResponseData.d.ts +12 -0
- package/dist/serialization/types/FeatureDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/FeatureView.d.ts +2 -0
- package/dist/serialization/types/IntegrationType.d.ts +7 -0
- package/dist/serialization/types/IntegrationWebhookUrlResponseData.d.ts +11 -0
- package/dist/serialization/types/ManagePlanRequest.d.ts +1 -0
- package/dist/serialization/types/PlanCreditGrantView.d.ts +1 -0
- package/dist/serialization/types/PlanCurrencyPriceRequestBody.d.ts +12 -0
- package/dist/serialization/types/PlanCurrencyPricesResponseData.d.ts +13 -0
- package/dist/serialization/types/PlanDetailResponseData.d.ts +10 -3
- package/dist/serialization/types/PlanEntitlementResponseData.d.ts +4 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +10 -3
- package/dist/serialization/types/PlanIcon.d.ts +7 -0
- package/dist/serialization/types/PlanResponseData.d.ts +4 -1
- package/dist/serialization/types/PlanSelection.d.ts +1 -0
- package/dist/serialization/types/PlanVersionResponseData.d.ts +2 -1
- package/dist/serialization/types/PlanViewPublicResponseData.d.ts +10 -3
- package/dist/serialization/types/RuleView.d.ts +0 -1
- package/dist/serialization/types/RulesEngineSchemaVersion.d.ts +1 -1
- package/dist/serialization/types/TrialStatus.d.ts +7 -0
- package/dist/serialization/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +1 -0
- package/dist/serialization/types/UpdatePlanRequestBody.d.ts +2 -1
- package/dist/serialization/types/UpsertBillingProductRequestBody.d.ts +2 -0
- package/dist/serialization/types/UsageBasedEntitlementRequestBody.d.ts +2 -0
- package/dist/serialization/types/WebScheduledDowngradeWebhookOutput.d.ts +17 -0
- package/dist/serialization/types/WebhookRequestType.d.ts +1 -1
- package/dist/serialization/types/WebhookUrl.d.ts +11 -0
- package/dist/serialization/types/index.d.ts +22 -1
- package/dist/wasm/rulesengine.d.ts +10 -0
- package/dist/wasm/rulesengine.js +193 -0
- package/dist/wasm/rulesengine_bg.wasm +0 -0
- package/dist/wasm/rulesengine_bg.wasm.d.ts +25 -0
- package/package.json +9 -9
- package/dist/api/types/PlanControlledByType.d.ts +0 -5
- package/dist/serialization/types/PlanControlledByType.d.ts +0 -7
package/LICENSE
CHANGED
package/dist/BaseClient.d.ts
CHANGED
package/dist/Client.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { DataexportsClient } from "./api/resources/dataexports/client/Client";
|
|
|
10
10
|
import { EntitlementsClient } from "./api/resources/entitlements/client/Client";
|
|
11
11
|
import { EventsClient } from "./api/resources/events/client/Client";
|
|
12
12
|
import { FeaturesClient } from "./api/resources/features/client/Client";
|
|
13
|
+
import { IntegrationsapiClient } from "./api/resources/integrationsapi/client/Client";
|
|
13
14
|
import { PlanbundleClient } from "./api/resources/planbundle/client/Client";
|
|
14
15
|
import { PlangroupsClient } from "./api/resources/plangroups/client/Client";
|
|
15
16
|
import { PlanmigrationsClient } from "./api/resources/planmigrations/client/Client";
|
|
@@ -37,6 +38,7 @@ export declare class SchematicClient {
|
|
|
37
38
|
protected _dataexports: DataexportsClient | undefined;
|
|
38
39
|
protected _events: EventsClient | undefined;
|
|
39
40
|
protected _features: FeaturesClient | undefined;
|
|
41
|
+
protected _integrationsapi: IntegrationsapiClient | undefined;
|
|
40
42
|
protected _planbundle: PlanbundleClient | undefined;
|
|
41
43
|
protected _plangroups: PlangroupsClient | undefined;
|
|
42
44
|
protected _planmigrations: PlanmigrationsClient | undefined;
|
|
@@ -56,6 +58,7 @@ export declare class SchematicClient {
|
|
|
56
58
|
get dataexports(): DataexportsClient;
|
|
57
59
|
get events(): EventsClient;
|
|
58
60
|
get features(): FeaturesClient;
|
|
61
|
+
get integrationsapi(): IntegrationsapiClient;
|
|
59
62
|
get planbundle(): PlanbundleClient;
|
|
60
63
|
get plangroups(): PlangroupsClient;
|
|
61
64
|
get planmigrations(): PlanmigrationsClient;
|
|
@@ -81,4 +84,15 @@ export declare class SchematicClient {
|
|
|
81
84
|
*/
|
|
82
85
|
deletePlanAudiencesPlanAudienceId(plan_audience_id: string, requestOptions?: SchematicClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
83
86
|
private __deletePlanAudiencesPlanAudienceId;
|
|
87
|
+
/**
|
|
88
|
+
* Make a passthrough request using the SDK's configured auth, retry, logging, etc.
|
|
89
|
+
* This is useful for making requests to endpoints not yet supported in the SDK.
|
|
90
|
+
* The input can be a URL string, URL object, or Request object. Relative paths are resolved against the configured base URL.
|
|
91
|
+
*
|
|
92
|
+
* @param {Request | string | URL} input - The URL, path, or Request object.
|
|
93
|
+
* @param {RequestInit} init - Standard fetch RequestInit options.
|
|
94
|
+
* @param {core.PassthroughRequest.RequestOptions} requestOptions - Per-request overrides (timeout, retries, headers, abort signal).
|
|
95
|
+
* @returns {Promise<Response>} A standard Response object.
|
|
96
|
+
*/
|
|
97
|
+
fetch(input: Request | string | URL, init?: RequestInit, requestOptions?: core.PassthroughRequest.RequestOptions): Promise<Response>;
|
|
84
98
|
}
|
|
@@ -10,6 +10,39 @@ export declare namespace AccountsClient {
|
|
|
10
10
|
export declare class AccountsClient {
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<AccountsClient.Options>;
|
|
12
12
|
constructor(options: AccountsClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* @param {Schematic.ListAccountMembersRequest} request
|
|
15
|
+
* @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
|
+
*
|
|
17
|
+
* @throws {@link Schematic.BadRequestError}
|
|
18
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
19
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
20
|
+
* @throws {@link Schematic.NotFoundError}
|
|
21
|
+
* @throws {@link Schematic.InternalServerError}
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* await client.accounts.listAccountMembers({
|
|
25
|
+
* q: "q",
|
|
26
|
+
* limit: 1000000,
|
|
27
|
+
* offset: 1000000
|
|
28
|
+
* })
|
|
29
|
+
*/
|
|
30
|
+
listAccountMembers(request?: Schematic.ListAccountMembersRequest, requestOptions?: AccountsClient.RequestOptions): core.HttpResponsePromise<Schematic.ListAccountMembersResponse>;
|
|
31
|
+
private __listAccountMembers;
|
|
32
|
+
/**
|
|
33
|
+
* @param {string} account_member_id - account_member_id
|
|
34
|
+
* @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
|
+
*
|
|
36
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
37
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
38
|
+
* @throws {@link Schematic.NotFoundError}
|
|
39
|
+
* @throws {@link Schematic.InternalServerError}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* await client.accounts.getAccountMember("account_member_id")
|
|
43
|
+
*/
|
|
44
|
+
getAccountMember(account_member_id: string, requestOptions?: AccountsClient.RequestOptions): core.HttpResponsePromise<Schematic.GetAccountMemberResponse>;
|
|
45
|
+
private __getAccountMember;
|
|
13
46
|
/**
|
|
14
47
|
* @param {Schematic.ListApiKeysRequest} request
|
|
15
48
|
* @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -24,8 +57,8 @@ export declare class AccountsClient {
|
|
|
24
57
|
* await client.accounts.listApiKeys({
|
|
25
58
|
* environmentId: "environment_id",
|
|
26
59
|
* requireEnvironment: true,
|
|
27
|
-
* limit:
|
|
28
|
-
* offset:
|
|
60
|
+
* limit: 1000000,
|
|
61
|
+
* offset: 1000000
|
|
29
62
|
* })
|
|
30
63
|
*/
|
|
31
64
|
listApiKeys(request: Schematic.ListApiKeysRequest, requestOptions?: AccountsClient.RequestOptions): core.HttpResponsePromise<Schematic.ListApiKeysResponse>;
|
|
@@ -106,8 +139,8 @@ export declare class AccountsClient {
|
|
|
106
139
|
* await client.accounts.countApiKeys({
|
|
107
140
|
* environmentId: "environment_id",
|
|
108
141
|
* requireEnvironment: true,
|
|
109
|
-
* limit:
|
|
110
|
-
* offset:
|
|
142
|
+
* limit: 1000000,
|
|
143
|
+
* offset: 1000000
|
|
111
144
|
* })
|
|
112
145
|
*/
|
|
113
146
|
countApiKeys(request: Schematic.CountApiKeysRequest, requestOptions?: AccountsClient.RequestOptions): core.HttpResponsePromise<Schematic.CountApiKeysResponse>;
|
|
@@ -129,8 +162,8 @@ export declare class AccountsClient {
|
|
|
129
162
|
* environmentId: "environment_id",
|
|
130
163
|
* q: "q",
|
|
131
164
|
* startTime: new Date("2024-01-15T09:30:00.000Z"),
|
|
132
|
-
* limit:
|
|
133
|
-
* offset:
|
|
165
|
+
* limit: 1000000,
|
|
166
|
+
* offset: 1000000
|
|
134
167
|
* })
|
|
135
168
|
*/
|
|
136
169
|
listAuditLogs(request?: Schematic.ListAuditLogsRequest, requestOptions?: AccountsClient.RequestOptions): core.HttpResponsePromise<Schematic.ListAuditLogsResponse>;
|
|
@@ -166,8 +199,8 @@ export declare class AccountsClient {
|
|
|
166
199
|
* environmentId: "environment_id",
|
|
167
200
|
* q: "q",
|
|
168
201
|
* startTime: new Date("2024-01-15T09:30:00.000Z"),
|
|
169
|
-
* limit:
|
|
170
|
-
* offset:
|
|
202
|
+
* limit: 1000000,
|
|
203
|
+
* offset: 1000000
|
|
171
204
|
* })
|
|
172
205
|
*/
|
|
173
206
|
countAuditLogs(request?: Schematic.CountAuditLogsRequest, requestOptions?: AccountsClient.RequestOptions): core.HttpResponsePromise<Schematic.CountAuditLogsResponse>;
|
|
@@ -184,8 +217,8 @@ export declare class AccountsClient {
|
|
|
184
217
|
*
|
|
185
218
|
* @example
|
|
186
219
|
* await client.accounts.listEnvironments({
|
|
187
|
-
* limit:
|
|
188
|
-
* offset:
|
|
220
|
+
* limit: 1000000,
|
|
221
|
+
* offset: 1000000
|
|
189
222
|
* })
|
|
190
223
|
*/
|
|
191
224
|
listEnvironments(request?: Schematic.ListEnvironmentsRequest, requestOptions?: AccountsClient.RequestOptions): core.HttpResponsePromise<Schematic.ListEnvironmentsResponse>;
|
|
@@ -7,8 +7,8 @@ import type * as Schematic from "../../../../index";
|
|
|
7
7
|
* environmentId: "environment_id",
|
|
8
8
|
* q: "q",
|
|
9
9
|
* startTime: new Date("2024-01-15T09:30:00.000Z"),
|
|
10
|
-
* limit:
|
|
11
|
-
* offset:
|
|
10
|
+
* limit: 1000000,
|
|
11
|
+
* offset: 1000000
|
|
12
12
|
* }
|
|
13
13
|
*/
|
|
14
14
|
export interface CountAuditLogsRequest {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* q: "q",
|
|
5
|
+
* limit: 1000000,
|
|
6
|
+
* offset: 1000000
|
|
7
|
+
* }
|
|
8
|
+
*/
|
|
9
|
+
export interface ListAccountMembersRequest {
|
|
10
|
+
ids?: string | string[];
|
|
11
|
+
/** Search filter */
|
|
12
|
+
q?: string;
|
|
13
|
+
/** Page limit (default 100) */
|
|
14
|
+
limit?: number;
|
|
15
|
+
/** Page offset (default 0) */
|
|
16
|
+
offset?: number;
|
|
17
|
+
}
|
|
@@ -7,8 +7,8 @@ import type * as Schematic from "../../../../index";
|
|
|
7
7
|
* environmentId: "environment_id",
|
|
8
8
|
* q: "q",
|
|
9
9
|
* startTime: new Date("2024-01-15T09:30:00.000Z"),
|
|
10
|
-
* limit:
|
|
11
|
-
* offset:
|
|
10
|
+
* limit: 1000000,
|
|
11
|
+
* offset: 1000000
|
|
12
12
|
* }
|
|
13
13
|
*/
|
|
14
14
|
export interface ListAuditLogsRequest {
|
|
@@ -2,6 +2,7 @@ export type { CountApiKeysRequest } from "./CountApiKeysRequest";
|
|
|
2
2
|
export type { CountAuditLogsRequest } from "./CountAuditLogsRequest";
|
|
3
3
|
export type { CreateApiKeyRequestBody } from "./CreateApiKeyRequestBody";
|
|
4
4
|
export type { CreateEnvironmentRequestBody } from "./CreateEnvironmentRequestBody";
|
|
5
|
+
export type { ListAccountMembersRequest } from "./ListAccountMembersRequest";
|
|
5
6
|
export type { ListApiKeysRequest } from "./ListApiKeysRequest";
|
|
6
7
|
export type { ListAuditLogsRequest } from "./ListAuditLogsRequest";
|
|
7
8
|
export type { ListEnvironmentsRequest } from "./ListEnvironmentsRequest";
|
|
@@ -6,10 +6,13 @@ export * from "./CreateApiKeyResponse";
|
|
|
6
6
|
export * from "./CreateEnvironmentResponse";
|
|
7
7
|
export * from "./DeleteApiKeyResponse";
|
|
8
8
|
export * from "./DeleteEnvironmentResponse";
|
|
9
|
+
export * from "./GetAccountMemberResponse";
|
|
9
10
|
export * from "./GetApiKeyResponse";
|
|
10
11
|
export * from "./GetAuditLogResponse";
|
|
11
12
|
export * from "./GetEnvironmentResponse";
|
|
12
13
|
export * from "./GetWhoAmIResponse";
|
|
14
|
+
export * from "./ListAccountMembersParams";
|
|
15
|
+
export * from "./ListAccountMembersResponse";
|
|
13
16
|
export * from "./ListApiKeysParams";
|
|
14
17
|
export * from "./ListApiKeysResponse";
|
|
15
18
|
export * from "./ListAuditLogsParams";
|
|
@@ -24,8 +24,8 @@ export declare class BillingClient {
|
|
|
24
24
|
* await client.billing.listCoupons({
|
|
25
25
|
* isActive: true,
|
|
26
26
|
* q: "q",
|
|
27
|
-
* limit:
|
|
28
|
-
* offset:
|
|
27
|
+
* limit: 1000000,
|
|
28
|
+
* offset: 1000000
|
|
29
29
|
* })
|
|
30
30
|
*/
|
|
31
31
|
listCoupons(request?: Schematic.ListCouponsRequest, requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise<Schematic.ListCouponsResponse>;
|
|
@@ -42,14 +42,14 @@ export declare class BillingClient {
|
|
|
42
42
|
*
|
|
43
43
|
* @example
|
|
44
44
|
* await client.billing.upsertBillingCoupon({
|
|
45
|
-
* amountOff:
|
|
45
|
+
* amountOff: 1000000,
|
|
46
46
|
* duration: "duration",
|
|
47
|
-
* durationInMonths:
|
|
47
|
+
* durationInMonths: 1000000,
|
|
48
48
|
* externalId: "external_id",
|
|
49
|
-
* maxRedemptions:
|
|
49
|
+
* maxRedemptions: 1000000,
|
|
50
50
|
* name: "name",
|
|
51
51
|
* percentOff: 1.1,
|
|
52
|
-
* timesRedeemed:
|
|
52
|
+
* timesRedeemed: 1000000
|
|
53
53
|
* })
|
|
54
54
|
*/
|
|
55
55
|
upsertBillingCoupon(request: Schematic.CreateCouponRequestBody, requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise<Schematic.UpsertBillingCouponResponse>;
|
|
@@ -89,10 +89,10 @@ export declare class BillingClient {
|
|
|
89
89
|
* @example
|
|
90
90
|
* await client.billing.listCustomersWithSubscriptions({
|
|
91
91
|
* name: "name",
|
|
92
|
-
* providerType: "
|
|
92
|
+
* providerType: "orb",
|
|
93
93
|
* q: "q",
|
|
94
|
-
* limit:
|
|
95
|
-
* offset:
|
|
94
|
+
* limit: 1000000,
|
|
95
|
+
* offset: 1000000
|
|
96
96
|
* })
|
|
97
97
|
*/
|
|
98
98
|
listCustomersWithSubscriptions(request?: Schematic.ListCustomersWithSubscriptionsRequest, requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise<Schematic.ListCustomersWithSubscriptionsResponse>;
|
|
@@ -110,10 +110,10 @@ export declare class BillingClient {
|
|
|
110
110
|
* @example
|
|
111
111
|
* await client.billing.countCustomers({
|
|
112
112
|
* name: "name",
|
|
113
|
-
* providerType: "
|
|
113
|
+
* providerType: "orb",
|
|
114
114
|
* q: "q",
|
|
115
|
-
* limit:
|
|
116
|
-
* offset:
|
|
115
|
+
* limit: 1000000,
|
|
116
|
+
* offset: 1000000
|
|
117
117
|
* })
|
|
118
118
|
*/
|
|
119
119
|
countCustomers(request?: Schematic.CountCustomersRequest, requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise<Schematic.CountCustomersResponse>;
|
|
@@ -133,8 +133,8 @@ export declare class BillingClient {
|
|
|
133
133
|
* companyId: "company_id",
|
|
134
134
|
* customerExternalId: "customer_external_id",
|
|
135
135
|
* subscriptionExternalId: "subscription_external_id",
|
|
136
|
-
* limit:
|
|
137
|
-
* offset:
|
|
136
|
+
* limit: 1000000,
|
|
137
|
+
* offset: 1000000
|
|
138
138
|
* })
|
|
139
139
|
*/
|
|
140
140
|
listInvoices(request: Schematic.ListInvoicesRequest, requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise<Schematic.ListInvoicesResponse>;
|
|
@@ -151,13 +151,13 @@ export declare class BillingClient {
|
|
|
151
151
|
*
|
|
152
152
|
* @example
|
|
153
153
|
* await client.billing.upsertInvoice({
|
|
154
|
-
* amountDue:
|
|
155
|
-
* amountPaid:
|
|
156
|
-
* amountRemaining:
|
|
154
|
+
* amountDue: 1000000,
|
|
155
|
+
* amountPaid: 1000000,
|
|
156
|
+
* amountRemaining: 1000000,
|
|
157
157
|
* collectionMethod: "collection_method",
|
|
158
158
|
* currency: "currency",
|
|
159
159
|
* customerExternalId: "customer_external_id",
|
|
160
|
-
* subtotal:
|
|
160
|
+
* subtotal: 1000000
|
|
161
161
|
* })
|
|
162
162
|
*/
|
|
163
163
|
upsertInvoice(request: Schematic.CreateInvoiceRequestBody, requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise<Schematic.UpsertInvoiceResponse>;
|
|
@@ -175,8 +175,8 @@ export declare class BillingClient {
|
|
|
175
175
|
* @example
|
|
176
176
|
* await client.billing.listMeters({
|
|
177
177
|
* displayName: "display_name",
|
|
178
|
-
* limit:
|
|
179
|
-
* offset:
|
|
178
|
+
* limit: 1000000,
|
|
179
|
+
* offset: 1000000
|
|
180
180
|
* })
|
|
181
181
|
*/
|
|
182
182
|
listMeters(request?: Schematic.ListMetersRequest, requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise<Schematic.ListMetersResponse>;
|
|
@@ -215,8 +215,8 @@ export declare class BillingClient {
|
|
|
215
215
|
* await client.billing.listPaymentMethods({
|
|
216
216
|
* companyId: "company_id",
|
|
217
217
|
* customerExternalId: "customer_external_id",
|
|
218
|
-
* limit:
|
|
219
|
-
* offset:
|
|
218
|
+
* limit: 1000000,
|
|
219
|
+
* offset: 1000000
|
|
220
220
|
* })
|
|
221
221
|
*/
|
|
222
222
|
listPaymentMethods(request: Schematic.ListPaymentMethodsRequest, requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise<Schematic.ListPaymentMethodsResponse>;
|
|
@@ -252,19 +252,20 @@ export declare class BillingClient {
|
|
|
252
252
|
*
|
|
253
253
|
* @example
|
|
254
254
|
* await client.billing.listBillingPrices({
|
|
255
|
+
* currency: "currency",
|
|
255
256
|
* forInitialPlan: true,
|
|
256
257
|
* forTrialExpiryPlan: true,
|
|
257
258
|
* interval: "interval",
|
|
258
259
|
* isActive: true,
|
|
259
|
-
* price:
|
|
260
|
+
* price: 1000000,
|
|
260
261
|
* productId: "product_id",
|
|
261
|
-
* providerType: "
|
|
262
|
+
* providerType: "orb",
|
|
262
263
|
* q: "q",
|
|
263
264
|
* tiersMode: "graduated",
|
|
264
265
|
* usageType: "licensed",
|
|
265
266
|
* withMeter: true,
|
|
266
|
-
* limit:
|
|
267
|
-
* offset:
|
|
267
|
+
* limit: 1000000,
|
|
268
|
+
* offset: 1000000
|
|
268
269
|
* })
|
|
269
270
|
*/
|
|
270
271
|
listBillingPrices(request?: Schematic.ListBillingPricesRequest, requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise<Schematic.ListBillingPricesResponse>;
|
|
@@ -286,7 +287,7 @@ export declare class BillingClient {
|
|
|
286
287
|
* externalAccountId: "external_account_id",
|
|
287
288
|
* interval: "interval",
|
|
288
289
|
* isActive: true,
|
|
289
|
-
* price:
|
|
290
|
+
* price: 1000000,
|
|
290
291
|
* priceExternalId: "price_external_id",
|
|
291
292
|
* priceTiers: [{
|
|
292
293
|
* priceExternalId: "price_external_id"
|
|
@@ -324,19 +325,20 @@ export declare class BillingClient {
|
|
|
324
325
|
*
|
|
325
326
|
* @example
|
|
326
327
|
* await client.billing.listBillingProductPrices({
|
|
328
|
+
* currency: "currency",
|
|
327
329
|
* forInitialPlan: true,
|
|
328
330
|
* forTrialExpiryPlan: true,
|
|
329
331
|
* interval: "interval",
|
|
330
332
|
* isActive: true,
|
|
331
|
-
* price:
|
|
333
|
+
* price: 1000000,
|
|
332
334
|
* productId: "product_id",
|
|
333
|
-
* providerType: "
|
|
335
|
+
* providerType: "orb",
|
|
334
336
|
* q: "q",
|
|
335
337
|
* tiersMode: "graduated",
|
|
336
338
|
* usageType: "licensed",
|
|
337
339
|
* withMeter: true,
|
|
338
|
-
* limit:
|
|
339
|
-
* offset:
|
|
340
|
+
* limit: 1000000,
|
|
341
|
+
* offset: 1000000
|
|
340
342
|
* })
|
|
341
343
|
*/
|
|
342
344
|
listBillingProductPrices(request?: Schematic.ListBillingProductPricesRequest, requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise<Schematic.ListBillingProductPricesResponse>;
|
|
@@ -389,14 +391,14 @@ export declare class BillingClient {
|
|
|
389
391
|
* isActive: true,
|
|
390
392
|
* name: "name",
|
|
391
393
|
* priceUsageType: "licensed",
|
|
392
|
-
* providerType: "
|
|
394
|
+
* providerType: "orb",
|
|
393
395
|
* q: "q",
|
|
394
396
|
* withOneTimeCharges: true,
|
|
395
397
|
* withPricesOnly: true,
|
|
396
398
|
* withZeroPrice: true,
|
|
397
399
|
* withoutLinkedToPlan: true,
|
|
398
|
-
* limit:
|
|
399
|
-
* offset:
|
|
400
|
+
* limit: 1000000,
|
|
401
|
+
* offset: 1000000
|
|
400
402
|
* })
|
|
401
403
|
*/
|
|
402
404
|
listBillingProducts(request?: Schematic.ListBillingProductsRequest, requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise<Schematic.ListBillingProductsResponse>;
|
|
@@ -416,14 +418,14 @@ export declare class BillingClient {
|
|
|
416
418
|
* isActive: true,
|
|
417
419
|
* name: "name",
|
|
418
420
|
* priceUsageType: "licensed",
|
|
419
|
-
* providerType: "
|
|
421
|
+
* providerType: "orb",
|
|
420
422
|
* q: "q",
|
|
421
423
|
* withOneTimeCharges: true,
|
|
422
424
|
* withPricesOnly: true,
|
|
423
425
|
* withZeroPrice: true,
|
|
424
426
|
* withoutLinkedToPlan: true,
|
|
425
|
-
* limit:
|
|
426
|
-
* offset:
|
|
427
|
+
* limit: 1000000,
|
|
428
|
+
* offset: 1000000
|
|
427
429
|
* })
|
|
428
430
|
*/
|
|
429
431
|
countBillingProducts(request?: Schematic.CountBillingProductsRequest, requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise<Schematic.CountBillingProductsResponse>;
|
|
@@ -453,14 +455,14 @@ export declare class BillingClient {
|
|
|
453
455
|
* productExternalIds: [{
|
|
454
456
|
* currency: "currency",
|
|
455
457
|
* interval: "interval",
|
|
456
|
-
* price:
|
|
458
|
+
* price: 1000000,
|
|
457
459
|
* priceExternalId: "price_external_id",
|
|
458
460
|
* productExternalId: "product_external_id",
|
|
459
|
-
* quantity:
|
|
461
|
+
* quantity: 1000000,
|
|
460
462
|
* usageType: "licensed"
|
|
461
463
|
* }],
|
|
462
464
|
* subscriptionExternalId: "subscription_external_id",
|
|
463
|
-
* totalPrice:
|
|
465
|
+
* totalPrice: 1000000
|
|
464
466
|
* })
|
|
465
467
|
*/
|
|
466
468
|
upsertBillingSubscription(request: Schematic.CreateBillingSubscriptionRequestBody, requestOptions?: BillingClient.RequestOptions): core.HttpResponsePromise<Schematic.UpsertBillingSubscriptionResponse>;
|
|
@@ -5,14 +5,14 @@ import type * as Schematic from "../../../../index";
|
|
|
5
5
|
* isActive: true,
|
|
6
6
|
* name: "name",
|
|
7
7
|
* priceUsageType: "licensed",
|
|
8
|
-
* providerType: "
|
|
8
|
+
* providerType: "orb",
|
|
9
9
|
* q: "q",
|
|
10
10
|
* withOneTimeCharges: true,
|
|
11
11
|
* withPricesOnly: true,
|
|
12
12
|
* withZeroPrice: true,
|
|
13
13
|
* withoutLinkedToPlan: true,
|
|
14
|
-
* limit:
|
|
15
|
-
* offset:
|
|
14
|
+
* limit: 1000000,
|
|
15
|
+
* offset: 1000000
|
|
16
16
|
* }
|
|
17
17
|
*/
|
|
18
18
|
export interface CountBillingProductsRequest {
|
|
@@ -3,10 +3,10 @@ import type * as Schematic from "../../../../index";
|
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
5
|
* name: "name",
|
|
6
|
-
* providerType: "
|
|
6
|
+
* providerType: "orb",
|
|
7
7
|
* q: "q",
|
|
8
|
-
* limit:
|
|
9
|
-
* offset:
|
|
8
|
+
* limit: 1000000,
|
|
9
|
+
* offset: 1000000
|
|
10
10
|
* }
|
|
11
11
|
*/
|
|
12
12
|
export interface CountCustomersRequest {
|
|
@@ -7,7 +7,7 @@ import type * as Schematic from "../../../../index";
|
|
|
7
7
|
* externalAccountId: "external_account_id",
|
|
8
8
|
* interval: "interval",
|
|
9
9
|
* isActive: true,
|
|
10
|
-
* price:
|
|
10
|
+
* price: 1000000,
|
|
11
11
|
* priceExternalId: "price_external_id",
|
|
12
12
|
* priceTiers: [{
|
|
13
13
|
* priceExternalId: "price_external_id"
|
package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts
CHANGED
|
@@ -15,14 +15,14 @@ import type * as Schematic from "../../../../index";
|
|
|
15
15
|
* productExternalIds: [{
|
|
16
16
|
* currency: "currency",
|
|
17
17
|
* interval: "interval",
|
|
18
|
-
* price:
|
|
18
|
+
* price: 1000000,
|
|
19
19
|
* priceExternalId: "price_external_id",
|
|
20
20
|
* productExternalId: "product_external_id",
|
|
21
|
-
* quantity:
|
|
21
|
+
* quantity: 1000000,
|
|
22
22
|
* usageType: "licensed"
|
|
23
23
|
* }],
|
|
24
24
|
* subscriptionExternalId: "subscription_external_id",
|
|
25
|
-
* totalPrice:
|
|
25
|
+
* totalPrice: 1000000
|
|
26
26
|
* }
|
|
27
27
|
*/
|
|
28
28
|
export interface CreateBillingSubscriptionRequestBody {
|
|
@@ -40,6 +40,7 @@ export interface CreateBillingSubscriptionRequestBody {
|
|
|
40
40
|
periodEnd?: number;
|
|
41
41
|
periodStart?: number;
|
|
42
42
|
productExternalIds: Schematic.BillingProductPricing[];
|
|
43
|
+
providerType?: Schematic.BillingProviderType;
|
|
43
44
|
status?: string;
|
|
44
45
|
subscriptionExternalId: string;
|
|
45
46
|
totalPrice: number;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @example
|
|
3
3
|
* {
|
|
4
|
-
* amountOff:
|
|
4
|
+
* amountOff: 1000000,
|
|
5
5
|
* duration: "duration",
|
|
6
|
-
* durationInMonths:
|
|
6
|
+
* durationInMonths: 1000000,
|
|
7
7
|
* externalId: "external_id",
|
|
8
|
-
* maxRedemptions:
|
|
8
|
+
* maxRedemptions: 1000000,
|
|
9
9
|
* name: "name",
|
|
10
10
|
* percentOff: 1.1,
|
|
11
|
-
* timesRedeemed:
|
|
11
|
+
* timesRedeemed: 1000000
|
|
12
12
|
* }
|
|
13
13
|
*/
|
|
14
14
|
export interface CreateCouponRequestBody {
|
|
@@ -2,13 +2,13 @@ import type * as Schematic from "../../../../index";
|
|
|
2
2
|
/**
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
|
-
* amountDue:
|
|
6
|
-
* amountPaid:
|
|
7
|
-
* amountRemaining:
|
|
5
|
+
* amountDue: 1000000,
|
|
6
|
+
* amountPaid: 1000000,
|
|
7
|
+
* amountRemaining: 1000000,
|
|
8
8
|
* collectionMethod: "collection_method",
|
|
9
9
|
* currency: "currency",
|
|
10
10
|
* customerExternalId: "customer_external_id",
|
|
11
|
-
* subtotal:
|
|
11
|
+
* subtotal: 1000000
|
|
12
12
|
* }
|
|
13
13
|
*/
|
|
14
14
|
export interface CreateInvoiceRequestBody {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../index";
|
|
1
2
|
/**
|
|
2
3
|
* @example
|
|
3
4
|
* {
|
|
@@ -12,4 +13,5 @@ export interface CreateMeterRequestBody {
|
|
|
12
13
|
eventName: string;
|
|
13
14
|
eventPayloadKey: string;
|
|
14
15
|
externalId: string;
|
|
16
|
+
providerType?: Schematic.BillingProviderType;
|
|
15
17
|
}
|