@moovio/sdk 0.21.17 → 0.22.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/README.md +70 -70
  2. package/bin/mcp-server.js +272 -193
  3. package/bin/mcp-server.js.map +38 -31
  4. package/examples/package-lock.json +1 -1
  5. package/jsr.json +1 -1
  6. package/lib/config.d.ts +3 -3
  7. package/lib/config.js +3 -3
  8. package/lib/config.js.map +1 -1
  9. package/lib/encodings.d.ts +1 -0
  10. package/lib/encodings.d.ts.map +1 -1
  11. package/lib/encodings.js +9 -0
  12. package/lib/encodings.js.map +1 -1
  13. package/mcp-server/mcp-server.js +1 -1
  14. package/mcp-server/mcp-server.js.map +1 -1
  15. package/mcp-server/server.js +1 -1
  16. package/mcp-server/server.js.map +1 -1
  17. package/models/components/achcreditsamedaypaymentmethod.d.ts +2 -11
  18. package/models/components/achcreditsamedaypaymentmethod.d.ts.map +1 -1
  19. package/models/components/achcreditsamedaypaymentmethod.js +3 -11
  20. package/models/components/achcreditsamedaypaymentmethod.js.map +1 -1
  21. package/models/components/achcreditstandardpaymentmethod.d.ts +2 -11
  22. package/models/components/achcreditstandardpaymentmethod.d.ts.map +1 -1
  23. package/models/components/achcreditstandardpaymentmethod.js +3 -11
  24. package/models/components/achcreditstandardpaymentmethod.js.map +1 -1
  25. package/models/components/achdebitcollectpaymentmethod.d.ts +2 -11
  26. package/models/components/achdebitcollectpaymentmethod.d.ts.map +1 -1
  27. package/models/components/achdebitcollectpaymentmethod.js +3 -11
  28. package/models/components/achdebitcollectpaymentmethod.js.map +1 -1
  29. package/models/components/achdebitfundpaymentmethod.d.ts +2 -11
  30. package/models/components/achdebitfundpaymentmethod.d.ts.map +1 -1
  31. package/models/components/achdebitfundpaymentmethod.js +3 -11
  32. package/models/components/achdebitfundpaymentmethod.js.map +1 -1
  33. package/models/components/applepaypaymentmethod.d.ts +2 -11
  34. package/models/components/applepaypaymentmethod.d.ts.map +1 -1
  35. package/models/components/applepaypaymentmethod.js +3 -10
  36. package/models/components/applepaypaymentmethod.js.map +1 -1
  37. package/models/components/cardpaymentpaymentmethod.d.ts +2 -11
  38. package/models/components/cardpaymentpaymentmethod.d.ts.map +1 -1
  39. package/models/components/cardpaymentpaymentmethod.js +3 -11
  40. package/models/components/cardpaymentpaymentmethod.js.map +1 -1
  41. package/models/components/cardpresentpaymentpaymentmethod.d.ts +2 -11
  42. package/models/components/cardpresentpaymentpaymentmethod.d.ts.map +1 -1
  43. package/models/components/cardpresentpaymentpaymentmethod.js +3 -11
  44. package/models/components/cardpresentpaymentpaymentmethod.js.map +1 -1
  45. package/models/components/createinvoice.d.ts +3 -3
  46. package/models/components/createinvoice.d.ts.map +1 -1
  47. package/models/components/createinvoice.js +3 -3
  48. package/models/components/createinvoice.js.map +1 -1
  49. package/models/components/createinvoicelineitem.d.ts +50 -0
  50. package/models/components/createinvoicelineitem.d.ts.map +1 -0
  51. package/models/components/createinvoicelineitem.js +70 -0
  52. package/models/components/createinvoicelineitem.js.map +1 -0
  53. package/models/components/createinvoicelineitemoption.d.ts +44 -0
  54. package/models/components/createinvoicelineitemoption.d.ts.map +1 -0
  55. package/models/components/createinvoicelineitemoption.js +67 -0
  56. package/models/components/createinvoicelineitemoption.js.map +1 -0
  57. package/models/components/createinvoicelineitemoptionvalidationerror.d.ts +24 -0
  58. package/models/components/createinvoicelineitemoptionvalidationerror.d.ts.map +1 -0
  59. package/models/components/createinvoicelineitemoptionvalidationerror.js +65 -0
  60. package/models/components/createinvoicelineitemoptionvalidationerror.js.map +1 -0
  61. package/models/components/createinvoicelineitems.d.ts +24 -0
  62. package/models/components/createinvoicelineitems.d.ts.map +1 -0
  63. package/models/components/{invoicelineitemsupdate.js → createinvoicelineitems.js} +13 -13
  64. package/models/components/createinvoicelineitems.js.map +1 -0
  65. package/models/components/createinvoicelineitemsupdate.d.ts +24 -0
  66. package/models/components/createinvoicelineitemsupdate.d.ts.map +1 -0
  67. package/models/components/createinvoicelineitemsupdate.js +59 -0
  68. package/models/components/createinvoicelineitemsupdate.js.map +1 -0
  69. package/models/components/createinvoicelineitemsvalidationerror.d.ts +22 -0
  70. package/models/components/createinvoicelineitemsvalidationerror.d.ts.map +1 -0
  71. package/models/components/createinvoicelineitemsvalidationerror.js +61 -0
  72. package/models/components/createinvoicelineitemsvalidationerror.js.map +1 -0
  73. package/models/components/createinvoicelineitemvalidationerror.d.ts +31 -0
  74. package/models/components/createinvoicelineitemvalidationerror.d.ts.map +1 -0
  75. package/models/components/createinvoicelineitemvalidationerror.js +70 -0
  76. package/models/components/createinvoicelineitemvalidationerror.js.map +1 -0
  77. package/models/components/index.d.ts +8 -1
  78. package/models/components/index.d.ts.map +1 -1
  79. package/models/components/index.js +8 -1
  80. package/models/components/index.js.map +1 -1
  81. package/models/components/instantbankcreditpaymentmethod.d.ts +2 -11
  82. package/models/components/instantbankcreditpaymentmethod.d.ts.map +1 -1
  83. package/models/components/instantbankcreditpaymentmethod.js +3 -11
  84. package/models/components/instantbankcreditpaymentmethod.js.map +1 -1
  85. package/models/components/invoiceexternalpayment.d.ts +2 -11
  86. package/models/components/invoiceexternalpayment.d.ts.map +1 -1
  87. package/models/components/invoiceexternalpayment.js +3 -10
  88. package/models/components/invoiceexternalpayment.js.map +1 -1
  89. package/models/components/invoicelineitem.d.ts +9 -3
  90. package/models/components/invoicelineitem.d.ts.map +1 -1
  91. package/models/components/invoicelineitem.js +5 -2
  92. package/models/components/invoicelineitem.js.map +1 -1
  93. package/models/components/invoicelineitemimagemetadata.d.ts +35 -0
  94. package/models/components/invoicelineitemimagemetadata.d.ts.map +1 -0
  95. package/models/components/invoicelineitemimagemetadata.js +64 -0
  96. package/models/components/invoicelineitemimagemetadata.js.map +1 -0
  97. package/models/components/invoicelineitemoption.d.ts +6 -0
  98. package/models/components/invoicelineitemoption.d.ts.map +1 -1
  99. package/models/components/invoicelineitemoption.js +3 -0
  100. package/models/components/invoicelineitemoption.js.map +1 -1
  101. package/models/components/invoicepayment.d.ts +2 -10
  102. package/models/components/invoicepayment.d.ts.map +1 -1
  103. package/models/components/invoicepayment.js +4 -4
  104. package/models/components/invoicepayment.js.map +1 -1
  105. package/models/components/invoicetransferpayment.d.ts +2 -11
  106. package/models/components/invoicetransferpayment.d.ts.map +1 -1
  107. package/models/components/invoicetransferpayment.js +3 -11
  108. package/models/components/invoicetransferpayment.js.map +1 -1
  109. package/models/components/moovwalletpaymentmethod.d.ts +2 -11
  110. package/models/components/moovwalletpaymentmethod.d.ts.map +1 -1
  111. package/models/components/moovwalletpaymentmethod.js +3 -11
  112. package/models/components/moovwalletpaymentmethod.js.map +1 -1
  113. package/models/components/paymentmethod.d.ts +2 -50
  114. package/models/components/paymentmethod.d.ts.map +1 -1
  115. package/models/components/paymentmethod.js +24 -24
  116. package/models/components/paymentmethod.js.map +1 -1
  117. package/models/components/pullfromcardpaymentmethod.d.ts +2 -11
  118. package/models/components/pullfromcardpaymentmethod.d.ts.map +1 -1
  119. package/models/components/pullfromcardpaymentmethod.js +3 -11
  120. package/models/components/pullfromcardpaymentmethod.js.map +1 -1
  121. package/models/components/pushtocardpaymentmethod.d.ts +2 -11
  122. package/models/components/pushtocardpaymentmethod.d.ts.map +1 -1
  123. package/models/components/pushtocardpaymentmethod.js +3 -11
  124. package/models/components/pushtocardpaymentmethod.js.map +1 -1
  125. package/models/components/rtpcreditpaymentmethod.d.ts +2 -11
  126. package/models/components/rtpcreditpaymentmethod.d.ts.map +1 -1
  127. package/models/components/rtpcreditpaymentmethod.js +3 -11
  128. package/models/components/rtpcreditpaymentmethod.js.map +1 -1
  129. package/models/components/updateinvoice.d.ts +3 -3
  130. package/models/components/updateinvoice.d.ts.map +1 -1
  131. package/models/components/updateinvoice.js +3 -3
  132. package/models/components/updateinvoice.js.map +1 -1
  133. package/models/errors/createinvoiceerror.d.ts +3 -3
  134. package/models/errors/createinvoiceerror.d.ts.map +1 -1
  135. package/models/errors/createinvoiceerror.js +2 -2
  136. package/models/errors/createinvoiceerror.js.map +1 -1
  137. package/package.json +1 -1
  138. package/src/lib/config.ts +3 -3
  139. package/src/lib/encodings.ts +13 -0
  140. package/src/mcp-server/mcp-server.ts +1 -1
  141. package/src/mcp-server/server.ts +1 -1
  142. package/src/models/components/achcreditsamedaypaymentmethod.ts +4 -23
  143. package/src/models/components/achcreditstandardpaymentmethod.ts +4 -23
  144. package/src/models/components/achdebitcollectpaymentmethod.ts +4 -23
  145. package/src/models/components/achdebitfundpaymentmethod.ts +4 -21
  146. package/src/models/components/applepaypaymentmethod.ts +4 -22
  147. package/src/models/components/cardpaymentpaymentmethod.ts +4 -21
  148. package/src/models/components/cardpresentpaymentpaymentmethod.ts +4 -23
  149. package/src/models/components/createinvoice.ts +9 -9
  150. package/src/models/components/createinvoicelineitem.ts +104 -0
  151. package/src/models/components/createinvoicelineitemoption.ts +93 -0
  152. package/src/models/components/createinvoicelineitemoptionvalidationerror.ts +77 -0
  153. package/src/models/components/createinvoicelineitems.ts +63 -0
  154. package/src/models/components/createinvoicelineitemsupdate.ts +65 -0
  155. package/src/models/components/createinvoicelineitemsvalidationerror.ts +64 -0
  156. package/src/models/components/createinvoicelineitemvalidationerror.ts +88 -0
  157. package/src/models/components/index.ts +8 -1
  158. package/src/models/components/instantbankcreditpaymentmethod.ts +4 -23
  159. package/src/models/components/invoiceexternalpayment.ts +4 -21
  160. package/src/models/components/invoicelineitem.ts +18 -5
  161. package/src/models/components/invoicelineitemimagemetadata.ts +77 -0
  162. package/src/models/components/invoicelineitemoption.ts +13 -0
  163. package/src/models/components/invoicepayment.ts +7 -17
  164. package/src/models/components/invoicetransferpayment.ts +4 -17
  165. package/src/models/components/moovwalletpaymentmethod.ts +4 -21
  166. package/src/models/components/paymentmethod.ts +48 -118
  167. package/src/models/components/pullfromcardpaymentmethod.ts +4 -21
  168. package/src/models/components/pushtocardpaymentmethod.ts +4 -21
  169. package/src/models/components/rtpcreditpaymentmethod.ts +4 -21
  170. package/src/models/components/updateinvoice.ts +9 -9
  171. package/src/models/errors/createinvoiceerror.ts +7 -5
  172. package/src/types/unrecognized.ts +9 -1
  173. package/tsconfig.json +1 -2
  174. package/types/unrecognized.d.ts +7 -1
  175. package/types/unrecognized.d.ts.map +1 -1
  176. package/types/unrecognized.js +9 -1
  177. package/types/unrecognized.js.map +1 -1
  178. package/models/components/invoicelineitemsupdate.d.ts +0 -24
  179. package/models/components/invoicelineitemsupdate.d.ts.map +0 -1
  180. package/models/components/invoicelineitemsupdate.js.map +0 -1
  181. package/src/models/components/invoicelineitemsupdate.ts +0 -63
