@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
@@ -44,6 +44,26 @@ export declare class AccountsClient {
44
44
  */
45
45
  getAccountMember(account_member_id: string, requestOptions?: AccountsClient.RequestOptions): core.HttpResponsePromise<Schematic.GetAccountMemberResponse>;
46
46
  private __getAccountMember;
47
+ /**
48
+ * @param {Schematic.CountAccountMembersRequest} request
49
+ * @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration.
50
+ *
51
+ * @throws {@link Schematic.BadRequestError}
52
+ * @throws {@link Schematic.UnauthorizedError}
53
+ * @throws {@link Schematic.ForbiddenError}
54
+ * @throws {@link Schematic.NotFoundError}
55
+ * @throws {@link Schematic.InternalServerError}
56
+ *
57
+ * @example
58
+ * await client.accounts.countAccountMembers({
59
+ * ids: ["ids"],
60
+ * q: "q",
61
+ * limit: 1000000,
62
+ * offset: 1000000
63
+ * })
64
+ */
65
+ countAccountMembers(request?: Schematic.CountAccountMembersRequest, requestOptions?: AccountsClient.RequestOptions): core.HttpResponsePromise<Schematic.CountAccountMembersResponse>;
66
+ private __countAccountMembers;
47
67
  /**
48
68
  * @param {Schematic.ListApiKeysRequest} request
49
69
  * @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -0,0 +1,18 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * ids: ["ids"],
5
+ * q: "q",
6
+ * limit: 1000000,
7
+ * offset: 1000000
8
+ * }
9
+ */
10
+ export interface CountAccountMembersRequest {
11
+ ids?: string | string[];
12
+ /** Search filter */
13
+ q?: string;
14
+ /** Page limit (default 100) */
15
+ limit?: number;
16
+ /** Page offset (default 0) */
17
+ offset?: number;
18
+ }
@@ -1,3 +1,4 @@
1
+ export type { CountAccountMembersRequest } from "./CountAccountMembersRequest";
1
2
  export type { CountApiKeysRequest } from "./CountApiKeysRequest";
2
3
  export type { CountAuditLogsRequest } from "./CountAuditLogsRequest";
3
4
  export type { CreateApiKeyRequestBody } from "./CreateApiKeyRequestBody";
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Input parameters
3
+ */
4
+ export interface CountAccountMembersParams {
5
+ ids?: string[];
6
+ /** Page limit (default 100) */
7
+ limit?: number;
8
+ /** Page offset (default 0) */
9
+ offset?: number;
10
+ /** Search filter */
11
+ q?: string;
12
+ }
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface CountAccountMembersResponse {
3
+ data: Schematic.CountResponse;
4
+ /** Input parameters */
5
+ params: Schematic.CountAccountMembersParams;
6
+ }
@@ -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";
@@ -90,7 +90,7 @@ export declare class BillingClient {
90
90
  * await client.billing.listCustomersWithSubscriptions({
91
91
  * companyIds: ["company_ids"],
92
92
  * name: "name",
93
- * providerType: "orb",
93
+ * providerType: "metronome",
94
94
  * q: "q",
95
95
  * limit: 1000000,
96
96
  * offset: 1000000
@@ -112,7 +112,7 @@ export declare class BillingClient {
112
112
  * await client.billing.countCustomers({
113
113
  * companyIds: ["company_ids"],
114
114
  * name: "name",
115
- * providerType: "orb",
115
+ * providerType: "metronome",
116
116
  * q: "q",
117
117
  * limit: 1000000,
118
118
  * offset: 1000000
@@ -278,7 +278,7 @@ export declare class BillingClient {
278
278
  * price: 1000000,
279
279
  * productId: "product_id",
280
280
  * productIds: ["product_ids"],
281
- * providerType: "orb",
281
+ * providerType: "metronome",
282
282
  * q: "q",
283
283
  * tiersMode: "graduated",
284
284
  * usageType: "licensed",
@@ -353,7 +353,7 @@ export declare class BillingClient {
353
353
  * price: 1000000,
354
354
  * productId: "product_id",
355
355
  * productIds: ["product_ids"],
356
- * providerType: "orb",
356
+ * providerType: "metronome",
357
357
  * q: "q",
358
358
  * tiersMode: "graduated",
359
359
  * usageType: "licensed",
@@ -413,7 +413,7 @@ export declare class BillingClient {
413
413
  * isActive: true,
414
414
  * name: "name",
415
415
  * priceUsageType: "licensed",
416
- * providerType: "orb",
416
+ * providerType: "metronome",
417
417
  * q: "q",
418
418
  * recurringChargesOnly: true,
419
419
  * withOneTimeCharges: true,
@@ -442,7 +442,7 @@ export declare class BillingClient {
442
442
  * isActive: true,
443
443
  * name: "name",
444
444
  * priceUsageType: "licensed",
445
- * providerType: "orb",
445
+ * providerType: "metronome",
446
446
  * q: "q",
447
447
  * recurringChargesOnly: true,
448
448
  * withOneTimeCharges: true,
@@ -6,7 +6,7 @@ import type * as Schematic from "../../../../index";
6
6
  * isActive: true,
7
7
  * name: "name",
8
8
  * priceUsageType: "licensed",
9
- * providerType: "orb",
9
+ * providerType: "metronome",
10
10
  * q: "q",
11
11
  * recurringChargesOnly: true,
12
12
  * withOneTimeCharges: true,
@@ -4,7 +4,7 @@ import type * as Schematic from "../../../../index";
4
4
  * {
5
5
  * companyIds: ["company_ids"],
6
6
  * name: "name",
7
- * providerType: "orb",
7
+ * providerType: "metronome",
8
8
  * q: "q",
9
9
  * limit: 1000000,
10
10
  * offset: 1000000
@@ -11,7 +11,7 @@ import type * as Schematic from "../../../../index";
11
11
  * price: 1000000,
12
12
  * productId: "product_id",
13
13
  * productIds: ["product_ids"],
14
- * providerType: "orb",
14
+ * providerType: "metronome",
15
15
  * q: "q",
16
16
  * tiersMode: "graduated",
17
17
  * usageType: "licensed",
@@ -11,7 +11,7 @@ import type * as Schematic from "../../../../index";
11
11
  * price: 1000000,
12
12
  * productId: "product_id",
13
13
  * productIds: ["product_ids"],
14
- * providerType: "orb",
14
+ * providerType: "metronome",
15
15
  * q: "q",
16
16
  * tiersMode: "graduated",
17
17
  * usageType: "licensed",
@@ -6,7 +6,7 @@ import type * as Schematic from "../../../../index";
6
6
  * isActive: true,
7
7
  * name: "name",
8
8
  * priceUsageType: "licensed",
9
- * providerType: "orb",
9
+ * providerType: "metronome",
10
10
  * q: "q",
11
11
  * recurringChargesOnly: true,
12
12
  * withOneTimeCharges: true,
@@ -4,7 +4,7 @@ import type * as Schematic from "../../../../index";
4
4
  * {
5
5
  * companyIds: ["company_ids"],
6
6
  * name: "name",
7
- * providerType: "orb",
7
+ * providerType: "metronome",
8
8
  * q: "q",
9
9
  * limit: 1000000,
10
10
  * offset: 1000000
@@ -34,6 +34,10 @@ export declare class CheckoutClient {
34
34
  * bundleId: "bundle_id",
35
35
  * quantity: 1000000
36
36
  * }],
37
+ * customFieldValues: [{
38
+ * id: "id",
39
+ * value: "value"
40
+ * }],
37
41
  * newPlanId: "new_plan_id",
38
42
  * newPriceId: "new_price_id",
39
43
  * payInAdvance: [{
@@ -86,6 +90,10 @@ export declare class CheckoutClient {
86
90
  * bundleId: "bundle_id",
87
91
  * quantity: 1000000
88
92
  * }],
93
+ * customFieldValues: [{
94
+ * id: "id",
95
+ * value: "value"
96
+ * }],
89
97
  * newPlanId: "new_plan_id",
90
98
  * newPriceId: "new_price_id",
91
99
  * payInAdvance: [{
@@ -117,6 +125,10 @@ export declare class CheckoutClient {
117
125
  * bundleId: "bundle_id",
118
126
  * quantity: 1000000
119
127
  * }],
128
+ * customFieldValues: [{
129
+ * id: "id",
130
+ * value: "value"
131
+ * }],
120
132
  * payInAdvanceEntitlements: [{
121
133
  * priceId: "price_id",
122
134
  * quantity: 1000000
@@ -145,6 +157,10 @@ export declare class CheckoutClient {
145
157
  * bundleId: "bundle_id",
146
158
  * quantity: 1000000
147
159
  * }],
160
+ * customFieldValues: [{
161
+ * id: "id",
162
+ * value: "value"
163
+ * }],
148
164
  * payInAdvanceEntitlements: [{
149
165
  * priceId: "price_id",
150
166
  * quantity: 1000000
@@ -181,7 +181,7 @@ export declare class EntitlementsClient {
181
181
  * companyId: "company_id",
182
182
  * featureIds: ["feature_ids"],
183
183
  * includeUsageAggregation: true,
184
- * managedBy: "orb",
184
+ * managedBy: "metronome",
185
185
  * q: "q",
186
186
  * withoutNegativeEntitlements: true,
187
187
  * limit: 1000000,
@@ -225,7 +225,7 @@ export declare class EntitlementsClient {
225
225
  * companyId: "company_id",
226
226
  * featureIds: ["feature_ids"],
227
227
  * includeUsageAggregation: true,
228
- * managedBy: "orb",
228
+ * managedBy: "metronome",
229
229
  * q: "q",
230
230
  * withoutNegativeEntitlements: true,
231
231
  * limit: 1000000,
@@ -379,7 +379,7 @@ export declare class EntitlementsClient {
379
379
  *
380
380
  * @example
381
381
  * await client.entitlements.upsertPlanEntitlementForBillingProduct({
382
- * billingProvider: "orb",
382
+ * billingProvider: "metronome",
383
383
  * externalResourceId: "external_resource_id",
384
384
  * featureId: "feature_id",
385
385
  * planId: "plan_id",
@@ -5,7 +5,7 @@ import type * as Schematic from "../../../../index";
5
5
  * companyId: "company_id",
6
6
  * featureIds: ["feature_ids"],
7
7
  * includeUsageAggregation: true,
8
- * managedBy: "orb",
8
+ * managedBy: "metronome",
9
9
  * q: "q",
10
10
  * withoutNegativeEntitlements: true,
11
11
  * limit: 1000000,
@@ -2,7 +2,7 @@ import type * as Schematic from "../../../../index";
2
2
  /**
3
3
  * @example
4
4
  * {
5
- * billingProvider: "orb",
5
+ * billingProvider: "metronome",
6
6
  * externalResourceId: "external_resource_id",
7
7
  * featureId: "feature_id",
8
8
  * planId: "plan_id",
@@ -5,7 +5,7 @@ import type * as Schematic from "../../../../index";
5
5
  * companyId: "company_id",
6
6
  * featureIds: ["feature_ids"],
7
7
  * includeUsageAggregation: true,
8
- * managedBy: "orb",
8
+ * managedBy: "metronome",
9
9
  * q: "q",
10
10
  * withoutNegativeEntitlements: true,
11
11
  * limit: 1000000,
@@ -25,7 +25,7 @@ export declare class FeaturesClient {
25
25
  * booleanRequireEvent: true,
26
26
  * featureType: ["boolean"],
27
27
  * ids: ["ids"],
28
- * managedBy: "orb",
28
+ * managedBy: "metronome",
29
29
  * planVersionId: "plan_version_id",
30
30
  * q: "q",
31
31
  * withoutCompanyOverrideFor: "without_company_override_for",
@@ -112,7 +112,7 @@ export declare class FeaturesClient {
112
112
  *
113
113
  * @example
114
114
  * await client.features.upsertFeatureForBillingProduct({
115
- * billingProvider: "orb",
115
+ * billingProvider: "metronome",
116
116
  * description: "description",
117
117
  * externalResourceId: "external_resource_id",
118
118
  * featureType: "boolean",
@@ -136,7 +136,7 @@ export declare class FeaturesClient {
136
136
  * booleanRequireEvent: true,
137
137
  * featureType: ["boolean"],
138
138
  * ids: ["ids"],
139
- * managedBy: "orb",
139
+ * managedBy: "metronome",
140
140
  * planVersionId: "plan_version_id",
141
141
  * q: "q",
142
142
  * withoutCompanyOverrideFor: "without_company_override_for",
@@ -5,7 +5,7 @@ import type * as Schematic from "../../../../index";
5
5
  * booleanRequireEvent: true,
6
6
  * featureType: ["boolean"],
7
7
  * ids: ["ids"],
8
- * managedBy: "orb",
8
+ * managedBy: "metronome",
9
9
  * planVersionId: "plan_version_id",
10
10
  * q: "q",
11
11
  * withoutCompanyOverrideFor: "without_company_override_for",
@@ -2,7 +2,7 @@ import type * as Schematic from "../../../../index";
2
2
  /**
3
3
  * @example
4
4
  * {
5
- * billingProvider: "orb",
5
+ * billingProvider: "metronome",
6
6
  * description: "description",
7
7
  * externalResourceId: "external_resource_id",
8
8
  * featureType: "boolean",
@@ -5,7 +5,7 @@ import type * as Schematic from "../../../../index";
5
5
  * booleanRequireEvent: true,
6
6
  * featureType: ["boolean"],
7
7
  * ids: ["ids"],
8
- * managedBy: "orb",
8
+ * managedBy: "metronome",
9
9
  * planVersionId: "plan_version_id",
10
10
  * q: "q",
11
11
  * withoutCompanyOverrideFor: "without_company_override_for",
@@ -61,6 +61,23 @@ export declare class IntegrationsapiClient {
61
61
  */
62
62
  getIntegrationWebhookUrl(type: string, requestOptions?: IntegrationsapiClient.RequestOptions): core.HttpResponsePromise<Schematic.GetIntegrationWebhookUrlResponse>;
63
63
  private __getIntegrationWebhookUrl;
64
+ /**
65
+ * @param {Schematic.InstallIntegrationRequestBody} request
66
+ * @param {IntegrationsapiClient.RequestOptions} requestOptions - Request-specific configuration.
67
+ *
68
+ * @throws {@link Schematic.BadRequestError}
69
+ * @throws {@link Schematic.UnauthorizedError}
70
+ * @throws {@link Schematic.ForbiddenError}
71
+ * @throws {@link Schematic.NotFoundError}
72
+ * @throws {@link Schematic.InternalServerError}
73
+ *
74
+ * @example
75
+ * await client.integrationsapi.installIntegration({
76
+ * type: "clerk"
77
+ * })
78
+ */
79
+ installIntegration(request: Schematic.InstallIntegrationRequestBody, requestOptions?: IntegrationsapiClient.RequestOptions): core.HttpResponsePromise<Schematic.InstallIntegrationResponse>;
80
+ private __installIntegration;
64
81
  /**
65
82
  * @param {Schematic.StartDataImportRequestBody} request
66
83
  * @param {IntegrationsapiClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -87,10 +104,44 @@ export declare class IntegrationsapiClient {
87
104
  * @throws {@link Schematic.InternalServerError}
88
105
  *
89
106
  * @example
90
- * await client.integrationsapi.loadSampleDataSetV2()
107
+ * await client.integrationsapi.loadSampleDataSet()
108
+ */
109
+ loadSampleDataSet(requestOptions?: IntegrationsapiClient.RequestOptions): core.HttpResponsePromise<Schematic.LoadSampleDataSetResponse>;
110
+ private __loadSampleDataSet;
111
+ /**
112
+ * @param {Schematic.InstallIntegrationRequestBody} request
113
+ * @param {IntegrationsapiClient.RequestOptions} requestOptions - Request-specific configuration.
114
+ *
115
+ * @throws {@link Schematic.BadRequestError}
116
+ * @throws {@link Schematic.UnauthorizedError}
117
+ * @throws {@link Schematic.ForbiddenError}
118
+ * @throws {@link Schematic.NotFoundError}
119
+ * @throws {@link Schematic.InternalServerError}
120
+ *
121
+ * @example
122
+ * await client.integrationsapi.assumeStripeInstalled({
123
+ * type: "clerk"
124
+ * })
125
+ */
126
+ assumeStripeInstalled(request: Schematic.InstallIntegrationRequestBody, requestOptions?: IntegrationsapiClient.RequestOptions): core.HttpResponsePromise<Schematic.AssumeStripeInstalledResponse>;
127
+ private __assumeStripeInstalled;
128
+ /**
129
+ * @param {Schematic.InstallIntegrationRequestBody} request
130
+ * @param {IntegrationsapiClient.RequestOptions} requestOptions - Request-specific configuration.
131
+ *
132
+ * @throws {@link Schematic.BadRequestError}
133
+ * @throws {@link Schematic.UnauthorizedError}
134
+ * @throws {@link Schematic.ForbiddenError}
135
+ * @throws {@link Schematic.NotFoundError}
136
+ * @throws {@link Schematic.InternalServerError}
137
+ *
138
+ * @example
139
+ * await client.integrationsapi.installStripe({
140
+ * type: "clerk"
141
+ * })
91
142
  */
92
- loadSampleDataSetV2(requestOptions?: IntegrationsapiClient.RequestOptions): core.HttpResponsePromise<Schematic.LoadSampleDataSetV2Response>;
93
- private __loadSampleDataSetV2;
143
+ installStripe(request: Schematic.InstallIntegrationRequestBody, requestOptions?: IntegrationsapiClient.RequestOptions): core.HttpResponsePromise<Schematic.InstallStripeResponse>;
144
+ private __installStripe;
94
145
  /**
95
146
  * @param {string} integration_id - integration_id
96
147
  * @param {IntegrationsapiClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface AssumeStripeInstalledResponse {
3
+ data: Schematic.IntegrationInstallResponseData;
4
+ /** Input parameters */
5
+ params: Record<string, unknown>;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface InstallIntegrationResponse {
3
+ data: Schematic.IntegrationInstallResponseData;
4
+ /** Input parameters */
5
+ params: Record<string, unknown>;
6
+ }
@@ -0,0 +1,6 @@
1
+ import type * as Schematic from "../../../index";
2
+ export interface InstallStripeResponse {
3
+ data: Schematic.IntegrationInstallResponseData;
4
+ /** Input parameters */
5
+ params: Record<string, unknown>;
6
+ }
@@ -1,5 +1,5 @@
1
1
  import type * as Schematic from "../../../index";
2
- export interface LoadSampleDataSetV2Response {
2
+ export interface LoadSampleDataSetResponse {
3
3
  data: Schematic.IntegrationsDataSetResponseData;
4
4
  /** Input parameters */
5
5
  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";
@@ -35,6 +35,7 @@ export interface CreatePlanGroupRequestBody {
35
35
  checkoutCollectAddress: boolean;
36
36
  checkoutCollectEmail: boolean;
37
37
  checkoutCollectPhone: boolean;
38
+ customCheckoutFields?: Schematic.CheckoutFieldInput[];
38
39
  customPlanConfig?: Schematic.CustomPlanConfig;
39
40
  customPlanId?: string;
40
41
  enableTaxCollection: boolean;
@@ -35,6 +35,7 @@ export interface UpdatePlanGroupRequestBody {
35
35
  checkoutCollectAddress: boolean;
36
36
  checkoutCollectEmail: boolean;
37
37
  checkoutCollectPhone: boolean;
38
+ customCheckoutFields?: Schematic.CheckoutFieldInput[];
38
39
  customPlanConfig?: Schematic.CustomPlanConfig;
39
40
  customPlanId?: string;
40
41
  enableTaxCollection: boolean;
@@ -242,7 +242,7 @@ export declare class PlansClient {
242
242
  *
243
243
  * @example
244
244
  * await client.plans.upsertPlanForBillingProduct({
245
- * billingProvider: "orb",
245
+ * billingProvider: "metronome",
246
246
  * description: "description",
247
247
  * externalResourceId: "external_resource_id",
248
248
  * name: "name",
@@ -2,7 +2,7 @@ import type * as Schematic from "../../../../index";
2
2
  /**
3
3
  * @example
4
4
  * {
5
- * billingProvider: "orb",
5
+ * billingProvider: "metronome",
6
6
  * description: "description",
7
7
  * externalResourceId: "external_resource_id",
8
8
  * name: "name",
@@ -2,8 +2,10 @@ import type * as Schematic from "../index";
2
2
  export interface AccountMemberResponseData {
3
3
  createdAt: Date;
4
4
  email?: string;
5
+ firstName?: string;
5
6
  id: string;
6
7
  imageUrl?: string;
8
+ lastName?: string;
7
9
  name?: string;
8
10
  permissions: Record<string, Schematic.AccountMemberPermission[]>;
9
11
  role?: Schematic.AccountMemberRole;
@@ -4,5 +4,6 @@ export declare const BillingCreditGrantReason: {
4
4
  readonly Free: "free";
5
5
  readonly Plan: "plan";
6
6
  readonly Purchased: "purchased";
7
+ readonly Rollover: "rollover";
7
8
  };
8
9
  export type BillingCreditGrantReason = (typeof BillingCreditGrantReason)[keyof typeof BillingCreditGrantReason];
@@ -18,6 +18,10 @@ export interface BillingCreditGrantResponseData {
18
18
  quantityUsed: number;
19
19
  renewalEnabled: boolean;
20
20
  renewalPeriod?: Schematic.BillingPlanCreditGrantResetCadence;
21
+ reserved?: number;
22
+ settled?: number;
23
+ /** For rollover grants, the ID of the source grant that this grant rolled from. */
24
+ sourceGrantId?: string;
21
25
  sourceLabel: string;
22
26
  transfers?: Schematic.CreditTransferResponseData[];
23
27
  updatedAt: Date;
@@ -0,0 +1,6 @@
1
+ export declare const BillingCreditLedgerAuthority: {
2
+ readonly SchematicAuthoritative: "schematic_authoritative";
3
+ readonly ExternalMirror: "external_mirror";
4
+ readonly ExternalRated: "external_rated";
5
+ };
6
+ export type BillingCreditLedgerAuthority = (typeof BillingCreditLedgerAuthority)[keyof typeof BillingCreditLedgerAuthority];
@@ -12,6 +12,7 @@ export interface BillingCreditView {
12
12
  environmentId: string;
13
13
  icon?: string;
14
14
  id: string;
15
+ ledgerAuthority: Schematic.BillingCreditLedgerAuthority;
15
16
  name: string;
16
17
  pluralName?: string;
17
18
  price?: Schematic.BillingPriceView;
@@ -31,5 +31,7 @@ export interface BillingPlanCreditGrantResponseData {
31
31
  resetCadence?: Schematic.BillingPlanCreditGrantResetCadence;
32
32
  resetStart?: Schematic.BillingPlanCreditGrantResetStart;
33
33
  resetType?: Schematic.BillingPlanCreditGrantResetType;
34
+ /** Percentage of unused credits that carry over when this grant resets. Only meaningful when reset_type is plan_period. */
35
+ rolloverPercentage: number;
34
36
  updatedAt: Date;
35
37
  }
@@ -1,4 +1,5 @@
1
1
  export declare const BillingProviderType: {
2
+ readonly Metronome: "metronome";
2
3
  readonly Orb: "orb";
3
4
  readonly Schematic: "schematic";
4
5
  readonly Stripe: "stripe";
@@ -5,6 +5,7 @@ export interface ChangeSubscriptionInternalRequestBody {
5
5
  companyId: string;
6
6
  couponExternalId?: string;
7
7
  creditBundles: Schematic.UpdateCreditBundleRequestBody[];
8
+ customFieldValues: Schematic.CheckoutFieldValue[];
8
9
  newPlanId: string;
9
10
  newPriceId: string;
10
11
  payInAdvance: Schematic.UpdatePayInAdvanceRequestBody[];
@@ -4,6 +4,7 @@ export interface ChangeSubscriptionRequestBody {
4
4
  autoTopupOverrides: Schematic.UpdateAutoTopupOverrideRequestBody[];
5
5
  couponExternalId?: string;
6
6
  creditBundles: Schematic.UpdateCreditBundleRequestBody[];
7
+ customFieldValues: Schematic.CheckoutFieldValue[];
7
8
  newPlanId: string;
8
9
  newPriceId: string;
9
10
  payInAdvance: Schematic.UpdatePayInAdvanceRequestBody[];
@@ -5,6 +5,7 @@ export interface CheckoutDataResponseData {
5
5
  activeUsageBasedEntitlements: Schematic.UsageBasedEntitlementResponseData[];
6
6
  availableCreditBundles: Schematic.BillingCreditBundleResponseData[];
7
7
  company?: Schematic.CompanyDetailResponseData;
8
+ customCheckoutFields: Schematic.CheckoutFieldWithValue[];
8
9
  featureUsage?: Schematic.FeatureUsageDetailResponseData;
9
10
  selectedCreditBundles: Schematic.CreditBundlePurchaseResponseData[];
10
11
  selectedPlan?: Schematic.PlanDetailResponseData;
@@ -0,0 +1,8 @@
1
+ export interface CheckoutFieldInput {
2
+ definitionId?: string;
3
+ helperText?: string;
4
+ id?: string;
5
+ name: string;
6
+ required: boolean;
7
+ stripeMetadataKey: string;
8
+ }
@@ -0,0 +1,12 @@
1
+ export interface CheckoutFieldResponseData {
2
+ createdAt: Date;
3
+ definitionId: string;
4
+ helperText?: string;
5
+ id: string;
6
+ name: string;
7
+ position: number;
8
+ required: boolean;
9
+ stripeMetadataKey: string;
10
+ traitHierarchy: string[];
11
+ updatedAt: Date;
12
+ }
@@ -0,0 +1,4 @@
1
+ export interface CheckoutFieldValue {
2
+ id: string;
3
+ value: string;
4
+ }