@schematichq/schematic-typescript-node 1.4.7 → 1.4.8

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.
Files changed (119) hide show
  1. package/dist/api/resources/accounts/client/Client.d.ts +20 -0
  2. package/dist/api/resources/accounts/client/requests/CountAccountMembersRequest.d.ts +18 -0
  3. package/dist/api/resources/accounts/client/requests/index.d.ts +1 -0
  4. package/dist/api/resources/accounts/types/CountAccountMembersParams.d.ts +12 -0
  5. package/dist/api/resources/accounts/types/CountAccountMembersResponse.d.ts +6 -0
  6. package/dist/api/resources/accounts/types/index.d.ts +2 -0
  7. package/dist/api/resources/billing/client/Client.d.ts +6 -6
  8. package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +1 -1
  9. package/dist/api/resources/billing/client/requests/CountCustomersRequest.d.ts +1 -1
  10. package/dist/api/resources/billing/client/requests/ListBillingPricesRequest.d.ts +1 -1
  11. package/dist/api/resources/billing/client/requests/ListBillingProductPricesRequest.d.ts +1 -1
  12. package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +1 -1
  13. package/dist/api/resources/billing/client/requests/ListCustomersWithSubscriptionsRequest.d.ts +1 -1
  14. package/dist/api/resources/checkout/client/Client.d.ts +16 -0
  15. package/dist/api/resources/entitlements/client/Client.d.ts +3 -3
  16. package/dist/api/resources/entitlements/client/requests/CountFeatureUsageRequest.d.ts +1 -1
  17. package/dist/api/resources/entitlements/client/requests/CreateBillingLinkedPlanEntitlementRequestBody.d.ts +1 -1
  18. package/dist/api/resources/entitlements/client/requests/ListFeatureUsageRequest.d.ts +1 -1
  19. package/dist/api/resources/features/client/Client.d.ts +3 -3
  20. package/dist/api/resources/features/client/requests/CountFeaturesRequest.d.ts +1 -1
  21. package/dist/api/resources/features/client/requests/CreateBillingLinkedFeatureRequestBody.d.ts +1 -1
  22. package/dist/api/resources/features/client/requests/ListFeaturesRequest.d.ts +1 -1
  23. package/dist/api/resources/integrationsapi/client/Client.d.ts +54 -3
  24. package/dist/api/resources/integrationsapi/types/AssumeStripeInstalledResponse.d.ts +6 -0
  25. package/dist/api/resources/integrationsapi/types/InstallIntegrationResponse.d.ts +6 -0
  26. package/dist/api/resources/integrationsapi/types/InstallStripeResponse.d.ts +6 -0
  27. package/dist/api/resources/integrationsapi/types/{LoadSampleDataSetV2Response.d.ts → LoadSampleDataSetResponse.d.ts} +1 -1
  28. package/dist/api/resources/integrationsapi/types/index.d.ts +4 -1
  29. package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +1 -0
  30. package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +1 -0
  31. package/dist/api/resources/plans/client/Client.d.ts +1 -1
  32. package/dist/api/resources/plans/client/requests/CreateBillingLinkedPlanRequestBody.d.ts +1 -1
  33. package/dist/api/types/AccountMemberResponseData.d.ts +2 -0
  34. package/dist/api/types/BillingCreditGrantReason.d.ts +1 -0
  35. package/dist/api/types/BillingCreditGrantResponseData.d.ts +4 -0
  36. package/dist/api/types/BillingCreditLedgerAuthority.d.ts +6 -0
  37. package/dist/api/types/BillingCreditView.d.ts +1 -0
  38. package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +2 -0
  39. package/dist/api/types/BillingProviderType.d.ts +1 -0
  40. package/dist/api/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -0
  41. package/dist/api/types/ChangeSubscriptionRequestBody.d.ts +1 -0
  42. package/dist/api/types/CheckoutDataResponseData.d.ts +1 -0
  43. package/dist/api/types/CheckoutFieldInput.d.ts +8 -0
  44. package/dist/api/types/CheckoutFieldResponseData.d.ts +12 -0
  45. package/dist/api/types/CheckoutFieldValue.d.ts +4 -0
  46. package/dist/api/types/CheckoutFieldWithValue.d.ts +9 -0
  47. package/dist/api/types/CompanyCreditBalanceResponseData.d.ts +2 -0
  48. package/dist/api/types/CompanyPlanCreditGrantView.d.ts +1 -0
  49. package/dist/api/types/ComponentHydrateResponseData.d.ts +1 -0
  50. package/dist/api/types/ComponentPreviewResponseData.d.ts +1 -0
  51. package/dist/api/types/CreateBillingPlanCreditGrantRequestBody.d.ts +2 -0
  52. package/dist/api/types/CreditCompanyGrantView.d.ts +3 -0
  53. package/dist/api/types/CreditEventLedgerResponseData.d.ts +1 -0
  54. package/dist/api/types/CreditUsageReason.d.ts +8 -0
  55. package/dist/api/types/EventDetailResponseData.d.ts +1 -0
  56. package/dist/api/types/EventResponseData.d.ts +1 -0
  57. package/dist/api/types/InstallIntegrationRequestBody.d.ts +9 -0
  58. package/dist/api/types/IntegrationConfig.d.ts +4 -1
  59. package/dist/api/types/IntegrationInstallConfig.d.ts +13 -0
  60. package/dist/api/types/IntegrationInstallResponseData.d.ts +6 -0
  61. package/dist/api/types/IntegrationType.d.ts +1 -0
  62. package/dist/api/types/ManagePlanRequest.d.ts +1 -0
  63. package/dist/api/types/MetronomeIntegrationConfig.d.ts +1 -0
  64. package/dist/api/types/MigrationErrorCode.d.ts +1 -0
  65. package/dist/api/types/PlanCreditGrantView.d.ts +1 -0
  66. package/dist/api/types/PlanGroupDetailResponseData.d.ts +1 -0
  67. package/dist/api/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +2 -0
  68. package/dist/api/types/index.d.ts +10 -0
  69. package/dist/datastream/merge.d.ts +5 -11
  70. package/dist/index.js +3 -3
  71. package/dist/serialization/resources/accounts/types/CountAccountMembersParams.d.ts +12 -0
  72. package/dist/serialization/resources/accounts/types/CountAccountMembersResponse.d.ts +12 -0
  73. package/dist/serialization/resources/accounts/types/index.d.ts +2 -0
  74. package/dist/serialization/resources/integrationsapi/types/AssumeStripeInstalledResponse.d.ts +11 -0
  75. package/dist/serialization/resources/integrationsapi/types/InstallIntegrationResponse.d.ts +11 -0
  76. package/dist/serialization/resources/integrationsapi/types/InstallStripeResponse.d.ts +11 -0
  77. package/dist/serialization/resources/integrationsapi/types/{LoadSampleDataSetV2Response.d.ts → LoadSampleDataSetResponse.d.ts} +2 -2
  78. package/dist/serialization/resources/integrationsapi/types/index.d.ts +4 -1
  79. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +2 -0
  80. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +2 -0
  81. package/dist/serialization/types/AccountMemberResponseData.d.ts +2 -0
  82. package/dist/serialization/types/BillingCreditGrantReason.d.ts +1 -1
  83. package/dist/serialization/types/BillingCreditGrantResponseData.d.ts +3 -0
  84. package/dist/serialization/types/BillingCreditLedgerAuthority.d.ts +7 -0
  85. package/dist/serialization/types/BillingCreditView.d.ts +2 -0
  86. package/dist/serialization/types/BillingPlanCreditGrantResponseData.d.ts +1 -0
  87. package/dist/serialization/types/BillingProviderType.d.ts +1 -1
  88. package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +2 -0
  89. package/dist/serialization/types/ChangeSubscriptionRequestBody.d.ts +2 -0
  90. package/dist/serialization/types/CheckoutDataResponseData.d.ts +2 -0
  91. package/dist/serialization/types/CheckoutFieldInput.d.ts +14 -0
  92. package/dist/serialization/types/CheckoutFieldResponseData.d.ts +18 -0
  93. package/dist/serialization/types/CheckoutFieldValue.d.ts +10 -0
  94. package/dist/serialization/types/CheckoutFieldWithValue.d.ts +15 -0
  95. package/dist/serialization/types/CompanyCreditBalanceResponseData.d.ts +2 -0
  96. package/dist/serialization/types/CompanyPlanCreditGrantView.d.ts +1 -0
  97. package/dist/serialization/types/ComponentHydrateResponseData.d.ts +2 -0
  98. package/dist/serialization/types/ComponentPreviewResponseData.d.ts +2 -0
  99. package/dist/serialization/types/CreateBillingPlanCreditGrantRequestBody.d.ts +1 -0
  100. package/dist/serialization/types/CreditCompanyGrantView.d.ts +3 -0
  101. package/dist/serialization/types/CreditEventLedgerResponseData.d.ts +2 -0
  102. package/dist/serialization/types/CreditUsageReason.d.ts +7 -0
  103. package/dist/serialization/types/EventDetailResponseData.d.ts +1 -0
  104. package/dist/serialization/types/EventResponseData.d.ts +1 -0
  105. package/dist/serialization/types/InstallIntegrationRequestBody.d.ts +16 -0
  106. package/dist/serialization/types/IntegrationConfig.d.ts +5 -1
  107. package/dist/serialization/types/IntegrationInstallConfig.d.ts +20 -0
  108. package/dist/serialization/types/IntegrationInstallResponseData.d.ts +14 -0
  109. package/dist/serialization/types/IntegrationType.d.ts +1 -1
  110. package/dist/serialization/types/ManagePlanRequest.d.ts +2 -0
  111. package/dist/serialization/types/MetronomeIntegrationConfig.d.ts +7 -0
  112. package/dist/serialization/types/MigrationErrorCode.d.ts +1 -1
  113. package/dist/serialization/types/PlanCreditGrantView.d.ts +1 -0
  114. package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +2 -0
  115. package/dist/serialization/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +1 -0
  116. package/dist/serialization/types/index.d.ts +10 -0
  117. package/dist/wasm/rulesengine.js +2 -2
  118. package/package.json +1 -1
  119. package/dist/wasm/rulesengine_bg.wasm +0 -0
