@schematichq/schematic-typescript-node 1.5.6 → 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 (95) hide show
  1. package/dist/api/resources/accounts/client/requests/CreateApiKeyRequestBody.d.ts +1 -0
  2. package/dist/api/resources/accounts/client/requests/UpdateApiKeyRequestBody.d.ts +1 -0
  3. package/dist/api/resources/billing/client/Client.d.ts +2 -0
  4. package/dist/api/resources/billing/client/requests/ListBillingPricesRequest.d.ts +3 -0
  5. package/dist/api/resources/billing/client/requests/ListBillingProductPricesRequest.d.ts +3 -0
  6. package/dist/api/resources/billing/types/ListBillingPricesParams.d.ts +2 -0
  7. package/dist/api/resources/billing/types/ListBillingProductPricesParams.d.ts +2 -0
  8. package/dist/api/resources/catalogs/client/Client.d.ts +0 -1
  9. package/dist/api/resources/catalogs/client/requests/CreateCatalogRequestBody.d.ts +0 -2
  10. package/dist/api/resources/checkout/client/requests/UpdateCompanyBillingDetailsRequestBody.d.ts +1 -0
  11. package/dist/api/resources/entitlements/client/Client.d.ts +38 -0
  12. package/dist/api/resources/entitlements/client/requests/GetUserUsageByCompanyRequest.d.ts +19 -0
  13. package/dist/api/resources/entitlements/client/requests/GetUserUsageDetailRequest.d.ts +19 -0
  14. package/dist/api/resources/entitlements/client/requests/index.d.ts +2 -0
  15. package/dist/api/resources/entitlements/types/GetUserUsageByCompanyParams.d.ts +13 -0
  16. package/dist/api/resources/entitlements/types/GetUserUsageByCompanyResponse.d.ts +6 -0
  17. package/dist/api/resources/entitlements/types/GetUserUsageDetailParams.d.ts +13 -0
  18. package/dist/api/resources/entitlements/types/GetUserUsageDetailResponse.d.ts +6 -0
  19. package/dist/api/resources/entitlements/types/index.d.ts +4 -0
  20. package/dist/api/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +6 -0
  21. package/dist/api/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +2 -0
  22. package/dist/api/types/ApiKeyCreateResponseData.d.ts +1 -0
  23. package/dist/api/types/ApiKeyResponseData.d.ts +1 -0
  24. package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +4 -0
  25. package/dist/api/types/CatalogConfigOrderedEntitlement.d.ts +1 -1
  26. package/dist/api/types/CatalogConfigOrderedEntitlementResponseData.d.ts +1 -1
  27. package/dist/api/types/CatalogResponseData.d.ts +0 -1
  28. package/dist/api/types/CompanyBillingDetailsResponseData.d.ts +1 -0
  29. package/dist/api/types/CompanyBillingDetailsView.d.ts +1 -0
  30. package/dist/api/types/CompanyPlanCreditGrantView.d.ts +2 -0
  31. package/dist/api/types/CompanyPlanDetailResponseData.d.ts +2 -2
  32. package/dist/api/types/CompanyTaxIdView.d.ts +7 -0
  33. package/dist/api/types/ComponentCheckoutSettings.d.ts +2 -0
  34. package/dist/api/types/CreateBillingPlanCreditGrantRequestBody.d.ts +4 -0
  35. package/dist/api/types/CustomPlanBillingResponseData.d.ts +1 -0
  36. package/dist/api/types/PlanCreditGrantScaling.d.ts +5 -0
  37. package/dist/api/types/PlanCreditGrantView.d.ts +2 -0
  38. package/dist/api/types/PlanDetailResponseData.d.ts +2 -2
  39. package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +2 -2
  40. package/dist/api/types/PlanViewPublicResponseData.d.ts +2 -2
  41. package/dist/api/types/TaxIdInput.d.ts +5 -0
  42. package/dist/api/types/TaxIdType.d.ts +41 -0
  43. package/dist/api/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +4 -0
  44. package/dist/api/types/UserCreditUsageResponseData.d.ts +14 -0
  45. package/dist/api/types/UserDailyCreditPointResponseData.d.ts +6 -0
  46. package/dist/api/types/UserDailyUsagePointResponseData.d.ts +8 -0
  47. package/dist/api/types/UserFeatureUsageResponseData.d.ts +14 -0
  48. package/dist/api/types/UserUsageByCompanyResponseData.d.ts +11 -0
  49. package/dist/api/types/UserUsageDetailResponseData.d.ts +16 -0
  50. package/dist/api/types/index.d.ts +10 -0
  51. package/dist/index.js +9 -9
  52. package/dist/serialization/resources/accounts/client/requests/CreateApiKeyRequestBody.d.ts +1 -0
  53. package/dist/serialization/resources/accounts/client/requests/UpdateApiKeyRequestBody.d.ts +1 -0
  54. package/dist/serialization/resources/billing/types/ListBillingPricesParams.d.ts +1 -0
  55. package/dist/serialization/resources/billing/types/ListBillingProductPricesParams.d.ts +1 -0
  56. package/dist/serialization/resources/catalogs/client/requests/CreateCatalogRequestBody.d.ts +0 -1
  57. package/dist/serialization/resources/checkout/client/requests/UpdateCompanyBillingDetailsRequestBody.d.ts +2 -0
  58. package/dist/serialization/resources/entitlements/types/GetUserUsageByCompanyParams.d.ts +12 -0
  59. package/dist/serialization/resources/entitlements/types/GetUserUsageByCompanyResponse.d.ts +12 -0
  60. package/dist/serialization/resources/entitlements/types/GetUserUsageDetailParams.d.ts +12 -0
  61. package/dist/serialization/resources/entitlements/types/GetUserUsageDetailResponse.d.ts +12 -0
  62. package/dist/serialization/resources/entitlements/types/index.d.ts +4 -0
  63. package/dist/serialization/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +8 -0
  64. package/dist/serialization/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +1 -0
  65. package/dist/serialization/types/ApiKeyCreateResponseData.d.ts +1 -0
  66. package/dist/serialization/types/ApiKeyResponseData.d.ts +1 -0
  67. package/dist/serialization/types/BillingPlanCreditGrantResponseData.d.ts +3 -0
  68. package/dist/serialization/types/CatalogConfigOrderedEntitlement.d.ts +1 -1
  69. package/dist/serialization/types/CatalogConfigOrderedEntitlementResponseData.d.ts +1 -1
  70. package/dist/serialization/types/CatalogResponseData.d.ts +0 -1
  71. package/dist/serialization/types/CompanyBillingDetailsResponseData.d.ts +2 -0
  72. package/dist/serialization/types/CompanyBillingDetailsView.d.ts +2 -0
  73. package/dist/serialization/types/CompanyPlanCreditGrantView.d.ts +3 -0
  74. package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +1 -1
  75. package/dist/serialization/types/CompanyTaxIdView.d.ts +13 -0
  76. package/dist/serialization/types/ComponentCheckoutSettings.d.ts +2 -0
  77. package/dist/serialization/types/CreateBillingPlanCreditGrantRequestBody.d.ts +3 -0
  78. package/dist/serialization/types/CustomPlanBillingResponseData.d.ts +1 -0
  79. package/dist/serialization/types/PlanCreditGrantScaling.d.ts +7 -0
  80. package/dist/serialization/types/PlanCreditGrantView.d.ts +3 -0
  81. package/dist/serialization/types/PlanDetailResponseData.d.ts +1 -1
  82. package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +1 -1
  83. package/dist/serialization/types/PlanViewPublicResponseData.d.ts +1 -1
  84. package/dist/serialization/types/TaxIdInput.d.ts +11 -0
  85. package/dist/serialization/types/TaxIdType.d.ts +7 -0
  86. package/dist/serialization/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +3 -0
  87. package/dist/serialization/types/UserCreditUsageResponseData.d.ts +15 -0
  88. package/dist/serialization/types/UserDailyCreditPointResponseData.d.ts +10 -0
  89. package/dist/serialization/types/UserDailyUsagePointResponseData.d.ts +12 -0
  90. package/dist/serialization/types/UserFeatureUsageResponseData.d.ts +16 -0
  91. package/dist/serialization/types/UserUsageByCompanyResponseData.d.ts +14 -0
  92. package/dist/serialization/types/UserUsageDetailResponseData.d.ts +20 -0
  93. package/dist/serialization/types/index.d.ts +10 -0
  94. package/dist/wasm/rulesengine.js +1 -1
  95. package/package.json +1 -1
