@moovio/sdk 0.12.0 → 0.12.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 (118) hide show
  1. package/FUNCTIONS.md +6 -22
  2. package/README.md +97 -55
  3. package/bin/mcp-server.js +749 -415
  4. package/bin/mcp-server.js.map +19 -9
  5. package/docs/sdks/accounts/README.md +63 -81
  6. package/docs/sdks/accountterminalapplications/README.md +28 -36
  7. package/docs/sdks/adjustments/README.md +14 -18
  8. package/docs/sdks/applepay/README.md +35 -45
  9. package/docs/sdks/authentication/README.md +14 -18
  10. package/docs/sdks/avatars/README.md +7 -9
  11. package/docs/sdks/bankaccounts/README.md +63 -81
  12. package/docs/sdks/branding/README.md +28 -36
  13. package/docs/sdks/capabilities/README.md +28 -36
  14. package/docs/sdks/cardissuing/README.md +35 -45
  15. package/docs/sdks/cards/README.md +35 -45
  16. package/docs/sdks/disputes/README.md +77 -99
  17. package/docs/sdks/endtoendencryption/README.md +14 -18
  18. package/docs/sdks/enrichedaddress/README.md +7 -9
  19. package/docs/sdks/enrichedprofile/README.md +7 -9
  20. package/docs/sdks/feeplans/README.md +49 -63
  21. package/docs/sdks/files/README.md +21 -27
  22. package/docs/sdks/industries/README.md +7 -9
  23. package/docs/sdks/institutions/README.md +98 -9
  24. package/docs/sdks/issuingtransactions/README.md +35 -45
  25. package/docs/sdks/onboarding/README.md +28 -36
  26. package/docs/sdks/paymentlinks/README.md +42 -54
  27. package/docs/sdks/paymentmethods/README.md +14 -18
  28. package/docs/sdks/ping/README.md +7 -9
  29. package/docs/sdks/receipts/README.md +14 -18
  30. package/docs/sdks/representatives/README.md +35 -45
  31. package/docs/sdks/scheduling/README.md +42 -54
  32. package/docs/sdks/sweeps/README.md +42 -54
  33. package/docs/sdks/terminalapplications/README.md +28 -36
  34. package/docs/sdks/transfers/README.md +77 -99
  35. package/docs/sdks/underwriting/README.md +14 -18
  36. package/docs/sdks/wallets/README.md +14 -18
  37. package/docs/sdks/wallettransactions/README.md +14 -18
  38. package/funcs/institutionsSearchInstitutions.d.ts +20 -0
  39. package/funcs/institutionsSearchInstitutions.d.ts.map +1 -0
  40. package/funcs/institutionsSearchInstitutions.js +129 -0
  41. package/funcs/institutionsSearchInstitutions.js.map +1 -0
  42. package/jsr.json +1 -1
  43. package/lib/config.d.ts +3 -3
  44. package/lib/config.js +3 -3
  45. package/mcp-server/mcp-server.js +1 -1
  46. package/mcp-server/server.d.ts.map +1 -1
  47. package/mcp-server/server.js +3 -1
  48. package/mcp-server/server.js.map +1 -1
  49. package/mcp-server/tools/institutionsSearchInstitutions.d.ts +8 -0
  50. package/mcp-server/tools/institutionsSearchInstitutions.d.ts.map +1 -0
  51. package/mcp-server/tools/institutionsSearchInstitutions.js +69 -0
  52. package/mcp-server/tools/institutionsSearchInstitutions.js.map +1 -0
  53. package/models/components/achinstitution.d.ts +40 -0
  54. package/models/components/achinstitution.d.ts.map +1 -0
  55. package/models/components/achinstitution.js +77 -0
  56. package/models/components/achinstitution.js.map +1 -0
  57. package/models/components/contact.d.ts +30 -0
  58. package/models/components/contact.d.ts.map +1 -0
  59. package/models/components/contact.js +70 -0
  60. package/models/components/contact.js.map +1 -0
  61. package/models/components/index.d.ts +7 -0
  62. package/models/components/index.d.ts.map +1 -1
  63. package/models/components/index.js +7 -0
  64. package/models/components/index.js.map +1 -1
  65. package/models/components/institutionssearchresponse.d.ts +36 -0
  66. package/models/components/institutionssearchresponse.d.ts.map +1 -0
  67. package/models/components/institutionssearchresponse.js +76 -0
  68. package/models/components/institutionssearchresponse.js.map +1 -0
  69. package/models/components/rtpinstitution.d.ts +37 -0
  70. package/models/components/rtpinstitution.d.ts.map +1 -0
  71. package/models/components/rtpinstitution.js +74 -0
  72. package/models/components/rtpinstitution.js.map +1 -0
  73. package/models/components/rtpservices.d.ts +37 -0
  74. package/models/components/rtpservices.d.ts.map +1 -0
  75. package/models/components/rtpservices.js +71 -0
  76. package/models/components/rtpservices.js.map +1 -0
  77. package/models/components/wireinstitution.d.ts +40 -0
  78. package/models/components/wireinstitution.d.ts.map +1 -0
  79. package/models/components/wireinstitution.js +77 -0
  80. package/models/components/wireinstitution.js.map +1 -0
  81. package/models/components/wireservices.d.ts +42 -0
  82. package/models/components/wireservices.d.ts.map +1 -0
  83. package/models/components/wireservices.js +73 -0
  84. package/models/components/wireservices.js.map +1 -0
  85. package/models/errors/apierror.d.ts +14 -2
  86. package/models/errors/apierror.d.ts.map +1 -1
  87. package/models/errors/apierror.js +1 -1
  88. package/models/errors/apierror.js.map +1 -1
  89. package/models/operations/index.d.ts +1 -0
  90. package/models/operations/index.d.ts.map +1 -1
  91. package/models/operations/index.js +1 -0
  92. package/models/operations/index.js.map +1 -1
  93. package/models/operations/searchinstitutions.d.ts +112 -0
  94. package/models/operations/searchinstitutions.d.ts.map +1 -0
  95. package/models/operations/searchinstitutions.js +149 -0
  96. package/models/operations/searchinstitutions.js.map +1 -0
  97. package/package.json +1 -1
  98. package/sdk/institutions.d.ts +11 -0
  99. package/sdk/institutions.d.ts.map +1 -1
  100. package/sdk/institutions.js +14 -0
  101. package/sdk/institutions.js.map +1 -1
  102. package/src/funcs/institutionsSearchInstitutions.ts +179 -0
  103. package/src/lib/config.ts +3 -3
  104. package/src/mcp-server/mcp-server.ts +1 -1
  105. package/src/mcp-server/server.ts +3 -1
  106. package/src/mcp-server/tools/institutionsSearchInstitutions.ts +43 -0
  107. package/src/models/components/achinstitution.ts +89 -0
  108. package/src/models/components/contact.ts +65 -0
  109. package/src/models/components/index.ts +7 -0
  110. package/src/models/components/institutionssearchresponse.ts +92 -0
  111. package/src/models/components/rtpinstitution.ts +79 -0
  112. package/src/models/components/rtpservices.ts +72 -0
  113. package/src/models/components/wireinstitution.ts +91 -0
  114. package/src/models/components/wireservices.ts +79 -0
  115. package/src/models/errors/apierror.ts +18 -3
  116. package/src/models/operations/index.ts +1 -0
  117. package/src/models/operations/searchinstitutions.ts +236 -0
  118. package/src/sdk/institutions.ts +22 -0
