chargebee 3.33.0 → 3.35.0

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 (172) hide show
  1. package/CHANGELOG.md +362 -0
  2. package/cjs/environment.js +1 -1
  3. package/cjs/resources/api_endpoints.js +496 -3
  4. package/cjs/resources/webhook/eventType.js +36 -0
  5. package/cjs/schema/business_entity.schema.js +28 -2
  6. package/cjs/schema/business_rule.schema.js +54 -0
  7. package/cjs/schema/business_ruleset.schema.js +68 -0
  8. package/cjs/schema/card.schema.js +3 -1
  9. package/cjs/schema/collections_payment_promise.schema.js +43 -0
  10. package/cjs/schema/comment.schema.js +2 -0
  11. package/cjs/schema/coupon.schema.js +1 -1
  12. package/cjs/schema/credit_note.schema.js +11 -4
  13. package/cjs/schema/credit_unit.schema.js +2 -2
  14. package/cjs/schema/customer.schema.js +81 -10
  15. package/cjs/schema/dispute.schema.js +104 -0
  16. package/cjs/schema/einvoice.schema.js +37 -0
  17. package/cjs/schema/email_log.schema.js +28 -0
  18. package/cjs/schema/entitlement.schema.js +4 -4
  19. package/cjs/schema/estimate.schema.js +39 -10
  20. package/cjs/schema/event.schema.js +156 -0
  21. package/cjs/schema/export.schema.js +75 -19
  22. package/cjs/schema/feature.schema.js +2 -2
  23. package/cjs/schema/gift.schema.js +26 -0
  24. package/cjs/schema/hosted_page.schema.js +26 -6
  25. package/cjs/schema/index.js +9 -0
  26. package/cjs/schema/invoice.schema.js +98 -14
  27. package/cjs/schema/item.schema.js +1 -1
  28. package/cjs/schema/item_family.schema.js +1 -1
  29. package/cjs/schema/item_price.schema.js +1 -1
  30. package/cjs/schema/ledger_account_balance.schema.js +11 -2
  31. package/cjs/schema/ledger_operation.schema.js +6 -2
  32. package/cjs/schema/meter.schema.js +1 -1
  33. package/cjs/schema/metered_feature.schema.js +1 -1
  34. package/cjs/schema/omnichannel_one_time_order.schema.js +12 -4
  35. package/cjs/schema/omnichannel_subscription.schema.js +16 -8
  36. package/cjs/schema/payment_intent.schema.js +27 -0
  37. package/cjs/schema/payment_schedule.schema.js +36 -0
  38. package/cjs/schema/payment_schedule_scheme.schema.js +23 -2
  39. package/cjs/schema/payment_source.schema.js +118 -1
  40. package/cjs/schema/price_ramp.schema.js +88 -0
  41. package/cjs/schema/price_variant.schema.js +1 -1
  42. package/cjs/schema/pricing_page_session.schema.js +1 -0
  43. package/cjs/schema/promotional_grant.schema.js +2 -0
  44. package/cjs/schema/purchase.schema.js +20 -1
  45. package/cjs/schema/quote.schema.js +6 -6
  46. package/cjs/schema/ramp.schema.js +18 -6
  47. package/cjs/schema/retry_segment.schema.js +12 -0
  48. package/cjs/schema/subscription.schema.js +179 -16
  49. package/cjs/schema/transaction.schema.js +60 -2
  50. package/cjs/schema/usage.schema.js +5 -0
  51. package/cjs/schema/usage_summary.schema.js +1 -0
  52. package/cjs/schema/webhook_endpoint.schema.js +72 -0
  53. package/esm/environment.js +1 -1
  54. package/esm/resources/api_endpoints.js +496 -3
  55. package/esm/resources/webhook/eventType.js +36 -0
  56. package/esm/schema/business_entity.schema.js +27 -1
  57. package/esm/schema/business_rule.schema.js +51 -0
  58. package/esm/schema/business_ruleset.schema.js +65 -0
  59. package/esm/schema/card.schema.js +3 -1
  60. package/esm/schema/collections_payment_promise.schema.js +40 -0
  61. package/esm/schema/comment.schema.js +2 -0
  62. package/esm/schema/coupon.schema.js +1 -1
  63. package/esm/schema/credit_note.schema.js +11 -4
  64. package/esm/schema/credit_unit.schema.js +2 -2
  65. package/esm/schema/customer.schema.js +81 -10
  66. package/esm/schema/dispute.schema.js +101 -0
  67. package/esm/schema/einvoice.schema.js +34 -0
  68. package/esm/schema/email_log.schema.js +25 -0
  69. package/esm/schema/entitlement.schema.js +4 -4
  70. package/esm/schema/estimate.schema.js +39 -10
  71. package/esm/schema/event.schema.js +156 -0
  72. package/esm/schema/export.schema.js +75 -19
  73. package/esm/schema/feature.schema.js +2 -2
  74. package/esm/schema/gift.schema.js +26 -0
  75. package/esm/schema/hosted_page.schema.js +26 -6
  76. package/esm/schema/index.js +9 -0
  77. package/esm/schema/invoice.schema.js +97 -13
  78. package/esm/schema/item.schema.js +1 -1
  79. package/esm/schema/item_family.schema.js +1 -1
  80. package/esm/schema/item_price.schema.js +1 -1
  81. package/esm/schema/ledger_account_balance.schema.js +10 -1
  82. package/esm/schema/ledger_operation.schema.js +6 -2
  83. package/esm/schema/meter.schema.js +1 -1
  84. package/esm/schema/metered_feature.schema.js +1 -1
  85. package/esm/schema/omnichannel_one_time_order.schema.js +12 -4
  86. package/esm/schema/omnichannel_subscription.schema.js +16 -8
  87. package/esm/schema/payment_intent.schema.js +27 -0
  88. package/esm/schema/payment_schedule.schema.js +33 -0
  89. package/esm/schema/payment_schedule_scheme.schema.js +22 -1
  90. package/esm/schema/payment_source.schema.js +118 -1
  91. package/esm/schema/price_ramp.schema.js +85 -0
  92. package/esm/schema/price_variant.schema.js +1 -1
  93. package/esm/schema/pricing_page_session.schema.js +1 -0
  94. package/esm/schema/promotional_grant.schema.js +2 -0
  95. package/esm/schema/purchase.schema.js +20 -1
  96. package/esm/schema/quote.schema.js +6 -6
  97. package/esm/schema/ramp.schema.js +18 -6
  98. package/esm/schema/retry_segment.schema.js +9 -0
  99. package/esm/schema/subscription.schema.js +179 -16
  100. package/esm/schema/transaction.schema.js +60 -2
  101. package/esm/schema/usage.schema.js +5 -0
  102. package/esm/schema/usage_summary.schema.js +1 -0
  103. package/esm/schema/webhook_endpoint.schema.js +72 -0
  104. package/package.json +1 -1
  105. package/types/core.d.ts +135 -72
  106. package/types/index.d.ts +36 -0
  107. package/types/resources/AppliedRule.d.ts +14 -0
  108. package/types/resources/ApplyRule.d.ts +28 -0
  109. package/types/resources/BusinessEntity.d.ts +52 -0
  110. package/types/resources/BusinessRule.d.ts +161 -0
  111. package/types/resources/BusinessRuleset.d.ts +165 -0
  112. package/types/resources/BusinessRulesetRule.d.ts +9 -0
  113. package/types/resources/Card.d.ts +1 -1
  114. package/types/resources/Citation.d.ts +13 -0
  115. package/types/resources/CollectionsDispute.d.ts +24 -0
  116. package/types/resources/CollectionsPaymentPromise.d.ts +93 -0
  117. package/types/resources/CollectionsReminderSequence.d.ts +35 -0
  118. package/types/resources/Comment.d.ts +2 -1
  119. package/types/resources/Content.d.ts +26 -0
  120. package/types/resources/CreditNote.d.ts +13 -0
  121. package/types/resources/CustomData.d.ts +14 -0
  122. package/types/resources/CustomDataSchema.d.ts +15 -0
  123. package/types/resources/Customer.d.ts +42 -5
  124. package/types/resources/Dispute.d.ts +65 -0
  125. package/types/resources/DraftEstimate.d.ts +13 -0
  126. package/types/resources/DraftRequest.d.ts +45 -0
  127. package/types/resources/Einvoice.d.ts +64 -1
  128. package/types/resources/EmailAttachment.d.ts +16 -0
  129. package/types/resources/EmailConversation.d.ts +18 -0
  130. package/types/resources/EmailLog.d.ts +46 -0
  131. package/types/resources/EmailMessage.d.ts +40 -0
  132. package/types/resources/Estimate.d.ts +31 -2
  133. package/types/resources/Event.d.ts +37 -0
  134. package/types/resources/Execution.d.ts +12 -0
  135. package/types/resources/GatewayPaymentMethodToken.d.ts +2 -2
  136. package/types/resources/Gift.d.ts +28 -2
  137. package/types/resources/GrantBlock.d.ts +26 -7
  138. package/types/resources/GroupByAttribute.d.ts +15 -0
  139. package/types/resources/GroupByRecommendation.d.ts +10 -0
  140. package/types/resources/HostedPage.d.ts +11 -0
  141. package/types/resources/Invoice.d.ts +57 -4
  142. package/types/resources/ItemPrice.d.ts +1 -0
  143. package/types/resources/LedgerAccountBalance.d.ts +19 -0
  144. package/types/resources/LedgerEntry.d.ts +4 -4
  145. package/types/resources/LedgerOperation.d.ts +15 -8
  146. package/types/resources/Meter.d.ts +1 -0
  147. package/types/resources/MeteredFeature.d.ts +1 -0
  148. package/types/resources/OmnichannelOneTimeOrder.d.ts +5 -1
  149. package/types/resources/OmnichannelSubscription.d.ts +6 -1
  150. package/types/resources/OmnichannelSubscriptionItem.d.ts +9 -2
  151. package/types/resources/PaymentIntent.d.ts +72 -5
  152. package/types/resources/PaymentSchedule.d.ts +39 -2
  153. package/types/resources/PaymentScheduleEstimate.d.ts +2 -1
  154. package/types/resources/PaymentScheduleScheme.d.ts +17 -1
  155. package/types/resources/PaymentSource.d.ts +50 -2
  156. package/types/resources/PreferenceVariant.d.ts +10 -0
  157. package/types/resources/PriceRamp.d.ts +113 -0
  158. package/types/resources/PricingPageSession.d.ts +1 -0
  159. package/types/resources/PrivateNote.d.ts +18 -0
  160. package/types/resources/PromotionalGrant.d.ts +2 -0
  161. package/types/resources/Purchase.d.ts +20 -1
  162. package/types/resources/QuotedSubscription.d.ts +1 -0
  163. package/types/resources/Ramp.d.ts +18 -0
  164. package/types/resources/RampInterval.d.ts +12 -0
  165. package/types/resources/RecordedPurchase.d.ts +5 -1
  166. package/types/resources/RetrySegment.d.ts +36 -0
  167. package/types/resources/Subscription.d.ts +110 -11
  168. package/types/resources/ThirdPartyPaymentMethod.d.ts +1 -0
  169. package/types/resources/Transaction.d.ts +9 -0
  170. package/types/resources/Usage.d.ts +6 -0
  171. package/types/resources/UsageSummary.d.ts +2 -0
  172. package/types/resources/WebhookEvent.d.ts +214 -0
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ // Generated Zod schemas: EmailLog
3
+ // Actions: emailLogsForCustomer
4
+ // Do not edit manually – regenerate via sdk-generator
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.EmailLogsForCustomerEmailLogBodySchema = void 0;
7
+ const zod_1 = require("zod");
8
+ //EmailLog.emailLogsForCustomer
9
+ const EmailLogsForCustomerEmailLogSentOnSchema = zod_1.z.object({
10
+ after: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
11
+ before: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
12
+ on: zod_1.z.string().regex(RegExp('^\\d{10}$')).optional(),
13
+ between: zod_1.z.string().regex(RegExp('^\\[\\d{10},\\d{10}\\]$')).optional(),
14
+ });
15
+ const EmailLogsForCustomerEmailLogBusinessEntityIdSchema = zod_1.z.object({
16
+ is: zod_1.z.string().min(1).optional(),
17
+ });
18
+ const EmailLogsForCustomerEmailLogBrandIdSchema = zod_1.z.object({
19
+ is: zod_1.z.string().min(1).optional(),
20
+ });
21
+ const EmailLogsForCustomerEmailLogBodySchema = zod_1.z.looseObject({
22
+ limit: zod_1.z.number().int().min(1).max(100).optional(),
23
+ offset: zod_1.z.string().max(1000).optional(),
24
+ sent_on: EmailLogsForCustomerEmailLogSentOnSchema.optional(),
25
+ business_entity_id: EmailLogsForCustomerEmailLogBusinessEntityIdSchema.optional(),
26
+ brand_id: EmailLogsForCustomerEmailLogBrandIdSchema.optional(),
27
+ });
28
+ exports.EmailLogsForCustomerEmailLogBodySchema = EmailLogsForCustomerEmailLogBodySchema;
@@ -7,20 +7,20 @@ exports.CreateEntitlementBodySchema = exports.ListEntitlementBodySchema = void 0
7
7
  const zod_1 = require("zod");
