@moovio/sdk 0.0.0-dev.6 → 0.0.0-dev.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +95 -55
- package/bin/mcp-server.js +1202 -423
- package/bin/mcp-server.js.map +27 -11
- package/funcs/resolutionLinksCreate.d.ts +20 -0
- package/funcs/resolutionLinksCreate.d.ts.map +1 -0
- package/funcs/resolutionLinksCreate.js +145 -0
- package/funcs/resolutionLinksCreate.js.map +1 -0
- package/funcs/resolutionLinksDisable.d.ts +18 -0
- package/funcs/resolutionLinksDisable.d.ts.map +1 -0
- package/funcs/resolutionLinksDisable.js +135 -0
- package/funcs/resolutionLinksDisable.js.map +1 -0
- package/funcs/resolutionLinksGet.d.ts +17 -0
- package/funcs/resolutionLinksGet.d.ts.map +1 -0
- package/funcs/resolutionLinksGet.js +126 -0
- package/funcs/resolutionLinksGet.js.map +1 -0
- package/funcs/resolutionLinksList.d.ts +17 -0
- package/funcs/resolutionLinksList.d.ts.map +1 -0
- package/funcs/resolutionLinksList.js +125 -0
- package/funcs/resolutionLinksList.js.map +1 -0
- package/hooks/moov-version-hook.d.ts +3 -4
- package/hooks/moov-version-hook.d.ts.map +1 -1
- package/hooks/moov-version-hook.js +5 -4
- package/hooks/moov-version-hook.js.map +1 -1
- package/hooks/registration.js +1 -1
- package/hooks/registration.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +9 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/resolutionLinksCreate.d.ts +8 -0
- package/mcp-server/tools/resolutionLinksCreate.d.ts.map +1 -0
- package/mcp-server/tools/resolutionLinksCreate.js +67 -0
- package/mcp-server/tools/resolutionLinksCreate.js.map +1 -0
- package/mcp-server/tools/resolutionLinksDisable.d.ts +8 -0
- package/mcp-server/tools/resolutionLinksDisable.d.ts.map +1 -0
- package/mcp-server/tools/resolutionLinksDisable.js +64 -0
- package/mcp-server/tools/resolutionLinksDisable.js.map +1 -0
- package/mcp-server/tools/resolutionLinksGet.d.ts +8 -0
- package/mcp-server/tools/resolutionLinksGet.d.ts.map +1 -0
- package/mcp-server/tools/resolutionLinksGet.js +65 -0
- package/mcp-server/tools/resolutionLinksGet.js.map +1 -0
- package/mcp-server/tools/resolutionLinksList.d.ts +8 -0
- package/mcp-server/tools/resolutionLinksList.d.ts.map +1 -0
- package/mcp-server/tools/resolutionLinksList.js +65 -0
- package/mcp-server/tools/resolutionLinksList.js.map +1 -0
- package/models/components/createresolutionlink.d.ts +24 -0
- package/models/components/createresolutionlink.d.ts.map +1 -0
- package/models/components/createresolutionlink.js +59 -0
- package/models/components/createresolutionlink.js.map +1 -0
- package/models/components/index.d.ts +3 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +3 -0
- package/models/components/index.js.map +1 -1
- package/models/components/resolutionlink.d.ts +63 -0
- package/models/components/resolutionlink.d.ts.map +1 -0
- package/models/components/resolutionlink.js +75 -0
- package/models/components/resolutionlink.js.map +1 -0
- package/models/components/resolutionlinkrecipient.d.ts +29 -0
- package/models/components/resolutionlinkrecipient.d.ts.map +1 -0
- package/models/components/resolutionlinkrecipient.js +61 -0
- package/models/components/resolutionlinkrecipient.js.map +1 -0
- package/models/errors/createresolutionlinkerror.d.ts +45 -0
- package/models/errors/createresolutionlinkerror.d.ts.map +1 -0
- package/models/errors/createresolutionlinkerror.js +82 -0
- package/models/errors/createresolutionlinkerror.js.map +1 -0
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/operations/createresolutionlink.d.ts +66 -0
- package/models/operations/createresolutionlink.d.ts.map +1 -0
- package/models/operations/createresolutionlink.js +122 -0
- package/models/operations/createresolutionlink.js.map +1 -0
- package/models/operations/disableresolutionlink.d.ts +63 -0
- package/models/operations/disableresolutionlink.d.ts.map +1 -0
- package/models/operations/disableresolutionlink.js +109 -0
- package/models/operations/disableresolutionlink.js.map +1 -0
- package/models/operations/getresolutionlink.d.ts +66 -0
- package/models/operations/getresolutionlink.d.ts.map +1 -0
- package/models/operations/getresolutionlink.js +114 -0
- package/models/operations/getresolutionlink.js.map +1 -0
- package/models/operations/index.d.ts +4 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +4 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listresolutionlinks.d.ts +64 -0
- package/models/operations/listresolutionlinks.d.ts.map +1 -0
- package/models/operations/listresolutionlinks.js +112 -0
- package/models/operations/listresolutionlinks.js.map +1 -0
- package/package.json +1 -1
- package/sdk/resolutionlinks.d.ts +35 -0
- package/sdk/resolutionlinks.d.ts.map +1 -0
- package/sdk/resolutionlinks.js +54 -0
- package/sdk/resolutionlinks.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/resolutionLinksCreate.ts +208 -0
- package/src/funcs/resolutionLinksDisable.ts +204 -0
- package/src/funcs/resolutionLinksGet.ts +186 -0
- package/src/funcs/resolutionLinksList.ts +180 -0
- package/src/hooks/moov-version-hook.ts +10 -6
- package/src/hooks/registration.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +9 -1
- package/src/mcp-server/tools/resolutionLinksCreate.ts +41 -0
- package/src/mcp-server/tools/resolutionLinksDisable.ts +37 -0
- package/src/mcp-server/tools/resolutionLinksGet.ts +38 -0
- package/src/mcp-server/tools/resolutionLinksList.ts +38 -0
- package/src/models/components/createresolutionlink.ts +63 -0
- package/src/models/components/index.ts +3 -0
- package/src/models/components/resolutionlink.ts +110 -0
- package/src/models/components/resolutionlinkrecipient.ts +70 -0
- package/src/models/errors/createresolutionlinkerror.ts +90 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/createresolutionlink.ts +193 -0
- package/src/models/operations/disableresolutionlink.ts +178 -0
- package/src/models/operations/getresolutionlink.ts +179 -0
- package/src/models/operations/index.ts +4 -0
- package/src/models/operations/listresolutionlinks.ts +177 -0
- package/src/sdk/resolutionlinks.ts +83 -0
- package/src/sdk/sdk.ts +6 -0
package/bin/mcp-server.js
CHANGED
|
@@ -52879,17 +52879,18 @@ var init_config = __esm(() => {
|
|
|
52879
52879
|
SDK_METADATA = {
|
|
52880
52880
|
language: "typescript",
|
|
52881
52881
|
openapiDocVersion: "dev",
|
|
52882
|
-
sdkVersion: "0.0.0-dev.
|
|
52883
|
-
genVersion: "2.
|
|
52884
|
-
userAgent: "speakeasy-sdk/typescript 0.0.0-dev.
|
|
52882
|
+
sdkVersion: "0.0.0-dev.7",
|
|
52883
|
+
genVersion: "2.859.2",
|
|
52884
|
+
userAgent: "speakeasy-sdk/typescript 0.0.0-dev.7 2.859.2 dev @moovio/sdk"
|
|
52885
52885
|
};
|
|
52886
52886
|
});
|
|
52887
52887
|
|
|
52888
52888
|
// src/hooks/moov-version-hook.ts
|
|
52889
52889
|
class MoovVersionHook {
|
|
52890
|
-
|
|
52891
|
-
|
|
52892
|
-
|
|
52890
|
+
beforeRequest(_hookCtx, request) {
|
|
52891
|
+
const newRequest = new Request(request);
|
|
52892
|
+
newRequest.headers.set("X-Moov-Version", SDK_METADATA.openapiDocVersion);
|
|
52893
|
+
return newRequest;
|
|
52893
52894
|
}
|
|
52894
52895
|
}
|
|
52895
52896
|
var init_moov_version_hook = __esm(() => {
|
|
@@ -52899,7 +52900,7 @@ var init_moov_version_hook = __esm(() => {
|
|
|
52899
52900
|
// src/hooks/registration.ts
|
|
52900
52901
|
function initHooks(hooks) {
|
|
52901
52902
|
const versionHook = new MoovVersionHook;
|
|
52902
|
-
hooks.
|
|
52903
|
+
hooks.registerBeforeRequestHook(versionHook);
|
|
52903
52904
|
}
|
|
52904
52905
|
var init_registration = __esm(() => {
|
|
52905
52906
|
init_moov_version_hook();
|
|
@@ -62345,6 +62346,34 @@ var init_createrepresentative = __esm(() => {
|
|
|
62345
62346
|
});
|
|
62346
62347
|
});
|
|
62347
62348
|
|
|
62349
|
+
// src/models/components/resolutionlinkrecipient.ts
|
|
62350
|
+
var ResolutionLinkRecipient$inboundSchema, ResolutionLinkRecipient$outboundSchema;
|
|
62351
|
+
var init_resolutionlinkrecipient = __esm(() => {
|
|
62352
|
+
init_esm();
|
|
62353
|
+
init_phonenumber();
|
|
62354
|
+
ResolutionLinkRecipient$inboundSchema = objectType({
|
|
62355
|
+
email: stringType().optional(),
|
|
62356
|
+
phone: PhoneNumber$inboundSchema.optional()
|
|
62357
|
+
});
|
|
62358
|
+
ResolutionLinkRecipient$outboundSchema = objectType({
|
|
62359
|
+
email: stringType().optional(),
|
|
62360
|
+
phone: PhoneNumber$outboundSchema.optional()
|
|
62361
|
+
});
|
|
62362
|
+
});
|
|
62363
|
+
|
|
62364
|
+
// src/models/components/createresolutionlink.ts
|
|
62365
|
+
var CreateResolutionLink$inboundSchema, CreateResolutionLink$outboundSchema;
|
|
62366
|
+
var init_createresolutionlink = __esm(() => {
|
|
62367
|
+
init_esm();
|
|
62368
|
+
init_resolutionlinkrecipient();
|
|
62369
|
+
CreateResolutionLink$inboundSchema = objectType({
|
|
62370
|
+
recipient: ResolutionLinkRecipient$inboundSchema
|
|
62371
|
+
});
|
|
62372
|
+
CreateResolutionLink$outboundSchema = objectType({
|
|
62373
|
+
recipient: ResolutionLinkRecipient$outboundSchema
|
|
62374
|
+
});
|
|
62375
|
+
});
|
|
62376
|
+
|
|
62348
62377
|
// src/models/components/createreversal.ts
|
|
62349
62378
|
var CreateReversal$inboundSchema, CreateReversal$outboundSchema;
|
|
62350
62379
|
var init_createreversal = __esm(() => {
|
|
@@ -66505,6 +66534,34 @@ var init_residual = __esm(() => {
|
|
|
66505
66534
|
});
|
|
66506
66535
|
});
|
|
66507
66536
|
|
|
66537
|
+
// src/models/components/resolutionlink.ts
|
|
66538
|
+
var ResolutionLink$inboundSchema, ResolutionLink$outboundSchema;
|
|
66539
|
+
var init_resolutionlink = __esm(() => {
|
|
66540
|
+
init_esm();
|
|
66541
|
+
ResolutionLink$inboundSchema = objectType({
|
|
66542
|
+
code: stringType(),
|
|
66543
|
+
accountID: stringType(),
|
|
66544
|
+
partnerAccountID: stringType(),
|
|
66545
|
+
recipient: stringType(),
|
|
66546
|
+
url: stringType(),
|
|
66547
|
+
createdOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
66548
|
+
updatedOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
66549
|
+
disabledOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
|
|
66550
|
+
expiresOn: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
|
|
66551
|
+
});
|
|
66552
|
+
ResolutionLink$outboundSchema = objectType({
|
|
66553
|
+
code: stringType(),
|
|
66554
|
+
accountID: stringType(),
|
|
66555
|
+
partnerAccountID: stringType(),
|
|
66556
|
+
recipient: stringType(),
|
|
66557
|
+
url: stringType(),
|
|
66558
|
+
createdOn: dateType().transform((v2) => v2.toISOString()),
|
|
66559
|
+
updatedOn: dateType().transform((v2) => v2.toISOString()),
|
|
66560
|
+
disabledOn: dateType().transform((v2) => v2.toISOString()).optional(),
|
|
66561
|
+
expiresOn: dateType().transform((v2) => v2.toISOString())
|
|
66562
|
+
});
|
|
66563
|
+
});
|
|
66564
|
+
|
|
66508
66565
|
// src/models/components/reversedwithcancellation.ts
|
|
66509
66566
|
var ReversedWithCancellation$inboundSchema, ReversedWithCancellation$outboundSchema;
|
|
66510
66567
|
var init_reversedwithcancellation = __esm(() => {
|
|
@@ -69051,6 +69108,7 @@ var init_components = __esm(() => {
|
|
|
69051
69108
|
init_createrefund();
|
|
69052
69109
|
init_createrefundresponse();
|
|
69053
69110
|
init_createrepresentative();
|
|
69111
|
+
init_createresolutionlink();
|
|
69054
69112
|
init_createreversal();
|
|
69055
69113
|
init_createruntransfer();
|
|
69056
69114
|
init_createscheduledtransferlineitem();
|
|
@@ -69292,6 +69350,8 @@ var init_components = __esm(() => {
|
|
|
69292
69350
|
init_requirementerrorcode();
|
|
69293
69351
|
init_requirementid();
|
|
69294
69352
|
init_residual();
|
|
69353
|
+
init_resolutionlink();
|
|
69354
|
+
init_resolutionlinkrecipient();
|
|
69295
69355
|
init_returnpolicytype();
|
|
69296
69356
|
init_reversal();
|
|
69297
69357
|
init_reversedwithcancellation();
|
|
@@ -69850,6 +69910,45 @@ var init_createpaymentlinkerror = __esm(() => {
|
|
|
69850
69910
|
}));
|
|
69851
69911
|
});
|
|
69852
69912
|
|
|
69913
|
+
// src/models/errors/createresolutionlinkerror.ts
|
|
69914
|
+
var CreateResolutionLinkError, CreateResolutionLinkError$inboundSchema, CreateResolutionLinkError$outboundSchema;
|
|
69915
|
+
var init_createresolutionlinkerror = __esm(() => {
|
|
69916
|
+
init_esm();
|
|
69917
|
+
init_mooverror();
|
|
69918
|
+
CreateResolutionLinkError = class CreateResolutionLinkError extends MoovError {
|
|
69919
|
+
email;
|
|
69920
|
+
phone;
|
|
69921
|
+
data$;
|
|
69922
|
+
constructor(err, httpMeta) {
|
|
69923
|
+
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
69924
|
+
super(message, httpMeta);
|
|
69925
|
+
this.data$ = err;
|
|
69926
|
+
if (err.email != null)
|
|
69927
|
+
this.email = err.email;
|
|
69928
|
+
if (err.phone != null)
|
|
69929
|
+
this.phone = err.phone;
|
|
69930
|
+
this.name = "CreateResolutionLinkError";
|
|
69931
|
+
}
|
|
69932
|
+
};
|
|
69933
|
+
CreateResolutionLinkError$inboundSchema = objectType({
|
|
69934
|
+
email: stringType().optional(),
|
|
69935
|
+
phone: stringType().optional(),
|
|
69936
|
+
request$: instanceOfType(Request),
|
|
69937
|
+
response$: instanceOfType(Response),
|
|
69938
|
+
body$: stringType()
|
|
69939
|
+
}).transform((v2) => {
|
|
69940
|
+
return new CreateResolutionLinkError(v2, {
|
|
69941
|
+
request: v2.request$,
|
|
69942
|
+
response: v2.response$,
|
|
69943
|
+
body: v2.body$
|
|
69944
|
+
});
|
|
69945
|
+
});
|
|
69946
|
+
CreateResolutionLinkError$outboundSchema = instanceOfType(CreateResolutionLinkError).transform((v2) => v2.data$).pipe(objectType({
|
|
69947
|
+
email: stringType().optional(),
|
|
69948
|
+
phone: stringType().optional()
|
|
69949
|
+
}));
|
|
69950
|
+
});
|
|
69951
|
+
|
|
69853
69952
|
// src/models/errors/createsweepconfigerror.ts
|
|
69854
69953
|
var CreateSweepConfigError, CreateSweepConfigError$inboundSchema, CreateSweepConfigError$outboundSchema;
|
|
69855
69954
|
var init_createsweepconfigerror = __esm(() => {
|
|
@@ -72274,6 +72373,7 @@ var init_errors4 = __esm(() => {
|
|
|
72274
72373
|
init_createinvoiceerror();
|
|
72275
72374
|
init_createinvoicepaymenterror();
|
|
72276
72375
|
init_createpaymentlinkerror();
|
|
72376
|
+
init_createresolutionlinkerror();
|
|
72277
72377
|
init_createsweepconfigerror();
|
|
72278
72378
|
init_createticketerror();
|
|
72279
72379
|
init_createwalletvalidationerror();
|
|
@@ -73295,6 +73395,62 @@ var init_createrepresentative2 = __esm(() => {
|
|
|
73295
73395
|
});
|
|
73296
73396
|
});
|
|
73297
73397
|
|
|
73398
|
+
// src/models/operations/createresolutionlink.ts
|
|
73399
|
+
var CreateResolutionLinkGlobals$inboundSchema, CreateResolutionLinkGlobals$outboundSchema, CreateResolutionLinkRequest$inboundSchema, CreateResolutionLinkRequest$outboundSchema, CreateResolutionLinkResponse$inboundSchema, CreateResolutionLinkResponse$outboundSchema;
|
|
73400
|
+
var init_createresolutionlink2 = __esm(() => {
|
|
73401
|
+
init_esm();
|
|
73402
|
+
init_primitives();
|
|
73403
|
+
init_components();
|
|
73404
|
+
CreateResolutionLinkGlobals$inboundSchema = objectType({
|
|
73405
|
+
"X-Moov-Version": stringType().optional()
|
|
73406
|
+
}).transform((v2) => {
|
|
73407
|
+
return remap(v2, {
|
|
73408
|
+
"X-Moov-Version": "xMoovVersion"
|
|
73409
|
+
});
|
|
73410
|
+
});
|
|
73411
|
+
CreateResolutionLinkGlobals$outboundSchema = objectType({
|
|
73412
|
+
xMoovVersion: stringType().optional()
|
|
73413
|
+
}).transform((v2) => {
|
|
73414
|
+
return remap(v2, {
|
|
73415
|
+
xMoovVersion: "X-Moov-Version"
|
|
73416
|
+
});
|
|
73417
|
+
});
|
|
73418
|
+
CreateResolutionLinkRequest$inboundSchema = objectType({
|
|
73419
|
+
accountID: stringType(),
|
|
73420
|
+
CreateResolutionLink: CreateResolutionLink$inboundSchema
|
|
73421
|
+
}).transform((v2) => {
|
|
73422
|
+
return remap(v2, {
|
|
73423
|
+
CreateResolutionLink: "createResolutionLink"
|
|
73424
|
+
});
|
|
73425
|
+
});
|
|
73426
|
+
CreateResolutionLinkRequest$outboundSchema = objectType({
|
|
73427
|
+
accountID: stringType(),
|
|
73428
|
+
createResolutionLink: CreateResolutionLink$outboundSchema
|
|
73429
|
+
}).transform((v2) => {
|
|
73430
|
+
return remap(v2, {
|
|
73431
|
+
createResolutionLink: "CreateResolutionLink"
|
|
73432
|
+
});
|
|
73433
|
+
});
|
|
73434
|
+
CreateResolutionLinkResponse$inboundSchema = objectType({
|
|
73435
|
+
Headers: recordType(arrayType(stringType())).default({}),
|
|
73436
|
+
Result: ResolutionLink$inboundSchema
|
|
73437
|
+
}).transform((v2) => {
|
|
73438
|
+
return remap(v2, {
|
|
73439
|
+
Headers: "headers",
|
|
73440
|
+
Result: "result"
|
|
73441
|
+
});
|
|
73442
|
+
});
|
|
73443
|
+
CreateResolutionLinkResponse$outboundSchema = objectType({
|
|
73444
|
+
headers: recordType(arrayType(stringType())),
|
|
73445
|
+
result: ResolutionLink$outboundSchema
|
|
73446
|
+
}).transform((v2) => {
|
|
73447
|
+
return remap(v2, {
|
|
73448
|
+
headers: "Headers",
|
|
73449
|
+
result: "Result"
|
|
73450
|
+
});
|
|
73451
|
+
});
|
|
73452
|
+
});
|
|
73453
|
+
|
|
73298
73454
|
// src/models/operations/createreversal.ts
|
|
73299
73455
|
var CreateReversalGlobals$inboundSchema, CreateReversalGlobals$outboundSchema, CreateReversalRequest$inboundSchema, CreateReversalRequest$outboundSchema, CreateReversalResponse$inboundSchema, CreateReversalResponse$outboundSchema;
|
|
73300
73456
|
var init_createreversal2 = __esm(() => {
|
|
@@ -74286,6 +74442,49 @@ var init_disableproduct = __esm(() => {
|
|
|
74286
74442
|
});
|
|
74287
74443
|
});
|
|
74288
74444
|
|
|
74445
|
+
// src/models/operations/disableresolutionlink.ts
|
|
74446
|
+
var DisableResolutionLinkGlobals$inboundSchema, DisableResolutionLinkGlobals$outboundSchema, DisableResolutionLinkRequest$inboundSchema, DisableResolutionLinkRequest$outboundSchema, DisableResolutionLinkResponse$inboundSchema, DisableResolutionLinkResponse$outboundSchema;
|
|
74447
|
+
var init_disableresolutionlink = __esm(() => {
|
|
74448
|
+
init_esm();
|
|
74449
|
+
init_primitives();
|
|
74450
|
+
DisableResolutionLinkGlobals$inboundSchema = objectType({
|
|
74451
|
+
"X-Moov-Version": stringType().optional()
|
|
74452
|
+
}).transform((v2) => {
|
|
74453
|
+
return remap(v2, {
|
|
74454
|
+
"X-Moov-Version": "xMoovVersion"
|
|
74455
|
+
});
|
|
74456
|
+
});
|
|
74457
|
+
DisableResolutionLinkGlobals$outboundSchema = objectType({
|
|
74458
|
+
xMoovVersion: stringType().optional()
|
|
74459
|
+
}).transform((v2) => {
|
|
74460
|
+
return remap(v2, {
|
|
74461
|
+
xMoovVersion: "X-Moov-Version"
|
|
74462
|
+
});
|
|
74463
|
+
});
|
|
74464
|
+
DisableResolutionLinkRequest$inboundSchema = objectType({
|
|
74465
|
+
accountID: stringType(),
|
|
74466
|
+
resolutionLinkCode: stringType()
|
|
74467
|
+
});
|
|
74468
|
+
DisableResolutionLinkRequest$outboundSchema = objectType({
|
|
74469
|
+
accountID: stringType(),
|
|
74470
|
+
resolutionLinkCode: stringType()
|
|
74471
|
+
});
|
|
74472
|
+
DisableResolutionLinkResponse$inboundSchema = objectType({
|
|
74473
|
+
Headers: recordType(arrayType(stringType())).default({})
|
|
74474
|
+
}).transform((v2) => {
|
|
74475
|
+
return remap(v2, {
|
|
74476
|
+
Headers: "headers"
|
|
74477
|
+
});
|
|
74478
|
+
});
|
|
74479
|
+
DisableResolutionLinkResponse$outboundSchema = objectType({
|
|
74480
|
+
headers: recordType(arrayType(stringType()))
|
|
74481
|
+
}).transform((v2) => {
|
|
74482
|
+
return remap(v2, {
|
|
74483
|
+
headers: "Headers"
|
|
74484
|
+
});
|
|
74485
|
+
});
|
|
74486
|
+
});
|
|
74487
|
+
|
|
74289
74488
|
// src/models/operations/disablewebhook.ts
|
|
74290
74489
|
var DisableWebhookGlobals$inboundSchema, DisableWebhookGlobals$outboundSchema, DisableWebhookRequest$inboundSchema, DisableWebhookRequest$outboundSchema, DisableWebhookResponse$inboundSchema, DisableWebhookResponse$outboundSchema;
|
|
74291
74490
|
var init_disablewebhook = __esm(() => {
|
|
@@ -76098,6 +76297,54 @@ var init_getresidual = __esm(() => {
|
|
|
76098
76297
|
});
|
|
76099
76298
|
});
|
|
76100
76299
|
|
|
76300
|
+
// src/models/operations/getresolutionlink.ts
|
|
76301
|
+
var GetResolutionLinkGlobals$inboundSchema, GetResolutionLinkGlobals$outboundSchema, GetResolutionLinkRequest$inboundSchema, GetResolutionLinkRequest$outboundSchema, GetResolutionLinkResponse$inboundSchema, GetResolutionLinkResponse$outboundSchema;
|
|
76302
|
+
var init_getresolutionlink = __esm(() => {
|
|
76303
|
+
init_esm();
|
|
76304
|
+
init_primitives();
|
|
76305
|
+
init_components();
|
|
76306
|
+
GetResolutionLinkGlobals$inboundSchema = objectType({
|
|
76307
|
+
"X-Moov-Version": stringType().optional()
|
|
76308
|
+
}).transform((v2) => {
|
|
76309
|
+
return remap(v2, {
|
|
76310
|
+
"X-Moov-Version": "xMoovVersion"
|
|
76311
|
+
});
|
|
76312
|
+
});
|
|
76313
|
+
GetResolutionLinkGlobals$outboundSchema = objectType({
|
|
76314
|
+
xMoovVersion: stringType().optional()
|
|
76315
|
+
}).transform((v2) => {
|
|
76316
|
+
return remap(v2, {
|
|
76317
|
+
xMoovVersion: "X-Moov-Version"
|
|
76318
|
+
});
|
|
76319
|
+
});
|
|
76320
|
+
GetResolutionLinkRequest$inboundSchema = objectType({
|
|
76321
|
+
accountID: stringType(),
|
|
76322
|
+
resolutionLinkCode: stringType()
|
|
76323
|
+
});
|
|
76324
|
+
GetResolutionLinkRequest$outboundSchema = objectType({
|
|
76325
|
+
accountID: stringType(),
|
|
76326
|
+
resolutionLinkCode: stringType()
|
|
76327
|
+
});
|
|
76328
|
+
GetResolutionLinkResponse$inboundSchema = objectType({
|
|
76329
|
+
Headers: recordType(arrayType(stringType())).default({}),
|
|
76330
|
+
Result: ResolutionLink$inboundSchema
|
|
76331
|
+
}).transform((v2) => {
|
|
76332
|
+
return remap(v2, {
|
|
76333
|
+
Headers: "headers",
|
|
76334
|
+
Result: "result"
|
|
76335
|
+
});
|
|
76336
|
+
});
|
|
76337
|
+
GetResolutionLinkResponse$outboundSchema = objectType({
|
|
76338
|
+
headers: recordType(arrayType(stringType())),
|
|
76339
|
+
result: ResolutionLink$outboundSchema
|
|
76340
|
+
}).transform((v2) => {
|
|
76341
|
+
return remap(v2, {
|
|
76342
|
+
headers: "Headers",
|
|
76343
|
+
result: "Result"
|
|
76344
|
+
});
|
|
76345
|
+
});
|
|
76346
|
+
});
|
|
76347
|
+
|
|
76101
76348
|
// src/models/operations/getscheduledoccurrence.ts
|
|
76102
76349
|
var GetScheduledOccurrenceGlobals$inboundSchema, GetScheduledOccurrenceGlobals$outboundSchema, GetScheduledOccurrenceRequest$inboundSchema, GetScheduledOccurrenceRequest$outboundSchema, GetScheduledOccurrenceResponse$inboundSchema, GetScheduledOccurrenceResponse$outboundSchema;
|
|
76103
76350
|
var init_getscheduledoccurrence = __esm(() => {
|
|
@@ -78997,6 +79244,52 @@ var init_listresiduals = __esm(() => {
|
|
|
78997
79244
|
});
|
|
78998
79245
|
});
|
|
78999
79246
|
|
|
79247
|
+
// src/models/operations/listresolutionlinks.ts
|
|
79248
|
+
var ListResolutionLinksGlobals$inboundSchema, ListResolutionLinksGlobals$outboundSchema, ListResolutionLinksRequest$inboundSchema, ListResolutionLinksRequest$outboundSchema, ListResolutionLinksResponse$inboundSchema, ListResolutionLinksResponse$outboundSchema;
|
|
79249
|
+
var init_listresolutionlinks = __esm(() => {
|
|
79250
|
+
init_esm();
|
|
79251
|
+
init_primitives();
|
|
79252
|
+
init_components();
|
|
79253
|
+
ListResolutionLinksGlobals$inboundSchema = objectType({
|
|
79254
|
+
"X-Moov-Version": stringType().optional()
|
|
79255
|
+
}).transform((v2) => {
|
|
79256
|
+
return remap(v2, {
|
|
79257
|
+
"X-Moov-Version": "xMoovVersion"
|
|
79258
|
+
});
|
|
79259
|
+
});
|
|
79260
|
+
ListResolutionLinksGlobals$outboundSchema = objectType({
|
|
79261
|
+
xMoovVersion: stringType().optional()
|
|
79262
|
+
}).transform((v2) => {
|
|
79263
|
+
return remap(v2, {
|
|
79264
|
+
xMoovVersion: "X-Moov-Version"
|
|
79265
|
+
});
|
|
79266
|
+
});
|
|
79267
|
+
ListResolutionLinksRequest$inboundSchema = objectType({
|
|
79268
|
+
accountID: stringType()
|
|
79269
|
+
});
|
|
79270
|
+
ListResolutionLinksRequest$outboundSchema = objectType({
|
|
79271
|
+
accountID: stringType()
|
|
79272
|
+
});
|
|
79273
|
+
ListResolutionLinksResponse$inboundSchema = objectType({
|
|
79274
|
+
Headers: recordType(arrayType(stringType())).default({}),
|
|
79275
|
+
Result: arrayType(ResolutionLink$inboundSchema)
|
|
79276
|
+
}).transform((v2) => {
|
|
79277
|
+
return remap(v2, {
|
|
79278
|
+
Headers: "headers",
|
|
79279
|
+
Result: "result"
|
|
79280
|
+
});
|
|
79281
|
+
});
|
|
79282
|
+
ListResolutionLinksResponse$outboundSchema = objectType({
|
|
79283
|
+
headers: recordType(arrayType(stringType())),
|
|
79284
|
+
result: arrayType(ResolutionLink$outboundSchema)
|
|
79285
|
+
}).transform((v2) => {
|
|
79286
|
+
return remap(v2, {
|
|
79287
|
+
headers: "Headers",
|
|
79288
|
+
result: "Result"
|
|
79289
|
+
});
|
|
79290
|
+
});
|
|
79291
|
+
});
|
|
79292
|
+
|
|
79000
79293
|
// src/models/operations/listschedules.ts
|
|
79001
79294
|
var Hydrate, ListSchedulesGlobals$inboundSchema, ListSchedulesGlobals$outboundSchema, Hydrate$inboundSchema, Hydrate$outboundSchema, ListSchedulesRequest$inboundSchema, ListSchedulesRequest$outboundSchema, ListSchedulesResponse$inboundSchema, ListSchedulesResponse$outboundSchema;
|
|
79002
79295
|
var init_listschedules = __esm(() => {
|
|
@@ -81511,6 +81804,7 @@ var init_operations = __esm(() => {
|
|
|
81511
81804
|
init_createproduct();
|
|
81512
81805
|
init_createreceipts();
|
|
81513
81806
|
init_createrepresentative2();
|
|
81807
|
+
init_createresolutionlink2();
|
|
81514
81808
|
init_createreversal2();
|
|
81515
81809
|
init_createschedule();
|
|
81516
81810
|
init_createsweepconfig2();
|
|
@@ -81531,6 +81825,7 @@ var init_operations = __esm(() => {
|
|
|
81531
81825
|
init_disablecard();
|
|
81532
81826
|
init_disablepaymentlink();
|
|
81533
81827
|
init_disableproduct();
|
|
81828
|
+
init_disableresolutionlink();
|
|
81534
81829
|
init_disablewebhook();
|
|
81535
81830
|
init_disconnectaccount();
|
|
81536
81831
|
init_generateendtoendkey();
|
|
@@ -81568,6 +81863,7 @@ var init_operations = __esm(() => {
|
|
|
81568
81863
|
init_getrefund();
|
|
81569
81864
|
init_getrepresentative();
|
|
81570
81865
|
init_getresidual();
|
|
81866
|
+
init_getresolutionlink();
|
|
81571
81867
|
init_getscheduledoccurrence();
|
|
81572
81868
|
init_getschedules();
|
|
81573
81869
|
init_getstatement();
|
|
@@ -81624,6 +81920,7 @@ var init_operations = __esm(() => {
|
|
|
81624
81920
|
init_listrepresentatives();
|
|
81625
81921
|
init_listresidualfees();
|
|
81626
81922
|
init_listresiduals();
|
|
81923
|
+
init_listresolutionlinks();
|
|
81627
81924
|
init_listschedules();
|
|
81628
81925
|
init_liststatements();
|
|
81629
81926
|
init_listsweepconfigs();
|
|
@@ -96980,29 +97277,28 @@ you'll need to specify the \`/accounts/{accountID}/representatives.write\` scope
|
|
|
96980
97277
|
};
|
|
96981
97278
|
});
|
|
96982
97279
|
|
|
96983
|
-
// src/funcs/
|
|
96984
|
-
function
|
|
97280
|
+
// src/funcs/resolutionLinksCreate.ts
|
|
97281
|
+
function resolutionLinksCreate(client, request, options) {
|
|
96985
97282
|
return new APIPromise($do127(client, request, options));
|
|
96986
97283
|
}
|
|
96987
97284
|
async function $do127(client, request, options) {
|
|
96988
|
-
const parsed = safeParse4(request, (value) =>
|
|
97285
|
+
const parsed = safeParse4(request, (value) => CreateResolutionLinkRequest$outboundSchema.parse(value), "Input validation failed");
|
|
96989
97286
|
if (!parsed.ok) {
|
|
96990
97287
|
return [parsed, { status: "invalid" }];
|
|
96991
97288
|
}
|
|
96992
97289
|
const payload = parsed.value;
|
|
96993
|
-
const body =
|
|
97290
|
+
const body = encodeJSON("body", payload.CreateResolutionLink, {
|
|
97291
|
+
explode: true
|
|
97292
|
+
});
|
|
96994
97293
|
const pathParams = {
|
|
96995
97294
|
accountID: encodeSimple("accountID", payload.accountID, {
|
|
96996
97295
|
explode: false,
|
|
96997
97296
|
charEncoding: "percent"
|
|
96998
|
-
}),
|
|
96999
|
-
scheduleID: encodeSimple("scheduleID", payload.scheduleID, {
|
|
97000
|
-
explode: false,
|
|
97001
|
-
charEncoding: "percent"
|
|
97002
97297
|
})
|
|
97003
97298
|
};
|
|
97004
|
-
const path = pathToFunc("/accounts/{accountID}/
|
|
97299
|
+
const path = pathToFunc("/accounts/{accountID}/resolution-links")(pathParams);
|
|
97005
97300
|
const headers = new Headers(compactMap({
|
|
97301
|
+
"Content-Type": "application/json",
|
|
97006
97302
|
Accept: "application/json",
|
|
97007
97303
|
"X-Moov-Version": encodeSimple("X-Moov-Version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
97008
97304
|
}));
|
|
@@ -97011,7 +97307,7 @@ async function $do127(client, request, options) {
|
|
|
97011
97307
|
const context = {
|
|
97012
97308
|
options: client._options,
|
|
97013
97309
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
97014
|
-
operationID: "
|
|
97310
|
+
operationID: "createResolutionLink",
|
|
97015
97311
|
oAuth2Scopes: null,
|
|
97016
97312
|
resolvedSecurity: requestSecurity,
|
|
97017
97313
|
securitySource: client._options.security,
|
|
@@ -97020,7 +97316,7 @@ async function $do127(client, request, options) {
|
|
|
97020
97316
|
};
|
|
97021
97317
|
const requestRes = client._createRequest(context, {
|
|
97022
97318
|
security: requestSecurity,
|
|
97023
|
-
method: "
|
|
97319
|
+
method: "POST",
|
|
97024
97320
|
baseURL: options?.serverURL,
|
|
97025
97321
|
path,
|
|
97026
97322
|
headers,
|
|
@@ -97040,6 +97336,7 @@ async function $do127(client, request, options) {
|
|
|
97040
97336
|
"403",
|
|
97041
97337
|
"404",
|
|
97042
97338
|
"409",
|
|
97339
|
+
"422",
|
|
97043
97340
|
"429",
|
|
97044
97341
|
"4XX",
|
|
97045
97342
|
"500",
|
|
@@ -97056,15 +97353,18 @@ async function $do127(client, request, options) {
|
|
|
97056
97353
|
const responseFields = {
|
|
97057
97354
|
HttpMeta: { Response: response, Request: req }
|
|
97058
97355
|
};
|
|
97059
|
-
const [result] = await match(
|
|
97356
|
+
const [result] = await match(json(200, CreateResolutionLinkResponse$inboundSchema, {
|
|
97357
|
+
hdrs: true,
|
|
97358
|
+
key: "Result"
|
|
97359
|
+
}), jsonErr([400, 409], GenericError$inboundSchema, { hdrs: true }), jsonErr(422, CreateResolutionLinkError$inboundSchema, {
|
|
97060
97360
|
hdrs: true
|
|
97061
|
-
}),
|
|
97361
|
+
}), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
97062
97362
|
if (!result.ok) {
|
|
97063
97363
|
return [result, { status: "complete", request: req, response }];
|
|
97064
97364
|
}
|
|
97065
97365
|
return [result, { status: "complete", request: req, response }];
|
|
97066
97366
|
}
|
|
97067
|
-
var
|
|
97367
|
+
var init_resolutionLinksCreate = __esm(() => {
|
|
97068
97368
|
init_encodings();
|
|
97069
97369
|
init_matchers();
|
|
97070
97370
|
init_primitives();
|
|
@@ -97076,55 +97376,58 @@ var init_schedulingCancel = __esm(() => {
|
|
|
97076
97376
|
init_async();
|
|
97077
97377
|
});
|
|
97078
97378
|
|
|
97079
|
-
// src/mcp-server/tools/
|
|
97080
|
-
var args127, tool$
|
|
97081
|
-
var
|
|
97082
|
-
|
|
97379
|
+
// src/mcp-server/tools/resolutionLinksCreate.ts
|
|
97380
|
+
var args127, tool$resolutionLinksCreate;
|
|
97381
|
+
var init_resolutionLinksCreate2 = __esm(() => {
|
|
97382
|
+
init_resolutionLinksCreate();
|
|
97083
97383
|
init_operations();
|
|
97084
97384
|
init_tools();
|
|
97085
97385
|
args127 = {
|
|
97086
|
-
request:
|
|
97386
|
+
request: CreateResolutionLinkRequest$inboundSchema
|
|
97087
97387
|
};
|
|
97088
|
-
tool$
|
|
97089
|
-
name: "
|
|
97090
|
-
description: `
|
|
97388
|
+
tool$resolutionLinksCreate = {
|
|
97389
|
+
name: "resolution-links-create",
|
|
97390
|
+
description: `Create a resolution link for the specified account. Resolution links are temporary, secure links
|
|
97391
|
+
sent to merchants to resolve account requirements such as KYC verification or document uploads. Only one active resolution link
|
|
97392
|
+
is allowed per connected account.
|
|
97091
97393
|
|
|
97092
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
97093
|
-
you'll need to specify the \`/accounts/{accountID}/
|
|
97394
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
97395
|
+
you'll need to specify the \`/accounts/{accountID}/profile.write\`, \`/accounts/{accountID}/representatives.write\` and \`/accounts/{accountID}/files.write\` scopes.`,
|
|
97094
97396
|
args: args127,
|
|
97095
97397
|
tool: async (client, args128, ctx) => {
|
|
97096
|
-
const [result, apiCall] = await
|
|
97398
|
+
const [result, apiCall] = await resolutionLinksCreate(client, args128.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
97097
97399
|
if (!result.ok) {
|
|
97098
97400
|
return {
|
|
97099
97401
|
content: [{ type: "text", text: result.error.message }],
|
|
97100
97402
|
isError: true
|
|
97101
97403
|
};
|
|
97102
97404
|
}
|
|
97103
|
-
|
|
97405
|
+
const value = result.value.result;
|
|
97406
|
+
return formatResult(value, apiCall);
|
|
97104
97407
|
}
|
|
97105
97408
|
};
|
|
97106
97409
|
});
|
|
97107
97410
|
|
|
97108
|
-
// src/funcs/
|
|
97109
|
-
function
|
|
97411
|
+
// src/funcs/resolutionLinksDisable.ts
|
|
97412
|
+
function resolutionLinksDisable(client, request, options) {
|
|
97110
97413
|
return new APIPromise($do128(client, request, options));
|
|
97111
97414
|
}
|
|
97112
97415
|
async function $do128(client, request, options) {
|
|
97113
|
-
const parsed = safeParse4(request, (value) =>
|
|
97416
|
+
const parsed = safeParse4(request, (value) => DisableResolutionLinkRequest$outboundSchema.parse(value), "Input validation failed");
|
|
97114
97417
|
if (!parsed.ok) {
|
|
97115
97418
|
return [parsed, { status: "invalid" }];
|
|
97116
97419
|
}
|
|
97117
97420
|
const payload = parsed.value;
|
|
97118
|
-
const body =
|
|
97421
|
+
const body = null;
|
|
97119
97422
|
const pathParams = {
|
|
97120
97423
|
accountID: encodeSimple("accountID", payload.accountID, {
|
|
97121
97424
|
explode: false,
|
|
97122
97425
|
charEncoding: "percent"
|
|
97123
|
-
})
|
|
97426
|
+
}),
|
|
97427
|
+
resolutionLinkCode: encodeSimple("resolutionLinkCode", payload.resolutionLinkCode, { explode: false, charEncoding: "percent" })
|
|
97124
97428
|
};
|
|
97125
|
-
const path = pathToFunc("/accounts/{accountID}/
|
|
97429
|
+
const path = pathToFunc("/accounts/{accountID}/resolution-links/{resolutionLinkCode}")(pathParams);
|
|
97126
97430
|
const headers = new Headers(compactMap({
|
|
97127
|
-
"Content-Type": "application/json",
|
|
97128
97431
|
Accept: "application/json",
|
|
97129
97432
|
"X-Moov-Version": encodeSimple("X-Moov-Version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
97130
97433
|
}));
|
|
@@ -97133,7 +97436,7 @@ async function $do128(client, request, options) {
|
|
|
97133
97436
|
const context = {
|
|
97134
97437
|
options: client._options,
|
|
97135
97438
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
97136
|
-
operationID: "
|
|
97439
|
+
operationID: "disableResolutionLink",
|
|
97137
97440
|
oAuth2Scopes: null,
|
|
97138
97441
|
resolvedSecurity: requestSecurity,
|
|
97139
97442
|
securitySource: client._options.security,
|
|
@@ -97142,7 +97445,7 @@ async function $do128(client, request, options) {
|
|
|
97142
97445
|
};
|
|
97143
97446
|
const requestRes = client._createRequest(context, {
|
|
97144
97447
|
security: requestSecurity,
|
|
97145
|
-
method: "
|
|
97448
|
+
method: "DELETE",
|
|
97146
97449
|
baseURL: options?.serverURL,
|
|
97147
97450
|
path,
|
|
97148
97451
|
headers,
|
|
@@ -97162,7 +97465,6 @@ async function $do128(client, request, options) {
|
|
|
97162
97465
|
"403",
|
|
97163
97466
|
"404",
|
|
97164
97467
|
"409",
|
|
97165
|
-
"422",
|
|
97166
97468
|
"429",
|
|
97167
97469
|
"4XX",
|
|
97168
97470
|
"500",
|
|
@@ -97179,18 +97481,13 @@ async function $do128(client, request, options) {
|
|
|
97179
97481
|
const responseFields = {
|
|
97180
97482
|
HttpMeta: { Response: response, Request: req }
|
|
97181
97483
|
};
|
|
97182
|
-
const [result] = await match(
|
|
97183
|
-
hdrs: true,
|
|
97184
|
-
key: "Result"
|
|
97185
|
-
}), jsonErr([400, 409], GenericError$inboundSchema, { hdrs: true }), jsonErr(422, ScheduleValidationError$inboundSchema, {
|
|
97186
|
-
hdrs: true
|
|
97187
|
-
}), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
97484
|
+
const [result] = await match(nil(204, DisableResolutionLinkResponse$inboundSchema.optional(), { hdrs: true }), jsonErr([400, 409], GenericError$inboundSchema, { hdrs: true }), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
97188
97485
|
if (!result.ok) {
|
|
97189
97486
|
return [result, { status: "complete", request: req, response }];
|
|
97190
97487
|
}
|
|
97191
97488
|
return [result, { status: "complete", request: req, response }];
|
|
97192
97489
|
}
|
|
97193
|
-
var
|
|
97490
|
+
var init_resolutionLinksDisable = __esm(() => {
|
|
97194
97491
|
init_encodings();
|
|
97195
97492
|
init_matchers();
|
|
97196
97493
|
init_primitives();
|
|
@@ -97202,42 +97499,41 @@ var init_schedulingCreate = __esm(() => {
|
|
|
97202
97499
|
init_async();
|
|
97203
97500
|
});
|
|
97204
97501
|
|
|
97205
|
-
// src/mcp-server/tools/
|
|
97206
|
-
var args128, tool$
|
|
97207
|
-
var
|
|
97208
|
-
|
|
97502
|
+
// src/mcp-server/tools/resolutionLinksDisable.ts
|
|
97503
|
+
var args128, tool$resolutionLinksDisable;
|
|
97504
|
+
var init_resolutionLinksDisable2 = __esm(() => {
|
|
97505
|
+
init_resolutionLinksDisable();
|
|
97209
97506
|
init_operations();
|
|
97210
97507
|
init_tools();
|
|
97211
97508
|
args128 = {
|
|
97212
|
-
request:
|
|
97509
|
+
request: DisableResolutionLinkRequest$inboundSchema
|
|
97213
97510
|
};
|
|
97214
|
-
tool$
|
|
97215
|
-
name: "
|
|
97216
|
-
description: `
|
|
97511
|
+
tool$resolutionLinksDisable = {
|
|
97512
|
+
name: "resolution-links-disable",
|
|
97513
|
+
description: `Disable a resolution link. Disabled resolution links can no longer be used by merchants.
|
|
97217
97514
|
|
|
97218
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
97219
|
-
you'll need to specify the \`/accounts/{accountID}/
|
|
97515
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
97516
|
+
you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
97220
97517
|
args: args128,
|
|
97221
97518
|
tool: async (client, args129, ctx) => {
|
|
97222
|
-
const [result, apiCall] = await
|
|
97519
|
+
const [result, apiCall] = await resolutionLinksDisable(client, args129.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
97223
97520
|
if (!result.ok) {
|
|
97224
97521
|
return {
|
|
97225
97522
|
content: [{ type: "text", text: result.error.message }],
|
|
97226
97523
|
isError: true
|
|
97227
97524
|
};
|
|
97228
97525
|
}
|
|
97229
|
-
|
|
97230
|
-
return formatResult(value, apiCall);
|
|
97526
|
+
return formatResult(undefined, apiCall);
|
|
97231
97527
|
}
|
|
97232
97528
|
};
|
|
97233
97529
|
});
|
|
97234
97530
|
|
|
97235
|
-
// src/funcs/
|
|
97236
|
-
function
|
|
97531
|
+
// src/funcs/resolutionLinksGet.ts
|
|
97532
|
+
function resolutionLinksGet(client, request, options) {
|
|
97237
97533
|
return new APIPromise($do129(client, request, options));
|
|
97238
97534
|
}
|
|
97239
97535
|
async function $do129(client, request, options) {
|
|
97240
|
-
const parsed = safeParse4(request, (value) =>
|
|
97536
|
+
const parsed = safeParse4(request, (value) => GetResolutionLinkRequest$outboundSchema.parse(value), "Input validation failed");
|
|
97241
97537
|
if (!parsed.ok) {
|
|
97242
97538
|
return [parsed, { status: "invalid" }];
|
|
97243
97539
|
}
|
|
@@ -97248,12 +97544,9 @@ async function $do129(client, request, options) {
|
|
|
97248
97544
|
explode: false,
|
|
97249
97545
|
charEncoding: "percent"
|
|
97250
97546
|
}),
|
|
97251
|
-
|
|
97252
|
-
explode: false,
|
|
97253
|
-
charEncoding: "percent"
|
|
97254
|
-
})
|
|
97547
|
+
resolutionLinkCode: encodeSimple("resolutionLinkCode", payload.resolutionLinkCode, { explode: false, charEncoding: "percent" })
|
|
97255
97548
|
};
|
|
97256
|
-
const path = pathToFunc("/accounts/{accountID}/
|
|
97549
|
+
const path = pathToFunc("/accounts/{accountID}/resolution-links/{resolutionLinkCode}")(pathParams);
|
|
97257
97550
|
const headers = new Headers(compactMap({
|
|
97258
97551
|
Accept: "application/json",
|
|
97259
97552
|
"X-Moov-Version": encodeSimple("X-Moov-Version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
@@ -97263,7 +97556,485 @@ async function $do129(client, request, options) {
|
|
|
97263
97556
|
const context = {
|
|
97264
97557
|
options: client._options,
|
|
97265
97558
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
97266
|
-
operationID: "
|
|
97559
|
+
operationID: "getResolutionLink",
|
|
97560
|
+
oAuth2Scopes: null,
|
|
97561
|
+
resolvedSecurity: requestSecurity,
|
|
97562
|
+
securitySource: client._options.security,
|
|
97563
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
97564
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
97565
|
+
};
|
|
97566
|
+
const requestRes = client._createRequest(context, {
|
|
97567
|
+
security: requestSecurity,
|
|
97568
|
+
method: "GET",
|
|
97569
|
+
baseURL: options?.serverURL,
|
|
97570
|
+
path,
|
|
97571
|
+
headers,
|
|
97572
|
+
body,
|
|
97573
|
+
userAgent: client._options.userAgent,
|
|
97574
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
97575
|
+
}, options);
|
|
97576
|
+
if (!requestRes.ok) {
|
|
97577
|
+
return [requestRes, { status: "invalid" }];
|
|
97578
|
+
}
|
|
97579
|
+
const req = requestRes.value;
|
|
97580
|
+
const doResult = await client._do(req, {
|
|
97581
|
+
context,
|
|
97582
|
+
errorCodes: ["401", "403", "404", "429", "4XX", "500", "504", "5XX"],
|
|
97583
|
+
retryConfig: context.retryConfig,
|
|
97584
|
+
retryCodes: context.retryCodes
|
|
97585
|
+
});
|
|
97586
|
+
if (!doResult.ok) {
|
|
97587
|
+
return [doResult, { status: "request-error", request: req }];
|
|
97588
|
+
}
|
|
97589
|
+
const response = doResult.value;
|
|
97590
|
+
const responseFields = {
|
|
97591
|
+
HttpMeta: { Response: response, Request: req }
|
|
97592
|
+
};
|
|
97593
|
+
const [result] = await match(json(200, GetResolutionLinkResponse$inboundSchema, {
|
|
97594
|
+
hdrs: true,
|
|
97595
|
+
key: "Result"
|
|
97596
|
+
}), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
97597
|
+
if (!result.ok) {
|
|
97598
|
+
return [result, { status: "complete", request: req, response }];
|
|
97599
|
+
}
|
|
97600
|
+
return [result, { status: "complete", request: req, response }];
|
|
97601
|
+
}
|
|
97602
|
+
var init_resolutionLinksGet = __esm(() => {
|
|
97603
|
+
init_encodings();
|
|
97604
|
+
init_matchers();
|
|
97605
|
+
init_primitives();
|
|
97606
|
+
init_schemas4();
|
|
97607
|
+
init_security();
|
|
97608
|
+
init_url();
|
|
97609
|
+
init_operations();
|
|
97610
|
+
init_async();
|
|
97611
|
+
});
|
|
97612
|
+
|
|
97613
|
+
// src/mcp-server/tools/resolutionLinksGet.ts
|
|
97614
|
+
var args129, tool$resolutionLinksGet;
|
|
97615
|
+
var init_resolutionLinksGet2 = __esm(() => {
|
|
97616
|
+
init_resolutionLinksGet();
|
|
97617
|
+
init_operations();
|
|
97618
|
+
init_tools();
|
|
97619
|
+
args129 = {
|
|
97620
|
+
request: GetResolutionLinkRequest$inboundSchema
|
|
97621
|
+
};
|
|
97622
|
+
tool$resolutionLinksGet = {
|
|
97623
|
+
name: "resolution-links-get",
|
|
97624
|
+
description: `Get a resolution link by code.
|
|
97625
|
+
|
|
97626
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
97627
|
+
you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
97628
|
+
args: args129,
|
|
97629
|
+
tool: async (client, args130, ctx) => {
|
|
97630
|
+
const [result, apiCall] = await resolutionLinksGet(client, args130.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
97631
|
+
if (!result.ok) {
|
|
97632
|
+
return {
|
|
97633
|
+
content: [{ type: "text", text: result.error.message }],
|
|
97634
|
+
isError: true
|
|
97635
|
+
};
|
|
97636
|
+
}
|
|
97637
|
+
const value = result.value.result;
|
|
97638
|
+
return formatResult(value, apiCall);
|
|
97639
|
+
}
|
|
97640
|
+
};
|
|
97641
|
+
});
|
|
97642
|
+
|
|
97643
|
+
// src/funcs/resolutionLinksList.ts
|
|
97644
|
+
function resolutionLinksList(client, request, options) {
|
|
97645
|
+
return new APIPromise($do130(client, request, options));
|
|
97646
|
+
}
|
|
97647
|
+
async function $do130(client, request, options) {
|
|
97648
|
+
const parsed = safeParse4(request, (value) => ListResolutionLinksRequest$outboundSchema.parse(value), "Input validation failed");
|
|
97649
|
+
if (!parsed.ok) {
|
|
97650
|
+
return [parsed, { status: "invalid" }];
|
|
97651
|
+
}
|
|
97652
|
+
const payload = parsed.value;
|
|
97653
|
+
const body = null;
|
|
97654
|
+
const pathParams = {
|
|
97655
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
97656
|
+
explode: false,
|
|
97657
|
+
charEncoding: "percent"
|
|
97658
|
+
})
|
|
97659
|
+
};
|
|
97660
|
+
const path = pathToFunc("/accounts/{accountID}/resolution-links")(pathParams);
|
|
97661
|
+
const headers = new Headers(compactMap({
|
|
97662
|
+
Accept: "application/json",
|
|
97663
|
+
"X-Moov-Version": encodeSimple("X-Moov-Version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
97664
|
+
}));
|
|
97665
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
97666
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
97667
|
+
const context = {
|
|
97668
|
+
options: client._options,
|
|
97669
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
97670
|
+
operationID: "listResolutionLinks",
|
|
97671
|
+
oAuth2Scopes: null,
|
|
97672
|
+
resolvedSecurity: requestSecurity,
|
|
97673
|
+
securitySource: client._options.security,
|
|
97674
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
97675
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
97676
|
+
};
|
|
97677
|
+
const requestRes = client._createRequest(context, {
|
|
97678
|
+
security: requestSecurity,
|
|
97679
|
+
method: "GET",
|
|
97680
|
+
baseURL: options?.serverURL,
|
|
97681
|
+
path,
|
|
97682
|
+
headers,
|
|
97683
|
+
body,
|
|
97684
|
+
userAgent: client._options.userAgent,
|
|
97685
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
97686
|
+
}, options);
|
|
97687
|
+
if (!requestRes.ok) {
|
|
97688
|
+
return [requestRes, { status: "invalid" }];
|
|
97689
|
+
}
|
|
97690
|
+
const req = requestRes.value;
|
|
97691
|
+
const doResult = await client._do(req, {
|
|
97692
|
+
context,
|
|
97693
|
+
errorCodes: ["401", "403", "429", "4XX", "500", "504", "5XX"],
|
|
97694
|
+
retryConfig: context.retryConfig,
|
|
97695
|
+
retryCodes: context.retryCodes
|
|
97696
|
+
});
|
|
97697
|
+
if (!doResult.ok) {
|
|
97698
|
+
return [doResult, { status: "request-error", request: req }];
|
|
97699
|
+
}
|
|
97700
|
+
const response = doResult.value;
|
|
97701
|
+
const responseFields = {
|
|
97702
|
+
HttpMeta: { Response: response, Request: req }
|
|
97703
|
+
};
|
|
97704
|
+
const [result] = await match(json(200, ListResolutionLinksResponse$inboundSchema, {
|
|
97705
|
+
hdrs: true,
|
|
97706
|
+
key: "Result"
|
|
97707
|
+
}), fail([401, 403, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
97708
|
+
if (!result.ok) {
|
|
97709
|
+
return [result, { status: "complete", request: req, response }];
|
|
97710
|
+
}
|
|
97711
|
+
return [result, { status: "complete", request: req, response }];
|
|
97712
|
+
}
|
|
97713
|
+
var init_resolutionLinksList = __esm(() => {
|
|
97714
|
+
init_encodings();
|
|
97715
|
+
init_matchers();
|
|
97716
|
+
init_primitives();
|
|
97717
|
+
init_schemas4();
|
|
97718
|
+
init_security();
|
|
97719
|
+
init_url();
|
|
97720
|
+
init_operations();
|
|
97721
|
+
init_async();
|
|
97722
|
+
});
|
|
97723
|
+
|
|
97724
|
+
// src/mcp-server/tools/resolutionLinksList.ts
|
|
97725
|
+
var args130, tool$resolutionLinksList;
|
|
97726
|
+
var init_resolutionLinksList2 = __esm(() => {
|
|
97727
|
+
init_resolutionLinksList();
|
|
97728
|
+
init_operations();
|
|
97729
|
+
init_tools();
|
|
97730
|
+
args130 = {
|
|
97731
|
+
request: ListResolutionLinksRequest$inboundSchema
|
|
97732
|
+
};
|
|
97733
|
+
tool$resolutionLinksList = {
|
|
97734
|
+
name: "resolution-links-list",
|
|
97735
|
+
description: `List resolution links for the specified account.
|
|
97736
|
+
|
|
97737
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
97738
|
+
you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
97739
|
+
args: args130,
|
|
97740
|
+
tool: async (client, args131, ctx) => {
|
|
97741
|
+
const [result, apiCall] = await resolutionLinksList(client, args131.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
97742
|
+
if (!result.ok) {
|
|
97743
|
+
return {
|
|
97744
|
+
content: [{ type: "text", text: result.error.message }],
|
|
97745
|
+
isError: true
|
|
97746
|
+
};
|
|
97747
|
+
}
|
|
97748
|
+
const value = result.value.result;
|
|
97749
|
+
return formatResult(value, apiCall);
|
|
97750
|
+
}
|
|
97751
|
+
};
|
|
97752
|
+
});
|
|
97753
|
+
|
|
97754
|
+
// src/funcs/schedulingCancel.ts
|
|
97755
|
+
function schedulingCancel(client, request, options) {
|
|
97756
|
+
return new APIPromise($do131(client, request, options));
|
|
97757
|
+
}
|
|
97758
|
+
async function $do131(client, request, options) {
|
|
97759
|
+
const parsed = safeParse4(request, (value) => CancelScheduleRequest$outboundSchema.parse(value), "Input validation failed");
|
|
97760
|
+
if (!parsed.ok) {
|
|
97761
|
+
return [parsed, { status: "invalid" }];
|
|
97762
|
+
}
|
|
97763
|
+
const payload = parsed.value;
|
|
97764
|
+
const body = null;
|
|
97765
|
+
const pathParams = {
|
|
97766
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
97767
|
+
explode: false,
|
|
97768
|
+
charEncoding: "percent"
|
|
97769
|
+
}),
|
|
97770
|
+
scheduleID: encodeSimple("scheduleID", payload.scheduleID, {
|
|
97771
|
+
explode: false,
|
|
97772
|
+
charEncoding: "percent"
|
|
97773
|
+
})
|
|
97774
|
+
};
|
|
97775
|
+
const path = pathToFunc("/accounts/{accountID}/schedules/{scheduleID}")(pathParams);
|
|
97776
|
+
const headers = new Headers(compactMap({
|
|
97777
|
+
Accept: "application/json",
|
|
97778
|
+
"X-Moov-Version": encodeSimple("X-Moov-Version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
97779
|
+
}));
|
|
97780
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
97781
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
97782
|
+
const context = {
|
|
97783
|
+
options: client._options,
|
|
97784
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
97785
|
+
operationID: "cancelSchedule",
|
|
97786
|
+
oAuth2Scopes: null,
|
|
97787
|
+
resolvedSecurity: requestSecurity,
|
|
97788
|
+
securitySource: client._options.security,
|
|
97789
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
97790
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
97791
|
+
};
|
|
97792
|
+
const requestRes = client._createRequest(context, {
|
|
97793
|
+
security: requestSecurity,
|
|
97794
|
+
method: "DELETE",
|
|
97795
|
+
baseURL: options?.serverURL,
|
|
97796
|
+
path,
|
|
97797
|
+
headers,
|
|
97798
|
+
body,
|
|
97799
|
+
userAgent: client._options.userAgent,
|
|
97800
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
97801
|
+
}, options);
|
|
97802
|
+
if (!requestRes.ok) {
|
|
97803
|
+
return [requestRes, { status: "invalid" }];
|
|
97804
|
+
}
|
|
97805
|
+
const req = requestRes.value;
|
|
97806
|
+
const doResult = await client._do(req, {
|
|
97807
|
+
context,
|
|
97808
|
+
errorCodes: [
|
|
97809
|
+
"400",
|
|
97810
|
+
"401",
|
|
97811
|
+
"403",
|
|
97812
|
+
"404",
|
|
97813
|
+
"409",
|
|
97814
|
+
"429",
|
|
97815
|
+
"4XX",
|
|
97816
|
+
"500",
|
|
97817
|
+
"504",
|
|
97818
|
+
"5XX"
|
|
97819
|
+
],
|
|
97820
|
+
retryConfig: context.retryConfig,
|
|
97821
|
+
retryCodes: context.retryCodes
|
|
97822
|
+
});
|
|
97823
|
+
if (!doResult.ok) {
|
|
97824
|
+
return [doResult, { status: "request-error", request: req }];
|
|
97825
|
+
}
|
|
97826
|
+
const response = doResult.value;
|
|
97827
|
+
const responseFields = {
|
|
97828
|
+
HttpMeta: { Response: response, Request: req }
|
|
97829
|
+
};
|
|
97830
|
+
const [result] = await match(nil(204, CancelScheduleResponse$inboundSchema.optional(), {
|
|
97831
|
+
hdrs: true
|
|
97832
|
+
}), jsonErr([400, 409], GenericError$inboundSchema, { hdrs: true }), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
97833
|
+
if (!result.ok) {
|
|
97834
|
+
return [result, { status: "complete", request: req, response }];
|
|
97835
|
+
}
|
|
97836
|
+
return [result, { status: "complete", request: req, response }];
|
|
97837
|
+
}
|
|
97838
|
+
var init_schedulingCancel = __esm(() => {
|
|
97839
|
+
init_encodings();
|
|
97840
|
+
init_matchers();
|
|
97841
|
+
init_primitives();
|
|
97842
|
+
init_schemas4();
|
|
97843
|
+
init_security();
|
|
97844
|
+
init_url();
|
|
97845
|
+
init_errors4();
|
|
97846
|
+
init_operations();
|
|
97847
|
+
init_async();
|
|
97848
|
+
});
|
|
97849
|
+
|
|
97850
|
+
// src/mcp-server/tools/schedulingCancel.ts
|
|
97851
|
+
var args131, tool$schedulingCancel;
|
|
97852
|
+
var init_schedulingCancel2 = __esm(() => {
|
|
97853
|
+
init_schedulingCancel();
|
|
97854
|
+
init_operations();
|
|
97855
|
+
init_tools();
|
|
97856
|
+
args131 = {
|
|
97857
|
+
request: CancelScheduleRequest$inboundSchema
|
|
97858
|
+
};
|
|
97859
|
+
tool$schedulingCancel = {
|
|
97860
|
+
name: "scheduling-cancel",
|
|
97861
|
+
description: `Describes the schedule to cancel.
|
|
97862
|
+
|
|
97863
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
97864
|
+
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
97865
|
+
args: args131,
|
|
97866
|
+
tool: async (client, args132, ctx) => {
|
|
97867
|
+
const [result, apiCall] = await schedulingCancel(client, args132.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
97868
|
+
if (!result.ok) {
|
|
97869
|
+
return {
|
|
97870
|
+
content: [{ type: "text", text: result.error.message }],
|
|
97871
|
+
isError: true
|
|
97872
|
+
};
|
|
97873
|
+
}
|
|
97874
|
+
return formatResult(undefined, apiCall);
|
|
97875
|
+
}
|
|
97876
|
+
};
|
|
97877
|
+
});
|
|
97878
|
+
|
|
97879
|
+
// src/funcs/schedulingCreate.ts
|
|
97880
|
+
function schedulingCreate(client, request, options) {
|
|
97881
|
+
return new APIPromise($do132(client, request, options));
|
|
97882
|
+
}
|
|
97883
|
+
async function $do132(client, request, options) {
|
|
97884
|
+
const parsed = safeParse4(request, (value) => CreateScheduleRequest$outboundSchema.parse(value), "Input validation failed");
|
|
97885
|
+
if (!parsed.ok) {
|
|
97886
|
+
return [parsed, { status: "invalid" }];
|
|
97887
|
+
}
|
|
97888
|
+
const payload = parsed.value;
|
|
97889
|
+
const body = encodeJSON("body", payload.UpsertSchedule, { explode: true });
|
|
97890
|
+
const pathParams = {
|
|
97891
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
97892
|
+
explode: false,
|
|
97893
|
+
charEncoding: "percent"
|
|
97894
|
+
})
|
|
97895
|
+
};
|
|
97896
|
+
const path = pathToFunc("/accounts/{accountID}/schedules")(pathParams);
|
|
97897
|
+
const headers = new Headers(compactMap({
|
|
97898
|
+
"Content-Type": "application/json",
|
|
97899
|
+
Accept: "application/json",
|
|
97900
|
+
"X-Moov-Version": encodeSimple("X-Moov-Version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
97901
|
+
}));
|
|
97902
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
97903
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
97904
|
+
const context = {
|
|
97905
|
+
options: client._options,
|
|
97906
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
97907
|
+
operationID: "createSchedule",
|
|
97908
|
+
oAuth2Scopes: null,
|
|
97909
|
+
resolvedSecurity: requestSecurity,
|
|
97910
|
+
securitySource: client._options.security,
|
|
97911
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
97912
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
97913
|
+
};
|
|
97914
|
+
const requestRes = client._createRequest(context, {
|
|
97915
|
+
security: requestSecurity,
|
|
97916
|
+
method: "POST",
|
|
97917
|
+
baseURL: options?.serverURL,
|
|
97918
|
+
path,
|
|
97919
|
+
headers,
|
|
97920
|
+
body,
|
|
97921
|
+
userAgent: client._options.userAgent,
|
|
97922
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
97923
|
+
}, options);
|
|
97924
|
+
if (!requestRes.ok) {
|
|
97925
|
+
return [requestRes, { status: "invalid" }];
|
|
97926
|
+
}
|
|
97927
|
+
const req = requestRes.value;
|
|
97928
|
+
const doResult = await client._do(req, {
|
|
97929
|
+
context,
|
|
97930
|
+
errorCodes: [
|
|
97931
|
+
"400",
|
|
97932
|
+
"401",
|
|
97933
|
+
"403",
|
|
97934
|
+
"404",
|
|
97935
|
+
"409",
|
|
97936
|
+
"422",
|
|
97937
|
+
"429",
|
|
97938
|
+
"4XX",
|
|
97939
|
+
"500",
|
|
97940
|
+
"504",
|
|
97941
|
+
"5XX"
|
|
97942
|
+
],
|
|
97943
|
+
retryConfig: context.retryConfig,
|
|
97944
|
+
retryCodes: context.retryCodes
|
|
97945
|
+
});
|
|
97946
|
+
if (!doResult.ok) {
|
|
97947
|
+
return [doResult, { status: "request-error", request: req }];
|
|
97948
|
+
}
|
|
97949
|
+
const response = doResult.value;
|
|
97950
|
+
const responseFields = {
|
|
97951
|
+
HttpMeta: { Response: response, Request: req }
|
|
97952
|
+
};
|
|
97953
|
+
const [result] = await match(json(200, CreateScheduleResponse$inboundSchema, {
|
|
97954
|
+
hdrs: true,
|
|
97955
|
+
key: "Result"
|
|
97956
|
+
}), jsonErr([400, 409], GenericError$inboundSchema, { hdrs: true }), jsonErr(422, ScheduleValidationError$inboundSchema, {
|
|
97957
|
+
hdrs: true
|
|
97958
|
+
}), fail([401, 403, 404, 429]), fail([500, 504]), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
97959
|
+
if (!result.ok) {
|
|
97960
|
+
return [result, { status: "complete", request: req, response }];
|
|
97961
|
+
}
|
|
97962
|
+
return [result, { status: "complete", request: req, response }];
|
|
97963
|
+
}
|
|
97964
|
+
var init_schedulingCreate = __esm(() => {
|
|
97965
|
+
init_encodings();
|
|
97966
|
+
init_matchers();
|
|
97967
|
+
init_primitives();
|
|
97968
|
+
init_schemas4();
|
|
97969
|
+
init_security();
|
|
97970
|
+
init_url();
|
|
97971
|
+
init_errors4();
|
|
97972
|
+
init_operations();
|
|
97973
|
+
init_async();
|
|
97974
|
+
});
|
|
97975
|
+
|
|
97976
|
+
// src/mcp-server/tools/schedulingCreate.ts
|
|
97977
|
+
var args132, tool$schedulingCreate;
|
|
97978
|
+
var init_schedulingCreate2 = __esm(() => {
|
|
97979
|
+
init_schedulingCreate();
|
|
97980
|
+
init_operations();
|
|
97981
|
+
init_tools();
|
|
97982
|
+
args132 = {
|
|
97983
|
+
request: CreateScheduleRequest$inboundSchema
|
|
97984
|
+
};
|
|
97985
|
+
tool$schedulingCreate = {
|
|
97986
|
+
name: "scheduling-create",
|
|
97987
|
+
description: `Describes the schedule to create or modify.
|
|
97988
|
+
|
|
97989
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
97990
|
+
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
97991
|
+
args: args132,
|
|
97992
|
+
tool: async (client, args133, ctx) => {
|
|
97993
|
+
const [result, apiCall] = await schedulingCreate(client, args133.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
97994
|
+
if (!result.ok) {
|
|
97995
|
+
return {
|
|
97996
|
+
content: [{ type: "text", text: result.error.message }],
|
|
97997
|
+
isError: true
|
|
97998
|
+
};
|
|
97999
|
+
}
|
|
98000
|
+
const value = result.value.result;
|
|
98001
|
+
return formatResult(value, apiCall);
|
|
98002
|
+
}
|
|
98003
|
+
};
|
|
98004
|
+
});
|
|
98005
|
+
|
|
98006
|
+
// src/funcs/schedulingGet.ts
|
|
98007
|
+
function schedulingGet(client, request, options) {
|
|
98008
|
+
return new APIPromise($do133(client, request, options));
|
|
98009
|
+
}
|
|
98010
|
+
async function $do133(client, request, options) {
|
|
98011
|
+
const parsed = safeParse4(request, (value) => GetSchedulesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
98012
|
+
if (!parsed.ok) {
|
|
98013
|
+
return [parsed, { status: "invalid" }];
|
|
98014
|
+
}
|
|
98015
|
+
const payload = parsed.value;
|
|
98016
|
+
const body = null;
|
|
98017
|
+
const pathParams = {
|
|
98018
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
98019
|
+
explode: false,
|
|
98020
|
+
charEncoding: "percent"
|
|
98021
|
+
}),
|
|
98022
|
+
scheduleID: encodeSimple("scheduleID", payload.scheduleID, {
|
|
98023
|
+
explode: false,
|
|
98024
|
+
charEncoding: "percent"
|
|
98025
|
+
})
|
|
98026
|
+
};
|
|
98027
|
+
const path = pathToFunc("/accounts/{accountID}/schedules/{scheduleID}")(pathParams);
|
|
98028
|
+
const headers = new Headers(compactMap({
|
|
98029
|
+
Accept: "application/json",
|
|
98030
|
+
"X-Moov-Version": encodeSimple("X-Moov-Version", client._options.xMoovVersion, { explode: false, charEncoding: "none" })
|
|
98031
|
+
}));
|
|
98032
|
+
const securityInput = await extractSecurity(client._options.security);
|
|
98033
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
98034
|
+
const context = {
|
|
98035
|
+
options: client._options,
|
|
98036
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
98037
|
+
operationID: "getSchedules",
|
|
97267
98038
|
oAuth2Scopes: null,
|
|
97268
98039
|
resolvedSecurity: requestSecurity,
|
|
97269
98040
|
securitySource: client._options.security,
|
|
@@ -97318,12 +98089,12 @@ var init_schedulingGet = __esm(() => {
|
|
|
97318
98089
|
});
|
|
97319
98090
|
|
|
97320
98091
|
// src/mcp-server/tools/schedulingGet.ts
|
|
97321
|
-
var
|
|
98092
|
+
var args133, tool$schedulingGet;
|
|
97322
98093
|
var init_schedulingGet2 = __esm(() => {
|
|
97323
98094
|
init_schedulingGet();
|
|
97324
98095
|
init_operations();
|
|
97325
98096
|
init_tools();
|
|
97326
|
-
|
|
98097
|
+
args133 = {
|
|
97327
98098
|
request: GetSchedulesRequest$inboundSchema
|
|
97328
98099
|
};
|
|
97329
98100
|
tool$schedulingGet = {
|
|
@@ -97332,9 +98103,9 @@ var init_schedulingGet2 = __esm(() => {
|
|
|
97332
98103
|
|
|
97333
98104
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
97334
98105
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
97335
|
-
args:
|
|
97336
|
-
tool: async (client,
|
|
97337
|
-
const [result, apiCall] = await schedulingGet(client,
|
|
98106
|
+
args: args133,
|
|
98107
|
+
tool: async (client, args134, ctx) => {
|
|
98108
|
+
const [result, apiCall] = await schedulingGet(client, args134.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
97338
98109
|
if (!result.ok) {
|
|
97339
98110
|
return {
|
|
97340
98111
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -97349,9 +98120,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
97349
98120
|
|
|
97350
98121
|
// src/funcs/schedulingGetOccurrance.ts
|
|
97351
98122
|
function schedulingGetOccurrance(client, request, options) {
|
|
97352
|
-
return new APIPromise($
|
|
98123
|
+
return new APIPromise($do134(client, request, options));
|
|
97353
98124
|
}
|
|
97354
|
-
async function $
|
|
98125
|
+
async function $do134(client, request, options) {
|
|
97355
98126
|
const parsed = safeParse4(request, (value) => GetScheduledOccurrenceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
97356
98127
|
if (!parsed.ok) {
|
|
97357
98128
|
return [parsed, { status: "invalid" }];
|
|
@@ -97434,12 +98205,12 @@ var init_schedulingGetOccurrance = __esm(() => {
|
|
|
97434
98205
|
});
|
|
97435
98206
|
|
|
97436
98207
|
// src/mcp-server/tools/schedulingGetOccurrance.ts
|
|
97437
|
-
var
|
|
98208
|
+
var args134, tool$schedulingGetOccurrance;
|
|
97438
98209
|
var init_schedulingGetOccurrance2 = __esm(() => {
|
|
97439
98210
|
init_schedulingGetOccurrance();
|
|
97440
98211
|
init_operations();
|
|
97441
98212
|
init_tools();
|
|
97442
|
-
|
|
98213
|
+
args134 = {
|
|
97443
98214
|
request: GetScheduledOccurrenceRequest$inboundSchema
|
|
97444
98215
|
};
|
|
97445
98216
|
tool$schedulingGetOccurrance = {
|
|
@@ -97448,9 +98219,9 @@ var init_schedulingGetOccurrance2 = __esm(() => {
|
|
|
97448
98219
|
|
|
97449
98220
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
97450
98221
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
97451
|
-
args:
|
|
97452
|
-
tool: async (client,
|
|
97453
|
-
const [result, apiCall] = await schedulingGetOccurrance(client,
|
|
98222
|
+
args: args134,
|
|
98223
|
+
tool: async (client, args135, ctx) => {
|
|
98224
|
+
const [result, apiCall] = await schedulingGetOccurrance(client, args135.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
97454
98225
|
if (!result.ok) {
|
|
97455
98226
|
return {
|
|
97456
98227
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -97465,9 +98236,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
97465
98236
|
|
|
97466
98237
|
// src/funcs/schedulingList.ts
|
|
97467
98238
|
function schedulingList(client, request, options) {
|
|
97468
|
-
return new APIPromise($
|
|
98239
|
+
return new APIPromise($do135(client, request, options));
|
|
97469
98240
|
}
|
|
97470
|
-
async function $
|
|
98241
|
+
async function $do135(client, request, options) {
|
|
97471
98242
|
const parsed = safeParse4(request, (value) => ListSchedulesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
97472
98243
|
if (!parsed.ok) {
|
|
97473
98244
|
return [parsed, { status: "invalid" }];
|
|
@@ -97551,12 +98322,12 @@ var init_schedulingList = __esm(() => {
|
|
|
97551
98322
|
});
|
|
97552
98323
|
|
|
97553
98324
|
// src/mcp-server/tools/schedulingList.ts
|
|
97554
|
-
var
|
|
98325
|
+
var args135, tool$schedulingList;
|
|
97555
98326
|
var init_schedulingList2 = __esm(() => {
|
|
97556
98327
|
init_schedulingList();
|
|
97557
98328
|
init_operations();
|
|
97558
98329
|
init_tools();
|
|
97559
|
-
|
|
98330
|
+
args135 = {
|
|
97560
98331
|
request: ListSchedulesRequest$inboundSchema
|
|
97561
98332
|
};
|
|
97562
98333
|
tool$schedulingList = {
|
|
@@ -97565,9 +98336,9 @@ var init_schedulingList2 = __esm(() => {
|
|
|
97565
98336
|
|
|
97566
98337
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
97567
98338
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
97568
|
-
args:
|
|
97569
|
-
tool: async (client,
|
|
97570
|
-
const [result, apiCall] = await schedulingList(client,
|
|
98339
|
+
args: args135,
|
|
98340
|
+
tool: async (client, args136, ctx) => {
|
|
98341
|
+
const [result, apiCall] = await schedulingList(client, args136.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
97571
98342
|
if (!result.ok) {
|
|
97572
98343
|
return {
|
|
97573
98344
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -97582,9 +98353,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
97582
98353
|
|
|
97583
98354
|
// src/funcs/schedulingUpdate.ts
|
|
97584
98355
|
function schedulingUpdate(client, request, options) {
|
|
97585
|
-
return new APIPromise($
|
|
98356
|
+
return new APIPromise($do136(client, request, options));
|
|
97586
98357
|
}
|
|
97587
|
-
async function $
|
|
98358
|
+
async function $do136(client, request, options) {
|
|
97588
98359
|
const parsed = safeParse4(request, (value) => UpdateScheduleRequest$outboundSchema.parse(value), "Input validation failed");
|
|
97589
98360
|
if (!parsed.ok) {
|
|
97590
98361
|
return [parsed, { status: "invalid" }];
|
|
@@ -97682,12 +98453,12 @@ var init_schedulingUpdate = __esm(() => {
|
|
|
97682
98453
|
});
|
|
97683
98454
|
|
|
97684
98455
|
// src/mcp-server/tools/schedulingUpdate.ts
|
|
97685
|
-
var
|
|
98456
|
+
var args136, tool$schedulingUpdate;
|
|
97686
98457
|
var init_schedulingUpdate2 = __esm(() => {
|
|
97687
98458
|
init_schedulingUpdate();
|
|
97688
98459
|
init_operations();
|
|
97689
98460
|
init_tools();
|
|
97690
|
-
|
|
98461
|
+
args136 = {
|
|
97691
98462
|
request: UpdateScheduleRequest$inboundSchema
|
|
97692
98463
|
};
|
|
97693
98464
|
tool$schedulingUpdate = {
|
|
@@ -97696,9 +98467,9 @@ var init_schedulingUpdate2 = __esm(() => {
|
|
|
97696
98467
|
|
|
97697
98468
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
97698
98469
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
97699
|
-
args:
|
|
97700
|
-
tool: async (client,
|
|
97701
|
-
const [result, apiCall] = await schedulingUpdate(client,
|
|
98470
|
+
args: args136,
|
|
98471
|
+
tool: async (client, args137, ctx) => {
|
|
98472
|
+
const [result, apiCall] = await schedulingUpdate(client, args137.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
97702
98473
|
if (!result.ok) {
|
|
97703
98474
|
return {
|
|
97704
98475
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -97713,9 +98484,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
97713
98484
|
|
|
97714
98485
|
// src/funcs/statementsGet.ts
|
|
97715
98486
|
function statementsGet(client, request, options) {
|
|
97716
|
-
return new APIPromise($
|
|
98487
|
+
return new APIPromise($do137(client, request, options));
|
|
97717
98488
|
}
|
|
97718
|
-
async function $
|
|
98489
|
+
async function $do137(client, request, options) {
|
|
97719
98490
|
const parsed = safeParse4(request, (value) => GetStatementRequest$outboundSchema.parse(value), "Input validation failed");
|
|
97720
98491
|
if (!parsed.ok) {
|
|
97721
98492
|
return [parsed, { status: "invalid" }];
|
|
@@ -97801,12 +98572,12 @@ var init_statementsGet = __esm(() => {
|
|
|
97801
98572
|
});
|
|
97802
98573
|
|
|
97803
98574
|
// src/mcp-server/tools/statementsGet.ts
|
|
97804
|
-
var
|
|
98575
|
+
var args137, tool$statementsGet;
|
|
97805
98576
|
var init_statementsGet2 = __esm(() => {
|
|
97806
98577
|
init_statementsGet();
|
|
97807
98578
|
init_operations();
|
|
97808
98579
|
init_tools();
|
|
97809
|
-
|
|
98580
|
+
args137 = {
|
|
97810
98581
|
request: GetStatementRequest$inboundSchema
|
|
97811
98582
|
};
|
|
97812
98583
|
tool$statementsGet = {
|
|
@@ -97817,9 +98588,9 @@ Use the \`Accept\` header to specify the format of the response. Supported forma
|
|
|
97817
98588
|
|
|
97818
98589
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
97819
98590
|
you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
97820
|
-
args:
|
|
97821
|
-
tool: async (client,
|
|
97822
|
-
const [result, apiCall] = await statementsGet(client,
|
|
98591
|
+
args: args137,
|
|
98592
|
+
tool: async (client, args138, ctx) => {
|
|
98593
|
+
const [result, apiCall] = await statementsGet(client, args138.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
97823
98594
|
if (!result.ok) {
|
|
97824
98595
|
return {
|
|
97825
98596
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -97834,9 +98605,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
|
97834
98605
|
|
|
97835
98606
|
// src/funcs/statementsList.ts
|
|
97836
98607
|
function statementsList(client, request, options) {
|
|
97837
|
-
return new APIPromise($
|
|
98608
|
+
return new APIPromise($do138(client, request, options));
|
|
97838
98609
|
}
|
|
97839
|
-
async function $
|
|
98610
|
+
async function $do138(client, request, options) {
|
|
97840
98611
|
const parsed = safeParse4(request, (value) => ListStatementsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
97841
98612
|
if (!parsed.ok) {
|
|
97842
98613
|
return [parsed, { status: "invalid" }];
|
|
@@ -97922,12 +98693,12 @@ var init_statementsList = __esm(() => {
|
|
|
97922
98693
|
});
|
|
97923
98694
|
|
|
97924
98695
|
// src/mcp-server/tools/statementsList.ts
|
|
97925
|
-
var
|
|
98696
|
+
var args138, tool$statementsList;
|
|
97926
98697
|
var init_statementsList2 = __esm(() => {
|
|
97927
98698
|
init_statementsList();
|
|
97928
98699
|
init_operations();
|
|
97929
98700
|
init_tools();
|
|
97930
|
-
|
|
98701
|
+
args138 = {
|
|
97931
98702
|
request: ListStatementsRequest$inboundSchema
|
|
97932
98703
|
};
|
|
97933
98704
|
tool$statementsList = {
|
|
@@ -97936,9 +98707,9 @@ var init_statementsList2 = __esm(() => {
|
|
|
97936
98707
|
|
|
97937
98708
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
97938
98709
|
you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
97939
|
-
args:
|
|
97940
|
-
tool: async (client,
|
|
97941
|
-
const [result, apiCall] = await statementsList(client,
|
|
98710
|
+
args: args138,
|
|
98711
|
+
tool: async (client, args139, ctx) => {
|
|
98712
|
+
const [result, apiCall] = await statementsList(client, args139.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
97942
98713
|
if (!result.ok) {
|
|
97943
98714
|
return {
|
|
97944
98715
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -97953,9 +98724,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
|
97953
98724
|
|
|
97954
98725
|
// src/funcs/supportCreateTicket.ts
|
|
97955
98726
|
function supportCreateTicket(client, request, options) {
|
|
97956
|
-
return new APIPromise($
|
|
98727
|
+
return new APIPromise($do139(client, request, options));
|
|
97957
98728
|
}
|
|
97958
|
-
async function $
|
|
98729
|
+
async function $do139(client, request, options) {
|
|
97959
98730
|
const parsed = safeParse4(request, (value) => CreateTicketRequest$outboundSchema.parse(value), "Input validation failed");
|
|
97960
98731
|
if (!parsed.ok) {
|
|
97961
98732
|
return [parsed, { status: "invalid" }];
|
|
@@ -98047,12 +98818,12 @@ var init_supportCreateTicket = __esm(() => {
|
|
|
98047
98818
|
});
|
|
98048
98819
|
|
|
98049
98820
|
// src/mcp-server/tools/supportCreateTicket.ts
|
|
98050
|
-
var
|
|
98821
|
+
var args139, tool$supportCreateTicket;
|
|
98051
98822
|
var init_supportCreateTicket2 = __esm(() => {
|
|
98052
98823
|
init_supportCreateTicket();
|
|
98053
98824
|
init_operations();
|
|
98054
98825
|
init_tools();
|
|
98055
|
-
|
|
98826
|
+
args139 = {
|
|
98056
98827
|
request: CreateTicketRequest$inboundSchema
|
|
98057
98828
|
};
|
|
98058
98829
|
tool$supportCreateTicket = {
|
|
@@ -98064,9 +98835,9 @@ you'll need to specify the \`/accounts/{accountID}/tickets.write\` scope.
|
|
|
98064
98835
|
|
|
98065
98836
|
If you're creating the ticket on behalf of another account, then you'll need to
|
|
98066
98837
|
specify the \`/accounts/{partnerAccountID}/tickets.write\` and \`/accounts/{accountID}/profile.read\` scopes.`,
|
|
98067
|
-
args:
|
|
98068
|
-
tool: async (client,
|
|
98069
|
-
const [result, apiCall] = await supportCreateTicket(client,
|
|
98838
|
+
args: args139,
|
|
98839
|
+
tool: async (client, args140, ctx) => {
|
|
98840
|
+
const [result, apiCall] = await supportCreateTicket(client, args140.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
98070
98841
|
if (!result.ok) {
|
|
98071
98842
|
return {
|
|
98072
98843
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -98081,9 +98852,9 @@ specify the \`/accounts/{partnerAccountID}/tickets.write\` and \`/accounts/{acco
|
|
|
98081
98852
|
|
|
98082
98853
|
// src/funcs/supportGetTicket.ts
|
|
98083
98854
|
function supportGetTicket(client, request, options) {
|
|
98084
|
-
return new APIPromise($
|
|
98855
|
+
return new APIPromise($do140(client, request, options));
|
|
98085
98856
|
}
|
|
98086
|
-
async function $
|
|
98857
|
+
async function $do140(client, request, options) {
|
|
98087
98858
|
const parsed = safeParse4(request, (value) => GetTicketRequest$outboundSchema.parse(value), "Input validation failed");
|
|
98088
98859
|
if (!parsed.ok) {
|
|
98089
98860
|
return [parsed, { status: "invalid" }];
|
|
@@ -98165,12 +98936,12 @@ var init_supportGetTicket = __esm(() => {
|
|
|
98165
98936
|
});
|
|
98166
98937
|
|
|
98167
98938
|
// src/mcp-server/tools/supportGetTicket.ts
|
|
98168
|
-
var
|
|
98939
|
+
var args140, tool$supportGetTicket;
|
|
98169
98940
|
var init_supportGetTicket2 = __esm(() => {
|
|
98170
98941
|
init_supportGetTicket();
|
|
98171
98942
|
init_operations();
|
|
98172
98943
|
init_tools();
|
|
98173
|
-
|
|
98944
|
+
args140 = {
|
|
98174
98945
|
request: GetTicketRequest$inboundSchema
|
|
98175
98946
|
};
|
|
98176
98947
|
tool$supportGetTicket = {
|
|
@@ -98182,9 +98953,9 @@ you'll need to specify the \`/accounts/{accountID}/tickets.read\` scope.
|
|
|
98182
98953
|
|
|
98183
98954
|
If you're retrieving another account's ticket, then you'll need to
|
|
98184
98955
|
specify the \`/accounts/{partnerAccountID}/tickets.read\` and \`/accounts/{accountID}/profile.read\` scopes.`,
|
|
98185
|
-
args:
|
|
98186
|
-
tool: async (client,
|
|
98187
|
-
const [result, apiCall] = await supportGetTicket(client,
|
|
98956
|
+
args: args140,
|
|
98957
|
+
tool: async (client, args141, ctx) => {
|
|
98958
|
+
const [result, apiCall] = await supportGetTicket(client, args141.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
98188
98959
|
if (!result.ok) {
|
|
98189
98960
|
return {
|
|
98190
98961
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -98199,9 +98970,9 @@ specify the \`/accounts/{partnerAccountID}/tickets.read\` and \`/accounts/{accou
|
|
|
98199
98970
|
|
|
98200
98971
|
// src/funcs/supportListTicketMessages.ts
|
|
98201
98972
|
function supportListTicketMessages(client, request, options) {
|
|
98202
|
-
return new APIPromise($
|
|
98973
|
+
return new APIPromise($do141(client, request, options));
|
|
98203
98974
|
}
|
|
98204
|
-
async function $
|
|
98975
|
+
async function $do141(client, request, options) {
|
|
98205
98976
|
const parsed = safeParse4(request, (value) => ListTicketMessagesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
98206
98977
|
if (!parsed.ok) {
|
|
98207
98978
|
return [parsed, { status: "invalid" }];
|
|
@@ -98283,12 +99054,12 @@ var init_supportListTicketMessages = __esm(() => {
|
|
|
98283
99054
|
});
|
|
98284
99055
|
|
|
98285
99056
|
// src/mcp-server/tools/supportListTicketMessages.ts
|
|
98286
|
-
var
|
|
99057
|
+
var args141, tool$supportListTicketMessages;
|
|
98287
99058
|
var init_supportListTicketMessages2 = __esm(() => {
|
|
98288
99059
|
init_supportListTicketMessages();
|
|
98289
99060
|
init_operations();
|
|
98290
99061
|
init_tools();
|
|
98291
|
-
|
|
99062
|
+
args141 = {
|
|
98292
99063
|
request: ListTicketMessagesRequest$inboundSchema
|
|
98293
99064
|
};
|
|
98294
99065
|
tool$supportListTicketMessages = {
|
|
@@ -98300,9 +99071,9 @@ you'll need to specify the \`/accounts/{accountID}/tickets.read\` scope.
|
|
|
98300
99071
|
|
|
98301
99072
|
If you're listing another account's messages, then you'll need to
|
|
98302
99073
|
specify the \`/accounts/{partnerAccountID}/tickets.read\` and \`/accounts/{accountID}/profile.read\` scopes.`,
|
|
98303
|
-
args:
|
|
98304
|
-
tool: async (client,
|
|
98305
|
-
const [result, apiCall] = await supportListTicketMessages(client,
|
|
99074
|
+
args: args141,
|
|
99075
|
+
tool: async (client, args142, ctx) => {
|
|
99076
|
+
const [result, apiCall] = await supportListTicketMessages(client, args142.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
98306
99077
|
if (!result.ok) {
|
|
98307
99078
|
return {
|
|
98308
99079
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -98317,9 +99088,9 @@ specify the \`/accounts/{partnerAccountID}/tickets.read\` and \`/accounts/{accou
|
|
|
98317
99088
|
|
|
98318
99089
|
// src/funcs/supportListTickets.ts
|
|
98319
99090
|
function supportListTickets(client, request, options) {
|
|
98320
|
-
return new APIPromise($
|
|
99091
|
+
return new APIPromise($do142(client, request, options));
|
|
98321
99092
|
}
|
|
98322
|
-
async function $
|
|
99093
|
+
async function $do142(client, request, options) {
|
|
98323
99094
|
const parsed = safeParse4(request, (value) => ListTicketsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
98324
99095
|
if (!parsed.ok) {
|
|
98325
99096
|
return [parsed, { status: "invalid" }];
|
|
@@ -98404,12 +99175,12 @@ var init_supportListTickets = __esm(() => {
|
|
|
98404
99175
|
});
|
|
98405
99176
|
|
|
98406
99177
|
// src/mcp-server/tools/supportListTickets.ts
|
|
98407
|
-
var
|
|
99178
|
+
var args142, tool$supportListTickets;
|
|
98408
99179
|
var init_supportListTickets2 = __esm(() => {
|
|
98409
99180
|
init_supportListTickets();
|
|
98410
99181
|
init_operations();
|
|
98411
99182
|
init_tools();
|
|
98412
|
-
|
|
99183
|
+
args142 = {
|
|
98413
99184
|
request: ListTicketsRequest$inboundSchema
|
|
98414
99185
|
};
|
|
98415
99186
|
tool$supportListTickets = {
|
|
@@ -98421,9 +99192,9 @@ you'll need to specify the \`/accounts/{accountID}/tickets.read\` scope.
|
|
|
98421
99192
|
|
|
98422
99193
|
If you're listing another account's tickets, then you'll need to
|
|
98423
99194
|
specify the \`/accounts/{partnerAccountID}/tickets.read\` and \`/accounts/{accountID}/profile.read\` scopes.`,
|
|
98424
|
-
args:
|
|
98425
|
-
tool: async (client,
|
|
98426
|
-
const [result, apiCall] = await supportListTickets(client,
|
|
99195
|
+
args: args142,
|
|
99196
|
+
tool: async (client, args143, ctx) => {
|
|
99197
|
+
const [result, apiCall] = await supportListTickets(client, args143.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
98427
99198
|
if (!result.ok) {
|
|
98428
99199
|
return {
|
|
98429
99200
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -98438,9 +99209,9 @@ specify the \`/accounts/{partnerAccountID}/tickets.read\` and \`/accounts/{accou
|
|
|
98438
99209
|
|
|
98439
99210
|
// src/funcs/supportUpdateTicket.ts
|
|
98440
99211
|
function supportUpdateTicket(client, request, options) {
|
|
98441
|
-
return new APIPromise($
|
|
99212
|
+
return new APIPromise($do143(client, request, options));
|
|
98442
99213
|
}
|
|
98443
|
-
async function $
|
|
99214
|
+
async function $do143(client, request, options) {
|
|
98444
99215
|
const parsed = safeParse4(request, (value) => UpdateTicketRequest$outboundSchema.parse(value), "Input validation failed");
|
|
98445
99216
|
if (!parsed.ok) {
|
|
98446
99217
|
return [parsed, { status: "invalid" }];
|
|
@@ -98536,12 +99307,12 @@ var init_supportUpdateTicket = __esm(() => {
|
|
|
98536
99307
|
});
|
|
98537
99308
|
|
|
98538
99309
|
// src/mcp-server/tools/supportUpdateTicket.ts
|
|
98539
|
-
var
|
|
99310
|
+
var args143, tool$supportUpdateTicket;
|
|
98540
99311
|
var init_supportUpdateTicket2 = __esm(() => {
|
|
98541
99312
|
init_supportUpdateTicket();
|
|
98542
99313
|
init_operations();
|
|
98543
99314
|
init_tools();
|
|
98544
|
-
|
|
99315
|
+
args143 = {
|
|
98545
99316
|
request: UpdateTicketRequest$inboundSchema
|
|
98546
99317
|
};
|
|
98547
99318
|
tool$supportUpdateTicket = {
|
|
@@ -98553,9 +99324,9 @@ you'll need to specify the \`/accounts/{accountID}/tickets.write\` scope.
|
|
|
98553
99324
|
|
|
98554
99325
|
If you're updating the ticket on behalf of another account, then you'll need to
|
|
98555
99326
|
specify the \`/accounts/{partnerAccountID}/tickets.write\` and \`/accounts/{accountID}/profile.read\` scopes.`,
|
|
98556
|
-
args:
|
|
98557
|
-
tool: async (client,
|
|
98558
|
-
const [result, apiCall] = await supportUpdateTicket(client,
|
|
99327
|
+
args: args143,
|
|
99328
|
+
tool: async (client, args144, ctx) => {
|
|
99329
|
+
const [result, apiCall] = await supportUpdateTicket(client, args144.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
98559
99330
|
if (!result.ok) {
|
|
98560
99331
|
return {
|
|
98561
99332
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -98570,9 +99341,9 @@ specify the \`/accounts/{partnerAccountID}/tickets.write\` and \`/accounts/{acco
|
|
|
98570
99341
|
|
|
98571
99342
|
// src/funcs/sweepsCreateConfig.ts
|
|
98572
99343
|
function sweepsCreateConfig(client, request, options) {
|
|
98573
|
-
return new APIPromise($
|
|
99344
|
+
return new APIPromise($do144(client, request, options));
|
|
98574
99345
|
}
|
|
98575
|
-
async function $
|
|
99346
|
+
async function $do144(client, request, options) {
|
|
98576
99347
|
const parsed = safeParse4(request, (value) => CreateSweepConfigRequest$outboundSchema.parse(value), "Input validation failed");
|
|
98577
99348
|
if (!parsed.ok) {
|
|
98578
99349
|
return [parsed, { status: "invalid" }];
|
|
@@ -98664,12 +99435,12 @@ var init_sweepsCreateConfig = __esm(() => {
|
|
|
98664
99435
|
});
|
|
98665
99436
|
|
|
98666
99437
|
// src/mcp-server/tools/sweepsCreateConfig.ts
|
|
98667
|
-
var
|
|
99438
|
+
var args144, tool$sweepsCreateConfig;
|
|
98668
99439
|
var init_sweepsCreateConfig2 = __esm(() => {
|
|
98669
99440
|
init_sweepsCreateConfig();
|
|
98670
99441
|
init_operations();
|
|
98671
99442
|
init_tools();
|
|
98672
|
-
|
|
99443
|
+
args144 = {
|
|
98673
99444
|
request: CreateSweepConfigRequest$inboundSchema
|
|
98674
99445
|
};
|
|
98675
99446
|
tool$sweepsCreateConfig = {
|
|
@@ -98678,9 +99449,9 @@ var init_sweepsCreateConfig2 = __esm(() => {
|
|
|
98678
99449
|
|
|
98679
99450
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
98680
99451
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
98681
|
-
args:
|
|
98682
|
-
tool: async (client,
|
|
98683
|
-
const [result, apiCall] = await sweepsCreateConfig(client,
|
|
99452
|
+
args: args144,
|
|
99453
|
+
tool: async (client, args145, ctx) => {
|
|
99454
|
+
const [result, apiCall] = await sweepsCreateConfig(client, args145.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
98684
99455
|
if (!result.ok) {
|
|
98685
99456
|
return {
|
|
98686
99457
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -98695,9 +99466,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
98695
99466
|
|
|
98696
99467
|
// src/funcs/sweepsGet.ts
|
|
98697
99468
|
function sweepsGet(client, request, options) {
|
|
98698
|
-
return new APIPromise($
|
|
99469
|
+
return new APIPromise($do145(client, request, options));
|
|
98699
99470
|
}
|
|
98700
|
-
async function $
|
|
99471
|
+
async function $do145(client, request, options) {
|
|
98701
99472
|
const parsed = safeParse4(request, (value) => GetSweepRequest$outboundSchema.parse(value), "Input validation failed");
|
|
98702
99473
|
if (!parsed.ok) {
|
|
98703
99474
|
return [parsed, { status: "invalid" }];
|
|
@@ -98783,12 +99554,12 @@ var init_sweepsGet = __esm(() => {
|
|
|
98783
99554
|
});
|
|
98784
99555
|
|
|
98785
99556
|
// src/mcp-server/tools/sweepsGet.ts
|
|
98786
|
-
var
|
|
99557
|
+
var args145, tool$sweepsGet;
|
|
98787
99558
|
var init_sweepsGet2 = __esm(() => {
|
|
98788
99559
|
init_sweepsGet();
|
|
98789
99560
|
init_operations();
|
|
98790
99561
|
init_tools();
|
|
98791
|
-
|
|
99562
|
+
args145 = {
|
|
98792
99563
|
request: GetSweepRequest$inboundSchema
|
|
98793
99564
|
};
|
|
98794
99565
|
tool$sweepsGet = {
|
|
@@ -98797,9 +99568,9 @@ var init_sweepsGet2 = __esm(() => {
|
|
|
98797
99568
|
|
|
98798
99569
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
98799
99570
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
98800
|
-
args:
|
|
98801
|
-
tool: async (client,
|
|
98802
|
-
const [result, apiCall] = await sweepsGet(client,
|
|
99571
|
+
args: args145,
|
|
99572
|
+
tool: async (client, args146, ctx) => {
|
|
99573
|
+
const [result, apiCall] = await sweepsGet(client, args146.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
98803
99574
|
if (!result.ok) {
|
|
98804
99575
|
return {
|
|
98805
99576
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -98814,9 +99585,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
98814
99585
|
|
|
98815
99586
|
// src/funcs/sweepsGetConfig.ts
|
|
98816
99587
|
function sweepsGetConfig(client, request, options) {
|
|
98817
|
-
return new APIPromise($
|
|
99588
|
+
return new APIPromise($do146(client, request, options));
|
|
98818
99589
|
}
|
|
98819
|
-
async function $
|
|
99590
|
+
async function $do146(client, request, options) {
|
|
98820
99591
|
const parsed = safeParse4(request, (value) => GetSweepConfigRequest$outboundSchema.parse(value), "Input validation failed");
|
|
98821
99592
|
if (!parsed.ok) {
|
|
98822
99593
|
return [parsed, { status: "invalid" }];
|
|
@@ -98898,12 +99669,12 @@ var init_sweepsGetConfig = __esm(() => {
|
|
|
98898
99669
|
});
|
|
98899
99670
|
|
|
98900
99671
|
// src/mcp-server/tools/sweepsGetConfig.ts
|
|
98901
|
-
var
|
|
99672
|
+
var args146, tool$sweepsGetConfig;
|
|
98902
99673
|
var init_sweepsGetConfig2 = __esm(() => {
|
|
98903
99674
|
init_sweepsGetConfig();
|
|
98904
99675
|
init_operations();
|
|
98905
99676
|
init_tools();
|
|
98906
|
-
|
|
99677
|
+
args146 = {
|
|
98907
99678
|
request: GetSweepConfigRequest$inboundSchema
|
|
98908
99679
|
};
|
|
98909
99680
|
tool$sweepsGetConfig = {
|
|
@@ -98912,9 +99683,9 @@ var init_sweepsGetConfig2 = __esm(() => {
|
|
|
98912
99683
|
|
|
98913
99684
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
98914
99685
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
98915
|
-
args:
|
|
98916
|
-
tool: async (client,
|
|
98917
|
-
const [result, apiCall] = await sweepsGetConfig(client,
|
|
99686
|
+
args: args146,
|
|
99687
|
+
tool: async (client, args147, ctx) => {
|
|
99688
|
+
const [result, apiCall] = await sweepsGetConfig(client, args147.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
98918
99689
|
if (!result.ok) {
|
|
98919
99690
|
return {
|
|
98920
99691
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -98929,9 +99700,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
98929
99700
|
|
|
98930
99701
|
// src/funcs/sweepsList.ts
|
|
98931
99702
|
function sweepsList(client, request, options) {
|
|
98932
|
-
return new APIPromise($
|
|
99703
|
+
return new APIPromise($do147(client, request, options));
|
|
98933
99704
|
}
|
|
98934
|
-
async function $
|
|
99705
|
+
async function $do147(client, request, options) {
|
|
98935
99706
|
const parsed = safeParse4(request, (value) => ListSweepsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
98936
99707
|
if (!parsed.ok) {
|
|
98937
99708
|
return [parsed, { status: "invalid" }];
|
|
@@ -99020,12 +99791,12 @@ var init_sweepsList = __esm(() => {
|
|
|
99020
99791
|
});
|
|
99021
99792
|
|
|
99022
99793
|
// src/mcp-server/tools/sweepsList.ts
|
|
99023
|
-
var
|
|
99794
|
+
var args147, tool$sweepsList;
|
|
99024
99795
|
var init_sweepsList2 = __esm(() => {
|
|
99025
99796
|
init_sweepsList();
|
|
99026
99797
|
init_operations();
|
|
99027
99798
|
init_tools();
|
|
99028
|
-
|
|
99799
|
+
args147 = {
|
|
99029
99800
|
request: ListSweepsRequest$inboundSchema
|
|
99030
99801
|
};
|
|
99031
99802
|
tool$sweepsList = {
|
|
@@ -99034,9 +99805,9 @@ var init_sweepsList2 = __esm(() => {
|
|
|
99034
99805
|
|
|
99035
99806
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
99036
99807
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
99037
|
-
args:
|
|
99038
|
-
tool: async (client,
|
|
99039
|
-
const [result, apiCall] = await sweepsList(client,
|
|
99808
|
+
args: args147,
|
|
99809
|
+
tool: async (client, args148, ctx) => {
|
|
99810
|
+
const [result, apiCall] = await sweepsList(client, args148.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
99040
99811
|
if (!result.ok) {
|
|
99041
99812
|
return {
|
|
99042
99813
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -99051,9 +99822,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
99051
99822
|
|
|
99052
99823
|
// src/funcs/sweepsListConfigs.ts
|
|
99053
99824
|
function sweepsListConfigs(client, request, options) {
|
|
99054
|
-
return new APIPromise($
|
|
99825
|
+
return new APIPromise($do148(client, request, options));
|
|
99055
99826
|
}
|
|
99056
|
-
async function $
|
|
99827
|
+
async function $do148(client, request, options) {
|
|
99057
99828
|
const parsed = safeParse4(request, (value) => ListSweepConfigsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
99058
99829
|
if (!parsed.ok) {
|
|
99059
99830
|
return [parsed, { status: "invalid" }];
|
|
@@ -99131,12 +99902,12 @@ var init_sweepsListConfigs = __esm(() => {
|
|
|
99131
99902
|
});
|
|
99132
99903
|
|
|
99133
99904
|
// src/mcp-server/tools/sweepsListConfigs.ts
|
|
99134
|
-
var
|
|
99905
|
+
var args148, tool$sweepsListConfigs;
|
|
99135
99906
|
var init_sweepsListConfigs2 = __esm(() => {
|
|
99136
99907
|
init_sweepsListConfigs();
|
|
99137
99908
|
init_operations();
|
|
99138
99909
|
init_tools();
|
|
99139
|
-
|
|
99910
|
+
args148 = {
|
|
99140
99911
|
request: ListSweepConfigsRequest$inboundSchema
|
|
99141
99912
|
};
|
|
99142
99913
|
tool$sweepsListConfigs = {
|
|
@@ -99145,9 +99916,9 @@ var init_sweepsListConfigs2 = __esm(() => {
|
|
|
99145
99916
|
|
|
99146
99917
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
99147
99918
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
99148
|
-
args:
|
|
99149
|
-
tool: async (client,
|
|
99150
|
-
const [result, apiCall] = await sweepsListConfigs(client,
|
|
99919
|
+
args: args148,
|
|
99920
|
+
tool: async (client, args149, ctx) => {
|
|
99921
|
+
const [result, apiCall] = await sweepsListConfigs(client, args149.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
99151
99922
|
if (!result.ok) {
|
|
99152
99923
|
return {
|
|
99153
99924
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -99162,9 +99933,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
99162
99933
|
|
|
99163
99934
|
// src/funcs/sweepsUpdateConfig.ts
|
|
99164
99935
|
function sweepsUpdateConfig(client, request, options) {
|
|
99165
|
-
return new APIPromise($
|
|
99936
|
+
return new APIPromise($do149(client, request, options));
|
|
99166
99937
|
}
|
|
99167
|
-
async function $
|
|
99938
|
+
async function $do149(client, request, options) {
|
|
99168
99939
|
const parsed = safeParse4(request, (value) => UpdateSweepConfigRequest$outboundSchema.parse(value), "Input validation failed");
|
|
99169
99940
|
if (!parsed.ok) {
|
|
99170
99941
|
return [parsed, { status: "invalid" }];
|
|
@@ -99260,12 +100031,12 @@ var init_sweepsUpdateConfig = __esm(() => {
|
|
|
99260
100031
|
});
|
|
99261
100032
|
|
|
99262
100033
|
// src/mcp-server/tools/sweepsUpdateConfig.ts
|
|
99263
|
-
var
|
|
100034
|
+
var args149, tool$sweepsUpdateConfig;
|
|
99264
100035
|
var init_sweepsUpdateConfig2 = __esm(() => {
|
|
99265
100036
|
init_sweepsUpdateConfig();
|
|
99266
100037
|
init_operations();
|
|
99267
100038
|
init_tools();
|
|
99268
|
-
|
|
100039
|
+
args149 = {
|
|
99269
100040
|
request: UpdateSweepConfigRequest$inboundSchema
|
|
99270
100041
|
};
|
|
99271
100042
|
tool$sweepsUpdateConfig = {
|
|
@@ -99274,9 +100045,9 @@ var init_sweepsUpdateConfig2 = __esm(() => {
|
|
|
99274
100045
|
|
|
99275
100046
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
99276
100047
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
99277
|
-
args:
|
|
99278
|
-
tool: async (client,
|
|
99279
|
-
const [result, apiCall] = await sweepsUpdateConfig(client,
|
|
100048
|
+
args: args149,
|
|
100049
|
+
tool: async (client, args150, ctx) => {
|
|
100050
|
+
const [result, apiCall] = await sweepsUpdateConfig(client, args150.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
99280
100051
|
if (!result.ok) {
|
|
99281
100052
|
return {
|
|
99282
100053
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -99291,9 +100062,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
99291
100062
|
|
|
99292
100063
|
// src/funcs/terminalApplicationsCreate.ts
|
|
99293
100064
|
function terminalApplicationsCreate(client, request, options) {
|
|
99294
|
-
return new APIPromise($
|
|
100065
|
+
return new APIPromise($do150(client, request, options));
|
|
99295
100066
|
}
|
|
99296
|
-
async function $
|
|
100067
|
+
async function $do150(client, request, options) {
|
|
99297
100068
|
const parsed = safeParse4(request, (value) => CreateTerminalApplication$outboundSchema.parse(value), "Input validation failed");
|
|
99298
100069
|
if (!parsed.ok) {
|
|
99299
100070
|
return [parsed, { status: "invalid" }];
|
|
@@ -99382,12 +100153,12 @@ var init_terminalApplicationsCreate = __esm(() => {
|
|
|
99382
100153
|
});
|
|
99383
100154
|
|
|
99384
100155
|
// src/mcp-server/tools/terminalApplicationsCreate.ts
|
|
99385
|
-
var
|
|
100156
|
+
var args150, tool$terminalApplicationsCreate;
|
|
99386
100157
|
var init_terminalApplicationsCreate2 = __esm(() => {
|
|
99387
100158
|
init_terminalApplicationsCreate();
|
|
99388
100159
|
init_components();
|
|
99389
100160
|
init_tools();
|
|
99390
|
-
|
|
100161
|
+
args150 = {
|
|
99391
100162
|
request: CreateTerminalApplication$inboundSchema
|
|
99392
100163
|
};
|
|
99393
100164
|
tool$terminalApplicationsCreate = {
|
|
@@ -99396,9 +100167,9 @@ var init_terminalApplicationsCreate2 = __esm(() => {
|
|
|
99396
100167
|
|
|
99397
100168
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
99398
100169
|
you'll need to specify the \`/terminal-applications.write\` scope.`,
|
|
99399
|
-
args:
|
|
99400
|
-
tool: async (client,
|
|
99401
|
-
const [result, apiCall] = await terminalApplicationsCreate(client,
|
|
100170
|
+
args: args150,
|
|
100171
|
+
tool: async (client, args151, ctx) => {
|
|
100172
|
+
const [result, apiCall] = await terminalApplicationsCreate(client, args151.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
99402
100173
|
if (!result.ok) {
|
|
99403
100174
|
return {
|
|
99404
100175
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -99413,9 +100184,9 @@ you'll need to specify the \`/terminal-applications.write\` scope.`,
|
|
|
99413
100184
|
|
|
99414
100185
|
// src/funcs/terminalApplicationsCreateVersion.ts
|
|
99415
100186
|
function terminalApplicationsCreateVersion(client, request, options) {
|
|
99416
|
-
return new APIPromise($
|
|
100187
|
+
return new APIPromise($do151(client, request, options));
|
|
99417
100188
|
}
|
|
99418
|
-
async function $
|
|
100189
|
+
async function $do151(client, request, options) {
|
|
99419
100190
|
const parsed = safeParse4(request, (value) => CreateTerminalApplicationVersionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
99420
100191
|
if (!parsed.ok) {
|
|
99421
100192
|
return [parsed, { status: "invalid" }];
|
|
@@ -99505,12 +100276,12 @@ var init_terminalApplicationsCreateVersion = __esm(() => {
|
|
|
99505
100276
|
});
|
|
99506
100277
|
|
|
99507
100278
|
// src/mcp-server/tools/terminalApplicationsCreateVersion.ts
|
|
99508
|
-
var
|
|
100279
|
+
var args151, tool$terminalApplicationsCreateVersion;
|
|
99509
100280
|
var init_terminalApplicationsCreateVersion2 = __esm(() => {
|
|
99510
100281
|
init_terminalApplicationsCreateVersion();
|
|
99511
100282
|
init_operations();
|
|
99512
100283
|
init_tools();
|
|
99513
|
-
|
|
100284
|
+
args151 = {
|
|
99514
100285
|
request: CreateTerminalApplicationVersionRequest$inboundSchema
|
|
99515
100286
|
};
|
|
99516
100287
|
tool$terminalApplicationsCreateVersion = {
|
|
@@ -99519,9 +100290,9 @@ var init_terminalApplicationsCreateVersion2 = __esm(() => {
|
|
|
99519
100290
|
|
|
99520
100291
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
99521
100292
|
you'll need to specify the \`/terminal-applications.write\` scope.`,
|
|
99522
|
-
args:
|
|
99523
|
-
tool: async (client,
|
|
99524
|
-
const [result, apiCall] = await terminalApplicationsCreateVersion(client,
|
|
100293
|
+
args: args151,
|
|
100294
|
+
tool: async (client, args152, ctx) => {
|
|
100295
|
+
const [result, apiCall] = await terminalApplicationsCreateVersion(client, args152.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
99525
100296
|
if (!result.ok) {
|
|
99526
100297
|
return {
|
|
99527
100298
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -99536,9 +100307,9 @@ you'll need to specify the \`/terminal-applications.write\` scope.`,
|
|
|
99536
100307
|
|
|
99537
100308
|
// src/funcs/terminalApplicationsDelete.ts
|
|
99538
100309
|
function terminalApplicationsDelete(client, request, options) {
|
|
99539
|
-
return new APIPromise($
|
|
100310
|
+
return new APIPromise($do152(client, request, options));
|
|
99540
100311
|
}
|
|
99541
|
-
async function $
|
|
100312
|
+
async function $do152(client, request, options) {
|
|
99542
100313
|
const parsed = safeParse4(request, (value) => DeleteTerminalApplicationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
99543
100314
|
if (!parsed.ok) {
|
|
99544
100315
|
return [parsed, { status: "invalid" }];
|
|
@@ -99622,12 +100393,12 @@ var init_terminalApplicationsDelete = __esm(() => {
|
|
|
99622
100393
|
});
|
|
99623
100394
|
|
|
99624
100395
|
// src/mcp-server/tools/terminalApplicationsDelete.ts
|
|
99625
|
-
var
|
|
100396
|
+
var args152, tool$terminalApplicationsDelete;
|
|
99626
100397
|
var init_terminalApplicationsDelete2 = __esm(() => {
|
|
99627
100398
|
init_terminalApplicationsDelete();
|
|
99628
100399
|
init_operations();
|
|
99629
100400
|
init_tools();
|
|
99630
|
-
|
|
100401
|
+
args152 = {
|
|
99631
100402
|
request: DeleteTerminalApplicationRequest$inboundSchema
|
|
99632
100403
|
};
|
|
99633
100404
|
tool$terminalApplicationsDelete = {
|
|
@@ -99636,9 +100407,9 @@ var init_terminalApplicationsDelete2 = __esm(() => {
|
|
|
99636
100407
|
|
|
99637
100408
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
99638
100409
|
you'll need to specify the \`/terminal-applications.write\` scope.`,
|
|
99639
|
-
args:
|
|
99640
|
-
tool: async (client,
|
|
99641
|
-
const [result, apiCall] = await terminalApplicationsDelete(client,
|
|
100410
|
+
args: args152,
|
|
100411
|
+
tool: async (client, args153, ctx) => {
|
|
100412
|
+
const [result, apiCall] = await terminalApplicationsDelete(client, args153.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
99642
100413
|
if (!result.ok) {
|
|
99643
100414
|
return {
|
|
99644
100415
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -99652,9 +100423,9 @@ you'll need to specify the \`/terminal-applications.write\` scope.`,
|
|
|
99652
100423
|
|
|
99653
100424
|
// src/funcs/terminalApplicationsGet.ts
|
|
99654
100425
|
function terminalApplicationsGet(client, request, options) {
|
|
99655
|
-
return new APIPromise($
|
|
100426
|
+
return new APIPromise($do153(client, request, options));
|
|
99656
100427
|
}
|
|
99657
|
-
async function $
|
|
100428
|
+
async function $do153(client, request, options) {
|
|
99658
100429
|
const parsed = safeParse4(request, (value) => GetTerminalApplicationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
99659
100430
|
if (!parsed.ok) {
|
|
99660
100431
|
return [parsed, { status: "invalid" }];
|
|
@@ -99729,12 +100500,12 @@ var init_terminalApplicationsGet = __esm(() => {
|
|
|
99729
100500
|
});
|
|
99730
100501
|
|
|
99731
100502
|
// src/mcp-server/tools/terminalApplicationsGet.ts
|
|
99732
|
-
var
|
|
100503
|
+
var args153, tool$terminalApplicationsGet;
|
|
99733
100504
|
var init_terminalApplicationsGet2 = __esm(() => {
|
|
99734
100505
|
init_terminalApplicationsGet();
|
|
99735
100506
|
init_operations();
|
|
99736
100507
|
init_tools();
|
|
99737
|
-
|
|
100508
|
+
args153 = {
|
|
99738
100509
|
request: GetTerminalApplicationRequest$inboundSchema
|
|
99739
100510
|
};
|
|
99740
100511
|
tool$terminalApplicationsGet = {
|
|
@@ -99743,9 +100514,9 @@ var init_terminalApplicationsGet2 = __esm(() => {
|
|
|
99743
100514
|
|
|
99744
100515
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
99745
100516
|
you'll need to specify the \`/terminal-applications.read\` scope.`,
|
|
99746
|
-
args:
|
|
99747
|
-
tool: async (client,
|
|
99748
|
-
const [result, apiCall] = await terminalApplicationsGet(client,
|
|
100517
|
+
args: args153,
|
|
100518
|
+
tool: async (client, args154, ctx) => {
|
|
100519
|
+
const [result, apiCall] = await terminalApplicationsGet(client, args154.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
99749
100520
|
if (!result.ok) {
|
|
99750
100521
|
return {
|
|
99751
100522
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -99760,9 +100531,9 @@ you'll need to specify the \`/terminal-applications.read\` scope.`,
|
|
|
99760
100531
|
|
|
99761
100532
|
// src/funcs/terminalApplicationsList.ts
|
|
99762
100533
|
function terminalApplicationsList(client, _request, options) {
|
|
99763
|
-
return new APIPromise($
|
|
100534
|
+
return new APIPromise($do154(client, _request, options));
|
|
99764
100535
|
}
|
|
99765
|
-
async function $
|
|
100536
|
+
async function $do154(client, _request, options) {
|
|
99766
100537
|
const path = pathToFunc("/terminal-applications")();
|
|
99767
100538
|
const headers = new Headers(compactMap({
|
|
99768
100539
|
Accept: "application/json",
|
|
@@ -99826,12 +100597,12 @@ var init_terminalApplicationsList = __esm(() => {
|
|
|
99826
100597
|
});
|
|
99827
100598
|
|
|
99828
100599
|
// src/mcp-server/tools/terminalApplicationsList.ts
|
|
99829
|
-
var
|
|
100600
|
+
var args154, tool$terminalApplicationsList;
|
|
99830
100601
|
var init_terminalApplicationsList2 = __esm(() => {
|
|
99831
100602
|
init_terminalApplicationsList();
|
|
99832
100603
|
init_operations();
|
|
99833
100604
|
init_tools();
|
|
99834
|
-
|
|
100605
|
+
args154 = {
|
|
99835
100606
|
request: ListTerminalApplicationsRequest$inboundSchema
|
|
99836
100607
|
};
|
|
99837
100608
|
tool$terminalApplicationsList = {
|
|
@@ -99840,9 +100611,9 @@ var init_terminalApplicationsList2 = __esm(() => {
|
|
|
99840
100611
|
|
|
99841
100612
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
99842
100613
|
you'll need to specify the \`/terminal-applications.read\` scope.`,
|
|
99843
|
-
args:
|
|
99844
|
-
tool: async (client,
|
|
99845
|
-
const [result, apiCall] = await terminalApplicationsList(client,
|
|
100614
|
+
args: args154,
|
|
100615
|
+
tool: async (client, args155, ctx) => {
|
|
100616
|
+
const [result, apiCall] = await terminalApplicationsList(client, args155.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
99846
100617
|
if (!result.ok) {
|
|
99847
100618
|
return {
|
|
99848
100619
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -99857,9 +100628,9 @@ you'll need to specify the \`/terminal-applications.read\` scope.`,
|
|
|
99857
100628
|
|
|
99858
100629
|
// src/funcs/transfersCreate.ts
|
|
99859
100630
|
function transfersCreate(client, request, options) {
|
|
99860
|
-
return new APIPromise($
|
|
100631
|
+
return new APIPromise($do155(client, request, options));
|
|
99861
100632
|
}
|
|
99862
|
-
async function $
|
|
100633
|
+
async function $do155(client, request, options) {
|
|
99863
100634
|
const parsed = safeParse4(request, (value) => CreateTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
99864
100635
|
if (!parsed.ok) {
|
|
99865
100636
|
return [parsed, { status: "invalid" }];
|
|
@@ -99952,12 +100723,12 @@ var init_transfersCreate = __esm(() => {
|
|
|
99952
100723
|
});
|
|
99953
100724
|
|
|
99954
100725
|
// src/mcp-server/tools/transfersCreate.ts
|
|
99955
|
-
var
|
|
100726
|
+
var args155, tool$transfersCreate;
|
|
99956
100727
|
var init_transfersCreate2 = __esm(() => {
|
|
99957
100728
|
init_transfersCreate();
|
|
99958
100729
|
init_operations();
|
|
99959
100730
|
init_tools();
|
|
99960
|
-
|
|
100731
|
+
args155 = {
|
|
99961
100732
|
request: CreateTransferRequest$inboundSchema
|
|
99962
100733
|
};
|
|
99963
100734
|
tool$transfersCreate = {
|
|
@@ -99968,9 +100739,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
|
|
|
99968
100739
|
|
|
99969
100740
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
99970
100741
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
99971
|
-
args:
|
|
99972
|
-
tool: async (client,
|
|
99973
|
-
const [result, apiCall] = await transfersCreate(client,
|
|
100742
|
+
args: args155,
|
|
100743
|
+
tool: async (client, args156, ctx) => {
|
|
100744
|
+
const [result, apiCall] = await transfersCreate(client, args156.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
99974
100745
|
if (!result.ok) {
|
|
99975
100746
|
return {
|
|
99976
100747
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -99985,9 +100756,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
99985
100756
|
|
|
99986
100757
|
// src/funcs/transfersCreateCancellation.ts
|
|
99987
100758
|
function transfersCreateCancellation(client, request, options) {
|
|
99988
|
-
return new APIPromise($
|
|
100759
|
+
return new APIPromise($do156(client, request, options));
|
|
99989
100760
|
}
|
|
99990
|
-
async function $
|
|
100761
|
+
async function $do156(client, request, options) {
|
|
99991
100762
|
const parsed = safeParse4(request, (value) => CreateCancellationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
99992
100763
|
if (!parsed.ok) {
|
|
99993
100764
|
return [parsed, { status: "invalid" }];
|
|
@@ -100070,12 +100841,12 @@ var init_transfersCreateCancellation = __esm(() => {
|
|
|
100070
100841
|
});
|
|
100071
100842
|
|
|
100072
100843
|
// src/mcp-server/tools/transfersCreateCancellation.ts
|
|
100073
|
-
var
|
|
100844
|
+
var args156, tool$transfersCreateCancellation;
|
|
100074
100845
|
var init_transfersCreateCancellation2 = __esm(() => {
|
|
100075
100846
|
init_transfersCreateCancellation();
|
|
100076
100847
|
init_operations();
|
|
100077
100848
|
init_tools();
|
|
100078
|
-
|
|
100849
|
+
args156 = {
|
|
100079
100850
|
request: CreateCancellationRequest$inboundSchema
|
|
100080
100851
|
};
|
|
100081
100852
|
tool$transfersCreateCancellation = {
|
|
@@ -100084,9 +100855,9 @@ var init_transfersCreateCancellation2 = __esm(() => {
|
|
|
100084
100855
|
|
|
100085
100856
|
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
100086
100857
|
to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
100087
|
-
args:
|
|
100088
|
-
tool: async (client,
|
|
100089
|
-
const [result, apiCall] = await transfersCreateCancellation(client,
|
|
100858
|
+
args: args156,
|
|
100859
|
+
tool: async (client, args157, ctx) => {
|
|
100860
|
+
const [result, apiCall] = await transfersCreateCancellation(client, args157.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
100090
100861
|
if (!result.ok) {
|
|
100091
100862
|
return {
|
|
100092
100863
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -100101,9 +100872,9 @@ var init_transfersCreateCancellation2 = __esm(() => {
|
|
|
100101
100872
|
|
|
100102
100873
|
// src/funcs/transfersCreateReversal.ts
|
|
100103
100874
|
function transfersCreateReversal(client, request, options) {
|
|
100104
|
-
return new APIPromise($
|
|
100875
|
+
return new APIPromise($do157(client, request, options));
|
|
100105
100876
|
}
|
|
100106
|
-
async function $
|
|
100877
|
+
async function $do157(client, request, options) {
|
|
100107
100878
|
const parsed = safeParse4(request, (value) => CreateReversalRequest$outboundSchema.parse(value), "Input validation failed");
|
|
100108
100879
|
if (!parsed.ok) {
|
|
100109
100880
|
return [parsed, { status: "invalid" }];
|
|
@@ -100202,12 +100973,12 @@ var init_transfersCreateReversal = __esm(() => {
|
|
|
100202
100973
|
});
|
|
100203
100974
|
|
|
100204
100975
|
// src/mcp-server/tools/transfersCreateReversal.ts
|
|
100205
|
-
var
|
|
100976
|
+
var args157, tool$transfersCreateReversal;
|
|
100206
100977
|
var init_transfersCreateReversal2 = __esm(() => {
|
|
100207
100978
|
init_transfersCreateReversal();
|
|
100208
100979
|
init_operations();
|
|
100209
100980
|
init_tools();
|
|
100210
|
-
|
|
100981
|
+
args157 = {
|
|
100211
100982
|
request: CreateReversalRequest$inboundSchema
|
|
100212
100983
|
};
|
|
100213
100984
|
tool$transfersCreateReversal = {
|
|
@@ -100218,9 +100989,9 @@ to learn more.
|
|
|
100218
100989
|
|
|
100219
100990
|
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
100220
100991
|
to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
100221
|
-
args:
|
|
100222
|
-
tool: async (client,
|
|
100223
|
-
const [result, apiCall] = await transfersCreateReversal(client,
|
|
100992
|
+
args: args157,
|
|
100993
|
+
tool: async (client, args158, ctx) => {
|
|
100994
|
+
const [result, apiCall] = await transfersCreateReversal(client, args158.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
100224
100995
|
if (!result.ok) {
|
|
100225
100996
|
return {
|
|
100226
100997
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -100235,9 +101006,9 @@ to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
100235
101006
|
|
|
100236
101007
|
// src/funcs/transfersGenerateOptions.ts
|
|
100237
101008
|
function transfersGenerateOptions(client, request, options) {
|
|
100238
|
-
return new APIPromise($
|
|
101009
|
+
return new APIPromise($do158(client, request, options));
|
|
100239
101010
|
}
|
|
100240
|
-
async function $
|
|
101011
|
+
async function $do158(client, request, options) {
|
|
100241
101012
|
const parsed = safeParse4(request, (value) => CreateTransferOptionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
100242
101013
|
if (!parsed.ok) {
|
|
100243
101014
|
return [parsed, { status: "invalid" }];
|
|
@@ -100321,12 +101092,12 @@ var init_transfersGenerateOptions = __esm(() => {
|
|
|
100321
101092
|
});
|
|
100322
101093
|
|
|
100323
101094
|
// src/mcp-server/tools/transfersGenerateOptions.ts
|
|
100324
|
-
var
|
|
101095
|
+
var args158, tool$transfersGenerateOptions;
|
|
100325
101096
|
var init_transfersGenerateOptions2 = __esm(() => {
|
|
100326
101097
|
init_transfersGenerateOptions();
|
|
100327
101098
|
init_operations();
|
|
100328
101099
|
init_tools();
|
|
100329
|
-
|
|
101100
|
+
args158 = {
|
|
100330
101101
|
request: CreateTransferOptionsRequest$inboundSchema
|
|
100331
101102
|
};
|
|
100332
101103
|
tool$transfersGenerateOptions = {
|
|
@@ -100340,9 +101111,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
|
|
|
100340
101111
|
|
|
100341
101112
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
100342
101113
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
100343
|
-
args:
|
|
100344
|
-
tool: async (client,
|
|
100345
|
-
const [result, apiCall] = await transfersGenerateOptions(client,
|
|
101114
|
+
args: args158,
|
|
101115
|
+
tool: async (client, args159, ctx) => {
|
|
101116
|
+
const [result, apiCall] = await transfersGenerateOptions(client, args159.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
100346
101117
|
if (!result.ok) {
|
|
100347
101118
|
return {
|
|
100348
101119
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -100357,9 +101128,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
100357
101128
|
|
|
100358
101129
|
// src/funcs/transfersGet.ts
|
|
100359
101130
|
function transfersGet(client, request, options) {
|
|
100360
|
-
return new APIPromise($
|
|
101131
|
+
return new APIPromise($do159(client, request, options));
|
|
100361
101132
|
}
|
|
100362
|
-
async function $
|
|
101133
|
+
async function $do159(client, request, options) {
|
|
100363
101134
|
const parsed = safeParse4(request, (value) => GetTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
100364
101135
|
if (!parsed.ok) {
|
|
100365
101136
|
return [parsed, { status: "invalid" }];
|
|
@@ -100441,12 +101212,12 @@ var init_transfersGet = __esm(() => {
|
|
|
100441
101212
|
});
|
|
100442
101213
|
|
|
100443
101214
|
// src/mcp-server/tools/transfersGet.ts
|
|
100444
|
-
var
|
|
101215
|
+
var args159, tool$transfersGet;
|
|
100445
101216
|
var init_transfersGet2 = __esm(() => {
|
|
100446
101217
|
init_transfersGet();
|
|
100447
101218
|
init_operations();
|
|
100448
101219
|
init_tools();
|
|
100449
|
-
|
|
101220
|
+
args159 = {
|
|
100450
101221
|
request: GetTransferRequest$inboundSchema
|
|
100451
101222
|
};
|
|
100452
101223
|
tool$transfersGet = {
|
|
@@ -100458,9 +101229,9 @@ to learn more.
|
|
|
100458
101229
|
|
|
100459
101230
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
100460
101231
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
100461
|
-
args:
|
|
100462
|
-
tool: async (client,
|
|
100463
|
-
const [result, apiCall] = await transfersGet(client,
|
|
101232
|
+
args: args159,
|
|
101233
|
+
tool: async (client, args160, ctx) => {
|
|
101234
|
+
const [result, apiCall] = await transfersGet(client, args160.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
100464
101235
|
if (!result.ok) {
|
|
100465
101236
|
return {
|
|
100466
101237
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -100475,9 +101246,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
100475
101246
|
|
|
100476
101247
|
// src/funcs/transfersGetCancellation.ts
|
|
100477
101248
|
function transfersGetCancellation(client, request, options) {
|
|
100478
|
-
return new APIPromise($
|
|
101249
|
+
return new APIPromise($do160(client, request, options));
|
|
100479
101250
|
}
|
|
100480
|
-
async function $
|
|
101251
|
+
async function $do160(client, request, options) {
|
|
100481
101252
|
const parsed = safeParse4(request, (value) => GetCancellationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
100482
101253
|
if (!parsed.ok) {
|
|
100483
101254
|
return [parsed, { status: "invalid" }];
|
|
@@ -100563,12 +101334,12 @@ var init_transfersGetCancellation = __esm(() => {
|
|
|
100563
101334
|
});
|
|
100564
101335
|
|
|
100565
101336
|
// src/mcp-server/tools/transfersGetCancellation.ts
|
|
100566
|
-
var
|
|
101337
|
+
var args160, tool$transfersGetCancellation;
|
|
100567
101338
|
var init_transfersGetCancellation2 = __esm(() => {
|
|
100568
101339
|
init_transfersGetCancellation();
|
|
100569
101340
|
init_operations();
|
|
100570
101341
|
init_tools();
|
|
100571
|
-
|
|
101342
|
+
args160 = {
|
|
100572
101343
|
request: GetCancellationRequest$inboundSchema
|
|
100573
101344
|
};
|
|
100574
101345
|
tool$transfersGetCancellation = {
|
|
@@ -100577,9 +101348,9 @@ var init_transfersGetCancellation2 = __esm(() => {
|
|
|
100577
101348
|
|
|
100578
101349
|
To access this endpoint using a [token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
100579
101350
|
to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
100580
|
-
args:
|
|
100581
|
-
tool: async (client,
|
|
100582
|
-
const [result, apiCall] = await transfersGetCancellation(client,
|
|
101351
|
+
args: args160,
|
|
101352
|
+
tool: async (client, args161, ctx) => {
|
|
101353
|
+
const [result, apiCall] = await transfersGetCancellation(client, args161.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
100583
101354
|
if (!result.ok) {
|
|
100584
101355
|
return {
|
|
100585
101356
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -100594,9 +101365,9 @@ var init_transfersGetCancellation2 = __esm(() => {
|
|
|
100594
101365
|
|
|
100595
101366
|
// src/funcs/transfersGetRefund.ts
|
|
100596
101367
|
function transfersGetRefund(client, request, options) {
|
|
100597
|
-
return new APIPromise($
|
|
101368
|
+
return new APIPromise($do161(client, request, options));
|
|
100598
101369
|
}
|
|
100599
|
-
async function $
|
|
101370
|
+
async function $do161(client, request, options) {
|
|
100600
101371
|
const parsed = safeParse4(request, (value) => GetRefundRequest$outboundSchema.parse(value), "Input validation failed");
|
|
100601
101372
|
if (!parsed.ok) {
|
|
100602
101373
|
return [parsed, { status: "invalid" }];
|
|
@@ -100682,12 +101453,12 @@ var init_transfersGetRefund = __esm(() => {
|
|
|
100682
101453
|
});
|
|
100683
101454
|
|
|
100684
101455
|
// src/mcp-server/tools/transfersGetRefund.ts
|
|
100685
|
-
var
|
|
101456
|
+
var args161, tool$transfersGetRefund;
|
|
100686
101457
|
var init_transfersGetRefund2 = __esm(() => {
|
|
100687
101458
|
init_transfersGetRefund();
|
|
100688
101459
|
init_operations();
|
|
100689
101460
|
init_tools();
|
|
100690
|
-
|
|
101461
|
+
args161 = {
|
|
100691
101462
|
request: GetRefundRequest$inboundSchema
|
|
100692
101463
|
};
|
|
100693
101464
|
tool$transfersGetRefund = {
|
|
@@ -100696,9 +101467,9 @@ var init_transfersGetRefund2 = __esm(() => {
|
|
|
100696
101467
|
|
|
100697
101468
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
100698
101469
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
100699
|
-
args:
|
|
100700
|
-
tool: async (client,
|
|
100701
|
-
const [result, apiCall] = await transfersGetRefund(client,
|
|
101470
|
+
args: args161,
|
|
101471
|
+
tool: async (client, args162, ctx) => {
|
|
101472
|
+
const [result, apiCall] = await transfersGetRefund(client, args162.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
100702
101473
|
if (!result.ok) {
|
|
100703
101474
|
return {
|
|
100704
101475
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -100713,9 +101484,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
100713
101484
|
|
|
100714
101485
|
// src/funcs/transfersInitiateRefund.ts
|
|
100715
101486
|
function transfersInitiateRefund(client, request, options) {
|
|
100716
|
-
return new APIPromise($
|
|
101487
|
+
return new APIPromise($do162(client, request, options));
|
|
100717
101488
|
}
|
|
100718
|
-
async function $
|
|
101489
|
+
async function $do162(client, request, options) {
|
|
100719
101490
|
const parsed = safeParse4(request, (value) => InitiateRefundRequest$outboundSchema.parse(value), "Input validation failed");
|
|
100720
101491
|
if (!parsed.ok) {
|
|
100721
101492
|
return [parsed, { status: "invalid" }];
|
|
@@ -100807,12 +101578,12 @@ var init_transfersInitiateRefund = __esm(() => {
|
|
|
100807
101578
|
});
|
|
100808
101579
|
|
|
100809
101580
|
// src/mcp-server/tools/transfersInitiateRefund.ts
|
|
100810
|
-
var
|
|
101581
|
+
var args162, tool$transfersInitiateRefund;
|
|
100811
101582
|
var init_transfersInitiateRefund2 = __esm(() => {
|
|
100812
101583
|
init_transfersInitiateRefund();
|
|
100813
101584
|
init_operations();
|
|
100814
101585
|
init_tools();
|
|
100815
|
-
|
|
101586
|
+
args162 = {
|
|
100816
101587
|
request: InitiateRefundRequest$inboundSchema
|
|
100817
101588
|
};
|
|
100818
101589
|
tool$transfersInitiateRefund = {
|
|
@@ -100824,9 +101595,9 @@ See the [reversals](https://docs.moov.io/guides/money-movement/accept-payments/c
|
|
|
100824
101595
|
|
|
100825
101596
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
100826
101597
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
100827
|
-
args:
|
|
100828
|
-
tool: async (client,
|
|
100829
|
-
const [result, apiCall] = await transfersInitiateRefund(client,
|
|
101598
|
+
args: args162,
|
|
101599
|
+
tool: async (client, args163, ctx) => {
|
|
101600
|
+
const [result, apiCall] = await transfersInitiateRefund(client, args163.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
100830
101601
|
if (!result.ok) {
|
|
100831
101602
|
return {
|
|
100832
101603
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -100841,9 +101612,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
100841
101612
|
|
|
100842
101613
|
// src/funcs/transfersList.ts
|
|
100843
101614
|
function transfersList(client, request, options) {
|
|
100844
|
-
return new APIPromise($
|
|
101615
|
+
return new APIPromise($do163(client, request, options));
|
|
100845
101616
|
}
|
|
100846
|
-
async function $
|
|
101617
|
+
async function $do163(client, request, options) {
|
|
100847
101618
|
const parsed = safeParse4(request, (value) => ListTransfersRequest$outboundSchema.parse(value), "Input validation failed");
|
|
100848
101619
|
if (!parsed.ok) {
|
|
100849
101620
|
return [parsed, { status: "invalid" }];
|
|
@@ -100939,12 +101710,12 @@ var init_transfersList = __esm(() => {
|
|
|
100939
101710
|
});
|
|
100940
101711
|
|
|
100941
101712
|
// src/mcp-server/tools/transfersList.ts
|
|
100942
|
-
var
|
|
101713
|
+
var args163, tool$transfersList;
|
|
100943
101714
|
var init_transfersList2 = __esm(() => {
|
|
100944
101715
|
init_transfersList();
|
|
100945
101716
|
init_operations();
|
|
100946
101717
|
init_tools();
|
|
100947
|
-
|
|
101718
|
+
args163 = {
|
|
100948
101719
|
request: ListTransfersRequest$inboundSchema
|
|
100949
101720
|
};
|
|
100950
101721
|
tool$transfersList = {
|
|
@@ -100960,9 +101731,9 @@ period of time. You can run multiple requests in smaller time window increments
|
|
|
100960
101731
|
|
|
100961
101732
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
100962
101733
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
100963
|
-
args:
|
|
100964
|
-
tool: async (client,
|
|
100965
|
-
const [result, apiCall] = await transfersList(client,
|
|
101734
|
+
args: args163,
|
|
101735
|
+
tool: async (client, args164, ctx) => {
|
|
101736
|
+
const [result, apiCall] = await transfersList(client, args164.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
100966
101737
|
if (!result.ok) {
|
|
100967
101738
|
return {
|
|
100968
101739
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -100977,9 +101748,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
100977
101748
|
|
|
100978
101749
|
// src/funcs/transfersListRefunds.ts
|
|
100979
101750
|
function transfersListRefunds(client, request, options) {
|
|
100980
|
-
return new APIPromise($
|
|
101751
|
+
return new APIPromise($do164(client, request, options));
|
|
100981
101752
|
}
|
|
100982
|
-
async function $
|
|
101753
|
+
async function $do164(client, request, options) {
|
|
100983
101754
|
const parsed = safeParse4(request, (value) => ListRefundsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
100984
101755
|
if (!parsed.ok) {
|
|
100985
101756
|
return [parsed, { status: "invalid" }];
|
|
@@ -101061,12 +101832,12 @@ var init_transfersListRefunds = __esm(() => {
|
|
|
101061
101832
|
});
|
|
101062
101833
|
|
|
101063
101834
|
// src/mcp-server/tools/transfersListRefunds.ts
|
|
101064
|
-
var
|
|
101835
|
+
var args164, tool$transfersListRefunds;
|
|
101065
101836
|
var init_transfersListRefunds2 = __esm(() => {
|
|
101066
101837
|
init_transfersListRefunds();
|
|
101067
101838
|
init_operations();
|
|
101068
101839
|
init_tools();
|
|
101069
|
-
|
|
101840
|
+
args164 = {
|
|
101070
101841
|
request: ListRefundsRequest$inboundSchema
|
|
101071
101842
|
};
|
|
101072
101843
|
tool$transfersListRefunds = {
|
|
@@ -101075,9 +101846,9 @@ var init_transfersListRefunds2 = __esm(() => {
|
|
|
101075
101846
|
|
|
101076
101847
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
101077
101848
|
you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
101078
|
-
args:
|
|
101079
|
-
tool: async (client,
|
|
101080
|
-
const [result, apiCall] = await transfersListRefunds(client,
|
|
101849
|
+
args: args164,
|
|
101850
|
+
tool: async (client, args165, ctx) => {
|
|
101851
|
+
const [result, apiCall] = await transfersListRefunds(client, args165.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
101081
101852
|
if (!result.ok) {
|
|
101082
101853
|
return {
|
|
101083
101854
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -101092,9 +101863,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.read\` scope.`,
|
|
|
101092
101863
|
|
|
101093
101864
|
// src/funcs/transfersUpdate.ts
|
|
101094
101865
|
function transfersUpdate(client, request, options) {
|
|
101095
|
-
return new APIPromise($
|
|
101866
|
+
return new APIPromise($do165(client, request, options));
|
|
101096
101867
|
}
|
|
101097
|
-
async function $
|
|
101868
|
+
async function $do165(client, request, options) {
|
|
101098
101869
|
const parsed = safeParse4(request, (value) => UpdateTransferRequest$outboundSchema.parse(value), "Input validation failed");
|
|
101099
101870
|
if (!parsed.ok) {
|
|
101100
101871
|
return [parsed, { status: "invalid" }];
|
|
@@ -101180,12 +101951,12 @@ var init_transfersUpdate = __esm(() => {
|
|
|
101180
101951
|
});
|
|
101181
101952
|
|
|
101182
101953
|
// src/mcp-server/tools/transfersUpdate.ts
|
|
101183
|
-
var
|
|
101954
|
+
var args165, tool$transfersUpdate;
|
|
101184
101955
|
var init_transfersUpdate2 = __esm(() => {
|
|
101185
101956
|
init_transfersUpdate();
|
|
101186
101957
|
init_operations();
|
|
101187
101958
|
init_tools();
|
|
101188
|
-
|
|
101959
|
+
args165 = {
|
|
101189
101960
|
request: UpdateTransferRequest$inboundSchema
|
|
101190
101961
|
};
|
|
101191
101962
|
tool$transfersUpdate = {
|
|
@@ -101196,9 +101967,9 @@ Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/o
|
|
|
101196
101967
|
|
|
101197
101968
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
101198
101969
|
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
101199
|
-
args:
|
|
101200
|
-
tool: async (client,
|
|
101201
|
-
const [result, apiCall] = await transfersUpdate(client,
|
|
101970
|
+
args: args165,
|
|
101971
|
+
tool: async (client, args166, ctx) => {
|
|
101972
|
+
const [result, apiCall] = await transfersUpdate(client, args166.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
101202
101973
|
if (!result.ok) {
|
|
101203
101974
|
return {
|
|
101204
101975
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -101213,9 +101984,9 @@ you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
|
101213
101984
|
|
|
101214
101985
|
// src/funcs/underwritingGet.ts
|
|
101215
101986
|
function underwritingGet(client, request, options) {
|
|
101216
|
-
return new APIPromise($
|
|
101987
|
+
return new APIPromise($do166(client, request, options));
|
|
101217
101988
|
}
|
|
101218
|
-
async function $
|
|
101989
|
+
async function $do166(client, request, options) {
|
|
101219
101990
|
const parsed = safeParse4(request, (value) => GetUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
101220
101991
|
if (!parsed.ok) {
|
|
101221
101992
|
return [parsed, { status: "invalid" }];
|
|
@@ -101293,12 +102064,12 @@ var init_underwritingGet = __esm(() => {
|
|
|
101293
102064
|
});
|
|
101294
102065
|
|
|
101295
102066
|
// src/mcp-server/tools/underwritingGet.ts
|
|
101296
|
-
var
|
|
102067
|
+
var args166, tool$underwritingGet;
|
|
101297
102068
|
var init_underwritingGet2 = __esm(() => {
|
|
101298
102069
|
init_underwritingGet();
|
|
101299
102070
|
init_operations();
|
|
101300
102071
|
init_tools();
|
|
101301
|
-
|
|
102072
|
+
args166 = {
|
|
101302
102073
|
request: GetUnderwritingRequest$inboundSchema
|
|
101303
102074
|
};
|
|
101304
102075
|
tool$underwritingGet = {
|
|
@@ -101309,9 +102080,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
101309
102080
|
|
|
101310
102081
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
101311
102082
|
you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
101312
|
-
args:
|
|
101313
|
-
tool: async (client,
|
|
101314
|
-
const [result, apiCall] = await underwritingGet(client,
|
|
102083
|
+
args: args166,
|
|
102084
|
+
tool: async (client, args167, ctx) => {
|
|
102085
|
+
const [result, apiCall] = await underwritingGet(client, args167.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
101315
102086
|
if (!result.ok) {
|
|
101316
102087
|
return {
|
|
101317
102088
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -101326,9 +102097,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.read\` scope.`,
|
|
|
101326
102097
|
|
|
101327
102098
|
// src/funcs/underwritingSave.ts
|
|
101328
102099
|
function underwritingSave(client, request, options) {
|
|
101329
|
-
return new APIPromise($
|
|
102100
|
+
return new APIPromise($do167(client, request, options));
|
|
101330
102101
|
}
|
|
101331
|
-
async function $
|
|
102102
|
+
async function $do167(client, request, options) {
|
|
101332
102103
|
const parsed = safeParse4(request, (value) => SaveUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
101333
102104
|
if (!parsed.ok) {
|
|
101334
102105
|
return [parsed, { status: "invalid" }];
|
|
@@ -101424,12 +102195,12 @@ var init_underwritingSave = __esm(() => {
|
|
|
101424
102195
|
});
|
|
101425
102196
|
|
|
101426
102197
|
// src/mcp-server/tools/underwritingSave.ts
|
|
101427
|
-
var
|
|
102198
|
+
var args167, tool$underwritingSave;
|
|
101428
102199
|
var init_underwritingSave2 = __esm(() => {
|
|
101429
102200
|
init_underwritingSave();
|
|
101430
102201
|
init_operations();
|
|
101431
102202
|
init_tools();
|
|
101432
|
-
|
|
102203
|
+
args167 = {
|
|
101433
102204
|
request: SaveUnderwritingRequest$inboundSchema
|
|
101434
102205
|
};
|
|
101435
102206
|
tool$underwritingSave = {
|
|
@@ -101440,9 +102211,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
101440
102211
|
|
|
101441
102212
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
101442
102213
|
you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
101443
|
-
args:
|
|
101444
|
-
tool: async (client,
|
|
101445
|
-
const [result, apiCall] = await underwritingSave(client,
|
|
102214
|
+
args: args167,
|
|
102215
|
+
tool: async (client, args168, ctx) => {
|
|
102216
|
+
const [result, apiCall] = await underwritingSave(client, args168.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
101446
102217
|
if (!result.ok) {
|
|
101447
102218
|
return {
|
|
101448
102219
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -101457,9 +102228,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
|
101457
102228
|
|
|
101458
102229
|
// src/funcs/underwritingUpsert.ts
|
|
101459
102230
|
function underwritingUpsert(client, request, options) {
|
|
101460
|
-
return new APIPromise($
|
|
102231
|
+
return new APIPromise($do168(client, request, options));
|
|
101461
102232
|
}
|
|
101462
|
-
async function $
|
|
102233
|
+
async function $do168(client, request, options) {
|
|
101463
102234
|
const parsed = safeParse4(request, (value) => UpsertUnderwritingRequest$outboundSchema.parse(value), "Input validation failed");
|
|
101464
102235
|
if (!parsed.ok) {
|
|
101465
102236
|
return [parsed, { status: "invalid" }];
|
|
@@ -101555,12 +102326,12 @@ var init_underwritingUpsert = __esm(() => {
|
|
|
101555
102326
|
});
|
|
101556
102327
|
|
|
101557
102328
|
// src/mcp-server/tools/underwritingUpsert.ts
|
|
101558
|
-
var
|
|
102329
|
+
var args168, tool$underwritingUpsert;
|
|
101559
102330
|
var init_underwritingUpsert2 = __esm(() => {
|
|
101560
102331
|
init_underwritingUpsert();
|
|
101561
102332
|
init_operations();
|
|
101562
102333
|
init_tools();
|
|
101563
|
-
|
|
102334
|
+
args168 = {
|
|
101564
102335
|
request: UpsertUnderwritingRequest$inboundSchema
|
|
101565
102336
|
};
|
|
101566
102337
|
tool$underwritingUpsert = {
|
|
@@ -101571,9 +102342,9 @@ Read our [underwriting guide](https://docs.moov.io/guides/accounts/requirements/
|
|
|
101571
102342
|
|
|
101572
102343
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
101573
102344
|
you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
101574
|
-
args:
|
|
101575
|
-
tool: async (client,
|
|
101576
|
-
const [result, apiCall] = await underwritingUpsert(client,
|
|
102345
|
+
args: args168,
|
|
102346
|
+
tool: async (client, args169, ctx) => {
|
|
102347
|
+
const [result, apiCall] = await underwritingUpsert(client, args169.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
101577
102348
|
if (!result.ok) {
|
|
101578
102349
|
return {
|
|
101579
102350
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -101588,9 +102359,9 @@ you'll need to specify the \`/accounts/{accountID}/profile.write\` scope.`,
|
|
|
101588
102359
|
|
|
101589
102360
|
// src/funcs/walletsCreate.ts
|
|
101590
102361
|
function walletsCreate(client, request, options) {
|
|
101591
|
-
return new APIPromise($
|
|
102362
|
+
return new APIPromise($do169(client, request, options));
|
|
101592
102363
|
}
|
|
101593
|
-
async function $
|
|
102364
|
+
async function $do169(client, request, options) {
|
|
101594
102365
|
const parsed = safeParse4(request, (value) => CreateWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
101595
102366
|
if (!parsed.ok) {
|
|
101596
102367
|
return [parsed, { status: "invalid" }];
|
|
@@ -101684,12 +102455,12 @@ var init_walletsCreate = __esm(() => {
|
|
|
101684
102455
|
});
|
|
101685
102456
|
|
|
101686
102457
|
// src/mcp-server/tools/walletsCreate.ts
|
|
101687
|
-
var
|
|
102458
|
+
var args169, tool$walletsCreate;
|
|
101688
102459
|
var init_walletsCreate2 = __esm(() => {
|
|
101689
102460
|
init_walletsCreate();
|
|
101690
102461
|
init_operations();
|
|
101691
102462
|
init_tools();
|
|
101692
|
-
|
|
102463
|
+
args169 = {
|
|
101693
102464
|
request: CreateWalletRequest$inboundSchema
|
|
101694
102465
|
};
|
|
101695
102466
|
tool$walletsCreate = {
|
|
@@ -101700,9 +102471,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
101700
102471
|
|
|
101701
102472
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
101702
102473
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
101703
|
-
args:
|
|
101704
|
-
tool: async (client,
|
|
101705
|
-
const [result, apiCall] = await walletsCreate(client,
|
|
102474
|
+
args: args169,
|
|
102475
|
+
tool: async (client, args170, ctx) => {
|
|
102476
|
+
const [result, apiCall] = await walletsCreate(client, args170.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
101706
102477
|
if (!result.ok) {
|
|
101707
102478
|
return {
|
|
101708
102479
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -101717,9 +102488,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
101717
102488
|
|
|
101718
102489
|
// src/funcs/walletsGet.ts
|
|
101719
102490
|
function walletsGet(client, request, options) {
|
|
101720
|
-
return new APIPromise($
|
|
102491
|
+
return new APIPromise($do170(client, request, options));
|
|
101721
102492
|
}
|
|
101722
|
-
async function $
|
|
102493
|
+
async function $do170(client, request, options) {
|
|
101723
102494
|
const parsed = safeParse4(request, (value) => GetWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
101724
102495
|
if (!parsed.ok) {
|
|
101725
102496
|
return [parsed, { status: "invalid" }];
|
|
@@ -101801,12 +102572,12 @@ var init_walletsGet = __esm(() => {
|
|
|
101801
102572
|
});
|
|
101802
102573
|
|
|
101803
102574
|
// src/mcp-server/tools/walletsGet.ts
|
|
101804
|
-
var
|
|
102575
|
+
var args170, tool$walletsGet;
|
|
101805
102576
|
var init_walletsGet2 = __esm(() => {
|
|
101806
102577
|
init_walletsGet();
|
|
101807
102578
|
init_operations();
|
|
101808
102579
|
init_tools();
|
|
101809
|
-
|
|
102580
|
+
args170 = {
|
|
101810
102581
|
request: GetWalletRequest$inboundSchema
|
|
101811
102582
|
};
|
|
101812
102583
|
tool$walletsGet = {
|
|
@@ -101817,9 +102588,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
101817
102588
|
|
|
101818
102589
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
101819
102590
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
101820
|
-
args:
|
|
101821
|
-
tool: async (client,
|
|
101822
|
-
const [result, apiCall] = await walletsGet(client,
|
|
102591
|
+
args: args170,
|
|
102592
|
+
tool: async (client, args171, ctx) => {
|
|
102593
|
+
const [result, apiCall] = await walletsGet(client, args171.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
101823
102594
|
if (!result.ok) {
|
|
101824
102595
|
return {
|
|
101825
102596
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -101834,9 +102605,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
101834
102605
|
|
|
101835
102606
|
// src/funcs/walletsList.ts
|
|
101836
102607
|
function walletsList(client, request, options) {
|
|
101837
|
-
return new APIPromise($
|
|
102608
|
+
return new APIPromise($do171(client, request, options));
|
|
101838
102609
|
}
|
|
101839
|
-
async function $
|
|
102610
|
+
async function $do171(client, request, options) {
|
|
101840
102611
|
const parsed = safeParse4(request, (value) => ListWalletsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
101841
102612
|
if (!parsed.ok) {
|
|
101842
102613
|
return [parsed, { status: "invalid" }];
|
|
@@ -101924,12 +102695,12 @@ var init_walletsList = __esm(() => {
|
|
|
101924
102695
|
});
|
|
101925
102696
|
|
|
101926
102697
|
// src/mcp-server/tools/walletsList.ts
|
|
101927
|
-
var
|
|
102698
|
+
var args171, tool$walletsList;
|
|
101928
102699
|
var init_walletsList2 = __esm(() => {
|
|
101929
102700
|
init_walletsList();
|
|
101930
102701
|
init_operations();
|
|
101931
102702
|
init_tools();
|
|
101932
|
-
|
|
102703
|
+
args171 = {
|
|
101933
102704
|
request: ListWalletsRequest$inboundSchema
|
|
101934
102705
|
};
|
|
101935
102706
|
tool$walletsList = {
|
|
@@ -101940,9 +102711,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
101940
102711
|
|
|
101941
102712
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
101942
102713
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
101943
|
-
args:
|
|
101944
|
-
tool: async (client,
|
|
101945
|
-
const [result, apiCall] = await walletsList(client,
|
|
102714
|
+
args: args171,
|
|
102715
|
+
tool: async (client, args172, ctx) => {
|
|
102716
|
+
const [result, apiCall] = await walletsList(client, args172.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
101946
102717
|
if (!result.ok) {
|
|
101947
102718
|
return {
|
|
101948
102719
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -101957,9 +102728,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
101957
102728
|
|
|
101958
102729
|
// src/funcs/walletsUpdate.ts
|
|
101959
102730
|
function walletsUpdate(client, request, options) {
|
|
101960
|
-
return new APIPromise($
|
|
102731
|
+
return new APIPromise($do172(client, request, options));
|
|
101961
102732
|
}
|
|
101962
|
-
async function $
|
|
102733
|
+
async function $do172(client, request, options) {
|
|
101963
102734
|
const parsed = safeParse4(request, (value) => UpdateWalletRequest$outboundSchema.parse(value), "Input validation failed");
|
|
101964
102735
|
if (!parsed.ok) {
|
|
101965
102736
|
return [parsed, { status: "invalid" }];
|
|
@@ -102057,12 +102828,12 @@ var init_walletsUpdate = __esm(() => {
|
|
|
102057
102828
|
});
|
|
102058
102829
|
|
|
102059
102830
|
// src/mcp-server/tools/walletsUpdate.ts
|
|
102060
|
-
var
|
|
102831
|
+
var args172, tool$walletsUpdate;
|
|
102061
102832
|
var init_walletsUpdate2 = __esm(() => {
|
|
102062
102833
|
init_walletsUpdate();
|
|
102063
102834
|
init_operations();
|
|
102064
102835
|
init_tools();
|
|
102065
|
-
|
|
102836
|
+
args172 = {
|
|
102066
102837
|
request: UpdateWalletRequest$inboundSchema
|
|
102067
102838
|
};
|
|
102068
102839
|
tool$walletsUpdate = {
|
|
@@ -102073,9 +102844,9 @@ Read our [Moov wallets guide](https://docs.moov.io/guides/sources/wallets/) to l
|
|
|
102073
102844
|
|
|
102074
102845
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
102075
102846
|
you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
102076
|
-
args:
|
|
102077
|
-
tool: async (client,
|
|
102078
|
-
const [result, apiCall] = await walletsUpdate(client,
|
|
102847
|
+
args: args172,
|
|
102848
|
+
tool: async (client, args173, ctx) => {
|
|
102849
|
+
const [result, apiCall] = await walletsUpdate(client, args173.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
102079
102850
|
if (!result.ok) {
|
|
102080
102851
|
return {
|
|
102081
102852
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -102090,9 +102861,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.write\` scope.`,
|
|
|
102090
102861
|
|
|
102091
102862
|
// src/funcs/walletTransactionsGet.ts
|
|
102092
102863
|
function walletTransactionsGet(client, request, options) {
|
|
102093
|
-
return new APIPromise($
|
|
102864
|
+
return new APIPromise($do173(client, request, options));
|
|
102094
102865
|
}
|
|
102095
|
-
async function $
|
|
102866
|
+
async function $do173(client, request, options) {
|
|
102096
102867
|
const parsed = safeParse4(request, (value) => GetWalletTransactionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
102097
102868
|
if (!parsed.ok) {
|
|
102098
102869
|
return [parsed, { status: "invalid" }];
|
|
@@ -102178,12 +102949,12 @@ var init_walletTransactionsGet = __esm(() => {
|
|
|
102178
102949
|
});
|
|
102179
102950
|
|
|
102180
102951
|
// src/mcp-server/tools/walletTransactionsGet.ts
|
|
102181
|
-
var
|
|
102952
|
+
var args173, tool$walletTransactionsGet;
|
|
102182
102953
|
var init_walletTransactionsGet2 = __esm(() => {
|
|
102183
102954
|
init_walletTransactionsGet();
|
|
102184
102955
|
init_operations();
|
|
102185
102956
|
init_tools();
|
|
102186
|
-
|
|
102957
|
+
args173 = {
|
|
102187
102958
|
request: GetWalletTransactionRequest$inboundSchema
|
|
102188
102959
|
};
|
|
102189
102960
|
tool$walletTransactionsGet = {
|
|
@@ -102194,9 +102965,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
|
|
|
102194
102965
|
|
|
102195
102966
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
102196
102967
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
102197
|
-
args:
|
|
102198
|
-
tool: async (client,
|
|
102199
|
-
const [result, apiCall] = await walletTransactionsGet(client,
|
|
102968
|
+
args: args173,
|
|
102969
|
+
tool: async (client, args174, ctx) => {
|
|
102970
|
+
const [result, apiCall] = await walletTransactionsGet(client, args174.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
102200
102971
|
if (!result.ok) {
|
|
102201
102972
|
return {
|
|
102202
102973
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -102211,9 +102982,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
102211
102982
|
|
|
102212
102983
|
// src/funcs/walletTransactionsList.ts
|
|
102213
102984
|
function walletTransactionsList(client, request, options) {
|
|
102214
|
-
return new APIPromise($
|
|
102985
|
+
return new APIPromise($do174(client, request, options));
|
|
102215
102986
|
}
|
|
102216
|
-
async function $
|
|
102987
|
+
async function $do174(client, request, options) {
|
|
102217
102988
|
const parsed = safeParse4(request, (value) => ListWalletTransactionsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
102218
102989
|
if (!parsed.ok) {
|
|
102219
102990
|
return [parsed, { status: "invalid" }];
|
|
@@ -102313,12 +103084,12 @@ var init_walletTransactionsList = __esm(() => {
|
|
|
102313
103084
|
});
|
|
102314
103085
|
|
|
102315
103086
|
// src/mcp-server/tools/walletTransactionsList.ts
|
|
102316
|
-
var
|
|
103087
|
+
var args174, tool$walletTransactionsList;
|
|
102317
103088
|
var init_walletTransactionsList2 = __esm(() => {
|
|
102318
103089
|
init_walletTransactionsList();
|
|
102319
103090
|
init_operations();
|
|
102320
103091
|
init_tools();
|
|
102321
|
-
|
|
103092
|
+
args174 = {
|
|
102322
103093
|
request: ListWalletTransactionsRequest$inboundSchema
|
|
102323
103094
|
};
|
|
102324
103095
|
tool$walletTransactionsList = {
|
|
@@ -102329,9 +103100,9 @@ Read our [wallet transactions guide](https://docs.moov.io/guides/sources/wallets
|
|
|
102329
103100
|
|
|
102330
103101
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
102331
103102
|
you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
102332
|
-
args:
|
|
102333
|
-
tool: async (client,
|
|
102334
|
-
const [result, apiCall] = await walletTransactionsList(client,
|
|
103103
|
+
args: args174,
|
|
103104
|
+
tool: async (client, args175, ctx) => {
|
|
103105
|
+
const [result, apiCall] = await walletTransactionsList(client, args175.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
102335
103106
|
if (!result.ok) {
|
|
102336
103107
|
return {
|
|
102337
103108
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -102346,9 +103117,9 @@ you'll need to specify the \`/accounts/{accountID}/wallets.read\` scope.`,
|
|
|
102346
103117
|
|
|
102347
103118
|
// src/funcs/webhooksCreate.ts
|
|
102348
103119
|
function webhooksCreate(client, request, options) {
|
|
102349
|
-
return new APIPromise($
|
|
103120
|
+
return new APIPromise($do175(client, request, options));
|
|
102350
103121
|
}
|
|
102351
|
-
async function $
|
|
103122
|
+
async function $do175(client, request, options) {
|
|
102352
103123
|
const parsed = safeParse4(request, (value) => CreateWebhook$outboundSchema.parse(value), "Input validation failed");
|
|
102353
103124
|
if (!parsed.ok) {
|
|
102354
103125
|
return [parsed, { status: "invalid" }];
|
|
@@ -102437,20 +103208,20 @@ var init_webhooksCreate = __esm(() => {
|
|
|
102437
103208
|
});
|
|
102438
103209
|
|
|
102439
103210
|
// src/mcp-server/tools/webhooksCreate.ts
|
|
102440
|
-
var
|
|
103211
|
+
var args175, tool$webhooksCreate;
|
|
102441
103212
|
var init_webhooksCreate2 = __esm(() => {
|
|
102442
103213
|
init_webhooksCreate();
|
|
102443
103214
|
init_components();
|
|
102444
103215
|
init_tools();
|
|
102445
|
-
|
|
103216
|
+
args175 = {
|
|
102446
103217
|
request: CreateWebhook$inboundSchema
|
|
102447
103218
|
};
|
|
102448
103219
|
tool$webhooksCreate = {
|
|
102449
103220
|
name: "webhooks-create",
|
|
102450
103221
|
description: `Create a new webhook for the account.`,
|
|
102451
|
-
args:
|
|
102452
|
-
tool: async (client,
|
|
102453
|
-
const [result, apiCall] = await webhooksCreate(client,
|
|
103222
|
+
args: args175,
|
|
103223
|
+
tool: async (client, args176, ctx) => {
|
|
103224
|
+
const [result, apiCall] = await webhooksCreate(client, args176.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
102454
103225
|
if (!result.ok) {
|
|
102455
103226
|
return {
|
|
102456
103227
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -102465,9 +103236,9 @@ var init_webhooksCreate2 = __esm(() => {
|
|
|
102465
103236
|
|
|
102466
103237
|
// src/funcs/webhooksDisable.ts
|
|
102467
103238
|
function webhooksDisable(client, request, options) {
|
|
102468
|
-
return new APIPromise($
|
|
103239
|
+
return new APIPromise($do176(client, request, options));
|
|
102469
103240
|
}
|
|
102470
|
-
async function $
|
|
103241
|
+
async function $do176(client, request, options) {
|
|
102471
103242
|
const parsed = safeParse4(request, (value) => DisableWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
102472
103243
|
if (!parsed.ok) {
|
|
102473
103244
|
return [parsed, { status: "invalid" }];
|
|
@@ -102556,20 +103327,20 @@ var init_webhooksDisable = __esm(() => {
|
|
|
102556
103327
|
});
|
|
102557
103328
|
|
|
102558
103329
|
// src/mcp-server/tools/webhooksDisable.ts
|
|
102559
|
-
var
|
|
103330
|
+
var args176, tool$webhooksDisable;
|
|
102560
103331
|
var init_webhooksDisable2 = __esm(() => {
|
|
102561
103332
|
init_webhooksDisable();
|
|
102562
103333
|
init_operations();
|
|
102563
103334
|
init_tools();
|
|
102564
|
-
|
|
103335
|
+
args176 = {
|
|
102565
103336
|
request: DisableWebhookRequest$inboundSchema
|
|
102566
103337
|
};
|
|
102567
103338
|
tool$webhooksDisable = {
|
|
102568
103339
|
name: "webhooks-disable",
|
|
102569
103340
|
description: `Disable a webhook. Disabled webhooks will no longer receive events.`,
|
|
102570
|
-
args:
|
|
102571
|
-
tool: async (client,
|
|
102572
|
-
const [result, apiCall] = await webhooksDisable(client,
|
|
103341
|
+
args: args176,
|
|
103342
|
+
tool: async (client, args177, ctx) => {
|
|
103343
|
+
const [result, apiCall] = await webhooksDisable(client, args177.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
102573
103344
|
if (!result.ok) {
|
|
102574
103345
|
return {
|
|
102575
103346
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -102583,9 +103354,9 @@ var init_webhooksDisable2 = __esm(() => {
|
|
|
102583
103354
|
|
|
102584
103355
|
// src/funcs/webhooksGet.ts
|
|
102585
103356
|
function webhooksGet(client, request, options) {
|
|
102586
|
-
return new APIPromise($
|
|
103357
|
+
return new APIPromise($do177(client, request, options));
|
|
102587
103358
|
}
|
|
102588
|
-
async function $
|
|
103359
|
+
async function $do177(client, request, options) {
|
|
102589
103360
|
const parsed = safeParse4(request, (value) => GetWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
102590
103361
|
if (!parsed.ok) {
|
|
102591
103362
|
return [parsed, { status: "invalid" }];
|
|
@@ -102663,20 +103434,20 @@ var init_webhooksGet = __esm(() => {
|
|
|
102663
103434
|
});
|
|
102664
103435
|
|
|
102665
103436
|
// src/mcp-server/tools/webhooksGet.ts
|
|
102666
|
-
var
|
|
103437
|
+
var args177, tool$webhooksGet;
|
|
102667
103438
|
var init_webhooksGet2 = __esm(() => {
|
|
102668
103439
|
init_webhooksGet();
|
|
102669
103440
|
init_operations();
|
|
102670
103441
|
init_tools();
|
|
102671
|
-
|
|
103442
|
+
args177 = {
|
|
102672
103443
|
request: GetWebhookRequest$inboundSchema
|
|
102673
103444
|
};
|
|
102674
103445
|
tool$webhooksGet = {
|
|
102675
103446
|
name: "webhooks-get",
|
|
102676
103447
|
description: `Get details of a specific webhook.`,
|
|
102677
|
-
args:
|
|
102678
|
-
tool: async (client,
|
|
102679
|
-
const [result, apiCall] = await webhooksGet(client,
|
|
103448
|
+
args: args177,
|
|
103449
|
+
tool: async (client, args178, ctx) => {
|
|
103450
|
+
const [result, apiCall] = await webhooksGet(client, args178.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
102680
103451
|
if (!result.ok) {
|
|
102681
103452
|
return {
|
|
102682
103453
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -102691,9 +103462,9 @@ var init_webhooksGet2 = __esm(() => {
|
|
|
102691
103462
|
|
|
102692
103463
|
// src/funcs/webhooksGetSecret.ts
|
|
102693
103464
|
function webhooksGetSecret(client, request, options) {
|
|
102694
|
-
return new APIPromise($
|
|
103465
|
+
return new APIPromise($do178(client, request, options));
|
|
102695
103466
|
}
|
|
102696
|
-
async function $
|
|
103467
|
+
async function $do178(client, request, options) {
|
|
102697
103468
|
const parsed = safeParse4(request, (value) => GetWebhookSecretRequest$outboundSchema.parse(value), "Input validation failed");
|
|
102698
103469
|
if (!parsed.ok) {
|
|
102699
103470
|
return [parsed, { status: "invalid" }];
|
|
@@ -102771,20 +103542,20 @@ var init_webhooksGetSecret = __esm(() => {
|
|
|
102771
103542
|
});
|
|
102772
103543
|
|
|
102773
103544
|
// src/mcp-server/tools/webhooksGetSecret.ts
|
|
102774
|
-
var
|
|
103545
|
+
var args178, tool$webhooksGetSecret;
|
|
102775
103546
|
var init_webhooksGetSecret2 = __esm(() => {
|
|
102776
103547
|
init_webhooksGetSecret();
|
|
102777
103548
|
init_operations();
|
|
102778
103549
|
init_tools();
|
|
102779
|
-
|
|
103550
|
+
args178 = {
|
|
102780
103551
|
request: GetWebhookSecretRequest$inboundSchema
|
|
102781
103552
|
};
|
|
102782
103553
|
tool$webhooksGetSecret = {
|
|
102783
103554
|
name: "webhooks-get-secret",
|
|
102784
103555
|
description: `Get the secret key for verifying webhook payloads.`,
|
|
102785
|
-
args:
|
|
102786
|
-
tool: async (client,
|
|
102787
|
-
const [result, apiCall] = await webhooksGetSecret(client,
|
|
103556
|
+
args: args178,
|
|
103557
|
+
tool: async (client, args179, ctx) => {
|
|
103558
|
+
const [result, apiCall] = await webhooksGetSecret(client, args179.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
102788
103559
|
if (!result.ok) {
|
|
102789
103560
|
return {
|
|
102790
103561
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -102799,9 +103570,9 @@ var init_webhooksGetSecret2 = __esm(() => {
|
|
|
102799
103570
|
|
|
102800
103571
|
// src/funcs/webhooksList.ts
|
|
102801
103572
|
function webhooksList(client, _request, options) {
|
|
102802
|
-
return new APIPromise($
|
|
103573
|
+
return new APIPromise($do179(client, _request, options));
|
|
102803
103574
|
}
|
|
102804
|
-
async function $
|
|
103575
|
+
async function $do179(client, _request, options) {
|
|
102805
103576
|
const path = pathToFunc("/webhooks")();
|
|
102806
103577
|
const headers = new Headers(compactMap({
|
|
102807
103578
|
Accept: "application/json",
|
|
@@ -102865,20 +103636,20 @@ var init_webhooksList = __esm(() => {
|
|
|
102865
103636
|
});
|
|
102866
103637
|
|
|
102867
103638
|
// src/mcp-server/tools/webhooksList.ts
|
|
102868
|
-
var
|
|
103639
|
+
var args179, tool$webhooksList;
|
|
102869
103640
|
var init_webhooksList2 = __esm(() => {
|
|
102870
103641
|
init_webhooksList();
|
|
102871
103642
|
init_operations();
|
|
102872
103643
|
init_tools();
|
|
102873
|
-
|
|
103644
|
+
args179 = {
|
|
102874
103645
|
request: ListWebhooksRequest$inboundSchema
|
|
102875
103646
|
};
|
|
102876
103647
|
tool$webhooksList = {
|
|
102877
103648
|
name: "webhooks-list",
|
|
102878
103649
|
description: `List all webhooks configured for the account.`,
|
|
102879
|
-
args:
|
|
102880
|
-
tool: async (client,
|
|
102881
|
-
const [result, apiCall] = await webhooksList(client,
|
|
103650
|
+
args: args179,
|
|
103651
|
+
tool: async (client, args180, ctx) => {
|
|
103652
|
+
const [result, apiCall] = await webhooksList(client, args180.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
102882
103653
|
if (!result.ok) {
|
|
102883
103654
|
return {
|
|
102884
103655
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -102893,9 +103664,9 @@ var init_webhooksList2 = __esm(() => {
|
|
|
102893
103664
|
|
|
102894
103665
|
// src/funcs/webhooksListEventTypes.ts
|
|
102895
103666
|
function webhooksListEventTypes(client, _request, options) {
|
|
102896
|
-
return new APIPromise($
|
|
103667
|
+
return new APIPromise($do180(client, _request, options));
|
|
102897
103668
|
}
|
|
102898
|
-
async function $
|
|
103669
|
+
async function $do180(client, _request, options) {
|
|
102899
103670
|
const path = pathToFunc("/event-types")();
|
|
102900
103671
|
const headers = new Headers(compactMap({
|
|
102901
103672
|
Accept: "application/json",
|
|
@@ -102959,20 +103730,20 @@ var init_webhooksListEventTypes = __esm(() => {
|
|
|
102959
103730
|
});
|
|
102960
103731
|
|
|
102961
103732
|
// src/mcp-server/tools/webhooksListEventTypes.ts
|
|
102962
|
-
var
|
|
103733
|
+
var args180, tool$webhooksListEventTypes;
|
|
102963
103734
|
var init_webhooksListEventTypes2 = __esm(() => {
|
|
102964
103735
|
init_webhooksListEventTypes();
|
|
102965
103736
|
init_operations();
|
|
102966
103737
|
init_tools();
|
|
102967
|
-
|
|
103738
|
+
args180 = {
|
|
102968
103739
|
request: ListEventTypesRequest$inboundSchema
|
|
102969
103740
|
};
|
|
102970
103741
|
tool$webhooksListEventTypes = {
|
|
102971
103742
|
name: "webhooks-list-event-types",
|
|
102972
103743
|
description: `List all available event types that can be subscribed to.`,
|
|
102973
|
-
args:
|
|
102974
|
-
tool: async (client,
|
|
102975
|
-
const [result, apiCall] = await webhooksListEventTypes(client,
|
|
103744
|
+
args: args180,
|
|
103745
|
+
tool: async (client, args181, ctx) => {
|
|
103746
|
+
const [result, apiCall] = await webhooksListEventTypes(client, args181.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
102976
103747
|
if (!result.ok) {
|
|
102977
103748
|
return {
|
|
102978
103749
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -102987,9 +103758,9 @@ var init_webhooksListEventTypes2 = __esm(() => {
|
|
|
102987
103758
|
|
|
102988
103759
|
// src/funcs/webhooksPing.ts
|
|
102989
103760
|
function webhooksPing(client, request, options) {
|
|
102990
|
-
return new APIPromise($
|
|
103761
|
+
return new APIPromise($do181(client, request, options));
|
|
102991
103762
|
}
|
|
102992
|
-
async function $
|
|
103763
|
+
async function $do181(client, request, options) {
|
|
102993
103764
|
const parsed = safeParse4(request, (value) => PingWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
102994
103765
|
if (!parsed.ok) {
|
|
102995
103766
|
return [parsed, { status: "invalid" }];
|
|
@@ -103067,20 +103838,20 @@ var init_webhooksPing = __esm(() => {
|
|
|
103067
103838
|
});
|
|
103068
103839
|
|
|
103069
103840
|
// src/mcp-server/tools/webhooksPing.ts
|
|
103070
|
-
var
|
|
103841
|
+
var args181, tool$webhooksPing;
|
|
103071
103842
|
var init_webhooksPing2 = __esm(() => {
|
|
103072
103843
|
init_webhooksPing();
|
|
103073
103844
|
init_operations();
|
|
103074
103845
|
init_tools();
|
|
103075
|
-
|
|
103846
|
+
args181 = {
|
|
103076
103847
|
request: PingWebhookRequest$inboundSchema
|
|
103077
103848
|
};
|
|
103078
103849
|
tool$webhooksPing = {
|
|
103079
103850
|
name: "webhooks-ping",
|
|
103080
103851
|
description: `Send a test ping to a webhook to verify it is configured correctly.`,
|
|
103081
|
-
args:
|
|
103082
|
-
tool: async (client,
|
|
103083
|
-
const [result, apiCall] = await webhooksPing(client,
|
|
103852
|
+
args: args181,
|
|
103853
|
+
tool: async (client, args182, ctx) => {
|
|
103854
|
+
const [result, apiCall] = await webhooksPing(client, args182.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
103084
103855
|
if (!result.ok) {
|
|
103085
103856
|
return {
|
|
103086
103857
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -103095,9 +103866,9 @@ var init_webhooksPing2 = __esm(() => {
|
|
|
103095
103866
|
|
|
103096
103867
|
// src/funcs/webhooksUpdate.ts
|
|
103097
103868
|
function webhooksUpdate(client, request, options) {
|
|
103098
|
-
return new APIPromise($
|
|
103869
|
+
return new APIPromise($do182(client, request, options));
|
|
103099
103870
|
}
|
|
103100
|
-
async function $
|
|
103871
|
+
async function $do182(client, request, options) {
|
|
103101
103872
|
const parsed = safeParse4(request, (value) => UpdateWebhookRequest$outboundSchema.parse(value), "Input validation failed");
|
|
103102
103873
|
if (!parsed.ok) {
|
|
103103
103874
|
return [parsed, { status: "invalid" }];
|
|
@@ -103191,20 +103962,20 @@ var init_webhooksUpdate = __esm(() => {
|
|
|
103191
103962
|
});
|
|
103192
103963
|
|
|
103193
103964
|
// src/mcp-server/tools/webhooksUpdate.ts
|
|
103194
|
-
var
|
|
103965
|
+
var args182, tool$webhooksUpdate;
|
|
103195
103966
|
var init_webhooksUpdate2 = __esm(() => {
|
|
103196
103967
|
init_webhooksUpdate();
|
|
103197
103968
|
init_operations();
|
|
103198
103969
|
init_tools();
|
|
103199
|
-
|
|
103970
|
+
args182 = {
|
|
103200
103971
|
request: UpdateWebhookRequest$inboundSchema
|
|
103201
103972
|
};
|
|
103202
103973
|
tool$webhooksUpdate = {
|
|
103203
103974
|
name: "webhooks-update",
|
|
103204
103975
|
description: `Update an existing webhook.`,
|
|
103205
|
-
args:
|
|
103206
|
-
tool: async (client,
|
|
103207
|
-
const [result, apiCall] = await webhooksUpdate(client,
|
|
103976
|
+
args: args182,
|
|
103977
|
+
tool: async (client, args183, ctx) => {
|
|
103978
|
+
const [result, apiCall] = await webhooksUpdate(client, args183.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
103208
103979
|
if (!result.ok) {
|
|
103209
103980
|
return {
|
|
103210
103981
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -103221,7 +103992,7 @@ var init_webhooksUpdate2 = __esm(() => {
|
|
|
103221
103992
|
function createMCPServer(deps) {
|
|
103222
103993
|
const server = new McpServer({
|
|
103223
103994
|
name: "Moov",
|
|
103224
|
-
version: "0.0.0-dev.
|
|
103995
|
+
version: "0.0.0-dev.7"
|
|
103225
103996
|
});
|
|
103226
103997
|
const client = new MoovCore({
|
|
103227
103998
|
security: deps.security,
|
|
@@ -103331,6 +104102,10 @@ function createMCPServer(deps) {
|
|
|
103331
104102
|
tool(tool$representativesDelete);
|
|
103332
104103
|
tool(tool$representativesGet);
|
|
103333
104104
|
tool(tool$representativesUpdate);
|
|
104105
|
+
tool(tool$resolutionLinksCreate);
|
|
104106
|
+
tool(tool$resolutionLinksList);
|
|
104107
|
+
tool(tool$resolutionLinksGet);
|
|
104108
|
+
tool(tool$resolutionLinksDisable);
|
|
103334
104109
|
tool(tool$schedulingCreate);
|
|
103335
104110
|
tool(tool$schedulingList);
|
|
103336
104111
|
tool(tool$schedulingUpdate);
|
|
@@ -103547,6 +104322,10 @@ var init_server2 = __esm(() => {
|
|
|
103547
104322
|
init_representativesGet2();
|
|
103548
104323
|
init_representativesList2();
|
|
103549
104324
|
init_representativesUpdate2();
|
|
104325
|
+
init_resolutionLinksCreate2();
|
|
104326
|
+
init_resolutionLinksDisable2();
|
|
104327
|
+
init_resolutionLinksGet2();
|
|
104328
|
+
init_resolutionLinksList2();
|
|
103550
104329
|
init_schedulingCancel2();
|
|
103551
104330
|
init_schedulingCreate2();
|
|
103552
104331
|
init_schedulingGet2();
|
|
@@ -104801,7 +105580,7 @@ var routes = rn({
|
|
|
104801
105580
|
var app = Ve(routes, {
|
|
104802
105581
|
name: "mcp",
|
|
104803
105582
|
versionInfo: {
|
|
104804
|
-
currentVersion: "0.0.0-dev.
|
|
105583
|
+
currentVersion: "0.0.0-dev.7"
|
|
104805
105584
|
}
|
|
104806
105585
|
});
|
|
104807
105586
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -104809,5 +105588,5 @@ export {
|
|
|
104809
105588
|
app
|
|
104810
105589
|
};
|
|
104811
105590
|
|
|
104812
|
-
//# debugId=
|
|
105591
|
+
//# debugId=2A9D108208FEA3C664756E2164756E21
|
|
104813
105592
|
//# sourceMappingURL=mcp-server.js.map
|