@schematichq/schematic-typescript-node 1.2.4 → 1.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/LICENSE +21 -0
  2. package/dist/Client.d.ts +11 -57
  3. package/dist/api/resources/companies/client/Client.d.ts +41 -2
  4. package/dist/api/resources/companies/client/requests/DeleteCompanyRequest.d.ts +14 -0
  5. package/dist/api/resources/companies/client/requests/ListPlanChangesRequest.d.ts +28 -0
  6. package/dist/api/resources/companies/client/requests/index.d.ts +2 -0
  7. package/dist/api/resources/companies/types/DeleteCompanyParams.d.ts +10 -0
  8. package/dist/api/resources/companies/types/DeleteCompanyResponse.d.ts +1 -1
  9. package/dist/api/resources/{features/types/CountAudienceCompaniesResponse.d.ts → companies/types/GetPlanChangeResponse.d.ts} +2 -2
  10. package/dist/api/resources/companies/types/ListPlanChangesParams.d.ts +17 -0
  11. package/dist/api/resources/{plans/types/DeleteAudienceResponse.d.ts → companies/types/ListPlanChangesResponse.d.ts} +3 -3
  12. package/dist/api/resources/companies/types/index.d.ts +4 -0
  13. package/dist/api/resources/credits/client/Client.d.ts +46 -24
  14. package/dist/api/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.d.ts +8 -0
  15. package/dist/api/resources/credits/client/requests/DeleteBillingPlanCreditGrantRequest.d.ts +12 -0
  16. package/dist/api/resources/credits/client/requests/UpdateBillingPlanCreditGrantRequestBody.d.ts +21 -0
  17. package/dist/api/resources/credits/client/requests/index.d.ts +2 -0
  18. package/dist/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyAutoTopupExpiryType.d.ts +11 -0
  19. package/dist/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyAutoTopupExpiryUnit.d.ts +8 -0
  20. package/dist/api/resources/credits/types/DeleteBillingPlanCreditGrantParams.d.ts +9 -0
  21. package/dist/api/resources/credits/types/DeleteBillingPlanCreditGrantResponse.d.ts +1 -1
  22. package/dist/api/resources/credits/types/UpdateBillingPlanCreditGrantRequestBodyExpiryType.d.ts +11 -0
  23. package/dist/api/resources/credits/types/UpdateBillingPlanCreditGrantRequestBodyExpiryUnit.d.ts +8 -0
  24. package/dist/api/resources/credits/types/UpdateBillingPlanCreditGrantRequestBodyResetCadence.d.ts +10 -0
  25. package/dist/api/resources/credits/types/UpdateBillingPlanCreditGrantRequestBodyResetStart.d.ts +8 -0
  26. package/dist/api/resources/credits/types/UpdateBillingPlanCreditGrantRequestBodyResetType.d.ts +8 -0
  27. package/dist/api/resources/{features/types/CountAudienceUsersResponse.d.ts → credits/types/UpdateBillingPlanCreditGrantResponse.d.ts} +2 -2
  28. package/dist/api/resources/credits/types/index.d.ts +9 -0
  29. package/dist/api/resources/features/client/Client.d.ts +0 -112
  30. package/dist/api/resources/features/types/index.d.ts +0 -4
  31. package/dist/api/resources/index.d.ts +3 -3
  32. package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +0 -1
  33. package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +0 -1
  34. package/dist/api/resources/plans/client/Client.d.ts +0 -58
  35. package/dist/api/resources/plans/client/requests/index.d.ts +0 -1
  36. package/dist/api/resources/plans/types/index.d.ts +0 -3
  37. package/dist/api/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +2 -1
  38. package/dist/api/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +2 -1
  39. package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +7 -0
  40. package/dist/api/types/Condition.d.ts +4 -4
  41. package/dist/api/types/ConditionConditionType.d.ts +15 -0
  42. package/dist/api/types/ConditionMetricPeriod.d.ts +10 -0
  43. package/dist/api/types/ConditionMetricPeriodMonthReset.d.ts +8 -0
  44. package/dist/api/types/ConditionOperator.d.ts +14 -0
  45. package/dist/api/types/CreateOrUpdateConditionGroupRequestBody.d.ts +0 -1
  46. package/dist/api/types/CreateOrUpdateRuleRequestBodyRuleType.d.ts +1 -2
  47. package/dist/api/types/CreditGrantExpiryRequestBody.d.ts +12 -0
  48. package/dist/api/types/CreditGrantExpiryRequestBodyExpiryType.d.ts +11 -0
  49. package/dist/api/types/CreditGrantExpiryRequestBodyExpiryUnit.d.ts +8 -0
  50. package/dist/api/types/CreditGrantExpiryRequestBodyResetCadence.d.ts +10 -0
  51. package/dist/api/types/CreditGrantExpiryRequestBodyResetStart.d.ts +8 -0
  52. package/dist/api/types/CreditGrantExpiryRequestBodyResetType.d.ts +8 -0
  53. package/dist/api/types/CreditLedgerEnrichedEntryResponseData.d.ts +1 -0
  54. package/dist/api/types/PlanChangeResponseData.d.ts +29 -0
  55. package/dist/api/types/PlanChangeResponseDataAction.d.ts +15 -0
  56. package/dist/api/types/PlanChangeResponseDataActorType.d.ts +10 -0
  57. package/dist/api/types/PlanChangeResponseDataBasePlanAction.d.ts +13 -0
  58. package/dist/api/types/PlanChangeResponseDataSubscriptionChangeAction.d.ts +15 -0
  59. package/dist/api/types/PlanCreditGrantView.d.ts +7 -0
  60. package/dist/api/types/PlanSnapshotView.d.ts +10 -0
  61. package/dist/api/types/Rule.d.ts +1 -1
  62. package/dist/api/types/RuleConditionDetailResponseData.d.ts +0 -1
  63. package/dist/api/types/RuleConditionGroupDetailResponseData.d.ts +0 -1
  64. package/dist/api/types/RuleConditionGroupResponseData.d.ts +0 -1
  65. package/dist/api/types/RuleConditionResponseData.d.ts +0 -1
  66. package/dist/api/types/RuleDetailResponseData.d.ts +0 -1
  67. package/dist/api/types/RuleResponseData.d.ts +0 -1
  68. package/dist/api/types/RuleRuleType.d.ts +13 -0
  69. package/dist/api/types/SubscriptionTraitUpdate.d.ts +12 -0
  70. package/dist/api/types/TraitDefinition.d.ts +3 -2
  71. package/dist/api/types/TraitDefinitionComparableType.d.ts +10 -0
  72. package/dist/api/types/TraitDefinitionEntityType.d.ts +8 -0
  73. package/dist/api/types/index.d.ts +20 -4
  74. package/dist/index.js +3 -3
  75. package/dist/serialization/resources/companies/types/DeleteCompanyParams.d.ts +13 -0
  76. package/dist/serialization/resources/companies/types/DeleteCompanyResponse.d.ts +2 -1
  77. package/dist/serialization/resources/companies/types/GetPlanChangeResponse.d.ts +14 -0
  78. package/dist/serialization/resources/companies/types/ListPlanChangesParams.d.ts +18 -0
  79. package/dist/serialization/resources/companies/types/ListPlanChangesResponse.d.ts +15 -0
  80. package/dist/serialization/resources/companies/types/index.d.ts +4 -0
  81. package/dist/serialization/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.d.ts +10 -0
  82. package/dist/serialization/resources/credits/client/requests/UpdateBillingPlanCreditGrantRequestBody.d.ts +24 -0
  83. package/dist/serialization/resources/credits/client/requests/index.d.ts +1 -0
  84. package/dist/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyAutoTopupExpiryType.d.ts +10 -0
  85. package/dist/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyAutoTopupExpiryUnit.d.ts +10 -0
  86. package/dist/serialization/resources/credits/types/DeleteBillingPlanCreditGrantParams.d.ts +12 -0
  87. package/dist/serialization/resources/credits/types/DeleteBillingPlanCreditGrantResponse.d.ts +2 -1
  88. package/dist/serialization/resources/credits/types/UpdateBillingPlanCreditGrantRequestBodyExpiryType.d.ts +10 -0
  89. package/dist/serialization/resources/credits/types/UpdateBillingPlanCreditGrantRequestBodyExpiryUnit.d.ts +10 -0
  90. package/dist/serialization/resources/credits/types/UpdateBillingPlanCreditGrantRequestBodyResetCadence.d.ts +10 -0
  91. package/dist/serialization/resources/credits/types/UpdateBillingPlanCreditGrantRequestBodyResetStart.d.ts +10 -0
  92. package/dist/serialization/resources/credits/types/UpdateBillingPlanCreditGrantRequestBodyResetType.d.ts +10 -0
  93. package/dist/serialization/resources/credits/types/UpdateBillingPlanCreditGrantResponse.d.ts +14 -0
  94. package/dist/serialization/resources/credits/types/index.d.ts +9 -0
  95. package/dist/serialization/resources/features/types/index.d.ts +0 -4
  96. package/dist/serialization/resources/index.d.ts +3 -3
  97. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +0 -1
  98. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +0 -1
  99. package/dist/serialization/resources/plans/client/requests/index.d.ts +0 -1
  100. package/dist/serialization/resources/plans/types/index.d.ts +0 -3
  101. package/dist/serialization/resources/webhooks/types/CreateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
  102. package/dist/serialization/resources/webhooks/types/UpdateWebhookRequestBodyRequestTypesItem.d.ts +1 -1
  103. package/dist/serialization/types/BillingPlanCreditGrantResponseData.d.ts +7 -0
  104. package/dist/serialization/types/Condition.d.ts +8 -4
  105. package/dist/serialization/types/ConditionConditionType.d.ts +10 -0
  106. package/dist/serialization/types/ConditionMetricPeriod.d.ts +10 -0
  107. package/dist/serialization/types/ConditionMetricPeriodMonthReset.d.ts +10 -0
  108. package/dist/serialization/types/ConditionOperator.d.ts +10 -0
  109. package/dist/serialization/types/CreateOrUpdateConditionGroupRequestBody.d.ts +0 -1
  110. package/dist/serialization/types/CreateOrUpdateRuleRequestBodyRuleType.d.ts +1 -1
  111. package/dist/serialization/types/CreditGrantExpiryRequestBody.d.ts +22 -0
  112. package/dist/serialization/types/CreditGrantExpiryRequestBodyExpiryType.d.ts +10 -0
  113. package/dist/serialization/types/CreditGrantExpiryRequestBodyExpiryUnit.d.ts +10 -0
  114. package/dist/serialization/types/CreditGrantExpiryRequestBodyResetCadence.d.ts +10 -0
  115. package/dist/serialization/types/CreditGrantExpiryRequestBodyResetStart.d.ts +10 -0
  116. package/dist/serialization/types/CreditGrantExpiryRequestBodyResetType.d.ts +10 -0
  117. package/dist/serialization/types/CreditLedgerEnrichedEntryResponseData.d.ts +1 -0
  118. package/dist/serialization/types/PlanChangeResponseData.d.ts +40 -0
  119. package/dist/serialization/types/PlanChangeResponseDataAction.d.ts +10 -0
  120. package/dist/serialization/types/PlanChangeResponseDataActorType.d.ts +10 -0
  121. package/dist/serialization/types/PlanChangeResponseDataBasePlanAction.d.ts +10 -0
  122. package/dist/serialization/types/PlanChangeResponseDataSubscriptionChangeAction.d.ts +10 -0
  123. package/dist/serialization/types/PlanCreditGrantView.d.ts +7 -0
  124. package/dist/serialization/types/PlanSnapshotView.d.ts +16 -0
  125. package/dist/serialization/types/Rule.d.ts +2 -1
  126. package/dist/serialization/types/RuleConditionDetailResponseData.d.ts +0 -1
  127. package/dist/serialization/types/RuleConditionGroupDetailResponseData.d.ts +0 -1
  128. package/dist/serialization/types/RuleConditionGroupResponseData.d.ts +0 -1
  129. package/dist/serialization/types/RuleConditionResponseData.d.ts +0 -1
  130. package/dist/serialization/types/RuleDetailResponseData.d.ts +0 -1
  131. package/dist/serialization/types/RuleResponseData.d.ts +0 -1
  132. package/dist/serialization/types/RuleRuleType.d.ts +10 -0
  133. package/dist/serialization/types/SubscriptionTraitUpdate.d.ts +18 -0
  134. package/dist/serialization/types/TraitDefinition.d.ts +4 -2
  135. package/dist/serialization/types/TraitDefinitionComparableType.d.ts +10 -0
  136. package/dist/serialization/types/TraitDefinitionEntityType.d.ts +10 -0
  137. package/dist/serialization/types/index.d.ts +20 -4
  138. package/package.json +2 -1
  139. package/dist/api/resources/features/types/ListAudienceCompaniesResponse.d.ts +0 -9
  140. package/dist/api/resources/features/types/ListAudienceUsersResponse.d.ts +0 -9
  141. package/dist/api/resources/plans/client/requests/UpdateAudienceRequestBody.d.ts +0 -25
  142. package/dist/api/resources/plans/types/GetAudienceResponse.d.ts +0 -9
  143. package/dist/api/resources/plans/types/UpdateAudienceResponse.d.ts +0 -9
  144. package/dist/api/types/AudienceRequestBody.d.ts +0 -13
  145. package/dist/api/types/PaginationFilter.d.ts +0 -9
  146. package/dist/api/types/PlanAudienceDetailResponseData.d.ts +0 -18
  147. package/dist/api/types/PlanAudienceResponseData.d.ts +0 -15
  148. package/dist/serialization/resources/features/types/CountAudienceCompaniesResponse.d.ts +0 -14
  149. package/dist/serialization/resources/features/types/CountAudienceUsersResponse.d.ts +0 -14
  150. package/dist/serialization/resources/features/types/ListAudienceCompaniesResponse.d.ts +0 -14
  151. package/dist/serialization/resources/features/types/ListAudienceUsersResponse.d.ts +0 -14
  152. package/dist/serialization/resources/plans/client/requests/UpdateAudienceRequestBody.d.ts +0 -15
  153. package/dist/serialization/resources/plans/types/DeleteAudienceResponse.d.ts +0 -14
  154. package/dist/serialization/resources/plans/types/GetAudienceResponse.d.ts +0 -14
  155. package/dist/serialization/resources/plans/types/UpdateAudienceResponse.d.ts +0 -14
  156. package/dist/serialization/types/AudienceRequestBody.d.ts +0 -18
  157. package/dist/serialization/types/PaginationFilter.d.ts +0 -13
  158. package/dist/serialization/types/PlanAudienceDetailResponseData.d.ts +0 -25
  159. package/dist/serialization/types/PlanAudienceResponseData.d.ts +0 -21
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023-2025 Schematic, Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/Client.d.ts CHANGED
@@ -4,7 +4,6 @@
4
4
  import * as environments from "./environments";