package/bin/mcp-server.js CHANGED
@@ -34030,9 +34030,9 @@ var init_config = __esm(() => {
34030
34030
  SDK_METADATA = {
34031
34031
  language: "typescript",
34032
34032
  openapiDocVersion: "latest",
34033
- sdkVersion: "0.21.17",
34034
- genVersion: "2.763.3",
34035
- userAgent: "speakeasy-sdk/typescript 0.21.17 2.763.3 latest @moovio/sdk"
34033
+ sdkVersion: "0.22.1",
34034
+ genVersion: "2.772.0",
34035
+ userAgent: "speakeasy-sdk/typescript 0.22.1 2.772.0 latest @moovio/sdk"
34036
34036
  };
34037
34037
  });
34038
34038
 
@@ -34363,7 +34363,13 @@ function queryEncoder(f) {
34363
34363
  explode: options?.explode ?? true,
34364
34364
  charEncoding: options?.charEncoding ?? "percent"
34365
34365
  };
34366
+ const allowEmptySet = new Set(options?.allowEmptyValue ?? []);
34366
34367
  const encoded = Object.entries(values).map(([key, value]) => {
34368
+ if (allowEmptySet.has(key)) {
34369
+ if (value === undefined || value === null || value === "" || Array.isArray(value) && value.length === 0) {
34370
+ return `${encodeURIComponent(key)}=`;
34371
+ }
34372
+ }
34367
34373
  return f(key, value, opts);
34368
34374
  });
34369
34375
  return queryJoin(...encoded);
@@ -36489,89 +36495,69 @@ var init_paymentmethodsbankaccount = __esm(() => {
36489
36495
  });
36490
36496
 
36491
36497
  // src/models/components/achcreditsamedaypaymentmethod.ts
36492
- var AchCreditSameDayPaymentMethodPaymentMethodType, AchCreditSameDayPaymentMethodPaymentMethodType$inboundSchema, AchCreditSameDayPaymentMethodPaymentMethodType$outboundSchema, AchCreditSameDayPaymentMethod$inboundSchema, AchCreditSameDayPaymentMethod$outboundSchema;
36498
+ var AchCreditSameDayPaymentMethod$inboundSchema, AchCreditSameDayPaymentMethod$outboundSchema;
36493
36499
  var init_achcreditsamedaypaymentmethod = __esm(() => {
36494
36500
  init_esm();
36495
36501
  init_paymentmethodsbankaccount();
36496
- AchCreditSameDayPaymentMethodPaymentMethodType = {
36497
- AchCreditSameDay: "ach-credit-same-day"
36498
- };
36499
- AchCreditSameDayPaymentMethodPaymentMethodType$inboundSchema = nativeEnumType(AchCreditSameDayPaymentMethodPaymentMethodType);
36500
- AchCreditSameDayPaymentMethodPaymentMethodType$outboundSchema = AchCreditSameDayPaymentMethodPaymentMethodType$inboundSchema;
36501
36502
  AchCreditSameDayPaymentMethod$inboundSchema = objectType({
36502
36503
  paymentMethodID: stringType(),
36503
- paymentMethodType: AchCreditSameDayPaymentMethodPaymentMethodType$inboundSchema,
36504
+ paymentMethodType: literalType("ach-credit-same-day"),
36504
36505
  bankAccount: PaymentMethodsBankAccount$inboundSchema
36505
36506
  });
36506
36507
  AchCreditSameDayPaymentMethod$outboundSchema = objectType({
36507
36508
  paymentMethodID: stringType(),
36508
- paymentMethodType: AchCreditSameDayPaymentMethodPaymentMethodType$outboundSchema,
36509
+ paymentMethodType: literalType("ach-credit-same-day"),
36509
36510
  bankAccount: PaymentMethodsBankAccount$outboundSchema
36510
36511
  });
36511
36512
  });
36512
36513
 
36513
36514
  // src/models/components/achcreditstandardpaymentmethod.ts
