@schematichq/schematic-typescript-node 1.4.5 → 1.4.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 (239) hide show
  1. package/dist/Client.d.ts +3 -0
  2. package/dist/api/resources/accounts/client/Client.d.ts +33 -0
  3. package/dist/api/resources/accounts/client/requests/ListAccountMembersRequest.d.ts +17 -0
  4. package/dist/api/resources/accounts/client/requests/index.d.ts +1 -0
  5. package/dist/api/resources/accounts/types/GetAccountMemberResponse.d.ts +6 -0
  6. package/dist/api/resources/accounts/types/ListAccountMembersParams.d.ts +12 -0
  7. package/dist/api/resources/accounts/types/ListAccountMembersResponse.d.ts +6 -0
  8. package/dist/api/resources/accounts/types/index.d.ts +3 -0
  9. package/dist/api/resources/billing/client/Client.d.ts +8 -6
  10. package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +1 -1
  11. package/dist/api/resources/billing/client/requests/CountCustomersRequest.d.ts +1 -1
  12. package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +1 -0
  13. package/dist/api/resources/billing/client/requests/CreateMeterRequestBody.d.ts +2 -0
  14. package/dist/api/resources/billing/client/requests/ListBillingPricesRequest.d.ts +4 -1
  15. package/dist/api/resources/billing/client/requests/ListBillingProductPricesRequest.d.ts +4 -1
  16. package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +1 -1
  17. package/dist/api/resources/billing/client/requests/ListCustomersWithSubscriptionsRequest.d.ts +1 -1
  18. package/dist/api/resources/billing/types/ListBillingPricesParams.d.ts +2 -0
  19. package/dist/api/resources/billing/types/ListBillingProductPricesParams.d.ts +2 -0
  20. package/dist/api/resources/companies/client/Client.d.ts +4 -2
  21. package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +3 -0
  22. package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +3 -0
  23. package/dist/api/resources/companies/client/requests/ListPlanChangesRequest.d.ts +5 -4
  24. package/dist/api/resources/companies/types/CountCompaniesParams.d.ts +2 -0
  25. package/dist/api/resources/companies/types/ListCompaniesParams.d.ts +2 -0
  26. package/dist/api/resources/companies/types/ListPlanChangesParams.d.ts +3 -2
  27. package/dist/api/resources/credits/client/Client.d.ts +15 -1
  28. package/dist/api/resources/credits/client/requests/CreateBillingCreditRequestBody.d.ts +1 -0
  29. package/dist/api/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +2 -1
  30. package/dist/api/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +1 -0
  31. package/dist/api/resources/credits/client/requests/UpdateBillingCreditRequestBody.d.ts +1 -0
  32. package/dist/api/resources/credits/client/requests/UpdateCreditBundleDetailsRequestBody.d.ts +1 -0
  33. package/dist/api/resources/credits/types/GetSingleBillingPlanCreditGrantResponse.d.ts +6 -0
  34. package/dist/api/resources/credits/types/index.d.ts +1 -0
  35. package/dist/api/resources/entitlements/client/Client.d.ts +21 -0
  36. package/dist/api/resources/entitlements/client/requests/CreateBillingLinkedPlanEntitlementRequestBody.d.ts +44 -0
  37. package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -0
  38. package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -0
  39. package/dist/api/resources/entitlements/client/requests/index.d.ts +1 -0
  40. package/dist/api/resources/entitlements/types/CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriod.d.ts +7 -0
  41. package/dist/api/resources/entitlements/types/CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +5 -0
  42. package/dist/api/resources/entitlements/types/UpsertPlanEntitlementForBillingProductResponse.d.ts +6 -0
  43. package/dist/api/resources/entitlements/types/index.d.ts +3 -0
  44. package/dist/api/resources/features/client/Client.d.ts +25 -4
  45. package/dist/api/resources/features/client/requests/CountFeaturesRequest.d.ts +8 -8
  46. package/dist/api/resources/features/client/requests/CreateBillingLinkedFeatureRequestBody.d.ts +26 -0
  47. package/dist/api/resources/features/client/requests/ListFeaturesRequest.d.ts +8 -8
  48. package/dist/api/resources/features/client/requests/index.d.ts +1 -0
  49. package/dist/api/resources/features/types/UpsertFeatureForBillingProductResponse.d.ts +6 -0
  50. package/dist/api/resources/features/types/index.d.ts +1 -0
  51. package/dist/api/resources/index.d.ts +2 -0
  52. package/dist/api/resources/integrationsapi/client/Client.d.ts +27 -0
  53. package/dist/api/resources/integrationsapi/client/index.d.ts +1 -0
  54. package/dist/api/resources/integrationsapi/exports.d.ts +2 -0
  55. package/dist/api/resources/integrationsapi/index.d.ts +2 -0
  56. package/dist/api/resources/integrationsapi/types/GetIntegrationWebhookUrlResponse.d.ts +6 -0
  57. package/dist/api/resources/integrationsapi/types/index.d.ts +1 -0
  58. package/dist/api/resources/plans/client/Client.d.ts +92 -3
  59. package/dist/api/resources/plans/client/requests/CountBillingProductMatchCompaniesRequest.d.ts +19 -0
  60. package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +3 -0
  61. package/dist/api/resources/plans/client/requests/CreateBillingLinkedPlanRequestBody.d.ts +19 -0
  62. package/dist/api/resources/plans/client/requests/CreateCustomPlanRequestBody.d.ts +16 -0
  63. package/dist/api/resources/plans/client/requests/DeletePlanVersionRequest.d.ts +9 -0
  64. package/dist/api/resources/plans/client/requests/ListBillingProductMatchCompaniesRequest.d.ts +19 -0
  65. package/dist/api/resources/plans/client/requests/ListPlansRequest.d.ts +3 -0
  66. package/dist/api/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +9 -1
  67. package/dist/api/resources/plans/client/requests/index.d.ts +5 -0
  68. package/dist/api/resources/plans/types/CountBillingProductMatchCompaniesParams.d.ts +13 -0
  69. package/dist/api/resources/plans/types/CountBillingProductMatchCompaniesResponse.d.ts +6 -0
  70. package/dist/api/resources/plans/types/CountPlansParams.d.ts +2 -0
  71. package/dist/api/resources/plans/types/CreateCustomPlanResponse.d.ts +6 -0
  72. package/dist/api/resources/plans/types/DeletePlanVersionParams.d.ts +6 -0
  73. package/dist/api/resources/plans/types/DeletePlanVersionResponse.d.ts +1 -1
  74. package/dist/api/resources/plans/types/ListBillingProductMatchCompaniesParams.d.ts +13 -0
  75. package/dist/api/resources/plans/types/ListBillingProductMatchCompaniesResponse.d.ts +6 -0
  76. package/dist/api/resources/plans/types/ListPlansParams.d.ts +2 -0
  77. package/dist/api/resources/plans/types/UpsertPlanForBillingProductResponse.d.ts +6 -0
  78. package/dist/api/resources/plans/types/index.d.ts +7 -0
  79. package/dist/api/types/AccountMemberPermission.d.ts +18 -0
  80. package/dist/api/types/AccountMemberResponseData.d.ts +11 -0
  81. package/dist/api/types/AccountMemberRole.d.ts +5 -0
  82. package/dist/api/types/BillingCreditBundleResponseData.d.ts +2 -0
  83. package/dist/api/types/BillingCreditBundleView.d.ts +1 -0
  84. package/dist/api/types/BillingCreditGrantReason.d.ts +1 -0
  85. package/dist/api/types/BillingCreditGrantResponseData.d.ts +1 -0
  86. package/dist/api/types/BillingCreditResponseData.d.ts +1 -0
  87. package/dist/api/types/BillingLinkedResourceResponseData.d.ts +6 -0
  88. package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +1 -0
  89. package/dist/api/types/BillingProductPlanResponseData.d.ts +1 -1
  90. package/dist/api/types/BillingProviderType.d.ts +1 -0
  91. package/dist/api/types/CheckoutSubscription.d.ts +1 -0
  92. package/dist/api/types/CompanyDetailResponseData.d.ts +1 -0
  93. package/dist/api/types/CompanyPlanDetailResponseData.d.ts +7 -2
  94. package/dist/api/types/CreateBillingPlanCreditGrantRequestBody.d.ts +1 -0
  95. package/dist/api/types/CreateEntitlementInBundleRequestBody.d.ts +1 -0
  96. package/dist/api/types/CreatePlanRequestBody.d.ts +1 -1
  97. package/dist/api/types/CreditBundleCurrencyPrice.d.ts +5 -0
  98. package/dist/api/types/CreditBundleCurrencyPriceRequestBody.d.ts +5 -0
  99. package/dist/api/types/CreditBundleCurrencyPriceResponseData.d.ts +5 -0
  100. package/dist/api/types/CreditCompanyGrantView.d.ts +1 -0
  101. package/dist/api/types/CreditCurrencyPriceRequestBody.d.ts +5 -0
  102. package/dist/api/types/CreditCurrencyPriceResponseData.d.ts +5 -0
  103. package/dist/api/types/CurrencyPriceRequestBody.d.ts +10 -0
  104. package/dist/api/types/CustomPlanActivationStrategy.d.ts +5 -0
  105. package/dist/api/types/CustomPlanBillingResponseData.d.ts +14 -0
  106. package/dist/api/types/CustomPlanBillingStatus.d.ts +6 -0
  107. package/dist/api/types/DatastreamCompanyPlan.d.ts +2 -0
  108. package/dist/api/types/EntitlementCurrencyPricesResponseData.d.ts +6 -0
  109. package/dist/api/types/FeatureDetailResponseData.d.ts +1 -0
  110. package/dist/api/types/FeatureView.d.ts +1 -0
  111. package/dist/api/types/IntegrationType.d.ts +7 -0
  112. package/dist/api/types/IntegrationWebhookUrlResponseData.d.ts +5 -0
  113. package/dist/api/types/PlanCreditGrantView.d.ts +1 -0
  114. package/dist/api/types/PlanCurrencyPriceRequestBody.d.ts +6 -0
  115. package/dist/api/types/PlanCurrencyPricesResponseData.d.ts +7 -0
  116. package/dist/api/types/PlanDetailResponseData.d.ts +7 -2
  117. package/dist/api/types/PlanEntitlementResponseData.d.ts +2 -0
  118. package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +7 -2
  119. package/dist/api/types/PlanIcon.d.ts +28 -0
  120. package/dist/api/types/PlanResponseData.d.ts +3 -1
  121. package/dist/api/types/PlanVersionResponseData.d.ts +1 -1
  122. package/dist/api/types/PlanViewPublicResponseData.d.ts +7 -2
  123. package/dist/api/types/RulesEngineSchemaVersion.d.ts +1 -1
  124. package/dist/api/types/TrialStatus.d.ts +6 -0
  125. package/dist/api/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +1 -0
  126. package/dist/api/types/UpdatePlanRequestBody.d.ts +2 -1
  127. package/dist/api/types/UpsertBillingProductRequestBody.d.ts +1 -0
  128. package/dist/api/types/UsageBasedEntitlementRequestBody.d.ts +1 -0
  129. package/dist/api/types/WebhookUrl.d.ts +5 -0
  130. package/dist/api/types/index.d.ts +21 -1
  131. package/dist/datastream/merge.d.ts +2 -7
  132. package/dist/datastream/types.d.ts +1 -0
  133. package/dist/index.js +3 -3
  134. package/dist/serialization/resources/accounts/types/GetAccountMemberResponse.d.ts +11 -0
  135. package/dist/serialization/resources/accounts/types/ListAccountMembersParams.d.ts +12 -0
  136. package/dist/serialization/resources/accounts/types/ListAccountMembersResponse.d.ts +12 -0
  137. package/dist/serialization/resources/accounts/types/index.d.ts +3 -0
  138. package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +2 -0
  139. package/dist/serialization/resources/billing/client/requests/CreateMeterRequestBody.d.ts +2 -0
  140. package/dist/serialization/resources/billing/types/ListBillingPricesParams.d.ts +1 -0
  141. package/dist/serialization/resources/billing/types/ListBillingProductPricesParams.d.ts +1 -0
  142. package/dist/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
  143. package/dist/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
  144. package/dist/serialization/resources/companies/types/ListPlanChangesParams.d.ts +4 -2
  145. package/dist/serialization/resources/credits/client/requests/CreateBillingCreditRequestBody.d.ts +2 -0
  146. package/dist/serialization/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +1 -0
  147. package/dist/serialization/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +2 -0
  148. package/dist/serialization/resources/credits/client/requests/UpdateBillingCreditRequestBody.d.ts +2 -0
  149. package/dist/serialization/resources/credits/client/requests/UpdateCreditBundleDetailsRequestBody.d.ts +2 -0
  150. package/dist/serialization/resources/credits/types/GetSingleBillingPlanCreditGrantResponse.d.ts +11 -0
  151. package/dist/serialization/resources/credits/types/index.d.ts +1 -0
  152. package/dist/serialization/resources/entitlements/client/requests/CreateBillingLinkedPlanEntitlementRequestBody.d.ts +46 -0
  153. package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +2 -0
  154. package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +2 -0
  155. package/dist/serialization/resources/entitlements/client/requests/index.d.ts +1 -0
  156. package/dist/serialization/resources/entitlements/types/CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriod.d.ts +7 -0
  157. package/dist/serialization/resources/entitlements/types/CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +7 -0
  158. package/dist/serialization/resources/entitlements/types/UpsertPlanEntitlementForBillingProductResponse.d.ts +11 -0
  159. package/dist/serialization/resources/entitlements/types/index.d.ts +3 -0
  160. package/dist/serialization/resources/features/client/requests/CreateBillingLinkedFeatureRequestBody.d.ts +25 -0
  161. package/dist/serialization/resources/features/client/requests/index.d.ts +1 -0
  162. package/dist/serialization/resources/features/types/UpsertFeatureForBillingProductResponse.d.ts +11 -0
  163. package/dist/serialization/resources/features/types/index.d.ts +1 -0
  164. package/dist/serialization/resources/index.d.ts +2 -0
  165. package/dist/serialization/resources/integrationsapi/index.d.ts +1 -0
  166. package/dist/serialization/resources/integrationsapi/types/GetIntegrationWebhookUrlResponse.d.ts +11 -0
  167. package/dist/serialization/resources/integrationsapi/types/index.d.ts +1 -0
  168. package/dist/serialization/resources/plans/client/requests/CreateBillingLinkedPlanRequestBody.d.ts +17 -0
  169. package/dist/serialization/resources/plans/client/requests/CreateCustomPlanRequestBody.d.ts +14 -0
  170. package/dist/serialization/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +6 -0
  171. package/dist/serialization/resources/plans/client/requests/index.d.ts +2 -0
  172. package/dist/serialization/resources/plans/types/CountBillingProductMatchCompaniesParams.d.ts +12 -0
  173. package/dist/serialization/resources/plans/types/CountBillingProductMatchCompaniesResponse.d.ts +12 -0
  174. package/dist/serialization/resources/plans/types/CountPlansParams.d.ts +1 -0
  175. package/dist/serialization/resources/plans/types/CreateCustomPlanResponse.d.ts +11 -0
  176. package/dist/serialization/resources/plans/types/DeletePlanVersionParams.d.ts +9 -0
  177. package/dist/serialization/resources/plans/types/DeletePlanVersionResponse.d.ts +2 -1
  178. package/dist/serialization/resources/plans/types/ListBillingProductMatchCompaniesParams.d.ts +12 -0
  179. package/dist/serialization/resources/plans/types/ListBillingProductMatchCompaniesResponse.d.ts +12 -0
  180. package/dist/serialization/resources/plans/types/ListPlansParams.d.ts +1 -0
  181. package/dist/serialization/resources/plans/types/UpsertPlanForBillingProductResponse.d.ts +11 -0
  182. package/dist/serialization/resources/plans/types/index.d.ts +7 -0
  183. package/dist/serialization/types/AccountMemberPermission.d.ts +7 -0
  184. package/dist/serialization/types/AccountMemberResponseData.d.ts +18 -0
  185. package/dist/serialization/types/AccountMemberRole.d.ts +7 -0
  186. package/dist/serialization/types/BillingCreditBundleResponseData.d.ts +3 -0
  187. package/dist/serialization/types/BillingCreditBundleView.d.ts +2 -0
  188. package/dist/serialization/types/BillingCreditGrantReason.d.ts +1 -1
  189. package/dist/serialization/types/BillingCreditGrantResponseData.d.ts +1 -0
  190. package/dist/serialization/types/BillingCreditResponseData.d.ts +2 -0
  191. package/dist/serialization/types/BillingLinkedResourceResponseData.d.ts +12 -0
  192. package/dist/serialization/types/BillingPlanCreditGrantResponseData.d.ts +1 -0
  193. package/dist/serialization/types/BillingProductPlanResponseData.d.ts +2 -2
  194. package/dist/serialization/types/BillingProviderType.d.ts +1 -1
  195. package/dist/serialization/types/CheckoutSubscription.d.ts +1 -0
  196. package/dist/serialization/types/CompanyDetailResponseData.d.ts +2 -0
  197. package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +10 -3
  198. package/dist/serialization/types/CreateBillingPlanCreditGrantRequestBody.d.ts +1 -0
  199. package/dist/serialization/types/CreateEntitlementInBundleRequestBody.d.ts +2 -0
  200. package/dist/serialization/types/CreatePlanRequestBody.d.ts +2 -1
  201. package/dist/serialization/types/CreditBundleCurrencyPrice.d.ts +11 -0
  202. package/dist/serialization/types/CreditBundleCurrencyPriceRequestBody.d.ts +11 -0
  203. package/dist/serialization/types/CreditBundleCurrencyPriceResponseData.d.ts +11 -0
  204. package/dist/serialization/types/CreditCompanyGrantView.d.ts +1 -0
  205. package/dist/serialization/types/CreditCurrencyPriceRequestBody.d.ts +11 -0
  206. package/dist/serialization/types/CreditCurrencyPriceResponseData.d.ts +11 -0
  207. package/dist/serialization/types/CurrencyPriceRequestBody.d.ts +16 -0
  208. package/dist/serialization/types/CustomPlanActivationStrategy.d.ts +7 -0
  209. package/dist/serialization/types/CustomPlanBillingResponseData.d.ts +21 -0
  210. package/dist/serialization/types/CustomPlanBillingStatus.d.ts +7 -0
  211. package/dist/serialization/types/DatastreamCompanyPlan.d.ts +2 -0
  212. package/dist/serialization/types/EntitlementCurrencyPricesResponseData.d.ts +12 -0
  213. package/dist/serialization/types/FeatureDetailResponseData.d.ts +2 -0
  214. package/dist/serialization/types/FeatureView.d.ts +2 -0
  215. package/dist/serialization/types/IntegrationType.d.ts +7 -0
  216. package/dist/serialization/types/IntegrationWebhookUrlResponseData.d.ts +11 -0
  217. package/dist/serialization/types/PlanCreditGrantView.d.ts +1 -0
  218. package/dist/serialization/types/PlanCurrencyPriceRequestBody.d.ts +12 -0
  219. package/dist/serialization/types/PlanCurrencyPricesResponseData.d.ts +13 -0
  220. package/dist/serialization/types/PlanDetailResponseData.d.ts +10 -3
  221. package/dist/serialization/types/PlanEntitlementResponseData.d.ts +4 -0
  222. package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +10 -3
  223. package/dist/serialization/types/PlanIcon.d.ts +7 -0
  224. package/dist/serialization/types/PlanResponseData.d.ts +4 -1
  225. package/dist/serialization/types/PlanVersionResponseData.d.ts +2 -1
  226. package/dist/serialization/types/PlanViewPublicResponseData.d.ts +10 -3
  227. package/dist/serialization/types/RulesEngineSchemaVersion.d.ts +1 -1
  228. package/dist/serialization/types/TrialStatus.d.ts +7 -0
  229. package/dist/serialization/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +1 -0
  230. package/dist/serialization/types/UpdatePlanRequestBody.d.ts +2 -1
  231. package/dist/serialization/types/UpsertBillingProductRequestBody.d.ts +2 -0
  232. package/dist/serialization/types/UsageBasedEntitlementRequestBody.d.ts +2 -0
  233. package/dist/serialization/types/WebhookUrl.d.ts +11 -0
  234. package/dist/serialization/types/index.d.ts +21 -1
  235. package/dist/wasm/rulesengine.js +3 -3
  236. package/dist/wasm/rulesengine_bg.wasm +0 -0
  237. package/package.json +7 -7
  238. package/dist/api/types/PlanControlledByType.d.ts +0 -5
  239. package/dist/serialization/types/PlanControlledByType.d.ts +0 -7
