@schematichq/schematic-typescript-node 1.5.5 → 1.5.7

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 (179) hide show
  1. package/dist/Client.d.ts +3 -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/CreateApiKeyRequestBody.d.ts +1 -0
  5. package/dist/api/resources/accounts/client/requests/ListAccountMembersRequest.d.ts +4 -0
  6. package/dist/api/resources/accounts/client/requests/UpdateApiKeyRequestBody.d.ts +1 -0
  7. package/dist/api/resources/accounts/types/CountAccountMembersParams.d.ts +3 -0
  8. package/dist/api/resources/accounts/types/ListAccountMembersParams.d.ts +3 -0
  9. package/dist/api/resources/billing/client/Client.d.ts +2 -0
  10. package/dist/api/resources/billing/client/requests/ListBillingPricesRequest.d.ts +3 -0
  11. package/dist/api/resources/billing/client/requests/ListBillingProductPricesRequest.d.ts +3 -0
  12. package/dist/api/resources/billing/types/ListBillingPricesParams.d.ts +2 -0
  13. package/dist/api/resources/billing/types/ListBillingProductPricesParams.d.ts +2 -0
  14. package/dist/api/resources/catalogs/client/Client.d.ts +0 -1
  15. package/dist/api/resources/catalogs/client/requests/CreateCatalogRequestBody.d.ts +0 -2
  16. package/dist/api/resources/checkout/client/Client.d.ts +35 -0
  17. package/dist/api/resources/checkout/client/requests/UpdateCompanyBillingDetailsRequestBody.d.ts +17 -0
  18. package/dist/api/resources/checkout/client/requests/index.d.ts +1 -0
  19. package/dist/api/resources/checkout/types/GetCompanyBillingDetailsResponse.d.ts +6 -0
  20. package/dist/api/resources/checkout/types/UpdateCompanyBillingDetailsResponse.d.ts +6 -0
  21. package/dist/api/resources/checkout/types/index.d.ts +2 -0
  22. package/dist/api/resources/entitlements/client/Client.d.ts +38 -0
  23. package/dist/api/resources/entitlements/client/requests/GetUserUsageByCompanyRequest.d.ts +19 -0
  24. package/dist/api/resources/entitlements/client/requests/GetUserUsageDetailRequest.d.ts +19 -0
  25. package/dist/api/resources/entitlements/client/requests/index.d.ts +2 -0
  26. package/dist/api/resources/entitlements/types/GetUserUsageByCompanyParams.d.ts +13 -0
  27. package/dist/api/resources/entitlements/types/GetUserUsageByCompanyResponse.d.ts +6 -0
  28. package/dist/api/resources/entitlements/types/GetUserUsageDetailParams.d.ts +13 -0
  29. package/dist/api/resources/entitlements/types/GetUserUsageDetailResponse.d.ts +6 -0
  30. package/dist/api/resources/entitlements/types/index.d.ts +4 -0
  31. package/dist/api/resources/index.d.ts +3 -0
  32. package/dist/api/resources/licenses/client/Client.d.ts +69 -0
  33. package/dist/api/resources/licenses/client/index.d.ts +1 -0
  34. package/dist/api/resources/licenses/client/requests/CountLicensesRequest.d.ts +19 -0
  35. package/dist/api/resources/licenses/client/requests/ListLicensesRequest.d.ts +19 -0
  36. package/dist/api/resources/licenses/client/requests/index.d.ts +2 -0
  37. package/dist/api/resources/licenses/exports.d.ts +2 -0
  38. package/dist/api/resources/licenses/index.d.ts +2 -0
  39. package/dist/api/resources/licenses/types/CountLicensesParams.d.ts +12 -0
  40. package/dist/api/resources/licenses/types/CountLicensesResponse.d.ts +6 -0
  41. package/dist/api/resources/licenses/types/GetSingleLicenseResponse.d.ts +6 -0
  42. package/dist/api/resources/licenses/types/ListLicensesParams.d.ts +12 -0
  43. package/dist/api/resources/licenses/types/ListLicensesResponse.d.ts +6 -0
  44. package/dist/api/resources/licenses/types/index.d.ts +5 -0
  45. package/dist/api/resources/planmigrations/client/Client.d.ts +20 -0
  46. package/dist/api/resources/planmigrations/client/requests/PreviewMigrationRequestBody.d.ts +16 -0
  47. package/dist/api/resources/planmigrations/client/requests/index.d.ts +1 -0
  48. package/dist/api/resources/planmigrations/types/PreviewMigrationResponse.d.ts +6 -0
  49. package/dist/api/resources/planmigrations/types/index.d.ts +1 -0
  50. package/dist/api/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +6 -0
  51. package/dist/api/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +2 -0
  52. package/dist/api/types/ApiKeyCreateResponseData.d.ts +1 -0
  53. package/dist/api/types/ApiKeyResponseData.d.ts +1 -0
  54. package/dist/api/types/BillingCreditGrantZeroedOutReason.d.ts +1 -0
  55. package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +4 -0
  56. package/dist/api/types/CatalogConfigOrderedEntitlement.d.ts +1 -1
  57. package/dist/api/types/CatalogConfigOrderedEntitlementResponseData.d.ts +1 -1
  58. package/dist/api/types/CatalogResponseData.d.ts +0 -1
  59. package/dist/api/types/CompanyBillingAddressView.d.ts +8 -0
  60. package/dist/api/types/CompanyBillingCheckoutSettings.d.ts +5 -0
  61. package/dist/api/types/CompanyBillingDetailsResponseData.d.ts +9 -0
  62. package/dist/api/types/CompanyBillingDetailsView.d.ts +9 -0
  63. package/dist/api/types/CompanyPlanCreditGrantView.d.ts +2 -0
  64. package/dist/api/types/CompanyPlanDetailResponseData.d.ts +2 -2
  65. package/dist/api/types/CompanyTaxIdView.d.ts +7 -0
  66. package/dist/api/types/ComponentCheckoutSettings.d.ts +2 -0
  67. package/dist/api/types/CreateBillingPlanCreditGrantRequestBody.d.ts +4 -0
  68. package/dist/api/types/CreateEntitlementInBundleRequestBody.d.ts +1 -0
  69. package/dist/api/types/CreditsAutoTopupSuccess.d.ts +7 -0
  70. package/dist/api/types/CreditsCreditPurchaseSuccess.d.ts +9 -0
  71. package/dist/api/types/CreditsWebhookCompanySummary.d.ts +4 -0
  72. package/dist/api/types/CreditsWebhookCreditSummary.d.ts +4 -0
  73. package/dist/api/types/CustomPlanBillingResponseData.d.ts +1 -0
  74. package/dist/api/types/CustomerBillingAddress.d.ts +8 -0
  75. package/dist/api/types/FeatureDetailResponseData.d.ts +6 -0
  76. package/dist/api/types/FeatureInPlanResponseData.d.ts +4 -0
  77. package/dist/api/types/FeatureResponseData.d.ts +4 -0
  78. package/dist/api/types/FeatureType.d.ts +1 -0
  79. package/dist/api/types/FeatureView.d.ts +2 -0
  80. package/dist/api/types/LicenseResponseData.d.ts +6 -0
  81. package/dist/api/types/PlanCreditGrantScaling.d.ts +5 -0
  82. package/dist/api/types/PlanCreditGrantView.d.ts +2 -0
  83. package/dist/api/types/PlanDetailResponseData.d.ts +2 -2
  84. package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +2 -2
  85. package/dist/api/types/PlanVersionMigrationPreviewCompanyResponseData.d.ts +8 -0
  86. package/dist/api/types/PlanVersionMigrationPreviewResponseData.d.ts +4 -0
  87. package/dist/api/types/PlanViewPublicResponseData.d.ts +2 -2
  88. package/dist/api/types/TaxIdInput.d.ts +5 -0
  89. package/dist/api/types/TaxIdType.d.ts +41 -0
  90. package/dist/api/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +4 -0
  91. package/dist/api/types/UserCreditUsageResponseData.d.ts +14 -0
  92. package/dist/api/types/UserDailyCreditPointResponseData.d.ts +6 -0
  93. package/dist/api/types/UserDailyUsagePointResponseData.d.ts +8 -0
  94. package/dist/api/types/UserFeatureUsageResponseData.d.ts +14 -0
  95. package/dist/api/types/UserUsageByCompanyResponseData.d.ts +11 -0
  96. package/dist/api/types/UserUsageDetailResponseData.d.ts +16 -0
  97. package/dist/api/types/WebhookRequestType.d.ts +2 -0
  98. package/dist/api/types/index.d.ts +22 -0
  99. package/dist/index.js +9 -9
  100. package/dist/serialization/resources/accounts/client/requests/CreateApiKeyRequestBody.d.ts +1 -0
  101. package/dist/serialization/resources/accounts/client/requests/UpdateApiKeyRequestBody.d.ts +1 -0
  102. package/dist/serialization/resources/accounts/types/CountAccountMembersParams.d.ts +2 -0
  103. package/dist/serialization/resources/accounts/types/ListAccountMembersParams.d.ts +2 -0
  104. package/dist/serialization/resources/billing/types/ListBillingPricesParams.d.ts +1 -0
  105. package/dist/serialization/resources/billing/types/ListBillingProductPricesParams.d.ts +1 -0
  106. package/dist/serialization/resources/catalogs/client/requests/CreateCatalogRequestBody.d.ts +0 -1
  107. package/dist/serialization/resources/checkout/client/requests/UpdateCompanyBillingDetailsRequestBody.d.ts +16 -0
  108. package/dist/serialization/resources/checkout/client/requests/index.d.ts +1 -0
  109. package/dist/serialization/resources/checkout/types/GetCompanyBillingDetailsResponse.d.ts +11 -0
  110. package/dist/serialization/resources/checkout/types/UpdateCompanyBillingDetailsResponse.d.ts +11 -0
  111. package/dist/serialization/resources/checkout/types/index.d.ts +2 -0
  112. package/dist/serialization/resources/entitlements/types/GetUserUsageByCompanyParams.d.ts +12 -0
  113. package/dist/serialization/resources/entitlements/types/GetUserUsageByCompanyResponse.d.ts +12 -0
  114. package/dist/serialization/resources/entitlements/types/GetUserUsageDetailParams.d.ts +12 -0
  115. package/dist/serialization/resources/entitlements/types/GetUserUsageDetailResponse.d.ts +12 -0
  116. package/dist/serialization/resources/entitlements/types/index.d.ts +4 -0
  117. package/dist/serialization/resources/index.d.ts +2 -0
  118. package/dist/serialization/resources/licenses/index.d.ts +1 -0
  119. package/dist/serialization/resources/licenses/types/CountLicensesParams.d.ts +13 -0
  120. package/dist/serialization/resources/licenses/types/CountLicensesResponse.d.ts +12 -0
  121. package/dist/serialization/resources/licenses/types/GetSingleLicenseResponse.d.ts +11 -0
  122. package/dist/serialization/resources/licenses/types/ListLicensesParams.d.ts +13 -0
  123. package/dist/serialization/resources/licenses/types/ListLicensesResponse.d.ts +12 -0
  124. package/dist/serialization/resources/licenses/types/index.d.ts +5 -0
  125. package/dist/serialization/resources/planmigrations/client/requests/PreviewMigrationRequestBody.d.ts +13 -0
  126. package/dist/serialization/resources/planmigrations/client/requests/index.d.ts +1 -0
  127. package/dist/serialization/resources/planmigrations/types/PreviewMigrationResponse.d.ts +11 -0
  128. package/dist/serialization/resources/planmigrations/types/index.d.ts +1 -0
  129. package/dist/serialization/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +8 -0
  130. package/dist/serialization/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +1 -0
  131. package/dist/serialization/types/ApiKeyCreateResponseData.d.ts +1 -0
  132. package/dist/serialization/types/ApiKeyResponseData.d.ts +1 -0
  133. package/dist/serialization/types/BillingCreditGrantZeroedOutReason.d.ts +1 -1
  134. package/dist/serialization/types/BillingPlanCreditGrantResponseData.d.ts +3 -0
  135. package/dist/serialization/types/CatalogConfigOrderedEntitlement.d.ts +1 -1
  136. package/dist/serialization/types/CatalogConfigOrderedEntitlementResponseData.d.ts +1 -1
  137. package/dist/serialization/types/CatalogResponseData.d.ts +0 -1
  138. package/dist/serialization/types/CompanyBillingAddressView.d.ts +14 -0
  139. package/dist/serialization/types/CompanyBillingCheckoutSettings.d.ts +11 -0
  140. package/dist/serialization/types/CompanyBillingDetailsResponseData.d.ts +18 -0
  141. package/dist/serialization/types/CompanyBillingDetailsView.d.ts +18 -0
  142. package/dist/serialization/types/CompanyPlanCreditGrantView.d.ts +3 -0
  143. package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +1 -1
  144. package/dist/serialization/types/CompanyTaxIdView.d.ts +13 -0
  145. package/dist/serialization/types/ComponentCheckoutSettings.d.ts +2 -0
  146. package/dist/serialization/types/CreateBillingPlanCreditGrantRequestBody.d.ts +3 -0
  147. package/dist/serialization/types/CreateEntitlementInBundleRequestBody.d.ts +2 -0
  148. package/dist/serialization/types/CreditsAutoTopupSuccess.d.ts +14 -0
  149. package/dist/serialization/types/CreditsCreditPurchaseSuccess.d.ts +16 -0
  150. package/dist/serialization/types/CreditsWebhookCompanySummary.d.ts +10 -0
  151. package/dist/serialization/types/CreditsWebhookCreditSummary.d.ts +10 -0
  152. package/dist/serialization/types/CustomPlanBillingResponseData.d.ts +1 -0
  153. package/dist/serialization/types/CustomerBillingAddress.d.ts +14 -0
  154. package/dist/serialization/types/FeatureDetailResponseData.d.ts +4 -0
  155. package/dist/serialization/types/FeatureInPlanResponseData.d.ts +2 -0
  156. package/dist/serialization/types/FeatureResponseData.d.ts +2 -0
  157. package/dist/serialization/types/FeatureType.d.ts +1 -1
  158. package/dist/serialization/types/FeatureView.d.ts +3 -0
  159. package/dist/serialization/types/LicenseResponseData.d.ts +12 -0
  160. package/dist/serialization/types/PlanCreditGrantScaling.d.ts +7 -0
  161. package/dist/serialization/types/PlanCreditGrantView.d.ts +3 -0
  162. package/dist/serialization/types/PlanDetailResponseData.d.ts +1 -1
  163. package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +1 -1
  164. package/dist/serialization/types/PlanVersionMigrationPreviewCompanyResponseData.d.ts +14 -0
  165. package/dist/serialization/types/PlanVersionMigrationPreviewResponseData.d.ts +10 -0
  166. package/dist/serialization/types/PlanViewPublicResponseData.d.ts +1 -1
  167. package/dist/serialization/types/TaxIdInput.d.ts +11 -0
  168. package/dist/serialization/types/TaxIdType.d.ts +7 -0
  169. package/dist/serialization/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +3 -0
  170. package/dist/serialization/types/UserCreditUsageResponseData.d.ts +15 -0
  171. package/dist/serialization/types/UserDailyCreditPointResponseData.d.ts +10 -0
  172. package/dist/serialization/types/UserDailyUsagePointResponseData.d.ts +12 -0
  173. package/dist/serialization/types/UserFeatureUsageResponseData.d.ts +16 -0
  174. package/dist/serialization/types/UserUsageByCompanyResponseData.d.ts +14 -0
  175. package/dist/serialization/types/UserUsageDetailResponseData.d.ts +20 -0
  176. package/dist/serialization/types/WebhookRequestType.d.ts +1 -1
  177. package/dist/serialization/types/index.d.ts +22 -0
  178. package/dist/wasm/rulesengine.js +1 -1
  179. package/package.json +1 -1