36514
- var AchCreditStandardPaymentMethodPaymentMethodType, AchCreditStandardPaymentMethodPaymentMethodType$inboundSchema, AchCreditStandardPaymentMethodPaymentMethodType$outboundSchema, AchCreditStandardPaymentMethod$inboundSchema, AchCreditStandardPaymentMethod$outboundSchema;
36515
+ var AchCreditStandardPaymentMethod$inboundSchema, AchCreditStandardPaymentMethod$outboundSchema;
36515
36516
  var init_achcreditstandardpaymentmethod = __esm(() => {
36516
36517
  init_esm();
36517
36518
  init_paymentmethodsbankaccount();
36518
- AchCreditStandardPaymentMethodPaymentMethodType = {
36519
- AchCreditStandard: "ach-credit-standard"
36520
- };
36521
- AchCreditStandardPaymentMethodPaymentMethodType$inboundSchema = nativeEnumType(AchCreditStandardPaymentMethodPaymentMethodType);
36522
- AchCreditStandardPaymentMethodPaymentMethodType$outboundSchema = AchCreditStandardPaymentMethodPaymentMethodType$inboundSchema;
36523
36519
  AchCreditStandardPaymentMethod$inboundSchema = objectType({
36524
36520
  paymentMethodID: stringType(),
36525
- paymentMethodType: AchCreditStandardPaymentMethodPaymentMethodType$inboundSchema,
36521
+ paymentMethodType: literalType("ach-credit-standard"),
36526
36522
  bankAccount: PaymentMethodsBankAccount$inboundSchema
36527
36523
  });
36528
36524
  AchCreditStandardPaymentMethod$outboundSchema = objectType({
36529
36525
  paymentMethodID: stringType(),
36530
- paymentMethodType: AchCreditStandardPaymentMethodPaymentMethodType$outboundSchema,
36526
+ paymentMethodType: literalType("ach-credit-standard"),
36531
36527
  bankAccount: PaymentMethodsBankAccount$outboundSchema
36532
36528
  });
36533
36529
  });
36534
36530
 
36535
36531
  // src/models/components/achdebitcollectpaymentmethod.ts
36536
- var AchDebitCollectPaymentMethodPaymentMethodType, AchDebitCollectPaymentMethodPaymentMethodType$inboundSchema, AchDebitCollectPaymentMethodPaymentMethodType$outboundSchema, AchDebitCollectPaymentMethod$inboundSchema, AchDebitCollectPaymentMethod$outboundSchema;
36532
+ var AchDebitCollectPaymentMethod$inboundSchema, AchDebitCollectPaymentMethod$outboundSchema;
36537
36533
  var init_achdebitcollectpaymentmethod = __esm(() => {
36538
36534
  init_esm();
36539
36535
  init_paymentmethodsbankaccount();
36540
- AchDebitCollectPaymentMethodPaymentMethodType = {
36541
- AchDebitCollect: "ach-debit-collect"
36542
- };
36543
- AchDebitCollectPaymentMethodPaymentMethodType$inboundSchema = nativeEnumType(AchDebitCollectPaymentMethodPaymentMethodType);
36544
- AchDebitCollectPaymentMethodPaymentMethodType$outboundSchema = AchDebitCollectPaymentMethodPaymentMethodType$inboundSchema;
36545
36536
  AchDebitCollectPaymentMethod$inboundSchema = objectType({
36546
36537
  paymentMethodID: stringType(),
36547
- paymentMethodType: AchDebitCollectPaymentMethodPaymentMethodType$inboundSchema,
36538
+ paymentMethodType: literalType("ach-debit-collect"),
36548
36539
  bankAccount: PaymentMethodsBankAccount$inboundSchema
36549
36540
  });
36550
36541
  AchDebitCollectPaymentMethod$outboundSchema = objectType({
36551
36542
  paymentMethodID: stringType(),
36552
- paymentMethodType: AchDebitCollectPaymentMethodPaymentMethodType$outboundSchema,
36543
+ paymentMethodType: literalType("ach-debit-collect"),
36553
36544
  bankAccount: PaymentMethodsBankAccount$outboundSchema
36554
36545
  });
36555
36546
  });
36556
36547
 
36557
36548
  // src/models/components/achdebitfundpaymentmethod.ts
36558
- var AchDebitFundPaymentMethodPaymentMethodType, AchDebitFundPaymentMethodPaymentMethodType$inboundSchema, AchDebitFundPaymentMethodPaymentMethodType$outboundSchema, AchDebitFundPaymentMethod$inboundSchema, AchDebitFundPaymentMethod$outboundSchema;
36549
+ var AchDebitFundPaymentMethod$inboundSchema, AchDebitFundPaymentMethod$outboundSchema;
36559
36550
  var init_achdebitfundpaymentmethod = __esm(() => {
36560
36551
  init_esm();
36561
36552
  init_paymentmethodsbankaccount();
36562
- AchDebitFundPaymentMethodPaymentMethodType = {
36563
- AchDebitFund: "ach-debit-fund"
36564
- };
36565
- AchDebitFundPaymentMethodPaymentMethodType$inboundSchema = nativeEnumType(AchDebitFundPaymentMethodPaymentMethodType);
36566
- AchDebitFundPaymentMethodPaymentMethodType$outboundSchema = AchDebitFundPaymentMethodPaymentMethodType$inboundSchema;
36567
36553
  AchDebitFundPaymentMethod$inboundSchema = objectType({
36568
36554
  paymentMethodID: stringType(),
36569
- paymentMethodType: AchDebitFundPaymentMethodPaymentMethodType$inboundSchema,
36555
+ paymentMethodType: literalType("ach-debit-fund"),
36570
36556
  bankAccount: PaymentMethodsBankAccount$inboundSchema
36571
36557
  });
36572
36558
  AchDebitFundPaymentMethod$outboundSchema = objectType({
36573
36559
  paymentMethodID: stringType(),
36574
- paymentMethodType: AchDebitFundPaymentMethodPaymentMethodType$outboundSchema,
36560
+ paymentMethodType: literalType("ach-debit-fund"),
36575
36561
  bankAccount: PaymentMethodsBankAccount$outboundSchema
36576
36562
  });
36577
36563
  });
@@ -37212,23 +37198,18 @@ var init_applepayresponse = __esm(() => {
37212
37198
  });
37213
37199
 
37214
37200
  // src/models/components/applepaypaymentmethod.ts
37215
- var ApplePayPaymentMethodPaymentMethodType, ApplePayPaymentMethodPaymentMethodType$inboundSchema, ApplePayPaymentMethodPaymentMethodType$outboundSchema, ApplePayPaymentMethod$inboundSchema, ApplePayPaymentMethod$outboundSchema;
37201
+ var ApplePayPaymentMethod$inboundSchema, ApplePayPaymentMethod$outboundSchema;
37216
37202
  var init_applepaypaymentmethod = __esm(() => {
37217
37203
  init_esm();
37218
37204
  init_applepayresponse();
37219
- ApplePayPaymentMethodPaymentMethodType = {
37220
- ApplePay: "apple-pay"
37221
- };
37222
- ApplePayPaymentMethodPaymentMethodType$inboundSchema = nativeEnumType(ApplePayPaymentMethodPaymentMethodType);
37223
- ApplePayPaymentMethodPaymentMethodType$outboundSchema = ApplePayPaymentMethodPaymentMethodType$inboundSchema;
37224
37205
  ApplePayPaymentMethod$inboundSchema = objectType({
37225
37206
  paymentMethodID: stringType(),
37226
- paymentMethodType: ApplePayPaymentMethodPaymentMethodType$inboundSchema,
37207
+ paymentMethodType: literalType("apple-pay"),
37227
37208
  applePay: ApplePayResponse$inboundSchema
37228
37209
  });
37229
37210
  ApplePayPaymentMethod$outboundSchema = objectType({
37230
37211
  paymentMethodID: stringType(),
37231
- paymentMethodType: ApplePayPaymentMethodPaymentMethodType$outboundSchema,
37212
+ paymentMethodType: literalType("apple-pay"),
37232
37213
  applePay: ApplePayResponse$outboundSchema
37233
37214
  });
37234
37215
  });
@@ -41090,23 +41071,18 @@ var init_paymentmethodscard = __esm(() => {
41090
41071
  });
41091
41072
 
41092
41073
  // src/models/components/cardpaymentpaymentmethod.ts
41093
- var CardPaymentPaymentMethodPaymentMethodType, CardPaymentPaymentMethodPaymentMethodType$inboundSchema, CardPaymentPaymentMethodPaymentMethodType$outboundSchema, CardPaymentPaymentMethod$inboundSchema, CardPaymentPaymentMethod$outboundSchema;
41074
+ var CardPaymentPaymentMethod$inboundSchema, CardPaymentPaymentMethod$outboundSchema;
41094
41075
  var init_cardpaymentpaymentmethod = __esm(() => {
41095
41076
  init_esm();
41096
41077
  init_paymentmethodscard();
41097
- CardPaymentPaymentMethodPaymentMethodType = {
41098
- CardPayment: "card-payment"
41099
- };
41100
- CardPaymentPaymentMethodPaymentMethodType$inboundSchema = nativeEnumType(CardPaymentPaymentMethodPaymentMethodType);
41101
- CardPaymentPaymentMethodPaymentMethodType$outboundSchema = CardPaymentPaymentMethodPaymentMethodType$inboundSchema;
41102
41078
  CardPaymentPaymentMethod$inboundSchema = objectType({
41103
41079
  paymentMethodID: stringType(),
41104
- paymentMethodType: CardPaymentPaymentMethodPaymentMethodType$inboundSchema,
41080
+ paymentMethodType: literalType("card-payment"),
41105
41081
  card: PaymentMethodsCard$inboundSchema
41106
41082
  });
41107
41083
  CardPaymentPaymentMethod$outboundSchema = objectType({
41108
41084
  paymentMethodID: stringType(),
41109
- paymentMethodType: CardPaymentPaymentMethodPaymentMethodType$outboundSchema,
41085
+ paymentMethodType: literalType("card-payment"),
41110
41086
  card: PaymentMethodsCard$outboundSchema
41111
41087
  });
41112
41088
  });