@@ -0,0 +1,12 @@
1
+ import type * as Schematic from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { CompanyDetailResponseData } from "../../../types/CompanyDetailResponseData";
5
+ import { ListBillingProductMatchCompaniesParams } from "./ListBillingProductMatchCompaniesParams";
6
+ export declare const ListBillingProductMatchCompaniesResponse: core.serialization.ObjectSchema<serializers.ListBillingProductMatchCompaniesResponse.Raw, Schematic.ListBillingProductMatchCompaniesResponse>;
7
+ export declare namespace ListBillingProductMatchCompaniesResponse {
8
+ interface Raw {
9
+ data: CompanyDetailResponseData.Raw[];
10
+ params: ListBillingProductMatchCompaniesParams.Raw;
11
+ }
12
+ }
@@ -16,6 +16,7 @@ export declare namespace ListPlansParams {
16
16
  offset?: number | null;
17
17
  plan_type?: PlanType.Raw | null;
18
18
  q?: string | null;
19
+ scoped_to_company_id?: string | null;
19
20
  without_entitlement_for?: string | null;
20
21
  without_paid_product_id?: boolean | null;
21
22
  }
@@ -0,0 +1,11 @@
1
+ import type * as Schematic from "../../../../api/index";
2
+ import * as core from "../../../../core";
3
+ import type * as serializers from "../../../index";
4
+ import { PlanDetailResponseData } from "../../../types/PlanDetailResponseData";
5
+ export declare const UpsertPlanForBillingProductResponse: core.serialization.ObjectSchema<serializers.UpsertPlanForBillingProductResponse.Raw, Schematic.UpsertPlanForBillingProductResponse>;
6
+ export declare namespace UpsertPlanForBillingProductResponse {
7
+ interface Raw {
8
+ data: PlanDetailResponseData.Raw;
9
+ params: Record<string, unknown>;
10
+ }
11
+ }
@@ -1,10 +1,16 @@
1
+ export * from "./CountBillingProductMatchCompaniesParams";
2
+ export * from "./CountBillingProductMatchCompaniesResponse";
1
3
  export * from "./CountPlansParams";
