autumn-js 1.3.6 → 1.3.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/dist/backend/adapters/express.js +4856 -3933
  2. package/dist/backend/adapters/express.mjs +5 -5
  3. package/dist/backend/adapters/fetch.js +4856 -3933
  4. package/dist/backend/adapters/fetch.mjs +5 -5
  5. package/dist/backend/adapters/hono.js +4856 -3933
  6. package/dist/backend/adapters/hono.mjs +5 -5
  7. package/dist/backend/adapters/index.js +4856 -3933
  8. package/dist/backend/adapters/index.mjs +8 -8
  9. package/dist/backend/adapters/next.js +4856 -3933
  10. package/dist/backend/adapters/next.mjs +5 -5
  11. package/dist/backend/{chunk-KVDAF2Z7.mjs → chunk-2UUPONJZ.mjs} +1 -1
  12. package/dist/backend/{chunk-E6XWPTEU.mjs → chunk-C2NPCEJI.mjs} +1 -1
  13. package/dist/backend/{chunk-VIKIP3AN.mjs → chunk-C6ZZJ7EE.mjs} +1 -1
  14. package/dist/backend/{chunk-2EVDDYOT.mjs → chunk-DPUV4QAN.mjs} +1 -1
  15. package/dist/backend/{chunk-CW3BRFWR.mjs → chunk-IAILCOBU.mjs} +4847 -3927
  16. package/dist/backend/{chunk-QTW6YBAQ.mjs → chunk-R6G7SG3N.mjs} +3 -0
  17. package/dist/backend/{chunk-VZAVSXW4.mjs → chunk-SYMBZ24L.mjs} +2 -2
  18. package/dist/backend/{chunk-FNRQ65GB.mjs → chunk-XJWHTUI6.mjs} +2 -2
  19. package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
  20. package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
  21. package/dist/backend/core/handlers/coreHandler.js +4856 -3933
  22. package/dist/backend/core/handlers/coreHandler.mjs +3 -3
  23. package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
  24. package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
  25. package/dist/backend/core/handlers/handleRouteByName.js +4856 -3933
  26. package/dist/backend/core/handlers/handleRouteByName.mjs +3 -3
  27. package/dist/backend/core/handlers/index.d.mts +1 -1
  28. package/dist/backend/core/handlers/index.d.ts +1 -1
  29. package/dist/backend/core/handlers/index.js +4856 -3933
  30. package/dist/backend/core/handlers/index.mjs +4 -4
  31. package/dist/backend/core/index.d.mts +1 -1
  32. package/dist/backend/core/index.d.ts +1 -1
  33. package/dist/backend/core/index.js +4856 -3933
  34. package/dist/backend/core/index.mjs +4 -4
  35. package/dist/backend/core/routes/index.d.mts +1 -1
  36. package/dist/backend/core/routes/index.d.ts +1 -1
  37. package/dist/backend/core/routes/index.js +3 -0
  38. package/dist/backend/core/routes/index.mjs +1 -1
  39. package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
  40. package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
  41. package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
  42. package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
  43. package/dist/backend/core/routes/routeConfigs.js +3 -0
  44. package/dist/backend/core/routes/routeConfigs.mjs +1 -1
  45. package/dist/backend/core/types/handlerTypes.d.mts +1 -1
  46. package/dist/backend/core/types/handlerTypes.d.ts +1 -1
  47. package/dist/backend/core/types/index.d.mts +1 -1
  48. package/dist/backend/core/types/index.d.ts +1 -1
  49. package/dist/backend/core/types/routeTypes.d.mts +1 -1
  50. package/dist/backend/core/types/routeTypes.d.ts +1 -1
  51. package/dist/backend/index.d.mts +2 -2
  52. package/dist/backend/index.d.ts +2 -2
  53. package/dist/backend/index.js +4856 -3933
  54. package/dist/backend/index.mjs +4 -4
  55. package/dist/backend/{routeTypes-BB9mD-Vk.d.mts → routeTypes-BoCJIb-T.d.mts} +1002 -36
  56. package/dist/backend/{routeTypes-BxBswjbK.d.ts → routeTypes-CIZ-ZBtX.d.ts} +1002 -36
  57. package/dist/better-auth/{chunk-SK65TCHD.mjs → chunk-C6ATXDH4.mjs} +4848 -3928
  58. package/dist/better-auth/{chunk-AYUZ7BAL.mjs → chunk-CWELMXBP.mjs} +1 -1
  59. package/dist/better-auth/{chunk-MAM2SPNT.mjs → chunk-U5BLUB3E.mjs} +3 -0
  60. package/dist/better-auth/index.js +4856 -3933
  61. package/dist/better-auth/index.mjs +3 -3
  62. package/dist/better-auth/utils/createAutumnEndpoint.js +3 -0
  63. package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
  64. package/dist/better-auth/utils/handleBetterAuthRoute.js +4856 -3933
  65. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
  66. package/dist/better-auth/utils/index.js +4856 -3933
  67. package/dist/better-auth/utils/index.mjs +3 -3
  68. package/dist/react/AutumnContext.d.mts +1 -1
  69. package/dist/react/AutumnContext.d.ts +1 -1
  70. package/dist/react/client/AutumnClient.d.mts +1 -1
  71. package/dist/react/client/AutumnClient.d.ts +1 -1
  72. package/dist/react/client/IAutumnClient.d.mts +1 -1
  73. package/dist/react/client/IAutumnClient.d.ts +1 -1
  74. package/dist/react/client/index.d.mts +1 -1
  75. package/dist/react/client/index.d.ts +1 -1
  76. package/dist/react/hooks/index.d.mts +1 -1
  77. package/dist/react/hooks/index.d.ts +1 -1
  78. package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +1 -1
  79. package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +1 -1
  80. package/dist/react/hooks/internal/useCustomerActions.d.mts +1 -1
  81. package/dist/react/hooks/internal/useCustomerActions.d.ts +1 -1
  82. package/dist/react/hooks/useAggregateEvents.d.mts +1 -1
  83. package/dist/react/hooks/useAggregateEvents.d.ts +1 -1
  84. package/dist/react/hooks/useCustomer.d.mts +1 -1
  85. package/dist/react/hooks/useCustomer.d.ts +1 -1
  86. package/dist/react/hooks/useEntity.d.mts +1 -1
  87. package/dist/react/hooks/useEntity.d.ts +1 -1
  88. package/dist/react/hooks/useListEvents.d.mts +1 -1
  89. package/dist/react/hooks/useListEvents.d.ts +1 -1
  90. package/dist/react/hooks/useListPlans.d.mts +1 -1
  91. package/dist/react/hooks/useListPlans.d.ts +1 -1
  92. package/dist/react/hooks/useReferrals.d.mts +1 -1
  93. package/dist/react/hooks/useReferrals.d.ts +1 -1
  94. package/dist/react/index.d.mts +1 -1
  95. package/dist/react/index.d.ts +1 -1
  96. package/dist/react/{params-CXktWOLV.d.mts → params-B5IVa4Ut.d.mts} +12 -0
  97. package/dist/react/{params-8EvbWq-y.d.ts → params-CT8HBmlA.d.ts} +12 -0
  98. package/dist/sdk/index.d.mts +1630 -81
  99. package/dist/sdk/index.d.ts +1630 -81
  100. package/dist/sdk/index.js +1900 -406
  101. package/dist/sdk/index.mjs +1713 -379
  102. package/package.json +2 -2
package/dist/sdk/index.js CHANGED
@@ -16567,7 +16567,7 @@ var CreateInvoiceBillingBehavior = {
16567
16567
  Prepaid: "prepaid",
16568
16568
  UsageBased: "usage_based"
16569
16569
  };
