@schematichq/schematic-typescript-node 1.4.5 → 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/dist/Client.d.ts +3 -0
- package/dist/api/resources/accounts/client/Client.d.ts +33 -0
- package/dist/api/resources/accounts/client/requests/ListAccountMembersRequest.d.ts +17 -0
- package/dist/api/resources/accounts/client/requests/index.d.ts +1 -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 +8 -6
- package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +1 -1
- package/dist/api/resources/billing/client/requests/CountCustomersRequest.d.ts +1 -1
- package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +1 -0
- package/dist/api/resources/billing/client/requests/CreateMeterRequestBody.d.ts +2 -0
- package/dist/api/resources/billing/client/requests/ListBillingPricesRequest.d.ts +4 -1
- package/dist/api/resources/billing/client/requests/ListBillingProductPricesRequest.d.ts +4 -1
- package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +1 -1
- package/dist/api/resources/billing/client/requests/ListCustomersWithSubscriptionsRequest.d.ts +1 -1
- 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/companies/client/Client.d.ts +4 -2
- package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +3 -0
- package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +3 -0
- package/dist/api/resources/companies/client/requests/ListPlanChangesRequest.d.ts +5 -4
- 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/credits/client/Client.d.ts +15 -1
- package/dist/api/resources/credits/client/requests/CreateBillingCreditRequestBody.d.ts +1 -0
- package/dist/api/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +2 -1
- package/dist/api/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +1 -0
- package/dist/api/resources/credits/client/requests/UpdateBillingCreditRequestBody.d.ts +1 -0
- package/dist/api/resources/credits/client/requests/UpdateCreditBundleDetailsRequestBody.d.ts +1 -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/entitlements/client/Client.d.ts +21 -0
- 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/UpdatePlanEntitlementRequestBody.d.ts +1 -0
- package/dist/api/resources/entitlements/client/requests/index.d.ts +1 -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/features/client/Client.d.ts +25 -4
- package/dist/api/resources/features/client/requests/CountFeaturesRequest.d.ts +8 -8
- package/dist/api/resources/features/client/requests/CreateBillingLinkedFeatureRequestBody.d.ts +26 -0
- package/dist/api/resources/features/client/requests/ListFeaturesRequest.d.ts +8 -8
- package/dist/api/resources/features/client/requests/index.d.ts +1 -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/plans/client/Client.d.ts +92 -3
- package/dist/api/resources/plans/client/requests/CountBillingProductMatchCompaniesRequest.d.ts +19 -0
- package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +3 -0
- 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 +3 -0
- 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/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 +2 -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 +2 -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/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/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/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/PlanVersionResponseData.d.ts +1 -1
- package/dist/api/types/PlanViewPublicResponseData.d.ts +7 -2
- 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/WebhookUrl.d.ts +5 -0
- package/dist/api/types/index.d.ts +21 -1
- package/dist/datastream/merge.d.ts +2 -7
- 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 +1 -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 +1 -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/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/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/PlanVersionResponseData.d.ts +2 -1
- package/dist/serialization/types/PlanViewPublicResponseData.d.ts +10 -3
- 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/WebhookUrl.d.ts +11 -0
- package/dist/serialization/types/index.d.ts +21 -1
- package/dist/wasm/rulesengine.js +3 -3
- package/dist/wasm/rulesengine_bg.wasm +0 -0
- package/package.json +7 -7
- package/dist/api/types/PlanControlledByType.d.ts +0 -5
- package/dist/serialization/types/PlanControlledByType.d.ts +0 -7
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Input parameters
|
|
3
|
+
*/
|
|
4
|
+
export interface ListBillingProductMatchCompaniesParams {
|
|
5
|
+
/** Page limit (default 100) */
|
|
6
|
+
limit?: number;
|
|
7
|
+
/** Page offset (default 0) */
|
|
8
|
+
offset?: number;
|
|
9
|
+
/** The plan ID to find billing product match companies for */
|
|
10
|
+
planId?: string;
|
|
11
|
+
/** Search for companies by name, keys or string traits */
|
|
12
|
+
q?: string;
|
|
13
|
+
}
|
|
@@ -22,6 +22,8 @@ export interface ListPlansParams {
|
|
|
22
22
|
/** Filter by plan type */
|
|
23
23
|
planType?: Schematic.PlanType;
|
|
24
24
|
q?: string;
|
|
25
|
+
/** Filter plans scoped to a specific company (custom plans) */
|
|
26
|
+
scopedToCompanyId?: string;
|
|
25
27
|
/** Filter out plans that already have a plan entitlement for the specified feature ID */
|
|
26
28
|
withoutEntitlementFor?: string;
|
|
27
29
|
/** Filter out plans that have a paid billing product ID */
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
+
export * from "./CountBillingProductMatchCompaniesParams";
|
|
2
|
+
export * from "./CountBillingProductMatchCompaniesResponse";
|
|
1
3
|
export * from "./CountPlansParams";
|
|
2
4
|
export * from "./CountPlansResponse";
|
|
5
|
+
export * from "./CreateCustomPlanResponse";
|
|
3
6
|
export * from "./CreatePlanResponse";
|
|
4
7
|
export * from "./DeletePlanResponse";
|
|
8
|
+
export * from "./DeletePlanVersionParams";
|
|
5
9
|
export * from "./DeletePlanVersionResponse";
|
|
6
10
|
export * from "./GetPlanParams";
|
|
7
11
|
export * from "./GetPlanResponse";
|
|
12
|
+
export * from "./ListBillingProductMatchCompaniesParams";
|
|
13
|
+
export * from "./ListBillingProductMatchCompaniesResponse";
|
|
8
14
|
export * from "./ListPlanIssuesParams";
|
|
9
15
|
export * from "./ListPlanIssuesResponse";
|
|
10
16
|
export * from "./ListPlansParams";
|
|
@@ -13,3 +19,4 @@ export * from "./PublishPlanVersionResponse";
|
|
|
13
19
|
export * from "./UpdateCompanyPlansResponse";
|
|
14
20
|
export * from "./UpdatePlanResponse";
|
|
15
21
|
export * from "./UpsertBillingProductPlanResponse";
|
|
22
|
+
export * from "./UpsertPlanForBillingProductResponse";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare const AccountMemberPermission: {
|
|
2
|
+
readonly BillingCreditsEdit: "billing_credits_edit";
|
|
3
|
+
readonly CompaniesEdit: "companies_edit";
|
|
4
|
+
readonly CompanyUsersEdit: "company_users_edit";
|
|
5
|
+
readonly ComponentsEdit: "components_edit";
|
|
6
|
+
readonly DataExportsEdit: "data_exports_edit";
|
|
7
|
+
readonly FeaturesEdit: "features_edit";
|
|
8
|
+
readonly FlagRulesEdit: "flag_rules_edit";
|
|
9
|
+
readonly FlagsEdit: "flags_edit";
|
|
10
|
+
readonly OverridesEdit: "overrides_edit";
|
|
11
|
+
readonly PlanBillingEdit: "plan_billing_edit";
|
|
12
|
+
readonly PlanEntitlementsEdit: "plan_entitlements_edit";
|
|
13
|
+
readonly PlanVersionsEdit: "plan_versions_edit";
|
|
14
|
+
readonly PlansEdit: "plans_edit";
|
|
15
|
+
readonly WebhooksEdit: "webhooks_edit";
|
|
16
|
+
readonly WebhooksRevealSecret: "webhooks_reveal_secret";
|
|
17
|
+
};
|
|
18
|
+
export type AccountMemberPermission = (typeof AccountMemberPermission)[keyof typeof AccountMemberPermission];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface AccountMemberResponseData {
|
|
3
|
+
createdAt: Date;
|
|
4
|
+
email?: string;
|
|
5
|
+
id: string;
|
|
6
|
+
imageUrl?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
permissions: Record<string, Schematic.AccountMemberPermission[]>;
|
|
9
|
+
role?: Schematic.AccountMemberRole;
|
|
10
|
+
updatedAt: Date;
|
|
11
|
+
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type * as Schematic from "../index";
|
|
2
2
|
export interface BillingCreditBundleResponseData {
|
|
3
|
+
billingInvoiceId?: string;
|
|
3
4
|
bundleType: Schematic.BillingCreditBundleType;
|
|
4
5
|
createdAt: Date;
|
|
5
6
|
creditDescription?: string;
|
|
6
7
|
creditIcon?: string;
|
|
7
8
|
creditId: string;
|
|
8
9
|
creditName: string;
|
|
10
|
+
currencyPrices: Schematic.CreditBundleCurrencyPriceResponseData[];
|
|
9
11
|
expiryType: Schematic.BillingCreditExpiryType;
|
|
10
12
|
expiryUnit: Schematic.BillingCreditExpiryUnit;
|
|
11
13
|
expiryUnitCount?: number;
|
|
@@ -6,6 +6,7 @@ export interface BillingCreditBundleView {
|
|
|
6
6
|
creditIcon?: string;
|
|
7
7
|
creditId: string;
|
|
8
8
|
creditName: string;
|
|
9
|
+
currencyPrices?: Schematic.CreditBundleCurrencyPrice[];
|
|
9
10
|
expiryType: Schematic.BillingCreditExpiryType;
|
|
10
11
|
expiryUnit: Schematic.BillingCreditExpiryUnit;
|
|
11
12
|
expiryUnitCount?: number;
|
|
@@ -3,6 +3,7 @@ export interface BillingCreditResponseData {
|
|
|
3
3
|
burnStrategy: Schematic.BillingCreditBurnStrategy;
|
|
4
4
|
costEditable: boolean;
|
|
5
5
|
createdAt: Date;
|
|
6
|
+
currencyPrices: Schematic.CreditCurrencyPriceResponseData[];
|
|
6
7
|
defaultExpiryUnit: Schematic.BillingCreditExpiryUnit;
|
|
7
8
|
defaultExpiryUnitCount?: number;
|
|
8
9
|
defaultRolloverPolicy: Schematic.BillingCreditRolloverPolicy;
|
|
@@ -6,6 +6,7 @@ export interface BillingPlanCreditGrantResponseData {
|
|
|
6
6
|
autoTopupExpiryType?: Schematic.BillingCreditExpiryType;
|
|
7
7
|
autoTopupExpiryUnit?: Schematic.BillingCreditExpiryUnit;
|
|
8
8
|
autoTopupExpiryUnitCount?: number;
|
|
9
|
+
autoTopupThresholdCredits?: number;
|
|
9
10
|
autoTopupThresholdPercent?: number;
|
|
10
11
|
createdAt: Date;
|
|
11
12
|
credit?: Schematic.BillingCreditResponseData;
|
|
@@ -3,7 +3,7 @@ export interface BillingProductPlanResponseData {
|
|
|
3
3
|
accountId: string;
|
|
4
4
|
billingProductId: string;
|
|
5
5
|
chargeType: Schematic.ChargeType;
|
|
6
|
-
controlledBy: Schematic.
|
|
6
|
+
controlledBy: Schematic.BillingProviderType;
|
|
7
7
|
environmentId: string;
|
|
8
8
|
isTrialable: boolean;
|
|
9
9
|
monthlyPriceId?: string;
|
|
@@ -5,6 +5,7 @@ export interface CompanyDetailResponseData {
|
|
|
5
5
|
billingSubscription?: Schematic.BillingSubscriptionView;
|
|
6
6
|
billingSubscriptions: Schematic.BillingSubscriptionView[];
|
|
7
7
|
createdAt: Date;
|
|
8
|
+
customPlanBillings: Schematic.CustomPlanBillingResponseData[];
|
|
8
9
|
defaultPaymentMethod?: Schematic.PaymentMethodResponseData;
|
|
9
10
|
entitlements: Schematic.FeatureEntitlement[];
|
|
10
11
|
entityTraits: Schematic.EntityTraitDetailResponseData[];
|
|
@@ -2,13 +2,18 @@ import type * as Schematic from "../index";
|
|
|
2
2
|
export interface CompanyPlanDetailResponseData {
|
|
3
3
|
activeVersion?: Schematic.PlanVersionResponseData;
|
|
4
4
|
audienceType?: string;
|
|
5
|
+
billingLinkedResource?: Schematic.BillingLinkedResourceResponseData;
|
|
5
6
|
billingProduct?: Schematic.BillingProductDetailResponseData;
|
|
6
7
|
chargeType: Schematic.ChargeType;
|
|
7
8
|
companyCanTrial: boolean;
|
|
8
9
|
companyCount: number;
|
|
10
|
+
companyId?: string;
|
|
11
|
+
companyName?: string;
|
|
9
12
|
compatiblePlanIds: string[];
|
|
10
|
-
controlledBy:
|
|
13
|
+
controlledBy: string;
|
|
14
|
+
copiedFromPlanId?: string;
|
|
11
15
|
createdAt: Date;
|
|
16
|
+
currencyPrices: Schematic.PlanCurrencyPricesResponseData[];
|
|
12
17
|
current: boolean;
|
|
13
18
|
custom: boolean;
|
|
14
19
|
customPlanConfig?: Schematic.CustomPlanConfig;
|
|
@@ -16,7 +21,7 @@ export interface CompanyPlanDetailResponseData {
|
|
|
16
21
|
draftVersion?: Schematic.PlanVersionResponseData;
|
|
17
22
|
entitlements: Schematic.PlanEntitlementResponseData[];
|
|
18
23
|
features: Schematic.FeatureDetailResponseData[];
|
|
19
|
-
icon:
|
|
24
|
+
icon: Schematic.PlanIcon;
|
|
20
25
|
id: string;
|
|
21
26
|
includedCreditGrants: Schematic.PlanCreditGrantView[];
|
|
22
27
|
invalidReason?: Schematic.CompanyPlanInvalidReason;
|
|
@@ -7,6 +7,7 @@ export interface CreateBillingPlanCreditGrantRequestBody {
|
|
|
7
7
|
autoTopupExpiryType?: Schematic.BillingCreditExpiryType;
|
|
8
8
|
autoTopupExpiryUnit?: Schematic.BillingCreditExpiryUnit;
|
|
9
9
|
autoTopupExpiryUnitCount?: number;
|
|
10
|
+
autoTopupThresholdCredits?: number;
|
|
10
11
|
autoTopupThresholdPercent?: number;
|
|
11
12
|
creditAmount: number;
|
|
12
13
|
creditId: string;
|
|
@@ -4,6 +4,7 @@ export interface CreateEntitlementInBundleRequestBody {
|
|
|
4
4
|
billingThreshold?: number;
|
|
5
5
|
creditConsumptionRate?: number;
|
|
6
6
|
currency?: string;
|
|
7
|
+
currencyPrices?: Schematic.CurrencyPriceRequestBody[];
|
|
7
8
|
featureId: string;
|
|
8
9
|
metricPeriod?: Schematic.CreateEntitlementInBundleRequestBodyMetricPeriod;
|
|
9
10
|
metricPeriodMonthReset?: Schematic.CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface CurrencyPriceRequestBody {
|
|
3
|
+
currency: string;
|
|
4
|
+
monthlyPriceTiers?: Schematic.CreatePriceTierRequestBody[];
|
|
5
|
+
monthlyUnitPrice?: number;
|
|
6
|
+
monthlyUnitPriceDecimal?: string;
|
|
7
|
+
yearlyPriceTiers?: Schematic.CreatePriceTierRequestBody[];
|
|
8
|
+
yearlyUnitPrice?: number;
|
|
9
|
+
yearlyUnitPriceDecimal?: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface CustomPlanBillingResponseData {
|
|
3
|
+
activationStrategy: Schematic.CustomPlanActivationStrategy;
|
|
4
|
+
companyId: string;
|
|
5
|
+
createdAt: Date;
|
|
6
|
+
daysUntilDue: number;
|
|
7
|
+
id: string;
|
|
8
|
+
paidAt?: Date;
|
|
9
|
+
planId: string;
|
|
10
|
+
publishedAt?: Date;
|
|
11
|
+
status: Schematic.CustomPlanBillingStatus;
|
|
12
|
+
stripeInvoiceUrl?: string;
|
|
13
|
+
updatedAt: Date;
|
|
14
|
+
}
|
|
@@ -6,6 +6,7 @@ export interface PlanCreditGrantView {
|
|
|
6
6
|
billingCreditAutoTopupExpiryType?: Schematic.BillingCreditExpiryType;
|
|
7
7
|
billingCreditAutoTopupExpiryUnit?: Schematic.BillingCreditExpiryUnit;
|
|
8
8
|
billingCreditAutoTopupExpiryUnitCount?: number;
|
|
9
|
+
billingCreditAutoTopupThresholdCredits?: number;
|
|
9
10
|
billingCreditAutoTopupThresholdPercent?: number;
|
|
10
11
|
createdAt: Date;
|
|
11
12
|
credit?: Schematic.BillingCreditView;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface PlanCurrencyPricesResponseData {
|
|
3
|
+
currency: string;
|
|
4
|
+
monthlyPrice?: Schematic.BillingPriceResponseData;
|
|
5
|
+
oneTimePrice?: Schematic.BillingPriceResponseData;
|
|
6
|
+
yearlyPrice?: Schematic.BillingPriceResponseData;
|
|
7
|
+
}
|
|
@@ -2,15 +2,20 @@ import type * as Schematic from "../index";
|
|
|
2
2
|
export interface PlanDetailResponseData {
|
|
3
3
|
activeVersion?: Schematic.PlanVersionResponseData;
|
|
4
4
|
audienceType?: string;
|
|
5
|
+
billingLinkedResource?: Schematic.BillingLinkedResourceResponseData;
|
|
5
6
|
billingProduct?: Schematic.BillingProductDetailResponseData;
|
|
6
7
|
chargeType: Schematic.ChargeType;
|
|
7
8
|
companyCount: number;
|
|
8
|
-
|
|
9
|
+
companyId?: string;
|
|
10
|
+
companyName?: string;
|
|
11
|
+
controlledBy: string;
|
|
12
|
+
copiedFromPlanId?: string;
|
|
9
13
|
createdAt: Date;
|
|
14
|
+
currencyPrices: Schematic.PlanCurrencyPricesResponseData[];
|
|
10
15
|
description: string;
|
|
11
16
|
draftVersion?: Schematic.PlanVersionResponseData;
|
|
12
17
|
features: Schematic.FeatureDetailResponseData[];
|
|
13
|
-
icon:
|
|
18
|
+
icon: Schematic.PlanIcon;
|
|
14
19
|
id: string;
|
|
15
20
|
includedCreditGrants?: Schematic.BillingPlanCreditGrantResponseData[];
|
|
16
21
|
isDefault: boolean;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type * as Schematic from "../index";
|
|
2
2
|
export interface PlanEntitlementResponseData {
|
|
3
|
+
billingLinkedResource?: Schematic.BillingLinkedResourceResponseData;
|
|
3
4
|
billingThreshold?: number;
|
|
4
5
|
consumptionRate?: number;
|
|
5
6
|
createdAt: Date;
|
|
7
|
+
currencyPrices: Schematic.EntitlementCurrencyPricesResponseData[];
|
|
6
8
|
environmentId: string;
|
|
7
9
|
feature?: Schematic.FeatureResponseData;
|
|
8
10
|
featureId: string;
|
|
@@ -2,18 +2,23 @@ import type * as Schematic from "../index";
|
|
|
2
2
|
export interface PlanGroupPlanDetailResponseData {
|
|
3
3
|
activeVersion?: Schematic.PlanVersionResponseData;
|
|
4
4
|
audienceType?: string;
|
|
5
|
+
billingLinkedResource?: Schematic.BillingLinkedResourceResponseData;
|
|
5
6
|
billingProduct?: Schematic.BillingProductDetailResponseData;
|
|
6
7
|
chargeType: Schematic.ChargeType;
|
|
7
8
|
companyCount: number;
|
|
9
|
+
companyId?: string;
|
|
10
|
+
companyName?: string;
|
|
8
11
|
compatiblePlanIds: string[];
|
|
9
|
-
controlledBy:
|
|
12
|
+
controlledBy: string;
|
|
13
|
+
copiedFromPlanId?: string;
|
|
10
14
|
createdAt: Date;
|
|
15
|
+
currencyPrices: Schematic.PlanCurrencyPricesResponseData[];
|
|
11
16
|
customPlanConfig?: Schematic.CustomPlanViewConfigResponseData;
|
|
12
17
|
description: string;
|
|
13
18
|
draftVersion?: Schematic.PlanVersionResponseData;
|
|
14
19
|
entitlements: Schematic.PlanEntitlementResponseData[];
|
|
15
20
|
features: Schematic.FeatureDetailResponseData[];
|
|
16
|
-
icon:
|
|
21
|
+
icon: Schematic.PlanIcon;
|
|
17
22
|
id: string;
|
|
18
23
|
includedCreditGrants?: Schematic.BillingPlanCreditGrantResponseData[];
|
|
19
24
|
isCustom: boolean;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const PlanIcon: {
|
|
2
|
+
readonly Amber: "amber";
|
|
3
|
+
readonly Blue: "blue";
|
|
4
|
+
readonly BlueGray: "blueGray";
|
|
5
|
+
readonly BlueGreen: "blueGreen";
|
|
6
|
+
readonly Cyan: "cyan";
|
|
7
|
+
readonly Emerald: "emerald";
|
|
8
|
+
readonly Fuchsia: "fuchsia";
|
|
9
|
+
readonly Gray: "gray";
|
|
10
|
+
readonly Green: "green";
|
|
11
|
+
readonly Indigo: "indigo";
|
|
12
|
+
readonly LightBlue: "lightBlue";
|
|
13
|
+
readonly Lime: "lime";
|
|
14
|
+
readonly Orange: "orange";
|
|
15
|
+
readonly Pink: "pink";
|
|
16
|
+
readonly Purple: "purple";
|
|
17
|
+
readonly Red: "red";
|
|
18
|
+
readonly RedOrange: "redOrange";
|
|
19
|
+
readonly Rose: "rose";
|
|
20
|
+
readonly Sky: "sky";
|
|
21
|
+
readonly Slate: "slate";
|
|
22
|
+
readonly Teal: "teal";
|
|
23
|
+
readonly TrueGray: "trueGray";
|
|
24
|
+
readonly Violet: "violet";
|
|
25
|
+
readonly WarmGray: "warmGray";
|
|
26
|
+
readonly Yellow: "yellow";
|
|
27
|
+
};
|
|
28
|
+
export type PlanIcon = (typeof PlanIcon)[keyof typeof PlanIcon];
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type * as Schematic from "../index";
|
|
2
2
|
export interface PlanResponseData {
|
|
3
3
|
audienceType?: string;
|
|
4
|
+
companyId?: string;
|
|
5
|
+
copiedFromPlanId?: string;
|
|
4
6
|
createdAt: Date;
|
|
5
7
|
description: string;
|
|
6
|
-
icon:
|
|
8
|
+
icon: Schematic.PlanIcon;
|
|
7
9
|
id: string;
|
|
8
10
|
name: string;
|
|
9
11
|
planType: Schematic.PlanType;
|
|
@@ -2,19 +2,24 @@ import type * as Schematic from "../index";
|
|
|
2
2
|
export interface PlanViewPublicResponseData {
|
|
3
3
|
activeVersion?: Schematic.PlanVersionResponseData;
|
|
4
4
|
audienceType?: string;
|
|
5
|
+
billingLinkedResource?: Schematic.BillingLinkedResourceResponseData;
|
|
5
6
|
billingProduct?: Schematic.BillingProductDetailResponseData;
|
|
6
7
|
chargeType: Schematic.ChargeType;
|
|
7
8
|
companyCount: number;
|
|
9
|
+
companyId?: string;
|
|
10
|
+
companyName?: string;
|
|
8
11
|
compatiblePlanIds: string[];
|
|
9
|
-
controlledBy:
|
|
12
|
+
controlledBy: string;
|
|
13
|
+
copiedFromPlanId?: string;
|
|
10
14
|
createdAt: Date;
|
|
15
|
+
currencyPrices: Schematic.PlanCurrencyPricesResponseData[];
|
|
11
16
|
custom: boolean;
|
|
12
17
|
customPlanConfig?: Schematic.CustomPlanConfig;
|
|
13
18
|
description: string;
|
|
14
19
|
draftVersion?: Schematic.PlanVersionResponseData;
|
|
15
20
|
entitlements: Schematic.PlanEntitlementResponseData[];
|
|
16
21
|
features: Schematic.FeatureDetailResponseData[];
|
|
17
|
-
icon:
|
|
22
|
+
icon: Schematic.PlanIcon;
|
|
18
23
|
id: string;
|
|
19
24
|
includedCreditGrants: Schematic.PlanCreditGrantView[];
|
|
20
25
|
isCustom: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** The current schema version hash for rules engine types. The first enum value is always the current version. */
|
|
2
2
|
export declare const RulesEngineSchemaVersion: {
|
|
3
|
-
readonly
|
|
3
|
+
readonly V313Fa646: "v313fa646";
|
|
4
4
|
readonly PlaceholderForFernCompatibility: "placeholder-for-fern-compatibility";
|
|
5
5
|
};
|
|
6
6
|
export type RulesEngineSchemaVersion = (typeof RulesEngineSchemaVersion)[keyof typeof RulesEngineSchemaVersion];
|
|
@@ -7,6 +7,7 @@ export interface UpdateBillingPlanCreditGrantRequestBody {
|
|
|
7
7
|
autoTopupExpiryType?: Schematic.BillingCreditExpiryType;
|
|
8
8
|
autoTopupExpiryUnit?: Schematic.BillingCreditExpiryUnit;
|
|
9
9
|
autoTopupExpiryUnitCount?: number;
|
|
10
|
+
autoTopupThresholdCredits?: number;
|
|
10
11
|
autoTopupThresholdPercent?: number;
|
|
11
12
|
creditAmount?: number;
|
|
12
13
|
expiryType?: Schematic.BillingCreditExpiryType;
|
|
@@ -3,6 +3,7 @@ export interface UpsertBillingProductRequestBody {
|
|
|
3
3
|
billingProductId?: string;
|
|
4
4
|
chargeType: Schematic.ChargeType;
|
|
5
5
|
currency?: string;
|
|
6
|
+
currencyPrices?: Schematic.PlanCurrencyPriceRequestBody[];
|
|
6
7
|
isTrialable: boolean;
|
|
7
8
|
monthlyPrice?: number;
|
|
8
9
|
monthlyPriceId?: string;
|