2
4
  export * from "./CountPlansResponse";
5
+ export * from "./CreateCustomPlanResponse";
3
6
  export * from "./CreatePlanResponse";
4
7
  export * from "./DeletePlanResponse";
8
+ export * from "./DeletePlanVersionParams";
5
9
  export * from "./DeletePlanVersionResponse";
6
10
  export * from "./GetPlanParams";
7
11
  export * from "./GetPlanResponse";
12
+ export * from "./ListBillingProductMatchCompaniesParams";
13
+ export * from "./ListBillingProductMatchCompaniesResponse";
8
14
  export * from "./ListPlanIssuesParams";
9
15
  export * from "./ListPlanIssuesResponse";
10
16
  export * from "./ListPlansParams";
@@ -13,3 +19,4 @@ export * from "./PublishPlanVersionResponse";
13
19
  export * from "./UpdateCompanyPlansResponse";
14
20
  export * from "./UpdatePlanResponse";
15
21
  export * from "./UpsertBillingProductPlanResponse";
22
+ export * from "./UpsertPlanForBillingProductResponse";
@@ -0,0 +1,7 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ export declare const AccountMemberPermission: core.serialization.Schema<serializers.AccountMemberPermission.Raw, Schematic.AccountMemberPermission>;
5
+ export declare namespace AccountMemberPermission {
6
+ type Raw = "billing_credits_edit" | "companies_edit" | "company_users_edit" | "components_edit" | "data_exports_edit" | "features_edit" | "flag_rules_edit" | "flags_edit" | "overrides_edit" | "plan_billing_edit" | "plan_entitlements_edit" | "plan_versions_edit" | "plans_edit" | "webhooks_edit" | "webhooks_reveal_secret";
7
+ }
@@ -0,0 +1,18 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ import { AccountMemberPermission } from "./AccountMemberPermission";
5
+ import { AccountMemberRole } from "./AccountMemberRole";
6
+ export declare const AccountMemberResponseData: core.serialization.ObjectSchema<serializers.AccountMemberResponseData.Raw, Schematic.AccountMemberResponseData>;
7
+ export declare namespace AccountMemberResponseData {
8
+ interface Raw {
9
+ created_at: string;
10
+ email?: string | null;
11
+ id: string;
12
+ image_url?: string | null;
13
+ name?: string | null;
14
+ permissions: Record<string, AccountMemberPermission.Raw[]>;
15
+ role?: AccountMemberRole.Raw | null;
16
+ updated_at: string;
17
+ }
18
+ }
@@ -0,0 +1,7 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ export declare const AccountMemberRole: core.serialization.Schema<serializers.AccountMemberRole.Raw, Schematic.AccountMemberRole>;
5
+ export declare namespace AccountMemberRole {
6
+ type Raw = "admin" | "member";
7
+ }
@@ -6,15 +6,18 @@ import { BillingCreditBundleType } from "./BillingCreditBundleType";
6
6
  import { BillingCreditExpiryType } from "./BillingCreditExpiryType";
