@schematichq/schematic-typescript-node 1.3.0 → 1.3.1

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 (109) hide show
  1. package/dist/Client.d.ts +3 -0
  2. package/dist/api/resources/billing/client/Client.d.ts +0 -3
  3. package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +1 -1
  4. package/dist/api/resources/billing/client/requests/CountCustomersRequest.d.ts +0 -2
  5. package/dist/api/resources/billing/client/requests/CreateBillingCustomerRequestBody.d.ts +0 -2
  6. package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +1 -1
  7. package/dist/api/resources/billing/client/requests/ListCustomersWithSubscriptionsRequest.d.ts +0 -2
  8. package/dist/api/resources/billing/types/CountBillingProductsParams.d.ts +1 -1
  9. package/dist/api/resources/billing/types/CountCustomersParams.d.ts +0 -1
  10. package/dist/api/resources/billing/types/ListBillingProductsParams.d.ts +1 -1
  11. package/dist/api/resources/billing/types/ListCustomersWithSubscriptionsParams.d.ts +0 -1
  12. package/dist/api/resources/credits/client/Client.d.ts +21 -0
  13. package/dist/api/resources/credits/client/requests/CountCompanyGrantsRequest.d.ts +20 -0
  14. package/dist/api/resources/credits/client/requests/index.d.ts +1 -2
  15. package/dist/api/resources/credits/types/CountCompanyGrantsParams.d.ts +13 -0
  16. package/dist/api/resources/credits/types/CountCompanyGrantsResponse.d.ts +6 -0
  17. package/dist/api/resources/credits/types/index.d.ts +2 -0
  18. package/dist/api/resources/index.d.ts +3 -0
  19. package/dist/api/resources/planbundle/client/Client.d.ts +52 -0
  20. package/dist/api/resources/planbundle/client/index.d.ts +1 -0
  21. package/dist/api/resources/planbundle/client/requests/CreatePlanBundleRequestBody.d.ts +16 -0
  22. package/dist/api/resources/planbundle/client/requests/UpdatePlanBundleRequestBody.d.ts +16 -0
  23. package/dist/api/resources/planbundle/client/requests/index.d.ts +2 -0
  24. package/dist/api/resources/planbundle/index.d.ts +2 -0
  25. package/dist/api/resources/planbundle/types/CreatePlanBundleResponse.d.ts +6 -0
  26. package/dist/api/resources/planbundle/types/UpdatePlanBundleResponse.d.ts +6 -0
  27. package/dist/api/resources/planbundle/types/index.d.ts +2 -0
  28. package/dist/api/resources/plans/client/requests/index.d.ts +0 -3
  29. package/dist/api/types/BillingCreditGrantResponseData.d.ts +2 -0
  30. package/dist/api/types/BillingCustomerResponseData.d.ts +0 -1
  31. package/dist/api/types/BillingCustomerWithSubscriptionsResponseData.d.ts +0 -1
  32. package/dist/api/types/CompanyPlanDetailResponseData.d.ts +1 -0
  33. package/dist/api/types/CompanyPlanWithBillingSubView.d.ts +1 -0
  34. package/dist/api/{resources/credits/client/requests → types}/CreateBillingPlanCreditGrantRequestBody.d.ts +1 -11
  35. package/dist/api/types/CreateEntitlementInBundleRequestBody.d.ts +29 -0
  36. package/dist/api/types/CreateEntitlementInBundleRequestBodyMetricPeriod.d.ts +7 -0
  37. package/dist/api/types/CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset.d.ts +5 -0
  38. package/dist/api/types/CreatePlanRequestBody.d.ts +7 -0
  39. package/dist/api/types/CreditCompanyGrantView.d.ts +2 -0
  40. package/dist/api/types/DeleteBillingPlanCreditGrantRequestBody.d.ts +3 -0
  41. package/dist/api/types/EventDetailResponseData.d.ts +1 -1
  42. package/dist/api/types/EventResponseData.d.ts +1 -1
  43. package/dist/api/types/PlanBundleAction.d.ts +6 -0
  44. package/dist/api/types/PlanBundleCreditGrantRequestBody.d.ts +8 -0
  45. package/dist/api/types/PlanBundleEntitlementRequestBody.d.ts +6 -0
  46. package/dist/api/types/PlanBundleResponseData.d.ts +8 -0
  47. package/dist/api/types/PlanChangeSubscriptionAction.d.ts +1 -0
  48. package/dist/api/types/PlanDetailResponseData.d.ts +1 -0
  49. package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +1 -0
  50. package/dist/api/types/PlanVersionResponseData.d.ts +14 -0
  51. package/dist/api/types/PlanVersionStatus.d.ts +6 -0
  52. package/dist/api/types/RawEventResponseData.d.ts +1 -1
  53. package/dist/api/{resources/credits/client/requests → types}/UpdateBillingPlanCreditGrantRequestBody.d.ts +1 -8
  54. package/dist/api/{resources/plans/client/requests → types}/UpdatePlanRequestBody.d.ts +0 -6
  55. package/dist/api/{resources/plans/client/requests → types}/UpsertBillingProductRequestBody.d.ts +1 -8
  56. package/dist/api/types/WebhookRequestType.d.ts +2 -0
  57. package/dist/api/types/index.d.ts +15 -0
  58. package/dist/index.js +3 -3
  59. package/dist/serialization/resources/billing/client/requests/CreateBillingCustomerRequestBody.d.ts +0 -1
  60. package/dist/serialization/resources/billing/types/CountCustomersParams.d.ts +0 -1
  61. package/dist/serialization/resources/billing/types/ListCustomersWithSubscriptionsParams.d.ts +0 -1
  62. package/dist/serialization/resources/credits/client/requests/index.d.ts +0 -2
  63. package/dist/serialization/resources/credits/types/CountCompanyGrantsParams.d.ts +15 -0
  64. package/dist/serialization/resources/credits/types/CountCompanyGrantsResponse.d.ts +12 -0
  65. package/dist/serialization/resources/credits/types/index.d.ts +2 -0
  66. package/dist/serialization/resources/index.d.ts +3 -0
  67. package/dist/serialization/resources/planbundle/client/index.d.ts +1 -0
  68. package/dist/serialization/resources/planbundle/client/requests/CreatePlanBundleRequestBody.d.ts +18 -0
  69. package/dist/serialization/resources/planbundle/client/requests/UpdatePlanBundleRequestBody.d.ts +18 -0
  70. package/dist/serialization/resources/planbundle/client/requests/index.d.ts +2 -0
  71. package/dist/serialization/resources/planbundle/index.d.ts +2 -0
  72. package/dist/serialization/resources/planbundle/types/CreatePlanBundleResponse.d.ts +11 -0
  73. package/dist/serialization/resources/planbundle/types/UpdatePlanBundleResponse.d.ts +11 -0
  74. package/dist/serialization/resources/planbundle/types/index.d.ts +2 -0
  75. package/dist/serialization/resources/plans/client/requests/index.d.ts +0 -3
  76. package/dist/serialization/types/BillingCreditGrantResponseData.d.ts +3 -0
  77. package/dist/serialization/types/BillingCustomerResponseData.d.ts +0 -1
  78. package/dist/serialization/types/BillingCustomerWithSubscriptionsResponseData.d.ts +0 -1
  79. package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +2 -0
  80. package/dist/serialization/types/CompanyPlanWithBillingSubView.d.ts +1 -0
  81. package/dist/serialization/{resources/credits/client/requests → types}/CreateBillingPlanCreditGrantRequestBody.d.ts +10 -10
  82. package/dist/serialization/types/CreateEntitlementInBundleRequestBody.d.ts +39 -0
  83. package/dist/serialization/types/CreateEntitlementInBundleRequestBodyMetricPeriod.d.ts +7 -0
  84. package/dist/serialization/types/CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset.d.ts +7 -0
  85. package/dist/serialization/types/CreatePlanRequestBody.d.ts +13 -0
  86. package/dist/serialization/types/CreditCompanyGrantView.d.ts +3 -0
  87. package/dist/serialization/types/DeleteBillingPlanCreditGrantRequestBody.d.ts +9 -0
  88. package/dist/serialization/types/EventDetailResponseData.d.ts +1 -1
  89. package/dist/serialization/types/EventResponseData.d.ts +1 -1
  90. package/dist/serialization/types/PlanBundleAction.d.ts +7 -0
  91. package/dist/serialization/types/PlanBundleCreditGrantRequestBody.d.ts +17 -0
  92. package/dist/serialization/types/PlanBundleEntitlementRequestBody.d.ts +13 -0
  93. package/dist/serialization/types/PlanBundleResponseData.d.ts +18 -0
  94. package/dist/serialization/types/PlanChangeSubscriptionAction.d.ts +1 -1
  95. package/dist/serialization/types/PlanDetailResponseData.d.ts +2 -0
  96. package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +2 -0
  97. package/dist/serialization/types/PlanVersionResponseData.d.ts +21 -0
  98. package/dist/serialization/types/PlanVersionStatus.d.ts +7 -0
  99. package/dist/serialization/types/RawEventResponseData.d.ts +1 -1
  100. package/dist/serialization/{resources/credits/client/requests → types}/UpdateBillingPlanCreditGrantRequestBody.d.ts +10 -10
  101. package/dist/serialization/types/UpdatePlanRequestBody.d.ts +11 -0
  102. package/dist/serialization/{resources/plans/client/requests → types}/UpsertBillingProductRequestBody.d.ts +5 -5
  103. package/dist/serialization/types/WebhookRequestType.d.ts +1 -1
  104. package/dist/serialization/types/index.d.ts +15 -0
  105. package/dist/wrapper.d.ts +10 -1
  106. package/package.json +1 -1
  107. package/dist/api/resources/plans/client/requests/CreatePlanRequestBody.d.ts +0 -15
  108. package/dist/serialization/resources/plans/client/requests/CreatePlanRequestBody.d.ts +0 -13
  109. package/dist/serialization/resources/plans/client/requests/UpdatePlanRequestBody.d.ts +0 -11
