@schematichq/schematic-typescript-node 1.5.4 → 1.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. package/dist/Client.d.ts +6 -0
  2. package/dist/api/resources/accounts/client/Client.d.ts +2 -0
  3. package/dist/api/resources/accounts/client/requests/CountAccountMembersRequest.d.ts +4 -0
  4. package/dist/api/resources/accounts/client/requests/ListAccountMembersRequest.d.ts +4 -0
  5. package/dist/api/resources/accounts/types/CountAccountMembersParams.d.ts +3 -0
  6. package/dist/api/resources/accounts/types/ListAccountMembersParams.d.ts +3 -0
  7. package/dist/api/resources/catalogs/client/Client.d.ts +232 -0
  8. package/dist/api/resources/catalogs/client/index.d.ts +1 -0
  9. package/dist/api/resources/catalogs/client/requests/CreateCatalogRequestBody.d.ts +12 -0
  10. package/dist/api/resources/catalogs/client/requests/ListCatalogsRequest.d.ts +18 -0
  11. package/dist/api/resources/catalogs/client/requests/UpdateCatalogConfigurationRequestBody.d.ts +16 -0
  12. package/dist/api/resources/catalogs/client/requests/UpdateCatalogRequestBody.d.ts +9 -0
  13. package/dist/api/resources/catalogs/client/requests/index.d.ts +4 -0
  14. package/dist/api/resources/catalogs/exports.d.ts +2 -0
  15. package/dist/api/resources/catalogs/index.d.ts +2 -0
  16. package/dist/api/resources/catalogs/types/CreateCatalogResponse.d.ts +6 -0
  17. package/dist/api/resources/catalogs/types/DeleteCatalogResponse.d.ts +6 -0
  18. package/dist/api/resources/catalogs/types/GetCatalogResponse.d.ts +6 -0
  19. package/dist/api/resources/catalogs/types/GetConfigurationResponse.d.ts +6 -0
  20. package/dist/api/resources/catalogs/types/GetCreditBundlesInCatalogResponse.d.ts +6 -0
  21. package/dist/api/resources/catalogs/types/GetDerivedFeaturesResponse.d.ts +6 -0
  22. package/dist/api/resources/catalogs/types/GetPlansInCatalogResponse.d.ts +6 -0
  23. package/dist/api/resources/catalogs/types/ListCatalogsParams.d.ts +12 -0
  24. package/dist/api/resources/catalogs/types/ListCatalogsResponse.d.ts +6 -0
  25. package/dist/api/resources/catalogs/types/UpdateCatalogResponse.d.ts +6 -0
  26. package/dist/api/resources/catalogs/types/UpdateConfigurationResponse.d.ts +6 -0
  27. package/dist/api/resources/catalogs/types/index.d.ts +11 -0
  28. package/dist/api/resources/checkout/client/Client.d.ts +35 -0
  29. package/dist/api/resources/checkout/client/requests/UpdateCompanyBillingDetailsRequestBody.d.ts +16 -0
  30. package/dist/api/resources/checkout/client/requests/index.d.ts +1 -0
  31. package/dist/api/resources/checkout/types/GetCompanyBillingDetailsResponse.d.ts +6 -0
  32. package/dist/api/resources/checkout/types/UpdateCompanyBillingDetailsResponse.d.ts +6 -0
  33. package/dist/api/resources/checkout/types/index.d.ts +2 -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/index.d.ts +6 -0
  48. package/dist/api/resources/licenses/client/Client.d.ts +69 -0
  49. package/dist/api/resources/licenses/client/index.d.ts +1 -0
  50. package/dist/api/resources/licenses/client/requests/CountLicensesRequest.d.ts +19 -0
  51. package/dist/api/resources/licenses/client/requests/ListLicensesRequest.d.ts +19 -0
  52. package/dist/api/resources/licenses/client/requests/index.d.ts +2 -0
  53. package/dist/api/resources/licenses/exports.d.ts +2 -0
  54. package/dist/api/resources/licenses/index.d.ts +2 -0
  55. package/dist/api/resources/licenses/types/CountLicensesParams.d.ts +12 -0
  56. package/dist/api/resources/licenses/types/CountLicensesResponse.d.ts +6 -0
  57. package/dist/api/resources/licenses/types/GetSingleLicenseResponse.d.ts +6 -0
  58. package/dist/api/resources/licenses/types/ListLicensesParams.d.ts +12 -0
  59. package/dist/api/resources/licenses/types/ListLicensesResponse.d.ts +6 -0
  60. package/dist/api/resources/licenses/types/index.d.ts +5 -0
  61. package/dist/api/resources/planbundle/client/requests/CreateCustomPlanBundleRequestBody.d.ts +1 -0
  62. package/dist/api/resources/planmigrations/client/Client.d.ts +20 -0
  63. package/dist/api/resources/planmigrations/client/requests/PreviewMigrationRequestBody.d.ts +16 -0
  64. package/dist/api/resources/planmigrations/client/requests/index.d.ts +1 -0
  65. package/dist/api/resources/planmigrations/types/PreviewMigrationResponse.d.ts +6 -0
  66. package/dist/api/resources/planmigrations/types/index.d.ts +1 -0
  67. package/dist/api/types/AuditLogExportMetadata.d.ts +12 -0
  68. package/dist/api/types/BillingCreditGrantZeroedOutReason.d.ts +1 -0
  69. package/dist/api/types/CatalogConfigOrderedBundle.d.ts +3 -0
  70. package/dist/api/types/CatalogConfigOrderedBundleResponseData.d.ts +3 -0
  71. package/dist/api/types/CatalogConfigOrderedEntitlement.d.ts +4 -0
  72. package/dist/api/types/CatalogConfigOrderedEntitlementResponseData.d.ts +4 -0
  73. package/dist/api/types/CatalogConfigOrderedPlan.d.ts +5 -0
  74. package/dist/api/types/CatalogConfigOrderedPlanResponseData.d.ts +5 -0
  75. package/dist/api/types/CatalogConfigurationResponseData.d.ts +14 -0
  76. package/dist/api/types/CatalogCreditBundleIDsResponseData.d.ts +3 -0
  77. package/dist/api/types/CatalogDerivedFeatureResponseData.d.ts +5 -0
  78. package/dist/api/types/CatalogDerivedFeaturesResponseData.d.ts +4 -0
  79. package/dist/api/types/CatalogPlanIDsResponseData.d.ts +3 -0
  80. package/dist/api/types/CatalogResponseData.d.ts +16 -0
  81. package/dist/api/types/CompanyBillingAddressView.d.ts +8 -0
  82. package/dist/api/types/CompanyBillingCheckoutSettings.d.ts +5 -0
  83. package/dist/api/types/CompanyBillingDetailsResponseData.d.ts +8 -0
  84. package/dist/api/types/CompanyBillingDetailsView.d.ts +8 -0
  85. package/dist/api/types/CompanyFeatureUsageExportMetadata.d.ts +36 -0
  86. package/dist/api/types/CompanyPlanDetailResponseData.d.ts +1 -0
  87. package/dist/api/types/ComponentResponseData.d.ts +1 -0
  88. package/dist/api/types/CreateEntitlementInBundleRequestBody.d.ts +1 -0
  89. package/dist/api/types/CreditsAutoTopupSuccess.d.ts +7 -0
  90. package/dist/api/types/CreditsCreditPurchaseSuccess.d.ts +9 -0
  91. package/dist/api/types/CreditsWebhookCompanySummary.d.ts +4 -0
  92. package/dist/api/types/CreditsWebhookCreditSummary.d.ts +4 -0
  93. package/dist/api/types/CustomerBillingAddress.d.ts +8 -0
  94. package/dist/api/types/DataExportMetadata.d.ts +10 -0
  95. package/dist/api/types/DataExportOutputFileType.d.ts +5 -1
  96. package/dist/api/types/DataExportResponseData.d.ts +1 -1
  97. package/dist/api/types/DataExportType.d.ts +5 -1
  98. package/dist/api/types/FeatureDetailResponseData.d.ts +6 -0
  99. package/dist/api/types/FeatureEntitlement.d.ts +2 -0
  100. package/dist/api/types/FeatureInPlanResponseData.d.ts +4 -0
  101. package/dist/api/types/FeatureResponseData.d.ts +4 -0
  102. package/dist/api/types/FeatureType.d.ts +1 -0
  103. package/dist/api/types/FeatureView.d.ts +2 -0
  104. package/dist/api/types/LicenseResponseData.d.ts +6 -0
  105. package/dist/api/types/PlanCatalogMembershipResponseData.d.ts +4 -0
  106. package/dist/api/types/PlanDetailResponseData.d.ts +1 -0
  107. package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +1 -0
  108. package/dist/api/types/PlanVersionMigrationPreviewCompanyResponseData.d.ts +8 -0
  109. package/dist/api/types/PlanVersionMigrationPreviewResponseData.d.ts +4 -0
  110. package/dist/api/types/PlanViewPublicResponseData.d.ts +1 -0
  111. package/dist/api/types/PreviewSubscriptionDiscountResponseData.d.ts +13 -0
  112. package/dist/api/types/PreviewSubscriptionFinanceResponseData.d.ts +2 -0
  113. package/dist/api/types/RulesengineFeatureEntitlement.d.ts +2 -0
  114. package/dist/api/types/RulesengineWarningTier.d.ts +6 -0
  115. package/dist/api/types/UpsertCompanyRequestBody.d.ts +4 -0
  116. package/dist/api/types/WarningTier.d.ts +6 -0
  117. package/dist/api/types/WebhookRequestType.d.ts +2 -0
  118. package/dist/api/types/index.d.ts +31 -0
  119. package/dist/index.js +9 -9
  120. package/dist/serialization/resources/accounts/types/CountAccountMembersParams.d.ts +2 -0
  121. package/dist/serialization/resources/accounts/types/ListAccountMembersParams.d.ts +2 -0
  122. package/dist/serialization/resources/catalogs/client/index.d.ts +1 -0
  123. package/dist/serialization/resources/catalogs/client/requests/CreateCatalogRequestBody.d.ts +11 -0
  124. package/dist/serialization/resources/catalogs/client/requests/UpdateCatalogConfigurationRequestBody.d.ts +19 -0
  125. package/dist/serialization/resources/catalogs/client/requests/UpdateCatalogRequestBody.d.ts +11 -0
  126. package/dist/serialization/resources/catalogs/client/requests/index.d.ts +3 -0
  127. package/dist/serialization/resources/catalogs/index.d.ts +2 -0
  128. package/dist/serialization/resources/catalogs/types/CreateCatalogResponse.d.ts +11 -0
  129. package/dist/serialization/resources/catalogs/types/DeleteCatalogResponse.d.ts +11 -0
  130. package/dist/serialization/resources/catalogs/types/GetCatalogResponse.d.ts +11 -0
  131. package/dist/serialization/resources/catalogs/types/GetConfigurationResponse.d.ts +11 -0
  132. package/dist/serialization/resources/catalogs/types/GetCreditBundlesInCatalogResponse.d.ts +11 -0
  133. package/dist/serialization/resources/catalogs/types/GetDerivedFeaturesResponse.d.ts +11 -0
  134. package/dist/serialization/resources/catalogs/types/GetPlansInCatalogResponse.d.ts +11 -0
  135. package/dist/serialization/resources/catalogs/types/ListCatalogsParams.d.ts +12 -0
  136. package/dist/serialization/resources/catalogs/types/ListCatalogsResponse.d.ts +12 -0
  137. package/dist/serialization/resources/catalogs/types/UpdateCatalogResponse.d.ts +11 -0
  138. package/dist/serialization/resources/catalogs/types/UpdateConfigurationResponse.d.ts +11 -0
  139. package/dist/serialization/resources/catalogs/types/index.d.ts +11 -0
  140. package/dist/serialization/resources/checkout/client/requests/UpdateCompanyBillingDetailsRequestBody.d.ts +14 -0
  141. package/dist/serialization/resources/checkout/client/requests/index.d.ts +1 -0
  142. package/dist/serialization/resources/checkout/types/GetCompanyBillingDetailsResponse.d.ts +11 -0
  143. package/dist/serialization/resources/checkout/types/UpdateCompanyBillingDetailsResponse.d.ts +11 -0
  144. package/dist/serialization/resources/checkout/types/index.d.ts +2 -0
  145. package/dist/serialization/resources/components/client/requests/BindCatalogRequestBody.d.ts +9 -0
  146. package/dist/serialization/resources/components/client/requests/index.d.ts +1 -0
  147. package/dist/serialization/resources/components/types/BindCatalogResponse.d.ts +11 -0
  148. package/dist/serialization/resources/components/types/index.d.ts +1 -0
  149. package/dist/serialization/resources/dataexports/client/requests/CreateDataExportRequestBody.d.ts +6 -1
  150. package/dist/serialization/resources/dataexports/types/GetDataExportResponse.d.ts +11 -0
  151. package/dist/serialization/resources/dataexports/types/ListDataExportsParams.d.ts +14 -0
  152. package/dist/serialization/resources/dataexports/types/ListDataExportsResponse.d.ts +12 -0
  153. package/dist/serialization/resources/dataexports/types/index.d.ts +3 -0
  154. package/dist/serialization/resources/index.d.ts +5 -0
  155. package/dist/serialization/resources/licenses/index.d.ts +1 -0
  156. package/dist/serialization/resources/licenses/types/CountLicensesParams.d.ts +13 -0
  157. package/dist/serialization/resources/licenses/types/CountLicensesResponse.d.ts +12 -0
  158. package/dist/serialization/resources/licenses/types/GetSingleLicenseResponse.d.ts +11 -0
  159. package/dist/serialization/resources/licenses/types/ListLicensesParams.d.ts +13 -0
  160. package/dist/serialization/resources/licenses/types/ListLicensesResponse.d.ts +12 -0
  161. package/dist/serialization/resources/licenses/types/index.d.ts +5 -0
  162. package/dist/serialization/resources/planbundle/client/requests/CreateCustomPlanBundleRequestBody.d.ts +2 -0
  163. package/dist/serialization/resources/planmigrations/client/requests/PreviewMigrationRequestBody.d.ts +13 -0
  164. package/dist/serialization/resources/planmigrations/client/requests/index.d.ts +1 -0
  165. package/dist/serialization/resources/planmigrations/types/PreviewMigrationResponse.d.ts +11 -0
  166. package/dist/serialization/resources/planmigrations/types/index.d.ts +1 -0
  167. package/dist/serialization/types/AuditLogExportMetadata.d.ts +13 -0
  168. package/dist/serialization/types/BillingCreditGrantZeroedOutReason.d.ts +1 -1
  169. package/dist/serialization/types/CatalogConfigOrderedBundle.d.ts +9 -0
  170. package/dist/serialization/types/CatalogConfigOrderedBundleResponseData.d.ts +9 -0
  171. package/dist/serialization/types/CatalogConfigOrderedEntitlement.d.ts +10 -0
  172. package/dist/serialization/types/CatalogConfigOrderedEntitlementResponseData.d.ts +10 -0
  173. package/dist/serialization/types/CatalogConfigOrderedPlan.d.ts +11 -0
  174. package/dist/serialization/types/CatalogConfigOrderedPlanResponseData.d.ts +11 -0
  175. package/dist/serialization/types/CatalogConfigurationResponseData.d.ts +22 -0
  176. package/dist/serialization/types/CatalogCreditBundleIDsResponseData.d.ts +9 -0
  177. package/dist/serialization/types/CatalogDerivedFeatureResponseData.d.ts +11 -0
  178. package/dist/serialization/types/CatalogDerivedFeaturesResponseData.d.ts +10 -0
  179. package/dist/serialization/types/CatalogPlanIDsResponseData.d.ts +9 -0
  180. package/dist/serialization/types/CatalogResponseData.d.ts +22 -0
  181. package/dist/serialization/types/CompanyBillingAddressView.d.ts +14 -0
  182. package/dist/serialization/types/CompanyBillingCheckoutSettings.d.ts +11 -0
  183. package/dist/serialization/types/CompanyBillingDetailsResponseData.d.ts +16 -0
  184. package/dist/serialization/types/CompanyBillingDetailsView.d.ts +16 -0
  185. package/dist/serialization/types/CompanyFeatureUsageExportMetadata.d.ts +25 -0
  186. package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +2 -0
  187. package/dist/serialization/types/ComponentResponseData.d.ts +1 -0
  188. package/dist/serialization/types/CreateEntitlementInBundleRequestBody.d.ts +2 -0
  189. package/dist/serialization/types/CreditsAutoTopupSuccess.d.ts +14 -0
  190. package/dist/serialization/types/CreditsCreditPurchaseSuccess.d.ts +16 -0
  191. package/dist/serialization/types/CreditsWebhookCompanySummary.d.ts +10 -0
  192. package/dist/serialization/types/CreditsWebhookCreditSummary.d.ts +10 -0
  193. package/dist/serialization/types/CustomerBillingAddress.d.ts +14 -0
  194. package/dist/serialization/types/DataExportMetadata.d.ts +15 -0
  195. package/dist/serialization/types/DataExportOutputFileType.d.ts +1 -1
  196. package/dist/serialization/types/DataExportResponseData.d.ts +2 -1
  197. package/dist/serialization/types/DataExportType.d.ts +1 -1
  198. package/dist/serialization/types/FeatureDetailResponseData.d.ts +4 -0
  199. package/dist/serialization/types/FeatureEntitlement.d.ts +2 -0
  200. package/dist/serialization/types/FeatureInPlanResponseData.d.ts +2 -0
  201. package/dist/serialization/types/FeatureResponseData.d.ts +2 -0
  202. package/dist/serialization/types/FeatureType.d.ts +1 -1
  203. package/dist/serialization/types/FeatureView.d.ts +3 -0
  204. package/dist/serialization/types/LicenseResponseData.d.ts +12 -0
  205. package/dist/serialization/types/PlanCatalogMembershipResponseData.d.ts +10 -0
  206. package/dist/serialization/types/PlanDetailResponseData.d.ts +2 -0
  207. package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +2 -0
  208. package/dist/serialization/types/PlanVersionMigrationPreviewCompanyResponseData.d.ts +14 -0
  209. package/dist/serialization/types/PlanVersionMigrationPreviewResponseData.d.ts +10 -0
  210. package/dist/serialization/types/PlanViewPublicResponseData.d.ts +2 -0
  211. package/dist/serialization/types/PreviewSubscriptionDiscountResponseData.d.ts +19 -0
  212. package/dist/serialization/types/PreviewSubscriptionFinanceResponseData.d.ts +3 -0
  213. package/dist/serialization/types/RulesengineFeatureEntitlement.d.ts +2 -0
  214. package/dist/serialization/types/RulesengineWarningTier.d.ts +10 -0
  215. package/dist/serialization/types/UpsertCompanyRequestBody.d.ts +2 -0
  216. package/dist/serialization/types/WarningTier.d.ts +10 -0
  217. package/dist/serialization/types/WebhookRequestType.d.ts +1 -1
  218. package/dist/serialization/types/index.d.ts +31 -0
  219. package/package.json +1 -1