@@ -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 CountAccountMembersParams: core.serialization.ObjectSchema<serializers.CountAccountMembersParams.Raw, Schematic.CountAccountMembersParams>;
5
+ export declare namespace CountAccountMembersParams {
6
+ interface Raw {
7
+ ids?: string[] | null;
8
+ limit?: number | null;
9
+ offset?: number | null;
10
+ q?: string | null;
11
+ }
12
+ }
@@ -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
+ import { CountResponse } from "../../../types/CountResponse";
5
+ import { CountAccountMembersParams } from "./CountAccountMembersParams";
6
+ export declare const CountAccountMembersResponse: core.serialization.ObjectSchema<serializers.CountAccountMembersResponse.Raw, Schematic.CountAccountMembersResponse>;
7
+ export declare namespace CountAccountMembersResponse {
8
+ interface Raw {
9
+ data: CountResponse.Raw;
10
+ params: CountAccountMembersParams.Raw;
11
+ }
12
+ }
@@ -1,3 +1,5 @@
1
+ export * from "./CountAccountMembersParams";
2
+ export * from "./CountAccountMembersResponse";
1
3
  export * from "./CountApiKeysParams";
2
4
  export * from "./CountApiKeysResponse";
3
5
  export * from "./CountAuditLogsParams";
@@ -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
+ import { IntegrationInstallResponseData } from "../../../types/IntegrationInstallResponseData";
5
+ export declare const AssumeStripeInstalledResponse: core.serialization.ObjectSchema<serializers.AssumeStripeInstalledResponse.Raw, Schematic.AssumeStripeInstalledResponse>;
6
+ export declare namespace AssumeStripeInstalledResponse {
7
+ interface Raw {
8
+ data: IntegrationInstallResponseData.Raw;
9
+ params: Record<string, unknown>;
10
+ }
11
+ }
@@ -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
+ import { IntegrationInstallResponseData } from "../../../types/IntegrationInstallResponseData";
5
+ export declare const InstallIntegrationResponse: core.serialization.ObjectSchema<serializers.InstallIntegrationResponse.Raw, Schematic.InstallIntegrationResponse>;
6
+ export declare namespace InstallIntegrationResponse {
7
+ interface Raw {
8
+ data: IntegrationInstallResponseData.Raw;
9
+ params: Record<string, unknown>;
10
+ }
11
+ }
@@ -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
+ import { IntegrationInstallResponseData } from "../../../types/IntegrationInstallResponseData";
5
+ export declare const InstallStripeResponse: core.serialization.ObjectSchema<serializers.InstallStripeResponse.Raw, Schematic.InstallStripeResponse>;
6
+ export declare namespace InstallStripeResponse {
7
+ interface Raw {
8
+ data: IntegrationInstallResponseData.Raw;
9
+ params: Record<string, unknown>;
10
+ }
11
+ }
@@ -2,8 +2,8 @@ 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 { IntegrationsDataSetResponseData } from "../../../types/IntegrationsDataSetResponseData";
5
- export declare const LoadSampleDataSetV2Response: core.serialization.ObjectSchema<serializers.LoadSampleDataSetV2Response.Raw, Schematic.LoadSampleDataSetV2Response>;
6
- export declare namespace LoadSampleDataSetV2Response {
5
+ export declare const LoadSampleDataSetResponse: core.serialization.ObjectSchema<serializers.LoadSampleDataSetResponse.Raw, Schematic.LoadSampleDataSetResponse>;
6
+ export declare namespace LoadSampleDataSetResponse {
7
7
  interface Raw {
8
8
  data: IntegrationsDataSetResponseData.Raw;
9
9
  params: Record<string, unknown>;
@@ -1,7 +1,10 @@
1
+ export * from "./AssumeStripeInstalledResponse";
1
2
  export * from "./GetIntegrationWebhookUrlResponse";
3
+ export * from "./InstallIntegrationResponse";
4
+ export * from "./InstallStripeResponse";
2
5
  export * from "./ListIntegrationsParams";
3
6
  export * from "./ListIntegrationsResponse";
4
- export * from "./LoadSampleDataSetV2Response";
7
+ export * from "./LoadSampleDataSetResponse";
5
8
  export * from "./RunIntegrationResponse";
6
9
  export * from "./StartDataImportResponse";
7
10
  export * from "./UninstallIntegrationResponse";
@@ -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 { CheckoutFieldInput } from "../../../../types/CheckoutFieldInput";
4
5
  import { CompatiblePlans } from "../../../../types/CompatiblePlans";
5
6
  import { CustomPlanConfig } from "../../../../types/CustomPlanConfig";
6
7
  import { OrderedPlansInGroup } from "../../../../types/OrderedPlansInGroup";
@@ -15,6 +16,7 @@ export declare namespace CreatePlanGroupRequestBody {
15
16
  checkout_collect_address: boolean;
16
17
  checkout_collect_email: boolean;
17
18
  checkout_collect_phone: boolean;
19
+ custom_checkout_fields?: CheckoutFieldInput.Raw[] | null;
18
20
  custom_plan_config?: CustomPlanConfig.Raw | null;
19
21
  custom_plan_id?: string | null;
20
22
  enable_tax_collection: boolean;
@@ -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 { CheckoutFieldInput } from "../../../../types/CheckoutFieldInput";
4
5
  import { CompatiblePlans } from "../../../../types/CompatiblePlans";
5
6
  import { CustomPlanConfig } from "../../../../types/CustomPlanConfig";
6
7
  import { OrderedPlansInGroup } from "../../../../types/OrderedPlansInGroup";
@@ -15,6 +16,7 @@ export declare namespace UpdatePlanGroupRequestBody {
15
16
  checkout_collect_address: boolean;
16
17
  checkout_collect_email: boolean;
17
18
  checkout_collect_phone: boolean;
19
+ custom_checkout_fields?: CheckoutFieldInput.Raw[] | null;
18
20
  custom_plan_config?: CustomPlanConfig.Raw | null;
19
21
  custom_plan_id?: string | null;
20
22
  enable_tax_collection: boolean;
@@ -8,8 +8,10 @@ export declare namespace AccountMemberResponseData {
8
8
  interface Raw {
9
9
  created_at: string;
10
10
  email?: string | null;
11
+ first_name?: string | null;
11
12
  id: string;
12
13
  image_url?: string | null;
14
+ last_name?: string | null;
13
15
  name?: string | null;
14
16
  permissions: Record<string, AccountMemberPermission.Raw[]>;
15
17
  role?: AccountMemberRole.Raw | null;
@@ -3,5 +3,5 @@ import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
4
  export declare const BillingCreditGrantReason: core.serialization.Schema<serializers.BillingCreditGrantReason.Raw, Schematic.BillingCreditGrantReason>;
5
5
  export declare namespace BillingCreditGrantReason {
6
- type Raw = "adjustment" | "billing_credit_auto_topup" | "free" | "plan" | "purchased";
6
+ type Raw = "adjustment" | "billing_credit_auto_topup" | "free" | "plan" | "purchased" | "rollover";
7
7
  }
@@ -27,6 +27,9 @@ export declare namespace BillingCreditGrantResponseData {
27
27
  quantity_used: number;
28
28
  renewal_enabled: boolean;
29
29
  renewal_period?: BillingPlanCreditGrantResetCadence.Raw | null;
30
+ reserved?: number | null;
31
+ settled?: number | null;
32
+ source_grant_id?: string | null;
30
33
  source_label: string;
31
34
  transfers?: CreditTransferResponseData.Raw[] | null;
32
35
  updated_at: string;
@@ -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 BillingCreditLedgerAuthority: core.serialization.Schema<serializers.BillingCreditLedgerAuthority.Raw, Schematic.BillingCreditLedgerAuthority>;
5
+ export declare namespace BillingCreditLedgerAuthority {
6
+ type Raw = "schematic_authoritative" | "external_mirror" | "external_rated";
7
+ }
@@ -3,6 +3,7 @@ import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
4
  import { BillingCreditBurnStrategy } from "./BillingCreditBurnStrategy";
5
5
  import { BillingCreditExpiryUnit } from "./BillingCreditExpiryUnit";
6
+ import { BillingCreditLedgerAuthority } from "./BillingCreditLedgerAuthority";
6
7
  import { BillingCreditRolloverPolicy } from "./BillingCreditRolloverPolicy";
7
8
  import { BillingPriceView } from "./BillingPriceView";
8
9
  import { BillingProductResponseData } from "./BillingProductResponseData";
@@ -22,6 +23,7 @@ export declare namespace BillingCreditView {
22
23
  environment_id: string;
23
24
  icon?: string | null;
24
25
  id: string;
26
+ ledger_authority: BillingCreditLedgerAuthority.Raw;
25
27
  name: string;
26
28
  plural_name?: string | null;
27
29
  price?: BillingPriceView.Raw | null;
@@ -38,6 +38,7 @@ export declare namespace BillingPlanCreditGrantResponseData {
38
38
  reset_cadence?: BillingPlanCreditGrantResetCadence.Raw | null;
39
39
  reset_start?: BillingPlanCreditGrantResetStart.Raw | null;
40
40
  reset_type?: BillingPlanCreditGrantResetType.Raw | null;
41
+ rollover_percentage: number;
41
42
  updated_at: string;
42
43
  }
43
44
  }
@@ -3,5 +3,5 @@ import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
4
  export declare const BillingProviderType: core.serialization.Schema<serializers.BillingProviderType.Raw, Schematic.BillingProviderType>;
5
5
  export declare namespace BillingProviderType {
6
- type Raw = "orb" | "schematic" | "stripe";
6
+ type Raw = "metronome" | "orb" | "schematic" | "stripe";
7
7
  }
@@ -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 { CheckoutFieldValue } from "./CheckoutFieldValue";
4
5
  import { UpdateAddOnRequestBody } from "./UpdateAddOnRequestBody";
5
6
  import { UpdateAutoTopupOverrideRequestBody } from "./UpdateAutoTopupOverrideRequestBody";
6
7
  import { UpdateCreditBundleRequestBody } from "./UpdateCreditBundleRequestBody";
@@ -13,6 +14,7 @@ export declare namespace ChangeSubscriptionInternalRequestBody {
13
14
  company_id: string;
14
15
  coupon_external_id?: string | null;
15
16
  credit_bundles: UpdateCreditBundleRequestBody.Raw[];
17
+ custom_field_values: CheckoutFieldValue.Raw[];
16
18
  new_plan_id: string;
17
19
  new_price_id: string;
18
20
  pay_in_advance: UpdatePayInAdvanceRequestBody.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 { CheckoutFieldValue } from "./CheckoutFieldValue";
4
5
  import { UpdateAddOnRequestBody } from "./UpdateAddOnRequestBody";
5
6
  import { UpdateAutoTopupOverrideRequestBody } from "./UpdateAutoTopupOverrideRequestBody";
6
7
  import { UpdateCreditBundleRequestBody } from "./UpdateCreditBundleRequestBody";
@@ -12,6 +13,7 @@ export declare namespace ChangeSubscriptionRequestBody {
12
13
  auto_topup_overrides: UpdateAutoTopupOverrideRequestBody.Raw[];
13
14
  coupon_external_id?: string | null;
14
15
  credit_bundles: UpdateCreditBundleRequestBody.Raw[];
16
+ custom_field_values: CheckoutFieldValue.Raw[];
15
17
  new_plan_id: string;
16
18
  new_price_id: string;
17
19
  pay_in_advance: UpdatePayInAdvanceRequestBody.Raw[];
@@ -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 { BillingCreditBundleResponseData } from "./BillingCreditBundleResponseData";
5
+ import { CheckoutFieldWithValue } from "./CheckoutFieldWithValue";
5
6
  import { CompanyDetailResponseData } from "./CompanyDetailResponseData";
6
7
  import { CompanySubscriptionResponseData } from "./CompanySubscriptionResponseData";
7
8
  import { CreditBundlePurchaseResponseData } from "./CreditBundlePurchaseResponseData";
@@ -16,6 +17,7 @@ export declare namespace CheckoutDataResponseData {
16
17
  active_usage_based_entitlements: UsageBasedEntitlementResponseData.Raw[];
17
18
  available_credit_bundles: BillingCreditBundleResponseData.Raw[];
18
19
  company?: CompanyDetailResponseData.Raw | null;
20
+ custom_checkout_fields: CheckoutFieldWithValue.Raw[];
19
21
  feature_usage?: FeatureUsageDetailResponseData.Raw | null;
20
22
  selected_credit_bundles: CreditBundlePurchaseResponseData.Raw[];
21
23
  selected_plan?: PlanDetailResponseData.Raw | null;
@@ -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 CheckoutFieldInput: core.serialization.ObjectSchema<serializers.CheckoutFieldInput.Raw, Schematic.CheckoutFieldInput>;
5
+ export declare namespace CheckoutFieldInput {
6
+ interface Raw {
7
+ definition_id?: string | null;
8
+ helper_text?: string | null;
9
+ id?: string | null;
10
+ name: string;
11
+ required: boolean;
12
+ stripe_metadata_key: string;
13
+ }
14
+ }
@@ -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
+ export declare const CheckoutFieldResponseData: core.serialization.ObjectSchema<serializers.CheckoutFieldResponseData.Raw, Schematic.CheckoutFieldResponseData>;
5
+ export declare namespace CheckoutFieldResponseData {
6
+ interface Raw {
7
+ created_at: string;
8
+ definition_id: string;
9
+ helper_text?: string | null;
10
+ id: string;
11
+ name: string;
12
+ position: number;
13
+ required: boolean;
14
+ stripe_metadata_key: string;
15
+ trait_hierarchy: string[];
16
+ updated_at: string;
17
+ }
18
+ }
@@ -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 CheckoutFieldValue: core.serialization.ObjectSchema<serializers.CheckoutFieldValue.Raw, Schematic.CheckoutFieldValue>;
5
+ export declare namespace CheckoutFieldValue {
6
+ interface Raw {
7
+ id: string;
8
+ value: string;
9
+ }
10
+ }
@@ -0,0 +1,15 @@
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 CheckoutFieldWithValue: core.serialization.ObjectSchema<serializers.CheckoutFieldWithValue.Raw, Schematic.CheckoutFieldWithValue>;
5
+ export declare namespace CheckoutFieldWithValue {
6
+ interface Raw {
7
+ definition_id: string;
8
+ helper_text?: string | null;
9
+ id: string;
10
+ name: string;
11
+ required: boolean;
12
+ stripe_metadata_key: string;
13
+ value?: string | null;
14
+ }
15
+ }
@@ -7,6 +7,8 @@ export declare namespace CompanyCreditBalanceResponseData {
7
7
  interface Raw {
8
8
  credit_id: string;
9
9
  remaining: number;
10
+ reserved: number;
11
+ settled: number;
10
12
  source: BillingProviderType.Raw;
11
13
  total?: number | null;
12
14
  }
@@ -41,6 +41,7 @@ export declare namespace CompanyPlanCreditGrantView {
41
41
  reset_cadence?: BillingPlanCreditGrantResetCadence.Raw | null;
42
42
  reset_start?: BillingPlanCreditGrantResetStart.Raw | null;
43
43
  reset_type: BillingPlanCreditGrantResetType.Raw;
44
+ rollover_percentage: number;
44
45
  singular_name?: string | null;
45
46
  updated_at: string;
46
47
  }
@@ -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 { BillingCreditBundleView } from "./BillingCreditBundleView";
5
+ import { CheckoutFieldWithValue } from "./CheckoutFieldWithValue";
5
6
  import { CompanyDetailResponseData } from "./CompanyDetailResponseData";
6
7
  import { CompanyPlanDetailResponseData } from "./CompanyPlanDetailResponseData";
7
8
  import { CompanySubscriptionResponseData } from "./CompanySubscriptionResponseData";
@@ -30,6 +31,7 @@ export declare namespace ComponentHydrateResponseData {
30
31
  component?: ComponentResponseData.Raw | null;
31
32
  credit_bundles: BillingCreditBundleView.Raw[];
32
33
  credit_grants: CreditCompanyGrantView.Raw[];
34
+ custom_checkout_fields: CheckoutFieldWithValue.Raw[];
33
35
  default_plan?: PlanDetailResponseData.Raw | null;
34
36
  display_settings: ComponentDisplaySettings.Raw;
35
37
  feature_usage?: FeatureUsageDetailResponseData.Raw | null;
@@ -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 { BillingCreditBundleView } from "./BillingCreditBundleView";
5
+ import { CheckoutFieldWithValue } from "./CheckoutFieldWithValue";
5
6
  import { CompanyDetailResponseData } from "./CompanyDetailResponseData";
6
7
  import { CompanyPlanDetailResponseData } from "./CompanyPlanDetailResponseData";
7
8
  import { CompanySubscriptionResponseData } from "./CompanySubscriptionResponseData";
@@ -30,6 +31,7 @@ export declare namespace ComponentPreviewResponseData {
30
31
  component?: ComponentResponseData.Raw | null;
31
32
  credit_bundles: BillingCreditBundleView.Raw[];
32
33
  credit_grants: CreditCompanyGrantView.Raw[];
34
+ custom_checkout_fields: CheckoutFieldWithValue.Raw[];
33
35
  default_plan?: PlanDetailResponseData.Raw | null;
34
36
  display_settings: ComponentDisplaySettings.Raw;
35
37
  feature_usage?: FeatureUsageDetailResponseData.Raw | null;
@@ -30,5 +30,6 @@ export declare namespace CreateBillingPlanCreditGrantRequestBody {
30
30
  reset_cadence: BillingPlanCreditGrantResetCadence.Raw;
31
31
  reset_start: BillingPlanCreditGrantResetStart.Raw;
32
32
  reset_type?: BillingPlanCreditGrantResetType.Raw | null;
33
+ rollover_percentage?: number | null;
33
34
  }
34
35
  }
@@ -36,7 +36,10 @@ export declare namespace CreditCompanyGrantView {
36
36
  quantity_used: number;
37
37
  renewal_enabled: boolean;
38
38
  renewal_period?: BillingPlanCreditGrantResetCadence.Raw | null;
39
+ reserved?: number | null;
40
+ settled?: number | null;
39
41
  singular_name?: string | null;
42
+ source_grant_id?: string | null;
40
43
  source_label: string;
41
44
  transfers?: CreditTransferView.Raw[] | null;
42
45
  updated_at: string;
@@ -8,6 +8,7 @@ import { BillingCreditGrantZeroedOutReason } from "./BillingCreditGrantZeroedOut
8
8
  import { BillingCreditLedgerResponseData } from "./BillingCreditLedgerResponseData";
9
9
  import { CompanyLedgerResponseData } from "./CompanyLedgerResponseData";
10
10
  import { CreditEventType } from "./CreditEventType";
11
+ import { CreditUsageReason } from "./CreditUsageReason";
11
12
  import { FeatureLedgerResponseData } from "./FeatureLedgerResponseData";
12
13
  export declare const CreditEventLedgerResponseData: core.serialization.ObjectSchema<serializers.CreditEventLedgerResponseData.Raw, Schematic.CreditEventLedgerResponseData>;
13
14
  export declare namespace CreditEventLedgerResponseData {
@@ -42,6 +43,7 @@ export declare namespace CreditEventLedgerResponseData {
42
43
  source_id: number;
43
44
  to_grant_id?: string | null;
44
45
  usage_event_id?: string | null;
46
+ usage_reason?: CreditUsageReason.Raw | null;
45
47
  zeroed_out_reason?: BillingCreditGrantZeroedOutReason.Raw | null;
46
48
  }
47
49
  }
@@ -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 CreditUsageReason: core.serialization.Schema<serializers.CreditUsageReason.Raw, Schematic.CreditUsageReason>;
5
+ export declare namespace CreditUsageReason {
6
+ type Raw = "lease_hold" | "lease_release" | "manual_adjustment" | "reconciliation" | "track";
7
+ }
@@ -22,6 +22,7 @@ export declare namespace EventDetailResponseData {
22
22
  features: PreviewObject.Raw[];
23
23
  id: string;
24
24
  idempotency_key?: string | null;
25
+ lease_id?: string | null;
25
26
  loaded_at?: string | null;
26
27
  processed_at?: string | null;
27
28
  quantity: number;
@@ -17,6 +17,7 @@ export declare namespace EventResponseData {
17
17
  feature_ids: string[];
18
18
  id: string;
19
19
  idempotency_key?: string | null;
20
+ lease_id?: string | null;
20
21
  loaded_at?: string | null;
21
22
  processed_at?: string | null;
22
23
  quantity: number;
@@ -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
+ import { CompanyMatchingCriteria } from "./CompanyMatchingCriteria";
5
+ import { IntegrationType } from "./IntegrationType";
6
+ export declare const InstallIntegrationRequestBody: core.serialization.ObjectSchema<serializers.InstallIntegrationRequestBody.Raw, Schematic.InstallIntegrationRequestBody>;
7
+ export declare namespace InstallIntegrationRequestBody {
8
+ interface Raw {
9
+ company_matching_criteria?: CompanyMatchingCriteria.Raw | null;
10
+ company_matching_field?: string | null;
11
+ config?: Record<string, unknown> | null;
12
+ is_sandbox?: boolean | null;
13
+ live_mode?: boolean | null;
14
+ type: IntegrationType.Raw;
15
+ }
16
+ }
@@ -2,15 +2,19 @@ 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 { ClerkIntegrationConfig } from "./ClerkIntegrationConfig";
5
+ import { MetronomeIntegrationConfig } from "./MetronomeIntegrationConfig";
5
6
  import { OrbIntegrationConfig } from "./OrbIntegrationConfig";
6
7
  import { StripeIntegrationConfig } from "./StripeIntegrationConfig";
7
8
  import { WorkOsIntegrationConfig } from "./WorkOsIntegrationConfig";
8
9
  export declare const IntegrationConfig: core.serialization.Schema<serializers.IntegrationConfig.Raw, Schematic.IntegrationConfig>;
9
10
  export declare namespace IntegrationConfig {
10
- type Raw = IntegrationConfig.Clerk | IntegrationConfig.Orb | IntegrationConfig.Stripe | IntegrationConfig.Workos;
11
+ type Raw = IntegrationConfig.Clerk | IntegrationConfig.Metronome | IntegrationConfig.Orb | IntegrationConfig.Stripe | IntegrationConfig.Workos;
11
12
  interface Clerk extends ClerkIntegrationConfig.Raw {
12
13
  type: "clerk";
13
14
  }
15
+ interface Metronome extends MetronomeIntegrationConfig.Raw {
16
+ type: "metronome";
17
+ }
14
18
  interface Orb extends OrbIntegrationConfig.Raw {
15
19
  type: "orb";
16
20
  }
@@ -0,0 +1,20 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ import { CompanyMatchingCriteria } from "./CompanyMatchingCriteria";
5
+ import { IntegrationConfig } from "./IntegrationConfig";
6
+ export declare const IntegrationInstallConfig: core.serialization.ObjectSchema<serializers.IntegrationInstallConfig.Raw, Schematic.IntegrationInstallConfig>;
7
+ export declare namespace IntegrationInstallConfig {
8
+ interface Raw {
9
+ company_matching_criteria?: CompanyMatchingCriteria.Raw | null;
10
+ company_matching_field?: string | null;
11
+ config?: IntegrationConfig.Raw | null;
12
+ created_at: string;
13
+ id: string;
14
+ integration_id: string;
15
+ is_app_install: boolean;
16
+ is_connect_install: boolean;
17
+ live_mode: boolean;
18
+ updated_at: string;
19
+ }
20
+ }
@@ -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
+ import { IntegrationCapabilities } from "./IntegrationCapabilities";
5
+ import { IntegrationInstallConfig } from "./IntegrationInstallConfig";
6
+ import { IntegrationResponseData } from "./IntegrationResponseData";
7
+ export declare const IntegrationInstallResponseData: core.serialization.ObjectSchema<serializers.IntegrationInstallResponseData.Raw, Schematic.IntegrationInstallResponseData>;
8
+ export declare namespace IntegrationInstallResponseData {
9
+ interface Raw {
10
+ capabilities: IntegrationCapabilities.Raw;
11
+ config: IntegrationInstallConfig.Raw;
12
+ integration: IntegrationResponseData.Raw;
13
+ }
14
+ }
@@ -3,5 +3,5 @@ import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
4
  export declare const IntegrationType: core.serialization.Schema<serializers.IntegrationType.Raw, Schematic.IntegrationType>;
5
5
  export declare namespace IntegrationType {
6
- type Raw = "clerk" | "orb" | "stripe" | "unknown" | "workos";
6
+ type Raw = "clerk" | "metronome" | "orb" | "stripe" | "unknown" | "workos";
7
7
  }
@@ -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 { CheckoutFieldValue } from "./CheckoutFieldValue";
4
5
  import { PlanSelection } from "./PlanSelection";
5
6
  import { UpdateCreditBundleRequestBody } from "./UpdateCreditBundleRequestBody";
6
7
  import { UpdatePayInAdvanceRequestBody } from "./UpdatePayInAdvanceRequestBody";
@@ -15,6 +16,7 @@ export declare namespace ManagePlanRequest {
15
16
  company_id: string;
16
17
  coupon_external_id?: string | null;
17
18
  credit_bundles: UpdateCreditBundleRequestBody.Raw[];
19
+ custom_field_values: CheckoutFieldValue.Raw[];
18
20
  pay_in_advance_entitlements: UpdatePayInAdvanceRequestBody.Raw[];
19
21
  payment_method_external_id?: string | null;
20
22
  promo_code?: string | null;
@@ -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 MetronomeIntegrationConfig: core.serialization.ObjectSchema<serializers.MetronomeIntegrationConfig.Raw, Schematic.MetronomeIntegrationConfig>;
5
+ export declare namespace MetronomeIntegrationConfig {
6
+ type Raw = {};
7
+ }
@@ -3,5 +3,5 @@ import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
4
  export declare const MigrationErrorCode: core.serialization.Schema<serializers.MigrationErrorCode.Raw, Schematic.MigrationErrorCode>;
5
5
  export declare namespace MigrationErrorCode {
6
- type Raw = "ambiguous_subscription_item" | "multiple_subscriptions" | "no_price_for_interval" | "not_on_origin_version" | "permanent_config" | "permanent_decline" | "transient_decline" | "transient_infra" | "transient_stripe" | "unknown" | "would_leave_empty_subscription";
6
+ type Raw = "ambiguous_subscription_item" | "multiple_subscriptions" | "no_price_for_interval" | "not_on_origin_version" | "operation_item_not_found" | "permanent_config" | "permanent_decline" | "transient_decline" | "transient_infra" | "transient_stripe" | "unknown" | "would_leave_empty_subscription";
7
7
  }
@@ -38,6 +38,7 @@ export declare namespace PlanCreditGrantView {
38
38
  reset_cadence?: BillingPlanCreditGrantResetCadence.Raw | null;
39
39
  reset_start?: BillingPlanCreditGrantResetStart.Raw | null;
40
40
  reset_type: BillingPlanCreditGrantResetType.Raw;
41
+ rollover_percentage: number;
41
42
  singular_name?: string | null;
42
43
  updated_at: string;
43
44
  }
@@ -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 { BillingPriceView } from "./BillingPriceView";
5
+ import { CheckoutFieldResponseData } from "./CheckoutFieldResponseData";
5
6
  import { CheckoutSettingsResponseData } from "./CheckoutSettingsResponseData";
6
7
  import { ComponentSettingsResponseData } from "./ComponentSettingsResponseData";
7
8
  import { CustomPlanViewConfigResponseData } from "./CustomPlanViewConfigResponseData";
@@ -14,6 +15,7 @@ export declare namespace PlanGroupDetailResponseData {
14
15
  add_ons: PlanGroupPlanDetailResponseData.Raw[];
15
16
  checkout_settings: CheckoutSettingsResponseData.Raw;
16
17
  component_settings: ComponentSettingsResponseData.Raw;
18
+ custom_checkout_fields: CheckoutFieldResponseData.Raw[];
17
19
  custom_plan_config?: CustomPlanViewConfigResponseData.Raw | null;
18
20
  custom_plan_id?: string | null;
19
21
  default_plan?: PlanGroupPlanDetailResponseData.Raw | null;
@@ -27,5 +27,6 @@ export declare namespace UpdateBillingPlanCreditGrantRequestBody {
27
27
  reset_cadence: BillingPlanCreditGrantResetCadence.Raw;
28
28
  reset_start: BillingPlanCreditGrantResetStart.Raw;
29
29
  reset_type?: BillingPlanCreditGrantResetType.Raw | null;
30
+ rollover_percentage?: number | null;
30
31
  }
31
32
  }