@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
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Schematic from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const DeleteCompanyParams: core.serialization.ObjectSchema<serializers.DeleteCompanyParams.Raw, Schematic.DeleteCompanyParams>;
8
+ export declare namespace DeleteCompanyParams {
9
+ interface Raw {
10
+ cancel_subscription?: boolean | null;
11
+ prorate?: boolean | null;
12
+ }
13
+ }
@@ -5,10 +5,11 @@ import * as serializers from "../../../index";
5
5
  import * as Schematic from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  import { DeleteResponse } from "../../../types/DeleteResponse";
8
+ import { DeleteCompanyParams } from "./DeleteCompanyParams";
8
9
  export declare const DeleteCompanyResponse: core.serialization.ObjectSchema<serializers.DeleteCompanyResponse.Raw, Schematic.DeleteCompanyResponse>;
9
10
  export declare namespace DeleteCompanyResponse {
10
11
  interface Raw {
11
12
  data: DeleteResponse.Raw;
12
- params: Record<string, unknown>;
13
+ params: DeleteCompanyParams.Raw;
13
14
  }
14
15
  }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Schematic from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { PlanChangeResponseData } from "../../../types/PlanChangeResponseData";
8
+ export declare const GetPlanChangeResponse: core.serialization.ObjectSchema<serializers.GetPlanChangeResponse.Raw, Schematic.GetPlanChangeResponse>;
9
+ export declare namespace GetPlanChangeResponse {
10
+ interface Raw {
11
+ data: PlanChangeResponseData.Raw;
12
+ params: Record<string, unknown>;
13
+ }
14
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Schematic from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const ListPlanChangesParams: core.serialization.ObjectSchema<serializers.ListPlanChangesParams.Raw, Schematic.ListPlanChangesParams>;
8
+ export declare namespace ListPlanChangesParams {
9
+ interface Raw {
10
+ action?: string | null;
11
+ base_plan_action?: string | null;
12
+ company_id?: string | null;
13
+ company_ids?: string[] | null;
14
+ limit?: number | null;
15
+ offset?: number | null;
16
+ plan_ids?: string[] | null;
17
+ }
18
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Schematic from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { PlanChangeResponseData } from "../../../types/PlanChangeResponseData";
8
+ import { ListPlanChangesParams } from "./ListPlanChangesParams";
9
+ export declare const ListPlanChangesResponse: core.serialization.ObjectSchema<serializers.ListPlanChangesResponse.Raw, Schematic.ListPlanChangesResponse>;
10
+ export declare namespace ListPlanChangesResponse {
11
+ interface Raw {
12
+ data: PlanChangeResponseData.Raw[];
13
+ params: ListPlanChangesParams.Raw;
14
+ }
15
+ }
@@ -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";
@@ -4,6 +4,8 @@
4
4
  import * as serializers from "../../../../index";
5
5
  import * as Schematic from "../../../../../api/index";
6
6
  import * as core from "../../../../../core";
7
+ import { CreateBillingPlanCreditGrantRequestBodyAutoTopupExpiryType } from "../../types/CreateBillingPlanCreditGrantRequestBodyAutoTopupExpiryType";
8
+ import { CreateBillingPlanCreditGrantRequestBodyAutoTopupExpiryUnit } from "../../types/CreateBillingPlanCreditGrantRequestBodyAutoTopupExpiryUnit";
7
9
  import { CreateBillingPlanCreditGrantRequestBodyExpiryType } from "../../types/CreateBillingPlanCreditGrantRequestBodyExpiryType";
8
10
  import { CreateBillingPlanCreditGrantRequestBodyExpiryUnit } from "../../types/CreateBillingPlanCreditGrantRequestBodyExpiryUnit";
9
11
  import { CreateBillingPlanCreditGrantRequestBodyResetCadence } from "../../types/CreateBillingPlanCreditGrantRequestBodyResetCadence";
@@ -12,6 +14,14 @@ import { CreateBillingPlanCreditGrantRequestBodyResetType } from "../../types/Cr
12
14
  export declare const CreateBillingPlanCreditGrantRequestBody: core.serialization.Schema<serializers.CreateBillingPlanCreditGrantRequestBody.Raw, Schematic.CreateBillingPlanCreditGrantRequestBody>;
13
15
  export declare namespace CreateBillingPlanCreditGrantRequestBody {
14
16
  interface Raw {
17
+ apply_to_existing?: boolean | null;
18
+ auto_topup_amount?: number | null;
19
+ auto_topup_amount_type?: "credit" | null;
20
+ auto_topup_enabled?: boolean | null;
21
+ auto_topup_expiry_type?: CreateBillingPlanCreditGrantRequestBodyAutoTopupExpiryType.Raw | null;
22
+ auto_topup_expiry_unit?: CreateBillingPlanCreditGrantRequestBodyAutoTopupExpiryUnit.Raw | null;
23
+ auto_topup_expiry_unit_count?: number | null;
24
+ auto_topup_threshold_percent?: number | null;
15
25
  credit_amount: number;
16
26
  credit_id: string;
17
27
  expiry_type?: CreateBillingPlanCreditGrantRequestBodyExpiryType.Raw | null;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../../index";
5
+ import * as Schematic from "../../../../../api/index";
6
+ import * as core from "../../../../../core";
7
+ import { UpdateBillingPlanCreditGrantRequestBodyExpiryType } from "../../types/UpdateBillingPlanCreditGrantRequestBodyExpiryType";
8
+ import { UpdateBillingPlanCreditGrantRequestBodyExpiryUnit } from "../../types/UpdateBillingPlanCreditGrantRequestBodyExpiryUnit";
9
+ import { UpdateBillingPlanCreditGrantRequestBodyResetCadence } from "../../types/UpdateBillingPlanCreditGrantRequestBodyResetCadence";
10
+ import { UpdateBillingPlanCreditGrantRequestBodyResetStart } from "../../types/UpdateBillingPlanCreditGrantRequestBodyResetStart";
11
+ import { UpdateBillingPlanCreditGrantRequestBodyResetType } from "../../types/UpdateBillingPlanCreditGrantRequestBodyResetType";
12
+ export declare const UpdateBillingPlanCreditGrantRequestBody: core.serialization.Schema<serializers.UpdateBillingPlanCreditGrantRequestBody.Raw, Schematic.UpdateBillingPlanCreditGrantRequestBody>;
13
+ export declare namespace UpdateBillingPlanCreditGrantRequestBody {
14
+ interface Raw {
15
+ apply_to_existing?: boolean | null;
16
+ credit_amount?: number | null;
17
+ expiry_type?: UpdateBillingPlanCreditGrantRequestBodyExpiryType.Raw | null;
18
+ expiry_unit?: UpdateBillingPlanCreditGrantRequestBodyExpiryUnit.Raw | null;
19
+ expiry_unit_count?: number | null;
20
+ reset_cadence: UpdateBillingPlanCreditGrantRequestBodyResetCadence.Raw;
21
+ reset_start: UpdateBillingPlanCreditGrantRequestBodyResetStart.Raw;
22
+ reset_type?: UpdateBillingPlanCreditGrantRequestBodyResetType.Raw | null;
23
+ }
24
+ }
@@ -5,3 +5,4 @@ export { UpdateCreditBundleDetailsRequestBody } from "./UpdateCreditBundleDetail
5
5
  export { ZeroOutGrantRequestBody } from "./ZeroOutGrantRequestBody";
6
6
  export { CreateCompanyCreditGrant } from "./CreateCompanyCreditGrant";
7
7
  export { CreateBillingPlanCreditGrantRequestBody } from "./CreateBillingPlanCreditGrantRequestBody";
8
+ export { UpdateBillingPlanCreditGrantRequestBody } from "./UpdateBillingPlanCreditGrantRequestBody";
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Schematic from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const CreateBillingPlanCreditGrantRequestBodyAutoTopupExpiryType: core.serialization.Schema<serializers.CreateBillingPlanCreditGrantRequestBodyAutoTopupExpiryType.Raw, Schematic.CreateBillingPlanCreditGrantRequestBodyAutoTopupExpiryType>;
8
+ export declare namespace CreateBillingPlanCreditGrantRequestBodyAutoTopupExpiryType {
9
+ type Raw = "duration" | "no_expiry" | "end_of_trial" | "end_of_billing_period" | "end_of_next_billing_period";
10
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Schematic from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const CreateBillingPlanCreditGrantRequestBodyAutoTopupExpiryUnit: core.serialization.Schema<serializers.CreateBillingPlanCreditGrantRequestBodyAutoTopupExpiryUnit.Raw, Schematic.CreateBillingPlanCreditGrantRequestBodyAutoTopupExpiryUnit>;
8
+ export declare namespace CreateBillingPlanCreditGrantRequestBodyAutoTopupExpiryUnit {
9
+ type Raw = "days" | "billing_periods";
10
+ }
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Schematic from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const DeleteBillingPlanCreditGrantParams: core.serialization.ObjectSchema<serializers.DeleteBillingPlanCreditGrantParams.Raw, Schematic.DeleteBillingPlanCreditGrantParams>;
8
+ export declare namespace DeleteBillingPlanCreditGrantParams {
9
+ interface Raw {
10
+ apply_to_existing?: boolean | null;
11
+ }
12
+ }
@@ -5,10 +5,11 @@ import * as serializers from "../../../index";
5
5
  import * as Schematic from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  import { DeleteResponse } from "../../../types/DeleteResponse";
8
+ import { DeleteBillingPlanCreditGrantParams } from "./DeleteBillingPlanCreditGrantParams";
8
9
  export declare const DeleteBillingPlanCreditGrantResponse: core.serialization.ObjectSchema<serializers.DeleteBillingPlanCreditGrantResponse.Raw, Schematic.DeleteBillingPlanCreditGrantResponse>;
9
10
  export declare namespace DeleteBillingPlanCreditGrantResponse {
10
11
  interface Raw {
11
12
  data: DeleteResponse.Raw;
12
- params: Record<string, unknown>;
13
+ params: DeleteBillingPlanCreditGrantParams.Raw;
13
14
  }
14
15
  }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Schematic from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const UpdateBillingPlanCreditGrantRequestBodyExpiryType: core.serialization.Schema<serializers.UpdateBillingPlanCreditGrantRequestBodyExpiryType.Raw, Schematic.UpdateBillingPlanCreditGrantRequestBodyExpiryType>;
8
+ export declare namespace UpdateBillingPlanCreditGrantRequestBodyExpiryType {
9
+ type Raw = "duration" | "no_expiry" | "end_of_trial" | "end_of_billing_period" | "end_of_next_billing_period";
10
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Schematic from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const UpdateBillingPlanCreditGrantRequestBodyExpiryUnit: core.serialization.Schema<serializers.UpdateBillingPlanCreditGrantRequestBodyExpiryUnit.Raw, Schematic.UpdateBillingPlanCreditGrantRequestBodyExpiryUnit>;
8
+ export declare namespace UpdateBillingPlanCreditGrantRequestBodyExpiryUnit {
9
+ type Raw = "days" | "billing_periods";
10
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Schematic from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const UpdateBillingPlanCreditGrantRequestBodyResetCadence: core.serialization.Schema<serializers.UpdateBillingPlanCreditGrantRequestBodyResetCadence.Raw, Schematic.UpdateBillingPlanCreditGrantRequestBodyResetCadence>;
8
+ export declare namespace UpdateBillingPlanCreditGrantRequestBodyResetCadence {
9
+ type Raw = "monthly" | "yearly" | "daily" | "weekly";
10
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Schematic from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const UpdateBillingPlanCreditGrantRequestBodyResetStart: core.serialization.Schema<serializers.UpdateBillingPlanCreditGrantRequestBodyResetStart.Raw, Schematic.UpdateBillingPlanCreditGrantRequestBodyResetStart>;
8
+ export declare namespace UpdateBillingPlanCreditGrantRequestBodyResetStart {
9
+ type Raw = "billing_period" | "first_of_month";
10
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Schematic from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const UpdateBillingPlanCreditGrantRequestBodyResetType: core.serialization.Schema<serializers.UpdateBillingPlanCreditGrantRequestBodyResetType.Raw, Schematic.UpdateBillingPlanCreditGrantRequestBodyResetType>;
8
+ export declare namespace UpdateBillingPlanCreditGrantRequestBodyResetType {
9
+ type Raw = "plan_period" | "no_reset";
10
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Schematic from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { BillingPlanCreditGrantResponseData } from "../../../types/BillingPlanCreditGrantResponseData";
8
+ export declare const UpdateBillingPlanCreditGrantResponse: core.serialization.ObjectSchema<serializers.UpdateBillingPlanCreditGrantResponse.Raw, Schematic.UpdateBillingPlanCreditGrantResponse>;
9
+ export declare namespace UpdateBillingPlanCreditGrantResponse {
10
+ interface Raw {
11
+ data: BillingPlanCreditGrantResponseData.Raw;
12
+ params: Record<string, unknown>;
13
+ }
14
+ }
@@ -53,12 +53,21 @@ export * from "./CountCreditLedgerParams";
53
53
  export * from "./CountCreditLedgerResponse";
54
54
  export * from "./ListBillingPlanCreditGrantsParams";
55
55
  export * from "./ListBillingPlanCreditGrantsResponse";
56
+ export * from "./CreateBillingPlanCreditGrantRequestBodyAutoTopupExpiryType";
57
+ export * from "./CreateBillingPlanCreditGrantRequestBodyAutoTopupExpiryUnit";
56
58
  export * from "./CreateBillingPlanCreditGrantRequestBodyExpiryType";
57
59
  export * from "./CreateBillingPlanCreditGrantRequestBodyExpiryUnit";
58
60
  export * from "./CreateBillingPlanCreditGrantRequestBodyResetCadence";
59
61
  export * from "./CreateBillingPlanCreditGrantRequestBodyResetStart";
60
62
  export * from "./CreateBillingPlanCreditGrantRequestBodyResetType";
61
63
  export * from "./CreateBillingPlanCreditGrantResponse";
64
+ export * from "./UpdateBillingPlanCreditGrantRequestBodyExpiryType";
65
+ export * from "./UpdateBillingPlanCreditGrantRequestBodyExpiryUnit";
66
+ export * from "./UpdateBillingPlanCreditGrantRequestBodyResetCadence";
67
+ export * from "./UpdateBillingPlanCreditGrantRequestBodyResetStart";
68
+ export * from "./UpdateBillingPlanCreditGrantRequestBodyResetType";
69
+ export * from "./UpdateBillingPlanCreditGrantResponse";
70
+ export * from "./DeleteBillingPlanCreditGrantParams";
62
71
  export * from "./DeleteBillingPlanCreditGrantResponse";
63
72
  export * from "./CountBillingPlanCreditGrantsParams";
64
73
  export * from "./CountBillingPlanCreditGrantsResponse";
@@ -1,7 +1,3 @@
1
- export * from "./CountAudienceCompaniesResponse";
2
- export * from "./CountAudienceUsersResponse";
3
- export * from "./ListAudienceCompaniesResponse";
4
- export * from "./ListAudienceUsersResponse";
5
1
  export * from "./ListFeaturesParams";
6
2
  export * from "./ListFeaturesResponse";
7
3
  export * from "./CreateFeatureRequestBodyFeatureType";
@@ -1,7 +1,5 @@
1
1
  export * as accounts from "./accounts";
2
2
  export * from "./accounts/types";
3
- export * as features from "./features";
4
- export * from "./features/types";
5
3
  export * as billing from "./billing";
6
4
  export * from "./billing/types";
7
5
  export * as credits from "./credits";
@@ -22,6 +20,8 @@ export * as dataexports from "./dataexports";
22
20
  export * from "./dataexports/types";
23
21
  export * as events from "./events";
24
22
  export * from "./events/types";
23
+ export * as features from "./features";
24
+ export * from "./features/types";
25
25
  export * as plangroups from "./plangroups";
26
26
  export * from "./plangroups/types";
27
27
  export * as accesstokens from "./accesstokens";
@@ -29,7 +29,6 @@ export * from "./accesstokens/types";
29
29
  export * as webhooks from "./webhooks";
30
30
  export * from "./webhooks/types";
31
31
  export * from "./accounts/client/requests";
32
- export * from "./features/client/requests";
33
32
  export * from "./billing/client/requests";
34
33
  export * from "./credits/client/requests";
35
34
  export * from "./checkout/client/requests";
@@ -40,6 +39,7 @@ export * from "./components/client/requests";
40
39
  export * from "./crm/client/requests";
41
40
  export * from "./dataexports/client/requests";
42
41
  export * from "./events/client/requests";
42
+ export * from "./features/client/requests";
43
43
  export * from "./plangroups/client/requests";
44
44
  export * from "./accesstokens/client/requests";
45
45
  export * from "./webhooks/client/requests";
@@ -18,7 +18,6 @@ export declare namespace CreatePlanGroupRequestBody {
18
18
  checkout_collect_phone: boolean;
19
19
  custom_plan_config?: CustomPlanConfig.Raw | null;
20
20
  custom_plan_id?: string | null;
21
- default_plan_id?: string | null;
22
21
  enable_tax_collection: boolean;
23
22
  fallback_plan_id?: string | null;
24
23
  initial_plan_id?: string | null;
@@ -18,7 +18,6 @@ export declare namespace UpdatePlanGroupRequestBody {
18
18
  checkout_collect_phone: boolean;
19
19
  custom_plan_config?: CustomPlanConfig.Raw | null;
20
20
  custom_plan_id?: string | null;
21
- default_plan_id?: string | null;
22
21
  enable_tax_collection: boolean;
23
22
  fallback_plan_id?: string | null;
24
23
  initial_plan_id?: string | null;
@@ -1,5 +1,4 @@
1
1
  export { UpdateCompanyPlansRequestBody } from "./UpdateCompanyPlansRequestBody";
2
- export { UpdateAudienceRequestBody } from "./UpdateAudienceRequestBody";
3
2
  export { CreatePlanRequestBody } from "./CreatePlanRequestBody";
4
3
  export { UpdatePlanRequestBody } from "./UpdatePlanRequestBody";
5
4
  export { UpsertBillingProductRequestBody } from "./UpsertBillingProductRequestBody";
@@ -1,7 +1,4 @@
1
1
  export * from "./UpdateCompanyPlansResponse";
2
- export * from "./GetAudienceResponse";
3
- export * from "./UpdateAudienceResponse";
4
- export * from "./DeleteAudienceResponse";
5
2
  export * from "./ListPlansRequestPlanType";
6
3
  export * from "./ListPlansResponseParamsPlanType";
7
4
  export * from "./ListPlansParams";
@@ -6,5 +6,5 @@ import * as Schematic from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  export declare const CreateWebhookRequestBodyRequestTypesItem: core.serialization.Schema<serializers.CreateWebhookRequestBodyRequestTypesItem.Raw, Schematic.CreateWebhookRequestBodyRequestTypesItem>;
8
8
  export declare namespace CreateWebhookRequestBodyRequestTypesItem {
9
- type Raw = "company.updated" | "user.updated" | "plan.updated" | "plan.entitlement.updated" | "company.override.updated" | "feature.updated" | "flag.updated" | "flag_rules.updated" | "company.created" | "user.created" | "plan.created" | "plan.entitlement.created" | "company.override.created" | "feature.created" | "flag.created" | "company.deleted" | "user.deleted" | "plan.deleted" | "plan.entitlement.deleted" | "company.override.deleted" | "feature.deleted" | "flag.deleted" | "test.send" | "subscription.trial.ended" | "entitlement.limit.warning" | "entitlement.limit.reached" | "entitlement.soft_limit.warning" | "entitlement.soft_limit.reached" | "entitlement.tier_limit.warning" | "entitlement.tier_limit.reached" | "credit.limit.warning" | "credit.limit.reached";
9
+ type Raw = "company.updated" | "user.updated" | "plan.updated" | "plan.entitlement.updated" | "company.override.updated" | "feature.updated" | "flag.updated" | "flag_rules.updated" | "company.created" | "user.created" | "plan.created" | "plan.entitlement.created" | "company.override.created" | "feature.created" | "flag.created" | "company.deleted" | "user.deleted" | "plan.deleted" | "plan.entitlement.deleted" | "company.override.deleted" | "feature.deleted" | "flag.deleted" | "test.send" | "subscription.trial.ended" | "entitlement.limit.warning" | "entitlement.limit.reached" | "entitlement.soft_limit.warning" | "entitlement.soft_limit.reached" | "entitlement.tier_limit.warning" | "entitlement.tier_limit.reached" | "credit.limit.warning" | "credit.limit.reached" | "company.plan_change";
10
10
  }
@@ -6,5 +6,5 @@ import * as Schematic from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
7
  export declare const UpdateWebhookRequestBodyRequestTypesItem: core.serialization.Schema<serializers.UpdateWebhookRequestBodyRequestTypesItem.Raw, Schematic.UpdateWebhookRequestBodyRequestTypesItem>;
8
8
  export declare namespace UpdateWebhookRequestBodyRequestTypesItem {
9
- type Raw = "company.updated" | "user.updated" | "plan.updated" | "plan.entitlement.updated" | "company.override.updated" | "feature.updated" | "flag.updated" | "flag_rules.updated" | "company.created" | "user.created" | "plan.created" | "plan.entitlement.created" | "company.override.created" | "feature.created" | "flag.created" | "company.deleted" | "user.deleted" | "plan.deleted" | "plan.entitlement.deleted" | "company.override.deleted" | "feature.deleted" | "flag.deleted" | "test.send" | "subscription.trial.ended" | "entitlement.limit.warning" | "entitlement.limit.reached" | "entitlement.soft_limit.warning" | "entitlement.soft_limit.reached" | "entitlement.tier_limit.warning" | "entitlement.tier_limit.reached" | "credit.limit.warning" | "credit.limit.reached";
9
+ type Raw = "company.updated" | "user.updated" | "plan.updated" | "plan.entitlement.updated" | "company.override.updated" | "feature.updated" | "flag.updated" | "flag_rules.updated" | "company.created" | "user.created" | "plan.created" | "plan.entitlement.created" | "company.override.created" | "feature.created" | "flag.created" | "company.deleted" | "user.deleted" | "plan.deleted" | "plan.entitlement.deleted" | "company.override.deleted" | "feature.deleted" | "flag.deleted" | "test.send" | "subscription.trial.ended" | "entitlement.limit.warning" | "entitlement.limit.reached" | "entitlement.soft_limit.warning" | "entitlement.soft_limit.reached" | "entitlement.tier_limit.warning" | "entitlement.tier_limit.reached" | "credit.limit.warning" | "credit.limit.reached" | "company.plan_change";
10
10
  }
@@ -7,6 +7,13 @@ import * as core from "../../core";
7
7
  export declare const BillingPlanCreditGrantResponseData: core.serialization.ObjectSchema<serializers.BillingPlanCreditGrantResponseData.Raw, Schematic.BillingPlanCreditGrantResponseData>;
8
8
  export declare namespace BillingPlanCreditGrantResponseData {
9
9
  interface Raw {
10
+ auto_topup_amount?: number | null;
11
+ auto_topup_amount_type?: string | null;
12
+ auto_topup_enabled: boolean;
13
+ auto_topup_expiry_type?: string | null;
14
+ auto_topup_expiry_unit?: string | null;
15
+ auto_topup_expiry_unit_count?: number | null;
16
+ auto_topup_threshold_percent?: number | null;
10
17
  created_at: string;
11
18
  credit_amount: number;
12
19
  credit_id: string;
@@ -5,21 +5,25 @@ import * as serializers from "../index";
5
5
  import * as Schematic from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  import { TraitDefinition } from "./TraitDefinition";
8
+ import { ConditionConditionType } from "./ConditionConditionType";
9
+ import { ConditionMetricPeriod } from "./ConditionMetricPeriod";
10
+ import { ConditionMetricPeriodMonthReset } from "./ConditionMetricPeriodMonthReset";
11
+ import { ConditionOperator } from "./ConditionOperator";
8
12
  export declare const Condition: core.serialization.ObjectSchema<serializers.Condition.Raw, Schematic.Condition>;
9
13
  export declare namespace Condition {
10
14
  interface Raw {
11
15
  account_id: string;
12
16
  comparison_trait_definition?: TraitDefinition.Raw | null;
13
- condition_type: string;
17
+ condition_type: ConditionConditionType.Raw;
14
18
  consumption_rate?: number | null;
15
19
  credit_id?: string | null;
16
20
  environment_id: string;
17
21
  event_subtype?: string | null;
18
22
  id: string;
19
- metric_period?: string | null;
20
- metric_period_month_reset?: string | null;
23
+ metric_period?: ConditionMetricPeriod.Raw | null;
24
+ metric_period_month_reset?: ConditionMetricPeriodMonthReset.Raw | null;
21
25
  metric_value?: number | null;
22
- operator: string;
26
+ operator: ConditionOperator.Raw;
23
27
  resource_ids: string[];
24
28
  trait_definition?: TraitDefinition.Raw | null;
25
29
  trait_value: string;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Schematic from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const ConditionConditionType: core.serialization.Schema<serializers.ConditionConditionType.Raw, Schematic.ConditionConditionType>;
8
+ export declare namespace ConditionConditionType {
9
+ type Raw = "base_plan" | "billing_product" | "company" | "credit" | "crm_product" | "metric" | "plan" | "trait" | "user";
10
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Schematic from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const ConditionMetricPeriod: core.serialization.Schema<serializers.ConditionMetricPeriod.Raw, Schematic.ConditionMetricPeriod>;
8
+ export declare namespace ConditionMetricPeriod {
9
+ type Raw = "all_time" | "current_day" | "current_month" | "current_week";
10
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Schematic from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const ConditionMetricPeriodMonthReset: core.serialization.Schema<serializers.ConditionMetricPeriodMonthReset.Raw, Schematic.ConditionMetricPeriodMonthReset>;
8
+ export declare namespace ConditionMetricPeriodMonthReset {
9
+ type Raw = "first_of_month" | "billing_cycle";
10
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Schematic from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const ConditionOperator: core.serialization.Schema<serializers.ConditionOperator.Raw, Schematic.ConditionOperator>;
8
+ export declare namespace ConditionOperator {
9
+ type Raw = "eq" | "ne" | "gt" | "lt" | "gte" | "lte" | "is_empty" | "not_empty";
10
+ }
@@ -11,6 +11,5 @@ export declare namespace CreateOrUpdateConditionGroupRequestBody {
11
11
  conditions: CreateOrUpdateConditionRequestBody.Raw[];
12
12
  flag_id?: string | null;
13
13
  id?: string | null;
14
- plan_id?: string | null;
15
14
  }
16
15
  }
@@ -6,5 +6,5 @@ import * as Schematic from "../../api/index";
6
6
  import * as core from "../../core";
7
7
  export declare const CreateOrUpdateRuleRequestBodyRuleType: core.serialization.Schema<serializers.CreateOrUpdateRuleRequestBodyRuleType.Raw, Schematic.CreateOrUpdateRuleRequestBodyRuleType>;
8
8
  export declare namespace CreateOrUpdateRuleRequestBodyRuleType {
9
- type Raw = "global_override" | "company_override" | "plan_entitlement" | "standard" | "default" | "plan_audience";
9
+ type Raw = "global_override" | "company_override" | "plan_entitlement" | "standard" | "default";
10
10
  }
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Schematic from "../../api/index";
6
+ import * as core from "../../core";
7
+ import { CreditGrantExpiryRequestBodyExpiryType } from "./CreditGrantExpiryRequestBodyExpiryType";
8
+ import { CreditGrantExpiryRequestBodyExpiryUnit } from "./CreditGrantExpiryRequestBodyExpiryUnit";
9
+ import { CreditGrantExpiryRequestBodyResetCadence } from "./CreditGrantExpiryRequestBodyResetCadence";
10
+ import { CreditGrantExpiryRequestBodyResetStart } from "./CreditGrantExpiryRequestBodyResetStart";
11
+ import { CreditGrantExpiryRequestBodyResetType } from "./CreditGrantExpiryRequestBodyResetType";
12
+ export declare const CreditGrantExpiryRequestBody: core.serialization.ObjectSchema<serializers.CreditGrantExpiryRequestBody.Raw, Schematic.CreditGrantExpiryRequestBody>;
13
+ export declare namespace CreditGrantExpiryRequestBody {
14
+ interface Raw {
15
+ expiry_type?: CreditGrantExpiryRequestBodyExpiryType.Raw | null;
16
+ expiry_unit?: CreditGrantExpiryRequestBodyExpiryUnit.Raw | null;
17
+ expiry_unit_count?: number | null;
18
+ reset_cadence: CreditGrantExpiryRequestBodyResetCadence.Raw;
19
+ reset_start: CreditGrantExpiryRequestBodyResetStart.Raw;
20
+ reset_type?: CreditGrantExpiryRequestBodyResetType.Raw | null;
21
+ }
22
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Schematic from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const CreditGrantExpiryRequestBodyExpiryType: core.serialization.Schema<serializers.CreditGrantExpiryRequestBodyExpiryType.Raw, Schematic.CreditGrantExpiryRequestBodyExpiryType>;
8
+ export declare namespace CreditGrantExpiryRequestBodyExpiryType {
9
+ type Raw = "duration" | "no_expiry" | "end_of_trial" | "end_of_billing_period" | "end_of_next_billing_period";
10
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Schematic from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const CreditGrantExpiryRequestBodyExpiryUnit: core.serialization.Schema<serializers.CreditGrantExpiryRequestBodyExpiryUnit.Raw, Schematic.CreditGrantExpiryRequestBodyExpiryUnit>;
8
+ export declare namespace CreditGrantExpiryRequestBodyExpiryUnit {
9
+ type Raw = "days" | "billing_periods";
10
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Schematic from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const CreditGrantExpiryRequestBodyResetCadence: core.serialization.Schema<serializers.CreditGrantExpiryRequestBodyResetCadence.Raw, Schematic.CreditGrantExpiryRequestBodyResetCadence>;
8
+ export declare namespace CreditGrantExpiryRequestBodyResetCadence {
9
+ type Raw = "monthly" | "yearly" | "daily" | "weekly";
10
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Schematic from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const CreditGrantExpiryRequestBodyResetStart: core.serialization.Schema<serializers.CreditGrantExpiryRequestBodyResetStart.Raw, Schematic.CreditGrantExpiryRequestBodyResetStart>;
8
+ export declare namespace CreditGrantExpiryRequestBodyResetStart {
9
+ type Raw = "billing_period" | "first_of_month";
10
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Schematic from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const CreditGrantExpiryRequestBodyResetType: core.serialization.Schema<serializers.CreditGrantExpiryRequestBodyResetType.Raw, Schematic.CreditGrantExpiryRequestBodyResetType>;
8
+ export declare namespace CreditGrantExpiryRequestBodyResetType {
9
+ type Raw = "plan_period" | "no_reset";
10
+ }
@@ -10,6 +10,7 @@ import { FeatureLedgerResponseData } from "./FeatureLedgerResponseData";
10
10
  export declare const CreditLedgerEnrichedEntryResponseData: core.serialization.ObjectSchema<serializers.CreditLedgerEnrichedEntryResponseData.Raw, Schematic.CreditLedgerEnrichedEntryResponseData>;
11
11
  export declare namespace CreditLedgerEnrichedEntryResponseData {
12
12
  interface Raw {
13
+ billing_credit_auto_topup_grant_count: number;
13
14
  billing_credit_id: string;
14
15
  company?: CompanyLedgerResponseData.Raw | null;
15
16
  company_id: string;