7
7
  import { BillingCreditExpiryUnit } from "./BillingCreditExpiryUnit";
8
8
  import { BillingPriceResponseData } from "./BillingPriceResponseData";
9
+ import { CreditBundleCurrencyPriceResponseData } from "./CreditBundleCurrencyPriceResponseData";
9
10
  export declare const BillingCreditBundleResponseData: core.serialization.ObjectSchema<serializers.BillingCreditBundleResponseData.Raw, Schematic.BillingCreditBundleResponseData>;
10
11
  export declare namespace BillingCreditBundleResponseData {
11
12
  interface Raw {
13
+ billing_invoice_id?: string | null;
12
14
  bundle_type: BillingCreditBundleType.Raw;
13
15
  created_at: string;
14
16
  credit_description?: string | null;
15
17
  credit_icon?: string | null;
16
18
  credit_id: string;
17
19
  credit_name: string;
20
+ currency_prices: CreditBundleCurrencyPriceResponseData.Raw[];
18
21
  expiry_type: BillingCreditExpiryType.Raw;
19
22
  expiry_unit: BillingCreditExpiryUnit.Raw;
20
23
  expiry_unit_count?: number | null;
@@ -6,6 +6,7 @@ import { BillingCreditBundleType } from "./BillingCreditBundleType";
6
6
  import { BillingCreditExpiryType } from "./BillingCreditExpiryType";
7
7
  import { BillingCreditExpiryUnit } from "./BillingCreditExpiryUnit";
8
8
  import { BillingProductPriceResponseData } from "./BillingProductPriceResponseData";
9
+ import { CreditBundleCurrencyPrice } from "./CreditBundleCurrencyPrice";
9
10
  export declare const BillingCreditBundleView: core.serialization.ObjectSchema<serializers.BillingCreditBundleView.Raw, Schematic.BillingCreditBundleView>;
10
11
  export declare namespace BillingCreditBundleView {
11
12
  interface Raw {
@@ -15,6 +16,7 @@ export declare namespace BillingCreditBundleView {
15
16
  credit_icon?: string | null;
16
17
  credit_id: string;
17
18
  credit_name: string;
19
+ currency_prices?: CreditBundleCurrencyPrice.Raw[] | null;
18
20
  expiry_type: BillingCreditExpiryType.Raw;
19
21
  expiry_unit: BillingCreditExpiryUnit.Raw;
20
22
  expiry_unit_count?: number | null;
@@ -3,5 +3,5 @@ import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
4
  export declare const BillingCreditGrantReason: core.serialization.Schema<serializers.BillingCreditGrantReason.Raw, Schematic.BillingCreditGrantReason>;
5
5
  export declare namespace BillingCreditGrantReason {
6
- type Raw = "billing_credit_auto_topup" | "free" | "plan" | "purchased";
6
+ type Raw = "adjustment" | "billing_credit_auto_topup" | "free" | "plan" | "purchased";
7
7
  }
@@ -15,6 +15,7 @@ export declare namespace BillingCreditGrantResponseData {
15
15
  credit_icon?: string | null;
16
16
  credit_id: string;
17
17
  credit_name: string;
18
+ currency?: string | null;
18
19
  expires_at?: string | null;
19
20
  grant_reason: BillingCreditGrantReason.Raw;
20
21
  id: string;
@@ -6,12 +6,14 @@ import { BillingCreditExpiryUnit } from "./BillingCreditExpiryUnit";
6
6
  import { BillingCreditRolloverPolicy } from "./BillingCreditRolloverPolicy";
7
7
  import { BillingPriceResponseData } from "./BillingPriceResponseData";
8
8
  import { BillingProductResponseData } from "./BillingProductResponseData";
9
+ import { CreditCurrencyPriceResponseData } from "./CreditCurrencyPriceResponseData";
9
10
  export declare const BillingCreditResponseData: core.serialization.ObjectSchema<serializers.BillingCreditResponseData.Raw, Schematic.BillingCreditResponseData>;
10
11
  export declare namespace BillingCreditResponseData {
11
12
  interface Raw {
12
13
  burn_strategy: BillingCreditBurnStrategy.Raw;
13
14
  cost_editable: boolean;
14
15
  created_at: string;
16
+ currency_prices: CreditCurrencyPriceResponseData.Raw[];
15
17
  default_expiry_unit: BillingCreditExpiryUnit.Raw;
16
18
  default_expiry_unit_count?: number | null;
17
19
  default_rollover_policy: BillingCreditRolloverPolicy.Raw;
@@ -0,0 +1,12 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ import { BillingProviderType } from "./BillingProviderType";
5
+ export declare const BillingLinkedResourceResponseData: core.serialization.ObjectSchema<serializers.BillingLinkedResourceResponseData.Raw, Schematic.BillingLinkedResourceResponseData>;
6
+ export declare namespace BillingLinkedResourceResponseData {
7
+ interface Raw {
8
+ billing_provider: BillingProviderType.Raw;
9
+ external_resource_id: string;
10
+ originator: BillingProviderType.Raw;
11
+ }
12
+ }
@@ -17,6 +17,7 @@ export declare namespace BillingPlanCreditGrantResponseData {
17
17
  auto_topup_expiry_type?: BillingCreditExpiryType.Raw | null;
18
18
  auto_topup_expiry_unit?: BillingCreditExpiryUnit.Raw | null;
19
19
  auto_topup_expiry_unit_count?: number | null;
20
+ auto_topup_threshold_credits?: number | null;
20
21
  auto_topup_threshold_percent?: number | null;
21
22
  created_at: string;
22
23
  credit?: BillingCreditResponseData.Raw | null;
@@ -1,15 +1,15 @@
1
1
  import type * as Schematic from "../../api/index";
2
2
  import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
+ import { BillingProviderType } from "./BillingProviderType";
4
5
  import { ChargeType } from "./ChargeType";
5
- import { PlanControlledByType } from "./PlanControlledByType";
6
6
  export declare const BillingProductPlanResponseData: core.serialization.ObjectSchema<serializers.BillingProductPlanResponseData.Raw, Schematic.BillingProductPlanResponseData>;
7
7
  export declare namespace BillingProductPlanResponseData {
8
8
  interface Raw {
9
9
  account_id: string;
10
10
  billing_product_id: string;
11
11
  charge_type: ChargeType.Raw;
12
- controlled_by: PlanControlledByType.Raw;
12
+ controlled_by: BillingProviderType.Raw;
13
13
  environment_id: string;
14
14
  is_trialable: boolean;
15
15
  monthly_price_id?: string | null;
@@ -3,5 +3,5 @@ import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
4
  export declare const BillingProviderType: core.serialization.Schema<serializers.BillingProviderType.Raw, Schematic.BillingProviderType>;
5
5
  export declare namespace BillingProviderType {
6
- type Raw = "schematic" | "stripe";
6
+ type Raw = "orb" | "schematic" | "stripe";
7
7
  }
@@ -19,6 +19,7 @@ export declare namespace CheckoutSubscription {
19
19
  expired_at?: string | null;
20
20
  id: string;
21
21
  interval: string;
22
+ invoice_url?: string | null;
22
23
  metadata?: Record<string, unknown> | null;
23
24
  period_end: number;
24
25
  period_start: number;
@@ -4,6 +4,7 @@ import type * as serializers from "../index";
4
4
  import { BillingSubscriptionView } from "./BillingSubscriptionView";
5
5
  import { CompanyEventPeriodMetricsResponseData } from "./CompanyEventPeriodMetricsResponseData";
6
6
  import { CompanyPlanWithBillingSubView } from "./CompanyPlanWithBillingSubView";
7
+ import { CustomPlanBillingResponseData } from "./CustomPlanBillingResponseData";
7
8
  import { EntityKeyDetailResponseData } from "./EntityKeyDetailResponseData";
8
9
  import { EntityTraitDetailResponseData } from "./EntityTraitDetailResponseData";
9
10
  import { FeatureEntitlement } from "./FeatureEntitlement";
@@ -19,6 +20,7 @@ export declare namespace CompanyDetailResponseData {
19
20
  billing_subscription?: BillingSubscriptionView.Raw | null;
20
21
  billing_subscriptions: BillingSubscriptionView.Raw[];
21
22
  created_at: string;
23
+ custom_plan_billings: CustomPlanBillingResponseData.Raw[];
22
24
  default_payment_method?: PaymentMethodResponseData.Raw | null;
23
25
  entitlements: FeatureEntitlement.Raw[];
24
26
  entity_traits: EntityTraitDetailResponseData.Raw[];
@@ -1,6 +1,7 @@
1
1
  import type * as Schematic from "../../api/index";
2
2
  import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
+ import { BillingLinkedResourceResponseData } from "./BillingLinkedResourceResponseData";
4
5
  import { BillingPriceResponseData } from "./BillingPriceResponseData";
5
6
  import { BillingProductDetailResponseData } from "./BillingProductDetailResponseData";
6
7
  import { ChargeType } from "./ChargeType";
@@ -8,9 +9,10 @@ import { CompanyPlanInvalidReason } from "./CompanyPlanInvalidReason";
8
9
  import { CustomPlanConfig } from "./CustomPlanConfig";
9
10
  import { FeatureDetailResponseData } from "./FeatureDetailResponseData";
10
11
  import { FeatureUsageResponseData } from "./FeatureUsageResponseData";
11
- import { PlanControlledByType } from "./PlanControlledByType";
12
12
  import { PlanCreditGrantView } from "./PlanCreditGrantView";
13
+ import { PlanCurrencyPricesResponseData } from "./PlanCurrencyPricesResponseData";
13
14
  import { PlanEntitlementResponseData } from "./PlanEntitlementResponseData";
15
+ import { PlanIcon } from "./PlanIcon";
14
16
  import { PlanType } from "./PlanType";
15
17
  import { PlanVersionResponseData } from "./PlanVersionResponseData";
16
18
  export declare const CompanyPlanDetailResponseData: core.serialization.ObjectSchema<serializers.CompanyPlanDetailResponseData.Raw, Schematic.CompanyPlanDetailResponseData>;
@@ -18,13 +20,18 @@ export declare namespace CompanyPlanDetailResponseData {
18
20
  interface Raw {
19
21
  active_version?: PlanVersionResponseData.Raw | null;
20
22
  audience_type?: string | null;
23
+ billing_linked_resource?: BillingLinkedResourceResponseData.Raw | null;
21
24
  billing_product?: BillingProductDetailResponseData.Raw | null;
22
25
  charge_type: ChargeType.Raw;
23
26
  company_can_trial: boolean;
24
27
  company_count: number;
28
+ company_id?: string | null;
29
+ company_name?: string | null;
25
30
  compatible_plan_ids: string[];
26
- controlled_by: PlanControlledByType.Raw;
31
+ controlled_by: string;
32
+ copied_from_plan_id?: string | null;
27
33
  created_at: string;
34
+ currency_prices: PlanCurrencyPricesResponseData.Raw[];
28
35
  current: boolean;
29
36
  custom: boolean;
30
37
  custom_plan_config?: CustomPlanConfig.Raw | null;
@@ -32,7 +39,7 @@ export declare namespace CompanyPlanDetailResponseData {
32
39
  draft_version?: PlanVersionResponseData.Raw | null;
33
40
  entitlements: PlanEntitlementResponseData.Raw[];
34
41
  features: FeatureDetailResponseData.Raw[];
35
- icon: string;
42
+ icon: PlanIcon.Raw;
36
43
  id: string;
37
44
  included_credit_grants: PlanCreditGrantView.Raw[];
38
45
  invalid_reason?: CompanyPlanInvalidReason.Raw | null;
@@ -17,6 +17,7 @@ export declare namespace CreateBillingPlanCreditGrantRequestBody {
17
17
  auto_topup_expiry_type?: BillingCreditExpiryType.Raw | null;
18
18
  auto_topup_expiry_unit?: BillingCreditExpiryUnit.Raw | null;
19
19
  auto_topup_expiry_unit_count?: number | null;
20
+ auto_topup_threshold_credits?: number | null;
20
21
  auto_topup_threshold_percent?: number | null;
21
22
  credit_amount: number;
22
23
  credit_id: string;
@@ -5,6 +5,7 @@ import { BillingTiersMode } from "./BillingTiersMode";
5
5
  import { CreateEntitlementInBundleRequestBodyMetricPeriod } from "./CreateEntitlementInBundleRequestBodyMetricPeriod";
6
6
  import { CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset } from "./CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset";
7
7
  import { CreatePriceTierRequestBody } from "./CreatePriceTierRequestBody";
8
+ import { CurrencyPriceRequestBody } from "./CurrencyPriceRequestBody";
8
9
  import { EntitlementPriceBehavior } from "./EntitlementPriceBehavior";
9
10
  import { EntitlementValueType } from "./EntitlementValueType";
10
11
  export declare const CreateEntitlementInBundleRequestBody: core.serialization.ObjectSchema<serializers.CreateEntitlementInBundleRequestBody.Raw, Schematic.CreateEntitlementInBundleRequestBody>;
@@ -14,6 +15,7 @@ export declare namespace CreateEntitlementInBundleRequestBody {
14
15
  billing_threshold?: number | null;
15
16
  credit_consumption_rate?: number | null;
16
17
  currency?: string | null;
18
+ currency_prices?: CurrencyPriceRequestBody.Raw[] | null;
17
19
  feature_id: string;
18
20
  metric_period?: CreateEntitlementInBundleRequestBodyMetricPeriod.Raw | null;
19
21
  metric_period_month_reset?: CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset.Raw | null;
@@ -1,12 +1,13 @@
1
1
  import type * as Schematic from "../../api/index";
2
2
  import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
+ import { PlanIcon } from "./PlanIcon";
4
5
  import { PlanType } from "./PlanType";
5
6
  export declare const CreatePlanRequestBody: core.serialization.ObjectSchema<serializers.CreatePlanRequestBody.Raw, Schematic.CreatePlanRequestBody>;
6
7
  export declare namespace CreatePlanRequestBody {
7
8
  interface Raw {
8
9
  description: string;
9
- icon?: string | null;
10
+ icon?: PlanIcon.Raw | null;
10
11
  name: string;
11
12
  plan_type: PlanType.Raw;
12
13
  }
@@ -0,0 +1,11 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ import { BillingPriceView } from "./BillingPriceView";
5
+ export declare const CreditBundleCurrencyPrice: core.serialization.ObjectSchema<serializers.CreditBundleCurrencyPrice.Raw, Schematic.CreditBundleCurrencyPrice>;
6
+ export declare namespace CreditBundleCurrencyPrice {
7
+ interface Raw {
8
+ currency: string;
9
+ price?: BillingPriceView.Raw | null;
10
+ }
11
+ }
@@ -0,0 +1,11 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ export declare const CreditBundleCurrencyPriceRequestBody: core.serialization.ObjectSchema<serializers.CreditBundleCurrencyPriceRequestBody.Raw, Schematic.CreditBundleCurrencyPriceRequestBody>;
5
+ export declare namespace CreditBundleCurrencyPriceRequestBody {
6
+ interface Raw {
7
+ currency: string;
8
+ price_per_unit?: number | null;
9
+ price_per_unit_decimal?: string | null;
10
+ }
11
+ }
@@ -0,0 +1,11 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ import { BillingPriceResponseData } from "./BillingPriceResponseData";
5
+ export declare const CreditBundleCurrencyPriceResponseData: core.serialization.ObjectSchema<serializers.CreditBundleCurrencyPriceResponseData.Raw, Schematic.CreditBundleCurrencyPriceResponseData>;
6
+ export declare namespace CreditBundleCurrencyPriceResponseData {
7
+ interface Raw {
8
+ currency: string;
9
+ price?: BillingPriceResponseData.Raw | null;
10
+ }
11
+ }
@@ -19,6 +19,7 @@ export declare namespace CreditCompanyGrantView {
19
19
  credit_description: string;
20
20
  credit_icon?: string | null;
21
21
  credit_name: string;
22
+ currency?: string | null;
22
23
  exhausted_at?: string | null;
23
24
  expires_at?: string | null;
24
25
  expiry_type?: BillingCreditExpiryType.Raw | null;
@@ -0,0 +1,11 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ export declare const CreditCurrencyPriceRequestBody: core.serialization.ObjectSchema<serializers.CreditCurrencyPriceRequestBody.Raw, Schematic.CreditCurrencyPriceRequestBody>;
5
+ export declare namespace CreditCurrencyPriceRequestBody {
6
+ interface Raw {
7
+ currency: string;
8
+ price_per_unit?: number | null;
9
+ price_per_unit_decimal?: string | null;
10
+ }
11
+ }
@@ -0,0 +1,11 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ import { BillingPriceResponseData } from "./BillingPriceResponseData";
5
+ export declare const CreditCurrencyPriceResponseData: core.serialization.ObjectSchema<serializers.CreditCurrencyPriceResponseData.Raw, Schematic.CreditCurrencyPriceResponseData>;
6
+ export declare namespace CreditCurrencyPriceResponseData {
7
+ interface Raw {
8
+ currency: string;
9
+ price?: BillingPriceResponseData.Raw | null;
10
+ }
11
+ }
@@ -0,0 +1,16 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ import { CreatePriceTierRequestBody } from "./CreatePriceTierRequestBody";
5
+ export declare const CurrencyPriceRequestBody: core.serialization.ObjectSchema<serializers.CurrencyPriceRequestBody.Raw, Schematic.CurrencyPriceRequestBody>;
6
+ export declare namespace CurrencyPriceRequestBody {
7
+ interface Raw {
8
+ currency: string;
9
+ monthly_price_tiers?: CreatePriceTierRequestBody.Raw[] | null;
10
+ monthly_unit_price?: number | null;
11
+ monthly_unit_price_decimal?: string | null;
12
+ yearly_price_tiers?: CreatePriceTierRequestBody.Raw[] | null;
13
+ yearly_unit_price?: number | null;
14
+ yearly_unit_price_decimal?: string | null;
15
+ }
16
+ }
@@ -0,0 +1,7 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ export declare const CustomPlanActivationStrategy: core.serialization.Schema<serializers.CustomPlanActivationStrategy.Raw, Schematic.CustomPlanActivationStrategy>;
5
+ export declare namespace CustomPlanActivationStrategy {
6
+ type Raw = "on_payment" | "on_publish";
7
+ }
@@ -0,0 +1,21 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ import { CustomPlanActivationStrategy } from "./CustomPlanActivationStrategy";
5
+ import { CustomPlanBillingStatus } from "./CustomPlanBillingStatus";
6
+ export declare const CustomPlanBillingResponseData: core.serialization.ObjectSchema<serializers.CustomPlanBillingResponseData.Raw, Schematic.CustomPlanBillingResponseData>;
7
+ export declare namespace CustomPlanBillingResponseData {
8
+ interface Raw {
9
+ activation_strategy: CustomPlanActivationStrategy.Raw;
10
+ company_id: string;
11
+ created_at: string;
12
+ days_until_due: number;
13
+ id: string;
14
+ paid_at?: string | null;
15
+ plan_id: string;
16
+ published_at?: string | null;
17
+ status: CustomPlanBillingStatus.Raw;
18
+ stripe_invoice_url?: string | null;
19
+ updated_at: string;
20
+ }
21
+ }
@@ -0,0 +1,7 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ export declare const CustomPlanBillingStatus: core.serialization.Schema<serializers.CustomPlanBillingStatus.Raw, Schematic.CustomPlanBillingStatus>;
5
+ export declare namespace CustomPlanBillingStatus {
6
+ type Raw = "active" | "paid" | "pending";
7
+ }
@@ -1,11 +1,13 @@
1
1
  import type * as Schematic from "../../api/index";
2
2
  import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
+ import { TrialStatus } from "./TrialStatus";
4
5
  export declare const DatastreamCompanyPlan: core.serialization.ObjectSchema<serializers.DatastreamCompanyPlan.Raw, Schematic.DatastreamCompanyPlan>;
5
6
  export declare namespace DatastreamCompanyPlan {
6
7
  interface Raw {
7
8
  id: string;
8
9
  name: string;
9
10
  trial_end_date?: string | null;
11
+ trial_status?: TrialStatus.Raw | null;
10
12
  }
11
13
  }
@@ -0,0 +1,12 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ import { BillingPriceView } from "./BillingPriceView";
5
+ export declare const EntitlementCurrencyPricesResponseData: core.serialization.ObjectSchema<serializers.EntitlementCurrencyPricesResponseData.Raw, Schematic.EntitlementCurrencyPricesResponseData>;
6
+ export declare namespace EntitlementCurrencyPricesResponseData {
7
+ interface Raw {
8
+ currency: string;
9
+ monthly_price?: BillingPriceView.Raw | null;
10
+ yearly_price?: BillingPriceView.Raw | null;
11
+ }
12
+ }
@@ -1,6 +1,7 @@
1
1
  import type * as Schematic from "../../api/index";
2
2
  import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
+ import { BillingLinkedResourceResponseData } from "./BillingLinkedResourceResponseData";
4
5
  import { EntityTraitDefinitionResponseData } from "./EntityTraitDefinitionResponseData";
5
6
  import { EventSummaryResponseData } from "./EventSummaryResponseData";
6
7
  import { FeatureLifecyclePhase } from "./FeatureLifecyclePhase";
@@ -10,6 +11,7 @@ import { PreviewObject } from "./PreviewObject";
10
11
  export declare const FeatureDetailResponseData: core.serialization.ObjectSchema<serializers.FeatureDetailResponseData.Raw, Schematic.FeatureDetailResponseData>;
11
12
  export declare namespace FeatureDetailResponseData {
12
13
  interface Raw {
14
+ billing_linked_resource?: BillingLinkedResourceResponseData.Raw | null;
13
15
  created_at: string;
14
16
  description: string;
15
17
  event_subtype?: string | null;
@@ -1,6 +1,7 @@
1
1
  import type * as Schematic from "../../api/index";
2
2
  import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
+ import { BillingLinkedResourceResponseData } from "./BillingLinkedResourceResponseData";
4
5
  import { EntityTraitDefinitionResponseData } from "./EntityTraitDefinitionResponseData";
5
6
  import { EventSummaryResponseData } from "./EventSummaryResponseData";
6
7
  import { FeatureLifecyclePhase } from "./FeatureLifecyclePhase";
@@ -11,6 +12,7 @@ export declare const FeatureView: core.serialization.ObjectSchema<serializers.Fe
11
12
  export declare namespace FeatureView {
12
13
  interface Raw {
13
14
  account_id: string;
15
+ billing_linked_resource?: BillingLinkedResourceResponseData.Raw | null;
14
16
  created_at: string;
15
17
  description: string;
16
18
  event_subtype?: string | null;
@@ -0,0 +1,7 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ export declare const IntegrationType: core.serialization.Schema<serializers.IntegrationType.Raw, Schematic.IntegrationType>;
5
+ export declare namespace IntegrationType {
6
+ type Raw = "clerk" | "orb" | "stripe" | "unknown";
7
+ }
@@ -0,0 +1,11 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ import { IntegrationType } from "./IntegrationType";
5
+ export declare const IntegrationWebhookUrlResponseData: core.serialization.ObjectSchema<serializers.IntegrationWebhookUrlResponseData.Raw, Schematic.IntegrationWebhookUrlResponseData>;
6
+ export declare namespace IntegrationWebhookUrlResponseData {
7
+ interface Raw {
8
+ type: IntegrationType.Raw;
9
+ url: string;
10
+ }
11
+ }
@@ -17,6 +17,7 @@ export declare namespace PlanCreditGrantView {
17
17
  billing_credit_auto_topup_expiry_type?: BillingCreditExpiryType.Raw | null;
18
18
  billing_credit_auto_topup_expiry_unit?: BillingCreditExpiryUnit.Raw | null;
19
19
  billing_credit_auto_topup_expiry_unit_count?: number | null;
20
+ billing_credit_auto_topup_threshold_credits?: number | null;
20
21
  billing_credit_auto_topup_threshold_percent?: number | null;
21
22
  created_at: string;
22
23
  credit?: BillingCreditView.Raw | null;
@@ -0,0 +1,12 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ export declare const PlanCurrencyPriceRequestBody: core.serialization.ObjectSchema<serializers.PlanCurrencyPriceRequestBody.Raw, Schematic.PlanCurrencyPriceRequestBody>;
5
+ export declare namespace PlanCurrencyPriceRequestBody {
6
+ interface Raw {
7
+ currency: string;
8
+ monthly_price?: number | null;
9
+ one_time_price?: number | null;
10
+ yearly_price?: number | null;
11
+ }
12
+ }
@@ -0,0 +1,13 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ import { BillingPriceResponseData } from "./BillingPriceResponseData";
5
+ export declare const PlanCurrencyPricesResponseData: core.serialization.ObjectSchema<serializers.PlanCurrencyPricesResponseData.Raw, Schematic.PlanCurrencyPricesResponseData>;
6
+ export declare namespace PlanCurrencyPricesResponseData {
7
+ interface Raw {
8
+ currency: string;
9
+ monthly_price?: BillingPriceResponseData.Raw | null;
10
+ one_time_price?: BillingPriceResponseData.Raw | null;
11
+ yearly_price?: BillingPriceResponseData.Raw | null;
12
+ }
13
+ }