@@ -0,0 +1,14 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ import { CreditsAutoTopupCompanySummary } from "./CreditsAutoTopupCompanySummary";
5
+ import { CreditsAutoTopupCreditSummary } from "./CreditsAutoTopupCreditSummary";
6
+ export declare const CreditsAutoTopupSuccess: core.serialization.ObjectSchema<serializers.CreditsAutoTopupSuccess.Raw, Schematic.CreditsAutoTopupSuccess>;
7
+ export declare namespace CreditsAutoTopupSuccess {
8
+ interface Raw {
9
+ company?: CreditsAutoTopupCompanySummary.Raw | null;
10
+ credit?: CreditsAutoTopupCreditSummary.Raw | null;
11
+ grant_id: string;
12
+ quantity: number;
13
+ }
14
+ }
@@ -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 { CreditsWebhookCompanySummary } from "./CreditsWebhookCompanySummary";
5
+ import { CreditsWebhookCreditSummary } from "./CreditsWebhookCreditSummary";
6
+ export declare const CreditsCreditPurchaseSuccess: core.serialization.ObjectSchema<serializers.CreditsCreditPurchaseSuccess.Raw, Schematic.CreditsCreditPurchaseSuccess>;
7
+ export declare namespace CreditsCreditPurchaseSuccess {
8
+ interface Raw {
9
+ bundle_id: string;
10
+ bundle_name: string;
11
+ company?: CreditsWebhookCompanySummary.Raw | null;
12
+ credit?: CreditsWebhookCreditSummary.Raw | null;
13
+ grant_ids: string[];
14
+ quantity: number;
15
+ }
16
+ }
@@ -0,0 +1,10 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ export declare const CreditsWebhookCompanySummary: core.serialization.ObjectSchema<serializers.CreditsWebhookCompanySummary.Raw, Schematic.CreditsWebhookCompanySummary>;
5
+ export declare namespace CreditsWebhookCompanySummary {
6
+ interface Raw {
7
+ id: string;
8
+ name: string;
9
+ }
10
+ }
@@ -0,0 +1,10 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ export declare const CreditsWebhookCreditSummary: core.serialization.ObjectSchema<serializers.CreditsWebhookCreditSummary.Raw, Schematic.CreditsWebhookCreditSummary>;
5
+ export declare namespace CreditsWebhookCreditSummary {
6
+ interface Raw {
7
+ id: string;
8
+ name: string;
9
+ }
10
+ }
@@ -15,6 +15,7 @@ export declare namespace CustomPlanBillingResponseData {
15
15
  paid_at?: string | null;
16
16
  plan_id: string;
17
17
  published_at?: string | null;
18
+ send_invoice: boolean;
18
19
  status: CustomPlanBillingStatus.Raw;
19
20
  stripe_invoice_url?: string | null;
20
21
  updated_at: string;
@@ -0,0 +1,14 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ export declare const CustomerBillingAddress: core.serialization.ObjectSchema<serializers.CustomerBillingAddress.Raw, Schematic.CustomerBillingAddress>;
5
+ export declare namespace CustomerBillingAddress {
6
+ interface Raw {
7
+ city: string;
8
+ country: string;
9
+ line1: string;
10
+ line2: string;
11
+ postal_code: string;
12
+ state: string;
13
+ }
14
+ }
@@ -3,6 +3,7 @@ import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
4
  import { AccountMemberResponseData } from "./AccountMemberResponseData";
5
5
  import { BillingLinkedResourceResponseData } from "./BillingLinkedResourceResponseData";
6
+ import { BillingProductResponseData } from "./BillingProductResponseData";
6
7
  import { EntityTraitDefinitionResponseData } from "./EntityTraitDefinitionResponseData";
7
8
  import { EventSummaryResponseData } from "./EventSummaryResponseData";
8
9
  import { FeatureLifecyclePhase } from "./FeatureLifecyclePhase";
@@ -13,6 +14,7 @@ export declare const FeatureDetailResponseData: core.serialization.ObjectSchema<
13
14
  export declare namespace FeatureDetailResponseData {
14
15
  interface Raw {
15
16
  billing_linked_resource?: BillingLinkedResourceResponseData.Raw | null;
17
+ billing_product?: BillingProductResponseData.Raw | null;
16
18
  created_at: string;
17
19
  description: string;
18
20
  event_subtype?: string | null;
@@ -21,6 +23,7 @@ export declare namespace FeatureDetailResponseData {
21
23
  flags: FlagDetailResponseData.Raw[];
22
24
  icon: string;
23
25
  id: string;
26
+ license_id?: string | null;
24
27
  lifecycle_phase?: FeatureLifecyclePhase.Raw | null;
25
28
  maintainer?: AccountMemberResponseData.Raw | null;
26
29
  maintainer_account_member_id?: string | null;
@@ -31,5 +34,6 @@ export declare namespace FeatureDetailResponseData {
31
34
  trait?: EntityTraitDefinitionResponseData.Raw | null;
32
35
  trait_id?: string | null;
33
36
  updated_at: string;
37
+ usage_limit_trait_id?: string | null;
34
38
  }
35
39
  }
@@ -20,6 +20,7 @@ export declare namespace FeatureInPlanResponseData {
20
20
  flags: FlagInPlanResponseData.Raw[];
21
21
  icon: string;
22
22
  id: string;
23
+ license_id?: string | null;
23
24
  lifecycle_phase?: FeatureLifecyclePhase.Raw | null;
24
25
  maintainer_account_member_id?: string | null;
25
26
  name: string;
@@ -29,5 +30,6 @@ export declare namespace FeatureInPlanResponseData {
29
30
  trait?: EntityTraitDefinitionResponseData.Raw | null;
30
31
  trait_id?: string | null;
31
32
  updated_at: string;
33
+ usage_limit_trait_id?: string | null;
32
34
  }
33
35
  }
@@ -12,6 +12,7 @@ export declare namespace FeatureResponseData {
12
12
  feature_type: FeatureType.Raw;
13
13
  icon: string;
14
14
  id: string;
15
+ license_id?: string | null;
15
16
  lifecycle_phase?: FeatureLifecyclePhase.Raw | null;
16
17
  maintainer_account_member_id?: string | null;
17
18
  name: string;
@@ -19,5 +20,6 @@ export declare namespace FeatureResponseData {
19
20
  singular_name?: string | null;
20
21
  trait_id?: string | null;
21
22
  updated_at: string;
23
+ usage_limit_trait_id?: string | null;
22
24
  }
23
25
  }
@@ -3,5 +3,5 @@ import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
4
  export declare const FeatureType: core.serialization.Schema<serializers.FeatureType.Raw, Schematic.FeatureType>;
5
5
  export declare namespace FeatureType {
6
- type Raw = "boolean" | "event" | "trait";
6
+ type Raw = "boolean" | "event" | "license" | "trait";
7
7
  }
@@ -2,6 +2,7 @@ import type * as Schematic from "../../api/index";
2
2
  import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
4
  import { BillingLinkedResourceResponseData } from "./BillingLinkedResourceResponseData";
5
+ import { BillingProductResponseData } from "./BillingProductResponseData";
5
6
  import { EntityTraitDefinitionResponseData } from "./EntityTraitDefinitionResponseData";
6
7
  import { EventSummaryResponseData } from "./EventSummaryResponseData";
7
8
  import { FeatureLifecyclePhase } from "./FeatureLifecyclePhase";
@@ -13,6 +14,7 @@ export declare namespace FeatureView {
13
14
  interface Raw {
14
15
  account_id: string;
15
16
  billing_linked_resource?: BillingLinkedResourceResponseData.Raw | null;
17
+ billing_product?: BillingProductResponseData.Raw | null;
16
18
  created_at: string;
17
19
  description: string;
18
20
  event_subtype?: string | null;
@@ -21,6 +23,7 @@ export declare namespace FeatureView {
21
23
  flags: FlagView.Raw[];
22
24
  icon: string;
23
25
  id: string;
26
+ license_id?: string | null;
24
27
  lifecycle_phase?: FeatureLifecyclePhase.Raw | null;
25
28
  name: string;
26
29
  plans: PreviewObject.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
+ export declare const LicenseResponseData: core.serialization.ObjectSchema<serializers.LicenseResponseData.Raw, Schematic.LicenseResponseData>;
5
+ export declare namespace LicenseResponseData {
6
+ interface Raw {
7
+ created_at: string;
8
+ id: string;
9
+ name: string;
10
+ updated_at: string;
11
+ }
12
+ }
@@ -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 PlanCreditGrantScaling: core.serialization.Schema<serializers.PlanCreditGrantScaling.Raw, Schematic.PlanCreditGrantScaling>;
5
+ export declare namespace PlanCreditGrantScaling {
6
+ type Raw = "fixed" | "per_license";
7
+ }
@@ -9,6 +9,7 @@ import { BillingPlanCreditGrantResetCadence } from "./BillingPlanCreditGrantRese
9
9
  import { BillingPlanCreditGrantResetStart } from "./BillingPlanCreditGrantResetStart";
10
10
  import { BillingPlanCreditGrantResetType } from "./BillingPlanCreditGrantResetType";
11
11
  import { GenericPreviewObject } from "./GenericPreviewObject";
12
+ import { PlanCreditGrantScaling } from "./PlanCreditGrantScaling";
12
13
  export declare const PlanCreditGrantView: core.serialization.ObjectSchema<serializers.PlanCreditGrantView.Raw, Schematic.PlanCreditGrantView>;
13
14
  export declare namespace PlanCreditGrantView {
14
15
  interface Raw {
@@ -34,6 +35,7 @@ export declare namespace PlanCreditGrantView {
34
35
  expiry_unit?: BillingCreditExpiryUnit.Raw | null;
35
36
  expiry_unit_count?: number | null;
36
37
  id: string;
38
+ license_id?: string | null;
37
39
  plan?: GenericPreviewObject.Raw | null;
38
40
  plan_id: string;
39
41
  plan_version_id?: string | null;
@@ -42,6 +44,7 @@ export declare namespace PlanCreditGrantView {
42
44
  reset_start?: BillingPlanCreditGrantResetStart.Raw | null;
43
45
  reset_type: BillingPlanCreditGrantResetType.Raw;
44
46
  rollover_percentage: number;
47
+ scaling: PlanCreditGrantScaling.Raw;
45
48
  singular_name?: string | null;
46
49
  updated_at: string;
47
50
  }
@@ -43,7 +43,7 @@ export declare namespace PlanDetailResponseData {
43
43
  id: string;
44
44
  included_credit_grants?: BillingPlanCreditGrantResponseData.Raw[] | null;
45
45
  is_default: boolean;
46
- is_free: boolean;
46
+ is_free?: boolean | null;
47
47
  is_trialable: boolean;
48
48
  monthly_price?: BillingPriceResponseData.Raw | null;
49
49
  name: string;
@@ -49,7 +49,7 @@ export declare namespace PlanGroupPlanDetailResponseData {
49
49
  included_credit_grants?: BillingPlanCreditGrantResponseData.Raw[] | null;
50
50
  is_custom: boolean;
51
51
  is_default: boolean;
52
- is_free: boolean;
52
+ is_free?: boolean | null;
53
53
  is_trialable: boolean;
54
54
  monthly_price?: BillingPriceResponseData.Raw | null;
55
55
  name: string;
@@ -0,0 +1,14 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ export declare const PlanVersionMigrationPreviewCompanyResponseData: core.serialization.ObjectSchema<serializers.PlanVersionMigrationPreviewCompanyResponseData.Raw, Schematic.PlanVersionMigrationPreviewCompanyResponseData>;
5
+ export declare namespace PlanVersionMigrationPreviewCompanyResponseData {
6
+ interface Raw {
7
+ company_id: string;
8
+ has_billing_changes: boolean;
9
+ has_custom_pricing: boolean;
10
+ note?: string | null;
11
+ plan_version_id_from?: string | null;
12
+ will_update_subscription: boolean;
13
+ }
14
+ }
@@ -0,0 +1,10 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ import { PlanVersionMigrationPreviewCompanyResponseData } from "./PlanVersionMigrationPreviewCompanyResponseData";
5
+ export declare const PlanVersionMigrationPreviewResponseData: core.serialization.ObjectSchema<serializers.PlanVersionMigrationPreviewResponseData.Raw, Schematic.PlanVersionMigrationPreviewResponseData>;
6
+ export declare namespace PlanVersionMigrationPreviewResponseData {
7
+ interface Raw {
8
+ companies: PlanVersionMigrationPreviewCompanyResponseData.Raw[];
9
+ }
10
+ }
@@ -50,7 +50,7 @@ export declare namespace PlanViewPublicResponseData {
50
50
  included_credit_grants: PlanCreditGrantView.Raw[];
51
51
  is_custom: boolean;
52
52
  is_default: boolean;
53
- is_free: boolean;
53
+ is_free?: boolean | null;
54
54
  is_trialable: boolean;
55
55
  monthly_price?: BillingPriceResponseData.Raw | null;
56
56
  name: string;
@@ -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 { TaxIdType } from "./TaxIdType";
5
+ export declare const TaxIdInput: core.serialization.ObjectSchema<serializers.TaxIdInput.Raw, Schematic.TaxIdInput>;
6
+ export declare namespace TaxIdInput {
7
+ interface Raw {
8
+ type: TaxIdType.Raw;
9
+ value: string;
10
+ }
11
+ }
@@ -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 TaxIdType: core.serialization.Schema<serializers.TaxIdType.Raw, Schematic.TaxIdType>;
5
+ export declare namespace TaxIdType {
6
+ type Raw = "ae_trn" | "au_abn" | "au_arn" | "br_cnpj" | "br_cpf" | "ca_bn" | "ca_gst_hst" | "ca_pst_bc" | "ca_pst_mb" | "ca_pst_sk" | "ca_qst" | "ch_uid" | "ch_vat" | "eu_vat" | "gb_vat" | "hk_br" | "id_npwp" | "il_vat" | "in_gst" | "jp_cn" | "jp_rn" | "jp_trn" | "kr_brn" | "mx_rfc" | "my_frp" | "my_itn" | "my_sst" | "no_vat" | "nz_gst" | "ph_tin" | "sa_vat" | "sg_gst" | "sg_uen" | "th_vat" | "tr_tin" | "tw_vat" | "us_ein" | "za_vat";
7
+ }
@@ -8,6 +8,7 @@ import { BillingPlanCreditGrantResetCadence } from "./BillingPlanCreditGrantRese
8
8
  import { BillingPlanCreditGrantResetStart } from "./BillingPlanCreditGrantResetStart";
9
9
  import { BillingPlanCreditGrantResetType } from "./BillingPlanCreditGrantResetType";
10
10
  import { CreditAutoTopupAmountType } from "./CreditAutoTopupAmountType";
11
+ import { PlanCreditGrantScaling } from "./PlanCreditGrantScaling";
11
12
  export declare const UpdateBillingPlanCreditGrantRequestBody: core.serialization.ObjectSchema<serializers.UpdateBillingPlanCreditGrantRequestBody.Raw, Schematic.UpdateBillingPlanCreditGrantRequestBody>;
12
13
  export declare namespace UpdateBillingPlanCreditGrantRequestBody {
13
14
  interface Raw {
@@ -27,9 +28,11 @@ export declare namespace UpdateBillingPlanCreditGrantRequestBody {
27
28
  expiry_type?: BillingCreditExpiryType.Raw | null;
28
29
  expiry_unit?: BillingCreditExpiryUnit.Raw | null;
29
30
  expiry_unit_count?: number | null;
31
+ license_id?: string | null;
30
32
  reset_cadence: BillingPlanCreditGrantResetCadence.Raw;
31
33
  reset_start: BillingPlanCreditGrantResetStart.Raw;
32
34
  reset_type?: BillingPlanCreditGrantResetType.Raw | null;
33
35
  rollover_percentage?: number | null;
36
+ scaling?: PlanCreditGrantScaling.Raw | null;
34
37
  }
35
38
  }
@@ -0,0 +1,15 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ import { UserResponseData } from "./UserResponseData";
5
+ export declare const UserCreditUsageResponseData: core.serialization.ObjectSchema<serializers.UserCreditUsageResponseData.Raw, Schematic.UserCreditUsageResponseData>;
6
+ export declare namespace UserCreditUsageResponseData {
7
+ interface Raw {
8
+ billing_credit_id: string;
9
+ credit_name: string;
10
+ credits_used: number;
11
+ share: number;
12
+ user?: UserResponseData.Raw | null;
13
+ user_id?: string | null;
14
+ }
15
+ }
@@ -0,0 +1,10 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ export declare const UserDailyCreditPointResponseData: core.serialization.ObjectSchema<serializers.UserDailyCreditPointResponseData.Raw, Schematic.UserDailyCreditPointResponseData>;
5
+ export declare namespace UserDailyCreditPointResponseData {
6
+ interface Raw {
7
+ credits_used: number;
8
+ date: string;
9
+ }
10
+ }
@@ -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 { FeatureResponseData } from "./FeatureResponseData";
5
+ export declare const UserDailyUsagePointResponseData: core.serialization.ObjectSchema<serializers.UserDailyUsagePointResponseData.Raw, Schematic.UserDailyUsagePointResponseData>;
6
+ export declare namespace UserDailyUsagePointResponseData {
7
+ interface Raw {
8
+ date: string;
9
+ feature?: FeatureResponseData.Raw | null;
10
+ value: number;
11
+ }
12
+ }
@@ -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 { FeatureResponseData } from "./FeatureResponseData";
5
+ import { UserResponseData } from "./UserResponseData";
6
+ export declare const UserFeatureUsageResponseData: core.serialization.ObjectSchema<serializers.UserFeatureUsageResponseData.Raw, Schematic.UserFeatureUsageResponseData>;
7
+ export declare namespace UserFeatureUsageResponseData {
8
+ interface Raw {
9
+ feature?: FeatureResponseData.Raw | null;
10
+ last_seen: string;
11
+ share: number;
12
+ user?: UserResponseData.Raw | null;
13
+ user_id?: string | null;
14
+ value: number;
15
+ }
16
+ }
@@ -0,0 +1,14 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ import { UserCreditUsageResponseData } from "./UserCreditUsageResponseData";
5
+ import { UserFeatureUsageResponseData } from "./UserFeatureUsageResponseData";
6
+ export declare const UserUsageByCompanyResponseData: core.serialization.ObjectSchema<serializers.UserUsageByCompanyResponseData.Raw, Schematic.UserUsageByCompanyResponseData>;
7
+ export declare namespace UserUsageByCompanyResponseData {
8
+ interface Raw {
9
+ credits: UserCreditUsageResponseData.Raw[];
10
+ end_time: string;
11
+ rows: UserFeatureUsageResponseData.Raw[];
12
+ start_time: string;
13
+ }
14
+ }
@@ -0,0 +1,20 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ import { UserCreditUsageResponseData } from "./UserCreditUsageResponseData";
5
+ import { UserDailyCreditPointResponseData } from "./UserDailyCreditPointResponseData";
6
+ import { UserDailyUsagePointResponseData } from "./UserDailyUsagePointResponseData";
7
+ import { UserFeatureUsageResponseData } from "./UserFeatureUsageResponseData";
8
+ import { UserResponseData } from "./UserResponseData";
9
+ export declare const UserUsageDetailResponseData: core.serialization.ObjectSchema<serializers.UserUsageDetailResponseData.Raw, Schematic.UserUsageDetailResponseData>;
10
+ export declare namespace UserUsageDetailResponseData {
11
+ interface Raw {
12
+ credits: UserCreditUsageResponseData.Raw[];
13
+ daily_credit_points: UserDailyCreditPointResponseData.Raw[];
14
+ daily_points: UserDailyUsagePointResponseData.Raw[];
15
+ end_time: string;
16
+ feature_totals: UserFeatureUsageResponseData.Raw[];
17
+ start_time: string;
18
+ user?: UserResponseData.Raw | null;
19
+ }
20
+ }
@@ -3,5 +3,5 @@ import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
4
  export declare const WebhookRequestType: core.serialization.Schema<serializers.WebhookRequestType.Raw, Schematic.WebhookRequestType>;
5
5
  export declare namespace WebhookRequestType {
6
- type Raw = "subscription.trial.ended" | "company.created" | "company.deleted" | "company.override.created" | "company.override.deleted" | "company.override.expired" | "company.override.updated" | "company.plan_changed" | "company.scheduled_downgrade" | "company.updated" | "credit.limit.reached" | "credit.limit.warning" | "entitlement.limit.reached" | "entitlement.limit.warning" | "entitlement.soft_limit.reached" | "entitlement.soft_limit.warning" | "entitlement.tier_limit.reached" | "entitlement.tier_limit.warning" | "feature.created" | "feature.deleted" | "feature.updated" | "flag.created" | "flag.deleted" | "flag_rules.updated" | "flag.updated" | "plan.created" | "plan.deleted" | "plan.entitlement.created" | "plan.entitlement.deleted" | "plan.entitlement.updated" | "plan.updated" | "plan_version.deleted" | "rule.deleted" | "test.send" | "user.created" | "user.deleted" | "user.updated" | "auto.topup.hard.failure" | "auto.topup.retry.exceeded";
6
+ type Raw = "subscription.trial.ended" | "company.created" | "company.deleted" | "company.override.created" | "company.override.deleted" | "company.override.expired" | "company.override.updated" | "company.plan_changed" | "company.scheduled_downgrade" | "company.updated" | "credit.limit.reached" | "credit.limit.warning" | "credit.purchase.success" | "entitlement.limit.reached" | "entitlement.limit.warning" | "entitlement.soft_limit.reached" | "entitlement.soft_limit.warning" | "entitlement.tier_limit.reached" | "entitlement.tier_limit.warning" | "feature.created" | "feature.deleted" | "feature.updated" | "flag.created" | "flag.deleted" | "flag_rules.updated" | "flag.updated" | "plan.created" | "plan.deleted" | "plan.entitlement.created" | "plan.entitlement.deleted" | "plan.entitlement.updated" | "plan.updated" | "plan_version.deleted" | "rule.deleted" | "test.send" | "user.created" | "user.deleted" | "user.updated" | "auto.topup.hard.failure" | "auto.topup.retry.exceeded" | "auto.topup.success";
7
7
  }
@@ -87,6 +87,10 @@ export * from "./CheckoutFieldWithValue";
87
87
  export * from "./CheckoutSettingsResponseData";
88
88
  export * from "./CheckoutSubscription";
89
89
  export * from "./ClerkIntegrationConfig";
90
+ export * from "./CompanyBillingAddressView";
91
+ export * from "./CompanyBillingCheckoutSettings";
92
+ export * from "./CompanyBillingDetailsResponseData";
93
+ export * from "./CompanyBillingDetailsView";
90
94
  export * from "./CompanyBillingEntityResponseData";
91
95
  export * from "./CompanyBillingEntitySubscriptionResponseData";
92
96
  export * from "./CompanyCreditBalance";
@@ -106,6 +110,7 @@ export * from "./CompanyPlanInvalidReason";
106
110
  export * from "./CompanyPlanWithBillingSubView";
107
111
  export * from "./CompanyResponseData";
108
112
  export * from "./CompanySubscriptionResponseData";
113
+ export * from "./CompanyTaxIdView";
109
114
  export * from "./ComparableOperator";
110
115
  export * from "./CompatiblePlans";
111
116
  export * from "./CompatiblePlansResponseData";
@@ -159,6 +164,10 @@ export * from "./CreditsAutoTopupCompanySummary";
159
164
  export * from "./CreditsAutoTopupCreditSummary";
160
165
  export * from "./CreditsAutoTopupHardFailure";
161
166
  export * from "./CreditsAutoTopupRetryFailure";
167
+ export * from "./CreditsAutoTopupSuccess";
168
+ export * from "./CreditsCreditPurchaseSuccess";
169
+ export * from "./CreditsWebhookCompanySummary";
170
+ export * from "./CreditsWebhookCreditSummary";
162
171
  export * from "./CreditTransferResponseData";
163
172
  export * from "./CreditTransferView";
164
173
  export * from "./CreditTriggerConfig";
@@ -166,6 +175,7 @@ export * from "./CreditUsage";
166
175
  export * from "./CreditUsageAggregation";
167
176
  export * from "./CreditUsageReason";
168
177
  export * from "./CurrencyPriceRequestBody";
178
+ export * from "./CustomerBillingAddress";
169
179
  export * from "./CustomPlanActivationStrategy";
170
180
  export * from "./CustomPlanBillingResponseData";
171
181
  export * from "./CustomPlanBillingStatus";
@@ -250,6 +260,7 @@ export * from "./InvoiceResponseData";
250
260
  export * from "./InvoiceStatus";
251
261
  export * from "./IssueTemporaryAccessTokenResponseData";
252
262
  export * from "./KeysRequestBody";
263
+ export * from "./LicenseResponseData";
253
264
  export * from "./LimitTimeSeriesPointResponseData";
254
265
  export * from "./ManagePlanPreviewResponseResponseData";
255
266
  export * from "./ManagePlanRequest";
@@ -274,6 +285,7 @@ export * from "./PlanChangeAction";
274
285
  export * from "./PlanChangeBasePlanAction";
275
286
  export * from "./PlanChangeResponseData";
276
287
  export * from "./PlanChangeSubscriptionAction";
288
+ export * from "./PlanCreditGrantScaling";
277
289
  export * from "./PlanCreditGrantView";
278
290
  export * from "./PlanCurrencyPriceRequestBody";
279
291
  export * from "./PlanCurrencyPricesResponseData";
@@ -297,6 +309,8 @@ export * from "./PlanTraitResponseData";
297
309
  export * from "./PlanType";
298
310
  export * from "./PlanVersionCompanyMigrationResponseData";
299
311
  export * from "./PlanVersionCompanyMigrationStatus";
312
+ export * from "./PlanVersionMigrationPreviewCompanyResponseData";
313
+ export * from "./PlanVersionMigrationPreviewResponseData";
300
314
  export * from "./PlanVersionMigrationResponseData";
301
315
  export * from "./PlanVersionMigrationStatus";
302
316
  export * from "./PlanVersionMigrationStrategy";
@@ -360,6 +374,8 @@ export * from "./StripeIntegrationConfig";
360
374
  export * from "./SubscriptionStatus";
361
375
  export * from "./SubscriptionTraitUpdate";
362
376
  export * from "./SubscriptionType";
377
+ export * from "./TaxIdInput";
378
+ export * from "./TaxIdType";
363
379
  export * from "./TemporaryAccessTokenResourceType";
364
380
  export * from "./TemporaryAccessTokenResponseData";
365
381
  export * from "./TestWebhookResponseData";
@@ -387,8 +403,14 @@ export * from "./UpsertUserSubRequestBody";
387
403
  export * from "./UsageBasedEntitlementRequestBody";
388
404
  export * from "./UsageBasedEntitlementResponseData";
389
405
  export * from "./UsageTimeSeriesPointResponseData";
406
+ export * from "./UserCreditUsageResponseData";
407
+ export * from "./UserDailyCreditPointResponseData";
408
+ export * from "./UserDailyUsagePointResponseData";
390
409
  export * from "./UserDetailResponseData";
410
+ export * from "./UserFeatureUsageResponseData";
391
411
  export * from "./UserResponseData";
412
+ export * from "./UserUsageByCompanyResponseData";
413
+ export * from "./UserUsageDetailResponseData";
392
414
  export * from "./WarningTier";
393
415
  export * from "./WarningTierRequestBody";
394
416
  export * from "./WarningTierResponseData";