16570
- var LicenseQuantityInterval = {
16570
+ var CreateInvoiceLicenseQuantityInterval = {
16571
16571
  OneOff: "one_off",
16572
16572
  Week: "week",
16573
16573
  Month: "month",
@@ -16575,7 +16575,7 @@ var LicenseQuantityInterval = {
16575
16575
  SemiAnnual: "semi_annual",
16576
16576
  Year: "year"
16577
16577
  };
16578
- var LicenseQuantityBillingBehavior = {
16578
+ var CreateInvoiceLicenseQuantityBillingBehavior = {
16579
16579
  Prepaid: "prepaid",
16580
16580
  UsageBased: "usage_based"
16581
16581
  };
@@ -17093,7 +17093,7 @@ function createInvoiceFeatureOverrideToJSON(createInvoiceFeatureOverride) {
17093
17093
  )
17094
17094
  );
17095
17095
  }
17096
- var CustomizeItem$outboundSchema = z34__namespace.pipe(
17096
+ var CreateInvoiceCustomizeItem$outboundSchema = z34__namespace.pipe(
17097
17097
  z34__namespace.object({
17098
17098
  featureId: z34__namespace.string(),
17099
17099
  price: z34__namespace.optional(z34__namespace.lazy(() => CreateInvoiceItemPrice$outboundSchema)),
@@ -17108,22 +17108,28 @@ var CustomizeItem$outboundSchema = z34__namespace.pipe(
17108
17108
  });
17109
17109
  })
17110
17110
  );
17111
- function customizeItemToJSON(customizeItem) {
17112
- return JSON.stringify(CustomizeItem$outboundSchema.parse(customizeItem));
17111
+ function createInvoiceCustomizeItemToJSON(createInvoiceCustomizeItem) {
17112
+ return JSON.stringify(
17113
+ CreateInvoiceCustomizeItem$outboundSchema.parse(createInvoiceCustomizeItem)
17114
+ );
17113
17115
  }
17114
- var InvoiceCustomize$outboundSchema = z34__namespace.object({
17116
+ var CreateInvoiceInvoiceCustomize$outboundSchema = z34__namespace.object({
17115
17117
  price: z34__namespace.optional(
17116
17118
  z34__namespace.nullable(z34__namespace.lazy(() => CreateInvoicePrice$outboundSchema))
17117
17119
  ),
17118
- items: z34__namespace.optional(z34__namespace.array(z34__namespace.lazy(() => CustomizeItem$outboundSchema)))
17120
+ items: z34__namespace.optional(
17121
+ z34__namespace.array(z34__namespace.lazy(() => CreateInvoiceCustomizeItem$outboundSchema))
17122
+ )
17119
17123
  });
17120
- function invoiceCustomizeToJSON(invoiceCustomize) {
17124
+ function createInvoiceInvoiceCustomizeToJSON(createInvoiceInvoiceCustomize) {
17121
17125
  return JSON.stringify(
17122
- InvoiceCustomize$outboundSchema.parse(invoiceCustomize)
17126
+ CreateInvoiceInvoiceCustomize$outboundSchema.parse(
17127
+ createInvoiceInvoiceCustomize
17128
+ )
17123
17129
  );
17124
17130
  }
17125
17131
  var CreateInvoiceBillingBehavior$outboundSchema = z34__namespace.enum(CreateInvoiceBillingBehavior);
17126
- var Usage$outboundSchema = z34__namespace.pipe(
17132
+ var CreateInvoiceUsage$outboundSchema = z34__namespace.pipe(
17127
17133
  z34__namespace.object({
17128
17134
  featureId: z34__namespace.string(),
17129
17135
  quantity: z34__namespace.number(),
@@ -17135,15 +17141,17 @@ var Usage$outboundSchema = z34__namespace.pipe(
17135
17141
  });
17136
17142
  })
17137
17143
  );
17138
- function usageToJSON(usage) {
17139
- return JSON.stringify(Usage$outboundSchema.parse(usage));
17144
+ function createInvoiceUsageToJSON(createInvoiceUsage) {
17145
+ return JSON.stringify(
17146
+ CreateInvoiceUsage$outboundSchema.parse(createInvoiceUsage)
17147
+ );
17140
17148
  }
17141
17149
  var CreateInvoiceFeatureQuantity$outboundSchema = z34__namespace.pipe(
17142
17150
  z34__namespace.object({
17143
17151
  featureId: z34__namespace.string(),
17144
17152
  billingBehavior: CreateInvoiceBillingBehavior$outboundSchema,
17145
17153
  quantity: z34__namespace.optional(z34__namespace.number()),
17146
- usage: z34__namespace.optional(z34__namespace.array(z34__namespace.lazy(() => Usage$outboundSchema))),
17154
+ usage: z34__namespace.optional(z34__namespace.array(z34__namespace.lazy(() => CreateInvoiceUsage$outboundSchema))),
17147
17155
  prorate: z34__namespace.optional(z34__namespace.boolean())
17148
17156
  }),
17149
17157
  z34__namespace.transform((v) => {
@@ -17160,8 +17168,8 @@ function createInvoiceFeatureQuantityToJSON(createInvoiceFeatureQuantity) {
17160
17168
  )
17161
17169
  );
17162
17170
  }
17163
- var LicenseQuantityInterval$outboundSchema = z34__namespace.enum(LicenseQuantityInterval);
17164
- var LicenseQuantityStripe$outboundSchema = z34__namespace.pipe(
17171
+ var CreateInvoiceLicenseQuantityInterval$outboundSchema = z34__namespace.enum(CreateInvoiceLicenseQuantityInterval);
17172
+ var CreateInvoiceLicenseQuantityStripe$outboundSchema = z34__namespace.pipe(
17165
17173
  z34__namespace.object({
17166
17174
  priceId: z34__namespace.string()
17167
17175
  }),
@@ -17171,28 +17179,34 @@ var LicenseQuantityStripe$outboundSchema = z34__namespace.pipe(
17171
17179
  });
17172
17180
  })
17173
17181
  );
17174
- function licenseQuantityStripeToJSON(licenseQuantityStripe) {
17182
+ function createInvoiceLicenseQuantityStripeToJSON(createInvoiceLicenseQuantityStripe) {
17175
17183
  return JSON.stringify(
17176
- LicenseQuantityStripe$outboundSchema.parse(licenseQuantityStripe)
17184
+ CreateInvoiceLicenseQuantityStripe$outboundSchema.parse(
17185
+ createInvoiceLicenseQuantityStripe
17186
+ )
17177
17187
  );
17178
17188
  }
17179
- var LicenseQuantityProcessors$outboundSchema = z34__namespace.object({
17189
+ var CreateInvoiceLicenseQuantityProcessors$outboundSchema = z34__namespace.object({
17180
17190
  stripe: z34__namespace.optional(
17181
- z34__namespace.nullable(z34__namespace.lazy(() => LicenseQuantityStripe$outboundSchema))
17191
+ z34__namespace.nullable(
17192
+ z34__namespace.lazy(() => CreateInvoiceLicenseQuantityStripe$outboundSchema)
17193
+ )
17182
17194
  )
17183
17195
  });
17184
- function licenseQuantityProcessorsToJSON(licenseQuantityProcessors) {
17196
+ function createInvoiceLicenseQuantityProcessorsToJSON(createInvoiceLicenseQuantityProcessors) {
17185
17197
  return JSON.stringify(
17186
- LicenseQuantityProcessors$outboundSchema.parse(licenseQuantityProcessors)
17198
+ CreateInvoiceLicenseQuantityProcessors$outboundSchema.parse(
17199
+ createInvoiceLicenseQuantityProcessors
17200
+ )
17187
17201
  );
17188
17202
  }
17189
- var LicenseQuantityPrice$outboundSchema = z34__namespace.pipe(
17203
+ var CreateInvoiceLicenseQuantityPrice$outboundSchema = z34__namespace.pipe(
17190
17204
  z34__namespace.object({
17191
17205
  amount: z34__namespace.number(),
17192
- interval: LicenseQuantityInterval$outboundSchema,
17206
+ interval: CreateInvoiceLicenseQuantityInterval$outboundSchema,
17193
17207
  intervalCount: z34__namespace._default(z34__namespace.number(), 1),
17194
17208
  processors: z34__namespace.optional(
17195
- z34__namespace.lazy(() => LicenseQuantityProcessors$outboundSchema)
17209
+ z34__namespace.lazy(() => CreateInvoiceLicenseQuantityProcessors$outboundSchema)
17196
17210
  )
17197
17211
  }),
17198
17212
  z34__namespace.transform((v) => {
@@ -17201,14 +17215,16 @@ var LicenseQuantityPrice$outboundSchema = z34__namespace.pipe(
17201
17215
  });
17202
17216
  })
17203
17217
  );
17204
- function licenseQuantityPriceToJSON(licenseQuantityPrice) {
17218
+ function createInvoiceLicenseQuantityPriceToJSON(createInvoiceLicenseQuantityPrice) {
17205
17219
  return JSON.stringify(
17206
- LicenseQuantityPrice$outboundSchema.parse(licenseQuantityPrice)
17220
+ CreateInvoiceLicenseQuantityPrice$outboundSchema.parse(
17221
+ createInvoiceLicenseQuantityPrice
17222
+ )
17207
17223
  );
17208
17224
  }
17209
17225
  var CreateInvoiceCustomize$outboundSchema = z34__namespace.object({
17210
17226
  price: z34__namespace.optional(
17211
- z34__namespace.nullable(z34__namespace.lazy(() => LicenseQuantityPrice$outboundSchema))
17227
+ z34__namespace.nullable(z34__namespace.lazy(() => CreateInvoiceLicenseQuantityPrice$outboundSchema))
17212
17228
  )
17213
17229
  });
17214
17230
  function createInvoiceCustomizeToJSON(createInvoiceCustomize) {
@@ -17216,8 +17232,10 @@ function createInvoiceCustomizeToJSON(createInvoiceCustomize) {
17216
17232
  CreateInvoiceCustomize$outboundSchema.parse(createInvoiceCustomize)
17217
17233
  );
17218
17234
  }
17219
- var LicenseQuantityBillingBehavior$outboundSchema = z34__namespace.enum(LicenseQuantityBillingBehavior);
17220
- var LicenseQuantityUsage$outboundSchema = z34__namespace.pipe(
17235
+ var CreateInvoiceLicenseQuantityBillingBehavior$outboundSchema = z34__namespace.enum(
17236
+ CreateInvoiceLicenseQuantityBillingBehavior
17237
+ );
17238
+ var CreateInvoiceLicenseQuantityUsage$outboundSchema = z34__namespace.pipe(
17221
17239
  z34__namespace.object({
17222
17240
  featureId: z34__namespace.string(),
17223
17241
  quantity: z34__namespace.number(),
@@ -17229,18 +17247,20 @@ var LicenseQuantityUsage$outboundSchema = z34__namespace.pipe(
17229
17247
  });
17230
17248
  })
17231
17249
  );
17232
- function licenseQuantityUsageToJSON(licenseQuantityUsage) {
17250
+ function createInvoiceLicenseQuantityUsageToJSON(createInvoiceLicenseQuantityUsage) {
17233
17251
  return JSON.stringify(
17234
- LicenseQuantityUsage$outboundSchema.parse(licenseQuantityUsage)
17252
+ CreateInvoiceLicenseQuantityUsage$outboundSchema.parse(
17253
+ createInvoiceLicenseQuantityUsage
17254
+ )
17235
17255
  );
17236
17256
  }
17237
- var LicenseQuantityFeatureQuantity$outboundSchema = z34__namespace.pipe(
17257
+ var CreateInvoiceLicenseQuantityFeatureQuantity$outboundSchema = z34__namespace.pipe(
17238
17258
  z34__namespace.object({
17239
17259
  featureId: z34__namespace.string(),
17240
- billingBehavior: LicenseQuantityBillingBehavior$outboundSchema,
17260
+ billingBehavior: CreateInvoiceLicenseQuantityBillingBehavior$outboundSchema,
17241
17261
  quantity: z34__namespace.optional(z34__namespace.number()),
17242
17262
  usage: z34__namespace.optional(
17243
- z34__namespace.array(z34__namespace.lazy(() => LicenseQuantityUsage$outboundSchema))
17263
+ z34__namespace.array(z34__namespace.lazy(() => CreateInvoiceLicenseQuantityUsage$outboundSchema))
17244
17264
  ),
17245
17265
  prorate: z34__namespace.optional(z34__namespace.boolean())
17246
17266
  }),
@@ -17251,10 +17271,10 @@ var LicenseQuantityFeatureQuantity$outboundSchema = z34__namespace.pipe(
17251
17271
  });
17252
17272
  })
17253
17273
  );
17254
- function licenseQuantityFeatureQuantityToJSON(licenseQuantityFeatureQuantity) {
17274
+ function createInvoiceLicenseQuantityFeatureQuantityToJSON(createInvoiceLicenseQuantityFeatureQuantity) {
17255
17275
  return JSON.stringify(
17256
- LicenseQuantityFeatureQuantity$outboundSchema.parse(
17257
- licenseQuantityFeatureQuantity
17276
+ CreateInvoiceLicenseQuantityFeatureQuantity$outboundSchema.parse(
17277
+ createInvoiceLicenseQuantityFeatureQuantity
17258
17278
  )
17259
17279
  );
17260
17280
  }
@@ -17263,9 +17283,9 @@ var CreateInvoiceLicenseQuantity$outboundSchema = z34__namespace.pipe(
17263
17283
  licensePlanId: z34__namespace.string(),
17264
17284
  quantity: z34__namespace.int(),
17265
17285
  customize: z34__namespace.optional(z34__namespace.lazy(() => CreateInvoiceCustomize$outboundSchema)),
17266
- featureQuantities: z34__namespace.optional(
17267
- z34__namespace.array(z34__namespace.lazy(() => LicenseQuantityFeatureQuantity$outboundSchema))
17268
- ),
17286
+ featureQuantities: z34__namespace.optional(z34__namespace.array(z34__namespace.lazy(
17287
+ () => CreateInvoiceLicenseQuantityFeatureQuantity$outboundSchema
17288
+ ))),
17269
17289
  prorate: z34__namespace.optional(z34__namespace.boolean())
17270
17290
  }),
17271
17291
  z34__namespace.transform((v) => {
@@ -17303,7 +17323,9 @@ var CreateInvoicePlan$outboundSchema = z34__namespace.pipe(
17303
17323
  z34__namespace.object({
17304
17324
  planId: z34__namespace.string(),
17305
17325
  version: z34__namespace.optional(z34__namespace.number()),
17306
- customize: z34__namespace.optional(z34__namespace.lazy(() => InvoiceCustomize$outboundSchema)),
17326
+ customize: z34__namespace.optional(
17327
+ z34__namespace.lazy(() => CreateInvoiceInvoiceCustomize$outboundSchema)
17328
+ ),
17307
17329
  featureQuantities: z34__namespace.optional(
17308
17330
  z34__namespace.array(z34__namespace.lazy(() => CreateInvoiceFeatureQuantity$outboundSchema))
17309
17331
  ),
@@ -17414,6 +17436,7 @@ function createInvoiceEntityFromJSON(jsonString) {
17414
17436
  }
17415
17437
  var CreateInvoiceInvoiceItem$inboundSchema = z34__namespace.pipe(
17416
17438
  z34__namespace.object({
17439
+ id: string5(),
17417
17440
  description: string5(),
17418
17441
  period_start: nullable(number2()),
17419
17442
  period_end: nullable(number2()),
@@ -17484,7 +17507,7 @@ function createInvoiceInvoiceFromJSON(jsonString) {
17484
17507
  `Failed to parse 'CreateInvoiceInvoice' from JSON`
17485
17508
  );
17486
17509
  }
17487
- var Line$inboundSchema = z34__namespace.pipe(
17510
+ var CreateInvoiceLine$inboundSchema = z34__namespace.pipe(
17488
17511
  z34__namespace.object({
17489
17512
  plan_id: nullable(string5()),
17490
17513
  feature_id: nullable(string5()),
@@ -17506,11 +17529,11 @@ var Line$inboundSchema = z34__namespace.pipe(
17506
17529
  });
17507
17530
  })
17508
17531
  );
17509
- function lineFromJSON(jsonString) {
17532
+ function createInvoiceLineFromJSON(jsonString) {
17510
17533
  return safeParse(
17511
17534
  jsonString,
17512
- (x) => Line$inboundSchema.parse(JSON.parse(x)),
17513
- `Failed to parse 'Line' from JSON`
17535
+ (x) => CreateInvoiceLine$inboundSchema.parse(JSON.parse(x)),
17536
+ `Failed to parse 'CreateInvoiceLine' from JSON`
17514
17537
  );
17515
17538
  }
17516
17539
  var CreateInvoiceStatus$inboundSchema = inboundSchema(CreateInvoiceStatus);
@@ -17535,19 +17558,37 @@ function createInvoiceTaxFromJSON(jsonString) {
17535
17558
  `Failed to parse 'CreateInvoiceTax' from JSON`
17536
17559
  );
17537
17560
  }
17561
+ var CreateInvoiceInvoiceCredits$inboundSchema = z34__namespace.object({
17562
+ balance: number2(),
17563
+ applied: optional3(number2()),
17564
+ currency: string5()
17565
+ });
17566
+ function createInvoiceInvoiceCreditsFromJSON(jsonString) {
17567
+ return safeParse(
17568
+ jsonString,
17569
+ (x) => CreateInvoiceInvoiceCredits$inboundSchema.parse(JSON.parse(x)),
17570
+ `Failed to parse 'CreateInvoiceInvoiceCredits' from JSON`
17571
+ );
17572
+ }
17538
17573
  var CreateInvoicePreview$inboundSchema = z34__namespace.pipe(
17539
17574
  z34__namespace.object({
17540
17575
  currency: string5(),
17541
- lines: z34__namespace.array(z34__namespace.lazy(() => Line$inboundSchema)),
17576
+ lines: z34__namespace.array(z34__namespace.lazy(() => CreateInvoiceLine$inboundSchema)),
17542
17577
  subtotal: number2(),
17543
17578
  discount_total: number2(),
17544
17579
  tax: nullable(z34__namespace.lazy(() => CreateInvoiceTax$inboundSchema)),
17545
17580
  total: number2(),
17581
+ invoice_credits: optional3(
17582
+ z34__namespace.lazy(() => CreateInvoiceInvoiceCredits$inboundSchema)
17583
+ ),
17584
+ amount_due: number2(),
17546
17585
  due_date: nullable(number2())
17547
17586
  }),
17548
17587
  z34__namespace.transform((v) => {
17549
17588
  return remap(v, {
17550
17589
  "discount_total": "discountTotal",
17590
+ "invoice_credits": "invoiceCredits",
17591
+ "amount_due": "amountDue",
17551
17592
  "due_date": "dueDate"
17552
17593
  });
17553
17594
  })
@@ -37954,7 +37995,7 @@ var InsertInvoicesProcessorTypeRequestBody$outboundSchema = z34__namespace.enum(
37954
37995
  InsertInvoicesProcessorTypeRequestBody
37955
37996
  );
37956
37997
  var InsertInvoicesStatus$outboundSchema = z34__namespace.enum(InsertInvoicesStatus);
37957
- var InvoiceRequestBody$outboundSchema = z34__namespace.pipe(
37998
+ var InsertInvoicesInvoiceRequestBody$outboundSchema = z34__namespace.pipe(
37958
37999
  z34__namespace.object({
37959
38000
  customerId: z34__namespace.string(),
37960
38001
  planIds: z34__namespace.optional(z34__namespace.array(z34__namespace.string())),
@@ -37984,13 +38025,17 @@ var InvoiceRequestBody$outboundSchema = z34__namespace.pipe(
37984
38025
  });
37985
38026
  })
37986
38027
  );
37987
- function invoiceRequestBodyToJSON(invoiceRequestBody) {
38028
+ function insertInvoicesInvoiceRequestBodyToJSON(insertInvoicesInvoiceRequestBody) {
37988
38029
  return JSON.stringify(
37989
- InvoiceRequestBody$outboundSchema.parse(invoiceRequestBody)
38030
+ InsertInvoicesInvoiceRequestBody$outboundSchema.parse(
38031
+ insertInvoicesInvoiceRequestBody
38032
+ )
37990
38033
  );
37991
38034
  }
37992
38035
  var InsertInvoicesParams$outboundSchema = z34__namespace.object({
37993
- invoices: z34__namespace.array(z34__namespace.lazy(() => InvoiceRequestBody$outboundSchema))
38036
+ invoices: z34__namespace.array(
38037
+ z34__namespace.lazy(() => InsertInvoicesInvoiceRequestBody$outboundSchema)
38038
+ )
37994
38039
  });
37995
38040
  function insertInvoicesParamsToJSON(insertInvoicesParams) {
37996
38041
  return JSON.stringify(
@@ -41083,6 +41128,7 @@ function listInvoicesEntityFromJSON(jsonString) {
41083
41128
  }
41084
41129
  var ListInvoicesItem$inboundSchema = z34__namespace.pipe(
41085
41130
  z34__namespace.object({
41131
+ id: string5(),
41086
41132
  description: string5(),
41087
41133
  period_start: nullable(number2()),
41088
41134
  period_end: nullable(number2()),
@@ -50380,6 +50426,7 @@ function payInvoiceEntityFromJSON(jsonString) {
50380
50426
  }
50381
50427
  var PayInvoiceItem$inboundSchema = z34__namespace.pipe(
50382
50428
  z34__namespace.object({
50429
+ id: string5(),
50383
50430
  description: string5(),
50384
50431
  period_start: nullable(number2()),
50385
50432
  period_end: nullable(number2()),
@@ -53821,6 +53868,7 @@ function previewAttachTaxFromJSON(jsonString) {
53821
53868
  }
53822
53869
  var PreviewAttachInvoiceCredits$inboundSchema = z34__namespace.object({
53823
53870
  balance: number2(),
53871
+ applied: optional3(number2()),
53824
53872
  currency: string5()
53825
53873
  });
53826
53874
  function previewAttachInvoiceCreditsFromJSON(jsonString) {
@@ -55383,6 +55431,7 @@ function previewMultiAttachTaxFromJSON(jsonString) {
55383
55431
  }
55384
55432
  var PreviewMultiAttachInvoiceCredits$inboundSchema = z34__namespace.object({
55385
55433
  balance: number2(),
55434
+ applied: optional3(number2()),
55386
55435
  currency: string5()
55387
55436
  });
55388
55437
  function previewMultiAttachInvoiceCreditsFromJSON(jsonString) {
@@ -59194,6 +59243,7 @@ function previewUpdateTaxFromJSON(jsonString) {
59194
59243
  }
59195
59244
  var PreviewUpdateInvoiceCredits$inboundSchema = z34__namespace.object({
59196
59245
  balance: number2(),
59246
+ applied: optional3(number2()),
59197
59247
  currency: string5()
59198
59248
  });
59199
59249
  function previewUpdateInvoiceCreditsFromJSON(jsonString) {
@@ -59360,16 +59410,981 @@ function refreshKeyResponseFromJSON(jsonString) {
59360
59410
  `Failed to parse 'RefreshKeyResponse' from JSON`
59361
59411
  );
59362
59412
  }
59413
+ var ReissueInvoiceInterval = {
59414
+ OneOff: "one_off",
59415
+ Week: "week",
59416
+ Month: "month",
59417
+ Quarter: "quarter",
59418
+ SemiAnnual: "semi_annual",
59419
+ Year: "year"
59420
+ };
59421
+ var ReissueInvoiceTierBehavior = {
59422
+ Graduated: "graduated",
59423
+ Volume: "volume"
59424
+ };
59425
+ var ReissueInvoiceItemInterval = {
59426
+ OneOff: "one_off",
59427
+ Week: "week",
59428
+ Month: "month",
59429
+ Quarter: "quarter",
59430
+ SemiAnnual: "semi_annual",
59431
+ Year: "year"
59432
+ };
59433
+ var ReissueInvoiceBillingMethod = {
59434
+ Prepaid: "prepaid",
59435
+ UsageBased: "usage_based"
59436
+ };
59437
+ var ReissueInvoiceDimensionsToEnum2 = {
59438
+ Inf: "inf"
59439
+ };
59440
+ var ReissueInvoiceDimensionsToEnum1 = {
59441
+ Inf: "inf"
59442
+ };
59443
+ var ReissueInvoiceToEnum = {
59444
+ Inf: "inf"
59445
+ };
59446
+ var ReissueInvoiceBillingBehavior = {
59447
+ Prepaid: "prepaid",
59448
+ UsageBased: "usage_based"
59449
+ };
59450
+ var ReissueInvoiceLicenseQuantityInterval = {
59451
+ OneOff: "one_off",
59452
+ Week: "week",
59453
+ Month: "month",
59454
+ Quarter: "quarter",
59455
+ SemiAnnual: "semi_annual",
59456
+ Year: "year"
59457
+ };
59458
+ var ReissueInvoiceLicenseQuantityBillingBehavior = {
59459
+ Prepaid: "prepaid",
59460
+ UsageBased: "usage_based"
59461
+ };
59363
59462
  var ReissueInvoiceProcessorType = {
59364
59463
  Stripe: "stripe",
59365
59464
  Revenuecat: "revenuecat"
59366
59465
  };
59466
+ var ReissueInvoiceStatus = {
59467
+ Complete: "complete",
59468
+ Incomplete: "incomplete"
59469
+ };
59470
+ var CustomField$outboundSchema = z34__namespace.object({
59471
+ name: z34__namespace.string(),
59472
+ value: z34__namespace.string()
59473
+ });
59474
+ function customFieldToJSON(customField) {
59475
+ return JSON.stringify(CustomField$outboundSchema.parse(customField));
59476
+ }
59477
+ var ReissueInvoiceInvoiceRequestBody$outboundSchema = z34__namespace.pipe(
59478
+ z34__namespace.object({
59479
+ customFields: z34__namespace.optional(z34__namespace.array(z34__namespace.lazy(() => CustomField$outboundSchema))),
59480
+ taxRateId: z34__namespace.optional(z34__namespace.nullable(z34__namespace.string())),
59481
+ accountTaxIds: z34__namespace.optional(z34__namespace.nullable(z34__namespace.array(z34__namespace.string()))),
59482
+ footer: z34__namespace.optional(z34__namespace.nullable(z34__namespace.string())),
59483
+ memo: z34__namespace.optional(z34__namespace.nullable(z34__namespace.string()))
59484
+ }),
59485
+ z34__namespace.transform((v) => {
59486
+ return remap(v, {
59487
+ customFields: "custom_fields",
59488
+ taxRateId: "tax_rate_id",
59489
+ accountTaxIds: "account_tax_ids"
59490
+ });
59491
+ })
59492
+ );
59493
+ function reissueInvoiceInvoiceRequestBodyToJSON(reissueInvoiceInvoiceRequestBody) {
59494
+ return JSON.stringify(
59495
+ ReissueInvoiceInvoiceRequestBody$outboundSchema.parse(
59496
+ reissueInvoiceInvoiceRequestBody
59497
+ )
59498
+ );
59499
+ }
59500
+ var Address$outboundSchema = z34__namespace.pipe(
59501
+ z34__namespace.object({
59502
+ line1: z34__namespace.optional(z34__namespace.string()),
59503
+ line2: z34__namespace.optional(z34__namespace.string()),
59504
+ city: z34__namespace.optional(z34__namespace.string()),
59505
+ state: z34__namespace.optional(z34__namespace.string()),
59506
+ postalCode: z34__namespace.optional(z34__namespace.string()),
59507
+ country: z34__namespace.optional(z34__namespace.string())
59508
+ }),
59509
+ z34__namespace.transform((v) => {
59510
+ return remap(v, {
59511
+ postalCode: "postal_code"
59512
+ });
59513
+ })
59514
+ );
59515
+ function addressToJSON(address) {
59516
+ return JSON.stringify(Address$outboundSchema.parse(address));
59517
+ }
59518
+ var TaxId$outboundSchema = z34__namespace.object({
59519
+ type: z34__namespace.string(),
59520
+ value: z34__namespace.string()
59521
+ });
59522
+ function taxIdToJSON(taxId) {
59523
+ return JSON.stringify(TaxId$outboundSchema.parse(taxId));
59524
+ }
59525
+ var InvoiceSettingsCustomFields$outboundSchema = z34__namespace.object({
59526
+ name: z34__namespace.string(),
59527
+ value: z34__namespace.string()
59528
+ });
59529
+ function invoiceSettingsCustomFieldsToJSON(invoiceSettingsCustomFields) {
59530
+ return JSON.stringify(
59531
+ InvoiceSettingsCustomFields$outboundSchema.parse(
59532
+ invoiceSettingsCustomFields
59533
+ )
59534
+ );
59535
+ }
59536
+ var ReissueInvoiceCustomer$outboundSchema = z34__namespace.pipe(
59537
+ z34__namespace.object({
59538
+ email: z34__namespace.optional(z34__namespace.string()),
59539
+ name: z34__namespace.optional(z34__namespace.string()),
59540
+ address: z34__namespace.optional(z34__namespace.lazy(() => Address$outboundSchema)),
59541
+ taxIds: z34__namespace.optional(z34__namespace.array(z34__namespace.lazy(() => TaxId$outboundSchema))),
59542
+ invoiceSettingsCustomFields: z34__namespace.optional(z34__namespace.nullable(z34__namespace.array(z34__namespace.lazy(
59543
+ () => InvoiceSettingsCustomFields$outboundSchema
59544
+ ))))
59545
+ }),
59546
+ z34__namespace.transform((v) => {
59547
+ return remap(v, {
59548
+ taxIds: "tax_ids",
59549
+ invoiceSettingsCustomFields: "invoice_settings_custom_fields"
59550
+ });
59551
+ })
59552
+ );
59553
+ function reissueInvoiceCustomerToJSON(reissueInvoiceCustomer) {
59554
+ return JSON.stringify(
59555
+ ReissueInvoiceCustomer$outboundSchema.parse(reissueInvoiceCustomer)
59556
+ );
59557
+ }
59558
+ var ReissueInvoiceInterval$outboundSchema = z34__namespace.enum(ReissueInvoiceInterval);
59559
+ var ReissueInvoiceStripe$outboundSchema = z34__namespace.pipe(
59560
+ z34__namespace.object({
59561
+ priceId: z34__namespace.string()
59562
+ }),
59563
+ z34__namespace.transform((v) => {
59564
+ return remap(v, {
59565
+ priceId: "price_id"
59566
+ });
59567
+ })
59568
+ );
59569
+ function reissueInvoiceStripeToJSON(reissueInvoiceStripe) {
59570
+ return JSON.stringify(
59571
+ ReissueInvoiceStripe$outboundSchema.parse(reissueInvoiceStripe)
59572
+ );
59573
+ }
59574
+ var ReissueInvoiceProcessors$outboundSchema = z34__namespace.object({
59575
+ stripe: z34__namespace.optional(
59576
+ z34__namespace.nullable(z34__namespace.lazy(() => ReissueInvoiceStripe$outboundSchema))
59577
+ )
59578
+ });
59579
+ function reissueInvoiceProcessorsToJSON(reissueInvoiceProcessors) {
59580
+ return JSON.stringify(
59581
+ ReissueInvoiceProcessors$outboundSchema.parse(reissueInvoiceProcessors)
59582
+ );
59583
+ }
59584
+ var ReissueInvoicePrice$outboundSchema = z34__namespace.pipe(
59585
+ z34__namespace.object({
59586
+ amount: z34__namespace.number(),
59587
+ interval: ReissueInvoiceInterval$outboundSchema,
59588
+ intervalCount: z34__namespace._default(z34__namespace.number(), 1),
59589
+ processors: z34__namespace.optional(
59590
+ z34__namespace.lazy(() => ReissueInvoiceProcessors$outboundSchema)
59591
+ )
59592
+ }),
59593
+ z34__namespace.transform((v) => {
59594
+ return remap(v, {
59595
+ intervalCount: "interval_count"
59596
+ });
59597
+ })
59598
+ );
59599
+ function reissueInvoicePriceToJSON(reissueInvoicePrice) {
59600
+ return JSON.stringify(
59601
+ ReissueInvoicePrice$outboundSchema.parse(reissueInvoicePrice)
59602
+ );
59603
+ }
59604
+ var ReissueInvoicePriceTo$outboundSchema = smartUnion([z34__namespace.number(), z34__namespace.string()]);
59605
+ function reissueInvoicePriceToToJSON(reissueInvoicePriceTo) {
59606
+ return JSON.stringify(
59607
+ ReissueInvoicePriceTo$outboundSchema.parse(reissueInvoicePriceTo)
59608
+ );
59609
+ }
59610
+ var ReissueInvoiceAdditionalCurrency$outboundSchema = z34__namespace.pipe(
59611
+ z34__namespace.object({
59612
+ currency: z34__namespace.string(),
59613
+ amount: z34__namespace.optional(z34__namespace.number()),
59614
+ flatAmount: z34__namespace.optional(z34__namespace.number())
59615
+ }),
59616
+ z34__namespace.transform((v) => {
59617
+ return remap(v, {
59618
+ flatAmount: "flat_amount"
59619
+ });
59620
+ })
59621
+ );
59622
+ function reissueInvoiceAdditionalCurrencyToJSON(reissueInvoiceAdditionalCurrency) {
59623
+ return JSON.stringify(
59624
+ ReissueInvoiceAdditionalCurrency$outboundSchema.parse(
59625
+ reissueInvoiceAdditionalCurrency
59626
+ )
59627
+ );
59628
+ }
59629
+ var ReissueInvoicePriceTier$outboundSchema = z34__namespace.pipe(
59630
+ z34__namespace.object({
59631
+ to: smartUnion([z34__namespace.number(), z34__namespace.string()]),
59632
+ amount: z34__namespace.optional(z34__namespace.number()),
59633
+ flatAmount: z34__namespace.optional(z34__namespace.number()),
59634
+ additionalCurrencies: z34__namespace.optional(
59635
+ z34__namespace.array(z34__namespace.lazy(() => ReissueInvoiceAdditionalCurrency$outboundSchema))
59636
+ )
59637
+ }),
59638
+ z34__namespace.transform((v) => {
59639
+ return remap(v, {
59640
+ flatAmount: "flat_amount",
59641
+ additionalCurrencies: "additional_currencies"
59642
+ });
59643
+ })
59644
+ );
59645
+ function reissueInvoicePriceTierToJSON(reissueInvoicePriceTier) {
59646
+ return JSON.stringify(
59647
+ ReissueInvoicePriceTier$outboundSchema.parse(reissueInvoicePriceTier)
59648
+ );
59649
+ }
59650
+ var ReissueInvoiceTierBehavior$outboundSchema = z34__namespace.enum(ReissueInvoiceTierBehavior);
59651
+ var ReissueInvoiceItemInterval$outboundSchema = z34__namespace.enum(ReissueInvoiceItemInterval);
59652
+ var ReissueInvoiceBillingMethod$outboundSchema = z34__namespace.enum(ReissueInvoiceBillingMethod);
59653
+ var ReissueInvoiceItemStripe$outboundSchema = z34__namespace.pipe(
59654
+ z34__namespace.object({
59655
+ priceId: z34__namespace.string()
59656
+ }),
59657
+ z34__namespace.transform((v) => {
59658
+ return remap(v, {
59659
+ priceId: "price_id"
59660
+ });
59661
+ })
59662
+ );
59663
+ function reissueInvoiceItemStripeToJSON(reissueInvoiceItemStripe) {
59664
+ return JSON.stringify(
59665
+ ReissueInvoiceItemStripe$outboundSchema.parse(reissueInvoiceItemStripe)
59666
+ );
59667
+ }
59668
+ var ReissueInvoiceItemProcessors$outboundSchema = z34__namespace.object({
59669
+ stripe: z34__namespace.optional(
59670
+ z34__namespace.nullable(z34__namespace.lazy(() => ReissueInvoiceItemStripe$outboundSchema))
59671
+ )
59672
+ });
59673
+ function reissueInvoiceItemProcessorsToJSON(reissueInvoiceItemProcessors) {
59674
+ return JSON.stringify(
59675
+ ReissueInvoiceItemProcessors$outboundSchema.parse(
59676
+ reissueInvoiceItemProcessors
59677
+ )
59678
+ );
59679
+ }
59680
+ var ReissueInvoiceItemPrice$outboundSchema = z34__namespace.pipe(
59681
+ z34__namespace.object({
59682
+ amount: z34__namespace.optional(z34__namespace.number()),
59683
+ tiers: z34__namespace.optional(
59684
+ z34__namespace.array(z34__namespace.lazy(() => ReissueInvoicePriceTier$outboundSchema))
59685
+ ),
59686
+ tierBehavior: z34__namespace.optional(ReissueInvoiceTierBehavior$outboundSchema),
59687
+ interval: ReissueInvoiceItemInterval$outboundSchema,
59688
+ intervalCount: z34__namespace._default(z34__namespace.number(), 1),
59689
+ billingUnits: z34__namespace._default(z34__namespace.number(), 1),
59690
+ billingMethod: ReissueInvoiceBillingMethod$outboundSchema,
59691
+ processors: z34__namespace.optional(
59692
+ z34__namespace.lazy(() => ReissueInvoiceItemProcessors$outboundSchema)
59693
+ )
59694
+ }),
59695
+ z34__namespace.transform((v) => {
59696
+ return remap(v, {
59697
+ tierBehavior: "tier_behavior",
59698
+ intervalCount: "interval_count",
59699
+ billingUnits: "billing_units",
59700
+ billingMethod: "billing_method"
59701
+ });
59702
+ })
59703
+ );
59704
+ function reissueInvoiceItemPriceToJSON(reissueInvoiceItemPrice) {
59705
+ return JSON.stringify(
59706
+ ReissueInvoiceItemPrice$outboundSchema.parse(reissueInvoiceItemPrice)
59707
+ );
59708
+ }
59709
+ var ReissueInvoiceDimensionsMatch4$outboundSchema = smartUnion([z34__namespace.string(), z34__namespace.number(), z34__namespace.boolean()]);
59710
+ function reissueInvoiceDimensionsMatch4ToJSON(reissueInvoiceDimensionsMatch4) {
59711
+ return JSON.stringify(
59712
+ ReissueInvoiceDimensionsMatch4$outboundSchema.parse(
59713
+ reissueInvoiceDimensionsMatch4
59714
+ )
59715
+ );
59716
+ }
59717
+ var ReissueInvoiceDimensions4$outboundSchema = z34__namespace.pipe(
59718
+ z34__namespace.object({
59719
+ match: z34__namespace.record(
59720
+ z34__namespace.string(),
59721
+ smartUnion([z34__namespace.string(), z34__namespace.number(), z34__namespace.boolean()])
59722
+ ),
59723
+ priority: z34__namespace.optional(z34__namespace.int()),
59724
+ creditCost: z34__namespace.number()
59725
+ }),
59726
+ z34__namespace.transform((v) => {
59727
+ return remap(v, {
59728
+ creditCost: "credit_cost"
59729
+ });
59730
+ })
59731
+ );
59732
+ function reissueInvoiceDimensions4ToJSON(reissueInvoiceDimensions4) {
59733
+ return JSON.stringify(
59734
+ ReissueInvoiceDimensions4$outboundSchema.parse(reissueInvoiceDimensions4)
59735
+ );
59736
+ }
59737
+ var ReissueInvoiceDimensionsMatch3$outboundSchema = smartUnion([z34__namespace.string(), z34__namespace.number(), z34__namespace.boolean()]);
59738
+ function reissueInvoiceDimensionsMatch3ToJSON(reissueInvoiceDimensionsMatch3) {
59739
+ return JSON.stringify(
59740
+ ReissueInvoiceDimensionsMatch3$outboundSchema.parse(
59741
+ reissueInvoiceDimensionsMatch3
59742
+ )
59743
+ );
59744
+ }
59745
+ var ReissueInvoiceDimensionsToEnum2$outboundSchema = z34__namespace.enum(ReissueInvoiceDimensionsToEnum2);
59746
+ var ReissueInvoiceDimensionsToUnion2$outboundSchema = smartUnion([z34__namespace.number(), ReissueInvoiceDimensionsToEnum2$outboundSchema]);
59747
+ function reissueInvoiceDimensionsToUnion2ToJSON(reissueInvoiceDimensionsToUnion2) {
59748
+ return JSON.stringify(
59749
+ ReissueInvoiceDimensionsToUnion2$outboundSchema.parse(
59750
+ reissueInvoiceDimensionsToUnion2
59751
+ )
59752
+ );
59753
+ }
59754
+ var ReissueInvoiceDimensionsTier2$outboundSchema = z34__namespace.pipe(
59755
+ z34__namespace.object({
59756
+ to: smartUnion([
59757
+ z34__namespace.number(),
59758
+ ReissueInvoiceDimensionsToEnum2$outboundSchema
59759
+ ]),
59760
+ creditCost: z34__namespace.number()
59761
+ }),
59762
+ z34__namespace.transform((v) => {
59763
+ return remap(v, {
59764
+ creditCost: "credit_cost"
59765
+ });
59766
+ })
59767
+ );
59768
+ function reissueInvoiceDimensionsTier2ToJSON(reissueInvoiceDimensionsTier2) {
59769
+ return JSON.stringify(
59770
+ ReissueInvoiceDimensionsTier2$outboundSchema.parse(
59771
+ reissueInvoiceDimensionsTier2
59772
+ )
59773
+ );
59774
+ }
59775
+ var ReissueInvoiceDimensions3$outboundSchema = z34__namespace.pipe(
59776
+ z34__namespace.object({
59777
+ match: z34__namespace.record(
59778
+ z34__namespace.string(),
59779
+ smartUnion([z34__namespace.string(), z34__namespace.number(), z34__namespace.boolean()])
59780
+ ),
59781
+ priority: z34__namespace.optional(z34__namespace.int()),
59782
+ tierBehavior: z34__namespace.literal("graduated"),
59783
+ tiers: z34__namespace.array(z34__namespace.lazy(() => ReissueInvoiceDimensionsTier2$outboundSchema))
59784
+ }),
59785
+ z34__namespace.transform((v) => {
59786
+ return remap(v, {
59787
+ tierBehavior: "tier_behavior"
59788
+ });
59789
+ })
59790
+ );
59791
+ function reissueInvoiceDimensions3ToJSON(reissueInvoiceDimensions3) {
59792
+ return JSON.stringify(
59793
+ ReissueInvoiceDimensions3$outboundSchema.parse(reissueInvoiceDimensions3)
59794
+ );
59795
+ }
59796
+ var ReissueInvoiceDimensionsUnion2$outboundSchema = smartUnion([
59797
+ z34__namespace.lazy(() => ReissueInvoiceDimensions3$outboundSchema),
59798
+ z34__namespace.lazy(() => ReissueInvoiceDimensions4$outboundSchema)
59799
+ ]);
59800
+ function reissueInvoiceDimensionsUnion2ToJSON(reissueInvoiceDimensionsUnion2) {
59801
+ return JSON.stringify(
59802
+ ReissueInvoiceDimensionsUnion2$outboundSchema.parse(
59803
+ reissueInvoiceDimensionsUnion2
59804
+ )
59805
+ );
59806
+ }
59807
+ var ReissueInvoiceMultipliersMatch2$outboundSchema = smartUnion([z34__namespace.string(), z34__namespace.number(), z34__namespace.boolean()]);
59808
+ function reissueInvoiceMultipliersMatch2ToJSON(reissueInvoiceMultipliersMatch2) {
59809
+ return JSON.stringify(
59810
+ ReissueInvoiceMultipliersMatch2$outboundSchema.parse(
59811
+ reissueInvoiceMultipliersMatch2
59812
+ )
59813
+ );
59814
+ }
59815
+ var ReissueInvoiceMultipliers2$outboundSchema = z34__namespace.object({
59816
+ match: z34__namespace.record(
59817
+ z34__namespace.string(),
59818
+ smartUnion([z34__namespace.string(), z34__namespace.number(), z34__namespace.boolean()])
59819
+ ),
59820
+ factor: z34__namespace.optional(z34__namespace.number()),
59821
+ add: z34__namespace.optional(z34__namespace.number())
59822
+ });
59823
+ function reissueInvoiceMultipliers2ToJSON(reissueInvoiceMultipliers2) {
59824
+ return JSON.stringify(
59825
+ ReissueInvoiceMultipliers2$outboundSchema.parse(reissueInvoiceMultipliers2)
59826
+ );
59827
+ }
59828
+ var ReissueInvoiceCreditSchema2$outboundSchema = z34__namespace.pipe(
59829
+ z34__namespace.object({
59830
+ meteredFeatureId: z34__namespace.string(),
59831
+ billingUnits: z34__namespace.optional(z34__namespace.number()),
59832
+ dimensions: z34__namespace.optional(z34__namespace.record(
59833
+ z34__namespace.string(),
59834
+ smartUnion([
59835
+ z34__namespace.lazy(() => ReissueInvoiceDimensions3$outboundSchema),
59836
+ z34__namespace.lazy(() => ReissueInvoiceDimensions4$outboundSchema)
59837
+ ])
59838
+ )),
59839
+ multipliers: z34__namespace.optional(z34__namespace.record(
59840
+ z34__namespace.string(),
59841
+ z34__namespace.lazy(() => ReissueInvoiceMultipliers2$outboundSchema)
59842
+ )),
59843
+ creditCost: z34__namespace.number()
59844
+ }),
59845
+ z34__namespace.transform((v) => {
59846
+ return remap(v, {
59847
+ meteredFeatureId: "metered_feature_id",
59848
+ billingUnits: "billing_units",
59849
+ creditCost: "credit_cost"
59850
+ });
59851
+ })
59852
+ );
59853
+ function reissueInvoiceCreditSchema2ToJSON(reissueInvoiceCreditSchema2) {
59854
+ return JSON.stringify(
59855
+ ReissueInvoiceCreditSchema2$outboundSchema.parse(
59856
+ reissueInvoiceCreditSchema2
59857
+ )
59858
+ );
59859
+ }
59860
+ var ReissueInvoiceDimensionsMatch2$outboundSchema = smartUnion([z34__namespace.string(), z34__namespace.number(), z34__namespace.boolean()]);
59861
+ function reissueInvoiceDimensionsMatch2ToJSON(reissueInvoiceDimensionsMatch2) {
59862
+ return JSON.stringify(
59863
+ ReissueInvoiceDimensionsMatch2$outboundSchema.parse(
59864
+ reissueInvoiceDimensionsMatch2
59865
+ )
59866
+ );
59867
+ }
59868
+ var ReissueInvoiceDimensions2$outboundSchema = z34__namespace.pipe(
59869
+ z34__namespace.object({
59870
+ match: z34__namespace.record(
59871
+ z34__namespace.string(),
59872
+ smartUnion([z34__namespace.string(), z34__namespace.number(), z34__namespace.boolean()])
59873
+ ),
59874
+ priority: z34__namespace.optional(z34__namespace.int()),
59875
+ creditCost: z34__namespace.number()
59876
+ }),
59877
+ z34__namespace.transform((v) => {
59878
+ return remap(v, {
59879
+ creditCost: "credit_cost"
59880
+ });
59881
+ })
59882
+ );
59883
+ function reissueInvoiceDimensions2ToJSON(reissueInvoiceDimensions2) {
59884
+ return JSON.stringify(
59885
+ ReissueInvoiceDimensions2$outboundSchema.parse(reissueInvoiceDimensions2)
59886
+ );
59887
+ }
59888
+ var ReissueInvoiceDimensionsMatch1$outboundSchema = smartUnion([z34__namespace.string(), z34__namespace.number(), z34__namespace.boolean()]);
59889
+ function reissueInvoiceDimensionsMatch1ToJSON(reissueInvoiceDimensionsMatch1) {
59890
+ return JSON.stringify(
59891
+ ReissueInvoiceDimensionsMatch1$outboundSchema.parse(
59892
+ reissueInvoiceDimensionsMatch1
59893
+ )
59894
+ );
59895
+ }
59896
+ var ReissueInvoiceDimensionsToEnum1$outboundSchema = z34__namespace.enum(ReissueInvoiceDimensionsToEnum1);
59897
+ var ReissueInvoiceDimensionsToUnion1$outboundSchema = smartUnion([z34__namespace.number(), ReissueInvoiceDimensionsToEnum1$outboundSchema]);
59898
+ function reissueInvoiceDimensionsToUnion1ToJSON(reissueInvoiceDimensionsToUnion1) {
59899
+ return JSON.stringify(
59900
+ ReissueInvoiceDimensionsToUnion1$outboundSchema.parse(
59901
+ reissueInvoiceDimensionsToUnion1
59902
+ )
59903
+ );
59904
+ }
59905
+ var ReissueInvoiceDimensionsTier1$outboundSchema = z34__namespace.pipe(
59906
+ z34__namespace.object({
59907
+ to: smartUnion([
59908
+ z34__namespace.number(),
59909
+ ReissueInvoiceDimensionsToEnum1$outboundSchema
59910
+ ]),
59911
+ creditCost: z34__namespace.number()
59912
+ }),
59913
+ z34__namespace.transform((v) => {
59914
+ return remap(v, {
59915
+ creditCost: "credit_cost"
59916
+ });
59917
+ })
59918
+ );
59919
+ function reissueInvoiceDimensionsTier1ToJSON(reissueInvoiceDimensionsTier1) {
59920
+ return JSON.stringify(
59921
+ ReissueInvoiceDimensionsTier1$outboundSchema.parse(
59922
+ reissueInvoiceDimensionsTier1
59923
+ )
59924
+ );
59925
+ }
59926
+ var ReissueInvoiceDimensions1$outboundSchema = z34__namespace.pipe(
59927
+ z34__namespace.object({
59928
+ match: z34__namespace.record(
59929
+ z34__namespace.string(),
59930
+ smartUnion([z34__namespace.string(), z34__namespace.number(), z34__namespace.boolean()])
59931
+ ),
59932
+ priority: z34__namespace.optional(z34__namespace.int()),
59933
+ tierBehavior: z34__namespace.literal("graduated"),
59934
+ tiers: z34__namespace.array(z34__namespace.lazy(() => ReissueInvoiceDimensionsTier1$outboundSchema))
59935
+ }),
59936
+ z34__namespace.transform((v) => {
59937
+ return remap(v, {
59938
+ tierBehavior: "tier_behavior"
59939
+ });
59940
+ })
59941
+ );
59942
+ function reissueInvoiceDimensions1ToJSON(reissueInvoiceDimensions1) {
59943
+ return JSON.stringify(
59944
+ ReissueInvoiceDimensions1$outboundSchema.parse(reissueInvoiceDimensions1)
59945
+ );
59946
+ }
59947
+ var ReissueInvoiceDimensionsUnion1$outboundSchema = smartUnion([
59948
+ z34__namespace.lazy(() => ReissueInvoiceDimensions1$outboundSchema),
59949
+ z34__namespace.lazy(() => ReissueInvoiceDimensions2$outboundSchema)
59950
+ ]);
59951
+ function reissueInvoiceDimensionsUnion1ToJSON(reissueInvoiceDimensionsUnion1) {
59952
+ return JSON.stringify(
59953
+ ReissueInvoiceDimensionsUnion1$outboundSchema.parse(
59954
+ reissueInvoiceDimensionsUnion1
59955
+ )
59956
+ );
59957
+ }
59958
+ var ReissueInvoiceMultipliersMatch1$outboundSchema = smartUnion([z34__namespace.string(), z34__namespace.number(), z34__namespace.boolean()]);
59959
+ function reissueInvoiceMultipliersMatch1ToJSON(reissueInvoiceMultipliersMatch1) {
59960
+ return JSON.stringify(
59961
+ ReissueInvoiceMultipliersMatch1$outboundSchema.parse(
59962
+ reissueInvoiceMultipliersMatch1
59963
+ )
59964
+ );
59965
+ }
59966
+ var ReissueInvoiceMultipliers1$outboundSchema = z34__namespace.object({
59967
+ match: z34__namespace.record(
59968
+ z34__namespace.string(),
59969
+ smartUnion([z34__namespace.string(), z34__namespace.number(), z34__namespace.boolean()])
59970
+ ),
59971
+ factor: z34__namespace.optional(z34__namespace.number()),
59972
+ add: z34__namespace.optional(z34__namespace.number())
59973
+ });
59974
+ function reissueInvoiceMultipliers1ToJSON(reissueInvoiceMultipliers1) {
59975
+ return JSON.stringify(
59976
+ ReissueInvoiceMultipliers1$outboundSchema.parse(reissueInvoiceMultipliers1)
59977
+ );
59978
+ }
59979
+ var ReissueInvoiceToEnum$outboundSchema = z34__namespace.enum(ReissueInvoiceToEnum);
59980
+ var ReissueInvoiceFeatureOverrideToUnion$outboundSchema = smartUnion([z34__namespace.number(), ReissueInvoiceToEnum$outboundSchema]);
59981
+ function reissueInvoiceFeatureOverrideToUnionToJSON(reissueInvoiceFeatureOverrideToUnion) {
59982
+ return JSON.stringify(
59983
+ ReissueInvoiceFeatureOverrideToUnion$outboundSchema.parse(
59984
+ reissueInvoiceFeatureOverrideToUnion
59985
+ )
59986
+ );
59987
+ }
59988
+ var ReissueInvoiceFeatureOverrideTier$outboundSchema = z34__namespace.pipe(
59989
+ z34__namespace.object({
59990
+ to: smartUnion([z34__namespace.number(), ReissueInvoiceToEnum$outboundSchema]),
59991
+ creditCost: z34__namespace.number()
59992
+ }),
59993
+ z34__namespace.transform((v) => {
59994
+ return remap(v, {
59995
+ creditCost: "credit_cost"
59996
+ });
59997
+ })
59998
+ );
59999
+ function reissueInvoiceFeatureOverrideTierToJSON(reissueInvoiceFeatureOverrideTier) {
60000
+ return JSON.stringify(
60001
+ ReissueInvoiceFeatureOverrideTier$outboundSchema.parse(
60002
+ reissueInvoiceFeatureOverrideTier
60003
+ )
60004
+ );
60005
+ }
60006
+ var ReissueInvoiceCreditSchema1$outboundSchema = z34__namespace.pipe(
60007
+ z34__namespace.object({
60008
+ meteredFeatureId: z34__namespace.string(),
60009
+ billingUnits: z34__namespace.optional(z34__namespace.number()),
60010
+ dimensions: z34__namespace.optional(z34__namespace.record(
60011
+ z34__namespace.string(),
60012
+ smartUnion([
60013
+ z34__namespace.lazy(() => ReissueInvoiceDimensions1$outboundSchema),
60014
+ z34__namespace.lazy(() => ReissueInvoiceDimensions2$outboundSchema)
60015
+ ])
60016
+ )),
60017
+ multipliers: z34__namespace.optional(z34__namespace.record(
60018
+ z34__namespace.string(),
60019
+ z34__namespace.lazy(() => ReissueInvoiceMultipliers1$outboundSchema)
60020
+ )),
60021
+ tierBehavior: z34__namespace.literal("graduated"),
60022
+ tiers: z34__namespace.array(z34__namespace.lazy(
60023
+ () => ReissueInvoiceFeatureOverrideTier$outboundSchema
60024
+ ))
60025
+ }),
60026
+ z34__namespace.transform((v) => {
60027
+ return remap(v, {
60028
+ meteredFeatureId: "metered_feature_id",
60029
+ billingUnits: "billing_units",
60030
+ tierBehavior: "tier_behavior"
60031
+ });
60032
+ })
60033
+ );
60034
+ function reissueInvoiceCreditSchema1ToJSON(reissueInvoiceCreditSchema1) {
60035
+ return JSON.stringify(
60036
+ ReissueInvoiceCreditSchema1$outboundSchema.parse(
60037
+ reissueInvoiceCreditSchema1
60038
+ )
60039
+ );
60040
+ }
60041
+ var ReissueInvoiceCreditSchemaUnion$outboundSchema = smartUnion([
60042
+ z34__namespace.lazy(() => ReissueInvoiceCreditSchema1$outboundSchema),
60043
+ z34__namespace.lazy(() => ReissueInvoiceCreditSchema2$outboundSchema)
60044
+ ]);
60045
+ function reissueInvoiceCreditSchemaUnionToJSON(reissueInvoiceCreditSchemaUnion) {
60046
+ return JSON.stringify(
60047
+ ReissueInvoiceCreditSchemaUnion$outboundSchema.parse(
60048
+ reissueInvoiceCreditSchemaUnion
60049
+ )
60050
+ );
60051
+ }
60052
+ var ReissueInvoiceFeatureOverride$outboundSchema = z34__namespace.pipe(
60053
+ z34__namespace.object({
60054
+ creditSchema: z34__namespace.optional(z34__namespace.array(smartUnion([
60055
+ z34__namespace.lazy(() => ReissueInvoiceCreditSchema1$outboundSchema),
60056
+ z34__namespace.lazy(
60057
+ () => ReissueInvoiceCreditSchema2$outboundSchema
60058
+ )
60059
+ ])))
60060
+ }),
60061
+ z34__namespace.transform((v) => {
60062
+ return remap(v, {
60063
+ creditSchema: "credit_schema"
60064
+ });
60065
+ })
60066
+ );
60067
+ function reissueInvoiceFeatureOverrideToJSON(reissueInvoiceFeatureOverride) {
60068
+ return JSON.stringify(
60069
+ ReissueInvoiceFeatureOverride$outboundSchema.parse(
60070
+ reissueInvoiceFeatureOverride
60071
+ )
60072
+ );
60073
+ }
60074
+ var AddItem$outboundSchema = z34__namespace.pipe(
60075
+ z34__namespace.object({
60076
+ featureId: z34__namespace.string(),
60077
+ price: z34__namespace.optional(z34__namespace.lazy(() => ReissueInvoiceItemPrice$outboundSchema)),
60078
+ featureOverride: z34__namespace.optional(
60079
+ z34__namespace.lazy(() => ReissueInvoiceFeatureOverride$outboundSchema)
60080
+ )
60081
+ }),
60082
+ z34__namespace.transform((v) => {
60083
+ return remap(v, {
60084
+ featureId: "feature_id",
60085
+ featureOverride: "feature_override"
60086
+ });
60087
+ })
60088
+ );
60089
+ function addItemToJSON(addItem) {
60090
+ return JSON.stringify(AddItem$outboundSchema.parse(addItem));
60091
+ }
60092
+ var ReissueInvoiceInvoiceCustomize$outboundSchema = z34__namespace.object({
60093
+ price: z34__namespace.optional(
60094
+ z34__namespace.nullable(z34__namespace.lazy(() => ReissueInvoicePrice$outboundSchema))
60095
+ ),
60096
+ items: z34__namespace.optional(z34__namespace.array(z34__namespace.lazy(() => AddItem$outboundSchema)))
60097
+ });
60098
+ function reissueInvoiceInvoiceCustomizeToJSON(reissueInvoiceInvoiceCustomize) {
60099
+ return JSON.stringify(
60100
+ ReissueInvoiceInvoiceCustomize$outboundSchema.parse(
60101
+ reissueInvoiceInvoiceCustomize
60102
+ )
60103
+ );
60104
+ }
60105
+ var ReissueInvoiceBillingBehavior$outboundSchema = z34__namespace.enum(ReissueInvoiceBillingBehavior);
60106
+ var ReissueInvoiceUsage$outboundSchema = z34__namespace.pipe(
60107
+ z34__namespace.object({
60108
+ featureId: z34__namespace.string(),
60109
+ quantity: z34__namespace.number(),
60110
+ properties: z34__namespace.optional(z34__namespace.record(z34__namespace.string(), z34__namespace.any()))
60111
+ }),
60112
+ z34__namespace.transform((v) => {
60113
+ return remap(v, {
60114
+ featureId: "feature_id"
60115
+ });
60116
+ })
60117
+ );
60118
+ function reissueInvoiceUsageToJSON(reissueInvoiceUsage) {
60119
+ return JSON.stringify(
60120
+ ReissueInvoiceUsage$outboundSchema.parse(reissueInvoiceUsage)
60121
+ );
60122
+ }
60123
+ var ReissueInvoiceFeatureQuantity$outboundSchema = z34__namespace.pipe(
60124
+ z34__namespace.object({
60125
+ featureId: z34__namespace.string(),
60126
+ billingBehavior: ReissueInvoiceBillingBehavior$outboundSchema,
60127
+ quantity: z34__namespace.optional(z34__namespace.number()),
60128
+ usage: z34__namespace.optional(
60129
+ z34__namespace.array(z34__namespace.lazy(() => ReissueInvoiceUsage$outboundSchema))
60130
+ ),
60131
+ prorate: z34__namespace.optional(z34__namespace.boolean())
60132
+ }),
60133
+ z34__namespace.transform((v) => {
60134
+ return remap(v, {
60135
+ featureId: "feature_id",
60136
+ billingBehavior: "billing_behavior"
60137
+ });
60138
+ })
60139
+ );
60140
+ function reissueInvoiceFeatureQuantityToJSON(reissueInvoiceFeatureQuantity) {
60141
+ return JSON.stringify(
60142
+ ReissueInvoiceFeatureQuantity$outboundSchema.parse(
60143
+ reissueInvoiceFeatureQuantity
60144
+ )
60145
+ );
60146
+ }
60147
+ var ReissueInvoiceLicenseQuantityInterval$outboundSchema = z34__namespace.enum(
60148
+ ReissueInvoiceLicenseQuantityInterval
60149
+ );
60150
+ var ReissueInvoiceLicenseQuantityStripe$outboundSchema = z34__namespace.pipe(
60151
+ z34__namespace.object({
60152
+ priceId: z34__namespace.string()
60153
+ }),
60154
+ z34__namespace.transform((v) => {
60155
+ return remap(v, {
60156
+ priceId: "price_id"
60157
+ });
60158
+ })
60159
+ );
60160
+ function reissueInvoiceLicenseQuantityStripeToJSON(reissueInvoiceLicenseQuantityStripe) {
60161
+ return JSON.stringify(
60162
+ ReissueInvoiceLicenseQuantityStripe$outboundSchema.parse(
60163
+ reissueInvoiceLicenseQuantityStripe
60164
+ )
60165
+ );
60166
+ }
60167
+ var ReissueInvoiceLicenseQuantityProcessors$outboundSchema = z34__namespace.object({
60168
+ stripe: z34__namespace.optional(
60169
+ z34__namespace.nullable(
60170
+ z34__namespace.lazy(() => ReissueInvoiceLicenseQuantityStripe$outboundSchema)
60171
+ )
60172
+ )
60173
+ });
60174
+ function reissueInvoiceLicenseQuantityProcessorsToJSON(reissueInvoiceLicenseQuantityProcessors) {
60175
+ return JSON.stringify(
60176
+ ReissueInvoiceLicenseQuantityProcessors$outboundSchema.parse(
60177
+ reissueInvoiceLicenseQuantityProcessors
60178
+ )
60179
+ );
60180
+ }
60181
+ var ReissueInvoiceLicenseQuantityPrice$outboundSchema = z34__namespace.pipe(
60182
+ z34__namespace.object({
60183
+ amount: z34__namespace.number(),
60184
+ interval: ReissueInvoiceLicenseQuantityInterval$outboundSchema,
60185
+ intervalCount: z34__namespace._default(z34__namespace.number(), 1),
60186
+ processors: z34__namespace.optional(
60187
+ z34__namespace.lazy(() => ReissueInvoiceLicenseQuantityProcessors$outboundSchema)
60188
+ )
60189
+ }),
60190
+ z34__namespace.transform((v) => {
60191
+ return remap(v, {
60192
+ intervalCount: "interval_count"
60193
+ });
60194
+ })
60195
+ );
60196
+ function reissueInvoiceLicenseQuantityPriceToJSON(reissueInvoiceLicenseQuantityPrice) {
60197
+ return JSON.stringify(
60198
+ ReissueInvoiceLicenseQuantityPrice$outboundSchema.parse(
60199
+ reissueInvoiceLicenseQuantityPrice
60200
+ )
60201
+ );
60202
+ }
60203
+ var ReissueInvoiceCustomize$outboundSchema = z34__namespace.object({
60204
+ price: z34__namespace.optional(
60205
+ z34__namespace.nullable(z34__namespace.lazy(() => ReissueInvoiceLicenseQuantityPrice$outboundSchema))
60206
+ )
60207
+ });
60208
+ function reissueInvoiceCustomizeToJSON(reissueInvoiceCustomize) {
60209
+ return JSON.stringify(
60210
+ ReissueInvoiceCustomize$outboundSchema.parse(reissueInvoiceCustomize)
60211
+ );
60212
+ }
60213
+ var ReissueInvoiceLicenseQuantityBillingBehavior$outboundSchema = z34__namespace.enum(
60214
+ ReissueInvoiceLicenseQuantityBillingBehavior
60215
+ );
60216
+ var ReissueInvoiceLicenseQuantityUsage$outboundSchema = z34__namespace.pipe(
60217
+ z34__namespace.object({
60218
+ featureId: z34__namespace.string(),
60219
+ quantity: z34__namespace.number(),
60220
+ properties: z34__namespace.optional(z34__namespace.record(z34__namespace.string(), z34__namespace.any()))
60221
+ }),
60222
+ z34__namespace.transform((v) => {
60223
+ return remap(v, {
60224
+ featureId: "feature_id"
60225
+ });
60226
+ })
60227
+ );
60228
+ function reissueInvoiceLicenseQuantityUsageToJSON(reissueInvoiceLicenseQuantityUsage) {
60229
+ return JSON.stringify(
60230
+ ReissueInvoiceLicenseQuantityUsage$outboundSchema.parse(
60231
+ reissueInvoiceLicenseQuantityUsage
60232
+ )
60233
+ );
60234
+ }
60235
+ var ReissueInvoiceLicenseQuantityFeatureQuantity$outboundSchema = z34__namespace.pipe(
60236
+ z34__namespace.object({
60237
+ featureId: z34__namespace.string(),
60238
+ billingBehavior: ReissueInvoiceLicenseQuantityBillingBehavior$outboundSchema,
60239
+ quantity: z34__namespace.optional(z34__namespace.number()),
60240
+ usage: z34__namespace.optional(
60241
+ z34__namespace.array(
60242
+ z34__namespace.lazy(() => ReissueInvoiceLicenseQuantityUsage$outboundSchema)
60243
+ )
60244
+ ),
60245
+ prorate: z34__namespace.optional(z34__namespace.boolean())
60246
+ }),
60247
+ z34__namespace.transform((v) => {
60248
+ return remap(v, {
60249
+ featureId: "feature_id",
60250
+ billingBehavior: "billing_behavior"
60251
+ });
60252
+ })
60253
+ );
60254
+ function reissueInvoiceLicenseQuantityFeatureQuantityToJSON(reissueInvoiceLicenseQuantityFeatureQuantity) {
60255
+ return JSON.stringify(
60256
+ ReissueInvoiceLicenseQuantityFeatureQuantity$outboundSchema.parse(
60257
+ reissueInvoiceLicenseQuantityFeatureQuantity
60258
+ )
60259
+ );
60260
+ }
60261
+ var ReissueInvoiceLicenseQuantity$outboundSchema = z34__namespace.pipe(
60262
+ z34__namespace.object({
60263
+ licensePlanId: z34__namespace.string(),
60264
+ quantity: z34__namespace.int(),
60265
+ customize: z34__namespace.optional(z34__namespace.lazy(() => ReissueInvoiceCustomize$outboundSchema)),
60266
+ featureQuantities: z34__namespace.optional(z34__namespace.array(z34__namespace.lazy(
60267
+ () => ReissueInvoiceLicenseQuantityFeatureQuantity$outboundSchema
60268
+ ))),
60269
+ prorate: z34__namespace.optional(z34__namespace.boolean())
60270
+ }),
60271
+ z34__namespace.transform((v) => {
60272
+ return remap(v, {
60273
+ licensePlanId: "license_plan_id",
60274
+ featureQuantities: "feature_quantities"
60275
+ });
60276
+ })
60277
+ );
60278
+ function reissueInvoiceLicenseQuantityToJSON(reissueInvoiceLicenseQuantity) {
60279
+ return JSON.stringify(
60280
+ ReissueInvoiceLicenseQuantity$outboundSchema.parse(
60281
+ reissueInvoiceLicenseQuantity
60282
+ )
60283
+ );
60284
+ }
60285
+ var ReissueInvoiceAttachDiscount$outboundSchema = z34__namespace.pipe(
60286
+ z34__namespace.object({
60287
+ rewardId: z34__namespace.optional(z34__namespace.string()),
60288
+ promotionCode: z34__namespace.optional(z34__namespace.string())
60289
+ }),
60290
+ z34__namespace.transform((v) => {
60291
+ return remap(v, {
60292
+ rewardId: "reward_id",
60293
+ promotionCode: "promotion_code"
60294
+ });
60295
+ })
60296
+ );
60297
+ function reissueInvoiceAttachDiscountToJSON(reissueInvoiceAttachDiscount) {
60298
+ return JSON.stringify(
60299
+ ReissueInvoiceAttachDiscount$outboundSchema.parse(
60300
+ reissueInvoiceAttachDiscount
60301
+ )
60302
+ );
60303
+ }
60304
+ var Add2$outboundSchema = z34__namespace.pipe(
60305
+ z34__namespace.object({
60306
+ planId: z34__namespace.string(),
60307
+ version: z34__namespace.optional(z34__namespace.number()),
60308
+ customize: z34__namespace.optional(z34__namespace.lazy(
60309
+ () => ReissueInvoiceInvoiceCustomize$outboundSchema
60310
+ )),
60311
+ featureQuantities: z34__namespace.optional(z34__namespace.array(z34__namespace.lazy(
60312
+ () => ReissueInvoiceFeatureQuantity$outboundSchema
60313
+ ))),
60314
+ licenseQuantities: z34__namespace.optional(z34__namespace.array(z34__namespace.lazy(
60315
+ () => ReissueInvoiceLicenseQuantity$outboundSchema
60316
+ ))),
60317
+ discounts: z34__namespace.optional(z34__namespace.array(z34__namespace.lazy(
60318
+ () => ReissueInvoiceAttachDiscount$outboundSchema
60319
+ ))),
60320
+ prorate: z34__namespace.optional(z34__namespace.boolean())
60321
+ }),
60322
+ z34__namespace.transform((v) => {
60323
+ return remap(v, {
60324
+ planId: "plan_id",
60325
+ featureQuantities: "feature_quantities",
60326
+ licenseQuantities: "license_quantities"
60327
+ });
60328
+ })
60329
+ );
60330
+ function add2ToJSON(add2) {
60331
+ return JSON.stringify(Add2$outboundSchema.parse(add2));
60332
+ }
60333
+ var Add1$outboundSchema = z34__namespace.object(
60334
+ {
60335
+ amount: z34__namespace.number(),
60336
+ description: z34__namespace.string()
60337
+ }
60338
+ );
60339
+ function add1ToJSON(add1) {
60340
+ return JSON.stringify(Add1$outboundSchema.parse(add1));
60341
+ }
60342
+ var AddUnion$outboundSchema = smartUnion([
60343
+ z34__namespace.lazy(() => Add1$outboundSchema),
60344
+ z34__namespace.lazy(() => Add2$outboundSchema)
60345
+ ]);
60346
+ function addUnionToJSON(addUnion) {
60347
+ return JSON.stringify(AddUnion$outboundSchema.parse(addUnion));
60348
+ }
60349
+ var ReissueInvoiceUpdate$outboundSchema = z34__namespace.object({
60350
+ id: z34__namespace.string(),
60351
+ amount: z34__namespace.optional(z34__namespace.number()),
60352
+ description: z34__namespace.optional(z34__namespace.string())
60353
+ });
60354
+ function reissueInvoiceUpdateToJSON(reissueInvoiceUpdate) {
60355
+ return JSON.stringify(
60356
+ ReissueInvoiceUpdate$outboundSchema.parse(reissueInvoiceUpdate)
60357
+ );
60358
+ }
60359
+ var Lines$outboundSchema = z34__namespace.object({
60360
+ add: z34__namespace.optional(
60361
+ z34__namespace.array(smartUnion([
60362
+ z34__namespace.lazy(() => Add1$outboundSchema),
60363
+ z34__namespace.lazy(
60364
+ () => Add2$outboundSchema
60365
+ )
60366
+ ]))
60367
+ ),
60368
+ update: z34__namespace.optional(
60369
+ z34__namespace.array(z34__namespace.lazy(() => ReissueInvoiceUpdate$outboundSchema))
60370
+ ),
60371
+ remove: z34__namespace.optional(z34__namespace.array(z34__namespace.string()))
60372
+ });
60373
+ function linesToJSON(lines) {
60374
+ return JSON.stringify(Lines$outboundSchema.parse(lines));
60375
+ }
59367
60376
  var ReissueInvoiceParams$outboundSchema = z34__namespace.pipe(
59368
60377
  z34__namespace.object({
59369
60378
  invoiceId: z34__namespace.string(),
59370
60379
  invoiceTemplateId: z34__namespace.optional(z34__namespace.string()),
59371
60380
  netTermsDays: z34__namespace.optional(z34__namespace.int()),
59372
- updateCustomerEmail: z34__namespace.optional(z34__namespace.string())
60381
+ preview: z34__namespace.optional(z34__namespace.boolean()),
60382
+ updateCustomerEmail: z34__namespace.optional(z34__namespace.string()),
60383
+ invoice: z34__namespace.optional(
60384
+ z34__namespace.lazy(() => ReissueInvoiceInvoiceRequestBody$outboundSchema)
60385
+ ),
60386
+ customer: z34__namespace.optional(z34__namespace.lazy(() => ReissueInvoiceCustomer$outboundSchema)),
60387
+ lines: z34__namespace.optional(z34__namespace.lazy(() => Lines$outboundSchema))
59373
60388
  }),
59374
60389
  z34__namespace.transform((v) => {
59375
60390
  return remap(v, {
@@ -59405,8 +60420,9 @@ function reissueInvoiceEntityFromJSON(jsonString) {
59405
60420
  `Failed to parse 'ReissueInvoiceEntity' from JSON`
59406
60421
  );
59407
60422
  }
59408
- var ReissueInvoiceItem$inboundSchema = z34__namespace.pipe(
60423
+ var ReissueInvoiceInvoiceItem$inboundSchema = z34__namespace.pipe(
59409
60424
  z34__namespace.object({
60425
+ id: string5(),
59410
60426
  description: string5(),
59411
60427
  period_start: nullable(number2()),
59412
60428
  period_end: nullable(number2()),
@@ -59427,14 +60443,14 @@ var ReissueInvoiceItem$inboundSchema = z34__namespace.pipe(
59427
60443
  });
59428
60444
  })
59429
60445
  );
59430
- function reissueInvoiceItemFromJSON(jsonString) {
60446
+ function reissueInvoiceInvoiceItemFromJSON(jsonString) {
59431
60447
  return safeParse(
59432
60448
  jsonString,
59433
- (x) => ReissueInvoiceItem$inboundSchema.parse(JSON.parse(x)),
59434
- `Failed to parse 'ReissueInvoiceItem' from JSON`
60449
+ (x) => ReissueInvoiceInvoiceItem$inboundSchema.parse(JSON.parse(x)),
60450
+ `Failed to parse 'ReissueInvoiceInvoiceItem' from JSON`
59435
60451
  );
59436
60452
  }
59437
- var ReissueInvoiceInvoice$inboundSchema = z34__namespace.pipe(
60453
+ var ReissueInvoiceInvoiceResponse$inboundSchema = z34__namespace.pipe(
59438
60454
  z34__namespace.object({
59439
60455
  plan_ids: z34__namespace.array(string5()),
59440
60456
  stripe_id: string5(),
@@ -59453,7 +60469,7 @@ var ReissueInvoiceInvoice$inboundSchema = z34__namespace.pipe(
59453
60469
  amount_paid: nullable(number2()),
59454
60470
  refunded_amount: number2(),
59455
60471
  items: optional3(
59456
- z34__namespace.array(z34__namespace.lazy(() => ReissueInvoiceItem$inboundSchema))
60472
+ z34__namespace.array(z34__namespace.lazy(() => ReissueInvoiceInvoiceItem$inboundSchema))
59457
60473
  )
59458
60474
  }),
59459
60475
  z34__namespace.transform((v) => {
@@ -59470,21 +60486,119 @@ var ReissueInvoiceInvoice$inboundSchema = z34__namespace.pipe(
59470
60486
  });
59471
60487
  })
59472
60488
  );
59473
- function reissueInvoiceInvoiceFromJSON(jsonString) {
60489
+ function reissueInvoiceInvoiceResponseFromJSON(jsonString) {
59474
60490
  return safeParse(
59475
60491
  jsonString,
59476
- (x) => ReissueInvoiceInvoice$inboundSchema.parse(JSON.parse(x)),
59477
- `Failed to parse 'ReissueInvoiceInvoice' from JSON`
60492
+ (x) => ReissueInvoiceInvoiceResponse$inboundSchema.parse(JSON.parse(x)),
60493
+ `Failed to parse 'ReissueInvoiceInvoiceResponse' from JSON`
60494
+ );
60495
+ }
60496
+ var ReissueInvoiceLine$inboundSchema = z34__namespace.pipe(
60497
+ z34__namespace.object({
60498
+ plan_id: nullable(string5()),
60499
+ feature_id: nullable(string5()),
60500
+ description: string5(),
60501
+ amount: number2(),
60502
+ amount_after_discounts: number2(),
60503
+ quantity: nullable(number2()),
60504
+ prorated: boolean2(),
60505
+ period_start: nullable(number2()),
60506
+ period_end: nullable(number2())
60507
+ }),
60508
+ z34__namespace.transform((v) => {
60509
+ return remap(v, {
60510
+ "plan_id": "planId",
60511
+ "feature_id": "featureId",
60512
+ "amount_after_discounts": "amountAfterDiscounts",
60513
+ "period_start": "periodStart",
60514
+ "period_end": "periodEnd"
60515
+ });
60516
+ })
60517
+ );
60518
+ function reissueInvoiceLineFromJSON(jsonString) {
60519
+ return safeParse(
60520
+ jsonString,
60521
+ (x) => ReissueInvoiceLine$inboundSchema.parse(JSON.parse(x)),
60522
+ `Failed to parse 'ReissueInvoiceLine' from JSON`
60523
+ );
60524
+ }
60525
+ var ReissueInvoiceStatus$inboundSchema = inboundSchema(ReissueInvoiceStatus);
60526
+ var ReissueInvoiceTax$inboundSchema = z34__namespace.pipe(
60527
+ z34__namespace.object({
60528
+ total: number2(),
60529
+ amount_inclusive: number2(),
60530
+ amount_exclusive: number2(),
60531
+ status: ReissueInvoiceStatus$inboundSchema
60532
+ }),
60533
+ z34__namespace.transform((v) => {
60534
+ return remap(v, {
60535
+ "amount_inclusive": "amountInclusive",
60536
+ "amount_exclusive": "amountExclusive"
60537
+ });
60538
+ })
60539
+ );
60540
+ function reissueInvoiceTaxFromJSON(jsonString) {
60541
+ return safeParse(
60542
+ jsonString,
60543
+ (x) => ReissueInvoiceTax$inboundSchema.parse(JSON.parse(x)),
60544
+ `Failed to parse 'ReissueInvoiceTax' from JSON`
60545
+ );
60546
+ }
60547
+ var ReissueInvoiceInvoiceCredits$inboundSchema = z34__namespace.object({
60548
+ balance: number2(),
60549
+ applied: optional3(number2()),
60550
+ currency: string5()
60551
+ });
60552
+ function reissueInvoiceInvoiceCreditsFromJSON(jsonString) {
60553
+ return safeParse(
60554
+ jsonString,
60555
+ (x) => ReissueInvoiceInvoiceCredits$inboundSchema.parse(JSON.parse(x)),
60556
+ `Failed to parse 'ReissueInvoiceInvoiceCredits' from JSON`
60557
+ );
60558
+ }
60559
+ var ReissueInvoicePreview$inboundSchema = z34__namespace.pipe(
60560
+ z34__namespace.object({
60561
+ currency: string5(),
60562
+ lines: z34__namespace.array(z34__namespace.lazy(() => ReissueInvoiceLine$inboundSchema)),
60563
+ subtotal: number2(),
60564
+ discount_total: number2(),
60565
+ tax: nullable(z34__namespace.lazy(() => ReissueInvoiceTax$inboundSchema)),
60566
+ total: number2(),
60567
+ invoice_credits: optional3(
60568
+ z34__namespace.lazy(() => ReissueInvoiceInvoiceCredits$inboundSchema)
60569
+ ),
60570
+ amount_due: number2(),
60571
+ due_date: nullable(number2())
60572
+ }),
60573
+ z34__namespace.transform((v) => {
60574
+ return remap(v, {
60575
+ "discount_total": "discountTotal",
60576
+ "invoice_credits": "invoiceCredits",
60577
+ "amount_due": "amountDue",
60578
+ "due_date": "dueDate"
60579
+ });
60580
+ })
60581
+ );
60582
+ function reissueInvoicePreviewFromJSON(jsonString) {
60583
+ return safeParse(
60584
+ jsonString,
60585
+ (x) => ReissueInvoicePreview$inboundSchema.parse(JSON.parse(x)),
60586
+ `Failed to parse 'ReissueInvoicePreview' from JSON`
59478
60587
  );
59479
60588
  }
59480
60589
  var ReissueInvoiceResponse$inboundSchema = z34__namespace.pipe(
59481
60590
  z34__namespace.object({
59482
- invoice: z34__namespace.lazy(() => ReissueInvoiceInvoice$inboundSchema),
59483
- voided_invoice_id: string5()
60591
+ invoice: nullable(
60592
+ z34__namespace.lazy(() => ReissueInvoiceInvoiceResponse$inboundSchema)
60593
+ ),
60594
+ voided_invoice_id: nullable(string5()),
60595
+ credit_note_id: nullable(string5()),
60596
+ preview: z34__namespace.lazy(() => ReissueInvoicePreview$inboundSchema)
59484
60597
  }),
59485
60598
  z34__namespace.transform((v) => {
59486
60599
  return remap(v, {
59487
- "voided_invoice_id": "voidedInvoiceId"
60600
+ "voided_invoice_id": "voidedInvoiceId",
60601
+ "credit_note_id": "creditNoteId"
59488
60602
  });
59489
60603
  })
59490
60604
  );
@@ -59563,6 +60677,132 @@ function revokeKeyResponseFromJSON(jsonString) {
59563
60677
  `Failed to parse 'RevokeKeyResponse' from JSON`
59564
60678
  );
59565
60679
  }
60680
+ var SearchRequestLogsSource = {
60681
+ ApiRequest: "api_request",
60682
+ StripeWebhook: "stripe_webhook"
60683
+ };
60684
+ var SearchLogsRange$outboundSchema = z34__namespace.pipe(
60685
+ z34__namespace.object({
60686
+ startDate: z34__namespace.optional(z34__namespace.string()),
60687
+ endDate: z34__namespace.optional(z34__namespace.string())
60688
+ }),
60689
+ z34__namespace.transform((v) => {
60690
+ return remap(v, {
60691
+ startDate: "start_date",
60692
+ endDate: "end_date"
60693
+ });
60694
+ })
60695
+ );
60696
+ function searchLogsRangeToJSON(searchLogsRange) {
60697
+ return JSON.stringify(SearchLogsRange$outboundSchema.parse(searchLogsRange));
60698
+ }
60699
+ var SearchRequestLogsParams$outboundSchema = z34__namespace.object({
60700
+ query: z34__namespace.optional(z34__namespace.string()),
60701
+ range: z34__namespace.optional(z34__namespace.lazy(() => SearchLogsRange$outboundSchema)),
60702
+ limit: z34__namespace.optional(z34__namespace.int())
60703
+ });
60704
+ function searchRequestLogsParamsToJSON(searchRequestLogsParams) {
60705
+ return JSON.stringify(
60706
+ SearchRequestLogsParams$outboundSchema.parse(searchRequestLogsParams)
60707
+ );
60708
+ }
60709
+ var SearchRequestLogsSource$inboundSchema = inboundSchema(SearchRequestLogsSource);
60710
+ var RequestT$inboundSchema = z34__namespace.object({
60711
+ method: nullable(string5()),
60712
+ url: nullable(string5()),
60713
+ path: nullable(string5())
60714
+ });
60715
+ function requestFromJSON(jsonString) {
60716
+ return safeParse(
60717
+ jsonString,
60718
+ (x) => RequestT$inboundSchema.parse(JSON.parse(x)),
60719
+ `Failed to parse 'RequestT' from JSON`
60720
+ );
60721
+ }
60722
+ var Context$inboundSchema = z34__namespace.pipe(
60723
+ z34__namespace.object({
60724
+ org_id: nullable(string5()),
60725
+ customer_id: nullable(string5()),
60726
+ entity_id: nullable(string5()),
60727
+ auth_type: nullable(string5()),
60728
+ user_id: nullable(string5()),
60729
+ user_email: nullable(string5())
60730
+ }),
60731
+ z34__namespace.transform((v) => {
60732
+ return remap(v, {
60733
+ "org_id": "orgId",
60734
+ "customer_id": "customerId",
60735
+ "entity_id": "entityId",
60736
+ "auth_type": "authType",
60737
+ "user_id": "userId",
60738
+ "user_email": "userEmail"
60739
+ });
60740
+ })
60741
+ );
60742
+ function contextFromJSON(jsonString) {
60743
+ return safeParse(
60744
+ jsonString,
60745
+ (x) => Context$inboundSchema.parse(JSON.parse(x)),
60746
+ `Failed to parse 'Context' from JSON`
60747
+ );
60748
+ }
60749
+ var SearchRequestLogsStripe$inboundSchema = z34__namespace.pipe(
60750
+ z34__namespace.object({
60751
+ event_id: nullable(string5()),
60752
+ event_type: nullable(string5()),
60753
+ object_id: nullable(string5())
60754
+ }),
60755
+ z34__namespace.transform((v) => {
60756
+ return remap(v, {
60757
+ "event_id": "eventId",
60758
+ "event_type": "eventType",
60759
+ "object_id": "objectId"
60760
+ });
60761
+ })
60762
+ );
60763
+ function searchRequestLogsStripeFromJSON(jsonString) {
60764
+ return safeParse(
60765
+ jsonString,
60766
+ (x) => SearchRequestLogsStripe$inboundSchema.parse(JSON.parse(x)),
60767
+ `Failed to parse 'SearchRequestLogsStripe' from JSON`
60768
+ );
60769
+ }
60770
+ var SearchRequestLogsList$inboundSchema = z34__namespace.pipe(
60771
+ z34__namespace.object({
60772
+ timestamp: string5(),
60773
+ source: SearchRequestLogsSource$inboundSchema,
60774
+ status_code: number2(),
60775
+ request: z34__namespace.lazy(() => RequestT$inboundSchema),
60776
+ context: z34__namespace.lazy(() => Context$inboundSchema),
60777
+ stripe: z34__namespace.lazy(() => SearchRequestLogsStripe$inboundSchema),
60778
+ request_body: z34__namespace.optional(z34__namespace.nullable(z34__namespace.any())),
60779
+ response_body: z34__namespace.optional(z34__namespace.nullable(z34__namespace.any()))
60780
+ }),
60781
+ z34__namespace.transform((v) => {
60782
+ return remap(v, {
60783
+ "status_code": "statusCode",
60784
+ "request_body": "requestBody",
60785
+ "response_body": "responseBody"
60786
+ });
60787
+ })
60788
+ );
60789
+ function searchRequestLogsListFromJSON(jsonString) {
60790
+ return safeParse(
60791
+ jsonString,
60792
+ (x) => SearchRequestLogsList$inboundSchema.parse(JSON.parse(x)),
60793
+ `Failed to parse 'SearchRequestLogsList' from JSON`
60794
+ );
60795
+ }
60796
+ var SearchRequestLogsResponse$inboundSchema = z34__namespace.object({
60797
+ list: z34__namespace.array(z34__namespace.lazy(() => SearchRequestLogsList$inboundSchema))
60798
+ });
60799
+ function searchRequestLogsResponseFromJSON(jsonString) {
60800
+ return safeParse(
60801
+ jsonString,
60802
+ (x) => SearchRequestLogsResponse$inboundSchema.parse(JSON.parse(x)),
60803
+ `Failed to parse 'SearchRequestLogsResponse' from JSON`
60804
+ );
60805
+ }
59566
60806
  var Security$outboundSchema = z34__namespace.object({
59567
60807
  secretKey: z34__namespace.optional(z34__namespace.string())
59568
60808
  });
@@ -75054,6 +76294,7 @@ function voidInvoiceEntityFromJSON(jsonString) {
75054
76294
  }
75055
76295
  var VoidInvoiceItem$inboundSchema = z34__namespace.pipe(
75056
76296
  z34__namespace.object({
76297
+ id: string5(),
75057
76298
  description: string5(),
75058
76299
  period_start: nullable(number2()),
75059
76300
  period_end: nullable(number2()),
@@ -79542,7 +80783,157 @@ async function $do39(client, request, options) {
79542
80783
  }
79543
80784
  const response = doResult.value;
79544
80785
  const [result] = await match(
79545
- json(200, CreateInvoiceResponse$inboundSchema),
80786
+ json(200, CreateInvoiceResponse$inboundSchema),
80787
+ fail("4XX"),
80788
+ fail("5XX")
80789
+ )(response, req);
80790
+ if (!result.ok) {
80791
+ return [result, { status: "complete", request: req, response }];
80792
+ }
80793
+ return [result, { status: "complete", request: req, response }];
80794
+ }
80795
+ function invoicesInsert(client, request, options) {
80796
+ return new APIPromise($do40(
80797
+ client,
80798
+ request,
80799
+ options
80800
+ ));
80801
+ }
80802
+ async function $do40(client, request, options) {
80803
+ const parsed = safeParse(
80804
+ request,
80805
+ (value) => z34__namespace.parse(InsertInvoicesParams$outboundSchema, value),
80806
+ "Input validation failed"
80807
+ );
80808
+ if (!parsed.ok) {
80809
+ return [parsed, { status: "invalid" }];
80810
+ }
80811
+ const payload = parsed.value;
80812
+ const body = encodeJSON("body", payload, { explode: true });
80813
+ const path = pathToFunc("/v1/invoices.insert")();
80814
+ const headers = new Headers(compactMap({
80815
+ "Content-Type": "application/json",
80816
+ Accept: "application/json",
80817
+ "x-api-version": encodeSimple(
80818
+ "x-api-version",
80819
+ client._options.xApiVersion,
80820
+ { explode: false, charEncoding: "none" }
80821
+ )
80822
+ }));
80823
+ const secConfig = await extractSecurity(client._options.secretKey);
80824
+ const securityInput = secConfig == null ? {} : { secretKey: secConfig };
80825
+ const requestSecurity = resolveGlobalSecurity(securityInput);
80826
+ const context = {
80827
+ options: client._options,
80828
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
80829
+ operationID: "insertInvoices",
80830
+ oAuth2Scopes: null,
80831
+ resolvedSecurity: requestSecurity,
80832
+ securitySource: client._options.secretKey,
80833
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
80834
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
80835
+ };
80836
+ const requestRes = client._createRequest(context, {
80837
+ security: requestSecurity,
80838
+ method: "POST",
80839
+ baseURL: options?.serverURL,
80840
+ path,
80841
+ headers,
80842
+ body,
80843
+ userAgent: client._options.userAgent,
80844
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
80845
+ }, options);
80846
+ if (!requestRes.ok) {
80847
+ return [requestRes, { status: "invalid" }];
80848
+ }
80849
+ const req = requestRes.value;
80850
+ const doResult = await client._do(req, {
80851
+ context,
80852
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
80853
+ retryConfig: context.retryConfig,
80854
+ retryCodes: context.retryCodes
80855
+ });
80856
+ if (!doResult.ok) {
80857
+ return [doResult, { status: "request-error", request: req }];
80858
+ }
80859
+ const response = doResult.value;
80860
+ const [result] = await match(
80861
+ json(200, InsertInvoicesResponse$inboundSchema),
80862
+ fail("4XX"),
80863
+ fail("5XX")
80864
+ )(response, req);
80865
+ if (!result.ok) {
80866
+ return [result, { status: "complete", request: req, response }];
80867
+ }
80868
+ return [result, { status: "complete", request: req, response }];
80869
+ }
80870
+ function invoicesListTemplates(client, request, options) {
80871
+ return new APIPromise($do41(
80872
+ client,
80873
+ request,
80874
+ options
80875
+ ));
80876
+ }
80877
+ async function $do41(client, request, options) {
80878
+ const parsed = safeParse(
80879
+ request,
80880
+ (value) => z34__namespace.parse(ListInvoiceTemplatesParams$outboundSchema, value),
80881
+ "Input validation failed"
80882
+ );
80883
+ if (!parsed.ok) {
80884
+ return [parsed, { status: "invalid" }];
80885
+ }
80886
+ const payload = parsed.value;
80887
+ const body = encodeJSON("body", payload, { explode: true });
80888
+ const path = pathToFunc("/v1/invoices.listTemplates")();
80889
+ const headers = new Headers(compactMap({
80890
+ "Content-Type": "application/json",
80891
+ Accept: "application/json",
80892
+ "x-api-version": encodeSimple(
80893
+ "x-api-version",
80894
+ client._options.xApiVersion,
80895
+ { explode: false, charEncoding: "none" }
80896
+ )
80897
+ }));
80898
+ const secConfig = await extractSecurity(client._options.secretKey);
80899
+ const securityInput = secConfig == null ? {} : { secretKey: secConfig };
80900
+ const requestSecurity = resolveGlobalSecurity(securityInput);
80901
+ const context = {
80902
+ options: client._options,
80903
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
80904
+ operationID: "listInvoiceTemplates",
80905
+ oAuth2Scopes: null,
80906
+ resolvedSecurity: requestSecurity,
80907
+ securitySource: client._options.secretKey,
80908
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
80909
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
80910
+ };
80911
+ const requestRes = client._createRequest(context, {
80912
+ security: requestSecurity,
80913
+ method: "POST",
80914
+ baseURL: options?.serverURL,
80915
+ path,
80916
+ headers,
80917
+ body,
80918
+ userAgent: client._options.userAgent,
80919
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
80920
+ }, options);
80921
+ if (!requestRes.ok) {
80922
+ return [requestRes, { status: "invalid" }];
80923
+ }
80924
+ const req = requestRes.value;
80925
+ const doResult = await client._do(req, {
80926
+ context,
80927
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
80928
+ retryConfig: context.retryConfig,
80929
+ retryCodes: context.retryCodes
80930
+ });
80931
+ if (!doResult.ok) {
80932
+ return [doResult, { status: "request-error", request: req }];
80933
+ }
80934
+ const response = doResult.value;
80935
+ const [result] = await match(
80936
+ json(200, ListInvoiceTemplatesResponse$inboundSchema),
79546
80937
  fail("4XX"),
79547
80938
  fail("5XX")
79548
80939
  )(response, req);
@@ -79551,17 +80942,17 @@ async function $do39(client, request, options) {
79551
80942
  }
79552
80943
  return [result, { status: "complete", request: req, response }];
79553
80944
  }
79554
- function invoicesInsert(client, request, options) {
79555
- return new APIPromise($do40(
80945
+ function invoicesList(client, request, options) {
80946
+ return new APIPromise($do42(
79556
80947
  client,
79557
80948
  request,
79558
80949
  options
79559
80950
  ));
79560
80951
  }
79561
- async function $do40(client, request, options) {
80952
+ async function $do42(client, request, options) {
79562
80953
  const parsed = safeParse(
79563
80954
  request,
79564
- (value) => z34__namespace.parse(InsertInvoicesParams$outboundSchema, value),
80955
+ (value) => z34__namespace.parse(ListInvoicesParams$outboundSchema, value),
79565
80956
  "Input validation failed"
79566
80957
  );
79567
80958
  if (!parsed.ok) {
@@ -79569,7 +80960,7 @@ async function $do40(client, request, options) {
79569
80960
  }
79570
80961
  const payload = parsed.value;
79571
80962
  const body = encodeJSON("body", payload, { explode: true });
79572
- const path = pathToFunc("/v1/invoices.insert")();
80963
+ const path = pathToFunc("/v1/invoices.list")();
79573
80964
  const headers = new Headers(compactMap({
79574
80965
  "Content-Type": "application/json",
79575
80966
  Accept: "application/json",
@@ -79585,7 +80976,7 @@ async function $do40(client, request, options) {
79585
80976
  const context = {
79586
80977
  options: client._options,
79587
80978
  baseURL: options?.serverURL ?? client._baseURL ?? "",
79588
- operationID: "insertInvoices",
80979
+ operationID: "listInvoices",
79589
80980
  oAuth2Scopes: null,
79590
80981
  resolvedSecurity: requestSecurity,
79591
80982
  securitySource: client._options.secretKey,
@@ -79617,7 +81008,7 @@ async function $do40(client, request, options) {
79617
81008
  }
79618
81009
  const response = doResult.value;
79619
81010
  const [result] = await match(
79620
- json(200, InsertInvoicesResponse$inboundSchema),
81011
+ json(200, ListInvoicesResponse$inboundSchema),
79621
81012
  fail("4XX"),
79622
81013
  fail("5XX")
79623
81014
  )(response, req);
@@ -79626,17 +81017,17 @@ async function $do40(client, request, options) {
79626
81017
  }
79627
81018
  return [result, { status: "complete", request: req, response }];
79628
81019
  }
79629
- function invoicesListTemplates(client, request, options) {
79630
- return new APIPromise($do41(
81020
+ function invoicesPay(client, request, options) {
81021
+ return new APIPromise($do43(
79631
81022
  client,
79632
81023
  request,
79633
81024
  options
79634
81025
  ));
79635
81026
  }
79636
- async function $do41(client, request, options) {
81027
+ async function $do43(client, request, options) {
79637
81028
  const parsed = safeParse(
79638
81029
  request,
79639
- (value) => z34__namespace.parse(ListInvoiceTemplatesParams$outboundSchema, value),
81030
+ (value) => z34__namespace.parse(PayInvoiceParams$outboundSchema, value),
79640
81031
  "Input validation failed"
79641
81032
  );
79642
81033
  if (!parsed.ok) {
@@ -79644,7 +81035,7 @@ async function $do41(client, request, options) {
79644
81035
  }
79645
81036
  const payload = parsed.value;
79646
81037
  const body = encodeJSON("body", payload, { explode: true });
79647
- const path = pathToFunc("/v1/invoices.listTemplates")();
81038
+ const path = pathToFunc("/v1/invoices.pay")();
79648
81039
  const headers = new Headers(compactMap({
79649
81040
  "Content-Type": "application/json",
79650
81041
  Accept: "application/json",
@@ -79660,7 +81051,7 @@ async function $do41(client, request, options) {
79660
81051
  const context = {
79661
81052
  options: client._options,
79662
81053
  baseURL: options?.serverURL ?? client._baseURL ?? "",
79663
- operationID: "listInvoiceTemplates",
81054
+ operationID: "payInvoice",
79664
81055
  oAuth2Scopes: null,
79665
81056
  resolvedSecurity: requestSecurity,
79666
81057
  securitySource: client._options.secretKey,
@@ -79692,7 +81083,7 @@ async function $do41(client, request, options) {
79692
81083
  }
79693
81084
  const response = doResult.value;
79694
81085
  const [result] = await match(
79695
- json(200, ListInvoiceTemplatesResponse$inboundSchema),
81086
+ json(200, PayInvoiceResponse$inboundSchema),
79696
81087
  fail("4XX"),
79697
81088
  fail("5XX")
79698
81089
  )(response, req);
@@ -79701,17 +81092,17 @@ async function $do41(client, request, options) {
79701
81092
  }
79702
81093
  return [result, { status: "complete", request: req, response }];
79703
81094
  }
79704
- function invoicesList(client, request, options) {
79705
- return new APIPromise($do42(
81095
+ function invoicesReissue(client, request, options) {
81096
+ return new APIPromise($do44(
79706
81097
  client,
79707
81098
  request,
79708
81099
  options
79709
81100
  ));
79710
81101
  }
79711
- async function $do42(client, request, options) {
81102
+ async function $do44(client, request, options) {
79712
81103
  const parsed = safeParse(
79713
81104
  request,
79714
- (value) => z34__namespace.parse(ListInvoicesParams$outboundSchema, value),
81105
+ (value) => z34__namespace.parse(ReissueInvoiceParams$outboundSchema, value),
79715
81106
  "Input validation failed"
79716
81107
  );
79717
81108
  if (!parsed.ok) {
@@ -79719,7 +81110,7 @@ async function $do42(client, request, options) {
79719
81110
  }
79720
81111
  const payload = parsed.value;
79721
81112
  const body = encodeJSON("body", payload, { explode: true });
79722
- const path = pathToFunc("/v1/invoices.list")();
81113
+ const path = pathToFunc("/v1/invoices.reissue")();
79723
81114
  const headers = new Headers(compactMap({
79724
81115
  "Content-Type": "application/json",
79725
81116
  Accept: "application/json",
@@ -79735,7 +81126,7 @@ async function $do42(client, request, options) {
79735
81126
  const context = {
79736
81127
  options: client._options,
79737
81128
  baseURL: options?.serverURL ?? client._baseURL ?? "",
79738
- operationID: "listInvoices",
81129
+ operationID: "reissueInvoice",
79739
81130
  oAuth2Scopes: null,
79740
81131
  resolvedSecurity: requestSecurity,
79741
81132
  securitySource: client._options.secretKey,
@@ -79767,7 +81158,7 @@ async function $do42(client, request, options) {
79767
81158
  }
79768
81159
  const response = doResult.value;
79769
81160
  const [result] = await match(
79770
- json(200, ListInvoicesResponse$inboundSchema),
81161
+ json(200, ReissueInvoiceResponse$inboundSchema),
79771
81162
  fail("4XX"),
79772
81163
  fail("5XX")
79773
81164
  )(response, req);
@@ -79776,17 +81167,17 @@ async function $do42(client, request, options) {
79776
81167
  }
79777
81168
  return [result, { status: "complete", request: req, response }];
79778
81169
  }
79779
- function invoicesPay(client, request, options) {
79780
- return new APIPromise($do43(
81170
+ function invoicesVoid(client, request, options) {
81171
+ return new APIPromise($do45(
79781
81172
  client,
79782
81173
  request,
79783
81174
  options
79784
81175
  ));
79785
81176
  }
79786
- async function $do43(client, request, options) {
81177
+ async function $do45(client, request, options) {
79787
81178
  const parsed = safeParse(
79788
81179
  request,
79789
- (value) => z34__namespace.parse(PayInvoiceParams$outboundSchema, value),
81180
+ (value) => z34__namespace.parse(VoidInvoiceParams$outboundSchema, value),
79790
81181
  "Input validation failed"
79791
81182
  );
79792
81183
  if (!parsed.ok) {
@@ -79794,7 +81185,7 @@ async function $do43(client, request, options) {
79794
81185
  }
79795
81186
  const payload = parsed.value;
79796
81187
  const body = encodeJSON("body", payload, { explode: true });
79797
- const path = pathToFunc("/v1/invoices.pay")();
81188
+ const path = pathToFunc("/v1/invoices.void")();
79798
81189
  const headers = new Headers(compactMap({
79799
81190
  "Content-Type": "application/json",
79800
81191
  Accept: "application/json",
@@ -79810,7 +81201,7 @@ async function $do43(client, request, options) {
79810
81201
  const context = {
79811
81202
  options: client._options,
79812
81203
  baseURL: options?.serverURL ?? client._baseURL ?? "",
79813
- operationID: "payInvoice",
81204
+ operationID: "voidInvoice",
79814
81205
  oAuth2Scopes: null,
79815
81206
  resolvedSecurity: requestSecurity,
79816
81207
  securitySource: client._options.secretKey,
@@ -79842,7 +81233,7 @@ async function $do43(client, request, options) {
79842
81233
  }
79843
81234
  const response = doResult.value;
79844
81235
  const [result] = await match(
79845
- json(200, PayInvoiceResponse$inboundSchema),
81236
+ json(200, VoidInvoiceResponse$inboundSchema),
79846
81237
  fail("4XX"),
79847
81238
  fail("5XX")
79848
81239
  )(response, req);
@@ -79851,17 +81242,91 @@ async function $do43(client, request, options) {
79851
81242
  }
79852
81243
  return [result, { status: "complete", request: req, response }];
79853
81244
  }
79854
- function invoicesReissue(client, request, options) {
79855
- return new APIPromise($do44(
81245
+
81246
+ // ../sdk/src/sdk/invoices.ts
81247
+ var Invoices = class extends ClientSDK {
81248
+ /**
81249
+ * Creates a standalone send-invoice Stripe invoice from catalog pricing and custom charges. Quantities are billable units, exclusive of any included usage; Autumn applies billing units and tiers. Nothing about the customer's plans, balances or subscriptions changes. Pass preview: true to get the calculated lines and totals without creating an invoice.
81250
+ */
81251
+ async create(request, options) {
81252
+ return unwrapAsync(invoicesCreate(
81253
+ this,
81254
+ request,
81255
+ options
81256
+ ));
81257
+ }
81258
+ /**
81259
+ * Inserts or updates up to 500 historical invoices without reading or mutating the billing processor.
81260
+ */
81261
+ async insert(request, options) {
81262
+ return unwrapAsync(invoicesInsert(
81263
+ this,
81264
+ request,
81265
+ options
81266
+ ));
81267
+ }
81268
+ /**
81269
+ * Lists invoices with cursor pagination and optional filters (customer, entity, status, processor). Pass `start_cursor: ""` (or omit) for the first page; use `next_cursor` from a prior response for subsequent pages.
81270
+ */
81271
+ async list(request, options) {
81272
+ return unwrapAsync(invoicesList(
81273
+ this,
81274
+ request,
81275
+ options
81276
+ ));
81277
+ }
81278
+ /**
81279
+ * Lists the organization's invoice templates, newest first, with offset pagination. Use a template's `id` as `invoice_template_id` when creating or reissuing an invoice.
81280
+ */
81281
+ async listTemplates(request, options) {
81282
+ return unwrapAsync(invoicesListTemplates(
81283
+ this,
81284
+ request,
81285
+ options
81286
+ ));
81287
+ }
81288
+ /**
81289
+ * Marks an open Stripe invoice as paid out of band. No charge is attempted; use this when payment was collected elsewhere (e.g. a marketplace). Already-paid invoices are returned unchanged.
81290
+ */
81291
+ async pay(request, options) {
81292
+ return unwrapAsync(invoicesPay(
81293
+ this,
81294
+ request,
81295
+ options
81296
+ ));
81297
+ }
81298
+ /**
81299
+ * Voids an open send-invoice Stripe invoice and issues a replacement with the same line items. An invoice template can supply the replacement's footer (e.g. bank details) and memo. The replacement keeps the original due date unless net_terms_days is passed, which is required once the original is past due. Pass update_customer_email to change the customer's billing email first so the replacement is sent there. The replacement stays linked to the same subscription and fulfils the same pending plan when paid.
81300
+ */
81301
+ async reissue(request, options) {
81302
+ return unwrapAsync(invoicesReissue(
81303
+ this,
81304
+ request,
81305
+ options
81306
+ ));
81307
+ }
81308
+ /**
81309
+ * Voids an open or uncollectible Stripe invoice. Any plan still waiting on the invoice to be paid expires. Voiding an unpaid subscription invoice lets Stripe re-derive the subscription status from its remaining invoices, which can move a past-due subscription back to active. Already-void invoices are returned unchanged.
81310
+ */
81311
+ async void(request, options) {
81312
+ return unwrapAsync(invoicesVoid(
81313
+ this,
81314
+ request,
81315
+ options
81316
+ ));
81317
+ }
81318
+ };
81319
+ function keysMint(client, request, options) {
81320
+ return new APIPromise($do46(
79856
81321
  client,
79857
81322
  request,
79858
81323
  options
79859
81324
  ));
79860
81325
  }
79861
- async function $do44(client, request, options) {
81326
+ async function $do46(client, request, options) {
79862
81327
  const parsed = safeParse(
79863
81328
  request,
79864
- (value) => z34__namespace.parse(ReissueInvoiceParams$outboundSchema, value),
81329
+ (value) => z34__namespace.parse(MintKeyParams$outboundSchema, value),
79865
81330
  "Input validation failed"
79866
81331
  );
79867
81332
  if (!parsed.ok) {
@@ -79869,7 +81334,7 @@ async function $do44(client, request, options) {
79869
81334
  }
79870
81335
  const payload = parsed.value;
79871
81336
  const body = encodeJSON("body", payload, { explode: true });
79872
- const path = pathToFunc("/v1/invoices.reissue")();
81337
+ const path = pathToFunc("/v1/keys.mint")();
79873
81338
  const headers = new Headers(compactMap({
79874
81339
  "Content-Type": "application/json",
79875
81340
  Accept: "application/json",
@@ -79885,7 +81350,7 @@ async function $do44(client, request, options) {
79885
81350
  const context = {
79886
81351
  options: client._options,
79887
81352
  baseURL: options?.serverURL ?? client._baseURL ?? "",
79888
- operationID: "reissueInvoice",
81353
+ operationID: "mintKey",
79889
81354
  oAuth2Scopes: null,
79890
81355
  resolvedSecurity: requestSecurity,
79891
81356
  securitySource: client._options.secretKey,
@@ -79917,7 +81382,7 @@ async function $do44(client, request, options) {
79917
81382
  }
79918
81383
  const response = doResult.value;
79919
81384
  const [result] = await match(
79920
- json(200, ReissueInvoiceResponse$inboundSchema),
81385
+ json(200, MintKeyResponse$inboundSchema),
79921
81386
  fail("4XX"),
79922
81387
  fail("5XX")
79923
81388
  )(response, req);
@@ -79926,25 +81391,17 @@ async function $do44(client, request, options) {
79926
81391
  }
79927
81392
  return [result, { status: "complete", request: req, response }];
79928
81393
  }
79929
- function invoicesVoid(client, request, options) {
79930
- return new APIPromise($do45(
81394
+
81395
+ // ../sdk/src/funcs/keys-refresh.ts
81396
+ function keysRefresh(client, _request, options) {
81397
+ return new APIPromise($do47(
79931
81398
  client,
79932
- request,
81399
+ _request,
79933
81400
  options
79934
81401
  ));
79935
81402
  }
79936
- async function $do45(client, request, options) {
79937
- const parsed = safeParse(
79938
- request,
79939
- (value) => z34__namespace.parse(VoidInvoiceParams$outboundSchema, value),
79940
- "Input validation failed"
79941
- );
79942
- if (!parsed.ok) {
79943
- return [parsed, { status: "invalid" }];
79944
- }
79945
- const payload = parsed.value;
79946
- const body = encodeJSON("body", payload, { explode: true });
79947
- const path = pathToFunc("/v1/invoices.void")();
81403
+ async function $do47(client, _request, options) {
81404
+ const path = pathToFunc("/v1/keys.refresh")();
79948
81405
  const headers = new Headers(compactMap({
79949
81406
  "Content-Type": "application/json",
79950
81407
  Accept: "application/json",
@@ -79960,7 +81417,7 @@ async function $do45(client, request, options) {
79960
81417
  const context = {
79961
81418
  options: client._options,
79962
81419
  baseURL: options?.serverURL ?? client._baseURL ?? "",
79963
- operationID: "voidInvoice",
81420
+ operationID: "refreshKey",
79964
81421
  oAuth2Scopes: null,
79965
81422
  resolvedSecurity: requestSecurity,
79966
81423
  securitySource: client._options.secretKey,
@@ -79973,7 +81430,6 @@ async function $do45(client, request, options) {
79973
81430
  baseURL: options?.serverURL,
79974
81431
  path,
79975
81432
  headers,
79976
- body,
79977
81433
  userAgent: client._options.userAgent,
79978
81434
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
79979
81435
  }, options);
@@ -79992,7 +81448,7 @@ async function $do45(client, request, options) {
79992
81448
  }
79993
81449
  const response = doResult.value;
79994
81450
  const [result] = await match(
79995
- json(200, VoidInvoiceResponse$inboundSchema),
81451
+ json(200, RefreshKeyResponse$inboundSchema),
79996
81452
  fail("4XX"),
79997
81453
  fail("5XX")
79998
81454
  )(response, req);
@@ -80001,91 +81457,17 @@ async function $do45(client, request, options) {
80001
81457
  }
80002
81458
  return [result, { status: "complete", request: req, response }];
80003
81459
  }
80004
-
80005
- // ../sdk/src/sdk/invoices.ts
80006
- var Invoices = class extends ClientSDK {
80007
- /**
80008
- * Creates a standalone send-invoice Stripe invoice from catalog pricing and custom charges. Quantities are billable units, exclusive of any included usage; Autumn applies billing units and tiers. Nothing about the customer's plans, balances or subscriptions changes. Pass preview: true to get the calculated lines and totals without creating an invoice.
80009
- */
80010
- async create(request, options) {
80011
- return unwrapAsync(invoicesCreate(
80012
- this,
80013
- request,
80014
- options
80015
- ));
80016
- }
80017
- /**
80018
- * Inserts or updates up to 500 historical invoices without reading or mutating the billing processor.
80019
- */
80020
- async insert(request, options) {
80021
- return unwrapAsync(invoicesInsert(
80022
- this,
80023
- request,
80024
- options
80025
- ));
80026
- }
80027
- /**
80028
- * Lists invoices with cursor pagination and optional filters (customer, entity, status, processor). Pass `start_cursor: ""` (or omit) for the first page; use `next_cursor` from a prior response for subsequent pages.
80029
- */
80030
- async list(request, options) {
80031
- return unwrapAsync(invoicesList(
80032
- this,
80033
- request,
80034
- options
80035
- ));
80036
- }
80037
- /**
80038
- * Lists the organization's invoice templates, newest first, with offset pagination. Use a template's `id` as `invoice_template_id` when creating or reissuing an invoice.
80039
- */
80040
- async listTemplates(request, options) {
80041
- return unwrapAsync(invoicesListTemplates(
80042
- this,
80043
- request,
80044
- options
80045
- ));
80046
- }
80047
- /**
80048
- * Marks an open Stripe invoice as paid out of band. No charge is attempted; use this when payment was collected elsewhere (e.g. a marketplace). Already-paid invoices are returned unchanged.
80049
- */
80050
- async pay(request, options) {
80051
- return unwrapAsync(invoicesPay(
80052
- this,
80053
- request,
80054
- options
80055
- ));
80056
- }
80057
- /**
80058
- * Voids an open send-invoice Stripe invoice and issues a replacement with the same line items. An invoice template can supply the replacement's footer (e.g. bank details) and memo. The replacement keeps the original due date unless net_terms_days is passed, which is required once the original is past due. Pass update_customer_email to change the customer's billing email first so the replacement is sent there. The replacement stays linked to the same subscription and fulfils the same pending plan when paid.
80059
- */
80060
- async reissue(request, options) {
80061
- return unwrapAsync(invoicesReissue(
80062
- this,
80063
- request,
80064
- options
80065
- ));
80066
- }
80067
- /**
80068
- * Voids an open or uncollectible Stripe invoice. Any plan still waiting on the invoice to be paid expires. Voiding an unpaid subscription invoice lets Stripe re-derive the subscription status from its remaining invoices, which can move a past-due subscription back to active. Already-void invoices are returned unchanged.
80069
- */
80070
- async void(request, options) {
80071
- return unwrapAsync(invoicesVoid(
80072
- this,
80073
- request,
80074
- options
80075
- ));
80076
- }
80077
- };
80078
- function keysMint(client, request, options) {
80079
- return new APIPromise($do46(
81460
+ function keysRevoke(client, request, options) {
81461
+ return new APIPromise($do48(
80080
81462
  client,
80081
81463
  request,
80082
81464
  options
80083
81465
  ));
80084
81466
  }
80085
- async function $do46(client, request, options) {
81467
+ async function $do48(client, request, options) {
80086
81468
  const parsed = safeParse(
80087
81469
  request,
80088
- (value) => z34__namespace.parse(MintKeyParams$outboundSchema, value),
81470
+ (value) => z34__namespace.parse(RevokeKeyParams$outboundSchema, value),
80089
81471
  "Input validation failed"
80090
81472
  );
80091
81473
  if (!parsed.ok) {
@@ -80093,7 +81475,7 @@ async function $do46(client, request, options) {
80093
81475
  }
80094
81476
  const payload = parsed.value;
80095
81477
  const body = encodeJSON("body", payload, { explode: true });
80096
- const path = pathToFunc("/v1/keys.mint")();
81478
+ const path = pathToFunc("/v1/keys.revoke")();
80097
81479
  const headers = new Headers(compactMap({
80098
81480
  "Content-Type": "application/json",
80099
81481
  Accept: "application/json",
@@ -80109,7 +81491,7 @@ async function $do46(client, request, options) {
80109
81491
  const context = {
80110
81492
  options: client._options,
80111
81493
  baseURL: options?.serverURL ?? client._baseURL ?? "",
80112
- operationID: "mintKey",
81494
+ operationID: "revokeKey",
80113
81495
  oAuth2Scopes: null,
80114
81496
  resolvedSecurity: requestSecurity,
80115
81497
  securitySource: client._options.secretKey,
@@ -80141,7 +81523,7 @@ async function $do46(client, request, options) {
80141
81523
  }
80142
81524
  const response = doResult.value;
80143
81525
  const [result] = await match(
80144
- json(200, MintKeyResponse$inboundSchema),
81526
+ json(200, RevokeKeyResponse$inboundSchema),
80145
81527
  fail("4XX"),
80146
81528
  fail("5XX")
80147
81529
  )(response, req);
@@ -80151,16 +81533,58 @@ async function $do46(client, request, options) {
80151
81533
  return [result, { status: "complete", request: req, response }];
80152
81534
  }
80153
81535
 
80154
- // ../sdk/src/funcs/keys-refresh.ts
80155
- function keysRefresh(client, _request, options) {
80156
- return new APIPromise($do47(
81536
+ // ../sdk/src/sdk/keys.ts
81537
+ var Keys = class extends ClientSDK {
81538
+ /**
81539
+ * Mints a per-customer token (a scoped `am_jwt_` credential) so a downstream / self-hosted app can call Autumn directly without your secret key. Returns a short-lived access token plus a rotating refresh token, both bound to the given customer. Authenticated with your secret key.
81540
+ */
81541
+ async mint(request, options) {
81542
+ return unwrapAsync(keysMint(
81543
+ this,
81544
+ request,
81545
+ options
81546
+ ));
81547
+ }
81548
+ /**
81549
+ * Exchanges a refresh token (sent as the Bearer credential) for a freshly rotated access + refresh pair. Self-service for the token holder — no secret key required. The previous refresh token is honored for one rotation as a grace window; replaying an older one revokes the customer's tokens.
81550
+ */
81551
+ async refresh(request, options) {
81552
+ return unwrapAsync(keysRefresh(
81553
+ this,
81554
+ request,
81555
+ options
81556
+ ));
81557
+ }
81558
+ /**
81559
+ * Revokes every outstanding token (access and refresh) for a customer. Authenticated with your secret key. New tokens can be issued afterwards with `keys.mint`.
81560
+ */
81561
+ async revoke(request, options) {
81562
+ return unwrapAsync(keysRevoke(
81563
+ this,
81564
+ request,
81565
+ options
81566
+ ));
81567
+ }
81568
+ };
81569
+ function licensesAttach(client, request, options) {
81570
+ return new APIPromise($do49(
80157
81571
  client,
80158
- _request,
81572
+ request,
80159
81573
  options
80160
81574
  ));
80161
81575
  }
80162
- async function $do47(client, _request, options) {
80163
- const path = pathToFunc("/v1/keys.refresh")();
81576
+ async function $do49(client, request, options) {
81577
+ const parsed = safeParse(
81578
+ request,
81579
+ (value) => z34__namespace.parse(AttachLicenseParams$outboundSchema, value),
81580
+ "Input validation failed"
81581
+ );
81582
+ if (!parsed.ok) {
81583
+ return [parsed, { status: "invalid" }];
81584
+ }
81585
+ const payload = parsed.value;
81586
+ const body = encodeJSON("body", payload, { explode: true });
81587
+ const path = pathToFunc("/v1/licenses.attach")();
80164
81588
  const headers = new Headers(compactMap({
80165
81589
  "Content-Type": "application/json",
80166
81590
  Accept: "application/json",
@@ -80176,7 +81600,7 @@ async function $do47(client, _request, options) {
80176
81600
  const context = {
80177
81601
  options: client._options,
80178
81602
  baseURL: options?.serverURL ?? client._baseURL ?? "",
80179
- operationID: "refreshKey",
81603
+ operationID: "attachLicense",
80180
81604
  oAuth2Scopes: null,
80181
81605
  resolvedSecurity: requestSecurity,
80182
81606
  securitySource: client._options.secretKey,
@@ -80189,6 +81613,7 @@ async function $do47(client, _request, options) {
80189
81613
  baseURL: options?.serverURL,
80190
81614
  path,
80191
81615
  headers,
81616
+ body,
80192
81617
  userAgent: client._options.userAgent,
80193
81618
  timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
80194
81619
  }, options);
@@ -80207,7 +81632,7 @@ async function $do47(client, _request, options) {
80207
81632
  }
80208
81633
  const response = doResult.value;
80209
81634
  const [result] = await match(
80210
- json(200, RefreshKeyResponse$inboundSchema),
81635
+ json(200, AttachLicenseResponse$inboundSchema),
80211
81636
  fail("4XX"),
80212
81637
  fail("5XX")
80213
81638
  )(response, req);
@@ -80216,17 +81641,17 @@ async function $do47(client, _request, options) {
80216
81641
  }
80217
81642
  return [result, { status: "complete", request: req, response }];
80218
81643
  }
80219
- function keysRevoke(client, request, options) {
80220
- return new APIPromise($do48(
81644
+ function licensesRelease(client, request, options) {
81645
+ return new APIPromise($do50(
80221
81646
  client,
80222
81647
  request,
80223
81648
  options
80224
81649
  ));
80225
81650
  }
80226
- async function $do48(client, request, options) {
81651
+ async function $do50(client, request, options) {
80227
81652
  const parsed = safeParse(
80228
81653
  request,
80229
- (value) => z34__namespace.parse(RevokeKeyParams$outboundSchema, value),
81654
+ (value) => z34__namespace.parse(ReleaseLicenseParams$outboundSchema, value),
80230
81655
  "Input validation failed"
80231
81656
  );
80232
81657
  if (!parsed.ok) {
@@ -80234,7 +81659,7 @@ async function $do48(client, request, options) {
80234
81659
  }
80235
81660
  const payload = parsed.value;
80236
81661
  const body = encodeJSON("body", payload, { explode: true });
80237
- const path = pathToFunc("/v1/keys.revoke")();
81662
+ const path = pathToFunc("/v1/licenses.release")();
80238
81663
  const headers = new Headers(compactMap({
80239
81664
  "Content-Type": "application/json",
80240
81665
  Accept: "application/json",
@@ -80250,7 +81675,7 @@ async function $do48(client, request, options) {
80250
81675
  const context = {
80251
81676
  options: client._options,
80252
81677
  baseURL: options?.serverURL ?? client._baseURL ?? "",
80253
- operationID: "revokeKey",
81678
+ operationID: "releaseLicense",
80254
81679
  oAuth2Scopes: null,
80255
81680
  resolvedSecurity: requestSecurity,
80256
81681
  securitySource: client._options.secretKey,
@@ -80282,7 +81707,7 @@ async function $do48(client, request, options) {
80282
81707
  }
80283
81708
  const response = doResult.value;
80284
81709
  const [result] = await match(
80285
- json(200, RevokeKeyResponse$inboundSchema),
81710
+ json(200, ReleaseLicenseResponse$inboundSchema),
80286
81711
  fail("4XX"),
80287
81712
  fail("5XX")
80288
81713
  )(response, req);
@@ -80292,125 +81717,40 @@ async function $do48(client, request, options) {
80292
81717
  return [result, { status: "complete", request: req, response }];
80293
81718
  }
80294
81719
 
80295
- // ../sdk/src/sdk/keys.ts
80296
- var Keys = class extends ClientSDK {
80297
- /**
80298
- * Mints a per-customer token (a scoped `am_jwt_` credential) so a downstream / self-hosted app can call Autumn directly without your secret key. Returns a short-lived access token plus a rotating refresh token, both bound to the given customer. Authenticated with your secret key.
80299
- */
80300
- async mint(request, options) {
80301
- return unwrapAsync(keysMint(
80302
- this,
80303
- request,
80304
- options
80305
- ));
80306
- }
81720
+ // ../sdk/src/sdk/licenses.ts
81721
+ var Licenses = class extends ClientSDK {
80307
81722
  /**
80308
- * Exchanges a refresh token (sent as the Bearer credential) for a freshly rotated access + refresh pair. Self-service for the token holder — no secret key required. The previous refresh token is honored for one rotation as a grace window; replaying an older one revokes the customer's tokens.
81723
+ * Assigns licenses to one or more entities.
80309
81724
  */
80310
- async refresh(request, options) {
80311
- return unwrapAsync(keysRefresh(
81725
+ async attach(request, options) {
81726
+ return unwrapAsync(licensesAttach(
80312
81727
  this,
80313
81728
  request,
80314
81729
  options
80315
81730
  ));
80316
81731
  }
80317
81732
  /**
80318
- * Revokes every outstanding token (access and refresh) for a customer. Authenticated with your secret key. New tokens can be issued afterwards with `keys.mint`.
81733
+ * Releases licenses assigned to one or more entities.
80319
81734
  */
80320
- async revoke(request, options) {
80321
- return unwrapAsync(keysRevoke(
81735
+ async release(request, options) {
81736
+ return unwrapAsync(licensesRelease(
80322
81737
  this,
80323
81738
  request,
80324
81739
  options
80325
81740
  ));
80326
81741
  }
80327
81742
  };
80328
- function licensesAttach(client, request, options) {
80329
- return new APIPromise($do49(
80330
- client,
80331
- request,
80332
- options
80333
- ));
80334
- }
80335
- async function $do49(client, request, options) {
80336
- const parsed = safeParse(
80337
- request,
80338
- (value) => z34__namespace.parse(AttachLicenseParams$outboundSchema, value),
80339
- "Input validation failed"
80340
- );
80341
- if (!parsed.ok) {
80342
- return [parsed, { status: "invalid" }];
80343
- }
80344
- const payload = parsed.value;
80345
- const body = encodeJSON("body", payload, { explode: true });
80346
- const path = pathToFunc("/v1/licenses.attach")();
80347
- const headers = new Headers(compactMap({
80348
- "Content-Type": "application/json",
80349
- Accept: "application/json",
80350
- "x-api-version": encodeSimple(
80351
- "x-api-version",
80352
- client._options.xApiVersion,
80353
- { explode: false, charEncoding: "none" }
80354
- )
80355
- }));
80356
- const secConfig = await extractSecurity(client._options.secretKey);
80357
- const securityInput = secConfig == null ? {} : { secretKey: secConfig };
80358
- const requestSecurity = resolveGlobalSecurity(securityInput);
80359
- const context = {
80360
- options: client._options,
80361
- baseURL: options?.serverURL ?? client._baseURL ?? "",
80362
- operationID: "attachLicense",
80363
- oAuth2Scopes: null,
80364
- resolvedSecurity: requestSecurity,
80365
- securitySource: client._options.secretKey,
80366
- retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
80367
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
80368
- };
80369
- const requestRes = client._createRequest(context, {
80370
- security: requestSecurity,
80371
- method: "POST",
80372
- baseURL: options?.serverURL,
80373
- path,
80374
- headers,
80375
- body,
80376
- userAgent: client._options.userAgent,
80377
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
80378
- }, options);
80379
- if (!requestRes.ok) {
80380
- return [requestRes, { status: "invalid" }];
80381
- }
80382
- const req = requestRes.value;
80383
- const doResult = await client._do(req, {
80384
- context,
80385
- isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
80386
- retryConfig: context.retryConfig,
80387
- retryCodes: context.retryCodes
80388
- });
80389
- if (!doResult.ok) {
80390
- return [doResult, { status: "request-error", request: req }];
80391
- }
80392
- const response = doResult.value;
80393
- const [result] = await match(
80394
- json(200, AttachLicenseResponse$inboundSchema),
80395
- fail("4XX"),
80396
- fail("5XX")
80397
- )(response, req);
80398
- if (!result.ok) {
80399
- return [result, { status: "complete", request: req, response }];
80400
- }
80401
- return [result, { status: "complete", request: req, response }];
80402
- }
80403
- function licensesRelease(client, request, options) {
80404
- return new APIPromise($do50(
81743
+ function logsSearch(client, request, options) {
81744
+ return new APIPromise($do51(
80405
81745
  client,
80406
81746
  request,
80407
81747
  options
80408
81748
  ));
80409
81749
  }
80410
- async function $do50(client, request, options) {
81750
+ async function $do51(client, request, options) {
80411
81751
  const parsed = safeParse(
80412
81752
  request,
80413
- (value) => z34__namespace.parse(ReleaseLicenseParams$outboundSchema, value),
81753
+ (value) => z34__namespace.parse(SearchRequestLogsParams$outboundSchema, value),
80414
81754
  "Input validation failed"
80415
81755
  );
80416
81756
  if (!parsed.ok) {
@@ -80418,7 +81758,7 @@ async function $do50(client, request, options) {
80418
81758
  }
80419
81759
  const payload = parsed.value;
80420
81760
  const body = encodeJSON("body", payload, { explode: true });
80421
- const path = pathToFunc("/v1/licenses.release")();
81761
+ const path = pathToFunc("/v1/logs.search")();
80422
81762
  const headers = new Headers(compactMap({
80423
81763
  "Content-Type": "application/json",
80424
81764
  Accept: "application/json",
@@ -80434,7 +81774,7 @@ async function $do50(client, request, options) {
80434
81774
  const context = {
80435
81775
  options: client._options,
80436
81776
  baseURL: options?.serverURL ?? client._baseURL ?? "",
80437
- operationID: "releaseLicense",
81777
+ operationID: "searchRequestLogs",
80438
81778
  oAuth2Scopes: null,
80439
81779
  resolvedSecurity: requestSecurity,
80440
81780
  securitySource: client._options.secretKey,
@@ -80466,7 +81806,7 @@ async function $do50(client, request, options) {
80466
81806
  }
80467
81807
  const response = doResult.value;
80468
81808
  const [result] = await match(
80469
- json(200, ReleaseLicenseResponse$inboundSchema),
81809
+ json(200, SearchRequestLogsResponse$inboundSchema),
80470
81810
  fail("4XX"),
80471
81811
  fail("5XX")
80472
81812
  )(response, req);
@@ -80476,23 +81816,13 @@ async function $do50(client, request, options) {
80476
81816
  return [result, { status: "complete", request: req, response }];
80477
81817
  }
80478
81818
 
80479
- // ../sdk/src/sdk/licenses.ts
80480
- var Licenses = class extends ClientSDK {
80481
- /**
80482
- * Assigns licenses to one or more entities.
80483
- */
80484
- async attach(request, options) {
80485
- return unwrapAsync(licensesAttach(
80486
- this,
80487
- request,
80488
- options
80489
- ));
80490
- }
81819
+ // ../sdk/src/sdk/logs.ts
81820
+ var Logs = class extends ClientSDK {
80491
81821
  /**
80492
- * Releases licenses assigned to one or more entities.
81822
+ * Search API requests and incoming Stripe webhooks for your organization and environment.
80493
81823
  */
80494
- async release(request, options) {
80495
- return unwrapAsync(licensesRelease(
81824
+ async search(request, options) {
81825
+ return unwrapAsync(logsSearch(
80496
81826
  this,
80497
81827
  request,
80498
81828
  options
@@ -80500,13 +81830,13 @@ var Licenses = class extends ClientSDK {
80500
81830
  }
80501
81831
  };
80502
81832
  function plansCreate(client, request, options) {
80503
- return new APIPromise($do51(
81833
+ return new APIPromise($do52(
80504
81834
  client,
80505
81835
  request,
80506
81836
  options
80507
81837
  ));
80508
81838
  }
80509
- async function $do51(client, request, options) {
81839
+ async function $do52(client, request, options) {
80510
81840
  const parsed = safeParse(
80511
81841
  request,
80512
81842
  (value) => z34__namespace.parse(CreatePlanParams$outboundSchema, value),
@@ -80575,13 +81905,13 @@ async function $do51(client, request, options) {
80575
81905
  return [result, { status: "complete", request: req, response }];
80576
81906
  }
80577
81907
  function plansDelete(client, request, options) {
80578
- return new APIPromise($do52(
81908
+ return new APIPromise($do53(
80579
81909
  client,
80580
81910
  request,
80581
81911
  options
80582
81912
  ));
80583
81913
  }
80584
- async function $do52(client, request, options) {
81914
+ async function $do53(client, request, options) {
80585
81915
  const parsed = safeParse(
80586
81916
  request,
80587
81917
  (value) => z34__namespace.parse(DeletePlanParams$outboundSchema, value),
@@ -80650,13 +81980,13 @@ async function $do52(client, request, options) {
80650
81980
  return [result, { status: "complete", request: req, response }];
80651
81981
  }
80652
81982
  function plansGet(client, request, options) {
80653
- return new APIPromise($do53(
81983
+ return new APIPromise($do54(
80654
81984
  client,
80655
81985
  request,
80656
81986
  options
80657
81987
  ));
80658
81988
  }
80659
- async function $do53(client, request, options) {
81989
+ async function $do54(client, request, options) {
80660
81990
  const parsed = safeParse(
80661
81991
  request,
80662
81992
  (value) => z34__namespace.parse(GetPlanParams$outboundSchema, value),
@@ -80725,13 +82055,13 @@ async function $do53(client, request, options) {
80725
82055
  return [result, { status: "complete", request: req, response }];
80726
82056
  }
80727
82057
  function plansList(client, request, options) {
80728
- return new APIPromise($do54(
82058
+ return new APIPromise($do55(
80729
82059
  client,
80730
82060
  request,
80731
82061
  options
80732
82062
  ));
80733
82063
  }
80734
- async function $do54(client, request, options) {
82064
+ async function $do55(client, request, options) {
80735
82065
  const parsed = safeParse(
80736
82066
  request,
80737
82067
  (value) => z34__namespace.parse(z34__namespace.optional(ListPlansParams$outboundSchema), value),
@@ -80800,13 +82130,13 @@ async function $do54(client, request, options) {
80800
82130
  return [result, { status: "complete", request: req, response }];
80801
82131
  }
80802
82132
  function plansUpdate(client, request, options) {
80803
- return new APIPromise($do55(
82133
+ return new APIPromise($do56(
80804
82134
  client,
80805
82135
  request,
80806
82136
  options
80807
82137
  ));
80808
82138
  }
80809
- async function $do55(client, request, options) {
82139
+ async function $do56(client, request, options) {
80810
82140
  const parsed = safeParse(
80811
82141
  request,
80812
82142
  (value) => z34__namespace.parse(UpdatePlanParams$outboundSchema, value),
@@ -81117,13 +82447,13 @@ var Plans = class extends ClientSDK {
81117
82447
  }
81118
82448
  };
81119
82449
  function platformGetRevenueCatKeys(client, request, options) {
81120
- return new APIPromise($do56(
82450
+ return new APIPromise($do57(
81121
82451
  client,
81122
82452
  request,
81123
82453
  options
81124
82454
  ));
81125
82455
  }
81126
- async function $do56(client, request, options) {
82456
+ async function $do57(client, request, options) {
81127
82457
  const parsed = safeParse(
81128
82458
  request,
81129
82459
  (value) => z34__namespace.parse(GetRevenueCatKeysParams$outboundSchema, value),
@@ -81192,13 +82522,13 @@ async function $do56(client, request, options) {
81192
82522
  return [result, { status: "complete", request: req, response }];
81193
82523
  }
81194
82524
  function platformLinkRevenueCat(client, request, options) {
81195
- return new APIPromise($do57(
82525
+ return new APIPromise($do58(
81196
82526
  client,
81197
82527
  request,
81198
82528
  options
81199
82529
  ));
81200
82530
  }
81201
- async function $do57(client, request, options) {
82531
+ async function $do58(client, request, options) {
81202
82532
  const parsed = safeParse(
81203
82533
  request,
81204
82534
  (value) => z34__namespace.parse(LinkRevenueCatParams$outboundSchema, value),
@@ -81267,13 +82597,13 @@ async function $do57(client, request, options) {
81267
82597
  return [result, { status: "complete", request: req, response }];
81268
82598
  }
81269
82599
  function platformSyncRevenueCat(client, request, options) {
81270
- return new APIPromise($do58(
82600
+ return new APIPromise($do59(
81271
82601
  client,
81272
82602
  request,
81273
82603
  options
81274
82604
  ));
81275
82605
  }
81276
- async function $do58(client, request, options) {
82606
+ async function $do59(client, request, options) {
81277
82607
  const parsed = safeParse(
81278
82608
  request,
81279
82609
  (value) => z34__namespace.parse(SyncRevenueCatParams$outboundSchema, value),
@@ -81376,13 +82706,13 @@ var Platform = class extends ClientSDK {
81376
82706
  }
81377
82707
  };
81378
82708
  function referralsCreateCode(client, request, options) {
81379
- return new APIPromise($do59(
82709
+ return new APIPromise($do60(
81380
82710
  client,
81381
82711
  request,
81382
82712
  options
81383
82713
  ));
81384
82714
  }
81385
- async function $do59(client, request, options) {
82715
+ async function $do60(client, request, options) {
81386
82716
  const parsed = safeParse(
81387
82717
  request,
81388
82718
  (value) => z34__namespace.parse(CreateReferralCodeParams$outboundSchema, value),
@@ -81451,13 +82781,13 @@ async function $do59(client, request, options) {
81451
82781
  return [result, { status: "complete", request: req, response }];
81452
82782
  }
81453
82783
  function referralsCreateProgram(client, request, options) {
81454
- return new APIPromise($do60(
82784
+ return new APIPromise($do61(
81455
82785
  client,
81456
82786
  request,
81457
82787
  options
81458
82788
  ));
81459
82789
  }
81460
- async function $do60(client, request, options) {
82790
+ async function $do61(client, request, options) {
81461
82791
  const parsed = safeParse(
81462
82792
  request,
81463
82793
  (value) => z34__namespace.parse(CreateReferralProgramParams$outboundSchema, value),
@@ -81526,13 +82856,13 @@ async function $do60(client, request, options) {
81526
82856
  return [result, { status: "complete", request: req, response }];
81527
82857
  }
81528
82858
  function referralsDeleteProgram(client, request, options) {
81529
- return new APIPromise($do61(
82859
+ return new APIPromise($do62(
81530
82860
  client,
81531
82861
  request,
81532
82862
  options
81533
82863
  ));
81534
82864
  }
81535
- async function $do61(client, request, options) {
82865
+ async function $do62(client, request, options) {
81536
82866
  const parsed = safeParse(
81537
82867
  request,
81538
82868
  (value) => z34__namespace.parse(DeleteReferralProgramParams$outboundSchema, value),
@@ -81601,13 +82931,13 @@ async function $do61(client, request, options) {
81601
82931
  return [result, { status: "complete", request: req, response }];
81602
82932
  }
81603
82933
  function referralsGetProgram(client, request, options) {
81604
- return new APIPromise($do62(
82934
+ return new APIPromise($do63(
81605
82935
  client,
81606
82936
  request,
81607
82937
  options
81608
82938
  ));
81609
82939
  }
81610
- async function $do62(client, request, options) {
82940
+ async function $do63(client, request, options) {
81611
82941
  const parsed = safeParse(
81612
82942
  request,
81613
82943
  (value) => z34__namespace.parse(GetReferralProgramParams$outboundSchema, value),
@@ -81678,13 +83008,13 @@ async function $do62(client, request, options) {
81678
83008
 
81679
83009
  // ../sdk/src/funcs/referrals-list-programs.ts
81680
83010
  function referralsListPrograms(client, _request, options) {
81681
- return new APIPromise($do63(
83011
+ return new APIPromise($do64(
81682
83012
  client,
81683
83013
  _request,
81684
83014
  options
81685
83015
  ));
81686
83016
  }
81687
- async function $do63(client, _request, options) {
83017
+ async function $do64(client, _request, options) {
81688
83018
  const path = pathToFunc("/v1/referral_programs.list")();
81689
83019
  const headers = new Headers(compactMap({
81690
83020
  "Content-Type": "application/json",
@@ -81742,13 +83072,13 @@ async function $do63(client, _request, options) {
81742
83072
  return [result, { status: "complete", request: req, response }];
81743
83073
  }
81744
83074
  function referralsRedeemCode(client, request, options) {
81745
- return new APIPromise($do64(
83075
+ return new APIPromise($do65(
81746
83076
  client,
81747
83077
  request,
81748
83078
  options
81749
83079
  ));
81750
83080
  }
81751
- async function $do64(client, request, options) {
83081
+ async function $do65(client, request, options) {
81752
83082
  const parsed = safeParse(
81753
83083
  request,
81754
83084
  (value) => z34__namespace.parse(RedeemReferralCodeParams$outboundSchema, value),
@@ -81817,13 +83147,13 @@ async function $do64(client, request, options) {
81817
83147
  return [result, { status: "complete", request: req, response }];
81818
83148
  }
81819
83149
  function referralsUpdateProgram(client, request, options) {
81820
- return new APIPromise($do65(
83150
+ return new APIPromise($do66(
81821
83151
  client,
81822
83152
  request,
81823
83153
  options
81824
83154
  ));
81825
83155
  }
81826
- async function $do65(client, request, options) {
83156
+ async function $do66(client, request, options) {
81827
83157
  const parsed = safeParse(
81828
83158
  request,
81829
83159
  (value) => z34__namespace.parse(UpdateReferralProgramParams$outboundSchema, value),
@@ -81966,13 +83296,13 @@ var Referrals = class extends ClientSDK {
81966
83296
  }
81967
83297
  };
81968
83298
  function rewardsCreate(client, request, options) {
81969
- return new APIPromise($do66(
83299
+ return new APIPromise($do67(
81970
83300
  client,
81971
83301
  request,
81972
83302
  options
81973
83303
  ));
81974
83304
  }
81975
- async function $do66(client, request, options) {
83305
+ async function $do67(client, request, options) {
81976
83306
  const parsed = safeParse(
81977
83307
  request,
81978
83308
  (value) => z34__namespace.parse(CreateRewardParams$outboundSchema, value),
@@ -82041,13 +83371,13 @@ async function $do66(client, request, options) {
82041
83371
  return [result, { status: "complete", request: req, response }];
82042
83372
  }
82043
83373
  function rewardsDelete(client, request, options) {
82044
- return new APIPromise($do67(
83374
+ return new APIPromise($do68(
82045
83375
  client,
82046
83376
  request,
82047
83377
  options
82048
83378
  ));
82049
83379
  }
82050
- async function $do67(client, request, options) {
83380
+ async function $do68(client, request, options) {
82051
83381
  const parsed = safeParse(
82052
83382
  request,
82053
83383
  (value) => z34__namespace.parse(DeleteRewardParams$outboundSchema, value),
@@ -82116,13 +83446,13 @@ async function $do67(client, request, options) {
82116
83446
  return [result, { status: "complete", request: req, response }];
82117
83447
  }
82118
83448
  function rewardsGet(client, request, options) {
82119
- return new APIPromise($do68(
83449
+ return new APIPromise($do69(
82120
83450
  client,
82121
83451
  request,
82122
83452
  options
82123
83453
  ));
82124
83454
  }
82125
- async function $do68(client, request, options) {
83455
+ async function $do69(client, request, options) {
82126
83456
  const parsed = safeParse(
82127
83457
  request,
82128
83458
  (value) => z34__namespace.parse(GetRewardParams$outboundSchema, value),
@@ -82193,13 +83523,13 @@ async function $do68(client, request, options) {
82193
83523
 
82194
83524
  // ../sdk/src/funcs/rewards-list.ts
82195
83525
  function rewardsList(client, _request, options) {
82196
- return new APIPromise($do69(
83526
+ return new APIPromise($do70(
82197
83527
  client,
82198
83528
  _request,
82199
83529
  options
82200
83530
  ));
82201
83531
  }
82202
- async function $do69(client, _request, options) {
83532
+ async function $do70(client, _request, options) {
82203
83533
  const path = pathToFunc("/v1/rewards.list")();
82204
83534
  const headers = new Headers(compactMap({
82205
83535
  "Content-Type": "application/json",
@@ -82257,13 +83587,13 @@ async function $do69(client, _request, options) {
82257
83587
  return [result, { status: "complete", request: req, response }];
82258
83588
  }
82259
83589
  function rewardsRedeemCode(client, request, options) {
82260
- return new APIPromise($do70(
83590
+ return new APIPromise($do71(
82261
83591
  client,
82262
83592
  request,
82263
83593
  options
82264
83594
  ));
82265
83595
  }
82266
- async function $do70(client, request, options) {
83596
+ async function $do71(client, request, options) {
82267
83597
  const parsed = safeParse(
82268
83598
  request,
82269
83599
  (value) => z34__namespace.parse(RedeemRewardCodeParams$outboundSchema, value),
@@ -82332,13 +83662,13 @@ async function $do70(client, request, options) {
82332
83662
  return [result, { status: "complete", request: req, response }];
82333
83663
  }
82334
83664
  function rewardsUpdate(client, request, options) {
82335
- return new APIPromise($do71(
83665
+ return new APIPromise($do72(
82336
83666
  client,
82337
83667
  request,
82338
83668
  options
82339
83669
  ));
82340
83670
  }
82341
- async function $do71(client, request, options) {
83671
+ async function $do72(client, request, options) {
82342
83672
  const parsed = safeParse(
82343
83673
  request,
82344
83674
  (value) => z34__namespace.parse(UpdateRewardParams$outboundSchema, value),
@@ -82471,13 +83801,13 @@ var Rewards = class extends ClientSDK {
82471
83801
  }
82472
83802
  };
82473
83803
  function sandboxesCreate(client, request, options) {
82474
- return new APIPromise($do72(
83804
+ return new APIPromise($do73(
82475
83805
  client,
82476
83806
  request,
82477
83807
  options
82478
83808
  ));
82479
83809
  }
82480
- async function $do72(client, request, options) {
83810
+ async function $do73(client, request, options) {
82481
83811
  const parsed = safeParse(
82482
83812
  request,
82483
83813
  (value) => z34__namespace.parse(CreateSandboxParams$outboundSchema, value),
@@ -82546,13 +83876,13 @@ async function $do72(client, request, options) {
82546
83876
  return [result, { status: "complete", request: req, response }];
82547
83877
  }
82548
83878
  function sandboxesDelete(client, request, options) {
82549
- return new APIPromise($do73(
83879
+ return new APIPromise($do74(
82550
83880
  client,
82551
83881
  request,
82552
83882
  options
82553
83883
  ));
82554
83884
  }
82555
- async function $do73(client, request, options) {
83885
+ async function $do74(client, request, options) {
82556
83886
  const parsed = safeParse(
82557
83887
  request,
82558
83888
  (value) => z34__namespace.parse(DeleteSandboxParams$outboundSchema, value),
@@ -82623,13 +83953,13 @@ async function $do73(client, request, options) {
82623
83953
 
82624
83954
  // ../sdk/src/funcs/sandboxes-list.ts
82625
83955
  function sandboxesList(client, _request, options) {
82626
- return new APIPromise($do74(
83956
+ return new APIPromise($do75(
82627
83957
  client,
82628
83958
  _request,
82629
83959
  options
82630
83960
  ));
82631
83961
  }
82632
- async function $do74(client, _request, options) {
83962
+ async function $do75(client, _request, options) {
82633
83963
  const path = pathToFunc("/v1/sandboxes.list")();
82634
83964
  const headers = new Headers(compactMap({
82635
83965
  "Content-Type": "application/json",
@@ -82689,13 +84019,13 @@ async function $do74(client, _request, options) {
82689
84019
 
82690
84020
  // ../sdk/src/funcs/sandboxes-reset.ts
82691
84021
  function sandboxesReset(client, _request, options) {
82692
- return new APIPromise($do75(
84022
+ return new APIPromise($do76(
82693
84023
  client,
82694
84024
  _request,
82695
84025
  options
82696
84026
  ));
82697
84027
  }
82698
- async function $do75(client, _request, options) {
84028
+ async function $do76(client, _request, options) {
82699
84029
  const path = pathToFunc("/v1/sandboxes.reset")();
82700
84030
  const headers = new Headers(compactMap({
82701
84031
  "Content-Type": "application/json",
@@ -82807,6 +84137,7 @@ var Autumn = class extends ClientSDK {
82807
84137
  __publicField(this, "_billing");
82808
84138
  __publicField(this, "_balances");
82809
84139
  __publicField(this, "_events");
84140
+ __publicField(this, "_logs");
82810
84141
  __publicField(this, "_invoices");
82811
84142
  __publicField(this, "_licenses");
82812
84143
  __publicField(this, "_entities");
@@ -82834,6 +84165,9 @@ var Autumn = class extends ClientSDK {
82834
84165
  get events() {
82835
84166
  return this._events ?? (this._events = new Events(this._options));
82836
84167
  }
84168
+ get logs() {
84169
+ return this._logs ?? (this._logs = new Logs(this._options));
84170
+ }
82837
84171
  get invoices() {
82838
84172
  return this._invoices ?? (this._invoices = new Invoices(this._options));
82839
84173
  }
@@ -83054,8 +84388,13 @@ function createPageIterator(page, halt) {
83054
84388
  };
83055
84389
  }
83056
84390
 
84391
+ exports.Add1$outboundSchema = Add1$outboundSchema;
84392
+ exports.Add2$outboundSchema = Add2$outboundSchema;
84393
+ exports.AddItem$outboundSchema = AddItem$outboundSchema;
83057
84394
  exports.AddItemAdditionalCurrency$inboundSchema = AddItemAdditionalCurrency$inboundSchema;
84395
+ exports.AddUnion$outboundSchema = AddUnion$outboundSchema;
83058
84396
  exports.AdditionalCurrency$inboundSchema = AdditionalCurrency$inboundSchema;
84397
+ exports.Address$outboundSchema = Address$outboundSchema;
83059
84398
  exports.AdvanceTestClockParams$outboundSchema = AdvanceTestClockParams$outboundSchema;
83060
84399
  exports.AdvanceTestClockResponse$inboundSchema = AdvanceTestClockResponse$inboundSchema;
83061
84400
  exports.AdvanceTestClockStatus = AdvanceTestClockStatus;
@@ -83841,6 +85180,7 @@ exports.ConfigDuration1$inboundSchema = ConfigDuration1$inboundSchema;
83841
85180
  exports.ConfigDuration2 = ConfigDuration2;
83842
85181
  exports.ConfigDuration2$inboundSchema = ConfigDuration2$inboundSchema;
83843
85182
  exports.ConnectionError = ConnectionError;
85183
+ exports.Context$inboundSchema = Context$inboundSchema;
83844
85184
  exports.CouponTypeRequestBody = CouponTypeRequestBody;
83845
85185
  exports.CouponTypeRequestBody$outboundSchema = CouponTypeRequestBody$outboundSchema;
83846
85186
  exports.CreateBalanceDuration = CreateBalanceDuration;
@@ -84037,6 +85377,7 @@ exports.CreateInvoiceCreditSchema2$outboundSchema = CreateInvoiceCreditSchema2$o
84037
85377
  exports.CreateInvoiceCreditSchemaUnion$outboundSchema = CreateInvoiceCreditSchemaUnion$outboundSchema;
84038
85378
  exports.CreateInvoiceCustomLineItem$outboundSchema = CreateInvoiceCustomLineItem$outboundSchema;
84039
85379
  exports.CreateInvoiceCustomize$outboundSchema = CreateInvoiceCustomize$outboundSchema;
85380
+ exports.CreateInvoiceCustomizeItem$outboundSchema = CreateInvoiceCustomizeItem$outboundSchema;
84040
85381
  exports.CreateInvoiceDimensions1$outboundSchema = CreateInvoiceDimensions1$outboundSchema;
84041
85382
  exports.CreateInvoiceDimensions2$outboundSchema = CreateInvoiceDimensions2$outboundSchema;
84042
85383
  exports.CreateInvoiceDimensions3$outboundSchema = CreateInvoiceDimensions3$outboundSchema;
@@ -84063,6 +85404,8 @@ exports.CreateInvoiceFeatureQuantity$outboundSchema = CreateInvoiceFeatureQuanti
84063
85404
  exports.CreateInvoiceInterval = CreateInvoiceInterval;
84064
85405
  exports.CreateInvoiceInterval$outboundSchema = CreateInvoiceInterval$outboundSchema;
84065
85406
  exports.CreateInvoiceInvoice$inboundSchema = CreateInvoiceInvoice$inboundSchema;
85407
+ exports.CreateInvoiceInvoiceCredits$inboundSchema = CreateInvoiceInvoiceCredits$inboundSchema;
85408
+ exports.CreateInvoiceInvoiceCustomize$outboundSchema = CreateInvoiceInvoiceCustomize$outboundSchema;
84066
85409
  exports.CreateInvoiceInvoiceItem$inboundSchema = CreateInvoiceInvoiceItem$inboundSchema;
84067
85410
  exports.CreateInvoiceItemInterval = CreateInvoiceItemInterval;
84068
85411
  exports.CreateInvoiceItemInterval$outboundSchema = CreateInvoiceItemInterval$outboundSchema;
@@ -84070,6 +85413,16 @@ exports.CreateInvoiceItemPrice$outboundSchema = CreateInvoiceItemPrice$outboundS
84070
85413
  exports.CreateInvoiceItemProcessors$outboundSchema = CreateInvoiceItemProcessors$outboundSchema;
84071
85414
  exports.CreateInvoiceItemStripe$outboundSchema = CreateInvoiceItemStripe$outboundSchema;
84072
85415
  exports.CreateInvoiceLicenseQuantity$outboundSchema = CreateInvoiceLicenseQuantity$outboundSchema;
85416
+ exports.CreateInvoiceLicenseQuantityBillingBehavior = CreateInvoiceLicenseQuantityBillingBehavior;
85417
+ exports.CreateInvoiceLicenseQuantityBillingBehavior$outboundSchema = CreateInvoiceLicenseQuantityBillingBehavior$outboundSchema;
85418
+ exports.CreateInvoiceLicenseQuantityFeatureQuantity$outboundSchema = CreateInvoiceLicenseQuantityFeatureQuantity$outboundSchema;
85419
+ exports.CreateInvoiceLicenseQuantityInterval = CreateInvoiceLicenseQuantityInterval;
85420
+ exports.CreateInvoiceLicenseQuantityInterval$outboundSchema = CreateInvoiceLicenseQuantityInterval$outboundSchema;
85421
+ exports.CreateInvoiceLicenseQuantityPrice$outboundSchema = CreateInvoiceLicenseQuantityPrice$outboundSchema;
85422
+ exports.CreateInvoiceLicenseQuantityProcessors$outboundSchema = CreateInvoiceLicenseQuantityProcessors$outboundSchema;
85423
+ exports.CreateInvoiceLicenseQuantityStripe$outboundSchema = CreateInvoiceLicenseQuantityStripe$outboundSchema;
85424
+ exports.CreateInvoiceLicenseQuantityUsage$outboundSchema = CreateInvoiceLicenseQuantityUsage$outboundSchema;
85425
+ exports.CreateInvoiceLine$inboundSchema = CreateInvoiceLine$inboundSchema;
84073
85426
  exports.CreateInvoiceMultipliers1$outboundSchema = CreateInvoiceMultipliers1$outboundSchema;
84074
85427
  exports.CreateInvoiceMultipliers2$outboundSchema = CreateInvoiceMultipliers2$outboundSchema;
84075
85428
  exports.CreateInvoiceMultipliersMatch1$outboundSchema = CreateInvoiceMultipliersMatch1$outboundSchema;
@@ -84092,6 +85445,7 @@ exports.CreateInvoiceTierBehavior = CreateInvoiceTierBehavior;
84092
85445
  exports.CreateInvoiceTierBehavior$outboundSchema = CreateInvoiceTierBehavior$outboundSchema;
84093
85446
  exports.CreateInvoiceToEnum = CreateInvoiceToEnum;
84094
85447
  exports.CreateInvoiceToEnum$outboundSchema = CreateInvoiceToEnum$outboundSchema;
85448
+ exports.CreateInvoiceUsage$outboundSchema = CreateInvoiceUsage$outboundSchema;
84095
85449
  exports.CreatePlanAddItemAdditionalCurrencyResponse$inboundSchema = CreatePlanAddItemAdditionalCurrencyResponse$inboundSchema;
84096
85450
  exports.CreatePlanAddItemBillingMethodResponse = CreatePlanAddItemBillingMethodResponse;
84097
85451
  exports.CreatePlanAddItemBillingMethodResponse$inboundSchema = CreatePlanAddItemBillingMethodResponse$inboundSchema;
@@ -84597,6 +85951,7 @@ exports.CreditSchemaUnscheduledPlanUpsertLicense1$outboundSchema = CreditSchemaU
84597
85951
  exports.CreditSchemaUnscheduledPlanUpsertLicense2$outboundSchema = CreditSchemaUnscheduledPlanUpsertLicense2$outboundSchema;
84598
85952
  exports.CreditSchemaVariantPlanFeatureOverride1$inboundSchema = CreditSchemaVariantPlanFeatureOverride1$inboundSchema;
84599
85953
  exports.CreditSchemaVariantPlanFeatureOverride2$inboundSchema = CreditSchemaVariantPlanFeatureOverride2$inboundSchema;
85954
+ exports.CustomField$outboundSchema = CustomField$outboundSchema;
84600
85955
  exports.Customer$inboundSchema = Customer$inboundSchema;
84601
85956
  exports.CustomerAnchor = CustomerAnchor;
84602
85957
  exports.CustomerAnchor$inboundSchema = CustomerAnchor$inboundSchema;
@@ -84705,7 +86060,6 @@ exports.CustomerUsageLimitInterval = CustomerUsageLimitInterval;
84705
86060
  exports.CustomerUsageLimitInterval$inboundSchema = CustomerUsageLimitInterval$inboundSchema;
84706
86061
  exports.Customize1$inboundSchema = Customize1$inboundSchema;
84707
86062
  exports.Customize2$outboundSchema = Customize2$outboundSchema;
84708
- exports.CustomizeItem$outboundSchema = CustomizeItem$outboundSchema;
84709
86063
  exports.Deductions$inboundSchema = Deductions$inboundSchema;
84710
86064
  exports.DeleteBalanceInterval = DeleteBalanceInterval;
84711
86065
  exports.DeleteBalanceInterval$outboundSchema = DeleteBalanceInterval$outboundSchema;
@@ -85404,6 +86758,7 @@ exports.ImportType = ImportType;
85404
86758
  exports.ImportType$outboundSchema = ImportType$outboundSchema;
85405
86759
  exports.IncludedUsage1$inboundSchema = IncludedUsage1$inboundSchema;
85406
86760
  exports.IncludedUsage2$inboundSchema = IncludedUsage2$inboundSchema;
86761
+ exports.InsertInvoicesInvoiceRequestBody$outboundSchema = InsertInvoicesInvoiceRequestBody$outboundSchema;
85407
86762
  exports.InsertInvoicesInvoiceResponse$inboundSchema = InsertInvoicesInvoiceResponse$inboundSchema;
85408
86763
  exports.InsertInvoicesParams$outboundSchema = InsertInvoicesParams$outboundSchema;
85409
86764
  exports.InsertInvoicesProcessorTypeRequestBody = InsertInvoicesProcessorTypeRequestBody;
@@ -85425,10 +86780,9 @@ exports.IntervalUnscheduledPlanUpsertLicenseRemoveItemEnum2 = IntervalUnschedule
85425
86780
  exports.IntervalUnscheduledPlanUpsertLicenseRemoveItemEnum2$outboundSchema = IntervalUnscheduledPlanUpsertLicenseRemoveItemEnum2$outboundSchema;
85426
86781
  exports.InvalidRequestError = InvalidRequestError;
85427
86782
  exports.Invoice$inboundSchema = Invoice$inboundSchema;
85428
- exports.InvoiceCustomize$outboundSchema = InvoiceCustomize$outboundSchema;
85429
86783
  exports.InvoicePreview$inboundSchema = InvoicePreview$inboundSchema;
85430
86784
  exports.InvoicePreviewDiscount$inboundSchema = InvoicePreviewDiscount$inboundSchema;
85431
- exports.InvoiceRequestBody$outboundSchema = InvoiceRequestBody$outboundSchema;
86785
+ exports.InvoiceSettingsCustomFields$outboundSchema = InvoiceSettingsCustomFields$outboundSchema;
85432
86786
  exports.Item$inboundSchema = Item$inboundSchema;
85433
86787
  exports.ItemAdditionalCurrency$inboundSchema = ItemAdditionalCurrency$inboundSchema;
85434
86788
  exports.ItemDuration = ItemDuration;
@@ -85441,17 +86795,8 @@ exports.ItemMarkups$inboundSchema = ItemMarkups$inboundSchema;
85441
86795
  exports.ItemThresholdBilling$inboundSchema = ItemThresholdBilling$inboundSchema;
85442
86796
  exports.ItemTierAdditionalCurrency$inboundSchema = ItemTierAdditionalCurrency$inboundSchema;
85443
86797
  exports.License$inboundSchema = License$inboundSchema;
85444
- exports.LicenseQuantityBillingBehavior = LicenseQuantityBillingBehavior;
85445
- exports.LicenseQuantityBillingBehavior$outboundSchema = LicenseQuantityBillingBehavior$outboundSchema;
85446
- exports.LicenseQuantityFeatureQuantity$outboundSchema = LicenseQuantityFeatureQuantity$outboundSchema;
85447
- exports.LicenseQuantityInterval = LicenseQuantityInterval;
85448
- exports.LicenseQuantityInterval$outboundSchema = LicenseQuantityInterval$outboundSchema;
85449
- exports.LicenseQuantityPrice$outboundSchema = LicenseQuantityPrice$outboundSchema;
85450
- exports.LicenseQuantityProcessors$outboundSchema = LicenseQuantityProcessors$outboundSchema;
85451
- exports.LicenseQuantityStripe$outboundSchema = LicenseQuantityStripe$outboundSchema;
85452
- exports.LicenseQuantityUsage$outboundSchema = LicenseQuantityUsage$outboundSchema;
85453
- exports.Line$inboundSchema = Line$inboundSchema;
85454
86798
  exports.LineItem$inboundSchema = LineItem$inboundSchema;
86799
+ exports.Lines$outboundSchema = Lines$outboundSchema;
85455
86800
  exports.Link$outboundSchema = Link$outboundSchema;
85456
86801
  exports.LinkRevenueCatEnv = LinkRevenueCatEnv;
85457
86802
  exports.LinkRevenueCatEnv$outboundSchema = LinkRevenueCatEnv$outboundSchema;
@@ -87536,18 +88881,92 @@ exports.Referral$inboundSchema = Referral$inboundSchema;
87536
88881
  exports.ReferralCustomer$inboundSchema = ReferralCustomer$inboundSchema;
87537
88882
  exports.RefreshKeyParams$outboundSchema = RefreshKeyParams$outboundSchema;
87538
88883
  exports.RefreshKeyResponse$inboundSchema = RefreshKeyResponse$inboundSchema;
88884
+ exports.ReissueInvoiceAdditionalCurrency$outboundSchema = ReissueInvoiceAdditionalCurrency$outboundSchema;
88885
+ exports.ReissueInvoiceAttachDiscount$outboundSchema = ReissueInvoiceAttachDiscount$outboundSchema;
88886
+ exports.ReissueInvoiceBillingBehavior = ReissueInvoiceBillingBehavior;
88887
+ exports.ReissueInvoiceBillingBehavior$outboundSchema = ReissueInvoiceBillingBehavior$outboundSchema;
88888
+ exports.ReissueInvoiceBillingMethod = ReissueInvoiceBillingMethod;
88889
+ exports.ReissueInvoiceBillingMethod$outboundSchema = ReissueInvoiceBillingMethod$outboundSchema;
88890
+ exports.ReissueInvoiceCreditSchema1$outboundSchema = ReissueInvoiceCreditSchema1$outboundSchema;
88891
+ exports.ReissueInvoiceCreditSchema2$outboundSchema = ReissueInvoiceCreditSchema2$outboundSchema;
88892
+ exports.ReissueInvoiceCreditSchemaUnion$outboundSchema = ReissueInvoiceCreditSchemaUnion$outboundSchema;
88893
+ exports.ReissueInvoiceCustomer$outboundSchema = ReissueInvoiceCustomer$outboundSchema;
88894
+ exports.ReissueInvoiceCustomize$outboundSchema = ReissueInvoiceCustomize$outboundSchema;
88895
+ exports.ReissueInvoiceDimensions1$outboundSchema = ReissueInvoiceDimensions1$outboundSchema;
88896
+ exports.ReissueInvoiceDimensions2$outboundSchema = ReissueInvoiceDimensions2$outboundSchema;
88897
+ exports.ReissueInvoiceDimensions3$outboundSchema = ReissueInvoiceDimensions3$outboundSchema;
88898
+ exports.ReissueInvoiceDimensions4$outboundSchema = ReissueInvoiceDimensions4$outboundSchema;
88899
+ exports.ReissueInvoiceDimensionsMatch1$outboundSchema = ReissueInvoiceDimensionsMatch1$outboundSchema;
88900
+ exports.ReissueInvoiceDimensionsMatch2$outboundSchema = ReissueInvoiceDimensionsMatch2$outboundSchema;
88901
+ exports.ReissueInvoiceDimensionsMatch3$outboundSchema = ReissueInvoiceDimensionsMatch3$outboundSchema;
88902
+ exports.ReissueInvoiceDimensionsMatch4$outboundSchema = ReissueInvoiceDimensionsMatch4$outboundSchema;
88903
+ exports.ReissueInvoiceDimensionsTier1$outboundSchema = ReissueInvoiceDimensionsTier1$outboundSchema;
88904
+ exports.ReissueInvoiceDimensionsTier2$outboundSchema = ReissueInvoiceDimensionsTier2$outboundSchema;
88905
+ exports.ReissueInvoiceDimensionsToEnum1 = ReissueInvoiceDimensionsToEnum1;
88906
+ exports.ReissueInvoiceDimensionsToEnum1$outboundSchema = ReissueInvoiceDimensionsToEnum1$outboundSchema;
88907
+ exports.ReissueInvoiceDimensionsToEnum2 = ReissueInvoiceDimensionsToEnum2;
88908
+ exports.ReissueInvoiceDimensionsToEnum2$outboundSchema = ReissueInvoiceDimensionsToEnum2$outboundSchema;
88909
+ exports.ReissueInvoiceDimensionsToUnion1$outboundSchema = ReissueInvoiceDimensionsToUnion1$outboundSchema;
88910
+ exports.ReissueInvoiceDimensionsToUnion2$outboundSchema = ReissueInvoiceDimensionsToUnion2$outboundSchema;
88911
+ exports.ReissueInvoiceDimensionsUnion1$outboundSchema = ReissueInvoiceDimensionsUnion1$outboundSchema;
88912
+ exports.ReissueInvoiceDimensionsUnion2$outboundSchema = ReissueInvoiceDimensionsUnion2$outboundSchema;
87539
88913
  exports.ReissueInvoiceEntity$inboundSchema = ReissueInvoiceEntity$inboundSchema;
87540
- exports.ReissueInvoiceInvoice$inboundSchema = ReissueInvoiceInvoice$inboundSchema;
87541
- exports.ReissueInvoiceItem$inboundSchema = ReissueInvoiceItem$inboundSchema;
88914
+ exports.ReissueInvoiceFeatureOverride$outboundSchema = ReissueInvoiceFeatureOverride$outboundSchema;
88915
+ exports.ReissueInvoiceFeatureOverrideTier$outboundSchema = ReissueInvoiceFeatureOverrideTier$outboundSchema;
88916
+ exports.ReissueInvoiceFeatureOverrideToUnion$outboundSchema = ReissueInvoiceFeatureOverrideToUnion$outboundSchema;
88917
+ exports.ReissueInvoiceFeatureQuantity$outboundSchema = ReissueInvoiceFeatureQuantity$outboundSchema;
88918
+ exports.ReissueInvoiceInterval = ReissueInvoiceInterval;
88919
+ exports.ReissueInvoiceInterval$outboundSchema = ReissueInvoiceInterval$outboundSchema;
88920
+ exports.ReissueInvoiceInvoiceCredits$inboundSchema = ReissueInvoiceInvoiceCredits$inboundSchema;
88921
+ exports.ReissueInvoiceInvoiceCustomize$outboundSchema = ReissueInvoiceInvoiceCustomize$outboundSchema;
88922
+ exports.ReissueInvoiceInvoiceItem$inboundSchema = ReissueInvoiceInvoiceItem$inboundSchema;
88923
+ exports.ReissueInvoiceInvoiceRequestBody$outboundSchema = ReissueInvoiceInvoiceRequestBody$outboundSchema;
88924
+ exports.ReissueInvoiceInvoiceResponse$inboundSchema = ReissueInvoiceInvoiceResponse$inboundSchema;
88925
+ exports.ReissueInvoiceItemInterval = ReissueInvoiceItemInterval;
88926
+ exports.ReissueInvoiceItemInterval$outboundSchema = ReissueInvoiceItemInterval$outboundSchema;
88927
+ exports.ReissueInvoiceItemPrice$outboundSchema = ReissueInvoiceItemPrice$outboundSchema;
88928
+ exports.ReissueInvoiceItemProcessors$outboundSchema = ReissueInvoiceItemProcessors$outboundSchema;
88929
+ exports.ReissueInvoiceItemStripe$outboundSchema = ReissueInvoiceItemStripe$outboundSchema;
88930
+ exports.ReissueInvoiceLicenseQuantity$outboundSchema = ReissueInvoiceLicenseQuantity$outboundSchema;
88931
+ exports.ReissueInvoiceLicenseQuantityBillingBehavior = ReissueInvoiceLicenseQuantityBillingBehavior;
88932
+ exports.ReissueInvoiceLicenseQuantityBillingBehavior$outboundSchema = ReissueInvoiceLicenseQuantityBillingBehavior$outboundSchema;
88933
+ exports.ReissueInvoiceLicenseQuantityFeatureQuantity$outboundSchema = ReissueInvoiceLicenseQuantityFeatureQuantity$outboundSchema;
88934
+ exports.ReissueInvoiceLicenseQuantityInterval = ReissueInvoiceLicenseQuantityInterval;
88935
+ exports.ReissueInvoiceLicenseQuantityInterval$outboundSchema = ReissueInvoiceLicenseQuantityInterval$outboundSchema;
88936
+ exports.ReissueInvoiceLicenseQuantityPrice$outboundSchema = ReissueInvoiceLicenseQuantityPrice$outboundSchema;
88937
+ exports.ReissueInvoiceLicenseQuantityProcessors$outboundSchema = ReissueInvoiceLicenseQuantityProcessors$outboundSchema;
88938
+ exports.ReissueInvoiceLicenseQuantityStripe$outboundSchema = ReissueInvoiceLicenseQuantityStripe$outboundSchema;
88939
+ exports.ReissueInvoiceLicenseQuantityUsage$outboundSchema = ReissueInvoiceLicenseQuantityUsage$outboundSchema;
88940
+ exports.ReissueInvoiceLine$inboundSchema = ReissueInvoiceLine$inboundSchema;
88941
+ exports.ReissueInvoiceMultipliers1$outboundSchema = ReissueInvoiceMultipliers1$outboundSchema;
88942
+ exports.ReissueInvoiceMultipliers2$outboundSchema = ReissueInvoiceMultipliers2$outboundSchema;
88943
+ exports.ReissueInvoiceMultipliersMatch1$outboundSchema = ReissueInvoiceMultipliersMatch1$outboundSchema;
88944
+ exports.ReissueInvoiceMultipliersMatch2$outboundSchema = ReissueInvoiceMultipliersMatch2$outboundSchema;
87542
88945
  exports.ReissueInvoiceParams$outboundSchema = ReissueInvoiceParams$outboundSchema;
88946
+ exports.ReissueInvoicePreview$inboundSchema = ReissueInvoicePreview$inboundSchema;
88947
+ exports.ReissueInvoicePrice$outboundSchema = ReissueInvoicePrice$outboundSchema;
88948
+ exports.ReissueInvoicePriceTier$outboundSchema = ReissueInvoicePriceTier$outboundSchema;
88949
+ exports.ReissueInvoicePriceTo$outboundSchema = ReissueInvoicePriceTo$outboundSchema;
87543
88950
  exports.ReissueInvoiceProcessorType = ReissueInvoiceProcessorType;
87544
88951
  exports.ReissueInvoiceProcessorType$inboundSchema = ReissueInvoiceProcessorType$inboundSchema;
88952
+ exports.ReissueInvoiceProcessors$outboundSchema = ReissueInvoiceProcessors$outboundSchema;
87545
88953
  exports.ReissueInvoiceResponse$inboundSchema = ReissueInvoiceResponse$inboundSchema;
88954
+ exports.ReissueInvoiceStatus = ReissueInvoiceStatus;
88955
+ exports.ReissueInvoiceStatus$inboundSchema = ReissueInvoiceStatus$inboundSchema;
88956
+ exports.ReissueInvoiceStripe$outboundSchema = ReissueInvoiceStripe$outboundSchema;
88957
+ exports.ReissueInvoiceTax$inboundSchema = ReissueInvoiceTax$inboundSchema;
88958
+ exports.ReissueInvoiceTierBehavior = ReissueInvoiceTierBehavior;
88959
+ exports.ReissueInvoiceTierBehavior$outboundSchema = ReissueInvoiceTierBehavior$outboundSchema;
88960
+ exports.ReissueInvoiceToEnum = ReissueInvoiceToEnum;
88961
+ exports.ReissueInvoiceToEnum$outboundSchema = ReissueInvoiceToEnum$outboundSchema;
88962
+ exports.ReissueInvoiceUpdate$outboundSchema = ReissueInvoiceUpdate$outboundSchema;
88963
+ exports.ReissueInvoiceUsage$outboundSchema = ReissueInvoiceUsage$outboundSchema;
87546
88964
  exports.ReleaseLicenseParams$outboundSchema = ReleaseLicenseParams$outboundSchema;
87547
88965
  exports.ReleaseLicenseResponse$inboundSchema = ReleaseLicenseResponse$inboundSchema;
87548
88966
  exports.RemoveLicense$inboundSchema = RemoveLicense$inboundSchema;
87549
88967
  exports.RequestAbortedError = RequestAbortedError;
87550
88968
  exports.RequestBody$outboundSchema = RequestBody$outboundSchema;
88969
+ exports.RequestT$inboundSchema = RequestT$inboundSchema;
87551
88970
  exports.RequestTimeoutError = RequestTimeoutError;
87552
88971
  exports.ResetSandboxParams$outboundSchema = ResetSandboxParams$outboundSchema;
87553
88972
  exports.ResetSandboxResponse$inboundSchema = ResetSandboxResponse$inboundSchema;
@@ -87566,6 +88985,13 @@ exports.Scenario1 = Scenario1;
87566
88985
  exports.Scenario1$inboundSchema = Scenario1$inboundSchema;
87567
88986
  exports.Scenario2 = Scenario2;
87568
88987
  exports.Scenario2$inboundSchema = Scenario2$inboundSchema;
88988
+ exports.SearchLogsRange$outboundSchema = SearchLogsRange$outboundSchema;
88989
+ exports.SearchRequestLogsList$inboundSchema = SearchRequestLogsList$inboundSchema;
88990
+ exports.SearchRequestLogsParams$outboundSchema = SearchRequestLogsParams$outboundSchema;
88991
+ exports.SearchRequestLogsResponse$inboundSchema = SearchRequestLogsResponse$inboundSchema;
88992
+ exports.SearchRequestLogsSource = SearchRequestLogsSource;
88993
+ exports.SearchRequestLogsSource$inboundSchema = SearchRequestLogsSource$inboundSchema;
88994
+ exports.SearchRequestLogsStripe$inboundSchema = SearchRequestLogsStripe$inboundSchema;
87569
88995
  exports.Security$outboundSchema = Security$outboundSchema;
87570
88996
  exports.ServerList = ServerList;
87571
88997
  exports.SetupPaymentAddItemAdditionalCurrency$outboundSchema = SetupPaymentAddItemAdditionalCurrency$outboundSchema;
@@ -87842,6 +89268,7 @@ exports.SyncRevenueCatProduct$inboundSchema = SyncRevenueCatProduct$inboundSchem
87842
89268
  exports.SyncRevenueCatResponse$inboundSchema = SyncRevenueCatResponse$inboundSchema;
87843
89269
  exports.SyncRevenueCatStatus = SyncRevenueCatStatus;
87844
89270
  exports.SyncRevenueCatStatus$inboundSchema = SyncRevenueCatStatus$inboundSchema;
89271
+ exports.TaxId$outboundSchema = TaxId$outboundSchema;
87845
89272
  exports.ToUnscheduledPlanAddItemEnum = ToUnscheduledPlanAddItemEnum;
87846
89273
  exports.ToUnscheduledPlanAddItemEnum$outboundSchema = ToUnscheduledPlanAddItemEnum$outboundSchema;
87847
89274
  exports.ToUnscheduledPlanItemEnum = ToUnscheduledPlanItemEnum;
@@ -89009,7 +90436,6 @@ exports.UpsertLicensePlanItemFilter$inboundSchema = UpsertLicensePlanItemFilter$
89009
90436
  exports.UpsertLicenseProration$inboundSchema = UpsertLicenseProration$inboundSchema;
89010
90437
  exports.UpsertLicenseThresholdBilling$inboundSchema = UpsertLicenseThresholdBilling$inboundSchema;
89011
90438
  exports.UpsertLicenseTierAdditionalCurrency$inboundSchema = UpsertLicenseTierAdditionalCurrency$inboundSchema;
89012
- exports.Usage$outboundSchema = Usage$outboundSchema;
89013
90439
  exports.UsageAlertProperties$outboundSchema = UsageAlertProperties$outboundSchema;
89014
90440
  exports.UsageAlertSource = UsageAlertSource;
89015
90441
  exports.UsageAlertSource$inboundSchema = UsageAlertSource$inboundSchema;
@@ -89125,8 +90551,13 @@ exports.VoidInvoiceParams$outboundSchema = VoidInvoiceParams$outboundSchema;
89125
90551
  exports.VoidInvoiceProcessorType = VoidInvoiceProcessorType;
89126
90552
  exports.VoidInvoiceProcessorType$inboundSchema = VoidInvoiceProcessorType$inboundSchema;
89127
90553
  exports.VoidInvoiceResponse$inboundSchema = VoidInvoiceResponse$inboundSchema;
90554
+ exports.add1ToJSON = add1ToJSON;
90555
+ exports.add2ToJSON = add2ToJSON;
89128
90556
  exports.addItemAdditionalCurrencyFromJSON = addItemAdditionalCurrencyFromJSON;
90557
+ exports.addItemToJSON = addItemToJSON;
90558
+ exports.addUnionToJSON = addUnionToJSON;
89129
90559
  exports.additionalCurrencyFromJSON = additionalCurrencyFromJSON;
90560
+ exports.addressToJSON = addressToJSON;
89130
90561
  exports.advanceTestClockParamsToJSON = advanceTestClockParamsToJSON;
89131
90562
  exports.advanceTestClockResponseFromJSON = advanceTestClockResponseFromJSON;
89132
90563
  exports.aggregateEventsBalanceFromJSON = aggregateEventsBalanceFromJSON;
@@ -89578,6 +91009,7 @@ exports.checkUsageLimit1FromJSON = checkUsageLimit1FromJSON;
89578
91009
  exports.checkUsageLimit2FromJSON = checkUsageLimit2FromJSON;
89579
91010
  exports.checkUsageLimitFilter1FromJSON = checkUsageLimitFilter1FromJSON;
89580
91011
  exports.checkUsageLimitFilter2FromJSON = checkUsageLimitFilter2FromJSON;
91012
+ exports.contextFromJSON = contextFromJSON;
89581
91013
  exports.createBalanceParamsToJSON = createBalanceParamsToJSON;
89582
91014
  exports.createBalanceResetToJSON = createBalanceResetToJSON;
89583
91015
  exports.createBalanceResponseFromJSON = createBalanceResponseFromJSON;
@@ -89697,6 +91129,7 @@ exports.createInvoiceCreditSchema1ToJSON = createInvoiceCreditSchema1ToJSON;
89697
91129
  exports.createInvoiceCreditSchema2ToJSON = createInvoiceCreditSchema2ToJSON;
89698
91130
  exports.createInvoiceCreditSchemaUnionToJSON = createInvoiceCreditSchemaUnionToJSON;
89699
91131
  exports.createInvoiceCustomLineItemToJSON = createInvoiceCustomLineItemToJSON;
91132
+ exports.createInvoiceCustomizeItemToJSON = createInvoiceCustomizeItemToJSON;
89700
91133
  exports.createInvoiceCustomizeToJSON = createInvoiceCustomizeToJSON;
89701
91134
  exports.createInvoiceDimensions1ToJSON = createInvoiceDimensions1ToJSON;
89702
91135
  exports.createInvoiceDimensions2ToJSON = createInvoiceDimensions2ToJSON;
@@ -89717,12 +91150,20 @@ exports.createInvoiceFeatureOverrideTierToJSON = createInvoiceFeatureOverrideTie
89717
91150
  exports.createInvoiceFeatureOverrideToJSON = createInvoiceFeatureOverrideToJSON;
89718
91151
  exports.createInvoiceFeatureOverrideToUnionToJSON = createInvoiceFeatureOverrideToUnionToJSON;
89719
91152
  exports.createInvoiceFeatureQuantityToJSON = createInvoiceFeatureQuantityToJSON;
91153
+ exports.createInvoiceInvoiceCreditsFromJSON = createInvoiceInvoiceCreditsFromJSON;
91154
+ exports.createInvoiceInvoiceCustomizeToJSON = createInvoiceInvoiceCustomizeToJSON;
89720
91155
  exports.createInvoiceInvoiceFromJSON = createInvoiceInvoiceFromJSON;
89721
91156
  exports.createInvoiceInvoiceItemFromJSON = createInvoiceInvoiceItemFromJSON;
89722
91157
  exports.createInvoiceItemPriceToJSON = createInvoiceItemPriceToJSON;
89723
91158
  exports.createInvoiceItemProcessorsToJSON = createInvoiceItemProcessorsToJSON;
89724
91159
  exports.createInvoiceItemStripeToJSON = createInvoiceItemStripeToJSON;
91160
+ exports.createInvoiceLicenseQuantityFeatureQuantityToJSON = createInvoiceLicenseQuantityFeatureQuantityToJSON;
91161
+ exports.createInvoiceLicenseQuantityPriceToJSON = createInvoiceLicenseQuantityPriceToJSON;
91162
+ exports.createInvoiceLicenseQuantityProcessorsToJSON = createInvoiceLicenseQuantityProcessorsToJSON;
91163
+ exports.createInvoiceLicenseQuantityStripeToJSON = createInvoiceLicenseQuantityStripeToJSON;
89725
91164
  exports.createInvoiceLicenseQuantityToJSON = createInvoiceLicenseQuantityToJSON;
91165
+ exports.createInvoiceLicenseQuantityUsageToJSON = createInvoiceLicenseQuantityUsageToJSON;
91166
+ exports.createInvoiceLineFromJSON = createInvoiceLineFromJSON;
89726
91167
  exports.createInvoiceMultipliers1ToJSON = createInvoiceMultipliers1ToJSON;
89727
91168
  exports.createInvoiceMultipliers2ToJSON = createInvoiceMultipliers2ToJSON;
89728
91169
  exports.createInvoiceMultipliersMatch1ToJSON = createInvoiceMultipliersMatch1ToJSON;
@@ -89737,6 +91178,7 @@ exports.createInvoiceProcessorsToJSON = createInvoiceProcessorsToJSON;
89737
91178
  exports.createInvoiceResponseFromJSON = createInvoiceResponseFromJSON;
89738
91179
  exports.createInvoiceStripeToJSON = createInvoiceStripeToJSON;
89739
91180
  exports.createInvoiceTaxFromJSON = createInvoiceTaxFromJSON;
91181
+ exports.createInvoiceUsageToJSON = createInvoiceUsageToJSON;
89740
91182
  exports.createPlanAddItemAdditionalCurrencyResponseFromJSON = createPlanAddItemAdditionalCurrencyResponseFromJSON;
89741
91183
  exports.createPlanAdditionalCurrencyRequestBodyToJSON = createPlanAdditionalCurrencyRequestBodyToJSON;
89742
91184
  exports.createPlanAdditionalCurrencyResponseFromJSON = createPlanAdditionalCurrencyResponseFromJSON;
@@ -90020,6 +91462,7 @@ exports.creditSchemaUnscheduledPlanUpsertLicense1ToJSON = creditSchemaUnschedule
90020
91462
  exports.creditSchemaUnscheduledPlanUpsertLicense2ToJSON = creditSchemaUnscheduledPlanUpsertLicense2ToJSON;
90021
91463
  exports.creditSchemaVariantPlanFeatureOverride1FromJSON = creditSchemaVariantPlanFeatureOverride1FromJSON;
90022
91464
  exports.creditSchemaVariantPlanFeatureOverride2FromJSON = creditSchemaVariantPlanFeatureOverride2FromJSON;
91465
+ exports.customFieldToJSON = customFieldToJSON;
90023
91466
  exports.customerAutoTopupFromJSON = customerAutoTopupFromJSON;
90024
91467
  exports.customerBillingControlsFromJSON = customerBillingControlsFromJSON;
90025
91468
  exports.customerConfigFromJSON = customerConfigFromJSON;
@@ -90080,7 +91523,6 @@ exports.customerUsageLimitFilterFromJSON = customerUsageLimitFilterFromJSON;
90080
91523
  exports.customerUsageLimitFromJSON = customerUsageLimitFromJSON;
90081
91524
  exports.customize1FromJSON = customize1FromJSON;
90082
91525
  exports.customize2ToJSON = customize2ToJSON;
90083
- exports.customizeItemToJSON = customizeItemToJSON;
90084
91526
  exports.deductionsFromJSON = deductionsFromJSON;
90085
91527
  exports.deleteBalanceParamsToJSON = deleteBalanceParamsToJSON;
90086
91528
  exports.deleteBalanceResponseFromJSON = deleteBalanceResponseFromJSON;
@@ -90495,14 +91937,14 @@ exports.importPlanToJSON = importPlanToJSON;
90495
91937
  exports.importProcessorToJSON = importProcessorToJSON;
90496
91938
  exports.includedUsage1FromJSON = includedUsage1FromJSON;
90497
91939
  exports.includedUsage2FromJSON = includedUsage2FromJSON;
91940
+ exports.insertInvoicesInvoiceRequestBodyToJSON = insertInvoicesInvoiceRequestBodyToJSON;
90498
91941
  exports.insertInvoicesInvoiceResponseFromJSON = insertInvoicesInvoiceResponseFromJSON;
90499
91942
  exports.insertInvoicesParamsToJSON = insertInvoicesParamsToJSON;
90500
91943
  exports.insertInvoicesResponseFromJSON = insertInvoicesResponseFromJSON;
90501
- exports.invoiceCustomizeToJSON = invoiceCustomizeToJSON;
90502
91944
  exports.invoiceFromJSON = invoiceFromJSON;
90503
91945
  exports.invoicePreviewDiscountFromJSON = invoicePreviewDiscountFromJSON;
90504
91946
  exports.invoicePreviewFromJSON = invoicePreviewFromJSON;
90505
- exports.invoiceRequestBodyToJSON = invoiceRequestBodyToJSON;
91947
+ exports.invoiceSettingsCustomFieldsToJSON = invoiceSettingsCustomFieldsToJSON;
90506
91948
  exports.itemAdditionalCurrencyFromJSON = itemAdditionalCurrencyFromJSON;
90507
91949
  exports.itemExpiryFromJSON = itemExpiryFromJSON;
90508
91950
  exports.itemFeatureOverrideFromJSON = itemFeatureOverrideFromJSON;
@@ -90511,13 +91953,8 @@ exports.itemMarkupsFromJSON = itemMarkupsFromJSON;
90511
91953
  exports.itemThresholdBillingFromJSON = itemThresholdBillingFromJSON;
90512
91954
  exports.itemTierAdditionalCurrencyFromJSON = itemTierAdditionalCurrencyFromJSON;
90513
91955
  exports.licenseFromJSON = licenseFromJSON;
90514
- exports.licenseQuantityFeatureQuantityToJSON = licenseQuantityFeatureQuantityToJSON;
90515
- exports.licenseQuantityPriceToJSON = licenseQuantityPriceToJSON;
90516
- exports.licenseQuantityProcessorsToJSON = licenseQuantityProcessorsToJSON;
90517
- exports.licenseQuantityStripeToJSON = licenseQuantityStripeToJSON;
90518
- exports.licenseQuantityUsageToJSON = licenseQuantityUsageToJSON;
90519
- exports.lineFromJSON = lineFromJSON;
90520
91956
  exports.lineItemFromJSON = lineItemFromJSON;
91957
+ exports.linesToJSON = linesToJSON;
90521
91958
  exports.linkRevenueCatParamsToJSON = linkRevenueCatParamsToJSON;
90522
91959
  exports.linkRevenueCatResponseFromJSON = linkRevenueCatResponseFromJSON;
90523
91960
  exports.linkToJSON = linkToJSON;
@@ -91714,15 +93151,67 @@ exports.referralCustomerFromJSON = referralCustomerFromJSON;
91714
93151
  exports.referralFromJSON = referralFromJSON;
91715
93152
  exports.refreshKeyParamsToJSON = refreshKeyParamsToJSON;
91716
93153
  exports.refreshKeyResponseFromJSON = refreshKeyResponseFromJSON;
93154
+ exports.reissueInvoiceAdditionalCurrencyToJSON = reissueInvoiceAdditionalCurrencyToJSON;
93155
+ exports.reissueInvoiceAttachDiscountToJSON = reissueInvoiceAttachDiscountToJSON;
93156
+ exports.reissueInvoiceCreditSchema1ToJSON = reissueInvoiceCreditSchema1ToJSON;
93157
+ exports.reissueInvoiceCreditSchema2ToJSON = reissueInvoiceCreditSchema2ToJSON;
93158
+ exports.reissueInvoiceCreditSchemaUnionToJSON = reissueInvoiceCreditSchemaUnionToJSON;
93159
+ exports.reissueInvoiceCustomerToJSON = reissueInvoiceCustomerToJSON;
93160
+ exports.reissueInvoiceCustomizeToJSON = reissueInvoiceCustomizeToJSON;
93161
+ exports.reissueInvoiceDimensions1ToJSON = reissueInvoiceDimensions1ToJSON;
93162
+ exports.reissueInvoiceDimensions2ToJSON = reissueInvoiceDimensions2ToJSON;
93163
+ exports.reissueInvoiceDimensions3ToJSON = reissueInvoiceDimensions3ToJSON;
93164
+ exports.reissueInvoiceDimensions4ToJSON = reissueInvoiceDimensions4ToJSON;
93165
+ exports.reissueInvoiceDimensionsMatch1ToJSON = reissueInvoiceDimensionsMatch1ToJSON;
93166
+ exports.reissueInvoiceDimensionsMatch2ToJSON = reissueInvoiceDimensionsMatch2ToJSON;
93167
+ exports.reissueInvoiceDimensionsMatch3ToJSON = reissueInvoiceDimensionsMatch3ToJSON;
93168
+ exports.reissueInvoiceDimensionsMatch4ToJSON = reissueInvoiceDimensionsMatch4ToJSON;
93169
+ exports.reissueInvoiceDimensionsTier1ToJSON = reissueInvoiceDimensionsTier1ToJSON;
93170
+ exports.reissueInvoiceDimensionsTier2ToJSON = reissueInvoiceDimensionsTier2ToJSON;
93171
+ exports.reissueInvoiceDimensionsToUnion1ToJSON = reissueInvoiceDimensionsToUnion1ToJSON;
93172
+ exports.reissueInvoiceDimensionsToUnion2ToJSON = reissueInvoiceDimensionsToUnion2ToJSON;
93173
+ exports.reissueInvoiceDimensionsUnion1ToJSON = reissueInvoiceDimensionsUnion1ToJSON;
93174
+ exports.reissueInvoiceDimensionsUnion2ToJSON = reissueInvoiceDimensionsUnion2ToJSON;
91717
93175
  exports.reissueInvoiceEntityFromJSON = reissueInvoiceEntityFromJSON;
91718
- exports.reissueInvoiceInvoiceFromJSON = reissueInvoiceInvoiceFromJSON;
91719
- exports.reissueInvoiceItemFromJSON = reissueInvoiceItemFromJSON;
93176
+ exports.reissueInvoiceFeatureOverrideTierToJSON = reissueInvoiceFeatureOverrideTierToJSON;
93177
+ exports.reissueInvoiceFeatureOverrideToJSON = reissueInvoiceFeatureOverrideToJSON;
93178
+ exports.reissueInvoiceFeatureOverrideToUnionToJSON = reissueInvoiceFeatureOverrideToUnionToJSON;
93179
+ exports.reissueInvoiceFeatureQuantityToJSON = reissueInvoiceFeatureQuantityToJSON;
93180
+ exports.reissueInvoiceInvoiceCreditsFromJSON = reissueInvoiceInvoiceCreditsFromJSON;
93181
+ exports.reissueInvoiceInvoiceCustomizeToJSON = reissueInvoiceInvoiceCustomizeToJSON;
93182
+ exports.reissueInvoiceInvoiceItemFromJSON = reissueInvoiceInvoiceItemFromJSON;
93183
+ exports.reissueInvoiceInvoiceRequestBodyToJSON = reissueInvoiceInvoiceRequestBodyToJSON;
93184
+ exports.reissueInvoiceInvoiceResponseFromJSON = reissueInvoiceInvoiceResponseFromJSON;
93185
+ exports.reissueInvoiceItemPriceToJSON = reissueInvoiceItemPriceToJSON;
93186
+ exports.reissueInvoiceItemProcessorsToJSON = reissueInvoiceItemProcessorsToJSON;
93187
+ exports.reissueInvoiceItemStripeToJSON = reissueInvoiceItemStripeToJSON;
93188
+ exports.reissueInvoiceLicenseQuantityFeatureQuantityToJSON = reissueInvoiceLicenseQuantityFeatureQuantityToJSON;
93189
+ exports.reissueInvoiceLicenseQuantityPriceToJSON = reissueInvoiceLicenseQuantityPriceToJSON;
93190
+ exports.reissueInvoiceLicenseQuantityProcessorsToJSON = reissueInvoiceLicenseQuantityProcessorsToJSON;
93191
+ exports.reissueInvoiceLicenseQuantityStripeToJSON = reissueInvoiceLicenseQuantityStripeToJSON;
93192
+ exports.reissueInvoiceLicenseQuantityToJSON = reissueInvoiceLicenseQuantityToJSON;
93193
+ exports.reissueInvoiceLicenseQuantityUsageToJSON = reissueInvoiceLicenseQuantityUsageToJSON;
93194
+ exports.reissueInvoiceLineFromJSON = reissueInvoiceLineFromJSON;
93195
+ exports.reissueInvoiceMultipliers1ToJSON = reissueInvoiceMultipliers1ToJSON;
93196
+ exports.reissueInvoiceMultipliers2ToJSON = reissueInvoiceMultipliers2ToJSON;
93197
+ exports.reissueInvoiceMultipliersMatch1ToJSON = reissueInvoiceMultipliersMatch1ToJSON;
93198
+ exports.reissueInvoiceMultipliersMatch2ToJSON = reissueInvoiceMultipliersMatch2ToJSON;
91720
93199
  exports.reissueInvoiceParamsToJSON = reissueInvoiceParamsToJSON;
93200
+ exports.reissueInvoicePreviewFromJSON = reissueInvoicePreviewFromJSON;
93201
+ exports.reissueInvoicePriceTierToJSON = reissueInvoicePriceTierToJSON;
93202
+ exports.reissueInvoicePriceToJSON = reissueInvoicePriceToJSON;
93203
+ exports.reissueInvoicePriceToToJSON = reissueInvoicePriceToToJSON;
93204
+ exports.reissueInvoiceProcessorsToJSON = reissueInvoiceProcessorsToJSON;
91721
93205
  exports.reissueInvoiceResponseFromJSON = reissueInvoiceResponseFromJSON;
93206
+ exports.reissueInvoiceStripeToJSON = reissueInvoiceStripeToJSON;
93207
+ exports.reissueInvoiceTaxFromJSON = reissueInvoiceTaxFromJSON;
93208
+ exports.reissueInvoiceUpdateToJSON = reissueInvoiceUpdateToJSON;
93209
+ exports.reissueInvoiceUsageToJSON = reissueInvoiceUsageToJSON;
91722
93210
  exports.releaseLicenseParamsToJSON = releaseLicenseParamsToJSON;
91723
93211
  exports.releaseLicenseResponseFromJSON = releaseLicenseResponseFromJSON;
91724
93212
  exports.removeLicenseFromJSON = removeLicenseFromJSON;
91725
93213
  exports.requestBodyToJSON = requestBodyToJSON;
93214
+ exports.requestFromJSON = requestFromJSON;
91726
93215
  exports.resetSandboxParamsToJSON = resetSandboxParamsToJSON;
91727
93216
  exports.resetSandboxResponseFromJSON = resetSandboxResponseFromJSON;
91728
93217
  exports.resultFromJSON = resultFromJSON;
@@ -91731,6 +93220,11 @@ exports.revokeKeyResponseFromJSON = revokeKeyResponseFromJSON;
91731
93220
  exports.rewardsDiscountFromJSON = rewardsDiscountFromJSON;
91732
93221
  exports.rewardsFromJSON = rewardsFromJSON;
91733
93222
  exports.rewardsListParamsToJSON = rewardsListParamsToJSON;
93223
+ exports.searchLogsRangeToJSON = searchLogsRangeToJSON;
93224
+ exports.searchRequestLogsListFromJSON = searchRequestLogsListFromJSON;
93225
+ exports.searchRequestLogsParamsToJSON = searchRequestLogsParamsToJSON;
93226
+ exports.searchRequestLogsResponseFromJSON = searchRequestLogsResponseFromJSON;
93227
+ exports.searchRequestLogsStripeFromJSON = searchRequestLogsStripeFromJSON;
91734
93228
  exports.securityToJSON = securityToJSON;
91735
93229
  exports.serverURLFromOptions = serverURLFromOptions;
91736
93230
  exports.setupPaymentAddItemAdditionalCurrencyToJSON = setupPaymentAddItemAdditionalCurrencyToJSON;
@@ -91887,6 +93381,7 @@ exports.subscriptionFromJSON = subscriptionFromJSON;
91887
93381
  exports.syncRevenueCatAppFromJSON = syncRevenueCatAppFromJSON;
91888
93382
  exports.syncRevenueCatParamsToJSON = syncRevenueCatParamsToJSON;
91889
93383
  exports.syncRevenueCatResponseFromJSON = syncRevenueCatResponseFromJSON;
93384
+ exports.taxIdToJSON = taxIdToJSON;
91890
93385
  exports.totalFromJSON = totalFromJSON;
91891
93386
  exports.trackDeduction1FromJSON = trackDeduction1FromJSON;
91892
93387
  exports.trackDeduction2FromJSON = trackDeduction2FromJSON;
@@ -92556,7 +94051,6 @@ exports.upsertLicenseThresholdBillingFromJSON = upsertLicenseThresholdBillingFro
92556
94051
  exports.upsertLicenseTierAdditionalCurrencyFromJSON = upsertLicenseTierAdditionalCurrencyFromJSON;
92557
94052
  exports.usageAlertPropertiesToJSON = usageAlertPropertiesToJSON;
92558
94053
  exports.usageLimitPropertiesToJSON = usageLimitPropertiesToJSON;
92559
- exports.usageToJSON = usageToJSON;
92560
94054
  exports.valuesFromJSON = valuesFromJSON;
92561
94055
  exports.variantConfigFromJSON = variantConfigFromJSON;
92562
94056
  exports.variantCustomerEligibilityFromJSON = variantCustomerEligibilityFromJSON;