@@ -41161,23 +41137,18 @@ var init_terminalcard = __esm(() => {
41161
41137
  });
41162
41138
 
41163
41139
  // src/models/components/cardpresentpaymentpaymentmethod.ts
41164
- var CardPresentPaymentPaymentMethodPaymentMethodType, CardPresentPaymentPaymentMethodPaymentMethodType$inboundSchema, CardPresentPaymentPaymentMethodPaymentMethodType$outboundSchema, CardPresentPaymentPaymentMethod$inboundSchema, CardPresentPaymentPaymentMethod$outboundSchema;
41140
+ var CardPresentPaymentPaymentMethod$inboundSchema, CardPresentPaymentPaymentMethod$outboundSchema;
41165
41141
  var init_cardpresentpaymentpaymentmethod = __esm(() => {
41166
41142
  init_esm();
41167
41143
  init_terminalcard();
41168
- CardPresentPaymentPaymentMethodPaymentMethodType = {
41169
- CardPresentPayment: "card-present-payment"
41170
- };
41171
- CardPresentPaymentPaymentMethodPaymentMethodType$inboundSchema = nativeEnumType(CardPresentPaymentPaymentMethodPaymentMethodType);
41172
- CardPresentPaymentPaymentMethodPaymentMethodType$outboundSchema = CardPresentPaymentPaymentMethodPaymentMethodType$inboundSchema;
41173
41144
  CardPresentPaymentPaymentMethod$inboundSchema = objectType({
41174
41145
  paymentMethodID: stringType(),
41175
- paymentMethodType: CardPresentPaymentPaymentMethodPaymentMethodType$inboundSchema,
41146
+ paymentMethodType: literalType("card-present-payment"),
41176
41147
  terminalCard: TerminalCard$inboundSchema.optional()
41177
41148
  });
41178
41149
  CardPresentPaymentPaymentMethod$outboundSchema = objectType({
41179
41150
  paymentMethodID: stringType(),
41180
- paymentMethodType: CardPresentPaymentPaymentMethodPaymentMethodType$outboundSchema,
41151
+ paymentMethodType: literalType("card-present-payment"),
41181
41152
  terminalCard: TerminalCard$outboundSchema.optional()
41182
41153
  });
41183
41154
  });
@@ -42533,57 +42504,61 @@ var init_createindividualerror = __esm(() => {
42533
42504
  });
42534
42505
  });
42535
42506
 
