@schematichq/schematic-typescript-node 1.5.10 → 1.5.13
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/api/errors/PaymentRequiredError.d.ts +7 -0
- package/dist/api/errors/index.d.ts +1 -0
- package/dist/api/resources/accounts/client/requests/UpdateOnboardingStateRequestBody.d.ts +2 -0
- package/dist/api/resources/billing/client/Client.d.ts +43 -0
- package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +1 -0
- package/dist/api/resources/billing/client/requests/ListCompanyBillingProfilesRequest.d.ts +20 -0
- package/dist/api/resources/billing/client/requests/UpdateCompanyBillingProfileRequestBody.d.ts +15 -0
- package/dist/api/resources/billing/client/requests/index.d.ts +2 -0
- package/dist/api/resources/billing/types/ListCompanyBillingProfilesParams.d.ts +13 -0
- package/dist/api/resources/billing/types/ListCompanyBillingProfilesResponse.d.ts +6 -0
- package/dist/api/resources/billing/types/UpdateCompanyBillingProfileResponse.d.ts +6 -0
- package/dist/api/resources/billing/types/index.d.ts +3 -0
- package/dist/api/resources/credits/client/Client.d.ts +123 -0
- package/dist/api/resources/credits/client/requests/CountCreditSpendPoliciesRequest.d.ts +24 -0
- package/dist/api/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +1 -0
- package/dist/api/resources/credits/client/requests/CreateCreditSpendPolicyRequestBody.d.ts +17 -0
- package/dist/api/resources/credits/client/requests/ListCreditSpendPoliciesRequest.d.ts +24 -0
- package/dist/api/resources/credits/client/requests/UpdateCreditSpendPolicyRequestBody.d.ts +8 -0
- package/dist/api/resources/credits/client/requests/index.d.ts +4 -0
- package/dist/api/resources/credits/types/CountCreditSpendPoliciesParams.d.ts +15 -0
- package/dist/api/resources/credits/types/CountCreditSpendPoliciesResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/CreateCreditSpendPolicyResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/DeleteCreditSpendPolicyResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/GetCreditSpendPolicyResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/ListCreditSpendPoliciesParams.d.ts +15 -0
- package/dist/api/resources/credits/types/ListCreditSpendPoliciesResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/UpdateCreditSpendPolicyResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/index.d.ts +8 -0
- package/dist/api/resources/events/client/Client.d.ts +50 -0
- package/dist/api/resources/events/client/requests/UpsertOtlpEnvironmentSettingsRequestBody.d.ts +13 -0
- package/dist/api/resources/events/client/requests/index.d.ts +1 -0
- package/dist/api/resources/events/types/DeleteOtlpEnvironmentSettingsResponse.d.ts +6 -0
- package/dist/api/resources/events/types/GetOtlpEnvironmentSettingsResponse.d.ts +6 -0
- package/dist/api/resources/events/types/UpsertOtlpEnvironmentSettingsResponse.d.ts +6 -0
- package/dist/api/resources/events/types/index.d.ts +3 -0
- package/dist/api/resources/integrationsapi/client/Client.d.ts +83 -0
- package/dist/api/resources/integrationsapi/client/requests/ClaimStripeSandboxKeysRequestBody.d.ts +9 -0
- package/dist/api/resources/integrationsapi/client/requests/InstallStripeSandboxRequestBody.d.ts +12 -0
- package/dist/api/resources/integrationsapi/client/requests/index.d.ts +2 -0
- package/dist/api/resources/integrationsapi/types/ClaimStripeSandboxKeysResponse.d.ts +6 -0
- package/dist/api/resources/integrationsapi/types/GetStripeSandboxClaimLinkResponse.d.ts +6 -0
- package/dist/api/resources/integrationsapi/types/GetStripeSandboxKeysResponse.d.ts +6 -0
- package/dist/api/resources/integrationsapi/types/InstallStripeClaimableSandboxResponse.d.ts +6 -0
- package/dist/api/resources/integrationsapi/types/ListStripeSandboxCountriesResponse.d.ts +6 -0
- package/dist/api/resources/integrationsapi/types/index.d.ts +5 -0
- package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +1 -0
- package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +1 -0
- package/dist/api/resources/planmigrations/client/Client.d.ts +40 -5
- package/dist/api/resources/planmigrations/client/requests/CompleteMigrationNowRequestBody.d.ts +8 -0
- package/dist/api/resources/planmigrations/client/requests/CountCompanyMigrationsRequest.d.ts +1 -1
- package/dist/api/resources/planmigrations/client/requests/CountMigrationsRequest.d.ts +1 -1
- package/dist/api/resources/planmigrations/client/requests/CreateMigrationInput.d.ts +1 -1
- package/dist/api/resources/planmigrations/client/requests/ListCompanyMigrationsRequest.d.ts +1 -1
- package/dist/api/resources/planmigrations/client/requests/ListMigrationsRequest.d.ts +1 -1
- package/dist/api/resources/planmigrations/client/requests/index.d.ts +1 -0
- package/dist/api/resources/planmigrations/types/CancelMigrationResponse.d.ts +6 -0
- package/dist/api/resources/planmigrations/types/CompleteMigrationNowResponse.d.ts +6 -0
- package/dist/api/resources/planmigrations/types/index.d.ts +2 -0
- package/dist/api/resources/plans/client/Client.d.ts +3 -1
- package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +3 -0
- package/dist/api/resources/plans/client/requests/ListPlansRequest.d.ts +3 -0
- package/dist/api/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +5 -1
- package/dist/api/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +4 -0
- package/dist/api/resources/plans/types/CountPlansParams.d.ts +2 -0
- package/dist/api/resources/plans/types/ListPlansParams.d.ts +2 -0
- package/dist/api/types/BillingArrearsAnchor.d.ts +5 -0
- package/dist/api/types/BillingArrearsCadence.d.ts +5 -0
- package/dist/api/types/BillingCreditGrantResponseData.d.ts +7 -0
- package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +12 -0
- package/dist/api/types/CheckoutDataResponseData.d.ts +2 -0
- package/dist/api/types/ClaimedStripeSandboxKeysResponseData.d.ts +5 -0
- package/dist/api/types/CompanyBillingProfileResponseData.d.ts +17 -0
- package/dist/api/types/CompanyDetailResponseData.d.ts +3 -0
- package/dist/api/types/CompanyOverrideResponseData.d.ts +2 -0
- package/dist/api/types/CompanyPlanCreditGrantView.d.ts +6 -0
- package/dist/api/types/CreateBillingPlanCreditGrantRequestBody.d.ts +12 -0
- package/dist/api/types/CreditCompanyGrantView.d.ts +7 -0
- package/dist/api/types/CreditLeaseResponseData.d.ts +1 -0
- package/dist/api/types/CreditSpendPolicyResponseData.d.ts +12 -0
- package/dist/api/types/CreditSpendPolicyScope.d.ts +6 -0
- package/dist/api/types/CustomPlanBillingResponseData.d.ts +2 -0
- package/dist/api/types/EventBodyInference.d.ts +4 -2
- package/dist/api/types/GetOnboardingStateResp.d.ts +8 -0
- package/dist/api/types/IssueTemporaryAccessTokenResponseData.d.ts +2 -1
- package/dist/api/types/OnboardingRequirement.d.ts +2 -0
- package/dist/api/types/OnboardingRoadmapView.d.ts +4 -0
- package/dist/api/types/OnboardingStripeImport.d.ts +6 -0
- package/dist/api/types/OtlpEnvironmentSettingsResponseData.d.ts +10 -0
- package/dist/api/types/PendingMigrationResponseData.d.ts +8 -0
- package/dist/api/types/PlanCreditGrantView.d.ts +6 -0
- package/dist/api/types/PlanGroupDetailResponseData.d.ts +1 -0
- package/dist/api/types/PlanGroupResponseData.d.ts +1 -0
- package/dist/api/types/PlanVersionCompanyMigrationResponseData.d.ts +2 -0
- package/dist/api/types/PlanVersionCompanyMigrationStatus.d.ts +1 -0
- package/dist/api/types/PlanVersionMigrationResponseData.d.ts +1 -0
- package/dist/api/types/PlanVersionMigrationStatus.d.ts +1 -0
- package/dist/api/types/PlanVersionMigrationStrategy.d.ts +1 -0
- package/dist/api/types/RuleConditionDetailResponseData.d.ts +1 -0
- package/dist/api/types/RuleConditionPlanVersionResponseData.d.ts +7 -0
- package/dist/api/types/RulesEngineSchemaVersion.d.ts +1 -1
- package/dist/api/types/RulesengineCompany.d.ts +1 -0
- package/dist/api/types/RulesengineCreditPostpaidConfig.d.ts +3 -0
- package/dist/api/types/SlackConnectInviteStatus.d.ts +8 -0
- package/dist/api/types/SlackConnectInviteView.d.ts +7 -0
- package/dist/api/types/StripeIntegrationConfig.d.ts +6 -0
- package/dist/api/types/StripeSandboxClaimLink.d.ts +6 -0
- package/dist/api/types/StripeSandboxCountriesResponseData.d.ts +3 -0
- package/dist/api/types/StripeSandboxInstallResponseData.d.ts +10 -0
- package/dist/api/types/StripeSandboxKeysResponseData.d.ts +5 -0
- package/dist/api/types/TemporaryAccessTokenIssuerType.d.ts +5 -0
- package/dist/api/types/TemporaryAccessTokenResponseData.d.ts +2 -1
- package/dist/api/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +12 -0
- package/dist/api/types/WebhookEventDetailResponseData.d.ts +1 -0
- package/dist/api/types/WebhookEventResponseData.d.ts +1 -0
- package/dist/api/types/index.d.ts +19 -0
- package/dist/credits/lease-store.d.ts +17 -8
- package/dist/index.js +25 -9
- package/dist/serialization/resources/accounts/client/requests/UpdateOnboardingStateRequestBody.d.ts +2 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +1 -0
- package/dist/serialization/resources/billing/client/requests/UpdateCompanyBillingProfileRequestBody.d.ts +16 -0
- package/dist/serialization/resources/billing/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/billing/types/ListCompanyBillingProfilesParams.d.ts +14 -0
- package/dist/serialization/resources/billing/types/ListCompanyBillingProfilesResponse.d.ts +12 -0
- package/dist/serialization/resources/billing/types/UpdateCompanyBillingProfileResponse.d.ts +11 -0
- package/dist/serialization/resources/billing/types/index.d.ts +3 -0
- package/dist/serialization/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +1 -0
- package/dist/serialization/resources/credits/client/requests/CreateCreditSpendPolicyRequestBody.d.ts +13 -0
- package/dist/serialization/resources/credits/client/requests/UpdateCreditSpendPolicyRequestBody.d.ts +10 -0
- package/dist/serialization/resources/credits/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/credits/types/CountCreditSpendPoliciesParams.d.ts +16 -0
- package/dist/serialization/resources/credits/types/CountCreditSpendPoliciesResponse.d.ts +12 -0
- package/dist/serialization/resources/credits/types/CreateCreditSpendPolicyResponse.d.ts +11 -0
- package/dist/serialization/resources/credits/types/DeleteCreditSpendPolicyResponse.d.ts +11 -0
- package/dist/serialization/resources/credits/types/GetCreditSpendPolicyResponse.d.ts +11 -0
- package/dist/serialization/resources/credits/types/ListCreditSpendPoliciesParams.d.ts +16 -0
- package/dist/serialization/resources/credits/types/ListCreditSpendPoliciesResponse.d.ts +12 -0
- package/dist/serialization/resources/credits/types/UpdateCreditSpendPolicyResponse.d.ts +11 -0
- package/dist/serialization/resources/credits/types/index.d.ts +8 -0
- package/dist/serialization/resources/events/client/requests/UpsertOtlpEnvironmentSettingsRequestBody.d.ts +13 -0
- package/dist/serialization/resources/events/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/events/types/DeleteOtlpEnvironmentSettingsResponse.d.ts +11 -0
- package/dist/serialization/resources/events/types/GetOtlpEnvironmentSettingsResponse.d.ts +11 -0
- package/dist/serialization/resources/events/types/UpsertOtlpEnvironmentSettingsResponse.d.ts +11 -0
- package/dist/serialization/resources/events/types/index.d.ts +3 -0
- package/dist/serialization/resources/integrationsapi/client/requests/ClaimStripeSandboxKeysRequestBody.d.ts +9 -0
- package/dist/serialization/resources/integrationsapi/client/requests/InstallStripeSandboxRequestBody.d.ts +12 -0
- package/dist/serialization/resources/integrationsapi/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/integrationsapi/types/ClaimStripeSandboxKeysResponse.d.ts +11 -0
- package/dist/serialization/resources/integrationsapi/types/GetStripeSandboxClaimLinkResponse.d.ts +11 -0
- package/dist/serialization/resources/integrationsapi/types/GetStripeSandboxKeysResponse.d.ts +11 -0
- package/dist/serialization/resources/integrationsapi/types/InstallStripeClaimableSandboxResponse.d.ts +11 -0
- package/dist/serialization/resources/integrationsapi/types/ListStripeSandboxCountriesResponse.d.ts +11 -0
- package/dist/serialization/resources/integrationsapi/types/index.d.ts +5 -0
- package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +1 -0
- package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +1 -0
- package/dist/serialization/resources/planmigrations/client/requests/CompleteMigrationNowRequestBody.d.ts +10 -0
- package/dist/serialization/resources/planmigrations/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/planmigrations/types/CancelMigrationResponse.d.ts +11 -0
- package/dist/serialization/resources/planmigrations/types/CompleteMigrationNowResponse.d.ts +11 -0
- package/dist/serialization/resources/planmigrations/types/index.d.ts +2 -0
- package/dist/serialization/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +2 -0
- package/dist/serialization/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +2 -0
- package/dist/serialization/resources/plans/types/CountPlansParams.d.ts +1 -0
- package/dist/serialization/resources/plans/types/ListPlansParams.d.ts +1 -0
- package/dist/serialization/types/BillingArrearsAnchor.d.ts +7 -0
- package/dist/serialization/types/BillingArrearsCadence.d.ts +7 -0
- package/dist/serialization/types/BillingCreditGrantResponseData.d.ts +4 -0
- package/dist/serialization/types/BillingPlanCreditGrantResponseData.d.ts +8 -0
- package/dist/serialization/types/CheckoutDataResponseData.d.ts +2 -0
- package/dist/serialization/types/ClaimedStripeSandboxKeysResponseData.d.ts +11 -0
- package/dist/serialization/types/CompanyBillingProfileResponseData.d.ts +25 -0
- package/dist/serialization/types/CompanyDetailResponseData.d.ts +5 -0
- package/dist/serialization/types/CompanyOverrideResponseData.d.ts +3 -0
- package/dist/serialization/types/CompanyPlanCreditGrantView.d.ts +8 -0
- package/dist/serialization/types/CreateBillingPlanCreditGrantRequestBody.d.ts +8 -0
- package/dist/serialization/types/CreditCompanyGrantView.d.ts +8 -0
- package/dist/serialization/types/CreditLeaseResponseData.d.ts +1 -0
- package/dist/serialization/types/CreditSpendPolicyResponseData.d.ts +18 -0
- package/dist/serialization/types/CreditSpendPolicyScope.d.ts +7 -0
- package/dist/serialization/types/CustomPlanBillingResponseData.d.ts +1 -0
- package/dist/serialization/types/EventBodyInference.d.ts +1 -0
- package/dist/serialization/types/GetOnboardingStateResp.d.ts +11 -0
- package/dist/serialization/types/IssueTemporaryAccessTokenResponseData.d.ts +3 -1
- package/dist/serialization/types/OnboardingRequirement.d.ts +1 -1
- package/dist/serialization/types/OnboardingRoadmapView.d.ts +10 -0
- package/dist/serialization/types/OnboardingStripeImport.d.ts +7 -0
- package/dist/serialization/types/OtlpEnvironmentSettingsResponseData.d.ts +16 -0
- package/dist/serialization/types/PendingMigrationResponseData.d.ts +14 -0
- package/dist/serialization/types/PlanCreditGrantView.d.ts +8 -0
- package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +1 -0
- package/dist/serialization/types/PlanGroupResponseData.d.ts +1 -0
- package/dist/serialization/types/PlanVersionCompanyMigrationResponseData.d.ts +1 -0
- package/dist/serialization/types/PlanVersionCompanyMigrationStatus.d.ts +1 -1
- package/dist/serialization/types/PlanVersionMigrationResponseData.d.ts +1 -0
- package/dist/serialization/types/PlanVersionMigrationStatus.d.ts +1 -1
- package/dist/serialization/types/PlanVersionMigrationStrategy.d.ts +1 -1
- package/dist/serialization/types/RuleConditionDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/RuleConditionPlanVersionResponseData.d.ts +13 -0
- package/dist/serialization/types/RulesEngineSchemaVersion.d.ts +1 -1
- package/dist/serialization/types/RulesengineCompany.d.ts +2 -0
- package/dist/serialization/types/RulesengineCreditPostpaidConfig.d.ts +9 -0
- package/dist/serialization/types/SlackConnectInviteStatus.d.ts +7 -0
- package/dist/serialization/types/SlackConnectInviteView.d.ts +13 -0
- package/dist/serialization/types/StripeIntegrationConfig.d.ts +3 -0
- package/dist/serialization/types/StripeSandboxClaimLink.d.ts +12 -0
- package/dist/serialization/types/StripeSandboxCountriesResponseData.d.ts +9 -0
- package/dist/serialization/types/StripeSandboxInstallResponseData.d.ts +17 -0
- package/dist/serialization/types/StripeSandboxKeysResponseData.d.ts +11 -0
- package/dist/serialization/types/TemporaryAccessTokenIssuerType.d.ts +7 -0
- package/dist/serialization/types/TemporaryAccessTokenResponseData.d.ts +3 -1
- package/dist/serialization/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +8 -0
- package/dist/serialization/types/WebhookEventDetailResponseData.d.ts +1 -0
- package/dist/serialization/types/WebhookEventResponseData.d.ts +1 -0
- package/dist/serialization/types/index.d.ts +19 -0
- package/dist/wasm/rulesengine.d.ts +1 -1
- package/dist/wasm/rulesengine.js +30 -30
- package/package.json +1 -4
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
export declare const BillingArrearsCadence: core.serialization.Schema<serializers.BillingArrearsCadence.Raw, Schematic.BillingArrearsCadence>;
|
|
5
|
+
export declare namespace BillingArrearsCadence {
|
|
6
|
+
type Raw = "end_of_billing_period" | "monthly";
|
|
7
|
+
}
|
|
@@ -13,6 +13,7 @@ export declare namespace BillingCreditGrantResponseData {
|
|
|
13
13
|
company_license_id?: string | null;
|
|
14
14
|
company_name: string;
|
|
15
15
|
created_at: string;
|
|
16
|
+
credit_bundle_id?: string | null;
|
|
16
17
|
credit_icon?: string | null;
|
|
17
18
|
credit_id: string;
|
|
18
19
|
credit_name: string;
|
|
@@ -23,6 +24,9 @@ export declare namespace BillingCreditGrantResponseData {
|
|
|
23
24
|
license_name?: string | null;
|
|
24
25
|
plan_id?: string | null;
|
|
25
26
|
plan_name?: string | null;
|
|
27
|
+
postpaid_charge_amount?: number | null;
|
|
28
|
+
postpaid_charge_currency?: string | null;
|
|
29
|
+
postpaid_charged_credits?: number | null;
|
|
26
30
|
price?: BillingPriceResponseData.Raw | null;
|
|
27
31
|
quantity: number;
|
|
28
32
|
quantity_remaining: number;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type * as Schematic from "../../api/index";
|
|
2
2
|
import * as core from "../../core";
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
|
+
import { BillingArrearsAnchor } from "./BillingArrearsAnchor";
|
|
5
|
+
import { BillingArrearsCadence } from "./BillingArrearsCadence";
|
|
4
6
|
import { BillingCreditAutoTopupAvailability } from "./BillingCreditAutoTopupAvailability";
|
|
5
7
|
import { BillingCreditExpiryType } from "./BillingCreditExpiryType";
|
|
6
8
|
import { BillingCreditExpiryUnit } from "./BillingCreditExpiryUnit";
|
|
@@ -13,6 +15,8 @@ import { PreviewObjectResponseData } from "./PreviewObjectResponseData";
|
|
|
13
15
|
export declare const BillingPlanCreditGrantResponseData: core.serialization.ObjectSchema<serializers.BillingPlanCreditGrantResponseData.Raw, Schematic.BillingPlanCreditGrantResponseData>;
|
|
14
16
|
export declare namespace BillingPlanCreditGrantResponseData {
|
|
15
17
|
interface Raw {
|
|
18
|
+
arrears_anchor?: BillingArrearsAnchor.Raw | null;
|
|
19
|
+
arrears_cadence?: BillingArrearsCadence.Raw | null;
|
|
16
20
|
auto_topup_amount?: number | null;
|
|
17
21
|
auto_topup_amount_type?: string | null;
|
|
18
22
|
auto_topup_availability: BillingCreditAutoTopupAvailability.Raw;
|
|
@@ -37,10 +41,14 @@ export declare namespace BillingPlanCreditGrantResponseData {
|
|
|
37
41
|
expiry_unit_count?: number | null;
|
|
38
42
|
id: string;
|
|
39
43
|
license_id?: string | null;
|
|
44
|
+
overdraft_limit?: number | null;
|
|
40
45
|
plan?: PreviewObjectResponseData.Raw | null;
|
|
41
46
|
plan_id: string;
|
|
42
47
|
plan_name: string;
|
|
43
48
|
plan_version_id?: string | null;
|
|
49
|
+
postpaid_enabled: boolean;
|
|
50
|
+
postpaid_rate_per_unit?: number | null;
|
|
51
|
+
postpaid_rate_per_unit_decimal?: string | null;
|
|
44
52
|
reset_cadence?: BillingPlanCreditGrantResetCadence.Raw | null;
|
|
45
53
|
reset_start?: BillingPlanCreditGrantResetStart.Raw | null;
|
|
46
54
|
reset_type?: BillingPlanCreditGrantResetType.Raw | null;
|
|
@@ -17,10 +17,12 @@ export declare namespace CheckoutDataResponseData {
|
|
|
17
17
|
active_usage_based_entitlements: UsageBasedEntitlementResponseData.Raw[];
|
|
18
18
|
available_credit_bundles: BillingCreditBundleResponseData.Raw[];
|
|
19
19
|
company?: CompanyDetailResponseData.Raw | null;
|
|
20
|
+
company_can_trial_selected_plan: boolean;
|
|
20
21
|
custom_checkout_fields: CheckoutFieldWithValue.Raw[];
|
|
21
22
|
feature_usage?: FeatureUsageDetailResponseData.Raw | null;
|
|
22
23
|
selected_credit_bundles: CreditBundlePurchaseResponseData.Raw[];
|
|
23
24
|
selected_plan?: PlanDetailResponseData.Raw | null;
|
|
25
|
+
selected_plan_already_trialed: boolean;
|
|
24
26
|
selected_usage_based_entitlements: UsageBasedEntitlementResponseData.Raw[];
|
|
25
27
|
subscription?: CompanySubscriptionResponseData.Raw | null;
|
|
26
28
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
export declare const ClaimedStripeSandboxKeysResponseData: core.serialization.ObjectSchema<serializers.ClaimedStripeSandboxKeysResponseData.Raw, Schematic.ClaimedStripeSandboxKeysResponseData>;
|
|
5
|
+
export declare namespace ClaimedStripeSandboxKeysResponseData {
|
|
6
|
+
interface Raw {
|
|
7
|
+
publishable: string;
|
|
8
|
+
sandbox_id: string;
|
|
9
|
+
secret: string;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { BillingCollectionMethod } from "./BillingCollectionMethod";
|
|
5
|
+
import { BillingProviderType } from "./BillingProviderType";
|
|
6
|
+
import { ProrationBehavior } from "./ProrationBehavior";
|
|
7
|
+
export declare const CompanyBillingProfileResponseData: core.serialization.ObjectSchema<serializers.CompanyBillingProfileResponseData.Raw, Schematic.CompanyBillingProfileResponseData>;
|
|
8
|
+
export declare namespace CompanyBillingProfileResponseData {
|
|
9
|
+
interface Raw {
|
|
10
|
+
account_id: string;
|
|
11
|
+
billing_customer_id?: string | null;
|
|
12
|
+
collection_method: BillingCollectionMethod.Raw;
|
|
13
|
+
company_id: string;
|
|
14
|
+
created_at: string;
|
|
15
|
+
days_until_due?: number | null;
|
|
16
|
+
environment_id: string;
|
|
17
|
+
id: string;
|
|
18
|
+
is_default: boolean;
|
|
19
|
+
name?: string | null;
|
|
20
|
+
payment_method_id?: string | null;
|
|
21
|
+
proration_behavior?: ProrationBehavior.Raw | null;
|
|
22
|
+
provider_type: BillingProviderType.Raw;
|
|
23
|
+
updated_at: string;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -2,6 +2,7 @@ import type * as Schematic from "../../api/index";
|
|
|
2
2
|
import * as core from "../../core";
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
import { BillingSubscriptionView } from "./BillingSubscriptionView";
|
|
5
|
+
import { CompanyBillingProfileResponseData } from "./CompanyBillingProfileResponseData";
|
|
5
6
|
import { CompanyEventPeriodMetricsResponseData } from "./CompanyEventPeriodMetricsResponseData";
|
|
6
7
|
import { CompanyPlanWithBillingSubView } from "./CompanyPlanWithBillingSubView";
|
|
7
8
|
import { CustomPlanBillingResponseData } from "./CustomPlanBillingResponseData";
|
|
@@ -10,6 +11,7 @@ import { EntityTraitDetailResponseData } from "./EntityTraitDetailResponseData";
|
|
|
10
11
|
import { FeatureEntitlement } from "./FeatureEntitlement";
|
|
11
12
|
import { GenericPreviewObject } from "./GenericPreviewObject";
|
|
12
13
|
import { PaymentMethodResponseData } from "./PaymentMethodResponseData";
|
|
14
|
+
import { PendingMigrationResponseData } from "./PendingMigrationResponseData";
|
|
13
15
|
import { Rule } from "./Rule";
|
|
14
16
|
import { ScheduledDowngradeResponseData } from "./ScheduledDowngradeResponseData";
|
|
15
17
|
export declare const CompanyDetailResponseData: core.serialization.ObjectSchema<serializers.CompanyDetailResponseData.Raw, Schematic.CompanyDetailResponseData>;
|
|
@@ -17,6 +19,8 @@ export declare namespace CompanyDetailResponseData {
|
|
|
17
19
|
interface Raw {
|
|
18
20
|
add_ons: CompanyPlanWithBillingSubView.Raw[];
|
|
19
21
|
billing_credit_balances?: Record<string, number> | null;
|
|
22
|
+
billing_profile?: CompanyBillingProfileResponseData.Raw | null;
|
|
23
|
+
billing_profiles?: CompanyBillingProfileResponseData.Raw[] | null;
|
|
20
24
|
billing_subscription?: BillingSubscriptionView.Raw | null;
|
|
21
25
|
billing_subscriptions: BillingSubscriptionView.Raw[];
|
|
22
26
|
created_at: string;
|
|
@@ -32,6 +36,7 @@ export declare namespace CompanyDetailResponseData {
|
|
|
32
36
|
metrics: CompanyEventPeriodMetricsResponseData.Raw[];
|
|
33
37
|
name: string;
|
|
34
38
|
payment_methods: PaymentMethodResponseData.Raw[];
|
|
39
|
+
pending_migration?: PendingMigrationResponseData.Raw | null;
|
|
35
40
|
plan?: CompanyPlanWithBillingSubView.Raw | null;
|
|
36
41
|
plans: GenericPreviewObject.Raw[];
|
|
37
42
|
rules: Rule.Raw[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type * as Schematic from "../../api/index";
|
|
2
2
|
import * as core from "../../core";
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
|
+
import { BillingCreditResponseData } from "./BillingCreditResponseData";
|
|
4
5
|
import { CompanyDetailResponseData } from "./CompanyDetailResponseData";
|
|
5
6
|
import { CompanyOverrideNoteResponseData } from "./CompanyOverrideNoteResponseData";
|
|
6
7
|
import { EntitlementValueType } from "./EntitlementValueType";
|
|
@@ -27,6 +28,8 @@ export declare namespace CompanyOverrideResponseData {
|
|
|
27
28
|
rule_id_usage_exceeded?: string | null;
|
|
28
29
|
updated_at: string;
|
|
29
30
|
value_bool?: boolean | null;
|
|
31
|
+
value_credit?: BillingCreditResponseData.Raw | null;
|
|
32
|
+
value_credit_id?: string | null;
|
|
30
33
|
value_numeric?: number | null;
|
|
31
34
|
value_trait?: EntityTraitDefinitionResponseData.Raw | null;
|
|
32
35
|
value_trait_id?: string | null;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type * as Schematic from "../../api/index";
|
|
2
2
|
import * as core from "../../core";
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
|
+
import { BillingArrearsAnchor } from "./BillingArrearsAnchor";
|
|
5
|
+
import { BillingArrearsCadence } from "./BillingArrearsCadence";
|
|
4
6
|
import { BillingCreditAutoTopupAvailability } from "./BillingCreditAutoTopupAvailability";
|
|
5
7
|
import { BillingCreditExpiryType } from "./BillingCreditExpiryType";
|
|
6
8
|
import { BillingCreditExpiryUnit } from "./BillingCreditExpiryUnit";
|
|
@@ -13,6 +15,8 @@ import { PlanCreditGrantScaling } from "./PlanCreditGrantScaling";
|
|
|
13
15
|
export declare const CompanyPlanCreditGrantView: core.serialization.ObjectSchema<serializers.CompanyPlanCreditGrantView.Raw, Schematic.CompanyPlanCreditGrantView>;
|
|
14
16
|
export declare namespace CompanyPlanCreditGrantView {
|
|
15
17
|
interface Raw {
|
|
18
|
+
billing_credit_arrears_anchor?: BillingArrearsAnchor.Raw | null;
|
|
19
|
+
billing_credit_arrears_cadence?: BillingArrearsCadence.Raw | null;
|
|
16
20
|
billing_credit_auto_topup_amount?: number | null;
|
|
17
21
|
billing_credit_auto_topup_amount_type?: string | null;
|
|
18
22
|
billing_credit_auto_topup_availability?: BillingCreditAutoTopupAvailability.Raw | null;
|
|
@@ -24,6 +28,10 @@ export declare namespace CompanyPlanCreditGrantView {
|
|
|
24
28
|
billing_credit_auto_topup_threshold_credits?: number | null;
|
|
25
29
|
billing_credit_auto_topup_threshold_percent?: number | null;
|
|
26
30
|
billing_credit_can_buy_bundles: boolean;
|
|
31
|
+
billing_credit_overdraft_limit?: number | null;
|
|
32
|
+
billing_credit_postpaid_enabled: boolean;
|
|
33
|
+
billing_credit_postpaid_rate_per_unit?: number | null;
|
|
34
|
+
billing_credit_postpaid_rate_per_unit_decimal?: string | null;
|
|
27
35
|
company_auto_topup_amount?: number | null;
|
|
28
36
|
company_auto_topup_enabled?: boolean | null;
|
|
29
37
|
company_auto_topup_threshold_credits?: number | null;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type * as Schematic from "../../api/index";
|
|
2
2
|
import * as core from "../../core";
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
|
+
import { BillingArrearsAnchor } from "./BillingArrearsAnchor";
|
|
5
|
+
import { BillingArrearsCadence } from "./BillingArrearsCadence";
|
|
4
6
|
import { BillingCreditAutoTopupAvailability } from "./BillingCreditAutoTopupAvailability";
|
|
5
7
|
import { BillingCreditExpiryType } from "./BillingCreditExpiryType";
|
|
6
8
|
import { BillingCreditExpiryUnit } from "./BillingCreditExpiryUnit";
|
|
@@ -13,6 +15,8 @@ export declare const CreateBillingPlanCreditGrantRequestBody: core.serialization
|
|
|
13
15
|
export declare namespace CreateBillingPlanCreditGrantRequestBody {
|
|
14
16
|
interface Raw {
|
|
15
17
|
apply_to_existing?: boolean | null;
|
|
18
|
+
arrears_anchor?: BillingArrearsAnchor.Raw | null;
|
|
19
|
+
arrears_cadence?: BillingArrearsCadence.Raw | null;
|
|
16
20
|
auto_topup_amount?: number | null;
|
|
17
21
|
auto_topup_amount_type?: CreditAutoTopupAmountType.Raw | null;
|
|
18
22
|
auto_topup_availability?: BillingCreditAutoTopupAvailability.Raw | null;
|
|
@@ -31,8 +35,12 @@ export declare namespace CreateBillingPlanCreditGrantRequestBody {
|
|
|
31
35
|
expiry_unit?: BillingCreditExpiryUnit.Raw | null;
|
|
32
36
|
expiry_unit_count?: number | null;
|
|
33
37
|
license_id?: string | null;
|
|
38
|
+
overdraft_limit?: number | null;
|
|
34
39
|
plan_id: string;
|
|
35
40
|
plan_version_id?: string | null;
|
|
41
|
+
postpaid_enabled?: boolean | null;
|
|
42
|
+
postpaid_rate_per_unit?: number | null;
|
|
43
|
+
postpaid_rate_per_unit_decimal?: string | null;
|
|
36
44
|
reset_cadence: BillingPlanCreditGrantResetCadence.Raw;
|
|
37
45
|
reset_start: BillingPlanCreditGrantResetStart.Raw;
|
|
38
46
|
reset_type?: BillingPlanCreditGrantResetType.Raw | null;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type * as Schematic from "../../api/index";
|
|
2
2
|
import * as core from "../../core";
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
|
+
import { BillingArrearsCadence } from "./BillingArrearsCadence";
|
|
4
5
|
import { BillingCreditExpiryType } from "./BillingCreditExpiryType";
|
|
5
6
|
import { BillingCreditExpiryUnit } from "./BillingCreditExpiryUnit";
|
|
6
7
|
import { BillingCreditGrantReason } from "./BillingCreditGrantReason";
|
|
@@ -11,6 +12,7 @@ import { CreditTransferView } from "./CreditTransferView";
|
|
|
11
12
|
export declare const CreditCompanyGrantView: core.serialization.ObjectSchema<serializers.CreditCompanyGrantView.Raw, Schematic.CreditCompanyGrantView>;
|
|
12
13
|
export declare namespace CreditCompanyGrantView {
|
|
13
14
|
interface Raw {
|
|
15
|
+
arrears_cadence?: BillingArrearsCadence.Raw | null;
|
|
14
16
|
billing_credit_bundle_id?: string | null;
|
|
15
17
|
billing_credit_id: string;
|
|
16
18
|
company_id: string;
|
|
@@ -32,6 +34,12 @@ export declare namespace CreditCompanyGrantView {
|
|
|
32
34
|
plan_id?: string | null;
|
|
33
35
|
plan_name?: string | null;
|
|
34
36
|
plural_name?: string | null;
|
|
37
|
+
postpaid_charge_amount?: number | null;
|
|
38
|
+
postpaid_charge_currency?: string | null;
|
|
39
|
+
postpaid_charged_credits?: number | null;
|
|
40
|
+
postpaid_period_end?: string | null;
|
|
41
|
+
postpaid_rate?: number | null;
|
|
42
|
+
postpaid_rate_decimal?: string | null;
|
|
35
43
|
price?: BillingProductPriceResponseData.Raw | null;
|
|
36
44
|
quantity: number;
|
|
37
45
|
quantity_remaining: number;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { CreditSpendPolicyScope } from "./CreditSpendPolicyScope";
|
|
5
|
+
export declare const CreditSpendPolicyResponseData: core.serialization.ObjectSchema<serializers.CreditSpendPolicyResponseData.Raw, Schematic.CreditSpendPolicyResponseData>;
|
|
6
|
+
export declare namespace CreditSpendPolicyResponseData {
|
|
7
|
+
interface Raw {
|
|
8
|
+
billing_credit_id: string;
|
|
9
|
+
company_id?: string | null;
|
|
10
|
+
created_at: string;
|
|
11
|
+
id: string;
|
|
12
|
+
label?: string | null;
|
|
13
|
+
max_per_draw?: number | null;
|
|
14
|
+
scope_type: CreditSpendPolicyScope.Raw;
|
|
15
|
+
updated_at: string;
|
|
16
|
+
user_id?: string | null;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
export declare const CreditSpendPolicyScope: core.serialization.Schema<serializers.CreditSpendPolicyScope.Raw, Schematic.CreditSpendPolicyScope>;
|
|
5
|
+
export declare namespace CreditSpendPolicyScope {
|
|
6
|
+
type Raw = "company" | "user" | "group";
|
|
7
|
+
}
|
|
@@ -17,6 +17,7 @@ export declare namespace CustomPlanBillingResponseData {
|
|
|
17
17
|
paid_at?: string | null;
|
|
18
18
|
plan_billing_source: PlanBillingSource.Raw;
|
|
19
19
|
plan_id: string;
|
|
20
|
+
prorate_first_period?: boolean | null;
|
|
20
21
|
published_at?: string | null;
|
|
21
22
|
send_invoice: boolean;
|
|
22
23
|
status: CustomPlanBillingStatus.Raw;
|
|
@@ -4,6 +4,7 @@ import type * as serializers from "../index";
|
|
|
4
4
|
export declare const EventBodyInference: core.serialization.ObjectSchema<serializers.EventBodyInference.Raw, Schematic.EventBodyInference>;
|
|
5
5
|
export declare namespace EventBodyInference {
|
|
6
6
|
interface Raw {
|
|
7
|
+
cache_creation_input_tokens?: number | null;
|
|
7
8
|
cached_input_tokens?: number | null;
|
|
8
9
|
company: Record<string, string>;
|
|
9
10
|
cost?: string | null;
|
|
@@ -5,15 +5,26 @@ import { OnboardingMilestoneView } from "./OnboardingMilestoneView";
|
|
|
5
5
|
import { OnboardingPath } from "./OnboardingPath";
|
|
6
6
|
import { OnboardingRequirement } from "./OnboardingRequirement";
|
|
7
7
|
import { OnboardingRequirementView } from "./OnboardingRequirementView";
|
|
8
|
+
import { OnboardingRoadmapView } from "./OnboardingRoadmapView";
|
|
9
|
+
import { OnboardingStripeImport } from "./OnboardingStripeImport";
|
|
8
10
|
import { OnboardingTrack } from "./OnboardingTrack";
|
|
11
|
+
import { SlackConnectInviteView } from "./SlackConnectInviteView";
|
|
9
12
|
export declare const GetOnboardingStateResp: core.serialization.ObjectSchema<serializers.GetOnboardingStateResp.Raw, Schematic.GetOnboardingStateResp>;
|
|
10
13
|
export declare namespace GetOnboardingStateResp {
|
|
11
14
|
interface Raw {
|
|
15
|
+
agent_connected_at?: string | null;
|
|
16
|
+
country?: string | null;
|
|
17
|
+
dismissed_at?: string | null;
|
|
12
18
|
environment_id?: string | null;
|
|
13
19
|
milestones: OnboardingMilestoneView.Raw[];
|
|
14
20
|
path?: OnboardingPath.Raw | null;
|
|
21
|
+
pricing_page_url?: string | null;
|
|
15
22
|
requirements: OnboardingRequirementView.Raw[];
|
|
23
|
+
roadmap?: OnboardingRoadmapView.Raw | null;
|
|
24
|
+
slack_connect?: SlackConnectInviteView.Raw | null;
|
|
25
|
+
stripe_import?: OnboardingStripeImport.Raw | null;
|
|
16
26
|
suggested_next: OnboardingRequirement.Raw[];
|
|
17
27
|
track?: OnboardingTrack.Raw | null;
|
|
28
|
+
website_url?: string | null;
|
|
18
29
|
}
|
|
19
30
|
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import type * as Schematic from "../../api/index";
|
|
2
2
|
import * as core from "../../core";
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
|
+
import { TemporaryAccessTokenIssuerType } from "./TemporaryAccessTokenIssuerType";
|
|
4
5
|
import { TemporaryAccessTokenResourceType } from "./TemporaryAccessTokenResourceType";
|
|
5
6
|
export declare const IssueTemporaryAccessTokenResponseData: core.serialization.ObjectSchema<serializers.IssueTemporaryAccessTokenResponseData.Raw, Schematic.IssueTemporaryAccessTokenResponseData>;
|
|
6
7
|
export declare namespace IssueTemporaryAccessTokenResponseData {
|
|
7
8
|
interface Raw {
|
|
8
|
-
api_key_id
|
|
9
|
+
api_key_id?: string | null;
|
|
9
10
|
created_at: string;
|
|
10
11
|
environment_id: string;
|
|
11
12
|
expired_at: string;
|
|
12
13
|
id: string;
|
|
14
|
+
issuer_type: TemporaryAccessTokenIssuerType.Raw;
|
|
13
15
|
resource_type: TemporaryAccessTokenResourceType.Raw;
|
|
14
16
|
token: string;
|
|
15
17
|
updated_at: string;
|
|
@@ -3,5 +3,5 @@ import * as core from "../../core";
|
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
export declare const OnboardingRequirement: core.serialization.Schema<serializers.OnboardingRequirement.Raw, Schematic.OnboardingRequirement>;
|
|
5
5
|
export declare namespace OnboardingRequirement {
|
|
6
|
-
type Raw = "connect_billing" | "create_api_key" | "first_flag_check" | "import_companies" | "model_packaging" | "send_events";
|
|
6
|
+
type Raw = "connect_agent" | "connect_billing" | "create_api_key" | "first_flag_check" | "generate_roadmap" | "import_companies" | "model_packaging" | "send_events";
|
|
7
7
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
export declare const OnboardingRoadmapView: core.serialization.ObjectSchema<serializers.OnboardingRoadmapView.Raw, Schematic.OnboardingRoadmapView>;
|
|
5
|
+
export declare namespace OnboardingRoadmapView {
|
|
6
|
+
interface Raw {
|
|
7
|
+
published_at?: string | null;
|
|
8
|
+
slug: string;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
export declare const OnboardingStripeImport: core.serialization.Schema<serializers.OnboardingStripeImport.Raw, Schematic.OnboardingStripeImport>;
|
|
5
|
+
export declare namespace OnboardingStripeImport {
|
|
6
|
+
type Raw = "complete" | "not_started" | "running";
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
export declare const OtlpEnvironmentSettingsResponseData: core.serialization.ObjectSchema<serializers.OtlpEnvironmentSettingsResponseData.Raw, Schematic.OtlpEnvironmentSettingsResponseData>;
|
|
5
|
+
export declare namespace OtlpEnvironmentSettingsResponseData {
|
|
6
|
+
interface Raw {
|
|
7
|
+
company_attribute?: string | null;
|
|
8
|
+
company_key?: string | null;
|
|
9
|
+
created_at: string;
|
|
10
|
+
environment_id: string;
|
|
11
|
+
tool_events_enabled: boolean;
|
|
12
|
+
updated_at: string;
|
|
13
|
+
user_attribute?: string | null;
|
|
14
|
+
user_key?: string | null;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
export declare const PendingMigrationResponseData: core.serialization.ObjectSchema<serializers.PendingMigrationResponseData.Raw, Schematic.PendingMigrationResponseData>;
|
|
5
|
+
export declare namespace PendingMigrationResponseData {
|
|
6
|
+
interface Raw {
|
|
7
|
+
migration_id: string;
|
|
8
|
+
scheduled_for?: string | null;
|
|
9
|
+
to_plan_id: string;
|
|
10
|
+
to_plan_name: string;
|
|
11
|
+
to_plan_version_id: string;
|
|
12
|
+
to_plan_version_number?: number | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type * as Schematic from "../../api/index";
|
|
2
2
|
import * as core from "../../core";
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
|
+
import { BillingArrearsAnchor } from "./BillingArrearsAnchor";
|
|
5
|
+
import { BillingArrearsCadence } from "./BillingArrearsCadence";
|
|
4
6
|
import { BillingCreditAutoTopupAvailability } from "./BillingCreditAutoTopupAvailability";
|
|
5
7
|
import { BillingCreditExpiryType } from "./BillingCreditExpiryType";
|
|
6
8
|
import { BillingCreditExpiryUnit } from "./BillingCreditExpiryUnit";
|
|
@@ -13,6 +15,8 @@ import { PlanCreditGrantScaling } from "./PlanCreditGrantScaling";
|
|
|
13
15
|
export declare const PlanCreditGrantView: core.serialization.ObjectSchema<serializers.PlanCreditGrantView.Raw, Schematic.PlanCreditGrantView>;
|
|
14
16
|
export declare namespace PlanCreditGrantView {
|
|
15
17
|
interface Raw {
|
|
18
|
+
billing_credit_arrears_anchor?: BillingArrearsAnchor.Raw | null;
|
|
19
|
+
billing_credit_arrears_cadence?: BillingArrearsCadence.Raw | null;
|
|
16
20
|
billing_credit_auto_topup_amount?: number | null;
|
|
17
21
|
billing_credit_auto_topup_amount_type?: string | null;
|
|
18
22
|
billing_credit_auto_topup_availability?: BillingCreditAutoTopupAvailability.Raw | null;
|
|
@@ -24,6 +28,10 @@ export declare namespace PlanCreditGrantView {
|
|
|
24
28
|
billing_credit_auto_topup_threshold_credits?: number | null;
|
|
25
29
|
billing_credit_auto_topup_threshold_percent?: number | null;
|
|
26
30
|
billing_credit_can_buy_bundles: boolean;
|
|
31
|
+
billing_credit_overdraft_limit?: number | null;
|
|
32
|
+
billing_credit_postpaid_enabled: boolean;
|
|
33
|
+
billing_credit_postpaid_rate_per_unit?: number | null;
|
|
34
|
+
billing_credit_postpaid_rate_per_unit_decimal?: string | null;
|
|
27
35
|
company_credit_amount: number;
|
|
28
36
|
created_at: string;
|
|
29
37
|
credit?: BillingCreditView.Raw | null;
|
|
@@ -45,6 +45,7 @@ export declare namespace PlanGroupDetailResponseData {
|
|
|
45
45
|
sync_customer_billing_details: boolean;
|
|
46
46
|
tax_collection_enabled: boolean;
|
|
47
47
|
trial_days?: number | null;
|
|
48
|
+
trial_eligibility_per_plan: boolean;
|
|
48
49
|
trial_expiry_plan?: PlanGroupPlanDetailResponseData.Raw | null;
|
|
49
50
|
trial_expiry_plan_id?: string | null;
|
|
50
51
|
trial_expiry_plan_price?: BillingPriceView.Raw | null;
|
|
@@ -33,6 +33,7 @@ export declare namespace PlanGroupResponseData {
|
|
|
33
33
|
sync_customer_billing_details: boolean;
|
|
34
34
|
tax_collection_enabled: boolean;
|
|
35
35
|
trial_days?: number | null;
|
|
36
|
+
trial_eligibility_per_plan: boolean;
|
|
36
37
|
trial_expiry_plan_id?: string | null;
|
|
37
38
|
trial_expiry_plan_price_id?: string | null;
|
|
38
39
|
trial_payment_method_required?: boolean | null;
|
|
@@ -15,6 +15,7 @@ export declare namespace PlanVersionCompanyMigrationResponseData {
|
|
|
15
15
|
id: string;
|
|
16
16
|
migration_id: string;
|
|
17
17
|
plan_version_id_from?: string | null;
|
|
18
|
+
scheduled_for?: string | null;
|
|
18
19
|
started_at?: string | null;
|
|
19
20
|
status: PlanVersionCompanyMigrationStatus.Raw;
|
|
20
21
|
updated_at: string;
|
|
@@ -3,5 +3,5 @@ import * as core from "../../core";
|
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
export declare const PlanVersionCompanyMigrationStatus: core.serialization.Schema<serializers.PlanVersionCompanyMigrationStatus.Raw, Schematic.PlanVersionCompanyMigrationStatus>;
|
|
5
5
|
export declare namespace PlanVersionCompanyMigrationStatus {
|
|
6
|
-
type Raw = "completed" | "failed" | "in_progress" | "pending" | "skipped";
|
|
6
|
+
type Raw = "cancelled" | "completed" | "failed" | "in_progress" | "pending" | "skipped";
|
|
7
7
|
}
|
|
@@ -3,5 +3,5 @@ import * as core from "../../core";
|
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
export declare const PlanVersionMigrationStatus: core.serialization.Schema<serializers.PlanVersionMigrationStatus.Raw, Schematic.PlanVersionMigrationStatus>;
|
|
5
5
|
export declare namespace PlanVersionMigrationStatus {
|
|
6
|
-
type Raw = "completed" | "failed" | "in_progress" | "pending";
|
|
6
|
+
type Raw = "cancelled" | "completed" | "failed" | "in_progress" | "pending";
|
|
7
7
|
}
|
|
@@ -3,5 +3,5 @@ import * as core from "../../core";
|
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
export declare const PlanVersionMigrationStrategy: core.serialization.Schema<serializers.PlanVersionMigrationStrategy.Raw, Schematic.PlanVersionMigrationStrategy>;
|
|
5
5
|
export declare namespace PlanVersionMigrationStrategy {
|
|
6
|
-
type Raw = "immediate" | "leave";
|
|
6
|
+
type Raw = "end_of_billing_period" | "immediate" | "leave";
|
|
7
7
|
}
|
|
@@ -8,6 +8,7 @@ import { EntityType } from "./EntityType";
|
|
|
8
8
|
import { MetricPeriod } from "./MetricPeriod";
|
|
9
9
|
import { MetricPeriodMonthReset } from "./MetricPeriodMonthReset";
|
|
10
10
|
import { PreviewObjectResponseData } from "./PreviewObjectResponseData";
|
|
11
|
+
import { RuleConditionPlanVersionResponseData } from "./RuleConditionPlanVersionResponseData";
|
|
11
12
|
export declare const RuleConditionDetailResponseData: core.serialization.ObjectSchema<serializers.RuleConditionDetailResponseData.Raw, Schematic.RuleConditionDetailResponseData>;
|
|
12
13
|
export declare namespace RuleConditionDetailResponseData {
|
|
13
14
|
interface Raw {
|
|
@@ -24,6 +25,7 @@ export declare namespace RuleConditionDetailResponseData {
|
|
|
24
25
|
metric_period_month_reset?: MetricPeriodMonthReset.Raw | null;
|
|
25
26
|
metric_value?: number | null;
|
|
26
27
|
operator: ComparableOperator.Raw;
|
|
28
|
+
plan_versions?: RuleConditionPlanVersionResponseData.Raw[] | null;
|
|
27
29
|
resource_ids: string[];
|
|
28
30
|
resources: PreviewObjectResponseData.Raw[];
|
|
29
31
|
rule_id: string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { PlanVersionStatus } from "./PlanVersionStatus";
|
|
5
|
+
export declare const RuleConditionPlanVersionResponseData: core.serialization.ObjectSchema<serializers.RuleConditionPlanVersionResponseData.Raw, Schematic.RuleConditionPlanVersionResponseData>;
|
|
6
|
+
export declare namespace RuleConditionPlanVersionResponseData {
|
|
7
|
+
interface Raw {
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
status: PlanVersionStatus.Raw;
|
|
11
|
+
version: number;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -3,5 +3,5 @@ import * as core from "../../core";
|
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
export declare const RulesEngineSchemaVersion: core.serialization.Schema<serializers.RulesEngineSchemaVersion.Raw, Schematic.RulesEngineSchemaVersion>;
|
|
5
5
|
export declare namespace RulesEngineSchemaVersion {
|
|
6
|
-
type Raw = "
|
|
6
|
+
type Raw = "v94b8f7a7" | "placeholder-for-fern-compatibility";
|
|
7
7
|
}
|
|
@@ -2,6 +2,7 @@ import type * as Schematic from "../../api/index";
|
|
|
2
2
|
import * as core from "../../core";
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
import { RulesengineCompanyMetric } from "./RulesengineCompanyMetric";
|
|
5
|
+
import { RulesengineCreditPostpaidConfig } from "./RulesengineCreditPostpaidConfig";
|
|
5
6
|
import { RulesengineFeatureEntitlement } from "./RulesengineFeatureEntitlement";
|
|
6
7
|
import { RulesengineRule } from "./RulesengineRule";
|
|
7
8
|
import { RulesengineSubscription } from "./RulesengineSubscription";
|
|
@@ -13,6 +14,7 @@ export declare namespace RulesengineCompany {
|
|
|
13
14
|
base_plan_id?: string | null;
|
|
14
15
|
billing_product_ids: string[];
|
|
15
16
|
credit_balances: Record<string, number>;
|
|
17
|
+
credit_postpaid?: Record<string, RulesengineCreditPostpaidConfig.Raw> | null;
|
|
16
18
|
entitlements?: RulesengineFeatureEntitlement.Raw[] | null;
|
|
17
19
|
environment_id: string;
|
|
18
20
|
id: string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
export declare const RulesengineCreditPostpaidConfig: core.serialization.ObjectSchema<serializers.RulesengineCreditPostpaidConfig.Raw, Schematic.RulesengineCreditPostpaidConfig>;
|
|
5
|
+
export declare namespace RulesengineCreditPostpaidConfig {
|
|
6
|
+
interface Raw {
|
|
7
|
+
overdraft_limit?: number | null;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
export declare const SlackConnectInviteStatus: core.serialization.Schema<serializers.SlackConnectInviteStatus.Raw, Schematic.SlackConnectInviteStatus>;
|
|
5
|
+
export declare namespace SlackConnectInviteStatus {
|
|
6
|
+
type Raw = "accepted" | "declined" | "dismissed" | "expired" | "pending";
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { SlackConnectInviteStatus } from "./SlackConnectInviteStatus";
|
|
5
|
+
export declare const SlackConnectInviteView: core.serialization.ObjectSchema<serializers.SlackConnectInviteView.Raw, Schematic.SlackConnectInviteView>;
|
|
6
|
+
export declare namespace SlackConnectInviteView {
|
|
7
|
+
interface Raw {
|
|
8
|
+
can_resend_at?: string | null;
|
|
9
|
+
email: string;
|
|
10
|
+
sent_at: string;
|
|
11
|
+
status: SlackConnectInviteStatus.Raw;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -6,6 +6,9 @@ export declare namespace StripeIntegrationConfig {
|
|
|
6
6
|
interface Raw {
|
|
7
7
|
account_id?: string | null;
|
|
8
8
|
account_name?: string | null;
|
|
9
|
+
claimable_sandbox_expires_at?: string | null;
|
|
10
|
+
claimable_sandbox_id?: string | null;
|
|
11
|
+
claimable_sandbox_status?: string | null;
|
|
9
12
|
company_update_only?: boolean | null;
|
|
10
13
|
is_sandbox: boolean;
|
|
11
14
|
live_mode: boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
export declare const StripeSandboxClaimLink: core.serialization.ObjectSchema<serializers.StripeSandboxClaimLink.Raw, Schematic.StripeSandboxClaimLink>;
|
|
5
|
+
export declare namespace StripeSandboxClaimLink {
|
|
6
|
+
interface Raw {
|
|
7
|
+
claim_url: string;
|
|
8
|
+
expires_at?: string | null;
|
|
9
|
+
sandbox_id: string;
|
|
10
|
+
status: string;
|
|
11
|
+
}
|
|
12
|
+
}
|