@moovio/sdk 0.0.0-dev.22 → 0.0.0-dev.24

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 (76) hide show
  1. package/README.md +26 -0
  2. package/bin/mcp-server.js +108 -29
  3. package/bin/mcp-server.js.map +19 -15
  4. package/jsr.json +1 -1
  5. package/lib/config.d.ts +3 -3
  6. package/lib/config.js +3 -3
  7. package/mcp-server/mcp-server.js +1 -1
  8. package/mcp-server/server.js +1 -1
  9. package/models/components/amountdetails.d.ts +26 -0
  10. package/models/components/amountdetails.d.ts.map +1 -0
  11. package/models/components/amountdetails.js +62 -0
  12. package/models/components/amountdetails.js.map +1 -0
  13. package/models/components/amountdetailsupdate.d.ts +26 -0
  14. package/models/components/amountdetailsupdate.d.ts.map +1 -0
  15. package/models/components/amountdetailsupdate.js +62 -0
  16. package/models/components/amountdetailsupdate.js.map +1 -0
  17. package/models/components/amountdetailsvalidationerror.d.ts +19 -0
  18. package/models/components/amountdetailsvalidationerror.d.ts.map +1 -0
  19. package/models/components/amountdetailsvalidationerror.js +61 -0
  20. package/models/components/amountdetailsvalidationerror.js.map +1 -0
  21. package/models/components/createinvoice.d.ts +3 -3
  22. package/models/components/createinvoice.d.ts.map +1 -1
  23. package/models/components/createinvoice.js +3 -3
  24. package/models/components/createinvoice.js.map +1 -1
  25. package/models/components/index.d.ts +4 -0
  26. package/models/components/index.d.ts.map +1 -1
  27. package/models/components/index.js +4 -0
  28. package/models/components/index.js.map +1 -1
  29. package/models/components/invoice.d.ts +4 -3
  30. package/models/components/invoice.d.ts.map +1 -1
  31. package/models/components/invoice.js +3 -2
  32. package/models/components/invoice.js.map +1 -1
  33. package/models/components/transferconfig.d.ts +3 -0
  34. package/models/components/transferconfig.d.ts.map +1 -1
  35. package/models/components/transferconfig.js +3 -0
  36. package/models/components/transferconfig.js.map +1 -1
  37. package/models/components/transfercontrols.d.ts +43 -0
  38. package/models/components/transfercontrols.d.ts.map +1 -0
  39. package/models/components/transfercontrols.js +67 -0
  40. package/models/components/transfercontrols.js.map +1 -0
  41. package/models/components/updateinvoice.d.ts +9 -9
  42. package/models/components/updateinvoice.d.ts.map +1 -1
  43. package/models/components/updateinvoice.js +3 -3
  44. package/models/components/updateinvoice.js.map +1 -1
  45. package/models/errors/createinvoiceerror.d.ts +3 -3
  46. package/models/errors/createinvoiceerror.d.ts.map +1 -1
  47. package/models/errors/createinvoiceerror.js +4 -4
  48. package/models/errors/createinvoiceerror.js.map +1 -1
  49. package/models/errors/updateinvoiceerror.d.ts +3 -3
  50. package/models/errors/updateinvoiceerror.d.ts.map +1 -1
  51. package/models/errors/updateinvoiceerror.js +4 -4
  52. package/models/errors/updateinvoiceerror.js.map +1 -1
  53. package/package.json +1 -1
  54. package/src/lib/config.ts +3 -3
  55. package/src/mcp-server/mcp-server.ts +1 -1
  56. package/src/mcp-server/server.ts +1 -1
  57. package/src/models/components/amountdetails.ts +64 -0
  58. package/src/models/components/amountdetailsupdate.ts +68 -0
  59. package/src/models/components/amountdetailsvalidationerror.ts +58 -0
  60. package/src/models/components/createinvoice.ts +9 -9
  61. package/src/models/components/index.ts +4 -0
  62. package/src/models/components/invoice.ts +11 -5
  63. package/src/models/components/transferconfig.ts +10 -0
  64. package/src/models/components/transfercontrols.ts +86 -0
  65. package/src/models/components/updateinvoice.ts +15 -15
  66. package/src/models/errors/createinvoiceerror.ts +7 -7
  67. package/src/models/errors/updateinvoiceerror.ts +7 -7
  68. package/src/types/async.ts +8 -7
  69. package/src/types/primitives.ts +0 -24
  70. package/types/async.d.ts.map +1 -1
  71. package/types/async.js +8 -7
  72. package/types/async.js.map +1 -1
  73. package/types/primitives.d.ts +0 -2
  74. package/types/primitives.d.ts.map +1 -1
  75. package/types/primitives.js +0 -23
  76. package/types/primitives.js.map +1 -1