@@ -90,6 +90,7 @@ you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
90
90
  import { Moov } from "@moovio/sdk";
91
91
 
92
92
  const moov = new Moov({
93
+ xMoovVersion: "v2024.01.00",
93
94
  security: {
94
95
  username: "",
95
96
  password: "",
@@ -103,7 +104,6 @@ async function run() {
103
104
  count: 20,
104
105
  });
105
106
 
106
- // Handle the result
107
107
  console.log(result);
108
108
  }
109
109
 
@@ -121,6 +121,7 @@ import { disputesList } from "@moovio/sdk/funcs/disputesList.js";
121
121
  // Use `MoovCore` for best tree-shaking performance.
122
122
  // You can create one instance of it to use across an application.
123
123
  const moov = new MoovCore({
124
+ xMoovVersion: "v2024.01.00",
124
125
  security: {
125
126
  username: "",
126
127
  password: "",
@@ -133,15 +134,12 @@ async function run() {
133
134
  skip: 60,
134
135
  count: 20,
135
136
  });
136
-
137
- if (!res.ok) {
138
- throw res.error;
137
+ if (res.ok) {
138
+ const { value: result } = res;
139
+ console.log(result);
140
+ } else {
141
+ console.log("disputesList failed:", res.error);
139
142
  }
140
-
141
- const { value: result } = res;
142
-
143
- // Handle the result
144
- console.log(result);
145
143
  }
146
144
 
147
145
  run();
@@ -182,6 +180,7 @@ you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
182
180
  import { Moov } from "@moovio/sdk";
183
181
 
184
182
  const moov = new Moov({
183
+ xMoovVersion: "v2024.01.00",
185
184
  security: {
186
185
  username: "",
187
186
  password: "",
@@ -194,7 +193,6 @@ async function run() {
194
193
  disputeID: "4be10af9-ddeb-428b-8333-7430afce142f",
195
194
  });
196
195
 
197
- // Handle the result
198
196
  console.log(result);
199
197
  }
200
198
 
@@ -212,6 +210,7 @@ import { disputesGet } from "@moovio/sdk/funcs/disputesGet.js";
212
210
  // Use `MoovCore` for best tree-shaking performance.
213
211
  // You can create one instance of it to use across an application.
214
212
  const moov = new MoovCore({
213
+ xMoovVersion: "v2024.01.00",
215
214
  security: {
216
215
  username: "",
217
216
  password: "",
@@ -223,15 +222,12 @@ async function run() {
223
222
  accountID: "44d3e9dd-7128-4b00-8cd9-09d3242e5bcf",
224
223
  disputeID: "4be10af9-ddeb-428b-8333-7430afce142f",
225
224
  });
226
-
227
- if (!res.ok) {
228
- throw res.error;
225
+ if (res.ok) {
226
+ const { value: result } = res;
227
+ console.log(result);
228
+ } else {
229
+ console.log("disputesGet failed:", res.error);
229
230
  }
230
-
231
- const { value: result } = res;
232
-
233
- // Handle the result
234
- console.log(result);
235
231
  }
236
232
 
237
233
  run();
@@ -271,6 +267,7 @@ you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
271
267
  import { Moov } from "@moovio/sdk";
272
268
 
273
269
  const moov = new Moov({
270
+ xMoovVersion: "v2024.01.00",
274
271
  security: {
275
272
  username: "",
276
273
  password: "",
@@ -283,7 +280,6 @@ async function run() {
283
280
  disputeID: "b7cf0931-5fbb-4e79-94cb-96291b634f63",
284
281
  });
285
282
 
286
- // Handle the result
287
283
  console.log(result);
288
284
  }
289
285
 
@@ -301,6 +297,7 @@ import { disputesAccept } from "@moovio/sdk/funcs/disputesAccept.js";
301
297
  // Use `MoovCore` for best tree-shaking performance.
302
298
  // You can create one instance of it to use across an application.
303
299
  const moov = new MoovCore({
300
+ xMoovVersion: "v2024.01.00",
304
301
  security: {
305
302
  username: "",
306
303
  password: "",
@@ -312,15 +309,12 @@ async function run() {
312
309
  accountID: "ef028cdd-49e0-4cd8-9c89-6673e28e226e",
313
310
  disputeID: "b7cf0931-5fbb-4e79-94cb-96291b634f63",
314
311
  });
315
-
316
- if (!res.ok) {
317
- throw res.error;
312
+ if (res.ok) {
313
+ const { value: result } = res;
314
+ console.log(result);
315
+ } else {
316
+ console.log("disputesAccept failed:", res.error);
318
317
  }
319
-
320
- const { value: result } = res;
321
-
322
- // Handle the result
323
- console.log(result);
324
318
  }
325
319
 
326
320
  run();
@@ -361,6 +355,7 @@ you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
361
355
  import { Moov } from "@moovio/sdk";
362
356
 
363
357
  const moov = new Moov({
358
+ xMoovVersion: "v2024.01.00",
364
359
  security: {
365
360
  username: "",
366
361
  password: "",
@@ -373,7 +368,6 @@ async function run() {
373
368
  disputeID: "f1c23432-4110-4981-9b72-b98df94bb61c",
374
369
  });
375
370
 
376
- // Handle the result
377
371
  console.log(result);
378
372
  }
379
373
 
@@ -391,6 +385,7 @@ import { disputesListEvidence } from "@moovio/sdk/funcs/disputesListEvidence.js"
391
385
  // Use `MoovCore` for best tree-shaking performance.
392
386
  // You can create one instance of it to use across an application.
393
387
  const moov = new MoovCore({
388
+ xMoovVersion: "v2024.01.00",
394
389
  security: {
395
390
  username: "",
396
391
  password: "",
@@ -402,15 +397,12 @@ async function run() {
402
397
  accountID: "efc12040-97af-4720-91c5-14cd1a83877b",
403
398
  disputeID: "f1c23432-4110-4981-9b72-b98df94bb61c",
404
399
  });
405
-
406
- if (!res.ok) {
407
- throw res.error;
400
+ if (res.ok) {
401
+ const { value: result } = res;
402
+ console.log(result);
403
+ } else {
404
+ console.log("disputesListEvidence failed:", res.error);
408
405
  }
409
-
410
- const { value: result } = res;
411
-
412
- // Handle the result
413
- console.log(result);
414
406
  }
415
407
 
416
408
  run();
@@ -451,6 +443,7 @@ import { Moov } from "@moovio/sdk";
451
443
  import { openAsBlob } from "node:fs";
452
444
 
453
445
  const moov = new Moov({
446
+ xMoovVersion: "v2024.01.00",
454
447
  security: {
455
448
  username: "",
456
449
  password: "",
@@ -467,7 +460,6 @@ async function run() {
467
460
  },
468
461
  });
469
462
 
470
- // Handle the result
471
463
  console.log(result);
472
464
  }
473
465
 
@@ -486,6 +478,7 @@ import { openAsBlob } from "node:fs";
486
478
  // Use `MoovCore` for best tree-shaking performance.
487
479
  // You can create one instance of it to use across an application.
488
480
  const moov = new MoovCore({
481
+ xMoovVersion: "v2024.01.00",
489
482
  security: {
490
483
  username: "",
491
484
  password: "",
@@ -501,15 +494,12 @@ async function run() {
501
494
  evidenceType: "cancelation-policy",
502
495
  },
503
496
  });
504
-
505
- if (!res.ok) {
506
- throw res.error;
497
+ if (res.ok) {
498
+ const { value: result } = res;
499
+ console.log(result);
500
+ } else {
501
+ console.log("disputesUploadEvidenceFile failed:", res.error);
507
502
  }
508
-
509
- const { value: result } = res;
510
-
511
- // Handle the result
512
- console.log(result);
513
503
  }
514
504
 
515
505
  run();
@@ -551,6 +541,7 @@ you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
551
541
  import { Moov } from "@moovio/sdk";
552
542
 
553
543
  const moov = new Moov({
544
+ xMoovVersion: "v2024.01.00",
554
545
  security: {
555
546
  username: "",
556
547
  password: "",
@@ -567,7 +558,6 @@ async function run() {
567
558
  },
568
559
  });
569
560
 
570
- // Handle the result
571
561
  console.log(result);
572
562
  }
573
563
 
@@ -585,6 +575,7 @@ import { disputesUploadEvidenceText } from "@moovio/sdk/funcs/disputesUploadEvid
585
575
  // Use `MoovCore` for best tree-shaking performance.
586
576
  // You can create one instance of it to use across an application.
587
577
  const moov = new MoovCore({
578
+ xMoovVersion: "v2024.01.00",
588
579
  security: {
589
580
  username: "",
590
581
  password: "",
@@ -600,15 +591,12 @@ async function run() {
600
591
  evidenceType: "generic-evidence",
601
592
  },
602
593
  });
603
-
604
- if (!res.ok) {
605
- throw res.error;
594
+ if (res.ok) {
595
+ const { value: result } = res;
596
+ console.log(result);
597
+ } else {
598
+ console.log("disputesUploadEvidenceText failed:", res.error);
606
599
  }
607
-
608
- const { value: result } = res;
609
-
610
- // Handle the result
611
- console.log(result);
612
600
  }
613
601
 
614
602
  run();
@@ -652,6 +640,7 @@ you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
652
640
  import { Moov } from "@moovio/sdk";
653
641
 
654
642
  const moov = new Moov({
643
+ xMoovVersion: "v2024.01.00",
655
644
  security: {
656
645
  username: "",
657
646
  password: "",
@@ -664,7 +653,6 @@ async function run() {
664
653
  disputeID: "8c5d6d6e-420a-49c8-b7c3-d4b5d1bbd415",
665
654
  });
666
655
 
667
- // Handle the result
668
656
  console.log(result);
669
657
  }
670
658
 
@@ -682,6 +670,7 @@ import { disputesSubmitEvidence } from "@moovio/sdk/funcs/disputesSubmitEvidence
682
670
  // Use `MoovCore` for best tree-shaking performance.
683
671
  // You can create one instance of it to use across an application.
684
672
  const moov = new MoovCore({
673
+ xMoovVersion: "v2024.01.00",
685
674
  security: {
686
675
  username: "",
687
676
  password: "",
@@ -693,15 +682,12 @@ async function run() {
693
682
  accountID: "01f79d04-f2de-42de-9e37-23c751edecb4",
694
683
  disputeID: "8c5d6d6e-420a-49c8-b7c3-d4b5d1bbd415",
695
684
  });
696
-
697
- if (!res.ok) {
698
- throw res.error;
685
+ if (res.ok) {
686
+ const { value: result } = res;
687
+ console.log(result);
688
+ } else {
689
+ console.log("disputesSubmitEvidence failed:", res.error);
699
690
  }
700
-
701
- const { value: result } = res;
702
-
703
- // Handle the result
704
- console.log(result);
705
691
  }
706
692
 
707
693
  run();
@@ -742,6 +728,7 @@ you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
742
728
  import { Moov } from "@moovio/sdk";
743
729
 
744
730
  const moov = new Moov({
731
+ xMoovVersion: "v2024.01.00",
745
732
  security: {
746
733
  username: "",
747
734
  password: "",
@@ -755,7 +742,6 @@ async function run() {
755
742
  evidenceID: "08c4d04c-1296-4bfd-bafb-bee195f85785",
756
743
  });
757
744
 
758
- // Handle the result
759
745
  console.log(result);
760
746
  }
761
747
 
@@ -773,6 +759,7 @@ import { disputesGetEvidence } from "@moovio/sdk/funcs/disputesGetEvidence.js";
773
759
  // Use `MoovCore` for best tree-shaking performance.
774
760
  // You can create one instance of it to use across an application.
775
761
  const moov = new MoovCore({
762
+ xMoovVersion: "v2024.01.00",
776
763
  security: {
777
764
  username: "",
778
765
  password: "",
@@ -785,15 +772,12 @@ async function run() {
785
772
  disputeID: "4fc54609-7e6b-4a75-b8b3-7ffbeb138e22",
786
773
  evidenceID: "08c4d04c-1296-4bfd-bafb-bee195f85785",
787
774
  });
788
-
789
- if (!res.ok) {
790
- throw res.error;
775
+ if (res.ok) {
776
+ const { value: result } = res;
777
+ console.log(result);
778
+ } else {
779
+ console.log("disputesGetEvidence failed:", res.error);
791
780
  }
792
-
793
- const { value: result } = res;
794
-
795
- // Handle the result
796
- console.log(result);
797
781
  }
798
782
 
799
783
  run();
@@ -833,6 +817,7 @@ you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
833
817
  import { Moov } from "@moovio/sdk";
834
818
 
835
819
  const moov = new Moov({
820
+ xMoovVersion: "v2024.01.00",
836
821
  security: {
837
822
  username: "",
838
823
  password: "",
@@ -847,7 +832,6 @@ async function run() {
847
832
  updateEvidence: {},
848
833
  });
849
834
 
850
- // Handle the result
851
835
  console.log(result);
852
836
  }
853
837
 
@@ -865,6 +849,7 @@ import { disputesUpdateEvidence } from "@moovio/sdk/funcs/disputesUpdateEvidence
865
849
  // Use `MoovCore` for best tree-shaking performance.
866
850
  // You can create one instance of it to use across an application.
867
851
  const moov = new MoovCore({
852
+ xMoovVersion: "v2024.01.00",
868
853
  security: {
869
854
  username: "",
870
855
  password: "",
@@ -878,15 +863,12 @@ async function run() {
878
863
  evidenceID: "fd46ede8-5d47-4e5e-91a7-9af8162f76b2",
879
864
  updateEvidence: {},
880
865
  });
881
-
882
- if (!res.ok) {
883
- throw res.error;
866
+ if (res.ok) {
867
+ const { value: result } = res;
868
+ console.log(result);
869
+ } else {
870
+ console.log("disputesUpdateEvidence failed:", res.error);
884
871
  }
885
-
886
- const { value: result } = res;
887
-
888
- // Handle the result
889
- console.log(result);
890
872
  }
891
873
 
892
874
  run();
@@ -927,6 +909,7 @@ you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
927
909
  import { Moov } from "@moovio/sdk";
928
910
 
929
911
  const moov = new Moov({
912
+ xMoovVersion: "v2024.01.00",
930
913
  security: {
931
914
  username: "",
932
915
  password: "",
@@ -940,7 +923,6 @@ async function run() {
940
923
  evidenceID: "ea10cba6-166f-464d-b57b-30d995d44b98",
941
924
  });
942
925
 
943
- // Handle the result
944
926
  console.log(result);
945
927
  }
946
928
 
@@ -958,6 +940,7 @@ import { disputesDeleteEvidence } from "@moovio/sdk/funcs/disputesDeleteEvidence
958
940
  // Use `MoovCore` for best tree-shaking performance.
959
941
  // You can create one instance of it to use across an application.
960
942
  const moov = new MoovCore({
943
+ xMoovVersion: "v2024.01.00",
961
944
  security: {
962
945
  username: "",
963
946
  password: "",
@@ -970,15 +953,12 @@ async function run() {
970
953
  disputeID: "1759456d-80e3-4428-a08d-302c8877b418",
971
954
  evidenceID: "ea10cba6-166f-464d-b57b-30d995d44b98",
972
955
  });
973
-
974
- if (!res.ok) {
975
- throw res.error;
956
+ if (res.ok) {
957
+ const { value: result } = res;
958
+ console.log(result);
959
+ } else {
960
+ console.log("disputesDeleteEvidence failed:", res.error);
976
961
  }
977
-
978
- const { value: result } = res;
979
-
980
- // Handle the result
981
- console.log(result);
982
962
  }
983
963
 
984
964
  run();
@@ -1019,6 +999,7 @@ you'll need to specify the `/accounts/{accountID}/transfers.read` scope.
1019
999
  import { Moov } from "@moovio/sdk";
1020
1000
 
1021
1001
  const moov = new Moov({
1002
+ xMoovVersion: "v2024.01.00",
1022
1003
  security: {
1023
1004
  username: "",
1024
1005
  password: "",
@@ -1032,7 +1013,6 @@ async function run() {
1032
1013
  evidenceID: "3d195b92-798e-4ea4-9347-1c86efacbf38",
1033
1014
  });
1034
1015
 
1035
- // Handle the result
1036
1016
  console.log(result);
1037
1017
  }
1038
1018
 
@@ -1050,6 +1030,7 @@ import { disputesGetEvidenceData } from "@moovio/sdk/funcs/disputesGetEvidenceDa
1050
1030
  // Use `MoovCore` for best tree-shaking performance.
1051
1031
  // You can create one instance of it to use across an application.
1052
1032
  const moov = new MoovCore({
1033
+ xMoovVersion: "v2024.01.00",
1053
1034
  security: {
1054
1035
  username: "",
1055
1036
  password: "",
@@ -1062,15 +1043,12 @@ async function run() {
1062
1043
  disputeID: "b7e45862-1e55-4ba0-842f-9fce30c0228b",
1063
1044
  evidenceID: "3d195b92-798e-4ea4-9347-1c86efacbf38",
1064
1045
  });
1065
-
1066
- if (!res.ok) {
1067
- throw res.error;
1046
+ if (res.ok) {
1047
+ const { value: result } = res;
1048
+ console.log(result);
1049
+ } else {
1050
+ console.log("disputesGetEvidenceData failed:", res.error);
1068
1051
  }
1069
-
1070
- const { value: result } = res;
1071
-
1072
- // Handle the result
1073
- console.log(result);
1074
1052
  }
1075
1053
 
1076
1054
  run();
@@ -24,6 +24,7 @@ you'll need to specify the `/ping.read` scope.
24
24
  import { Moov } from "@moovio/sdk";
25
25
 
26
26
  const moov = new Moov({
27
+ xMoovVersion: "v2024.01.00",
27
28
  security: {
28
29
  username: "",
29
30
  password: "",
@@ -35,7 +36,6 @@ async function run() {
35
36
  token: "eyJhbGciOiJFQ0RILUVTK0EyNTZLVyIsImVuYyI6IkEyNTZHQ00iLCJlcGsiOnsia3R5IjoiRUMiLCJjcnYiOiJQLTUyMSIsIngiOiJBS0NYVDM1WVdvTm8wbzExNy1SU0dqUGg3alN1NjFmLUhnYkx1dW0xVG1ueTRlcW5yX2hyU0hpY0w1d3gwODRCWDBRZjVTdEtkRUoydzY2ZUJqWHprRV9OIiwieSI6IkFIMEJfT2RaYTQtbG43dGJ4M3VBdlc1NDNQRE9HUXBCTDloRFFNWjlTQXNfOW05UWN3dnhRd1hrb1VrM3VzT1FnVV9ySVFrNFRoZ1NTUzV4UlhKcm5ZaTkifSwia2lkIjoiYmRvV3pLekpKUGw0TVFIaENDa05WYTZlZ1dmYi02V1haSjZKTFZqQ0hWMD0ifQ.HalyoHsfufBJEODd2lD9ThQvvVWw3b2kgWDLHGxmHhMv8rODyLL_Ug.rpQP178t8Ed_pUU2.Sn9UFeVoegAxiMUv11q7l3M0y9YHSLYi2n_JB7n7Pc777_47-icfaxstJemT0IC81w.akkq1EBxzWkBr4vEomSpWA",
36
37
  });
37
38
 
38
- // Handle the result
39
39
  console.log(result);
40
40
  }
41
41
 
@@ -53,6 +53,7 @@ import { endToEndEncryptionTestEncryptedToken } from "@moovio/sdk/funcs/endToEnd
53
53
  // Use `MoovCore` for best tree-shaking performance.
54
54
  // You can create one instance of it to use across an application.
55
55
  const moov = new MoovCore({
56
+ xMoovVersion: "v2024.01.00",
56
57
  security: {
57
58
  username: "",
58
59
  password: "",
@@ -63,15 +64,12 @@ async function run() {
63
64
  const res = await endToEndEncryptionTestEncryptedToken(moov, {
64
65
  token: "eyJhbGciOiJFQ0RILUVTK0EyNTZLVyIsImVuYyI6IkEyNTZHQ00iLCJlcGsiOnsia3R5IjoiRUMiLCJjcnYiOiJQLTUyMSIsIngiOiJBS0NYVDM1WVdvTm8wbzExNy1SU0dqUGg3alN1NjFmLUhnYkx1dW0xVG1ueTRlcW5yX2hyU0hpY0w1d3gwODRCWDBRZjVTdEtkRUoydzY2ZUJqWHprRV9OIiwieSI6IkFIMEJfT2RaYTQtbG43dGJ4M3VBdlc1NDNQRE9HUXBCTDloRFFNWjlTQXNfOW05UWN3dnhRd1hrb1VrM3VzT1FnVV9ySVFrNFRoZ1NTUzV4UlhKcm5ZaTkifSwia2lkIjoiYmRvV3pLekpKUGw0TVFIaENDa05WYTZlZ1dmYi02V1haSjZKTFZqQ0hWMD0ifQ.HalyoHsfufBJEODd2lD9ThQvvVWw3b2kgWDLHGxmHhMv8rODyLL_Ug.rpQP178t8Ed_pUU2.Sn9UFeVoegAxiMUv11q7l3M0y9YHSLYi2n_JB7n7Pc777_47-icfaxstJemT0IC81w.akkq1EBxzWkBr4vEomSpWA",
65
66
  });
66
-
67
- if (!res.ok) {
68
- throw res.error;
67
+ if (res.ok) {
68
+ const { value: result } = res;
69
+ console.log(result);
70
+ } else {
71
+ console.log("endToEndEncryptionTestEncryptedToken failed:", res.error);
69
72
  }
70
-
71
- const { value: result } = res;
72
-
73
- // Handle the result
74
- console.log(result);
75
73
  }
76
74
 
77
75
  run();
@@ -107,6 +105,7 @@ Generates a public key used to create a JWE token for passing secure authenticat
107
105
  import { Moov } from "@moovio/sdk";
108
106
 
109
107
  const moov = new Moov({
108
+ xMoovVersion: "v2024.01.00",
110
109
  security: {
111
110
  username: "",
112
111
  password: "",
@@ -116,7 +115,6 @@ const moov = new Moov({
116
115
  async function run() {
117
116
  const result = await moov.endToEndEncryption.generateKey({});
118
117
 
119
- // Handle the result
120
118
  console.log(result);
121
119
  }
122
120
 
@@ -134,6 +132,7 @@ import { endToEndEncryptionGenerateKey } from "@moovio/sdk/funcs/endToEndEncrypt
134
132
  // Use `MoovCore` for best tree-shaking performance.
135
133
  // You can create one instance of it to use across an application.
136
134
  const moov = new MoovCore({
135
+ xMoovVersion: "v2024.01.00",
137
136
  security: {
138
137
  username: "",
139
138
  password: "",
@@ -142,15 +141,12 @@ const moov = new MoovCore({
142
141
 
143
142
  async function run() {
144
143
  const res = await endToEndEncryptionGenerateKey(moov, {});
145
-
146
- if (!res.ok) {
147
- throw res.error;
144
+ if (res.ok) {
145
+ const { value: result } = res;
146
+ console.log(result);
147
+ } else {
148
+ console.log("endToEndEncryptionGenerateKey failed:", res.error);
148
149
  }
149
-
150
- const { value: result } = res;
151
-
152
- // Handle the result
153
- console.log(result);
154
150
  }
155
151
 
156
152
  run();
@@ -23,6 +23,7 @@ you'll need to specify the `/profile-enrichment.read` scope.
23
23
  import { Moov } from "@moovio/sdk";
24
24
 
25
25
  const moov = new Moov({
26
+ xMoovVersion: "v2024.01.00",
26
27
  security: {
27
28
  username: "",
28
29
  password: "",
@@ -34,7 +35,6 @@ async function run() {
34
35
  search: "<value>",
35
36
  });
36
37
 
37
- // Handle the result
38
38
  console.log(result);
39
39
  }
40
40
 
@@ -52,6 +52,7 @@ import { enrichedAddressGet } from "@moovio/sdk/funcs/enrichedAddressGet.js";
52
52
  // Use `MoovCore` for best tree-shaking performance.
53
53
  // You can create one instance of it to use across an application.
54
54
  const moov = new MoovCore({
55
+ xMoovVersion: "v2024.01.00",
55
56
  security: {
56
57
  username: "",
57
58
  password: "",
@@ -62,15 +63,12 @@ async function run() {
62
63
  const res = await enrichedAddressGet(moov, {
63
64
  search: "<value>",
64
65
  });
65
-
66
- if (!res.ok) {
67
- throw res.error;
66
+ if (res.ok) {
67
+ const { value: result } = res;
68
+ console.log(result);
69
+ } else {
70
+ console.log("enrichedAddressGet failed:", res.error);
68
71
  }
69
-
70
- const { value: result } = res;
71
-
72
- // Handle the result
73
- console.log(result);
74
72
  }
75
73
 
76
74
  run();
@@ -23,6 +23,7 @@ you'll need to specify the `/profile-enrichment.read` scope.
23
23
  import { Moov } from "@moovio/sdk";
24
24
 
25
25
  const moov = new Moov({
26
+ xMoovVersion: "v2024.01.00",
26
27
  security: {
27
28
  username: "",
28
29
  password: "",
@@ -34,7 +35,6 @@ async function run() {
34
35
  email: "Thaddeus.Welch@gmail.com",
35
36
  });
36
37
 
37
- // Handle the result
38
38
  console.log(result);
39
39
  }
40
40
 
@@ -52,6 +52,7 @@ import { enrichedProfileGet } from "@moovio/sdk/funcs/enrichedProfileGet.js";
52
52
  // Use `MoovCore` for best tree-shaking performance.
53
53
  // You can create one instance of it to use across an application.
54
54
  const moov = new MoovCore({
55
+ xMoovVersion: "v2024.01.00",
55
56
  security: {
56
57
  username: "",
57
58
  password: "",
@@ -62,15 +63,12 @@ async function run() {
62
63
  const res = await enrichedProfileGet(moov, {
63
64
  email: "Thaddeus.Welch@gmail.com",
64
65
  });
65
-
66
- if (!res.ok) {
67
- throw res.error;
66
+ if (res.ok) {
67
+ const { value: result } = res;
68
+ console.log(result);
69
+ } else {
70
+ console.log("enrichedProfileGet failed:", res.error);
68
71
  }
69
-
70
- const { value: result } = res;
71
-
72
- // Handle the result
73
- console.log(result);
74
72
  }
75
73
 
76
74
  run();