8
8
  //Entitlement.list
9
9
  const ListEntitlementFeatureIdSchema = zod_1.z.object({
10
- is: zod_1.z.string().min(1).optional(),
11
10
  in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
11
+ is: zod_1.z.string().min(1).optional(),
12
12
  });
13
13
  const ListEntitlementEntityTypeSchema = zod_1.z.object({
14
- is: zod_1.z
14
+ in: zod_1.z
15
15
  .enum(['plan', 'addon', 'charge', 'plan_price', 'addon_price'])
16
16
  .optional(),
17
- in: zod_1.z
17
+ is: zod_1.z
18
18
  .enum(['plan', 'addon', 'charge', 'plan_price', 'addon_price'])
19
19
  .optional(),
20
20
  });
21
21
  const ListEntitlementEntityIdSchema = zod_1.z.object({
22
- is: zod_1.z.string().min(1).optional(),
23
22
  in: zod_1.z.string().regex(RegExp('^\\[(.*)(,.*)*\\]$')).optional(),
23
+ is: zod_1.z.string().min(1).optional(),
24
24
  });
25
25
  const ListEntitlementBodySchema = zod_1.z.looseObject({
26
26
  limit: zod_1.z.number().int().min(1).max(100).optional(),
@@ -79,7 +79,7 @@ const CreateSubscriptionEstimateCustomerSchema = zod_1.z.object({
79
79
  vat_number: zod_1.z.string().max(20).optional(),
80
80
  vat_number_prefix: zod_1.z.string().max(10).optional(),
81
81
  registered_for_gst: zod_1.z.boolean().optional(),
82
- taxability: zod_1.z.enum(['taxable', 'exempt']).optional(),
82
+ taxability: zod_1.z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
83
83
  entity_code: zod_1.z
84
84
  .enum([
85
85
  'a',
@@ -240,7 +240,7 @@ const CreateSubItemEstimateEstimateCustomerSchema = zod_1.z.object({
240
240
  vat_number: zod_1.z.string().max(20).optional(),
241
241
  vat_number_prefix: zod_1.z.string().max(10).optional(),
242
242
  registered_for_gst: zod_1.z.boolean().optional(),
243
- taxability: zod_1.z.enum(['taxable', 'exempt']).optional(),
243
+ taxability: zod_1.z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
244
244
  entity_code: zod_1.z
245
245
  .enum([
246
246
  'a',
@@ -284,7 +284,7 @@ const CreateSubItemEstimateEstimateSubscriptionItemsSchema = zod_1.z.object({
284
284
  billing_cycles: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
285
285
  trial_end: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
286
286
  service_period_days: zod_1.z
287
- .array(zod_1.z.number().int().min(1).max(730).optional())
287
+ .array(zod_1.z.number().int().min(1).max(4000).optional())
288
288
  .optional(),
289
289
  charge_on_event: zod_1.z
290
290
  .array(zod_1.z
@@ -299,6 +299,7 @@ const CreateSubItemEstimateEstimateSubscriptionItemsSchema = zod_1.z.object({
299
299
  .optional(),
300
300
  charge_once: zod_1.z.array(zod_1.z.boolean().optional()).optional(),
301
301
  item_type: zod_1.z.array(zod_1.z.enum(['plan', 'addon', 'charge']).optional()).optional(),
302
+ description: zod_1.z.array(zod_1.z.string().max(500).optional()).optional(),
302
303
  charge_on_option: zod_1.z
303
304
  .array(zod_1.z.enum(['immediately', 'on_event']).optional())
304
305
  .optional(),
@@ -549,7 +550,7 @@ const CreateSubItemForCustomerEstimateEstimateSubscriptionItemsSchema = zod_1.z.
549
550
  billing_cycles: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
550
551
  trial_end: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
551
552
  service_period_days: zod_1.z
552
- .array(zod_1.z.number().int().min(1).max(730).optional())
553
+ .array(zod_1.z.number().int().min(1).max(4000).optional())
553
554
  .optional(),
554
555
  charge_on_event: zod_1.z
555
556
  .array(zod_1.z
@@ -566,6 +567,7 @@ const CreateSubItemForCustomerEstimateEstimateSubscriptionItemsSchema = zod_1.z.
566
567
  item_type: zod_1.z
567
568
  .array(zod_1.z.enum(['plan', 'addon', 'charge']).optional())
568
569
  .optional(),
570
+ description: zod_1.z.array(zod_1.z.string().max(500).optional()).optional(),
569
571
  charge_on_option: zod_1.z
570
572
  .array(zod_1.z.enum(['immediately', 'on_event']).optional())
571
573
  .optional(),
@@ -686,7 +688,7 @@ const UpdateSubscriptionEstimateCustomerSchema = zod_1.z.object({
686
688
  vat_number: zod_1.z.string().max(20).optional(),
687
689
  vat_number_prefix: zod_1.z.string().max(10).optional(),
688
690
  registered_for_gst: zod_1.z.boolean().optional(),
689
- taxability: zod_1.z.enum(['taxable', 'exempt']).optional(),
691
+ taxability: zod_1.z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
690
692
  });
691
693
  const UpdateSubscriptionEstimateAddonsSchema = zod_1.z.object({
692
694
  id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
@@ -818,7 +820,7 @@ const UpdateSubscriptionForItemsEstimateCustomerSchema = zod_1.z.object({
818
820
  vat_number: zod_1.z.string().max(20).optional(),
819
821
  vat_number_prefix: zod_1.z.string().max(10).optional(),
820
822
  registered_for_gst: zod_1.z.boolean().optional(),
821
- taxability: zod_1.z.enum(['taxable', 'exempt']).optional(),
823
+ taxability: zod_1.z.enum(['taxable', 'exempt', 'zero_rated']).optional(),
822
824
  });
823
825
  const UpdateSubscriptionForItemsEstimateBillingOverrideSchema = zod_1.z.object({
824
826
  max_excess_payment_usage: zod_1.z.number().int().min(-1).optional(),
@@ -833,7 +835,7 @@ const UpdateSubscriptionForItemsEstimateSubscriptionItemsSchema = zod_1.z.object
833
835
  billing_cycles: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
834
836
  trial_end: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
835
837
  service_period_days: zod_1.z
836
- .array(zod_1.z.number().int().min(1).max(730).optional())
838
+ .array(zod_1.z.number().int().min(1).max(4000).optional())
837
839
  .optional(),
838
840
  charge_on_event: zod_1.z
839
841
  .array(zod_1.z
@@ -851,6 +853,7 @@ const UpdateSubscriptionForItemsEstimateSubscriptionItemsSchema = zod_1.z.object
851
853
  .array(zod_1.z.enum(['immediately', 'on_event']).optional())
852
854
  .optional(),
853
855
  item_type: zod_1.z.array(zod_1.z.enum(['plan', 'addon', 'charge']).optional()).optional(),
856
+ description: zod_1.z.array(zod_1.z.string().max(500).optional()).optional(),
854
857
  proration_type: zod_1.z
855
858
  .array(zod_1.z.enum(['full_term', 'partial_term', 'none']).optional())
856
859
  .optional(),
@@ -1020,7 +1023,7 @@ const CancelSubscriptionForItemsEstimateSubscriptionItemsSchema = zod_1.z.object
1020
1023
  unit_price: zod_1.z.array(zod_1.z.number().int().min(0).optional()).optional(),
1021
1024
  unit_price_in_decimal: zod_1.z.array(zod_1.z.string().max(39).optional()).optional(),
1022
1025
  service_period_days: zod_1.z
1023
- .array(zod_1.z.number().int().min(1).max(730).optional())
1026
+ .array(zod_1.z.number().int().min(1).max(4000).optional())
1024
1027
  .optional(),
1025
1028
  });
1026
1029
  const CancelSubscriptionForItemsEstimateBodySchema = zod_1.z.looseObject({
@@ -1162,6 +1165,19 @@ const GiftSubscriptionEstimatePaymentIntentSchema = zod_1.z.object({
1162
1165
  'touch_n_go',
1163
1166
  'tamara',
1164
1167
  'qpay',
1168
+ 'ovo',
1169
+ 'momo',
1170
+ 'mercado_pago',
1171
+ 'nequi',
1172
+ 'nupay',
1173
+ 'picpay',
1174
+ 'thai_qr',
1175
+ 'blik',
1176
+ 'fpx',
1177
+ 'wero',
1178
+ 'p24',
1179
+ 'affirm_pay',
1180
+ 'rakuten_pay',
1165
1181
  ])
1166
1182
  .optional(),
1167
1183
  reference_id: zod_1.z.string().max(65000).optional(),
@@ -1285,6 +1301,19 @@ const GiftSubscriptionForItemsEstimatePaymentIntentSchema = zod_1.z.object({
1285
1301
  'touch_n_go',
1286
1302
  'tamara',
1287
1303
  'qpay',
1304
+ 'ovo',
1305
+ 'momo',
1306
+ 'mercado_pago',
1307
+ 'nequi',
1308
+ 'nupay',
1309
+ 'picpay',
1310
+ 'thai_qr',
1311
+ 'blik',
1312
+ 'fpx',
1313
+ 'wero',
1314
+ 'p24',
1315
+ 'affirm_pay',
1316
+ 'rakuten_pay',
1288
1317
  ])
1289
1318
  .optional(),
1290
1319
  reference_id: zod_1.z.string().max(65000).optional(),
@@ -1462,7 +1491,7 @@ const CreateInvoiceForItemsEstimateItemPricesSchema = zod_1.z.object({
1462
1491
  date_from: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
1463
1492
  date_to: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
1464
1493
  description: zod_1.z.array(zod_1.z.string().max(250).optional()).optional(),
1465
- entity_description: zod_1.z.array(zod_1.z.string().max(500).optional()).optional(),
1494
+ entity_description: zod_1.z.array(zod_1.z.string().max(2000).optional()).optional(),
1466
1495
  });
1467
1496
  const CreateInvoiceForItemsEstimateItemTiersSchema = zod_1.z.object({
1468
1497
  item_price_id: zod_1.z.array(zod_1.z.string().max(100).optional()).optional(),
@@ -1493,7 +1522,7 @@ const CreateInvoiceForItemsEstimateChargesSchema = zod_1.z.object({
1493
1522
  avalara_service_type: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
1494
1523
  date_from: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
1495
1524
  date_to: zod_1.z.array(zod_1.z.number().int().optional()).optional(),
1496
- entity_description: zod_1.z.array(zod_1.z.string().max(500).optional()).optional(),
1525
+ entity_description: zod_1.z.array(zod_1.z.string().max(2000).optional()).optional(),
1497
1526
  });
1498
1527
  const CreateInvoiceForItemsEstimateNotesToRemoveSchema = zod_1.z.object({
1499
1528
  entity_type: zod_1.z
@@ -128,10 +128,13 @@ const ListEventEventTypeSchema = zod_1.z.object({
128
128
  'credit_note_created_with_backdating',
129
129
  'credit_note_updated',
130
130
  'credit_note_deleted',
131
+ 'einvoice_created',
132
+ 'einvoice_updated',
131
133
  'payment_schedules_created',
132
134
  'payment_schedules_updated',
133
135
  'payment_schedule_scheme_created',
134
136
  'payment_schedule_scheme_deleted',
137
+ 'payment_schedules_cancelled',
135
138
  'subscription_renewal_reminder',
136
139
  'add_usages_reminder',
137
140
  'payment_due_reminder',
@@ -142,6 +145,7 @@ const ListEventEventTypeSchema = zod_1.z.object({
142
145
  'payment_failed',
143
146
  'dunning_updated',
144
147
  'payment_refunded',
148
+ 'refund_failed',
145
149
  'payment_initiated',
146
150
  'refund_initiated',
147
151
  'netd_payment_due_reminder',
@@ -293,14 +297,46 @@ const ListEventEventTypeSchema = zod_1.z.object({
293
297
  'alert_status_changed',
294
298
  'omnichannel_subscription_item_updated',
295
299
  'omnichannel_subscription_item_recovered',
300
+ 'price_ramp_created',
301
+ 'price_ramp_updated',
302
+ 'price_ramp_deleted',
296
303
  'omnichannel_subscription_item_mrr_updated',
297
304
  'ledger_account_balance_updated',
298
305
  'grant_blocks_created',
299
306
  'grant_blocks_updated',
300
307
  'ledger_updated',
308
+ 'business_rule_created',
309
+ 'business_rule_updated',
310
+ 'business_rule_activated',
311
+ 'business_rule_deactivated',
312
+ 'business_rule_deleted',
313
+ 'business_rule_released',
301
314
  'vault_token_created',
302
315
  'vault_token_updated',
303
316
  'vault_token_deleted',
317
+ 'chargeback_initiated',
318
+ 'chargeback_won',
319
+ 'chargeback_lost',
320
+ 'business_ruleset_created',
321
+ 'business_ruleset_updated',
322
+ 'business_ruleset_activated',
323
+ 'business_ruleset_deactivated',
324
+ 'business_ruleset_deleted',
325
+ 'collections_reminder_sequence_created',
326
+ 'collections_reminder_sequence_paused',
327
+ 'collections_reminder_sequence_resumed',
328
+ 'collections_reminder_sequence_completed',
329
+ 'collections_payment_promise_created',
330
+ 'collections_payment_promise_updated',
331
+ 'collections_payment_promise_fulfilled',
332
+ 'collections_payment_promise_cancelled',
333
+ 'collections_payment_promise_broken',
334
+ 'collections_dispute_created',
335
+ 'collections_dispute_updated',
336
+ 'collections_dispute_resolved',
337
+ 'collections_dispute_withdrawn',
338
+ 'email_message_received',
339
+ 'private_note_added',
304
340
  ])
305
341
  .optional(),
306
342
  is_not: zod_1.z
@@ -363,10 +399,13 @@ const ListEventEventTypeSchema = zod_1.z.object({
363
399
  'credit_note_created_with_backdating',
364
400
  'credit_note_updated',
365
401
  'credit_note_deleted',
402
+ 'einvoice_created',
403
+ 'einvoice_updated',
366
404
  'payment_schedules_created',
367
405
  'payment_schedules_updated',
368
406
  'payment_schedule_scheme_created',
369
407
  'payment_schedule_scheme_deleted',
408
+ 'payment_schedules_cancelled',
370
409
  'subscription_renewal_reminder',
371
410
  'add_usages_reminder',
372
411
  'payment_due_reminder',
@@ -377,6 +416,7 @@ const ListEventEventTypeSchema = zod_1.z.object({
377
416
  'payment_failed',
378
417
  'dunning_updated',
379
418
  'payment_refunded',
419
+ 'refund_failed',
380
420
  'payment_initiated',
381
421
  'refund_initiated',
382
422
  'netd_payment_due_reminder',
@@ -528,14 +568,46 @@ const ListEventEventTypeSchema = zod_1.z.object({
528
568
  'alert_status_changed',
529
569
  'omnichannel_subscription_item_updated',
530
570
  'omnichannel_subscription_item_recovered',
571
+ 'price_ramp_created',
572
+ 'price_ramp_updated',
573
+ 'price_ramp_deleted',
531
574
  'omnichannel_subscription_item_mrr_updated',
532
575
  'ledger_account_balance_updated',
533
576
  'grant_blocks_created',
534
577
  'grant_blocks_updated',
535
578
  'ledger_updated',
579
+ 'business_rule_created',
580
+ 'business_rule_updated',
581
+ 'business_rule_activated',
582
+ 'business_rule_deactivated',
583
+ 'business_rule_deleted',
584
+ 'business_rule_released',
536
585
  'vault_token_created',
537
586
  'vault_token_updated',
538
587
  'vault_token_deleted',
588
+ 'chargeback_initiated',
589
+ 'chargeback_won',
590
+ 'chargeback_lost',
591
+ 'business_ruleset_created',
592
+ 'business_ruleset_updated',
593
+ 'business_ruleset_activated',
594
+ 'business_ruleset_deactivated',
595
+ 'business_ruleset_deleted',
596
+ 'collections_reminder_sequence_created',
597
+ 'collections_reminder_sequence_paused',
598
+ 'collections_reminder_sequence_resumed',
599
+ 'collections_reminder_sequence_completed',
600
+ 'collections_payment_promise_created',
601
+ 'collections_payment_promise_updated',
602
+ 'collections_payment_promise_fulfilled',
603
+ 'collections_payment_promise_cancelled',
604
+ 'collections_payment_promise_broken',
605
+ 'collections_dispute_created',
606
+ 'collections_dispute_updated',
607
+ 'collections_dispute_resolved',
608
+ 'collections_dispute_withdrawn',
609
+ 'email_message_received',
610
+ 'private_note_added',
539
611
  ])
540
612
  .optional(),
541
613
  in: zod_1.z
@@ -598,10 +670,13 @@ const ListEventEventTypeSchema = zod_1.z.object({
598
670
  'credit_note_created_with_backdating',
599
671
  'credit_note_updated',
600
672
  'credit_note_deleted',
673
+ 'einvoice_created',
674
+ 'einvoice_updated',
601
675
  'payment_schedules_created',
602
676
  'payment_schedules_updated',
603
677
  'payment_schedule_scheme_created',
604
678
  'payment_schedule_scheme_deleted',
679
+ 'payment_schedules_cancelled',
605
680
  'subscription_renewal_reminder',
606
681
  'add_usages_reminder',
607
682
  'payment_due_reminder',
@@ -612,6 +687,7 @@ const ListEventEventTypeSchema = zod_1.z.object({
612
687
  'payment_failed',
613
688
  'dunning_updated',
614
689
  'payment_refunded',
690
+ 'refund_failed',
615
691
  'payment_initiated',
616
692
  'refund_initiated',
617
693
  'netd_payment_due_reminder',
@@ -763,14 +839,46 @@ const ListEventEventTypeSchema = zod_1.z.object({
763
839
  'alert_status_changed',
764
840
  'omnichannel_subscription_item_updated',
765
841
  'omnichannel_subscription_item_recovered',
842
+ 'price_ramp_created',
843
+ 'price_ramp_updated',
844
+ 'price_ramp_deleted',
766
845
  'omnichannel_subscription_item_mrr_updated',
767
846
  'ledger_account_balance_updated',
768
847
  'grant_blocks_created',
769
848
  'grant_blocks_updated',
770
849
  'ledger_updated',
850
+ 'business_rule_created',
851
+ 'business_rule_updated',
852
+ 'business_rule_activated',
853
+ 'business_rule_deactivated',
854
+ 'business_rule_deleted',
855
+ 'business_rule_released',
771
856
  'vault_token_created',
772
857
  'vault_token_updated',
773
858
  'vault_token_deleted',
859
+ 'chargeback_initiated',
860
+ 'chargeback_won',
861
+ 'chargeback_lost',
862
+ 'business_ruleset_created',
863
+ 'business_ruleset_updated',
864
+ 'business_ruleset_activated',
865
+ 'business_ruleset_deactivated',
866
+ 'business_ruleset_deleted',
867
+ 'collections_reminder_sequence_created',
868
+ 'collections_reminder_sequence_paused',
869
+ 'collections_reminder_sequence_resumed',
870
+ 'collections_reminder_sequence_completed',
871
+ 'collections_payment_promise_created',
872
+ 'collections_payment_promise_updated',
873
+ 'collections_payment_promise_fulfilled',
874
+ 'collections_payment_promise_cancelled',
875
+ 'collections_payment_promise_broken',
876
+ 'collections_dispute_created',
877
+ 'collections_dispute_updated',
878
+ 'collections_dispute_resolved',
879
+ 'collections_dispute_withdrawn',
880
+ 'email_message_received',
881
+ 'private_note_added',
774
882
  ])
775
883
  .optional(),
776
884
  not_in: zod_1.z
@@ -833,10 +941,13 @@ const ListEventEventTypeSchema = zod_1.z.object({
833
941
  'credit_note_created_with_backdating',
834
942
  'credit_note_updated',
835
943
  'credit_note_deleted',
944
+ 'einvoice_created',
945
+ 'einvoice_updated',
836
946
  'payment_schedules_created',
837
947
  'payment_schedules_updated',
838
948
  'payment_schedule_scheme_created',
839
949
  'payment_schedule_scheme_deleted',
950
+ 'payment_schedules_cancelled',
840
951
  'subscription_renewal_reminder',
841
952
  'add_usages_reminder',
842
953
  'payment_due_reminder',
@@ -847,6 +958,7 @@ const ListEventEventTypeSchema = zod_1.z.object({
847
958
  'payment_failed',
848
959
  'dunning_updated',
849
960
  'payment_refunded',
961
+ 'refund_failed',
850
962
  'payment_initiated',
851
963
  'refund_initiated',
852
964
  'netd_payment_due_reminder',
@@ -998,14 +1110,46 @@ const ListEventEventTypeSchema = zod_1.z.object({
998
1110
  'alert_status_changed',
999
1111
  'omnichannel_subscription_item_updated',
1000
1112
  'omnichannel_subscription_item_recovered',
1113
+ 'price_ramp_created',
1114
+ 'price_ramp_updated',
1115
+ 'price_ramp_deleted',
1001
1116
  'omnichannel_subscription_item_mrr_updated',
1002
1117
  'ledger_account_balance_updated',
1003
1118
  'grant_blocks_created',
1004
1119
  'grant_blocks_updated',
1005
1120
  'ledger_updated',
1121
+ 'business_rule_created',
1122
+ 'business_rule_updated',
1123
+ 'business_rule_activated',
1124
+ 'business_rule_deactivated',
1125
+ 'business_rule_deleted',
1126
+ 'business_rule_released',
1006
1127
  'vault_token_created',
1007
1128
  'vault_token_updated',
1008
1129
  'vault_token_deleted',
1130
+ 'chargeback_initiated',
1131
+ 'chargeback_won',
1132
+ 'chargeback_lost',
1133
+ 'business_ruleset_created',
1134
+ 'business_ruleset_updated',
1135
+ 'business_ruleset_activated',
1136
+ 'business_ruleset_deactivated',
1137
+ 'business_ruleset_deleted',
1138
+ 'collections_reminder_sequence_created',
1139
+ 'collections_reminder_sequence_paused',
1140
+ 'collections_reminder_sequence_resumed',
1141
+ 'collections_reminder_sequence_completed',
1142
+ 'collections_payment_promise_created',
1143
+ 'collections_payment_promise_updated',
1144
+ 'collections_payment_promise_fulfilled',
1145
+ 'collections_payment_promise_cancelled',
1146
+ 'collections_payment_promise_broken',
1147
+ 'collections_dispute_created',
1148
+ 'collections_dispute_updated',
1149
+ 'collections_dispute_resolved',
1150
+ 'collections_dispute_withdrawn',
1151
+ 'email_message_received',
1152
+ 'private_note_added',
1009
1153
  ])
1010
1154
  .optional(),
1011
1155
  });
@@ -1023,6 +1167,9 @@ const ListEventSourceSchema = zod_1.z.object({
1023
1167
  'migration',
1024
1168
  'bulk_operation',
1025
1169
  'external_service',
1170
+ 'mcp',
1171
+ 'copilot',
1172
+ 'agent',
1026
1173
  ])
1027
1174
  .optional(),
1028
1175
  is_not: zod_1.z
@@ -1038,6 +1185,9 @@ const ListEventSourceSchema = zod_1.z.object({
1038
1185
  'migration',
1039
1186
  'bulk_operation',
1040
1187
  'external_service',
1188
+ 'mcp',
1189
+ 'copilot',
1190
+ 'agent',
1041
1191
  ])
1042
1192
  .optional(),
1043
1193
  in: zod_1.z
@@ -1053,6 +1203,9 @@ const ListEventSourceSchema = zod_1.z.object({
1053
1203
  'migration',
1054
1204
  'bulk_operation',
1055
1205
  'external_service',
1206
+ 'mcp',
1207
+ 'copilot',
1208
+ 'agent',
1056
1209
  ])
1057
1210
  .optional(),
1058
1211
  not_in: zod_1.z
@@ -1068,6 +1221,9 @@ const ListEventSourceSchema = zod_1.z.object({
1068
1221
  'migration',
1069
1222
  'bulk_operation',
1070
1223
  'external_service',
1224
+ 'mcp',
1225
+ 'copilot',
1226
+ 'agent',
1071
1227
  ])
1072
1228
  .optional(),
1073
1229
  });