@schematichq/schematic-typescript-node 1.5.3 → 1.5.5

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 (212) hide show
  1. package/dist/Client.d.ts +3 -0
  2. package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +1 -0
  3. package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +2 -0
  4. package/dist/api/resources/catalogs/client/Client.d.ts +232 -0
  5. package/dist/api/resources/catalogs/client/index.d.ts +1 -0
  6. package/dist/api/resources/catalogs/client/requests/CreateCatalogRequestBody.d.ts +12 -0
  7. package/dist/api/resources/catalogs/client/requests/ListCatalogsRequest.d.ts +18 -0
  8. package/dist/api/resources/catalogs/client/requests/UpdateCatalogConfigurationRequestBody.d.ts +16 -0
  9. package/dist/api/resources/catalogs/client/requests/UpdateCatalogRequestBody.d.ts +9 -0
  10. package/dist/api/resources/catalogs/client/requests/index.d.ts +4 -0
  11. package/dist/api/resources/catalogs/exports.d.ts +2 -0
  12. package/dist/api/resources/catalogs/index.d.ts +2 -0
  13. package/dist/api/resources/catalogs/types/CreateCatalogResponse.d.ts +6 -0
  14. package/dist/api/resources/catalogs/types/DeleteCatalogResponse.d.ts +6 -0
  15. package/dist/api/resources/catalogs/types/GetCatalogResponse.d.ts +6 -0
  16. package/dist/api/resources/catalogs/types/GetConfigurationResponse.d.ts +6 -0
  17. package/dist/api/resources/catalogs/types/GetCreditBundlesInCatalogResponse.d.ts +6 -0
  18. package/dist/api/resources/catalogs/types/GetDerivedFeaturesResponse.d.ts +6 -0
  19. package/dist/api/resources/catalogs/types/GetPlansInCatalogResponse.d.ts +6 -0
  20. package/dist/api/resources/catalogs/types/ListCatalogsParams.d.ts +12 -0
  21. package/dist/api/resources/catalogs/types/ListCatalogsResponse.d.ts +6 -0
  22. package/dist/api/resources/catalogs/types/UpdateCatalogResponse.d.ts +6 -0
  23. package/dist/api/resources/catalogs/types/UpdateConfigurationResponse.d.ts +6 -0
  24. package/dist/api/resources/catalogs/types/index.d.ts +11 -0
  25. package/dist/api/resources/companies/client/Client.d.ts +34 -0
  26. package/dist/api/resources/companies/client/requests/GetBillingEntityChildSubscriptionsRequest.d.ts +9 -0
  27. package/dist/api/resources/companies/client/requests/GetCompanyBillingEntityRequest.d.ts +9 -0
  28. package/dist/api/resources/companies/client/requests/index.d.ts +2 -0
  29. package/dist/api/resources/companies/types/GetBillingEntityChildSubscriptionsParams.d.ts +6 -0
  30. package/dist/api/resources/companies/types/GetBillingEntityChildSubscriptionsResponse.d.ts +6 -0
  31. package/dist/api/resources/companies/types/GetCompanyBillingEntityParams.d.ts +6 -0
  32. package/dist/api/resources/companies/types/GetCompanyBillingEntityResponse.d.ts +6 -0
  33. package/dist/api/resources/companies/types/index.d.ts +4 -0
  34. package/dist/api/resources/components/client/Client.d.ts +16 -0
  35. package/dist/api/resources/components/client/requests/BindCatalogRequestBody.d.ts +7 -0
  36. package/dist/api/resources/components/client/requests/index.d.ts +1 -0
  37. package/dist/api/resources/components/types/BindCatalogResponse.d.ts +6 -0
  38. package/dist/api/resources/components/types/index.d.ts +1 -0
  39. package/dist/api/resources/dataexports/client/Client.d.ts +36 -1
  40. package/dist/api/resources/dataexports/client/requests/CreateDataExportRequestBody.d.ts +6 -2
  41. package/dist/api/resources/dataexports/client/requests/ListDataExportsRequest.d.ts +18 -0
  42. package/dist/api/resources/dataexports/client/requests/index.d.ts +1 -0
  43. package/dist/api/resources/dataexports/types/GetDataExportResponse.d.ts +6 -0
  44. package/dist/api/resources/dataexports/types/ListDataExportsParams.d.ts +12 -0
  45. package/dist/api/resources/dataexports/types/ListDataExportsResponse.d.ts +6 -0
  46. package/dist/api/resources/dataexports/types/index.d.ts +3 -0
  47. package/dist/api/resources/entitlements/client/requests/CreateBillingLinkedPlanEntitlementRequestBody.d.ts +1 -0
  48. package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -0
  49. package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -0
  50. package/dist/api/resources/index.d.ts +3 -0
  51. package/dist/api/resources/planbundle/client/requests/CreateCustomPlanBundleRequestBody.d.ts +1 -0
  52. package/dist/api/resources/planbundle/client/requests/CreatePlanBundleRequestBody.d.ts +0 -1
  53. package/dist/api/resources/planbundle/client/requests/UpdatePlanBundleRequestBody.d.ts +0 -1
  54. package/dist/api/types/AccountMemberPermission.d.ts +1 -0
  55. package/dist/api/types/AuditLogExportMetadata.d.ts +12 -0
  56. package/dist/api/types/BillingCreditAutoTopupAvailability.d.ts +6 -0
  57. package/dist/api/types/BillingCreditGrantZeroedOutReason.d.ts +2 -0
  58. package/dist/api/types/BillingPlanCreditGrantResetCadence.d.ts +2 -0
  59. package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +5 -0
  60. package/dist/api/types/CatalogConfigOrderedBundle.d.ts +3 -0
  61. package/dist/api/types/CatalogConfigOrderedBundleResponseData.d.ts +3 -0
  62. package/dist/api/types/CatalogConfigOrderedEntitlement.d.ts +4 -0
  63. package/dist/api/types/CatalogConfigOrderedEntitlementResponseData.d.ts +4 -0
  64. package/dist/api/types/CatalogConfigOrderedPlan.d.ts +5 -0
  65. package/dist/api/types/CatalogConfigOrderedPlanResponseData.d.ts +5 -0
  66. package/dist/api/types/CatalogConfigurationResponseData.d.ts +14 -0
  67. package/dist/api/types/CatalogCreditBundleIDsResponseData.d.ts +3 -0
  68. package/dist/api/types/CatalogDerivedFeatureResponseData.d.ts +5 -0
  69. package/dist/api/types/CatalogDerivedFeaturesResponseData.d.ts +4 -0
  70. package/dist/api/types/CatalogPlanIDsResponseData.d.ts +3 -0
  71. package/dist/api/types/CatalogResponseData.d.ts +16 -0
  72. package/dist/api/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -0
  73. package/dist/api/types/ChangeSubscriptionRequestBody.d.ts +1 -0
  74. package/dist/api/types/CompanyBillingEntityResponseData.d.ts +5 -0
  75. package/dist/api/types/CompanyBillingEntitySubscriptionResponseData.d.ts +21 -0
  76. package/dist/api/types/CompanyFeatureUsageExportMetadata.d.ts +36 -0
  77. package/dist/api/types/CompanyPlanCreditGrantView.d.ts +2 -0
  78. package/dist/api/types/CompanyPlanDetailResponseData.d.ts +3 -0
  79. package/dist/api/types/ComponentResponseData.d.ts +1 -0
  80. package/dist/api/types/CreateBillingPlanCreditGrantRequestBody.d.ts +2 -0
  81. package/dist/api/types/DataExportMetadata.d.ts +10 -0
  82. package/dist/api/types/DataExportOutputFileType.d.ts +5 -1
  83. package/dist/api/types/DataExportResponseData.d.ts +1 -1
  84. package/dist/api/types/DataExportType.d.ts +5 -1
  85. package/dist/api/types/EventBody.d.ts +1 -1
  86. package/dist/api/types/EventBodyInference.d.ts +30 -0
  87. package/dist/api/types/EventType.d.ts +1 -0
  88. package/dist/api/types/FeatureEntitlement.d.ts +2 -0
  89. package/dist/api/types/IntegrationsListResponseData.d.ts +1 -0
  90. package/dist/api/types/InvoiceRequestBody.d.ts +2 -0
  91. package/dist/api/types/InvoiceResponseData.d.ts +2 -0
  92. package/dist/api/types/ManagePlanRequest.d.ts +2 -0
  93. package/dist/api/types/MetronomeIntegrationConfig.d.ts +4 -1
  94. package/dist/api/types/PlanBundleResponseData.d.ts +0 -1
  95. package/dist/api/types/PlanCatalogMembershipResponseData.d.ts +4 -0
  96. package/dist/api/types/PlanCreditGrantView.d.ts +2 -0
  97. package/dist/api/types/PlanDetailResponseData.d.ts +3 -0
  98. package/dist/api/types/PlanEntitlementResponseData.d.ts +1 -0
  99. package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +3 -0
  100. package/dist/api/types/PlanViewPublicResponseData.d.ts +3 -0
  101. package/dist/api/types/PreviewSubscriptionDiscountResponseData.d.ts +13 -0
  102. package/dist/api/types/PreviewSubscriptionFinanceResponseData.d.ts +2 -0
  103. package/dist/api/types/RulesengineFeatureEntitlement.d.ts +2 -0
  104. package/dist/api/types/RulesengineWarningTier.d.ts +6 -0
  105. package/dist/api/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +2 -0
  106. package/dist/api/types/UpsertCompanyRequestBody.d.ts +4 -0
  107. package/dist/api/types/WarningTier.d.ts +6 -0
  108. package/dist/api/types/WarningTierRequestBody.d.ts +4 -0
  109. package/dist/api/types/WarningTierResponseData.d.ts +5 -0
  110. package/dist/api/types/index.d.ts +25 -0
  111. package/dist/index.js +9 -9
  112. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +1 -0
  113. package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +2 -0
  114. package/dist/serialization/resources/catalogs/client/index.d.ts +1 -0
  115. package/dist/serialization/resources/catalogs/client/requests/CreateCatalogRequestBody.d.ts +11 -0
  116. package/dist/serialization/resources/catalogs/client/requests/UpdateCatalogConfigurationRequestBody.d.ts +19 -0
  117. package/dist/serialization/resources/catalogs/client/requests/UpdateCatalogRequestBody.d.ts +11 -0
  118. package/dist/serialization/resources/catalogs/client/requests/index.d.ts +3 -0
  119. package/dist/serialization/resources/catalogs/index.d.ts +2 -0
  120. package/dist/serialization/resources/catalogs/types/CreateCatalogResponse.d.ts +11 -0
  121. package/dist/serialization/resources/catalogs/types/DeleteCatalogResponse.d.ts +11 -0
  122. package/dist/serialization/resources/catalogs/types/GetCatalogResponse.d.ts +11 -0
  123. package/dist/serialization/resources/catalogs/types/GetConfigurationResponse.d.ts +11 -0
  124. package/dist/serialization/resources/catalogs/types/GetCreditBundlesInCatalogResponse.d.ts +11 -0
  125. package/dist/serialization/resources/catalogs/types/GetDerivedFeaturesResponse.d.ts +11 -0
  126. package/dist/serialization/resources/catalogs/types/GetPlansInCatalogResponse.d.ts +11 -0
  127. package/dist/serialization/resources/catalogs/types/ListCatalogsParams.d.ts +12 -0
  128. package/dist/serialization/resources/catalogs/types/ListCatalogsResponse.d.ts +12 -0
  129. package/dist/serialization/resources/catalogs/types/UpdateCatalogResponse.d.ts +11 -0
  130. package/dist/serialization/resources/catalogs/types/UpdateConfigurationResponse.d.ts +11 -0
  131. package/dist/serialization/resources/catalogs/types/index.d.ts +11 -0
  132. package/dist/serialization/resources/companies/types/GetBillingEntityChildSubscriptionsParams.d.ts +9 -0
  133. package/dist/serialization/resources/companies/types/GetBillingEntityChildSubscriptionsResponse.d.ts +12 -0
  134. package/dist/serialization/resources/companies/types/GetCompanyBillingEntityParams.d.ts +9 -0
  135. package/dist/serialization/resources/companies/types/GetCompanyBillingEntityResponse.d.ts +12 -0
  136. package/dist/serialization/resources/companies/types/index.d.ts +4 -0
  137. package/dist/serialization/resources/components/client/requests/BindCatalogRequestBody.d.ts +9 -0
  138. package/dist/serialization/resources/components/client/requests/index.d.ts +1 -0
  139. package/dist/serialization/resources/components/types/BindCatalogResponse.d.ts +11 -0
  140. package/dist/serialization/resources/components/types/index.d.ts +1 -0
  141. package/dist/serialization/resources/dataexports/client/requests/CreateDataExportRequestBody.d.ts +6 -1
  142. package/dist/serialization/resources/dataexports/types/GetDataExportResponse.d.ts +11 -0
  143. package/dist/serialization/resources/dataexports/types/ListDataExportsParams.d.ts +14 -0
  144. package/dist/serialization/resources/dataexports/types/ListDataExportsResponse.d.ts +12 -0
  145. package/dist/serialization/resources/dataexports/types/index.d.ts +3 -0
  146. package/dist/serialization/resources/entitlements/client/requests/CreateBillingLinkedPlanEntitlementRequestBody.d.ts +2 -0
  147. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +2 -0
  148. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +2 -0
  149. package/dist/serialization/resources/index.d.ts +3 -0
  150. package/dist/serialization/resources/planbundle/client/requests/CreateCustomPlanBundleRequestBody.d.ts +2 -0
  151. package/dist/serialization/resources/planbundle/client/requests/CreatePlanBundleRequestBody.d.ts +0 -2
  152. package/dist/serialization/resources/planbundle/client/requests/UpdatePlanBundleRequestBody.d.ts +0 -2
  153. package/dist/serialization/types/AccountMemberPermission.d.ts +1 -1
  154. package/dist/serialization/types/AuditLogExportMetadata.d.ts +13 -0
  155. package/dist/serialization/types/BillingCreditAutoTopupAvailability.d.ts +7 -0
  156. package/dist/serialization/types/BillingCreditGrantZeroedOutReason.d.ts +1 -1
  157. package/dist/serialization/types/BillingPlanCreditGrantResetCadence.d.ts +1 -1
  158. package/dist/serialization/types/BillingPlanCreditGrantResponseData.d.ts +3 -0
  159. package/dist/serialization/types/CatalogConfigOrderedBundle.d.ts +9 -0
  160. package/dist/serialization/types/CatalogConfigOrderedBundleResponseData.d.ts +9 -0
  161. package/dist/serialization/types/CatalogConfigOrderedEntitlement.d.ts +10 -0
  162. package/dist/serialization/types/CatalogConfigOrderedEntitlementResponseData.d.ts +10 -0
  163. package/dist/serialization/types/CatalogConfigOrderedPlan.d.ts +11 -0
  164. package/dist/serialization/types/CatalogConfigOrderedPlanResponseData.d.ts +11 -0
  165. package/dist/serialization/types/CatalogConfigurationResponseData.d.ts +22 -0
  166. package/dist/serialization/types/CatalogCreditBundleIDsResponseData.d.ts +9 -0
  167. package/dist/serialization/types/CatalogDerivedFeatureResponseData.d.ts +11 -0
  168. package/dist/serialization/types/CatalogDerivedFeaturesResponseData.d.ts +10 -0
  169. package/dist/serialization/types/CatalogPlanIDsResponseData.d.ts +9 -0
  170. package/dist/serialization/types/CatalogResponseData.d.ts +22 -0
  171. package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -0
  172. package/dist/serialization/types/ChangeSubscriptionRequestBody.d.ts +1 -0
  173. package/dist/serialization/types/CompanyBillingEntityResponseData.d.ts +11 -0
  174. package/dist/serialization/types/CompanyBillingEntitySubscriptionResponseData.d.ts +32 -0
  175. package/dist/serialization/types/CompanyFeatureUsageExportMetadata.d.ts +25 -0
  176. package/dist/serialization/types/CompanyPlanCreditGrantView.d.ts +3 -0
  177. package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +5 -0
  178. package/dist/serialization/types/ComponentResponseData.d.ts +1 -0
  179. package/dist/serialization/types/CreateBillingPlanCreditGrantRequestBody.d.ts +3 -0
  180. package/dist/serialization/types/DataExportMetadata.d.ts +15 -0
  181. package/dist/serialization/types/DataExportOutputFileType.d.ts +1 -1
  182. package/dist/serialization/types/DataExportResponseData.d.ts +2 -1
  183. package/dist/serialization/types/DataExportType.d.ts +1 -1
  184. package/dist/serialization/types/EventBody.d.ts +2 -1
  185. package/dist/serialization/types/EventBodyInference.d.ts +22 -0
  186. package/dist/serialization/types/EventType.d.ts +1 -1
  187. package/dist/serialization/types/FeatureEntitlement.d.ts +2 -0
  188. package/dist/serialization/types/IntegrationsListResponseData.d.ts +1 -0
  189. package/dist/serialization/types/InvoiceRequestBody.d.ts +2 -0
  190. package/dist/serialization/types/InvoiceResponseData.d.ts +2 -0
  191. package/dist/serialization/types/ManagePlanRequest.d.ts +1 -0
  192. package/dist/serialization/types/MetronomeIntegrationConfig.d.ts +3 -1
  193. package/dist/serialization/types/PlanBundleResponseData.d.ts +0 -2
  194. package/dist/serialization/types/PlanCatalogMembershipResponseData.d.ts +10 -0
  195. package/dist/serialization/types/PlanCreditGrantView.d.ts +3 -0
  196. package/dist/serialization/types/PlanDetailResponseData.d.ts +5 -0
  197. package/dist/serialization/types/PlanEntitlementResponseData.d.ts +2 -0
  198. package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +5 -0
  199. package/dist/serialization/types/PlanViewPublicResponseData.d.ts +5 -0
  200. package/dist/serialization/types/PreviewSubscriptionDiscountResponseData.d.ts +19 -0
  201. package/dist/serialization/types/PreviewSubscriptionFinanceResponseData.d.ts +3 -0
  202. package/dist/serialization/types/RulesengineFeatureEntitlement.d.ts +2 -0
  203. package/dist/serialization/types/RulesengineWarningTier.d.ts +10 -0
  204. package/dist/serialization/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +3 -0
  205. package/dist/serialization/types/UpsertCompanyRequestBody.d.ts +2 -0
  206. package/dist/serialization/types/WarningTier.d.ts +10 -0
  207. package/dist/serialization/types/WarningTierRequestBody.d.ts +10 -0
  208. package/dist/serialization/types/WarningTierResponseData.d.ts +11 -0
  209. package/dist/serialization/types/index.d.ts +25 -0
  210. package/dist/wasm/rulesengine.js +4 -4
  211. package/dist/wasm/rulesengine_bg.wasm.d.ts +1 -0
  212. package/package.json +1 -1