package/README.md CHANGED
@@ -240,6 +240,32 @@ run();
240
240
  ```
241
241
  <!-- End Authentication [security] -->
242
242
 
243
+ Client-side authentication is supported through the `accessToken` parameter. For example:
244
+ ```typescript
245
+ import { Moov } from "@moovio/sdk";
246
+
247
+ const moov = new Moov({
248
+ accessToken: "",
249
+ });
250
+
251
+ async function run() {
252
+ const result = await moov.accounts.create({
253
+ accountType: "business",
254
+ profile: {
255
+ business: {
256
+ legalBusinessName: "Whole Body Fitness LLC",
257
+ },
258
+ },
259
+ });
260
+
261
+ console.log(result);
262
+ }
263
+
264
+ run();
265
+
266
+ ```
267
+ See the [Moov authentication docs](https://docs.moov.io/api/authentication/api-authentication/) for more information.
268
+
243
269
  <!-- Start Available Resources and Operations [operations] -->
244
270
  ## Available Resources and Operations
245
271
 
package/bin/mcp-server.js CHANGED
@@ -53586,9 +53586,9 @@ var init_config = __esm(() => {
53586
53586
  SDK_METADATA = {
53587
53587
  language: "typescript",
53588
53588
  openapiDocVersion: "dev",
53589
- sdkVersion: "0.0.0-dev.22",
53590
- genVersion: "2.884.0",
53591
- userAgent: "speakeasy-sdk/typescript 0.0.0-dev.22 2.884.0 dev @moovio/sdk"
53589
+ sdkVersion: "0.0.0-dev.24",
53590
+ genVersion: "2.893.0",
53591
+ userAgent: "speakeasy-sdk/typescript 0.0.0-dev.24 2.893.0 dev @moovio/sdk"
53592
53592
  };
53593
53593
  });
53594
53594
 
@@ -57027,6 +57027,53 @@ var init_amountdecimalvalidationerror = __esm(() => {
57027
57027
  });
57028
57028
  });
57029
57029
 
57030
+ // src/models/components/amountdetails.ts
57031
+ var AmountDetails$inboundSchema, AmountDetails$outboundSchema;
57032
+ var init_amountdetails = __esm(() => {
57033
+ init_v3();
57034
+ init_primitives2();
57035
+ init_amountdecimal();
57036
+ AmountDetails$inboundSchema = objectType({
57037
+ tax: optional3(AmountDecimal$inboundSchema),
57038
+ surcharge: optional3(AmountDecimal$inboundSchema)
57039
+ });
57040
+ AmountDetails$outboundSchema = objectType({
57041
+ tax: AmountDecimal$outboundSchema.optional(),
57042
+ surcharge: AmountDecimal$outboundSchema.optional()
57043
+ });
57044
+ });
57045
+
57046
+ // src/models/components/amountdetailsupdate.ts
57047
+ var AmountDetailsUpdate$inboundSchema, AmountDetailsUpdate$outboundSchema;
57048
+ var init_amountdetailsupdate = __esm(() => {
57049
+ init_v3();
57050
+ init_primitives2();
57051
+ init_amountdecimalupdate();
57052
+ AmountDetailsUpdate$inboundSchema = objectType({
57053
+ tax: optional3(AmountDecimalUpdate$inboundSchema),
57054
+ surcharge: optional3(AmountDecimalUpdate$inboundSchema)
57055
+ });
57056
+ AmountDetailsUpdate$outboundSchema = objectType({
57057
+ tax: AmountDecimalUpdate$outboundSchema.optional(),
57058
+ surcharge: AmountDecimalUpdate$outboundSchema.optional()
57059
+ });
57060
+ });
57061
+
57062
+ // src/models/components/amountdetailsvalidationerror.ts
57063
+ var AmountDetailsValidationError$inboundSchema, AmountDetailsValidationError$outboundSchema;
57064
+ var init_amountdetailsvalidationerror = __esm(() => {
57065
+ init_v3();
57066
+ init_primitives2();
57067
+ AmountDetailsValidationError$inboundSchema = objectType({
57068
+ tax: optional3(string4()),
57069
+ surcharge: optional3(string4())
57070
+ });
57071
+ AmountDetailsValidationError$outboundSchema = objectType({
57072
+ tax: stringType().optional(),
57073
+ surcharge: stringType().optional()
57074
+ });
57075
+ });
57076
+
57030
57077
  // src/models/components/amountupdate.ts
57031
57078
  var AmountUpdate$inboundSchema, AmountUpdate$outboundSchema;
57032
57079
  var init_amountupdate = __esm(() => {
@@ -63163,7 +63210,7 @@ var CreateInvoice$inboundSchema, CreateInvoice$outboundSchema;
63163
63210
  var init_createinvoice = __esm(() => {
63164
63211
  init_v3();
63165
63212
  init_primitives2();
63166
- init_amountdecimal();
63213
+ init_amountdetails();
63167
63214
  init_createinvoicelineitems();
63168
63215
  CreateInvoice$inboundSchema = objectType({
63169
63216
  customerAccountID: string4(),
@@ -63171,7 +63218,7 @@ var init_createinvoice = __esm(() => {
63171
63218
  lineItems: CreateInvoiceLineItems$inboundSchema,
63172
63219
  invoiceDate: optional3(date4()),
63173
63220
  dueDate: optional3(date4()),
63174
- taxAmount: optional3(AmountDecimal$inboundSchema)
63221
+ amountDetails: optional3(AmountDetails$inboundSchema)
63175
63222
  });
63176
63223
  CreateInvoice$outboundSchema = objectType({
63177
63224
  customerAccountID: stringType(),
@@ -63179,7 +63226,7 @@ var init_createinvoice = __esm(() => {
63179
63226
  lineItems: CreateInvoiceLineItems$outboundSchema,
63180
63227
  invoiceDate: dateType().transform((v2) => v2.toISOString()).optional(),
63181
63228
  dueDate: dateType().transform((v2) => v2.toISOString()).optional(),
63182
- taxAmount: AmountDecimal$outboundSchema.optional()
63229
+ amountDetails: AmountDetails$outboundSchema.optional()
63183
63230
  });
63184
63231
  });
63185
63232
 
@@ -66181,6 +66228,7 @@ var init_invoice = __esm(() => {
66181
66228
  init_v3();
66182
66229
  init_primitives2();
66183
66230
  init_amountdecimal();
66231
+ init_amountdetails();
66184
66232
  init_invoicelineitems();
66185
66233
  init_invoicepayment();
66186
66234
  init_invoicestatus();
@@ -66195,7 +66243,7 @@ var init_invoice = __esm(() => {
66195
66243
  status: InvoiceStatus$inboundSchema,
66196
66244
  lineItems: InvoiceLineItems$inboundSchema,
66197
66245
  subtotalAmount: AmountDecimal$inboundSchema,
66198
- taxAmount: AmountDecimal$inboundSchema,
66246
+ amountDetails: optional3(AmountDetails$inboundSchema),
66199
66247
  totalAmount: AmountDecimal$inboundSchema,
66200
66248
  pendingAmount: AmountDecimal$inboundSchema,
66201
66249
  paidAmount: AmountDecimal$inboundSchema,
@@ -66222,7 +66270,7 @@ var init_invoice = __esm(() => {
66222
66270
  status: InvoiceStatus$outboundSchema,
66223
66271
  lineItems: InvoiceLineItems$outboundSchema,
66224
66272
  subtotalAmount: AmountDecimal$outboundSchema,
66225
- taxAmount: AmountDecimal$outboundSchema,
66273
+ amountDetails: AmountDetails$outboundSchema.optional(),
66226
66274
  totalAmount: AmountDecimal$outboundSchema,
66227
66275
  pendingAmount: AmountDecimal$outboundSchema,
66228
66276
  paidAmount: AmountDecimal$outboundSchema,
@@ -69732,17 +69780,41 @@ var init_transfer = __esm(() => {
69732
69780
  });
69733
69781
  });
69734
69782
 
69783
+ // src/models/components/transfercontrols.ts
69784
+ var TransferControls$inboundSchema, TransferControls$outboundSchema;
69785
+ var init_transfercontrols = __esm(() => {
69786
+ init_v3();
69787
+ init_primitives2();
69788
+ TransferControls$inboundSchema = objectType({
69789
+ accountID: string4(),
69790
+ partnerAccountID: string4(),
69791
+ debtRepayment: boolean4(),
69792
+ allowDynamicDescriptor: boolean4(),
69793
+ allowSurcharge: boolean4()
69794
+ });
69795
+ TransferControls$outboundSchema = objectType({
69796
+ accountID: stringType(),
69797
+ partnerAccountID: stringType(),
69798
+ debtRepayment: booleanType(),
69799
+ allowDynamicDescriptor: booleanType(),
69800
+ allowSurcharge: booleanType()
69801
+ });
69802
+ });
69803
+
69735
69804
  // src/models/components/transferconfig.ts
69736
69805
  var TransferConfig$inboundSchema, TransferConfig$outboundSchema;
69737
69806
  var init_transferconfig = __esm(() => {
69738
69807
  init_v3();
69739
69808
  init_primitives2();
69740
69809
  init_tippresets();
69810
+ init_transfercontrols();
69741
69811
  TransferConfig$inboundSchema = objectType({
69742
- tipPresets: optional3(TipPresets$inboundSchema)
69812
+ tipPresets: optional3(TipPresets$inboundSchema),
69813
+ transferControls: optional3(arrayType(TransferControls$inboundSchema))
69743
69814
  });
69744
69815
  TransferConfig$outboundSchema = objectType({
69745
- tipPresets: TipPresets$outboundSchema.optional()
69816
+ tipPresets: TipPresets$outboundSchema.optional(),
69817
+ transferControls: arrayType(TransferControls$outboundSchema).optional()
69746
69818
  });
69747
69819
  });
69748
69820
 
@@ -70036,7 +70108,7 @@ var UpdateInvoice$inboundSchema, UpdateInvoice$outboundSchema;
70036
70108
  var init_updateinvoice = __esm(() => {
70037
70109
  init_v3();
70038
70110
  init_primitives2();
70039
- init_amountdecimalupdate();
70111
+ init_amountdetailsupdate();
70040
70112
  init_createinvoicelineitemsupdate();
70041
70113
  init_invoicestatus();
70042
70114
  UpdateInvoice$inboundSchema = objectType({
@@ -70045,7 +70117,7 @@ var init_updateinvoice = __esm(() => {
70045
70117
  invoiceDate: nullableType(date4()).optional(),
70046
70118
  dueDate: nullableType(date4()).optional(),
70047
70119
  status: optional3(InvoiceStatus$inboundSchema),
70048
- taxAmount: optional3(AmountDecimalUpdate$inboundSchema)
70120
+ amountDetails: optional3(AmountDetailsUpdate$inboundSchema)
70049
70121
  });
70050
70122
  UpdateInvoice$outboundSchema = objectType({
70051
70123
  description: stringType().optional(),
@@ -70053,7 +70125,7 @@ var init_updateinvoice = __esm(() => {
70053
70125
  invoiceDate: nullableType(dateType().transform((v2) => v2.toISOString())).optional(),
70054
70126
  dueDate: nullableType(dateType().transform((v2) => v2.toISOString())).optional(),
70055
70127
  status: InvoiceStatus$outboundSchema.optional(),
70056
- taxAmount: AmountDecimalUpdate$outboundSchema.optional()
70128
+ amountDetails: AmountDetailsUpdate$outboundSchema.optional()
70057
70129
  });
70058
70130
  });
70059
70131
 
@@ -71460,6 +71532,9 @@ var init_components = __esm(() => {
71460
71532
  init_amountdecimalrangeupdate();
71461
71533
  init_amountdecimalupdate();
71462
71534
  init_amountdecimalvalidationerror();
71535
+ init_amountdetails();
71536
+ init_amountdetailsupdate();
71537
+ init_amountdetailsvalidationerror();
71463
71538
  init_amountupdate();
71464
71539
  init_amountvalidationerror();
71465
71540
  init_applebillingcontact();
@@ -71945,6 +72020,7 @@ var init_components = __esm(() => {
71945
72020
  init_transferamountdetails();
71946
72021
  init_transfercapture();
71947
72022
  init_transferconfig();
72023
+ init_transfercontrols();
71948
72024
  init_transferdestination();
71949
72025
  init_transferentrymode();
71950
72026
  init_transferfailurereason();
@@ -72316,7 +72392,7 @@ var init_createinvoiceerror = __esm(() => {
72316
72392
  lineItems;
72317
72393
  invoiceDate;
72318
72394
  dueDate;
72319
- taxAmount;
72395
+ amountDetails;
72320
72396
  data$;
72321
72397
  constructor(err, httpMeta) {
72322
72398
  const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
@@ -72333,8 +72409,8 @@ var init_createinvoiceerror = __esm(() => {
72333
72409
  this.invoiceDate = err.invoiceDate;
72334
72410
  if (err.dueDate != null)
72335
72411
  this.dueDate = err.dueDate;
72336
- if (err.taxAmount != null)
72337
- this.taxAmount = err.taxAmount;
72412
+ if (err.amountDetails != null)
72413
+ this.amountDetails = err.amountDetails;
72338
72414
  this.name = "CreateInvoiceError";
72339
72415
  }
72340
72416
  };
@@ -72344,7 +72420,7 @@ var init_createinvoiceerror = __esm(() => {
72344
72420
  lineItems: optional3(CreateInvoiceLineItemsValidationError$inboundSchema),
72345
72421
  invoiceDate: optional3(string4()),
72346
72422
  dueDate: optional3(string4()),
72347
- taxAmount: optional3(AmountDecimalValidationError$inboundSchema),
72423
+ amountDetails: optional3(AmountDetailsValidationError$inboundSchema),
72348
72424
  request$: instanceOfType(Request),
72349
72425
  response$: instanceOfType(Response),
72350
72426
  body$: stringType()
@@ -72361,7 +72437,7 @@ var init_createinvoiceerror = __esm(() => {
72361
72437
  lineItems: CreateInvoiceLineItemsValidationError$outboundSchema.optional(),
72362
72438
  invoiceDate: stringType().optional(),
72363
72439
  dueDate: stringType().optional(),
72364
- taxAmount: AmountDecimalValidationError$outboundSchema.optional()
72440
+ amountDetails: AmountDetailsValidationError$outboundSchema.optional()
72365
72441
  }));
72366
72442
  });
72367
72443
 
@@ -74710,7 +74786,7 @@ var init_updateinvoiceerror = __esm(() => {
74710
74786
  invoiceDate;
74711
74787
  dueDate;
74712
74788
  status;
74713
- taxAmount;
74789
+ amountDetails;
74714
74790
  data$;
74715
74791
  constructor(err, httpMeta) {
74716
74792
  const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
@@ -74726,8 +74802,8 @@ var init_updateinvoiceerror = __esm(() => {
74726
74802
  this.dueDate = err.dueDate;
74727
74803
  if (err.status != null)
74728
74804
  this.status = err.status;
74729
- if (err.taxAmount != null)
74730
- this.taxAmount = err.taxAmount;
74805
+ if (err.amountDetails != null)
74806
+ this.amountDetails = err.amountDetails;
74731
74807
  this.name = "UpdateInvoiceError";
74732
74808
  }
74733
74809
  };
@@ -74737,7 +74813,7 @@ var init_updateinvoiceerror = __esm(() => {
74737
74813
  invoiceDate: optional3(string4()),
74738
74814
  dueDate: optional3(string4()),
74739
74815
  status: optional3(string4()),
74740
- taxAmount: optional3(AmountDecimalValidationError$inboundSchema),
74816
+ amountDetails: optional3(AmountDetailsValidationError$inboundSchema),
74741
74817
  request$: instanceOfType(Request),
74742
74818
  response$: instanceOfType(Response),
74743
74819
  body$: stringType()
@@ -74754,7 +74830,7 @@ var init_updateinvoiceerror = __esm(() => {
74754
74830
  invoiceDate: stringType().optional(),
74755
74831
  dueDate: stringType().optional(),
74756
74832
  status: stringType().optional(),
74757
- taxAmount: AmountDecimalValidationError$outboundSchema.optional()
74833
+ amountDetails: AmountDetailsValidationError$outboundSchema.optional()
74758
74834
  }));
74759
74835
  });
74760
74836
 
@@ -82608,16 +82684,19 @@ var init_async = __esm(() => {
82608
82684
  [Symbol.toStringTag] = "APIPromise";
82609
82685
  constructor(p) {
82610
82686
  this.#promise = p instanceof Promise ? p : Promise.resolve(p);
82611
- this.#unwrapped = p instanceof Promise ? this.#promise.then(([value]) => value) : Promise.resolve(p[0]);
82687
+ this.#unwrapped = p instanceof Promise ? null : Promise.resolve(p[0]);
82688
+ }
82689
+ #getUnwrapped() {
82690
+ return this.#unwrapped ??= this.#promise.then(([value]) => value);
82612
82691
  }
82613
82692
  then(onfulfilled, onrejected) {
82614
82693
  return this.#promise.then(onfulfilled ? ([value]) => onfulfilled(value) : undefined, onrejected);
82615
82694
  }
82616
82695
  catch(onrejected) {
82617
- return this.#unwrapped.catch(onrejected);
82696
+ return this.#getUnwrapped().catch(onrejected);
82618
82697
  }
82619
82698
  finally(onfinally) {
82620
- return this.#unwrapped.finally(onfinally);
82699
+ return this.#getUnwrapped().finally(onfinally);
82621
82700
  }
82622
82701
  $inspect() {
82623
82702
  return this.#promise;
@@ -104432,7 +104511,7 @@ var init_webhooksUpdate2 = __esm(() => {
104432
104511
  function createMCPServer(deps) {
104433
104512
  const server = new McpServer({
104434
104513
  name: "Moov",
104435
- version: "0.0.0-dev.22"
104514
+ version: "0.0.0-dev.24"
104436
104515
  });
104437
104516
  const client = new MoovCore({
104438
104517
  security: deps.security,
@@ -106032,7 +106111,7 @@ var routes = rn({
106032
106111
  var app = Ve(routes, {
106033
106112
  name: "mcp",
106034
106113
  versionInfo: {
106035
- currentVersion: "0.0.0-dev.22"
106114
+ currentVersion: "0.0.0-dev.24"
106036
106115
  }
106037
106116
  });
106038
106117
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -106040,5 +106119,5 @@ export {
106040
106119
  app
106041
106120
  };
106042
106121
 
106043
- //# debugId=8D270352857277BC64756E2164756E21
106122
+ //# debugId=B398BE738F7929F964756E2164756E21
106044
106123
  //# sourceMappingURL=mcp-server.js.map