@@ -0,0 +1,36 @@
1
+ export interface CompanyFeatureUsageExportMetadata {
2
+ /** Restrict the export to these Schematic company IDs (starting with 'comp_') */
3
+ companyIds?: string[];
4
+ /** Restrict the export to companies with these billing credit type IDs */
5
+ creditTypeIds?: string[];
6
+ /** Schematic feature IDs (starting with 'feat_') to include as usage columns; at least one is required */
7
+ featureIds: string[];
8
+ /** Restrict the export to companies that do (or do not) have a scheduled downgrade */
9
+ hasScheduledDowngrade?: boolean;
10
+ /** Restrict the export to companies with (or without) a monetized subscription */
11
+ monetizedSubscriptions?: boolean;
12
+ /** Account member emails to notify when the export completes; empty means the artifact is only retrievable via the API */
13
+ notificationEmailRecipientEmailAddresses?: string[];
14
+ /** Restrict the export to companies on this plan ID (starting with 'plan_') */
15
+ planId?: string;
16
+ /** Restrict the export to companies on any of these plan IDs */
17
+ planIds?: string[];
18
+ /** Restrict the export to companies on this plan version ID */
19
+ planVersionId?: string;
20
+ /** Free-text search over company name and keys */
21
+ q?: string;
22
+ /** Restrict the export to companies whose subscription has one of these statuses */
23
+ subscriptionStatuses?: string[];
24
+ /** Restrict the export to companies whose subscription has one of these types */
25
+ subscriptionTypes?: string[];
26
+ /** Restrict the export to companies that have an entitlement for this feature ID */
27
+ withEntitlementFor?: string;
28
+ /** Restrict the export to companies with a subscription */
29
+ withSubscription?: boolean;
30
+ /** Restrict the export to companies without a company-level override for this feature ID */
31
+ withoutFeatureOverrideFor?: string;
32
+ /** Restrict the export to companies without a plan */
33
+ withoutPlan?: boolean;
34
+ /** Restrict the export to companies without a subscription */
35
+ withoutSubscription?: boolean;
36
+ }
@@ -6,6 +6,7 @@ export interface CompanyPlanDetailResponseData {
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
  companyCanTrial: boolean;
11
12
  companyCount: number;
@@ -1,6 +1,7 @@
1
1
  import type * as Schematic from "../index";
2
2
  export interface ComponentResponseData {
3
3
  ast?: Record<string, number>;
4
+ catalogId?: string;
4
5
  createdAt: Date;
5
6
  id: string;
6
7
  name: string;
@@ -31,6 +31,7 @@ export interface CreateEntitlementInBundleRequestBody {
31
31
  valueNumeric?: number;
32
32
  valueTraitId?: string;
33
33
  valueType: Schematic.EntitlementValueType;
34
+ warningTiers?: Schematic.WarningTierRequestBody[];
34
35
  yearlyMeteredPriceId?: string;
35
36
  yearlyPriceTiers?: Schematic.CreatePriceTierRequestBody[];
36
37
  yearlyUnitPrice?: number;
@@ -0,0 +1,7 @@
1
+ import type * as Schematic from "../index";
2
+ export interface CreditsAutoTopupSuccess {
3
+ company?: Schematic.CreditsAutoTopupCompanySummary;
4
+ credit?: Schematic.CreditsAutoTopupCreditSummary;
5
+ grantId: string;
6
+ quantity: number;
7
+ }
@@ -0,0 +1,9 @@
1
+ import type * as Schematic from "../index";
2
+ export interface CreditsCreditPurchaseSuccess {
3
+ bundleId: string;
4
+ bundleName: string;
5
+ company?: Schematic.CreditsWebhookCompanySummary;
6
+ credit?: Schematic.CreditsWebhookCreditSummary;
7
+ grantIds: string[];
8
+ quantity: number;
9
+ }
@@ -0,0 +1,4 @@
1
+ export interface CreditsWebhookCompanySummary {
2
+ id: string;
3
+ name: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ export interface CreditsWebhookCreditSummary {
2
+ id: string;
3
+ name: string;
4
+ }
@@ -0,0 +1,8 @@
1
+ export interface CustomerBillingAddress {
2
+ city: string;
3
+ country: string;
4
+ line1: string;
5
+ line2: string;
6
+ postalCode: string;
7
+ state: string;
8
+ }
@@ -0,0 +1,10 @@
1
+ import type * as Schematic from "../index";
2
+ export type DataExportMetadata = Schematic.DataExportMetadata.AuditLog | Schematic.DataExportMetadata.CompanyFeatureUsage;
3
+ export declare namespace DataExportMetadata {
4
+ interface AuditLog extends Schematic.AuditLogExportMetadata {
5
+ exportType: "audit-log";
6
+ }
7
+ interface CompanyFeatureUsage extends Schematic.CompanyFeatureUsageExportMetadata {
8
+ exportType: "company-feature-usage";
9
+ }
10
+ }
@@ -1 +1,5 @@
1
- export type DataExportOutputFileType = "csv";
1
+ export declare const DataExportOutputFileType: {
2
+ readonly Csv: "csv";
3
+ readonly CsvGz: "csv.gz";
4
+ };
5
+ export type DataExportOutputFileType = (typeof DataExportOutputFileType)[keyof typeof DataExportOutputFileType];
@@ -5,7 +5,7 @@ export interface DataExportResponseData {
5
5
  environmentId: string;
6
6
  exportType: Schematic.DataExportType;
7
7
  id: string;
8
- metadata: string;
8
+ metadata?: Schematic.DataExportMetadata;
9
9
  outputFileType: Schematic.DataExportOutputFileType;
10
10
  status: Schematic.DataExportStatus;
11
11
  updatedAt: Date;
@@ -1 +1,5 @@
1
- export type DataExportType = "company-feature-usage";
1
+ export declare const DataExportType: {
2
+ readonly AuditLog: "audit-log";
3
+ readonly CompanyFeatureUsage: "company-feature-usage";
4
+ };
5
+ export type DataExportType = (typeof DataExportType)[keyof typeof DataExportType];
@@ -1,6 +1,8 @@
1
1
  import type * as Schematic from "../index";
2
2
  export interface FeatureDetailResponseData {
3
3
  billingLinkedResource?: Schematic.BillingLinkedResourceResponseData;
4
+ /** The billing provider product that sells this feature in the current environment. Set for license features once they have been priced in a plan; a feature priced in several environments has a different product in each. */
5
+ billingProduct?: Schematic.BillingProductResponseData;
4
6
  createdAt: Date;
5
7
  description: string;
6
8
  eventSubtype?: string;
@@ -9,6 +11,8 @@ export interface FeatureDetailResponseData {
9
11
  flags: Schematic.FlagDetailResponseData[];
10
12
  icon: string;
11
13
  id: string;
14
+ /** The license sold through this feature. Set only on features of type license, and created automatically with them. */
15
+ licenseId?: string;
12
16
  lifecyclePhase?: Schematic.FeatureLifecyclePhase;
13
17
  maintainer?: Schematic.AccountMemberResponseData;
14
18
  maintainerAccountMemberId?: string;
@@ -19,4 +23,6 @@ export interface FeatureDetailResponseData {
19
23
  trait?: Schematic.EntityTraitDefinitionResponseData;
20
24
  traitId?: string;
21
25
  updatedAt: Date;
26
+ /** Set when the feature carries a pay-in-advance quantity. Provisioned lazily for other feature types, and at creation for license features. */
27
+ usageLimitTraitId?: string;
22
28
  }
@@ -36,4 +36,6 @@ export interface FeatureEntitlement {
36
36
  usage?: number;
37
37
  /** The type of the entitlement value */
38
38
  valueType: Schematic.EntitlementValueType;
39
+ /** Customer-defined usage warning thresholds configured on this entitlement */
40
+ warningTiers?: Schematic.WarningTier[];
39
41
  }
@@ -9,6 +9,8 @@ export interface FeatureInPlanResponseData {
9
9
  flags: Schematic.FlagInPlanResponseData[];
10
10
  icon: string;
11
11
  id: string;
12
+ /** The license sold through this feature. Set only on features of type license, and created automatically with them. */
13
+ licenseId?: string;
12
14
  lifecyclePhase?: Schematic.FeatureLifecyclePhase;
13
15
  maintainerAccountMemberId?: string;
14
16
  name: string;
@@ -18,4 +20,6 @@ export interface FeatureInPlanResponseData {
18
20
  trait?: Schematic.EntityTraitDefinitionResponseData;
19
21
  traitId?: string;
20
22
  updatedAt: Date;
23
+ /** Set when the feature carries a pay-in-advance quantity. Provisioned lazily for other feature types, and at creation for license features. */
24
+ usageLimitTraitId?: string;
21
25
  }
@@ -6,6 +6,8 @@ export interface FeatureResponseData {
6
6
  featureType: Schematic.FeatureType;
7
7
  icon: string;
8
8
  id: string;
9
+ /** The license sold through this feature. Set only on features of type license, and created automatically with them. */
10
+ licenseId?: string;
9
11
  lifecyclePhase?: Schematic.FeatureLifecyclePhase;
10
12
  maintainerAccountMemberId?: string;
11
13
  name: string;
@@ -13,4 +15,6 @@ export interface FeatureResponseData {
13
15
  singularName?: string;
14
16
  traitId?: string;
15
17
  updatedAt: Date;
18
+ /** Set when the feature carries a pay-in-advance quantity. Provisioned lazily for other feature types, and at creation for license features. */
19
+ usageLimitTraitId?: string;
16
20
  }
@@ -1,6 +1,7 @@
1
1
  export declare const FeatureType: {
2
2
  readonly Boolean: "boolean";
3
3
  readonly Event: "event";
4
+ readonly License: "license";
4
5
  readonly Trait: "trait";
5
6
  };
6
7
  export type FeatureType = (typeof FeatureType)[keyof typeof FeatureType];
@@ -2,6 +2,7 @@ import type * as Schematic from "../index";
2
2
  export interface FeatureView {
3
3
  accountId: string;
4
4
  billingLinkedResource?: Schematic.BillingLinkedResourceResponseData;
5
+ billingProduct?: Schematic.BillingProductResponseData;
5
6
  createdAt: Date;
6
7
  description: string;
7
8
  eventSubtype?: string;
@@ -10,6 +11,7 @@ export interface FeatureView {
10
11
  flags: Schematic.FlagView[];
11
12
  icon: string;
12
13
  id: string;
14
+ licenseId?: string;
13
15
  lifecyclePhase?: Schematic.FeatureLifecyclePhase;
14
16
  name: string;
15
17
  plans: Schematic.PreviewObject[];
@@ -0,0 +1,6 @@
1
+ export interface LicenseResponseData {
2
+ createdAt: Date;
3
+ id: string;
4
+ name: string;
5
+ updatedAt: Date;
6
+ }
@@ -0,0 +1,4 @@
1
+ export interface PlanCatalogMembershipResponseData {
2
+ id: string;
3
+ name: string;
4
+ }
@@ -5,6 +5,7 @@ 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;
@@ -6,6 +6,7 @@ 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;
@@ -0,0 +1,8 @@
1
+ export interface PlanVersionMigrationPreviewCompanyResponseData {
2
+ companyId: string;
3
+ hasBillingChanges: boolean;
4
+ hasCustomPricing: boolean;
5
+ note?: string;
6
+ planVersionIdFrom?: string;
7
+ willUpdateSubscription: boolean;
8
+ }
@@ -0,0 +1,4 @@
1
+ import type * as Schematic from "../index";
2
+ export interface PlanVersionMigrationPreviewResponseData {
3
+ companies: Schematic.PlanVersionMigrationPreviewCompanyResponseData[];
4
+ }
@@ -6,6 +6,7 @@ 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;
@@ -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
+ }
@@ -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
+ }
@@ -11,6 +11,7 @@ export declare const WebhookRequestType: {
11
11
  readonly CompanyUpdated: "company.updated";
12
12
  readonly CreditLimitReached: "credit.limit.reached";
13
13
  readonly CreditLimitWarning: "credit.limit.warning";
14
+ readonly CreditPurchaseSuccess: "credit.purchase.success";
14
15
  readonly EntitlementLimitReached: "entitlement.limit.reached";
15
16
  readonly EntitlementLimitWarning: "entitlement.limit.warning";
16
17
  readonly EntitlementSoftLimitReached: "entitlement.soft_limit.reached";
@@ -38,5 +39,6 @@ export declare const WebhookRequestType: {
38
39
  readonly UserUpdated: "user.updated";
39
40
  readonly AutoTopupHardFailure: "auto.topup.hard.failure";
40
41
  readonly AutoTopupRetryExceeded: "auto.topup.retry.exceeded";
42
+ readonly AutoTopupSuccess: "auto.topup.success";
41
43
  };
42
44
  export type WebhookRequestType = (typeof WebhookRequestType)[keyof typeof WebhookRequestType];
@@ -9,6 +9,7 @@ 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";
@@ -59,6 +60,18 @@ export * from "./BillingSubscriptionView";
59
60
  export * from "./BillingTiersMode";
60
61
  export * from "./CaptureRawEvent";
61
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";
62
75
  export * from "./ChangeSubscriptionInternalRequestBody";
63
76
  export * from "./ChangeSubscriptionRequestBody";
64
77
  export * from "./ChargeType";
@@ -74,12 +87,17 @@ export * from "./CheckoutFieldWithValue";
74
87
  export * from "./CheckoutSettingsResponseData";
75
88
  export * from "./CheckoutSubscription";
76
89
  export * from "./ClerkIntegrationConfig";
90
+ export * from "./CompanyBillingAddressView";
91
+ export * from "./CompanyBillingCheckoutSettings";
92
+ export * from "./CompanyBillingDetailsResponseData";
93
+ export * from "./CompanyBillingDetailsView";
77
94
  export * from "./CompanyBillingEntityResponseData";
78
95
  export * from "./CompanyBillingEntitySubscriptionResponseData";
79
96
  export * from "./CompanyCreditBalance";
80
97
  export * from "./CompanyCreditBalanceResponseData";
81
98
  export * from "./CompanyDetailResponseData";
82
99
  export * from "./CompanyEventPeriodMetricsResponseData";
100
+ export * from "./CompanyFeatureUsageExportMetadata";
83
101
  export * from "./CompanyLedgerResponseData";
84
102
  export * from "./CompanyMatchingCriteria";
85
103
  export * from "./CompanyMembershipDetailResponseData";
@@ -145,6 +163,10 @@ export * from "./CreditsAutoTopupCompanySummary";
145
163
  export * from "./CreditsAutoTopupCreditSummary";
146
164
  export * from "./CreditsAutoTopupHardFailure";
147
165
  export * from "./CreditsAutoTopupRetryFailure";
166
+ export * from "./CreditsAutoTopupSuccess";
167
+ export * from "./CreditsCreditPurchaseSuccess";
168
+ export * from "./CreditsWebhookCompanySummary";
169
+ export * from "./CreditsWebhookCreditSummary";
148
170
  export * from "./CreditTransferResponseData";
149
171
  export * from "./CreditTransferView";
150
172
  export * from "./CreditTriggerConfig";
@@ -152,12 +174,14 @@ export * from "./CreditUsage";
152
174
  export * from "./CreditUsageAggregation";
153
175
  export * from "./CreditUsageReason";
154
176
  export * from "./CurrencyPriceRequestBody";
177
+ export * from "./CustomerBillingAddress";
155
178
  export * from "./CustomPlanActivationStrategy";
156
179
  export * from "./CustomPlanBillingResponseData";
157
180
  export * from "./CustomPlanBillingStatus";
158
181
  export * from "./CustomPlanConfig";
159
182
  export * from "./CustomPlanViewConfigResponseData";
160
183
  export * from "./DataEventPayload";
184
+ export * from "./DataExportMetadata";
161
185
  export * from "./DataExportOutputFileType";
162
186
  export * from "./DataExportResponseData";
163
187
  export * from "./DataExportStatus";
@@ -235,6 +259,7 @@ export * from "./InvoiceResponseData";
235
259
  export * from "./InvoiceStatus";
236
260
  export * from "./IssueTemporaryAccessTokenResponseData";
237
261
  export * from "./KeysRequestBody";
262
+ export * from "./LicenseResponseData";
238
263
  export * from "./LimitTimeSeriesPointResponseData";
239
264
  export * from "./ManagePlanPreviewResponseResponseData";
240
265
  export * from "./ManagePlanRequest";
@@ -254,6 +279,7 @@ export * from "./PlanBundleAction";
254
279
  export * from "./PlanBundleCreditGrantRequestBody";
255
280
  export * from "./PlanBundleEntitlementRequestBody";
256
281
  export * from "./PlanBundleResponseData";
282
+ export * from "./PlanCatalogMembershipResponseData";
257
283
  export * from "./PlanChangeAction";
258
284
  export * from "./PlanChangeBasePlanAction";
259
285
  export * from "./PlanChangeResponseData";
@@ -281,6 +307,8 @@ export * from "./PlanTraitResponseData";
281
307
  export * from "./PlanType";
282
308
  export * from "./PlanVersionCompanyMigrationResponseData";
283
309
  export * from "./PlanVersionCompanyMigrationStatus";
310
+ export * from "./PlanVersionMigrationPreviewCompanyResponseData";
311
+ export * from "./PlanVersionMigrationPreviewResponseData";
284
312
  export * from "./PlanVersionMigrationResponseData";
285
313
  export * from "./PlanVersionMigrationStatus";
286
314
  export * from "./PlanVersionMigrationStrategy";
@@ -291,6 +319,7 @@ export * from "./PlanViewPublicResponseData";
291
319
  export * from "./PreviewObject";
292
320
  export * from "./PreviewObjectResponseData";
293
321
  export * from "./PreviewSubscriptionChangeResponseData";
322
+ export * from "./PreviewSubscriptionDiscountResponseData";
294
323
  export * from "./PreviewSubscriptionFinanceResponseData";
295
324
  export * from "./PreviewSubscriptionUpcomingInvoiceLineItems";
296
325
  export * from "./ProrationBehavior";
@@ -327,6 +356,7 @@ export * from "./RulesengineTrait";
327
356
  export * from "./RulesengineTraitDefinition";
328
357
  export * from "./RulesengineTraitDefinitionComparableType";
329
358
  export * from "./RulesengineUser";
359
+ export * from "./RulesengineWarningTier";
330
360
  export * from "./RuleType";
331
361
  export * from "./RuleView";
332
362
  export * from "./ScheduledCheckoutResponseData";
@@ -371,6 +401,7 @@ export * from "./UsageBasedEntitlementResponseData";
371
401
  export * from "./UsageTimeSeriesPointResponseData";
372
402
  export * from "./UserDetailResponseData";
373
403
  export * from "./UserResponseData";
404
+ export * from "./WarningTier";
374
405
  export * from "./WarningTierRequestBody";
375
406
  export * from "./WarningTierResponseData";
376
407
  export * from "./WebFeatureUsageWebhookOutput";