5
5
  import * as core from "./core";
6
6
  import { Accounts } from "./api/resources/accounts/client/Client";
7
- import { Features } from "./api/resources/features/client/Client";
8
7
  import { Billing } from "./api/resources/billing/client/Client";
9
8
  import { Credits } from "./api/resources/credits/client/Client";
10
9
  import { Checkout } from "./api/resources/checkout/client/Client";
@@ -15,6 +14,7 @@ import { Components } from "./api/resources/components/client/Client";
15
14
  import { Crm } from "./api/resources/crm/client/Client";
16
15
  import { Dataexports } from "./api/resources/dataexports/client/Client";
17
16
  import { Events } from "./api/resources/events/client/Client";
17
+ import { Features } from "./api/resources/features/client/Client";
18
18
  import { Plangroups } from "./api/resources/plangroups/client/Client";
19
19
  import { Accesstokens } from "./api/resources/accesstokens/client/Client";
20
20
  import { Webhooks } from "./api/resources/webhooks/client/Client";
@@ -40,7 +40,6 @@ export declare namespace SchematicClient {
40
40
  export declare class SchematicClient {
41
41
  protected readonly _options: SchematicClient.Options;
42
42
  protected _accounts: Accounts | undefined;
43
- protected _features: Features | undefined;
44
43
  protected _billing: Billing | undefined;
45
44
  protected _credits: Credits | undefined;
46
45
  protected _checkout: Checkout | undefined;
@@ -51,12 +50,12 @@ export declare class SchematicClient {
51
50
  protected _crm: Crm | undefined;
52
51
  protected _dataexports: Dataexports | undefined;
53
52
  protected _events: Events | undefined;
53
+ protected _features: Features | undefined;
54
54
  protected _plangroups: Plangroups | undefined;
55
55
  protected _accesstokens: Accesstokens | undefined;
56
56
  protected _webhooks: Webhooks | undefined;
57
57
  constructor(_options?: SchematicClient.Options);
58
58
  get accounts(): Accounts;
59
- get features(): Features;
60
59
  get billing(): Billing;
61
60
  get credits(): Credits;
62
61
  get checkout(): Checkout;
@@ -67,73 +66,28 @@ export declare class SchematicClient {
67
66
  get crm(): Crm;
68
67
  get dataexports(): Dataexports;
69
68
  get events(): Events;
69
+ get features(): Features;
70
70
  get plangroups(): Plangroups;
71
71
  get accesstokens(): Accesstokens;
72
72
  get webhooks(): Webhooks;
73
73
  /**
74
+ * @param {string} planAudienceId
74
75
  * @param {SchematicClient.RequestOptions} requestOptions - Request-specific configuration.
75
76
  *
76
77
  * @example
77
- * await client.getCredit()
78
- */
79
- getCredit(requestOptions?: SchematicClient.RequestOptions): core.HttpResponsePromise<void>;
80
- private __getCredit;
81
- /**
82
- * @param {SchematicClient.RequestOptions} requestOptions - Request-specific configuration.
83
- *
84
- * @example
85
- * await client.updateCredit()
86
- */
87
- updateCredit(requestOptions?: SchematicClient.RequestOptions): core.HttpResponsePromise<void>;
88
- private __updateCredit;
89
- /**
90
- * @param {SchematicClient.RequestOptions} requestOptions - Request-specific configuration.
91
- *
92
- * @example
93
- * await client.deleteCredit()
94
- */
95
- deleteCredit(requestOptions?: SchematicClient.RequestOptions): core.HttpResponsePromise<void>;
96
- private __deleteCredit;
97
- /**
98
- * @param {SchematicClient.RequestOptions} requestOptions - Request-specific configuration.
99
- *
100
- * @example
101
- * await client.getCreditBundle()
102
- */
103
- getCreditBundle(requestOptions?: SchematicClient.RequestOptions): core.HttpResponsePromise<void>;
104
- private __getCreditBundle;
105
- /**
106
- * @param {SchematicClient.RequestOptions} requestOptions - Request-specific configuration.
107
- *
108
- * @example
109
- * await client.purchaseCreditBundle()
110
- */
111
- purchaseCreditBundle(requestOptions?: SchematicClient.RequestOptions): core.HttpResponsePromise<void>;
112
- private __purchaseCreditBundle;
113
- /**
114
- * @param {SchematicClient.RequestOptions} requestOptions - Request-specific configuration.
115
- *
116
- * @example
117
- * await client.updateCreditBundle()
118
- */
119
- updateCreditBundle(requestOptions?: SchematicClient.RequestOptions): core.HttpResponsePromise<void>;
120
- private __updateCreditBundle;
121
- /**
122
- * @param {SchematicClient.RequestOptions} requestOptions - Request-specific configuration.
123
- *
124
- * @example
125
- * await client.zeroOutCreditGrant()
78
+ * await client.putPlanAudiencesPlanAudienceId("plan_audience_id")
126
79
  */
127
- zeroOutCreditGrant(requestOptions?: SchematicClient.RequestOptions): core.HttpResponsePromise<void>;
128
- private __zeroOutCreditGrant;
80
+ putPlanAudiencesPlanAudienceId(planAudienceId: string, requestOptions?: SchematicClient.RequestOptions): core.HttpResponsePromise<void>;
81
+ private __putPlanAudiencesPlanAudienceId;
129
82
  /**
83
+ * @param {string} planAudienceId
130
84
  * @param {SchematicClient.RequestOptions} requestOptions - Request-specific configuration.
131
85
  *
132
86
  * @example
133
- * await client.deletePlanCreditGrant()
87
+ * await client.deletePlanAudiencesPlanAudienceId("plan_audience_id")
134
88
  */
135
- deletePlanCreditGrant(requestOptions?: SchematicClient.RequestOptions): core.HttpResponsePromise<void>;
136
- private __deletePlanCreditGrant;
89
+ deletePlanAudiencesPlanAudienceId(planAudienceId: string, requestOptions?: SchematicClient.RequestOptions): core.HttpResponsePromise<void>;
90
+ private __deletePlanAudiencesPlanAudienceId;
137
91
  protected _getCustomAuthorizationHeaders(): Promise<{
138
92
  "X-Schematic-Api-Key": string | undefined;
139
93
  }>;
@@ -84,6 +84,7 @@ export declare class Companies {
84
84
  private __getCompany;
85
85
  /**
86
86
  * @param {string} companyId - company_id
87
+ * @param {Schematic.DeleteCompanyRequest} request
87
88
  * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
88
89
  *
89
90
  * @throws {@link Schematic.BadRequestError}
@@ -93,9 +94,12 @@ export declare class Companies {
93
94
  * @throws {@link Schematic.InternalServerError}
94
95
  *
95
96
  * @example
96
- * await client.companies.deleteCompany("company_id")
97
+ * await client.companies.deleteCompany("company_id", {
98
+ * cancelSubscription: true,
99
+ * prorate: true
100
+ * })
97
101
  */
98
- deleteCompany(companyId: string, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.DeleteCompanyResponse>;
102
+ deleteCompany(companyId: string, request?: Schematic.DeleteCompanyRequest, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.DeleteCompanyResponse>;
99
103
  private __deleteCompany;
100
104
  /**
101
105
  * @param {Schematic.CountCompaniesRequest} request
@@ -489,6 +493,41 @@ export declare class Companies {
489
493
  */
490
494
  getEntityTraitValues(request: Schematic.GetEntityTraitValuesRequest, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.GetEntityTraitValuesResponse>;
491
495
  private __getEntityTraitValues;
496
+ /**
497
+ * @param {Schematic.ListPlanChangesRequest} request
498
+ * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
499
+ *
500
+ * @throws {@link Schematic.BadRequestError}
501
+ * @throws {@link Schematic.UnauthorizedError}
502
+ * @throws {@link Schematic.ForbiddenError}
503
+ * @throws {@link Schematic.NotFoundError}
504
+ * @throws {@link Schematic.InternalServerError}
505
+ *
506
+ * @example
507
+ * await client.companies.listPlanChanges({
508
+ * action: "action",
509
+ * basePlanAction: "base_plan_action",
510
+ * companyId: "company_id",
511
+ * limit: 1,
512
+ * offset: 1
513
+ * })
514
+ */
515
+ listPlanChanges(request?: Schematic.ListPlanChangesRequest, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.ListPlanChangesResponse>;
516
+ private __listPlanChanges;
517
+ /**
518
+ * @param {string} planChangeId - plan_change_id
519
+ * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
520
+ *
521
+ * @throws {@link Schematic.UnauthorizedError}
522
+ * @throws {@link Schematic.ForbiddenError}
523
+ * @throws {@link Schematic.NotFoundError}
524
+ * @throws {@link Schematic.InternalServerError}
525
+ *
526
+ * @example
527
+ * await client.companies.getPlanChange("plan_change_id")
528
+ */
529
+ getPlanChange(planChangeId: string, requestOptions?: Companies.RequestOptions): core.HttpResponsePromise<Schematic.GetPlanChangeResponse>;
530
+ private __getPlanChange;
492
531
  /**
493
532
  * @param {Schematic.ListPlanTraitsRequest} request
494
533
  * @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * cancelSubscription: true,
8
+ * prorate: true
9
+ * }
10
+ */
11
+ export interface DeleteCompanyRequest {
12
+ cancelSubscription?: boolean;
13
+ prorate?: boolean;
14
+ }
@@ -0,0 +1,28 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * action: "action",
8
+ * basePlanAction: "base_plan_action",
9
+ * companyId: "company_id",
10
+ * limit: 1,
11
+ * offset: 1
12
+ * }
13
+ */
14
+ export interface ListPlanChangesRequest {
15
+ action?: string;
16
+ basePlanAction?: string;
17
+ companyId?: string;
18
+ companyIds?: string | string[];
19
+ planIds?: string | string[];
20
+ /**
21
+ * Page limit (default 100)
22
+ */
23
+ limit?: number;
24
+ /**
25
+ * Page offset (default 0)
26
+ */
27
+ offset?: number;
28
+ }
@@ -1,4 +1,5 @@
1
1
  export { type ListCompaniesRequest } from "./ListCompaniesRequest";
2
+ export { type DeleteCompanyRequest } from "./DeleteCompanyRequest";
2
3
  export { type CountCompaniesRequest } from "./CountCompaniesRequest";
3
4
  export { type CountCompaniesForAdvancedFilterRequest } from "./CountCompaniesForAdvancedFilterRequest";
4
5
  export { type ListCompaniesForAdvancedFilterRequest } from "./ListCompaniesForAdvancedFilterRequest";
@@ -14,6 +15,7 @@ export { type CreateEntityTraitDefinitionRequestBody } from "./CreateEntityTrait
14
15
  export { type UpdateEntityTraitDefinitionRequestBody } from "./UpdateEntityTraitDefinitionRequestBody";
15
16
  export { type CountEntityTraitDefinitionsRequest } from "./CountEntityTraitDefinitionsRequest";
16
17
  export { type GetEntityTraitValuesRequest } from "./GetEntityTraitValuesRequest";
18
+ export { type ListPlanChangesRequest } from "./ListPlanChangesRequest";
17
19
  export { type ListPlanTraitsRequest } from "./ListPlanTraitsRequest";
18
20
  export { type CreatePlanTraitRequestBody } from "./CreatePlanTraitRequestBody";
19
21
  export { type UpdatePlanTraitRequestBody } from "./UpdatePlanTraitRequestBody";
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Input parameters
6
+ */
7
+ export interface DeleteCompanyParams {
8
+ cancelSubscription?: boolean;
9
+ prorate?: boolean;
10
+ }
@@ -5,5 +5,5 @@ import * as Schematic from "../../../index";
5
5
  export interface DeleteCompanyResponse {
6
6
  data: Schematic.DeleteResponse;
7
7
  /** Input parameters */
8
- params: Record<string, unknown>;
8
+ params: Schematic.DeleteCompanyParams;
9
9
  }
@@ -2,8 +2,8 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Schematic from "../../../index";
5
- export interface CountAudienceCompaniesResponse {
6
- data: Schematic.CountResponse;
5
+ export interface GetPlanChangeResponse {
6
+ data: Schematic.PlanChangeResponseData;
7
7
  /** Input parameters */
8
8
  params: Record<string, unknown>;
9
9
  }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Input parameters
6
+ */
7
+ export interface ListPlanChangesParams {
8
+ action?: string;
9
+ basePlanAction?: string;
10
+ companyId?: string;
11
+ companyIds?: string[];
12
+ /** Page limit (default 100) */
13
+ limit?: number;
14
+ /** Page offset (default 0) */
15
+ offset?: number;
16
+ planIds?: string[];
17
+ }
@@ -2,8 +2,8 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Schematic from "../../../index";
5
- export interface DeleteAudienceResponse {
6
- data: Schematic.DeleteResponse;
5
+ export interface ListPlanChangesResponse {
6
+ data: Schematic.PlanChangeResponseData[];
7
7
  /** Input parameters */
8
- params: Record<string, unknown>;
8
+ params: Schematic.ListPlanChangesParams;
9
9
  }
@@ -2,6 +2,7 @@ export * from "./ListCompaniesParams";
2
2
  export * from "./ListCompaniesResponse";
3
3
  export * from "./UpsertCompanyResponse";
4
4
  export * from "./GetCompanyResponse";
5
+ export * from "./DeleteCompanyParams";
5
6
  export * from "./DeleteCompanyResponse";
6
7
  export * from "./CountCompaniesParams";
7
8
  export * from "./CountCompaniesResponse";
@@ -54,6 +55,9 @@ export * from "./CountEntityTraitDefinitionsParams";
54
55
  export * from "./CountEntityTraitDefinitionsResponse";
55
56
  export * from "./GetEntityTraitValuesParams";
56
57
  export * from "./GetEntityTraitValuesResponse";
58
+ export * from "./ListPlanChangesParams";
59
+ export * from "./ListPlanChangesResponse";
60
+ export * from "./GetPlanChangeResponse";
57
61
  export * from "./ListPlanTraitsParams";
58
62
  export * from "./ListPlanTraitsResponse";
59
63
  export * from "./CreatePlanTraitResponse";
@@ -65,7 +65,7 @@ export declare class Credits {
65
65
  createBillingCredit(request: Schematic.CreateBillingCreditRequestBody, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.CreateBillingCreditResponse>;
66
66
  private __createBillingCredit;
67
67
  /**
68
- * @param {string} billingId - billing_id
68
+ * @param {string} creditId - credit_id
69
69
  * @param {Credits.RequestOptions} requestOptions - Request-specific configuration.
70
70
  *
71
71
  * @throws {@link Schematic.UnauthorizedError}
@@ -74,12 +74,12 @@ export declare class Credits {
74
74
  * @throws {@link Schematic.InternalServerError}
75
75
  *
76
76
  * @example
77
- * await client.credits.getSingleBillingCredit("billing_id")
77
+ * await client.credits.getSingleBillingCredit("credit_id")
78
78
  */
79
- getSingleBillingCredit(billingId: string, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.GetSingleBillingCreditResponse>;
79
+ getSingleBillingCredit(creditId: string, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.GetSingleBillingCreditResponse>;
80
80
  private __getSingleBillingCredit;
81
81
  /**
82
- * @param {string} billingId - billing_id
82
+ * @param {string} creditId - credit_id
83
83
  * @param {Schematic.UpdateBillingCreditRequestBody} request
84
84
  * @param {Credits.RequestOptions} requestOptions - Request-specific configuration.
85
85
  *
@@ -90,15 +90,15 @@ export declare class Credits {
90
90
  * @throws {@link Schematic.InternalServerError}
91
91
  *
92
92
  * @example
93
- * await client.credits.updateBillingCredit("billing_id", {
93
+ * await client.credits.updateBillingCredit("credit_id", {
94
94
  * description: "description",
95
95
  * name: "name"
96
96
  * })
97
97
  */
98
- updateBillingCredit(billingId: string, request: Schematic.UpdateBillingCreditRequestBody, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.UpdateBillingCreditResponse>;
98
+ updateBillingCredit(creditId: string, request: Schematic.UpdateBillingCreditRequestBody, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.UpdateBillingCreditResponse>;
99
99
  private __updateBillingCredit;
100
100
  /**
101
- * @param {string} billingId - billing_id
101
+ * @param {string} creditId - credit_id
102
102
  * @param {Credits.RequestOptions} requestOptions - Request-specific configuration.
103
103
  *
104
104
  * @throws {@link Schematic.BadRequestError}
@@ -108,9 +108,9 @@ export declare class Credits {
108
108
  * @throws {@link Schematic.InternalServerError}
109
109
  *
110
110
  * @example
111
- * await client.credits.softDeleteBillingCredit("billing_id")
111
+ * await client.credits.softDeleteBillingCredit("credit_id")
112
112
  */
113
- softDeleteBillingCredit(billingId: string, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.SoftDeleteBillingCreditResponse>;
113
+ softDeleteBillingCredit(creditId: string, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.SoftDeleteBillingCreditResponse>;
114
114
  private __softDeleteBillingCredit;
115
115
  /**
116
116
  * @param {Schematic.ListCreditBundlesRequest} request
@@ -154,7 +154,7 @@ export declare class Credits {
154
154
  createCreditBundle(request: Schematic.CreateCreditBundleRequestBody, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.CreateCreditBundleResponse>;
155
155
  private __createCreditBundle;
156
156
  /**
157
- * @param {string} billingId - billing_id
157
+ * @param {string} bundleId - bundle_id
158
158
  * @param {Credits.RequestOptions} requestOptions - Request-specific configuration.
159
159
  *
160
160
  * @throws {@link Schematic.UnauthorizedError}
@@ -163,12 +163,12 @@ export declare class Credits {
163
163
  * @throws {@link Schematic.InternalServerError}
164
164
  *
165
165
  * @example
166
- * await client.credits.getCreditBundle("billing_id")
166
+ * await client.credits.getCreditBundle("bundle_id")
167
167
  */
168
- getCreditBundle(billingId: string, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.GetCreditBundleResponse>;
168
+ getCreditBundle(bundleId: string, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.GetCreditBundleResponse>;
169
169
  private __getCreditBundle;
170
170
  /**
171
- * @param {string} billingId - billing_id
171
+ * @param {string} bundleId - bundle_id
172
172
  * @param {Schematic.UpdateCreditBundleDetailsRequestBody} request
173
173
  * @param {Credits.RequestOptions} requestOptions - Request-specific configuration.
174
174
  *
@@ -179,15 +179,15 @@ export declare class Credits {
179
179
  * @throws {@link Schematic.InternalServerError}
180
180
  *
181
181
  * @example
182
- * await client.credits.updateCreditBundleDetails("billing_id", {
182
+ * await client.credits.updateCreditBundleDetails("bundle_id", {
183
183
  * bundleName: "bundle_name",
184
184
  * pricePerUnit: 1
185
185
  * })
186
186
  */
187
- updateCreditBundleDetails(billingId: string, request: Schematic.UpdateCreditBundleDetailsRequestBody, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.UpdateCreditBundleDetailsResponse>;
187
+ updateCreditBundleDetails(bundleId: string, request: Schematic.UpdateCreditBundleDetailsRequestBody, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.UpdateCreditBundleDetailsResponse>;
188
188
  private __updateCreditBundleDetails;
189
189
  /**
190
- * @param {string} billingId - billing_id
190
+ * @param {string} bundleId - bundle_id
191
191
  * @param {Credits.RequestOptions} requestOptions - Request-specific configuration.
192
192
  *
193
193
  * @throws {@link Schematic.BadRequestError}
@@ -197,9 +197,9 @@ export declare class Credits {
197
197
  * @throws {@link Schematic.InternalServerError}
198
198
  *
199
199
  * @example
200
- * await client.credits.deleteCreditBundle("billing_id")
200
+ * await client.credits.deleteCreditBundle("bundle_id")
201
201
  */
202
- deleteCreditBundle(billingId: string, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.DeleteCreditBundleResponse>;
202
+ deleteCreditBundle(bundleId: string, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.DeleteCreditBundleResponse>;
203
203
  private __deleteCreditBundle;
204
204
  /**
205
205
  * @param {Schematic.CountCreditBundlesRequest} request
@@ -242,7 +242,7 @@ export declare class Credits {
242
242
  countBillingCredits(request?: Schematic.CountBillingCreditsRequest, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.CountBillingCreditsResponse>;
243
243
  private __countBillingCredits;
244
244
  /**
245
- * @param {string} billingId - billing_id
245
+ * @param {string} grantId - grant_id
246
246
  * @param {Schematic.ZeroOutGrantRequestBody} request
247
247
  * @param {Credits.RequestOptions} requestOptions - Request-specific configuration.
248
248
  *
@@ -253,9 +253,9 @@ export declare class Credits {
253
253
  * @throws {@link Schematic.InternalServerError}
254
254
  *
255
255
  * @example
256
- * await client.credits.zeroOutGrant("billing_id")
256
+ * await client.credits.zeroOutGrant("grant_id")
257
257
  */
258
- zeroOutGrant(billingId: string, request?: Schematic.ZeroOutGrantRequestBody, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.ZeroOutGrantResponse>;
258
+ zeroOutGrant(grantId: string, request?: Schematic.ZeroOutGrantRequestBody, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.ZeroOutGrantResponse>;
259
259
  private __zeroOutGrant;
260
260
  /**
261
261
  * @param {Schematic.CreateCompanyCreditGrant} request
@@ -426,7 +426,8 @@ export declare class Credits {
426
426
  createBillingPlanCreditGrant(request: Schematic.CreateBillingPlanCreditGrantRequestBody, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.CreateBillingPlanCreditGrantResponse>;
427
427
  private __createBillingPlanCreditGrant;
428
428
  /**
429
- * @param {string} billingId - billing_id
429
+ * @param {string} planGrantId - plan_grant_id
430
+ * @param {Schematic.UpdateBillingPlanCreditGrantRequestBody} request
430
431
  * @param {Credits.RequestOptions} requestOptions - Request-specific configuration.
431
432
  *
432
433
  * @throws {@link Schematic.BadRequestError}
@@ -436,9 +437,30 @@ export declare class Credits {
436
437
  * @throws {@link Schematic.InternalServerError}
437
438
  *
438
439
  * @example
439
- * await client.credits.deleteBillingPlanCreditGrant("billing_id")
440
+ * await client.credits.updateBillingPlanCreditGrant("plan_grant_id", {
441
+ * resetCadence: "monthly",
442
+ * resetStart: "billing_period"
443
+ * })
444
+ */
445
+ updateBillingPlanCreditGrant(planGrantId: string, request: Schematic.UpdateBillingPlanCreditGrantRequestBody, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.UpdateBillingPlanCreditGrantResponse>;
446
+ private __updateBillingPlanCreditGrant;
447
+ /**
448
+ * @param {string} planGrantId - plan_grant_id
449
+ * @param {Schematic.DeleteBillingPlanCreditGrantRequest} request
450
+ * @param {Credits.RequestOptions} requestOptions - Request-specific configuration.
451
+ *
452
+ * @throws {@link Schematic.BadRequestError}
453
+ * @throws {@link Schematic.UnauthorizedError}
454
+ * @throws {@link Schematic.ForbiddenError}
455
+ * @throws {@link Schematic.NotFoundError}
456
+ * @throws {@link Schematic.InternalServerError}
457
+ *
458
+ * @example
459
+ * await client.credits.deleteBillingPlanCreditGrant("plan_grant_id", {
460
+ * applyToExisting: true
461
+ * })
440
462
  */
441
- deleteBillingPlanCreditGrant(billingId: string, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.DeleteBillingPlanCreditGrantResponse>;
463
+ deleteBillingPlanCreditGrant(planGrantId: string, request?: Schematic.DeleteBillingPlanCreditGrantRequest, requestOptions?: Credits.RequestOptions): core.HttpResponsePromise<Schematic.DeleteBillingPlanCreditGrantResponse>;
442
464
  private __deleteBillingPlanCreditGrant;
443
465
  /**
444
466
  * @param {Schematic.CountBillingPlanCreditGrantsRequest} request
@@ -13,6 +13,14 @@ import * as Schematic from "../../../../index";
13
13
  * }
14
14
  */
15
15
  export interface CreateBillingPlanCreditGrantRequestBody {
16
+ applyToExisting?: boolean;
17
+ autoTopupAmount?: number;
18
+ autoTopupAmountType?: "credit";
19
+ autoTopupEnabled?: boolean;
20
+ autoTopupExpiryType?: Schematic.CreateBillingPlanCreditGrantRequestBodyAutoTopupExpiryType;
21
+ autoTopupExpiryUnit?: Schematic.CreateBillingPlanCreditGrantRequestBodyAutoTopupExpiryUnit;
22
+ autoTopupExpiryUnitCount?: number;
23
+ autoTopupThresholdPercent?: number;
16
24
  creditAmount: number;
17
25
  creditId: string;
18
26
  expiryType?: Schematic.CreateBillingPlanCreditGrantRequestBodyExpiryType;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * applyToExisting: true
8
+ * }
9
+ */
10
+ export interface DeleteBillingPlanCreditGrantRequest {
11
+ applyToExisting?: boolean;
12
+ }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Schematic from "../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * resetCadence: "monthly",
9
+ * resetStart: "billing_period"
10
+ * }
11
+ */
12
+ export interface UpdateBillingPlanCreditGrantRequestBody {
13
+ applyToExisting?: boolean;
14
+ creditAmount?: number;
15
+ expiryType?: Schematic.UpdateBillingPlanCreditGrantRequestBodyExpiryType;
16
+ expiryUnit?: Schematic.UpdateBillingPlanCreditGrantRequestBodyExpiryUnit;
17
+ expiryUnitCount?: number;
18
+ resetCadence: Schematic.UpdateBillingPlanCreditGrantRequestBodyResetCadence;
19
+ resetStart: Schematic.UpdateBillingPlanCreditGrantRequestBodyResetStart;
20
+ resetType?: Schematic.UpdateBillingPlanCreditGrantRequestBodyResetType;
21
+ }
@@ -15,4 +15,6 @@ export { type GetEnrichedCreditLedgerRequest } from "./GetEnrichedCreditLedgerRe
15
15
  export { type CountCreditLedgerRequest } from "./CountCreditLedgerRequest";
16
16
  export { type ListBillingPlanCreditGrantsRequest } from "./ListBillingPlanCreditGrantsRequest";
17
17
  export { type CreateBillingPlanCreditGrantRequestBody } from "./CreateBillingPlanCreditGrantRequestBody";
18
+ export { type UpdateBillingPlanCreditGrantRequestBody } from "./UpdateBillingPlanCreditGrantRequestBody";
19
+ export { type DeleteBillingPlanCreditGrantRequest } from "./DeleteBillingPlanCreditGrantRequest";
18
20
  export { type CountBillingPlanCreditGrantsRequest } from "./CountBillingPlanCreditGrantsRequest";
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type CreateBillingPlanCreditGrantRequestBodyAutoTopupExpiryType = "duration" | "no_expiry" | "end_of_trial" | "end_of_billing_period" | "end_of_next_billing_period";
5
+ export declare const CreateBillingPlanCreditGrantRequestBodyAutoTopupExpiryType: {
6
+ readonly Duration: "duration";
7
+ readonly NoExpiry: "no_expiry";
8
+ readonly EndOfTrial: "end_of_trial";
9
+ readonly EndOfBillingPeriod: "end_of_billing_period";
10
+ readonly EndOfNextBillingPeriod: "end_of_next_billing_period";
11
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type CreateBillingPlanCreditGrantRequestBodyAutoTopupExpiryUnit = "days" | "billing_periods";
5
+ export declare const CreateBillingPlanCreditGrantRequestBodyAutoTopupExpiryUnit: {
6
+ readonly Days: "days";
7
+ readonly BillingPeriods: "billing_periods";
8
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Input parameters
6
+ */
7
+ export interface DeleteBillingPlanCreditGrantParams {
8
+ applyToExisting?: boolean;
9
+ }
@@ -5,5 +5,5 @@ import * as Schematic from "../../../index";
5
5
  export interface DeleteBillingPlanCreditGrantResponse {
6
6
  data: Schematic.DeleteResponse;
7
7
  /** Input parameters */
8
- params: Record<string, unknown>;
8
+ params: Schematic.DeleteBillingPlanCreditGrantParams;
9
9
  }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type UpdateBillingPlanCreditGrantRequestBodyExpiryType = "duration" | "no_expiry" | "end_of_trial" | "end_of_billing_period" | "end_of_next_billing_period";
5
+ export declare const UpdateBillingPlanCreditGrantRequestBodyExpiryType: {
6
+ readonly Duration: "duration";
7
+ readonly NoExpiry: "no_expiry";
8
+ readonly EndOfTrial: "end_of_trial";
9
+ readonly EndOfBillingPeriod: "end_of_billing_period";
10
+ readonly EndOfNextBillingPeriod: "end_of_next_billing_period";
11
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export type UpdateBillingPlanCreditGrantRequestBodyExpiryUnit = "days" | "billing_periods";
5
+ export declare const UpdateBillingPlanCreditGrantRequestBodyExpiryUnit: {
6
+ readonly Days: "days";
7
+ readonly BillingPeriods: "billing_periods";
8
+ };