@@ -9,7 +9,6 @@ export declare namespace CreateBillingCustomerRequestBody {
9
9
  default_payment_method_id?: string | null;
10
10
  email: string;
11
11
  external_id: string;
12
- failed_to_import: boolean;
13
12
  meta: Record<string, string>;
14
13
  name: string;
15
14
  provider_type?: BillingProviderType.Raw | null;
@@ -6,7 +6,6 @@ export declare const CountCustomersParams: core.serialization.ObjectSchema<seria
6
6
  export declare namespace CountCustomersParams {
7
7
  interface Raw {
8
8
  company_ids?: string[] | null;
9
- failed_to_import?: boolean | null;
10
9
  limit?: number | null;
11
10
  name?: string | null;
12
11
  offset?: number | null;
@@ -6,7 +6,6 @@ export declare const ListCustomersWithSubscriptionsParams: core.serialization.Ob
6
6
  export declare namespace ListCustomersWithSubscriptionsParams {
7
7
  interface Raw {
8
8
  company_ids?: string[] | null;
9
- failed_to_import?: boolean | null;
10
9
  limit?: number | null;
11
10
  name?: string | null;
12
11
  offset?: number | null;
@@ -1,8 +1,6 @@
1
1
  export { CreateBillingCreditRequestBody } from "./CreateBillingCreditRequestBody";
2
- export { CreateBillingPlanCreditGrantRequestBody } from "./CreateBillingPlanCreditGrantRequestBody";
3
2
  export { CreateCompanyCreditGrant } from "./CreateCompanyCreditGrant";
4
3
  export { CreateCreditBundleRequestBody } from "./CreateCreditBundleRequestBody";
5
4
  export { UpdateBillingCreditRequestBody } from "./UpdateBillingCreditRequestBody";
6
- export { UpdateBillingPlanCreditGrantRequestBody } from "./UpdateBillingPlanCreditGrantRequestBody";
7
5
  export { UpdateCreditBundleDetailsRequestBody } from "./UpdateCreditBundleDetailsRequestBody";
8
6
  export { ZeroOutGrantRequestBody } from "./ZeroOutGrantRequestBody";
@@ -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 { CreditGrantSortOrder } from "../../../types/CreditGrantSortOrder";
5
+ import { SortDirection } from "../../../types/SortDirection";
6
+ export declare const CountCompanyGrantsParams: core.serialization.ObjectSchema<serializers.CountCompanyGrantsParams.Raw, Schematic.CountCompanyGrantsParams>;
7
+ export declare namespace CountCompanyGrantsParams {
8
+ interface Raw {
9
+ company_id?: string | null;
10
+ dir?: SortDirection.Raw | null;
11
+ limit?: number | null;
12
+ offset?: number | null;
13
+ order?: CreditGrantSortOrder.Raw | null;
14
+ }
15
+ }
@@ -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 { CountResponse } from "../../../types/CountResponse";
5
+ import { CountCompanyGrantsParams } from "./CountCompanyGrantsParams";
6
+ export declare const CountCompanyGrantsResponse: core.serialization.ObjectSchema<serializers.CountCompanyGrantsResponse.Raw, Schematic.CountCompanyGrantsResponse>;
7
+ export declare namespace CountCompanyGrantsResponse {
8
+ interface Raw {
9
+ data: CountResponse.Raw;
10
+ params: CountCompanyGrantsParams.Raw;
11
+ }
12
+ }
@@ -4,6 +4,8 @@ export * from "./CountBillingCreditsParams";
4
4
  export * from "./CountBillingCreditsResponse";
5
5
  export * from "./CountBillingPlanCreditGrantsParams";
6
6
  export * from "./CountBillingPlanCreditGrantsResponse";
7
+ export * from "./CountCompanyGrantsParams";
8
+ export * from "./CountCompanyGrantsResponse";
7
9
  export * from "./CountCreditBundlesParams";
8
10
  export * from "./CountCreditBundlesResponse";
9
11
  export * from "./CountCreditLedgerParams";
@@ -31,6 +31,9 @@ export * from "./events/types";
31
31
  export * as features from "./features";
32
32
  export * from "./features/client/requests";
33
33
  export * from "./features/types";
34
+ export * as planbundle from "./planbundle";
35
+ export * from "./planbundle/client/requests";
36
+ export * from "./planbundle/types";
34
37
  export * as plangroups from "./plangroups";
35
38
  export * from "./plangroups/client/requests";
36
39
  export * from "./plangroups/types";
@@ -0,0 +1 @@
1
+ export * from "./requests";
@@ -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 { CreatePlanRequestBody } from "../../../../types/CreatePlanRequestBody";
5
+ import { PlanBundleCreditGrantRequestBody } from "../../../../types/PlanBundleCreditGrantRequestBody";
6
+ import { PlanBundleEntitlementRequestBody } from "../../../../types/PlanBundleEntitlementRequestBody";
7
+ import { UpdatePlanTraitTraitRequestBody } from "../../../../types/UpdatePlanTraitTraitRequestBody";
8
+ import { UpsertBillingProductRequestBody } from "../../../../types/UpsertBillingProductRequestBody";
9
+ export declare const CreatePlanBundleRequestBody: core.serialization.Schema<serializers.CreatePlanBundleRequestBody.Raw, Schematic.CreatePlanBundleRequestBody>;
10
+ export declare namespace CreatePlanBundleRequestBody {
11
+ interface Raw {
12
+ billing_product?: UpsertBillingProductRequestBody.Raw | null;
13
+ credit_grants?: PlanBundleCreditGrantRequestBody.Raw[] | null;
14
+ entitlements: PlanBundleEntitlementRequestBody.Raw[];
15
+ plan?: CreatePlanRequestBody.Raw | null;
16
+ traits?: UpdatePlanTraitTraitRequestBody.Raw[] | null;
17
+ }
18
+ }
@@ -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 { PlanBundleCreditGrantRequestBody } from "../../../../types/PlanBundleCreditGrantRequestBody";
5
+ import { PlanBundleEntitlementRequestBody } from "../../../../types/PlanBundleEntitlementRequestBody";
6
+ import { UpdatePlanRequestBody } from "../../../../types/UpdatePlanRequestBody";
7
+ import { UpdatePlanTraitTraitRequestBody } from "../../../../types/UpdatePlanTraitTraitRequestBody";
8
+ import { UpsertBillingProductRequestBody } from "../../../../types/UpsertBillingProductRequestBody";
9
+ export declare const UpdatePlanBundleRequestBody: core.serialization.Schema<serializers.UpdatePlanBundleRequestBody.Raw, Schematic.UpdatePlanBundleRequestBody>;
10
+ export declare namespace UpdatePlanBundleRequestBody {
11
+ interface Raw {
12
+ billing_product?: UpsertBillingProductRequestBody.Raw | null;
13
+ credit_grants?: PlanBundleCreditGrantRequestBody.Raw[] | null;
14
+ entitlements: PlanBundleEntitlementRequestBody.Raw[];
15
+ plan?: UpdatePlanRequestBody.Raw | null;
16
+ traits?: UpdatePlanTraitTraitRequestBody.Raw[] | null;
17
+ }
18
+ }
@@ -0,0 +1,2 @@
1
+ export { CreatePlanBundleRequestBody } from "./CreatePlanBundleRequestBody";
2
+ export { UpdatePlanBundleRequestBody } from "./UpdatePlanBundleRequestBody";
@@ -0,0 +1,2 @@
1
+ export * from "./client";
2
+ export * from "./types";
@@ -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 { PlanBundleResponseData } from "../../../types/PlanBundleResponseData";
5
+ export declare const CreatePlanBundleResponse: core.serialization.ObjectSchema<serializers.CreatePlanBundleResponse.Raw, Schematic.CreatePlanBundleResponse>;
6
+ export declare namespace CreatePlanBundleResponse {
7
+ interface Raw {
8
+ data: PlanBundleResponseData.Raw;
9
+ params: Record<string, unknown>;
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 { PlanBundleResponseData } from "../../../types/PlanBundleResponseData";
5
+ export declare const UpdatePlanBundleResponse: core.serialization.ObjectSchema<serializers.UpdatePlanBundleResponse.Raw, Schematic.UpdatePlanBundleResponse>;
6
+ export declare namespace UpdatePlanBundleResponse {
7
+ interface Raw {
8
+ data: PlanBundleResponseData.Raw;
9
+ params: Record<string, unknown>;
10
+ }
11
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./CreatePlanBundleResponse";
2
+ export * from "./UpdatePlanBundleResponse";
@@ -1,4 +1 @@
1
- export { CreatePlanRequestBody } from "./CreatePlanRequestBody";
2
1
  export { UpdateCompanyPlansRequestBody } from "./UpdateCompanyPlansRequestBody";
3
- export { UpdatePlanRequestBody } from "./UpdatePlanRequestBody";
4
- export { UpsertBillingProductRequestBody } from "./UpsertBillingProductRequestBody";
@@ -3,6 +3,7 @@ import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
4
  import { BillingCreditGrantReason } from "./BillingCreditGrantReason";
5
5
  import { BillingCreditGrantZeroedOutReason } from "./BillingCreditGrantZeroedOutReason";
6
+ import { BillingPlanCreditGrantResetCadence } from "./BillingPlanCreditGrantResetCadence";
6
7
  import { BillingPriceResponseData } from "./BillingPriceResponseData";
7
8
  import { CreditTransferResponseData } from "./CreditTransferResponseData";
8
9
  export declare const BillingCreditGrantResponseData: core.serialization.ObjectSchema<serializers.BillingCreditGrantResponseData.Raw, Schematic.BillingCreditGrantResponseData>;
@@ -23,6 +24,8 @@ export declare namespace BillingCreditGrantResponseData {
23
24
  quantity: number;
24
25
  quantity_remaining: number;
25
26
  quantity_used: number;
27
+ renewal_enabled: boolean;
28
+ renewal_period?: BillingPlanCreditGrantResetCadence.Raw | null;
26
29
  source_label: string;
27
30
  transfers?: CreditTransferResponseData.Raw[] | null;
28
31
  updated_at: string;
@@ -9,7 +9,6 @@ export declare namespace BillingCustomerResponseData {
9
9
  deleted_at?: string | null;
10
10
  email: string;
11
11
  external_id: string;
12
- failed_to_import: boolean;
13
12
  id: string;
14
13
  name: string;
15
14
  provider_type: BillingProviderType.Raw;
@@ -10,7 +10,6 @@ export declare namespace BillingCustomerWithSubscriptionsResponseData {
10
10
  deleted_at?: string | null;
11
11
  email: string;
12
12
  external_id: string;
13
- failed_to_import: boolean;
14
13
  id: string;
15
14
  name: string;
16
15
  provider_type: BillingProviderType.Raw;
@@ -12,6 +12,7 @@ import { PlanControlledByType } from "./PlanControlledByType";
12
12
  import { PlanCreditGrantView } from "./PlanCreditGrantView";
13
13
  import { PlanEntitlementResponseData } from "./PlanEntitlementResponseData";
14
14
  import { PlanType } from "./PlanType";
15
+ import { PlanVersionResponseData } from "./PlanVersionResponseData";
15
16
  export declare const CompanyPlanDetailResponseData: core.serialization.ObjectSchema<serializers.CompanyPlanDetailResponseData.Raw, Schematic.CompanyPlanDetailResponseData>;
16
17
  export declare namespace CompanyPlanDetailResponseData {
17
18
  interface Raw {
@@ -45,6 +46,7 @@ export declare namespace CompanyPlanDetailResponseData {
45
46
  updated_at: string;
46
47
  usage_violations: FeatureUsageResponseData.Raw[];
47
48
  valid: boolean;
49
+ versions: PlanVersionResponseData.Raw[];
48
50
  yearly_price?: BillingPriceResponseData.Raw | null;
49
51
  }
50
52
  }
@@ -15,5 +15,6 @@ export declare namespace CompanyPlanWithBillingSubView {
15
15
  name: string;
16
16
  plan_period?: string | null;
17
17
  plan_price?: number | null;
18
+ plan_version_id?: string | null;
18
19
  }
19
20
  }
@@ -1,13 +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 { BillingCreditExpiryType } from "../../../../types/BillingCreditExpiryType";
5
- import { BillingCreditExpiryUnit } from "../../../../types/BillingCreditExpiryUnit";
6
- import { BillingPlanCreditGrantResetCadence } from "../../../../types/BillingPlanCreditGrantResetCadence";
7
- import { BillingPlanCreditGrantResetStart } from "../../../../types/BillingPlanCreditGrantResetStart";
8
- import { BillingPlanCreditGrantResetType } from "../../../../types/BillingPlanCreditGrantResetType";
9
- import { CreditAutoTopupAmountType } from "../../../../types/CreditAutoTopupAmountType";
10
- export declare const CreateBillingPlanCreditGrantRequestBody: core.serialization.Schema<serializers.CreateBillingPlanCreditGrantRequestBody.Raw, Schematic.CreateBillingPlanCreditGrantRequestBody>;
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ import { BillingCreditExpiryType } from "./BillingCreditExpiryType";
5
+ import { BillingCreditExpiryUnit } from "./BillingCreditExpiryUnit";
6
+ import { BillingPlanCreditGrantResetCadence } from "./BillingPlanCreditGrantResetCadence";
7
+ import { BillingPlanCreditGrantResetStart } from "./BillingPlanCreditGrantResetStart";
8
+ import { BillingPlanCreditGrantResetType } from "./BillingPlanCreditGrantResetType";
9
+ import { CreditAutoTopupAmountType } from "./CreditAutoTopupAmountType";
10
+ export declare const CreateBillingPlanCreditGrantRequestBody: core.serialization.ObjectSchema<serializers.CreateBillingPlanCreditGrantRequestBody.Raw, Schematic.CreateBillingPlanCreditGrantRequestBody>;
11
11
  export declare namespace CreateBillingPlanCreditGrantRequestBody {
12
12
  interface Raw {
13
13
  apply_to_existing?: boolean | null;
@@ -0,0 +1,39 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ import { BillingTiersMode } from "./BillingTiersMode";
5
+ import { CreateEntitlementInBundleRequestBodyMetricPeriod } from "./CreateEntitlementInBundleRequestBodyMetricPeriod";
6
+ import { CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset } from "./CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset";
7
+ import { CreatePriceTierRequestBody } from "./CreatePriceTierRequestBody";
8
+ import { EntitlementPriceBehavior } from "./EntitlementPriceBehavior";
9
+ import { EntitlementValueType } from "./EntitlementValueType";
10
+ export declare const CreateEntitlementInBundleRequestBody: core.serialization.ObjectSchema<serializers.CreateEntitlementInBundleRequestBody.Raw, Schematic.CreateEntitlementInBundleRequestBody>;
11
+ export declare namespace CreateEntitlementInBundleRequestBody {
12
+ interface Raw {
13
+ billing_product_id?: string | null;
14
+ billing_threshold?: number | null;
15
+ credit_consumption_rate?: number | null;
16
+ currency?: string | null;
17
+ feature_id: string;
18
+ metric_period?: CreateEntitlementInBundleRequestBodyMetricPeriod.Raw | null;
19
+ metric_period_month_reset?: CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset.Raw | null;
20
+ monthly_metered_price_id?: string | null;
21
+ monthly_price_tiers?: CreatePriceTierRequestBody.Raw[] | null;
22
+ monthly_unit_price?: number | null;
23
+ monthly_unit_price_decimal?: string | null;
24
+ overage_billing_product_id?: string | null;
25
+ price_behavior?: EntitlementPriceBehavior.Raw | null;
26
+ price_tiers?: CreatePriceTierRequestBody.Raw[] | null;
27
+ soft_limit?: number | null;
28
+ tier_mode?: BillingTiersMode.Raw | null;
29
+ value_bool?: boolean | null;
30
+ value_credit_id?: string | null;
31
+ value_numeric?: number | null;
32
+ value_trait_id?: string | null;
33
+ value_type: EntitlementValueType.Raw;
34
+ yearly_metered_price_id?: string | null;
35
+ yearly_price_tiers?: CreatePriceTierRequestBody.Raw[] | null;
36
+ yearly_unit_price?: number | null;
37
+ yearly_unit_price_decimal?: string | null;
38
+ }
39
+ }
@@ -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 CreateEntitlementInBundleRequestBodyMetricPeriod: core.serialization.Schema<serializers.CreateEntitlementInBundleRequestBodyMetricPeriod.Raw, Schematic.CreateEntitlementInBundleRequestBodyMetricPeriod>;
5
+ export declare namespace CreateEntitlementInBundleRequestBodyMetricPeriod {
6
+ type Raw = "all_time" | "current_month" | "current_week" | "current_day";
7
+ }
@@ -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 CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset: core.serialization.Schema<serializers.CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset.Raw, Schematic.CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset>;
5
+ export declare namespace CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset {
6
+ type Raw = "first_of_month" | "billing_cycle";
7
+ }
@@ -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 { PlanType } from "./PlanType";
5
+ export declare const CreatePlanRequestBody: core.serialization.ObjectSchema<serializers.CreatePlanRequestBody.Raw, Schematic.CreatePlanRequestBody>;
6
+ export declare namespace CreatePlanRequestBody {
7
+ interface Raw {
8
+ description: string;
9
+ icon?: string | null;
10
+ name: string;
11
+ plan_type: PlanType.Raw;
12
+ }
13
+ }
@@ -5,6 +5,7 @@ import { BillingCreditExpiryType } from "./BillingCreditExpiryType";
5
5
  import { BillingCreditExpiryUnit } from "./BillingCreditExpiryUnit";
6
6
  import { BillingCreditGrantReason } from "./BillingCreditGrantReason";
7
7
  import { BillingCreditGrantZeroedOutReason } from "./BillingCreditGrantZeroedOutReason";
8
+ import { BillingPlanCreditGrantResetCadence } from "./BillingPlanCreditGrantResetCadence";
8
9
  import { BillingProductPriceResponseData } from "./BillingProductPriceResponseData";
9
10
  import { CreditTransferView } from "./CreditTransferView";
10
11
  export declare const CreditCompanyGrantView: core.serialization.ObjectSchema<serializers.CreditCompanyGrantView.Raw, Schematic.CreditCompanyGrantView>;
@@ -32,6 +33,8 @@ export declare namespace CreditCompanyGrantView {
32
33
  quantity: number;
33
34
  quantity_remaining: number;
34
35
  quantity_used: number;
36
+ renewal_enabled: boolean;
37
+ renewal_period?: BillingPlanCreditGrantResetCadence.Raw | null;
35
38
  singular_name?: string | null;
36
39
  source_label: string;
37
40
  transfers?: CreditTransferView.Raw[] | null;
@@ -0,0 +1,9 @@
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 DeleteBillingPlanCreditGrantRequestBody: core.serialization.ObjectSchema<serializers.DeleteBillingPlanCreditGrantRequestBody.Raw, Schematic.DeleteBillingPlanCreditGrantRequestBody>;
5
+ export declare namespace DeleteBillingPlanCreditGrantRequestBody {
6
+ interface Raw {
7
+ apply_to_existing?: boolean | null;
8
+ }
9
+ }
@@ -26,7 +26,7 @@ export declare namespace EventDetailResponseData {
26
26
  status: EventStatus.Raw;
27
27
  subtype?: string | null;
28
28
  type: EventType.Raw;
29
- updated_at: string;
29
+ updated_at?: string | null;
30
30
  user?: PreviewObject.Raw | null;
31
31
  user_id?: string | null;
32
32
  }
@@ -23,7 +23,7 @@ export declare namespace EventResponseData {
23
23
  status: EventStatus.Raw;
24
24
  subtype?: string | null;
25
25
  type: EventType.Raw;
26
- updated_at: string;
26
+ updated_at?: string | null;
27
27
  user_id?: string | null;
28
28
  }
29
29
  }
@@ -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 PlanBundleAction: core.serialization.Schema<serializers.PlanBundleAction.Raw, Schematic.PlanBundleAction>;
5
+ export declare namespace PlanBundleAction {
6
+ type Raw = "create" | "update" | "delete";
7
+ }
@@ -0,0 +1,17 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ import { CreateBillingPlanCreditGrantRequestBody } from "./CreateBillingPlanCreditGrantRequestBody";
5
+ import { DeleteBillingPlanCreditGrantRequestBody } from "./DeleteBillingPlanCreditGrantRequestBody";
6
+ import { PlanBundleAction } from "./PlanBundleAction";
7
+ import { UpdateBillingPlanCreditGrantRequestBody } from "./UpdateBillingPlanCreditGrantRequestBody";
8
+ export declare const PlanBundleCreditGrantRequestBody: core.serialization.ObjectSchema<serializers.PlanBundleCreditGrantRequestBody.Raw, Schematic.PlanBundleCreditGrantRequestBody>;
9
+ export declare namespace PlanBundleCreditGrantRequestBody {
10
+ interface Raw {
11
+ action: PlanBundleAction.Raw;
12
+ create_req?: CreateBillingPlanCreditGrantRequestBody.Raw | null;
13
+ credit_grant_id?: string | null;
14
+ delete_req?: DeleteBillingPlanCreditGrantRequestBody.Raw | null;
15
+ update_req?: UpdateBillingPlanCreditGrantRequestBody.Raw | null;
16
+ }
17
+ }
@@ -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 { CreateEntitlementInBundleRequestBody } from "./CreateEntitlementInBundleRequestBody";
5
+ import { PlanBundleAction } from "./PlanBundleAction";
6
+ export declare const PlanBundleEntitlementRequestBody: core.serialization.ObjectSchema<serializers.PlanBundleEntitlementRequestBody.Raw, Schematic.PlanBundleEntitlementRequestBody>;
7
+ export declare namespace PlanBundleEntitlementRequestBody {
8
+ interface Raw {
9
+ action: PlanBundleAction.Raw;
10
+ entitlement_id?: string | null;
11
+ req?: CreateEntitlementInBundleRequestBody.Raw | null;
12
+ }
13
+ }
@@ -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 { BillingPlanCreditGrantResponseData } from "./BillingPlanCreditGrantResponseData";
5
+ import { BillingProductPlanResponseData } from "./BillingProductPlanResponseData";
6
+ import { PlanEntitlementResponseData } from "./PlanEntitlementResponseData";
7
+ import { PlanResponseData } from "./PlanResponseData";
8
+ import { PlanTraitResponseData } from "./PlanTraitResponseData";
9
+ export declare const PlanBundleResponseData: core.serialization.ObjectSchema<serializers.PlanBundleResponseData.Raw, Schematic.PlanBundleResponseData>;
10
+ export declare namespace PlanBundleResponseData {
11
+ interface Raw {
12
+ billing_product?: BillingProductPlanResponseData.Raw | null;
13
+ credit_grants?: BillingPlanCreditGrantResponseData.Raw[] | null;
14
+ entitlements?: PlanEntitlementResponseData.Raw[] | null;
15
+ plan?: PlanResponseData.Raw | null;
16
+ traits?: PlanTraitResponseData.Raw[] | null;
17
+ }
18
+ }
@@ -3,5 +3,5 @@ import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
4
  export declare const PlanChangeSubscriptionAction: core.serialization.Schema<serializers.PlanChangeSubscriptionAction.Raw, Schematic.PlanChangeSubscriptionAction>;
5
5
  export declare namespace PlanChangeSubscriptionAction {
6
- type Raw = "downgrade" | "invalid" | "subscribe" | "unsubscribe" | "upgrade" | "upgrade_trial";
6
+ type Raw = "adjustment" | "downgrade" | "invalid" | "subscribe" | "unsubscribe" | "upgrade" | "upgrade_trial";
7
7
  }
@@ -8,6 +8,7 @@ import { ChargeType } from "./ChargeType";
8
8
  import { FeatureDetailResponseData } from "./FeatureDetailResponseData";
9
9
  import { PlanControlledByType } from "./PlanControlledByType";
10
10
  import { PlanType } from "./PlanType";
11
+ import { PlanVersionResponseData } from "./PlanVersionResponseData";
11
12
  export declare const PlanDetailResponseData: core.serialization.ObjectSchema<serializers.PlanDetailResponseData.Raw, Schematic.PlanDetailResponseData>;
12
13
  export declare namespace PlanDetailResponseData {
13
14
  interface Raw {
@@ -31,6 +32,7 @@ export declare namespace PlanDetailResponseData {
31
32
  plan_type: PlanType.Raw;
32
33
  trial_days?: number | null;
33
34
  updated_at: string;
35
+ versions: PlanVersionResponseData.Raw[];
34
36
  yearly_price?: BillingPriceResponseData.Raw | null;
35
37
  }
36
38
  }
@@ -10,6 +10,7 @@ import { FeatureDetailResponseData } from "./FeatureDetailResponseData";
10
10
  import { PlanControlledByType } from "./PlanControlledByType";
11
11
  import { PlanEntitlementResponseData } from "./PlanEntitlementResponseData";
12
12
  import { PlanType } from "./PlanType";
13
+ import { PlanVersionResponseData } from "./PlanVersionResponseData";
13
14
  export declare const PlanGroupPlanDetailResponseData: core.serialization.ObjectSchema<serializers.PlanGroupPlanDetailResponseData.Raw, Schematic.PlanGroupPlanDetailResponseData>;
14
15
  export declare namespace PlanGroupPlanDetailResponseData {
15
16
  interface Raw {
@@ -37,6 +38,7 @@ export declare namespace PlanGroupPlanDetailResponseData {
37
38
  plan_type: PlanType.Raw;
38
39
  trial_days?: number | null;
39
40
  updated_at: string;
41
+ versions: PlanVersionResponseData.Raw[];
40
42
  yearly_price?: BillingPriceResponseData.Raw | null;
41
43
  }
42
44
  }
@@ -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 { PlanType } from "./PlanType";
5
+ import { PlanVersionStatus } from "./PlanVersionStatus";
6
+ export declare const PlanVersionResponseData: core.serialization.ObjectSchema<serializers.PlanVersionResponseData.Raw, Schematic.PlanVersionResponseData>;
7
+ export declare namespace PlanVersionResponseData {
8
+ interface Raw {
9
+ created_at: string;
10
+ description: string;
11
+ environment_id: string;
12
+ icon: string;
13
+ id: string;
14
+ name: string;
15
+ original_plan_id?: string | null;
16
+ plan_type: PlanType.Raw;
17
+ status: PlanVersionStatus.Raw;
18
+ updated_at: string;
19
+ version: number;
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 PlanVersionStatus: core.serialization.Schema<serializers.PlanVersionStatus.Raw, Schematic.PlanVersionStatus>;
5
+ export declare namespace PlanVersionStatus {
6
+ type Raw = "published" | "draft" | "archived";
7
+ }
@@ -6,7 +6,7 @@ export declare namespace RawEventResponseData {
6
6
  interface Raw {
7
7
  captured_at: string;
8
8
  event_id?: string | null;
9
- remote_addr: string;
9
+ remote_addr?: string | null;
10
10
  remote_ip: string;
11
11
  user_agent: string;
12
12
  }
@@ -1,13 +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 { BillingCreditExpiryType } from "../../../../types/BillingCreditExpiryType";
5
- import { BillingCreditExpiryUnit } from "../../../../types/BillingCreditExpiryUnit";
6
- import { BillingPlanCreditGrantResetCadence } from "../../../../types/BillingPlanCreditGrantResetCadence";
7
- import { BillingPlanCreditGrantResetStart } from "../../../../types/BillingPlanCreditGrantResetStart";
8
- import { BillingPlanCreditGrantResetType } from "../../../../types/BillingPlanCreditGrantResetType";
9
- import { CreditAutoTopupAmountType } from "../../../../types/CreditAutoTopupAmountType";
10
- export declare const UpdateBillingPlanCreditGrantRequestBody: core.serialization.Schema<serializers.UpdateBillingPlanCreditGrantRequestBody.Raw, Schematic.UpdateBillingPlanCreditGrantRequestBody>;
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ import { BillingCreditExpiryType } from "./BillingCreditExpiryType";
5
+ import { BillingCreditExpiryUnit } from "./BillingCreditExpiryUnit";
6
+ import { BillingPlanCreditGrantResetCadence } from "./BillingPlanCreditGrantResetCadence";
7
+ import { BillingPlanCreditGrantResetStart } from "./BillingPlanCreditGrantResetStart";
8
+ import { BillingPlanCreditGrantResetType } from "./BillingPlanCreditGrantResetType";
9
+ import { CreditAutoTopupAmountType } from "./CreditAutoTopupAmountType";
10
+ export declare const UpdateBillingPlanCreditGrantRequestBody: core.serialization.ObjectSchema<serializers.UpdateBillingPlanCreditGrantRequestBody.Raw, Schematic.UpdateBillingPlanCreditGrantRequestBody>;
11
11
  export declare namespace UpdateBillingPlanCreditGrantRequestBody {
12
12
  interface Raw {
13
13
  apply_to_existing?: boolean | 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 UpdatePlanRequestBody: core.serialization.ObjectSchema<serializers.UpdatePlanRequestBody.Raw, Schematic.UpdatePlanRequestBody>;
5
+ export declare namespace UpdatePlanRequestBody {
6
+ interface Raw {
7
+ description?: string | null;
8
+ icon?: string | null;
9
+ name: string;
10
+ }
11
+ }
@@ -1,8 +1,8 @@
1
- import type * as Schematic from "../../../../../api/index";
2
- import * as core from "../../../../../core";
3
- import type * as serializers from "../../../../index";
4
- import { ChargeType } from "../../../../types/ChargeType";
5
- export declare const UpsertBillingProductRequestBody: core.serialization.Schema<serializers.UpsertBillingProductRequestBody.Raw, Schematic.UpsertBillingProductRequestBody>;
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ import { ChargeType } from "./ChargeType";
5
+ export declare const UpsertBillingProductRequestBody: core.serialization.ObjectSchema<serializers.UpsertBillingProductRequestBody.Raw, Schematic.UpsertBillingProductRequestBody>;
6
6
  export declare namespace UpsertBillingProductRequestBody {
7
7
  interface Raw {
8
8
  billing_product_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 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.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" | "rule.deleted" | "test.send" | "user.created" | "user.deleted" | "user.updated";
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.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" | "rule.deleted" | "test.send" | "user.created" | "user.deleted" | "user.updated" | "auto.topup.hard.failure" | "auto.topup.retry.exceeded";
7
7
  }