@@ -4,6 +4,8 @@ export interface ManagePlanRequest {
4
4
  basePlanId?: string;
5
5
  basePlanPriceId?: string;
6
6
  basePlanVersionId?: string;
7
+ /** The company that pays for this subscription. Must already have a Stripe customer. Only honored when starting a new subscription. */
8
+ billingEntityId?: string;
7
9
  /** If false, subscription cancels at period end. Only applies when removing all plans. Defaults to true. */
8
10
  cancelImmediately?: boolean;
9
11
  companyId: string;
@@ -1 +1,4 @@
1
- export type MetronomeIntegrationConfig = {};
1
+ export interface MetronomeIntegrationConfig {
2
+ /** Schematic company key used to store the Metronome customer's ingest alias; when unset, imported customers carry only metronome_customer_id */
3
+ externalCustomerIdKey?: string;
4
+ }
@@ -4,5 +4,4 @@ export interface PlanBundleResponseData {
4
4
  creditGrants?: Schematic.BillingPlanCreditGrantResponseData[];
5
5
  entitlements?: Schematic.PlanEntitlementResponseData[];
6
6
  plan?: Schematic.PlanResponseData;
7
- traits?: Schematic.PlanTraitResponseData[];
8
7
  }
@@ -0,0 +1,4 @@
1
+ export interface PlanCatalogMembershipResponseData {
2
+ id: string;
3
+ name: string;
4
+ }
@@ -2,6 +2,7 @@ import type * as Schematic from "../index";
2
2
  export interface PlanCreditGrantView {
3
3
  billingCreditAutoTopupAmount?: number;
4
4
  billingCreditAutoTopupAmountType?: string;
5
+ billingCreditAutoTopupAvailability?: Schematic.BillingCreditAutoTopupAvailability;
5
6
  billingCreditAutoTopupEnabled: boolean;
6
7
  billingCreditAutoTopupExpiryType?: Schematic.BillingCreditExpiryType;
7
8
  billingCreditAutoTopupExpiryUnit?: Schematic.BillingCreditExpiryUnit;
@@ -9,6 +10,7 @@ export interface PlanCreditGrantView {
9
10
  billingCreditAutoTopupSelfService: boolean;
10
11
  billingCreditAutoTopupThresholdCredits?: number;
11
12
  billingCreditAutoTopupThresholdPercent?: number;
13
+ billingCreditCanBuyBundles: boolean;
12
14
  createdAt: Date;
13
15
  credit?: Schematic.BillingCreditView;
14
16
  creditAmount: number;
@@ -5,13 +5,16 @@ export interface PlanDetailResponseData {
5
5
  billingLinkedResource?: Schematic.BillingLinkedResourceResponseData;
6
6
  billingProduct?: Schematic.BillingProductDetailResponseData;
7
7
  billingStrategy: Schematic.BillingStrategy;
8
+ catalogs?: Schematic.PlanCatalogMembershipResponseData[];
8
9
  chargeType: Schematic.ChargeType;
9
10
  companyCount: number;
10
11
  companyId?: string;
12
+ companyLogoUrl?: string;
11
13
  companyName?: string;
12
14
  controlledBy: Schematic.BillingProviderType;
13
15
  copiedFromPlanId?: string;
14
16
  createdAt: Date;
17
+ credits: Schematic.BillingCreditResponseData[];
15
18
  currencyPrices: Schematic.PlanCurrencyPricesResponseData[];
16
19
  description: string;
17
20
  draftVersion?: Schematic.PlanVersionResponseData;
@@ -30,4 +30,5 @@ export interface PlanEntitlementResponseData {
30
30
  valueTrait?: Schematic.EntityTraitDefinitionResponseData;
31
31
  valueTraitId?: string;
32
32
  valueType: Schematic.EntitlementValueType;
33
+ warningTiers: Schematic.WarningTierResponseData[];
33
34
  }
@@ -6,14 +6,17 @@ export interface PlanGroupPlanDetailResponseData {
6
6
  billingLinkedResource?: Schematic.BillingLinkedResourceResponseData;
7
7
  billingProduct?: Schematic.BillingProductDetailResponseData;
8
8
  billingStrategy: Schematic.BillingStrategy;
9
+ catalogs?: Schematic.PlanCatalogMembershipResponseData[];
9
10
  chargeType: Schematic.ChargeType;
10
11
  companyCount: number;
11
12
  companyId?: string;
13
+ companyLogoUrl?: string;
12
14
  companyName?: string;
13
15
  compatiblePlanIds: string[];
14
16
  controlledBy: Schematic.BillingProviderType;
15
17
  copiedFromPlanId?: string;
16
18
  createdAt: Date;
19
+ credits: Schematic.BillingCreditResponseData[];
17
20
  currencyPrices: Schematic.PlanCurrencyPricesResponseData[];
18
21
  customPlanConfig?: Schematic.CustomPlanViewConfigResponseData;
19
22
  description: string;
@@ -6,14 +6,17 @@ export interface PlanViewPublicResponseData {
6
6
  billingLinkedResource?: Schematic.BillingLinkedResourceResponseData;
7
7
  billingProduct?: Schematic.BillingProductDetailResponseData;
8
8
  billingStrategy: Schematic.BillingStrategy;
9
+ catalogs?: Schematic.PlanCatalogMembershipResponseData[];
9
10
  chargeType: Schematic.ChargeType;
10
11
  companyCount: number;
11
12
  companyId?: string;
13
+ companyLogoUrl?: string;
12
14
  companyName?: string;
13
15
  compatiblePlanIds: string[];
14
16
  controlledBy: Schematic.BillingProviderType;
15
17
  copiedFromPlanId?: string;
16
18
  createdAt: Date;
19
+ credits: Schematic.BillingCreditResponseData[];
17
20
  currencyPrices: Schematic.PlanCurrencyPricesResponseData[];
18
21
  custom: boolean;
19
22
  customPlanConfig?: Schematic.CustomPlanConfig;
@@ -0,0 +1,13 @@
1
+ export interface PreviewSubscriptionDiscountResponseData {
2
+ amountOff?: number;
3
+ couponName: string;
4
+ currency?: string;
5
+ customerFacingCode?: string;
6
+ duration: string;
7
+ durationInMonths?: number;
8
+ endedAt?: Date;
9
+ isActive: boolean;
10
+ percentOff?: number;
11
+ promoCodeExternalId?: string;
12
+ startedAt: Date;
13
+ }
@@ -1,9 +1,11 @@
1
1
  import type * as Schematic from "../index";
2
2
  export interface PreviewSubscriptionFinanceResponseData {
3
3
  amountOff: number;
4
+ discounts: Schematic.PreviewSubscriptionDiscountResponseData[];
4
5
  dueNow: number;
5
6
  newCharges: number;
6
7
  percentOff: number;
8
+ periodEnd: Date;
7
9
  periodStart: Date;
8
10
  promoCodeApplied: boolean;
9
11
  proration: number;
@@ -36,4 +36,6 @@ export interface RulesengineFeatureEntitlement {
36
36
  usage?: number;
37
37
  /** The type of the entitlement value */
38
38
  valueType: Schematic.RulesengineEntitlementValueType;
39
+ /** Customer-defined usage warning thresholds configured on this entitlement */
40
+ warningTiers?: Schematic.RulesengineWarningTier[];
39
41
  }
@@ -0,0 +1,6 @@
1
+ export interface RulesengineWarningTier {
2
+ /** A customer-defined identifier for the warning tier */
3
+ key: string;
4
+ /** The warning threshold, in the entitlement's usage units */
5
+ value: number;
6
+ }
@@ -3,6 +3,7 @@ export interface UpdateBillingPlanCreditGrantRequestBody {
3
3
  applyToExisting?: boolean;
4
4
  autoTopupAmount?: number;
5
5
  autoTopupAmountType?: Schematic.CreditAutoTopupAmountType;
6
+ autoTopupAvailability?: Schematic.BillingCreditAutoTopupAvailability;
6
7
  autoTopupEnabled?: boolean;
7
8
  autoTopupExpiryType?: Schematic.BillingCreditExpiryType;
8
9
  autoTopupExpiryUnit?: Schematic.BillingCreditExpiryUnit;
@@ -10,6 +11,7 @@ export interface UpdateBillingPlanCreditGrantRequestBody {
10
11
  autoTopupSelfService?: boolean;
11
12
  autoTopupThresholdCredits?: number;
12
13
  autoTopupThresholdPercent?: number;
14
+ canBuyBundles?: boolean;
13
15
  creditAmount?: number;
14
16
  expiryType?: Schematic.BillingCreditExpiryType;
15
17
  expiryUnit?: Schematic.BillingCreditExpiryUnit;
@@ -1,4 +1,8 @@
1
1
  export interface UpsertCompanyRequestBody {
2
+ /** Assign this base plan when creating the company (starts with plan_). Takes precedence over the environment's initial plan and must be provisionable without a payment method. */
3
+ basePlanId?: string;
4
+ /** The Schematic price to provision for base_plan_id (starts with bilpp_). Required and must be $0 for a billing-linked plan; omit for a plan that is not billing-linked. */
5
+ basePlanPriceId?: string;
2
6
  /** If you know the Schematic ID, you can use that here instead of keys */
3
7
  id?: string;
4
8
  /** See [Key Management](https://docs.schematichq.com/developer_resources/key_management) for more information */
@@ -0,0 +1,6 @@
1
+ export interface WarningTier {
2
+ /** A customer-defined identifier for the warning tier */
3
+ key: string;
4
+ /** The warning threshold, in the entitlement's usage units */
5
+ value: number;
6
+ }
@@ -0,0 +1,4 @@
1
+ export interface WarningTierRequestBody {
2
+ key: string;
3
+ value: number;
4
+ }
@@ -0,0 +1,5 @@
1
+ export interface WarningTierResponseData {
2
+ id: string;
3
+ key: string;
4
+ value: number;
5
+ }
@@ -9,9 +9,11 @@ export * from "./ApiKeyCreateResponseData";
9
9
  export * from "./ApiKeyIntegrationResponseData";
10
10
  export * from "./ApiKeyResponseData";
11
11
  export * from "./ApiKeyScope";
12
+ export * from "./AuditLogExportMetadata";
12
13
  export * from "./AuditLogListResponseData";
13
14
  export * from "./AuditLogResponseData";
14
15
  export * from "./BillingCouponResponseData";
16
+ export * from "./BillingCreditAutoTopupAvailability";
15
17
  export * from "./BillingCreditBundleResponseData";
16
18
  export * from "./BillingCreditBundleStatus";
17
19
  export * from "./BillingCreditBundleType";
@@ -58,6 +60,18 @@ export * from "./BillingSubscriptionView";
58
60
  export * from "./BillingTiersMode";
59
61
  export * from "./CaptureRawEvent";
60
62
  export * from "./CaptureRawEventBatch";
63
+ export * from "./CatalogConfigOrderedBundle";
64
+ export * from "./CatalogConfigOrderedBundleResponseData";
65
+ export * from "./CatalogConfigOrderedEntitlement";
66
+ export * from "./CatalogConfigOrderedEntitlementResponseData";
67
+ export * from "./CatalogConfigOrderedPlan";
68
+ export * from "./CatalogConfigOrderedPlanResponseData";
69
+ export * from "./CatalogConfigurationResponseData";
70
+ export * from "./CatalogCreditBundleIDsResponseData";
71
+ export * from "./CatalogDerivedFeatureResponseData";
72
+ export * from "./CatalogDerivedFeaturesResponseData";
73
+ export * from "./CatalogPlanIDsResponseData";
74
+ export * from "./CatalogResponseData";
61
75
  export * from "./ChangeSubscriptionInternalRequestBody";
62
76
  export * from "./ChangeSubscriptionRequestBody";
63
77
  export * from "./ChargeType";
@@ -73,10 +87,13 @@ export * from "./CheckoutFieldWithValue";
73
87
  export * from "./CheckoutSettingsResponseData";
74
88
  export * from "./CheckoutSubscription";
75
89
  export * from "./ClerkIntegrationConfig";
90
+ export * from "./CompanyBillingEntityResponseData";
91
+ export * from "./CompanyBillingEntitySubscriptionResponseData";
76
92
  export * from "./CompanyCreditBalance";
77
93
  export * from "./CompanyCreditBalanceResponseData";
78
94
  export * from "./CompanyDetailResponseData";
79
95
  export * from "./CompanyEventPeriodMetricsResponseData";
96
+ export * from "./CompanyFeatureUsageExportMetadata";
80
97
  export * from "./CompanyLedgerResponseData";
81
98
  export * from "./CompanyMatchingCriteria";
82
99
  export * from "./CompanyMembershipDetailResponseData";
@@ -155,6 +172,7 @@ export * from "./CustomPlanBillingStatus";
155
172
  export * from "./CustomPlanConfig";
156
173
  export * from "./CustomPlanViewConfigResponseData";
157
174
  export * from "./DataEventPayload";
175
+ export * from "./DataExportMetadata";
158
176
  export * from "./DataExportOutputFileType";
159
177
  export * from "./DataExportResponseData";
160
178
  export * from "./DataExportStatus";
@@ -187,6 +205,7 @@ export * from "./EventBody";
187
205
  export * from "./EventBodyFlagCheck";
188
206
  export * from "./EventBodyIdentify";
189
207
  export * from "./EventBodyIdentifyCompany";
208
+ export * from "./EventBodyInference";
190
209
  export * from "./EventBodyTrack";
191
210
  export * from "./EventDetailResponseData";
192
211
  export * from "./EventResponseData";
@@ -250,6 +269,7 @@ export * from "./PlanBundleAction";
250
269
  export * from "./PlanBundleCreditGrantRequestBody";
251
270
  export * from "./PlanBundleEntitlementRequestBody";
252
271
  export * from "./PlanBundleResponseData";
272
+ export * from "./PlanCatalogMembershipResponseData";
253
273
  export * from "./PlanChangeAction";
254
274
  export * from "./PlanChangeBasePlanAction";
255
275
  export * from "./PlanChangeResponseData";
@@ -287,6 +307,7 @@ export * from "./PlanViewPublicResponseData";
287
307
  export * from "./PreviewObject";
288
308
  export * from "./PreviewObjectResponseData";
289
309
  export * from "./PreviewSubscriptionChangeResponseData";
310
+ export * from "./PreviewSubscriptionDiscountResponseData";
290
311
  export * from "./PreviewSubscriptionFinanceResponseData";
291
312
  export * from "./PreviewSubscriptionUpcomingInvoiceLineItems";
292
313
  export * from "./ProrationBehavior";
@@ -323,6 +344,7 @@ export * from "./RulesengineTrait";
323
344
  export * from "./RulesengineTraitDefinition";
324
345
  export * from "./RulesengineTraitDefinitionComparableType";
325
346
  export * from "./RulesengineUser";
347
+ export * from "./RulesengineWarningTier";
326
348
  export * from "./RuleType";
327
349
  export * from "./RuleView";
328
350
  export * from "./ScheduledCheckoutResponseData";
@@ -367,6 +389,9 @@ export * from "./UsageBasedEntitlementResponseData";
367
389
  export * from "./UsageTimeSeriesPointResponseData";
368
390
  export * from "./UserDetailResponseData";
369
391
  export * from "./UserResponseData";
392
+ export * from "./WarningTier";
393
+ export * from "./WarningTierRequestBody";
394
+ export * from "./WarningTierResponseData";
370
395
  export * from "./WebFeatureUsageWebhookOutput";
371
396
  export * from "./WebhookEventDetailResponseData";
372
397
  export * from "./WebhookEventResponseData";