42536
- // src/models/components/invoicelineitemoption.ts
42537
- var InvoiceLineItemOption$inboundSchema, InvoiceLineItemOption$outboundSchema;
42538
- var init_invoicelineitemoption = __esm(() => {
42507
+ // src/models/components/createinvoicelineitemoption.ts
42508
+ var CreateInvoiceLineItemOption$inboundSchema, CreateInvoiceLineItemOption$outboundSchema;
42509
+ var init_createinvoicelineitemoption = __esm(() => {
42539
42510
  init_esm();
42540
42511
  init_amountdecimal();
42541
- InvoiceLineItemOption$inboundSchema = objectType({
42512
+ CreateInvoiceLineItemOption$inboundSchema = objectType({
42542
42513
  name: stringType(),
42543
42514
  quantity: numberType().int(),
42544
42515
  priceModifier: AmountDecimal$inboundSchema.optional(),
42545
- group: stringType().optional()
42516
+ group: stringType().optional(),
42517
+ imageIDs: arrayType(stringType()).optional()
42546
42518
  });
42547
- InvoiceLineItemOption$outboundSchema = objectType({
42519
+ CreateInvoiceLineItemOption$outboundSchema = objectType({
42548
42520
  name: stringType(),
42549
42521
  quantity: numberType().int(),
42550
42522
  priceModifier: AmountDecimal$outboundSchema.optional(),
42551
- group: stringType().optional()
42523
+ group: stringType().optional(),
42524
+ imageIDs: arrayType(stringType()).optional()
42552
42525
  });
42553
42526
  });
42554
42527
 
42555
- // src/models/components/invoicelineitem.ts
42556
- var InvoiceLineItem$inboundSchema, InvoiceLineItem$outboundSchema;
42557
- var init_invoicelineitem = __esm(() => {
42528
+ // src/models/components/createinvoicelineitem.ts
42529
+ var CreateInvoiceLineItem$inboundSchema, CreateInvoiceLineItem$outboundSchema;
42530
+ var init_createinvoicelineitem = __esm(() => {
42558
42531
  init_esm();
42559
42532
  init_amountdecimal();
42560
- init_invoicelineitemoption();
42561
- InvoiceLineItem$inboundSchema = objectType({
42533
+ init_createinvoicelineitemoption();
42534
+ CreateInvoiceLineItem$inboundSchema = objectType({
42562
42535
  name: stringType(),
42563
42536
  basePrice: AmountDecimal$inboundSchema,
42564
42537
  quantity: numberType().int(),
42565
- options: arrayType(InvoiceLineItemOption$inboundSchema).optional(),
42566
- productID: stringType().optional()
42538
+ productID: stringType().optional(),
42539
+ options: arrayType(CreateInvoiceLineItemOption$inboundSchema).optional(),
42540
+ imageIDs: arrayType(stringType()).optional()
42567
42541
  });
42568
- InvoiceLineItem$outboundSchema = objectType({
42542
+ CreateInvoiceLineItem$outboundSchema = objectType({
42569
42543
  name: stringType(),
42570
42544
  basePrice: AmountDecimal$outboundSchema,
42571
42545
  quantity: numberType().int(),
42572
- options: arrayType(InvoiceLineItemOption$outboundSchema).optional(),
42573
- productID: stringType().optional()
42546
+ productID: stringType().optional(),
42547
+ options: arrayType(CreateInvoiceLineItemOption$outboundSchema).optional(),
42548
+ imageIDs: arrayType(stringType()).optional()
42574
42549
  });
42575
42550
  });
42576
42551
 
42577
- // src/models/components/invoicelineitems.ts
42578
- var InvoiceLineItems$inboundSchema, InvoiceLineItems$outboundSchema;
42579
- var init_invoicelineitems = __esm(() => {
42552
+ // src/models/components/createinvoicelineitems.ts
42553
+ var CreateInvoiceLineItems$inboundSchema, CreateInvoiceLineItems$outboundSchema;
42554
+ var init_createinvoicelineitems = __esm(() => {
42580
42555
  init_esm();
42581
- init_invoicelineitem();
42582
- InvoiceLineItems$inboundSchema = objectType({
42583
- items: arrayType(InvoiceLineItem$inboundSchema)
42556
+ init_createinvoicelineitem();
42557
+ CreateInvoiceLineItems$inboundSchema = objectType({
42558
+ items: arrayType(CreateInvoiceLineItem$inboundSchema)
42584
42559
  });
42585
- InvoiceLineItems$outboundSchema = objectType({
42586
- items: arrayType(InvoiceLineItem$outboundSchema)
42560
+ CreateInvoiceLineItems$outboundSchema = objectType({
42561
+ items: arrayType(CreateInvoiceLineItem$outboundSchema)
42587
42562
  });
42588
42563
  });
42589
42564
 
@@ -42592,11 +42567,11 @@ var CreateInvoice$inboundSchema, CreateInvoice$outboundSchema;
42592
42567
  var init_createinvoice = __esm(() => {
42593
42568
  init_esm();
42594
42569
  init_amountdecimal();
42595
- init_invoicelineitems();
42570
+ init_createinvoicelineitems();
42596
42571
  CreateInvoice$inboundSchema = objectType({
42597
42572
  customerAccountID: stringType(),
42598
42573
  description: stringType(),
42599
- lineItems: InvoiceLineItems$inboundSchema,
42574
+ lineItems: CreateInvoiceLineItems$inboundSchema,
42600
42575
  invoiceDate: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
42601
42576
  dueDate: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
42602
42577
  taxAmount: AmountDecimal$inboundSchema.optional()
@@ -42604,13 +42579,80 @@ var init_createinvoice = __esm(() => {
42604
42579
  CreateInvoice$outboundSchema = objectType({
42605
42580
  customerAccountID: stringType(),
42606
42581
  description: stringType(),
42607
- lineItems: InvoiceLineItems$outboundSchema,
42582
+ lineItems: CreateInvoiceLineItems$outboundSchema,
42608
42583
  invoiceDate: dateType().transform((v2) => v2.toISOString()).optional(),
42609
42584
  dueDate: dateType().transform((v2) => v2.toISOString()).optional(),
42610
42585
  taxAmount: AmountDecimal$outboundSchema.optional()
42611
42586
  });
42612
42587
  });
42613
42588
 
42589
+ // src/models/components/createinvoicelineitemoptionvalidationerror.ts
42590
+ var CreateInvoiceLineItemOptionValidationError$inboundSchema, CreateInvoiceLineItemOptionValidationError$outboundSchema;
42591
+ var init_createinvoicelineitemoptionvalidationerror = __esm(() => {
42592
+ init_esm();
42593
+ init_amountdecimalvalidationerror();
42594
+ CreateInvoiceLineItemOptionValidationError$inboundSchema = objectType({
42595
+ name: stringType().optional(),
42596
+ group: stringType().optional(),
42597
+ priceModifier: AmountDecimalValidationError$inboundSchema.optional(),
42598
+ quantity: stringType().optional()
42599
+ });
42600
+ CreateInvoiceLineItemOptionValidationError$outboundSchema = objectType({
42601
+ name: stringType().optional(),
42602
+ group: stringType().optional(),
42603
+ priceModifier: AmountDecimalValidationError$outboundSchema.optional(),
42604
+ quantity: stringType().optional()
42605
+ });
42606
+ });
42607
+
42608
+ // src/models/components/createinvoicelineitemsupdate.ts
42609
+ var CreateInvoiceLineItemsUpdate$inboundSchema, CreateInvoiceLineItemsUpdate$outboundSchema;
42610
+ var init_createinvoicelineitemsupdate = __esm(() => {
42611
+ init_esm();
42612
+ init_createinvoicelineitem();
42613
+ CreateInvoiceLineItemsUpdate$inboundSchema = objectType({
42614
+ items: arrayType(CreateInvoiceLineItem$inboundSchema).optional()
42615
+ });
42616
+ CreateInvoiceLineItemsUpdate$outboundSchema = objectType({
42617
+ items: arrayType(CreateInvoiceLineItem$outboundSchema).optional()
42618
+ });
42619
+ });
42620
+
42621
+ // src/models/components/createinvoicelineitemvalidationerror.ts
42622
+ var CreateInvoiceLineItemValidationError$inboundSchema, CreateInvoiceLineItemValidationError$outboundSchema;
42623
+ var init_createinvoicelineitemvalidationerror = __esm(() => {
42624
+ init_esm();
42625
+ init_amountdecimalvalidationerror();
42626
+ init_createinvoicelineitemoptionvalidationerror();
42627
+ CreateInvoiceLineItemValidationError$inboundSchema = objectType({
42628
+ productID: stringType().optional(),
42629
+ name: stringType().optional(),
42630
+ basePrice: AmountDecimalValidationError$inboundSchema.optional(),
42631
+ options: recordType(CreateInvoiceLineItemOptionValidationError$inboundSchema).optional(),
42632
+ quantity: stringType().optional()
42633
+ });
42634
+ CreateInvoiceLineItemValidationError$outboundSchema = objectType({
42635
+ productID: stringType().optional(),
42636
+ name: stringType().optional(),
42637
+ basePrice: AmountDecimalValidationError$outboundSchema.optional(),
42638
+ options: recordType(CreateInvoiceLineItemOptionValidationError$outboundSchema).optional(),
42639
+ quantity: stringType().optional()
42640
+ });
42641
+ });
42642
+
42643
+ // src/models/components/createinvoicelineitemsvalidationerror.ts
42644
+ var CreateInvoiceLineItemsValidationError$inboundSchema, CreateInvoiceLineItemsValidationError$outboundSchema;
42645
+ var init_createinvoicelineitemsvalidationerror = __esm(() => {
42646
+ init_esm();
42647
+ init_createinvoicelineitemvalidationerror();
42648
+ CreateInvoiceLineItemsValidationError$inboundSchema = objectType({
42649
+ items: recordType(CreateInvoiceLineItemValidationError$inboundSchema).optional()
42650
+ });
42651
+ CreateInvoiceLineItemsValidationError$outboundSchema = objectType({
42652
+ items: recordType(CreateInvoiceLineItemValidationError$outboundSchema).optional()
42653
+ });
42654
+ });
42655
+
42614
42656
  // src/models/components/createpaymentlinklineitemoption.ts
42615
42657
  var CreatePaymentLinkLineItemOption$inboundSchema, CreatePaymentLinkLineItemOption$outboundSchema;
42616
42658
  var init_createpaymentlinklineitemoption = __esm(() => {
@@ -44222,23 +44264,18 @@ var init_individualnameupdate = __esm(() => {
44222
44264
  });
44223
44265
 
44224
44266
  // src/models/components/instantbankcreditpaymentmethod.ts
44225
- var InstantBankCreditPaymentMethodPaymentMethodType, InstantBankCreditPaymentMethodPaymentMethodType$inboundSchema, InstantBankCreditPaymentMethodPaymentMethodType$outboundSchema, InstantBankCreditPaymentMethod$inboundSchema, InstantBankCreditPaymentMethod$outboundSchema;
44267
+ var InstantBankCreditPaymentMethod$inboundSchema, InstantBankCreditPaymentMethod$outboundSchema;
44226
44268
  var init_instantbankcreditpaymentmethod = __esm(() => {
44227
44269
  init_esm();
44228
44270
  init_paymentmethodsbankaccount();
44229
- InstantBankCreditPaymentMethodPaymentMethodType = {
44230
- InstantBankCredit: "instant-bank-credit"
44231
- };
44232
- InstantBankCreditPaymentMethodPaymentMethodType$inboundSchema = nativeEnumType(InstantBankCreditPaymentMethodPaymentMethodType);
44233
- InstantBankCreditPaymentMethodPaymentMethodType$outboundSchema = InstantBankCreditPaymentMethodPaymentMethodType$inboundSchema;
44234
44271
  InstantBankCreditPaymentMethod$inboundSchema = objectType({
44235
44272
  paymentMethodID: stringType(),
44236
- paymentMethodType: InstantBankCreditPaymentMethodPaymentMethodType$inboundSchema,
44273
+ paymentMethodType: literalType("instant-bank-credit"),
44237
44274
  bankAccount: PaymentMethodsBankAccount$inboundSchema
44238
44275
  });
44239
44276
  InstantBankCreditPaymentMethod$outboundSchema = objectType({
44240
44277
  paymentMethodID: stringType(),
44241
- paymentMethodType: InstantBankCreditPaymentMethodPaymentMethodType$outboundSchema,
44278
+ paymentMethodType: literalType("instant-bank-credit"),
44242
44279
  bankAccount: PaymentMethodsBankAccount$outboundSchema
44243
44280
  });
44244
44281
  });
@@ -44361,25 +44398,98 @@ var init_institutionssearchresponse = __esm(() => {
44361
44398
  });
44362
44399
  });
44363
44400
 
44401
+ // src/models/components/invoicelineitemimagemetadata.ts
44402
+ var InvoiceLineItemImageMetadata$inboundSchema, InvoiceLineItemImageMetadata$outboundSchema;
44403
+ var init_invoicelineitemimagemetadata = __esm(() => {
44404
+ init_esm();
44405
+ InvoiceLineItemImageMetadata$inboundSchema = objectType({
44406
+ imageID: stringType(),
44407
+ altText: stringType().optional(),
44408
+ link: stringType(),
44409
+ publicID: stringType()
44410
+ });
44411
+ InvoiceLineItemImageMetadata$outboundSchema = objectType({
44412
+ imageID: stringType(),
44413
+ altText: stringType().optional(),
44414
+ link: stringType(),
44415
+ publicID: stringType()
44416
+ });
44417
+ });
44418
+
44419
+ // src/models/components/invoicelineitemoption.ts
44420
+ var InvoiceLineItemOption$inboundSchema, InvoiceLineItemOption$outboundSchema;
44421
+ var init_invoicelineitemoption = __esm(() => {
44422
+ init_esm();
44423
+ init_amountdecimal();
44424
+ init_invoicelineitemimagemetadata();
44425
+ InvoiceLineItemOption$inboundSchema = objectType({
44426
+ name: stringType(),
44427
+ quantity: numberType().int(),
44428
+ priceModifier: AmountDecimal$inboundSchema.optional(),
44429
+ group: stringType().optional(),
44430
+ images: arrayType(InvoiceLineItemImageMetadata$inboundSchema).optional()
44431
+ });
44432
+ InvoiceLineItemOption$outboundSchema = objectType({
44433
+ name: stringType(),
44434
+ quantity: numberType().int(),
44435
+ priceModifier: AmountDecimal$outboundSchema.optional(),
44436
+ group: stringType().optional(),
44437
+ images: arrayType(InvoiceLineItemImageMetadata$outboundSchema).optional()
44438
+ });
44439
+ });
44440
+
44441
+ // src/models/components/invoicelineitem.ts
44442
+ var InvoiceLineItem$inboundSchema, InvoiceLineItem$outboundSchema;
44443
+ var init_invoicelineitem = __esm(() => {
44444
+ init_esm();
44445
+ init_amountdecimal();
44446
+ init_invoicelineitemimagemetadata();
44447
+ init_invoicelineitemoption();
44448
+ InvoiceLineItem$inboundSchema = objectType({
44449
+ name: stringType(),
44450
+ basePrice: AmountDecimal$inboundSchema,
44451
+ quantity: numberType().int(),
44452
+ productID: stringType().optional(),
44453
+ options: arrayType(InvoiceLineItemOption$inboundSchema).optional(),
44454
+ images: arrayType(InvoiceLineItemImageMetadata$inboundSchema).optional()
44455
+ });
44456
+ InvoiceLineItem$outboundSchema = objectType({
44457
+ name: stringType(),
44458
+ basePrice: AmountDecimal$outboundSchema,
44459
+ quantity: numberType().int(),
44460
+ productID: stringType().optional(),
44461
+ options: arrayType(InvoiceLineItemOption$outboundSchema).optional(),
44462
+ images: arrayType(InvoiceLineItemImageMetadata$outboundSchema).optional()
44463
+ });
44464
+ });
44465
+
44466
+ // src/models/components/invoicelineitems.ts
44467
+ var InvoiceLineItems$inboundSchema, InvoiceLineItems$outboundSchema;
44468
+ var init_invoicelineitems = __esm(() => {
44469
+ init_esm();
44470
+ init_invoicelineitem();
44471
+ InvoiceLineItems$inboundSchema = objectType({
44472
+ items: arrayType(InvoiceLineItem$inboundSchema)
44473
+ });
44474
+ InvoiceLineItems$outboundSchema = objectType({
44475
+ items: arrayType(InvoiceLineItem$outboundSchema)
44476
+ });
44477
+ });
44478
+
44364
44479
  // src/models/components/invoiceexternalpayment.ts
44365
- var InvoiceExternalPaymentPaymentType, InvoiceExternalPaymentPaymentType$inboundSchema, InvoiceExternalPaymentPaymentType$outboundSchema, InvoiceExternalPayment$inboundSchema, InvoiceExternalPayment$outboundSchema;
44480
+ var InvoiceExternalPayment$inboundSchema, InvoiceExternalPayment$outboundSchema;
44366
44481
  var init_invoiceexternalpayment = __esm(() => {
44367
44482
  init_esm();
44368
44483
  init_amountdecimal();
44369
- InvoiceExternalPaymentPaymentType = {
44370
- External: "external"
44371
- };
44372
- InvoiceExternalPaymentPaymentType$inboundSchema = nativeEnumType(InvoiceExternalPaymentPaymentType);
44373
- InvoiceExternalPaymentPaymentType$outboundSchema = InvoiceExternalPaymentPaymentType$inboundSchema;
44374
44484
  InvoiceExternalPayment$inboundSchema = objectType({
44375
- paymentType: InvoiceExternalPaymentPaymentType$inboundSchema,
44485
+ paymentType: literalType("external"),
44376
44486
  description: stringType(),
44377
44487
  foreignID: stringType().optional(),
44378
44488
  paymentDate: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
44379
44489
  amount: AmountDecimal$inboundSchema
44380
44490
  });
44381
44491
  InvoiceExternalPayment$outboundSchema = objectType({
44382
- paymentType: InvoiceExternalPaymentPaymentType$outboundSchema,
44492
+ paymentType: literalType("external"),
44383
44493
  description: stringType(),
44384
44494
  foreignID: stringType().optional(),
44385
44495
  paymentDate: dateType().transform((v2) => v2.toISOString()).optional(),
@@ -44388,20 +44498,15 @@ var init_invoiceexternalpayment = __esm(() => {
44388
44498
  });
44389
44499
 
44390
44500
  // src/models/components/invoicetransferpayment.ts
44391
- var PaymentType, PaymentType$inboundSchema, PaymentType$outboundSchema, InvoiceTransferPayment$inboundSchema, InvoiceTransferPayment$outboundSchema;
44501
+ var InvoiceTransferPayment$inboundSchema, InvoiceTransferPayment$outboundSchema;
44392
44502
  var init_invoicetransferpayment = __esm(() => {
44393
44503
  init_esm();
44394
- PaymentType = {
44395
- Transfer: "transfer"
44396
- };
44397
- PaymentType$inboundSchema = nativeEnumType(PaymentType);
44398
- PaymentType$outboundSchema = PaymentType$inboundSchema;
44399
44504
  InvoiceTransferPayment$inboundSchema = objectType({
44400
- paymentType: PaymentType$inboundSchema,
44505
+ paymentType: literalType("transfer"),
44401
44506
  transferID: stringType()
44402
44507
  });
44403
44508
  InvoiceTransferPayment$outboundSchema = objectType({
44404
- paymentType: PaymentType$outboundSchema,
44509
+ paymentType: literalType("transfer"),
44405
44510
  transferID: stringType()
44406
44511
  });
44407
44512
  });
@@ -44413,12 +44518,12 @@ var init_invoicepayment = __esm(() => {
44413
44518
  init_invoiceexternalpayment();
44414
44519
  init_invoicetransferpayment();
44415
44520
  InvoicePayment$inboundSchema = unionType([
44416
- InvoiceExternalPayment$inboundSchema.and(objectType({ paymentType: literalType("external") })),
44417
- InvoiceTransferPayment$inboundSchema.and(objectType({ paymentType: literalType("transfer") }))
44521
+ InvoiceTransferPayment$inboundSchema,
44522
+ InvoiceExternalPayment$inboundSchema
44418
44523
  ]);
44419
44524
  InvoicePayment$outboundSchema = unionType([
44420
- InvoiceExternalPayment$outboundSchema.and(objectType({ paymentType: literalType("external") })),
44421
- InvoiceTransferPayment$outboundSchema.and(objectType({ paymentType: literalType("transfer") }))
44525
+ InvoiceTransferPayment$outboundSchema,
44526
+ InvoiceExternalPayment$outboundSchema
44422
44527
  ]);
44423
44528
  });
44424
44529
 
@@ -44515,19 +44620,6 @@ var init_invoicelineitemoptionvalidationerror = __esm(() => {
44515
44620
  });
44516
44621
  });
44517
44622
 
44518
- // src/models/components/invoicelineitemsupdate.ts
44519
- var InvoiceLineItemsUpdate$inboundSchema, InvoiceLineItemsUpdate$outboundSchema;
44520
- var init_invoicelineitemsupdate = __esm(() => {
44521
- init_esm();
44522
- init_invoicelineitem();
44523
- InvoiceLineItemsUpdate$inboundSchema = objectType({
44524
- items: arrayType(InvoiceLineItem$inboundSchema).optional()
44525
- });
44526
- InvoiceLineItemsUpdate$outboundSchema = objectType({
44527
- items: arrayType(InvoiceLineItem$outboundSchema).optional()
44528
- });
44529
- });
44530
-
44531
44623
  // src/models/components/invoicelineitemvalidationerror.ts
44532
44624
  var InvoiceLineItemValidationError$inboundSchema, InvoiceLineItemValidationError$outboundSchema;
44533
44625
  var init_invoicelineitemvalidationerror = __esm(() => {
@@ -45235,23 +45327,18 @@ var init_moovfee = __esm(() => {
45235
45327
  });
45236
45328
 
45237
45329
  // src/models/components/moovwalletpaymentmethod.ts
45238
- var MoovWalletPaymentMethodPaymentMethodType, MoovWalletPaymentMethodPaymentMethodType$inboundSchema, MoovWalletPaymentMethodPaymentMethodType$outboundSchema, MoovWalletPaymentMethod$inboundSchema, MoovWalletPaymentMethod$outboundSchema;
45330
+ var MoovWalletPaymentMethod$inboundSchema, MoovWalletPaymentMethod$outboundSchema;
45239
45331
  var init_moovwalletpaymentmethod = __esm(() => {
45240
45332
  init_esm();
45241
45333
  init_paymentmethodswallet();
45242
- MoovWalletPaymentMethodPaymentMethodType = {
45243
- MoovWallet: "moov-wallet"
45244
- };
45245
- MoovWalletPaymentMethodPaymentMethodType$inboundSchema = nativeEnumType(MoovWalletPaymentMethodPaymentMethodType);
45246
- MoovWalletPaymentMethodPaymentMethodType$outboundSchema = MoovWalletPaymentMethodPaymentMethodType$inboundSchema;
45247
45334
  MoovWalletPaymentMethod$inboundSchema = objectType({
45248
45335
  paymentMethodID: stringType(),
45249
- paymentMethodType: MoovWalletPaymentMethodPaymentMethodType$inboundSchema,
45336
+ paymentMethodType: literalType("moov-wallet"),
45250
45337
  wallet: PaymentMethodsWallet$inboundSchema
45251
45338
  });
45252
45339
  MoovWalletPaymentMethod$outboundSchema = objectType({
45253
45340
  paymentMethodID: stringType(),
45254
- paymentMethodType: MoovWalletPaymentMethodPaymentMethodType$outboundSchema,
45341
+ paymentMethodType: literalType("moov-wallet"),
45255
45342
  wallet: PaymentMethodsWallet$outboundSchema
45256
45343
  });
45257
45344
  });
@@ -46045,67 +46132,52 @@ var init_paymentlinkpayoutdetailsupdate = __esm(() => {
46045
46132
  });
46046
46133
 
46047
46134
  // src/models/components/pullfromcardpaymentmethod.ts
46048
- var PullFromCardPaymentMethodPaymentMethodType, PullFromCardPaymentMethodPaymentMethodType$inboundSchema, PullFromCardPaymentMethodPaymentMethodType$outboundSchema, PullFromCardPaymentMethod$inboundSchema, PullFromCardPaymentMethod$outboundSchema;
46135
+ var PullFromCardPaymentMethod$inboundSchema, PullFromCardPaymentMethod$outboundSchema;
46049
46136
  var init_pullfromcardpaymentmethod = __esm(() => {
46050
46137
  init_esm();
46051
46138
  init_paymentmethodscard();
46052
- PullFromCardPaymentMethodPaymentMethodType = {
46053
- PullFromCard: "pull-from-card"
46054
- };
46055
- PullFromCardPaymentMethodPaymentMethodType$inboundSchema = nativeEnumType(PullFromCardPaymentMethodPaymentMethodType);
46056
- PullFromCardPaymentMethodPaymentMethodType$outboundSchema = PullFromCardPaymentMethodPaymentMethodType$inboundSchema;
46057
46139
  PullFromCardPaymentMethod$inboundSchema = objectType({
46058
46140
  paymentMethodID: stringType(),
46059
- paymentMethodType: PullFromCardPaymentMethodPaymentMethodType$inboundSchema,
46141
+ paymentMethodType: literalType("pull-from-card"),
46060
46142
  card: PaymentMethodsCard$inboundSchema
46061
46143
  });
46062
46144
  PullFromCardPaymentMethod$outboundSchema = objectType({
46063
46145
  paymentMethodID: stringType(),
46064
- paymentMethodType: PullFromCardPaymentMethodPaymentMethodType$outboundSchema,
46146
+ paymentMethodType: literalType("pull-from-card"),
46065
46147
  card: PaymentMethodsCard$outboundSchema
46066
46148
  });
46067
46149
  });
46068
46150
 
46069
46151
  // src/models/components/pushtocardpaymentmethod.ts
46070
- var PushToCardPaymentMethodPaymentMethodType, PushToCardPaymentMethodPaymentMethodType$inboundSchema, PushToCardPaymentMethodPaymentMethodType$outboundSchema, PushToCardPaymentMethod$inboundSchema, PushToCardPaymentMethod$outboundSchema;
46152
+ var PushToCardPaymentMethod$inboundSchema, PushToCardPaymentMethod$outboundSchema;
46071
46153
  var init_pushtocardpaymentmethod = __esm(() => {
46072
46154
  init_esm();
46073
46155
  init_paymentmethodscard();
46074
- PushToCardPaymentMethodPaymentMethodType = {
46075
- PushToCard: "push-to-card"
46076
- };
46077
- PushToCardPaymentMethodPaymentMethodType$inboundSchema = nativeEnumType(PushToCardPaymentMethodPaymentMethodType);
46078
- PushToCardPaymentMethodPaymentMethodType$outboundSchema = PushToCardPaymentMethodPaymentMethodType$inboundSchema;
46079
46156
  PushToCardPaymentMethod$inboundSchema = objectType({
46080
46157
  paymentMethodID: stringType(),
46081
- paymentMethodType: PushToCardPaymentMethodPaymentMethodType$inboundSchema,
46158
+ paymentMethodType: literalType("push-to-card"),
46082
46159
  card: PaymentMethodsCard$inboundSchema
46083
46160
  });
46084
46161
  PushToCardPaymentMethod$outboundSchema = objectType({
46085
46162
  paymentMethodID: stringType(),
46086
- paymentMethodType: PushToCardPaymentMethodPaymentMethodType$outboundSchema,
46163
+ paymentMethodType: literalType("push-to-card"),
46087
46164
  card: PaymentMethodsCard$outboundSchema
46088
46165
  });
46089
46166
  });
46090
46167
 
46091
46168
  // src/models/components/rtpcreditpaymentmethod.ts
46092
- var RtpCreditPaymentMethodPaymentMethodType, RtpCreditPaymentMethodPaymentMethodType$inboundSchema, RtpCreditPaymentMethodPaymentMethodType$outboundSchema, RtpCreditPaymentMethod$inboundSchema, RtpCreditPaymentMethod$outboundSchema;
46169
+ var RtpCreditPaymentMethod$inboundSchema, RtpCreditPaymentMethod$outboundSchema;
46093
46170
  var init_rtpcreditpaymentmethod = __esm(() => {
46094
46171
  init_esm();
46095
46172
  init_paymentmethodsbankaccount();
46096
- RtpCreditPaymentMethodPaymentMethodType = {
46097
- RtpCredit: "rtp-credit"
46098
- };
46099
- RtpCreditPaymentMethodPaymentMethodType$inboundSchema = nativeEnumType(RtpCreditPaymentMethodPaymentMethodType);
46100
- RtpCreditPaymentMethodPaymentMethodType$outboundSchema = RtpCreditPaymentMethodPaymentMethodType$inboundSchema;
46101
46173
  RtpCreditPaymentMethod$inboundSchema = objectType({
46102
46174
  paymentMethodID: stringType(),
46103
- paymentMethodType: RtpCreditPaymentMethodPaymentMethodType$inboundSchema,
46175
+ paymentMethodType: literalType("rtp-credit"),
46104
46176
  bankAccount: PaymentMethodsBankAccount$inboundSchema
46105
46177
  });
46106
46178
  RtpCreditPaymentMethod$outboundSchema = objectType({
46107
46179
  paymentMethodID: stringType(),
46108
- paymentMethodType: RtpCreditPaymentMethodPaymentMethodType$outboundSchema,
46180
+ paymentMethodType: literalType("rtp-credit"),
46109
46181
  bankAccount: PaymentMethodsBankAccount$outboundSchema
46110
46182
  });
46111
46183
  });
@@ -46127,32 +46199,32 @@ var init_paymentmethod = __esm(() => {
46127
46199
  init_pushtocardpaymentmethod();
46128
46200
  init_rtpcreditpaymentmethod();
46129
46201
  PaymentMethod$inboundSchema = unionType([
46130
- MoovWalletPaymentMethod$inboundSchema.and(objectType({ paymentMethodType: literalType("moov-wallet") })),
46131
- AchDebitFundPaymentMethod$inboundSchema.and(objectType({ paymentMethodType: literalType("ach-debit-fund") })),
46132
- AchDebitCollectPaymentMethod$inboundSchema.and(objectType({ paymentMethodType: literalType("ach-debit-collect") })),
46133
- AchCreditStandardPaymentMethod$inboundSchema.and(objectType({ paymentMethodType: literalType("ach-credit-standard") })),
46134
- AchCreditSameDayPaymentMethod$inboundSchema.and(objectType({ paymentMethodType: literalType("ach-credit-same-day") })),
46135
- RtpCreditPaymentMethod$inboundSchema.and(objectType({ paymentMethodType: literalType("rtp-credit") })),
46136
- CardPaymentPaymentMethod$inboundSchema.and(objectType({ paymentMethodType: literalType("card-payment") })),
46137
- PushToCardPaymentMethod$inboundSchema.and(objectType({ paymentMethodType: literalType("push-to-card") })),
46138
- PullFromCardPaymentMethod$inboundSchema.and(objectType({ paymentMethodType: literalType("pull-from-card") })),
46139
- ApplePayPaymentMethod$inboundSchema.and(objectType({ paymentMethodType: literalType("apple-pay") })),
46140
- InstantBankCreditPaymentMethod$inboundSchema.and(objectType({ paymentMethodType: literalType("instant-bank-credit") })),
46141
- CardPresentPaymentPaymentMethod$inboundSchema.and(objectType({ paymentMethodType: literalType("card-present-payment") }))
46202
+ MoovWalletPaymentMethod$inboundSchema,
46203
+ AchDebitFundPaymentMethod$inboundSchema,
46204
+ AchDebitCollectPaymentMethod$inboundSchema,
46205
+ AchCreditStandardPaymentMethod$inboundSchema,
46206
+ AchCreditSameDayPaymentMethod$inboundSchema,
46207
+ RtpCreditPaymentMethod$inboundSchema,
46208
+ CardPaymentPaymentMethod$inboundSchema,
46209
+ PushToCardPaymentMethod$inboundSchema,
46210
+ PullFromCardPaymentMethod$inboundSchema,
46211
+ ApplePayPaymentMethod$inboundSchema,
46212
+ CardPresentPaymentPaymentMethod$inboundSchema,
46213
+ InstantBankCreditPaymentMethod$inboundSchema
46142
46214
  ]);
46143
46215
  PaymentMethod$outboundSchema = unionType([
46144
- MoovWalletPaymentMethod$outboundSchema.and(objectType({ paymentMethodType: literalType("moov-wallet") })),
46145
- AchDebitFundPaymentMethod$outboundSchema.and(objectType({ paymentMethodType: literalType("ach-debit-fund") })),
46146
- AchDebitCollectPaymentMethod$outboundSchema.and(objectType({ paymentMethodType: literalType("ach-debit-collect") })),
46147
- AchCreditStandardPaymentMethod$outboundSchema.and(objectType({ paymentMethodType: literalType("ach-credit-standard") })),
46148
- AchCreditSameDayPaymentMethod$outboundSchema.and(objectType({ paymentMethodType: literalType("ach-credit-same-day") })),
46149
- RtpCreditPaymentMethod$outboundSchema.and(objectType({ paymentMethodType: literalType("rtp-credit") })),
46150
- CardPaymentPaymentMethod$outboundSchema.and(objectType({ paymentMethodType: literalType("card-payment") })),
46151
- PushToCardPaymentMethod$outboundSchema.and(objectType({ paymentMethodType: literalType("push-to-card") })),
46152
- PullFromCardPaymentMethod$outboundSchema.and(objectType({ paymentMethodType: literalType("pull-from-card") })),
46153
- ApplePayPaymentMethod$outboundSchema.and(objectType({ paymentMethodType: literalType("apple-pay") })),
46154
- InstantBankCreditPaymentMethod$outboundSchema.and(objectType({ paymentMethodType: literalType("instant-bank-credit") })),
46155
- CardPresentPaymentPaymentMethod$outboundSchema.and(objectType({ paymentMethodType: literalType("card-present-payment") }))
46216
+ MoovWalletPaymentMethod$outboundSchema,
46217
+ AchDebitFundPaymentMethod$outboundSchema,
46218
+ AchDebitCollectPaymentMethod$outboundSchema,
46219
+ AchCreditStandardPaymentMethod$outboundSchema,
46220
+ AchCreditSameDayPaymentMethod$outboundSchema,
46221
+ RtpCreditPaymentMethod$outboundSchema,
46222
+ CardPaymentPaymentMethod$outboundSchema,
46223
+ PushToCardPaymentMethod$outboundSchema,
46224
+ PullFromCardPaymentMethod$outboundSchema,
46225
+ ApplePayPaymentMethod$outboundSchema,
46226
+ CardPresentPaymentPaymentMethod$outboundSchema,
46227
+ InstantBankCreditPaymentMethod$outboundSchema
46156
46228
  ]);
46157
46229
  });
46158
46230
 
@@ -47679,11 +47751,11 @@ var UpdateInvoice$inboundSchema, UpdateInvoice$outboundSchema;
47679
47751
  var init_updateinvoice = __esm(() => {
47680
47752
  init_esm();
47681
47753
  init_amountdecimalupdate();
47682
- init_invoicelineitemsupdate();
47754
+ init_createinvoicelineitemsupdate();
47683
47755
  init_invoicestatus();
47684
47756
  UpdateInvoice$inboundSchema = objectType({
47685
47757
  description: stringType().optional(),
47686
- lineItems: InvoiceLineItemsUpdate$inboundSchema.optional(),
47758
+ lineItems: CreateInvoiceLineItemsUpdate$inboundSchema.optional(),
47687
47759
  invoiceDate: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))).optional(),
47688
47760
  dueDate: nullableType(stringType().datetime({ offset: true }).transform((v2) => new Date(v2))).optional(),
47689
47761
  status: InvoiceStatus$inboundSchema.optional(),
@@ -47691,7 +47763,7 @@ var init_updateinvoice = __esm(() => {
47691
47763
  });
47692
47764
  UpdateInvoice$outboundSchema = objectType({
47693
47765
  description: stringType().optional(),
47694
- lineItems: InvoiceLineItemsUpdate$outboundSchema.optional(),
47766
+ lineItems: CreateInvoiceLineItemsUpdate$outboundSchema.optional(),
47695
47767
  invoiceDate: nullableType(dateType().transform((v2) => v2.toISOString())).optional(),
47696
47768
  dueDate: nullableType(dateType().transform((v2) => v2.toISOString())).optional(),
47697
47769
  status: InvoiceStatus$outboundSchema.optional(),
@@ -49114,6 +49186,13 @@ var init_components = __esm(() => {
49114
49186
  init_createindividualerror();
49115
49187
  init_createindividualprofile();
49116
49188
  init_createinvoice();
49189
+ init_createinvoicelineitem();
49190
+ init_createinvoicelineitemoption();
49191
+ init_createinvoicelineitemoptionvalidationerror();
49192
+ init_createinvoicelineitems();
49193
+ init_createinvoicelineitemsupdate();
49194
+ init_createinvoicelineitemsvalidationerror();
49195
+ init_createinvoicelineitemvalidationerror();
49117
49196
  init_createpaymentlink();
49118
49197
  init_createpaymentlinklineitem();
49119
49198
  init_createpaymentlinklineitemoption();
@@ -49215,10 +49294,10 @@ var init_components = __esm(() => {
49215
49294
  init_invoice();
49216
49295
  init_invoiceexternalpayment();
49217
49296
  init_invoicelineitem();
49297
+ init_invoicelineitemimagemetadata();
49218
49298
  init_invoicelineitemoption();
49219
49299
  init_invoicelineitemoptionvalidationerror();
49220
49300
  init_invoicelineitems();
49221
- init_invoicelineitemsupdate();
49222
49301
  init_invoicelineitemsvalidationerror();
49223
49302
  init_invoicelineitemvalidationerror();
49224
49303
  init_invoicepayment();
@@ -49698,7 +49777,7 @@ var init_createinvoiceerror = __esm(() => {
49698
49777
  CreateInvoiceError$inboundSchema = objectType({
49699
49778
  customerAccountID: stringType().optional(),
49700
49779
  description: stringType().optional(),
49701
- lineItems: InvoiceLineItemsValidationError$inboundSchema.optional(),
49780
+ lineItems: CreateInvoiceLineItemsValidationError$inboundSchema.optional(),
49702
49781
  invoiceDate: stringType().optional(),
49703
49782
  dueDate: stringType().optional(),
49704
49783
  taxAmount: AmountDecimalValidationError$inboundSchema.optional(),
@@ -49715,7 +49794,7 @@ var init_createinvoiceerror = __esm(() => {
49715
49794
  CreateInvoiceError$outboundSchema = instanceOfType(CreateInvoiceError).transform((v2) => v2.data$).pipe(objectType({
49716
49795
  customerAccountID: stringType().optional(),
49717
49796
  description: stringType().optional(),
49718
- lineItems: InvoiceLineItemsValidationError$outboundSchema.optional(),
49797
+ lineItems: CreateInvoiceLineItemsValidationError$outboundSchema.optional(),
49719
49798
  invoiceDate: stringType().optional(),
49720
49799
  dueDate: stringType().optional(),
49721
49800
  taxAmount: AmountDecimalValidationError$outboundSchema.optional()
@@ -81390,7 +81469,7 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
81390
81469
  function createMCPServer(deps) {
81391
81470
  const server = new McpServer({
81392
81471
  name: "Moov",
81393
- version: "0.21.17"
81472
+ version: "0.22.1"
81394
81473
  });
81395
81474
  const client = new MoovCore({
81396
81475
  security: deps.security,
@@ -82950,7 +83029,7 @@ var routes = rn({
82950
83029
  var app = Ve(routes, {
82951
83030
  name: "mcp",
82952
83031
  versionInfo: {
82953
- currentVersion: "0.21.17"
83032
+ currentVersion: "0.22.1"
82954
83033
  }
82955
83034
  });
82956
83035
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -82958,5 +83037,5 @@ export {
82958
83037
  app
82959
83038
  };
82960
83039
 
82961
- //# debugId=990BC42FF8290C7264756E2164756E21
83040
+ //# debugId=5ABB04B5034A29FF64756E2164756E21
82962
83041
  //# sourceMappingURL=mcp-server.js.map