@@ -7,6 +7,7 @@ export declare namespace CreateApiKeyRequestBody {
7
7
  description?: string | null;
8
8
  environment_id?: string | null;
9
9
  name: string;
10
+ rate_limit_percent?: number | null;
10
11
  readonly?: boolean | null;
11
12
  }
12
13
  }
@@ -6,5 +6,6 @@ export declare namespace UpdateApiKeyRequestBody {
6
6
  interface Raw {
7
7
  description?: string | null;
8
8
  name?: string | null;
9
+ rate_limit_percent?: number | null;
9
10
  }
10
11
  }
@@ -12,6 +12,7 @@ export declare namespace ListBillingPricesParams {
12
12
  for_trial_expiry_plan?: boolean | null;
13
13
  ids?: string[] | null;
14
14
  interval?: string | null;
15
+ interval_count?: number | null;
15
16
  is_active?: boolean | null;
16
17
  limit?: number | null;
17
18
  offset?: number | null;
@@ -12,6 +12,7 @@ export declare namespace ListBillingProductPricesParams {
12
12
  for_trial_expiry_plan?: boolean | null;
13
13
  ids?: string[] | null;
14
14
  interval?: string | null;
15
+ interval_count?: number | null;
15
16
  is_active?: boolean | null;
16
17
  limit?: number | null;
17
18
  offset?: number | null;
@@ -5,7 +5,6 @@ export declare const CreateCatalogRequestBody: core.serialization.Schema<seriali
5
5
  export declare namespace CreateCatalogRequestBody {
6
6
  interface Raw {
7
7
  description?: string | null;
8
- is_default: boolean;
9
8
  name: string;
10
9
  }
11
10
  }
@@ -3,12 +3,14 @@ import * as core from "../../../../../core";
3
3
  import type * as serializers from "../../../../index";
4
4
  import { CheckoutFieldValue } from "../../../../types/CheckoutFieldValue";
5
5
  import { CustomerBillingAddress } from "../../../../types/CustomerBillingAddress";
6
+ import { TaxIdInput } from "../../../../types/TaxIdInput";
6
7
  export declare const UpdateCompanyBillingDetailsRequestBody: core.serialization.Schema<serializers.UpdateCompanyBillingDetailsRequestBody.Raw, Schematic.UpdateCompanyBillingDetailsRequestBody>;
7
8
  export declare namespace UpdateCompanyBillingDetailsRequestBody {
8
9
  interface Raw {
9
10
  address?: CustomerBillingAddress.Raw | null;
10
11
  email?: string | null;
11
12
  phone?: string | null;
13
+ tax_id?: TaxIdInput.Raw | null;
12
14
  values: CheckoutFieldValue.Raw[];
13
15
  }
14
16
  }
@@ -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 GetUserUsageByCompanyParams: core.serialization.ObjectSchema<serializers.GetUserUsageByCompanyParams.Raw, Schematic.GetUserUsageByCompanyParams>;
5
+ export declare namespace GetUserUsageByCompanyParams {
6
+ interface Raw {
7
+ company_id?: string | null;
8
+ end_time?: string | null;
9
+ feature_id?: string | null;
10
+ start_time?: string | null;
11
+ }
12
+ }
@@ -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 { UserUsageByCompanyResponseData } from "../../../types/UserUsageByCompanyResponseData";
5
+ import { GetUserUsageByCompanyParams } from "./GetUserUsageByCompanyParams";
6
+ export declare const GetUserUsageByCompanyResponse: core.serialization.ObjectSchema<serializers.GetUserUsageByCompanyResponse.Raw, Schematic.GetUserUsageByCompanyResponse>;
7
+ export declare namespace GetUserUsageByCompanyResponse {
8
+ interface Raw {
9
+ data: UserUsageByCompanyResponseData.Raw;
10
+ params: GetUserUsageByCompanyParams.Raw;
11
+ }
12
+ }
@@ -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 GetUserUsageDetailParams: core.serialization.ObjectSchema<serializers.GetUserUsageDetailParams.Raw, Schematic.GetUserUsageDetailParams>;
5
+ export declare namespace GetUserUsageDetailParams {
6
+ interface Raw {
7
+ company_id?: string | null;
8
+ end_time?: string | null;
9
+ start_time?: string | null;
10
+ user_id?: string | null;
11
+ }
12
+ }
@@ -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 { UserUsageDetailResponseData } from "../../../types/UserUsageDetailResponseData";
5
+ import { GetUserUsageDetailParams } from "./GetUserUsageDetailParams";
6
+ export declare const GetUserUsageDetailResponse: core.serialization.ObjectSchema<serializers.GetUserUsageDetailResponse.Raw, Schematic.GetUserUsageDetailResponse>;
7
+ export declare namespace GetUserUsageDetailResponse {
8
+ interface Raw {
9
+ data: UserUsageDetailResponseData.Raw;
10
+ params: GetUserUsageDetailParams.Raw;
11
+ }
12
+ }
@@ -19,6 +19,10 @@ export * from "./GetFeatureUsageByCompanyResponse";
19
19
  export * from "./GetFeatureUsageTimeSeriesParams";
20
20
  export * from "./GetFeatureUsageTimeSeriesResponse";
21
21
  export * from "./GetPlanEntitlementResponse";
22
+ export * from "./GetUserUsageByCompanyParams";
23
+ export * from "./GetUserUsageByCompanyResponse";
24
+ export * from "./GetUserUsageDetailParams";
25
+ export * from "./GetUserUsageDetailResponse";
22
26
  export * from "./ListCompanyOverridesParams";
23
27
  export * from "./ListCompanyOverridesResponse";
24
28
  export * from "./ListFeatureCompaniesParams";
@@ -1,16 +1,24 @@
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 { CheckoutFieldValue } from "../../../../types/CheckoutFieldValue";
5
+ import { CustomerBillingAddress } from "../../../../types/CustomerBillingAddress";
4
6
  import { CustomPlanActivationStrategy } from "../../../../types/CustomPlanActivationStrategy";
5
7
  import { PlanVersionMigrationStrategy } from "../../../../types/PlanVersionMigrationStrategy";
8
+ import { TaxIdInput } from "../../../../types/TaxIdInput";
6
9
  export declare const PublishPlanVersionRequestBody: core.serialization.Schema<serializers.PublishPlanVersionRequestBody.Raw, Schematic.PublishPlanVersionRequestBody>;
7
10
  export declare namespace PublishPlanVersionRequestBody {
8
11
  interface Raw {
9
12
  activation_strategy?: CustomPlanActivationStrategy.Raw | null;
13
+ address?: CustomerBillingAddress.Raw | null;
10
14
  coupon_external_id?: string | null;
15
+ custom_field_values?: CheckoutFieldValue.Raw[] | null;
11
16
  customer_email?: string | null;
12
17
  days_until_due?: number | null;
13
18
  excluded_company_ids: string[];
14
19
  migration_strategy: PlanVersionMigrationStrategy.Raw;
20
+ phone?: string | null;
21
+ send_invoice?: boolean | null;
22
+ tax_id?: TaxIdInput.Raw | null;
15
23
  }
16
24
  }
@@ -8,5 +8,6 @@ export declare namespace RetryCustomPlanBillingRequestBody {
8
8
  activation_strategy?: CustomPlanActivationStrategy.Raw | null;
9
9
  customer_email: string;
10
10
  days_until_due?: number | null;
11
+ send_invoice?: boolean | null;
11
12
  }
12
13
  }
@@ -15,6 +15,7 @@ export declare namespace ApiKeyCreateResponseData {
15
15
  integration?: ApiKeyIntegrationResponseData.Raw | null;
16
16
  last_used_at?: string | null;
17
17
  name: string;
18
+ rate_limit_percent?: number | null;
18
19
  readonly: boolean;
19
20
  scopes: ApiKeyScope.Raw[];
20
21
  secret: string;
@@ -15,6 +15,7 @@ export declare namespace ApiKeyResponseData {
15
15
  integration?: ApiKeyIntegrationResponseData.Raw | null;
16
16
  last_used_at?: string | null;
17
17
  name: string;
18
+ rate_limit_percent?: number | null;
18
19
  readonly: boolean;
19
20
  scopes: ApiKeyScope.Raw[];
20
21
  updated_at: string;
@@ -8,6 +8,7 @@ import { BillingCreditResponseData } from "./BillingCreditResponseData";
8
8
  import { BillingPlanCreditGrantResetCadence } from "./BillingPlanCreditGrantResetCadence";
9
9
  import { BillingPlanCreditGrantResetStart } from "./BillingPlanCreditGrantResetStart";
10
10
  import { BillingPlanCreditGrantResetType } from "./BillingPlanCreditGrantResetType";
11
+ import { PlanCreditGrantScaling } from "./PlanCreditGrantScaling";
11
12
  import { PreviewObjectResponseData } from "./PreviewObjectResponseData";
12
13
  export declare const BillingPlanCreditGrantResponseData: core.serialization.ObjectSchema<serializers.BillingPlanCreditGrantResponseData.Raw, Schematic.BillingPlanCreditGrantResponseData>;
13
14
  export declare namespace BillingPlanCreditGrantResponseData {
@@ -34,6 +35,7 @@ export declare namespace BillingPlanCreditGrantResponseData {
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?: PreviewObjectResponseData.Raw | null;
38
40
  plan_id: string;
39
41
  plan_name: string;
@@ -42,6 +44,7 @@ export declare namespace BillingPlanCreditGrantResponseData {
42
44
  reset_start?: BillingPlanCreditGrantResetStart.Raw | null;
43
45
  reset_type?: BillingPlanCreditGrantResetType.Raw | null;
44
46
  rollover_percentage: number;
47
+ scaling: PlanCreditGrantScaling.Raw;
45
48
  updated_at: string;
46
49
  }
47
50
  }
@@ -4,7 +4,7 @@ import type * as serializers from "../index";
4
4
  export declare const CatalogConfigOrderedEntitlement: core.serialization.ObjectSchema<serializers.CatalogConfigOrderedEntitlement.Raw, Schematic.CatalogConfigOrderedEntitlement>;
5
5
  export declare namespace CatalogConfigOrderedEntitlement {
6
6
  interface Raw {
7
- plan_entitlement_id: string;
7
+ feature_id: string;
8
8
  visible?: boolean | null;
9
9
  }
10
10
  }
@@ -4,7 +4,7 @@ import type * as serializers from "../index";
4
4
  export declare const CatalogConfigOrderedEntitlementResponseData: core.serialization.ObjectSchema<serializers.CatalogConfigOrderedEntitlementResponseData.Raw, Schematic.CatalogConfigOrderedEntitlementResponseData>;
5
5
  export declare namespace CatalogConfigOrderedEntitlementResponseData {
6
6
  interface Raw {
7
- plan_entitlement_id: string;
7
+ feature_id: string;
8
8
  visible: boolean;
9
9
  }
10
10
  }
@@ -11,7 +11,6 @@ export declare namespace CatalogResponseData {
11
11
  custom_plan_price_text?: string | null;
12
12
  custom_plans_visible: boolean;
13
13
  description?: string | null;
14
- environment_id: string;
15
14
  id: string;
16
15
  is_default: boolean;
17
16
  name: string;
@@ -4,6 +4,7 @@ import type * as serializers from "../index";
4
4
  import { CheckoutFieldWithValue } from "./CheckoutFieldWithValue";
5
5
  import { CompanyBillingAddressView } from "./CompanyBillingAddressView";
6
6
  import { CompanyBillingCheckoutSettings } from "./CompanyBillingCheckoutSettings";
7
+ import { CompanyTaxIdView } from "./CompanyTaxIdView";
7
8
  export declare const CompanyBillingDetailsResponseData: core.serialization.ObjectSchema<serializers.CompanyBillingDetailsResponseData.Raw, Schematic.CompanyBillingDetailsResponseData>;
8
9
  export declare namespace CompanyBillingDetailsResponseData {
9
10
  interface Raw {
@@ -12,5 +13,6 @@ export declare namespace CompanyBillingDetailsResponseData {
12
13
  custom_fields: CheckoutFieldWithValue.Raw[];
13
14
  email?: string | null;
14
15
  phone?: string | null;
16
+ tax_ids: CompanyTaxIdView.Raw[];
15
17
  }
16
18
  }
@@ -4,6 +4,7 @@ import type * as serializers from "../index";
4
4
  import { CheckoutFieldWithValue } from "./CheckoutFieldWithValue";
5
5
  import { CompanyBillingAddressView } from "./CompanyBillingAddressView";
6
6
  import { CompanyBillingCheckoutSettings } from "./CompanyBillingCheckoutSettings";
7
+ import { CompanyTaxIdView } from "./CompanyTaxIdView";
7
8
  export declare const CompanyBillingDetailsView: core.serialization.ObjectSchema<serializers.CompanyBillingDetailsView.Raw, Schematic.CompanyBillingDetailsView>;
8
9
  export declare namespace CompanyBillingDetailsView {
9
10
  interface Raw {
@@ -12,5 +13,6 @@ export declare namespace CompanyBillingDetailsView {
12
13
  custom_fields: CheckoutFieldWithValue.Raw[];
13
14
  email?: string | null;
14
15
  phone?: string | null;
16
+ tax_ids: CompanyTaxIdView.Raw[];
15
17
  }
16
18
  }
@@ -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 CompanyPlanCreditGrantView: core.serialization.ObjectSchema<serializers.CompanyPlanCreditGrantView.Raw, Schematic.CompanyPlanCreditGrantView>;
13
14
  export declare namespace CompanyPlanCreditGrantView {
14
15
  interface Raw {
@@ -37,6 +38,7 @@ export declare namespace CompanyPlanCreditGrantView {
37
38
  expiry_unit?: BillingCreditExpiryUnit.Raw | null;
38
39
  expiry_unit_count?: number | null;
39
40
  id: string;
41
+ license_id?: string | null;
40
42
  plan?: GenericPreviewObject.Raw | null;
41
43
  plan_id: string;
42
44
  plan_version_id?: string | null;
@@ -45,6 +47,7 @@ export declare namespace CompanyPlanCreditGrantView {
45
47
  reset_start?: BillingPlanCreditGrantResetStart.Raw | null;
46
48
  reset_type: BillingPlanCreditGrantResetType.Raw;
47
49
  rollover_percentage: number;
50
+ scaling: PlanCreditGrantScaling.Raw;
48
51
  singular_name?: string | null;
49
52
  updated_at: string;
50
53
  }
@@ -55,7 +55,7 @@ export declare namespace CompanyPlanDetailResponseData {
55
55
  invalid_reason?: CompanyPlanInvalidReason.Raw | null;
56
56
  is_custom: boolean;
57
57
  is_default: boolean;
58
- is_free: boolean;
58
+ is_free?: boolean | null;
59
59
  is_trialable: boolean;
60
60
  monthly_price?: BillingPriceResponseData.Raw | null;
61
61
  name: string;
@@ -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
+ export declare const CompanyTaxIdView: core.serialization.ObjectSchema<serializers.CompanyTaxIdView.Raw, Schematic.CompanyTaxIdView>;
5
+ export declare namespace CompanyTaxIdView {
6
+ interface Raw {
7
+ country: string;
8
+ id: string;
9
+ type: string;
10
+ value: string;
11
+ verification_status?: string | null;
12
+ }
13
+ }
@@ -1,12 +1,14 @@
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 { ProrationBehavior } from "./ProrationBehavior";
4
5
  export declare const ComponentCheckoutSettings: core.serialization.ObjectSchema<serializers.ComponentCheckoutSettings.Raw, Schematic.ComponentCheckoutSettings>;
5
6
  export declare namespace ComponentCheckoutSettings {
6
7
  interface Raw {
7
8
  collect_address: boolean;
8
9
  collect_email: boolean;
9
10
  collect_phone: boolean;
11
+ proration_behavior: ProrationBehavior.Raw;
10
12
  tax_collection_enabled: boolean;
11
13
  }
12
14
  }
@@ -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 CreateBillingPlanCreditGrantRequestBody: core.serialization.ObjectSchema<serializers.CreateBillingPlanCreditGrantRequestBody.Raw, Schematic.CreateBillingPlanCreditGrantRequestBody>;
12
13
  export declare namespace CreateBillingPlanCreditGrantRequestBody {
13
14
  interface Raw {
@@ -28,11 +29,13 @@ export declare namespace CreateBillingPlanCreditGrantRequestBody {
28
29
  expiry_type?: BillingCreditExpiryType.Raw | null;
29
30
  expiry_unit?: BillingCreditExpiryUnit.Raw | null;
30
31
  expiry_unit_count?: number | null;
32
+ license_id?: string | null;
31
33
  plan_id: string;
32
34
  plan_version_id?: string | null;
33
35
  reset_cadence: BillingPlanCreditGrantResetCadence.Raw;
34
36
  reset_start: BillingPlanCreditGrantResetStart.Raw;
35
37
  reset_type?: BillingPlanCreditGrantResetType.Raw | null;
36
38
  rollover_percentage?: number | null;
39
+ scaling?: PlanCreditGrantScaling.Raw | null;
37
40
  }
38
41
  }
@@ -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,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;
@@ -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
+ }
@@ -110,6 +110,7 @@ export * from "./CompanyPlanInvalidReason";
110
110
  export * from "./CompanyPlanWithBillingSubView";
111
111
  export * from "./CompanyResponseData";
112
112
  export * from "./CompanySubscriptionResponseData";
113
+ export * from "./CompanyTaxIdView";
113
114
  export * from "./ComparableOperator";
114
115
  export * from "./CompatiblePlans";
115
116
  export * from "./CompatiblePlansResponseData";
@@ -284,6 +285,7 @@ export * from "./PlanChangeAction";
284
285
  export * from "./PlanChangeBasePlanAction";
285
286
  export * from "./PlanChangeResponseData";
286
287
  export * from "./PlanChangeSubscriptionAction";
288
+ export * from "./PlanCreditGrantScaling";
287
289
  export * from "./PlanCreditGrantView";
288
290
  export * from "./PlanCurrencyPriceRequestBody";
289
291
  export * from "./PlanCurrencyPricesResponseData";
@@ -372,6 +374,8 @@ export * from "./StripeIntegrationConfig";
372
374
  export * from "./SubscriptionStatus";
373
375
  export * from "./SubscriptionTraitUpdate";
374
376
  export * from "./SubscriptionType";
377
+ export * from "./TaxIdInput";
378
+ export * from "./TaxIdType";
375
379
  export * from "./TemporaryAccessTokenResourceType";
376
380
  export * from "./TemporaryAccessTokenResponseData";
377
381
  export * from "./TestWebhookResponseData";
@@ -399,8 +403,14 @@ export * from "./UpsertUserSubRequestBody";
399
403
  export * from "./UsageBasedEntitlementRequestBody";
400
404
  export * from "./UsageBasedEntitlementResponseData";
401
405
  export * from "./UsageTimeSeriesPointResponseData";
406
+ export * from "./UserCreditUsageResponseData";
407
+ export * from "./UserDailyCreditPointResponseData";
408
+ export * from "./UserDailyUsagePointResponseData";
402
409
  export * from "./UserDetailResponseData";
410
+ export * from "./UserFeatureUsageResponseData";
403
411
  export * from "./UserResponseData";
412
+ export * from "./UserUsageByCompanyResponseData";
413
+ export * from "./UserUsageDetailResponseData";
404
414
  export * from "./WarningTier";
405
415
  export * from "./WarningTierRequestBody";
406
416
  export * from "./WarningTierResponseData";