@moovio/sdk 0.14.4 → 0.14.5
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 +38 -52
- package/bin/mcp-server.js +140 -297
- package/bin/mcp-server.js.map +11 -14
- package/docs/sdks/transfers/README.md +11 -116
- package/examples/package-lock.json +1 -1
- package/funcs/transfersGenerateOptions.d.ts +4 -3
- package/funcs/transfersGenerateOptions.d.ts.map +1 -1
- package/funcs/transfersGenerateOptions.js +14 -5
- package/funcs/transfersGenerateOptions.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 +2 -4
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/transfersGenerateOptions.d.ts +2 -2
- package/mcp-server/tools/transfersGenerateOptions.d.ts.map +1 -1
- package/mcp-server/tools/transfersGenerateOptions.js +5 -3
- package/mcp-server/tools/transfersGenerateOptions.js.map +1 -1
- package/models/components/terminalcard.d.ts +10 -0
- package/models/components/terminalcard.d.ts.map +1 -1
- package/models/components/terminalcard.js +4 -0
- package/models/components/terminalcard.js.map +1 -1
- package/models/operations/createtransferoptions.d.ts +30 -0
- package/models/operations/createtransferoptions.d.ts.map +1 -1
- package/models/operations/createtransferoptions.js +38 -1
- package/models/operations/createtransferoptions.js.map +1 -1
- package/models/operations/index.d.ts +0 -1
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -1
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/transfers.d.ts +1 -12
- package/sdk/transfers.d.ts.map +1 -1
- package/sdk/transfers.js +2 -15
- package/sdk/transfers.js.map +1 -1
- package/src/funcs/transfersGenerateOptions.ts +18 -7
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +2 -4
- package/src/mcp-server/tools/transfersGenerateOptions.ts +5 -3
- package/src/models/components/terminalcard.ts +14 -0
- package/src/models/operations/createtransferoptions.ts +75 -0
- package/src/models/operations/index.ts +0 -1
- package/src/sdk/transfers.ts +4 -26
- package/funcs/transfersGenerateOptionsForAccount.d.ts +0 -23
- package/funcs/transfersGenerateOptionsForAccount.d.ts.map +0 -1
- package/funcs/transfersGenerateOptionsForAccount.js +0 -133
- package/funcs/transfersGenerateOptionsForAccount.js.map +0 -1
- package/mcp-server/tools/transfersGenerateOptionsForAccount.d.ts +0 -8
- package/mcp-server/tools/transfersGenerateOptionsForAccount.d.ts.map +0 -1
- package/mcp-server/tools/transfersGenerateOptionsForAccount.js +0 -70
- package/mcp-server/tools/transfersGenerateOptionsForAccount.js.map +0 -1
- package/models/operations/createtransferoptionsforaccount.d.ts +0 -104
- package/models/operations/createtransferoptionsforaccount.d.ts.map +0 -1
- package/models/operations/createtransferoptionsforaccount.js +0 -155
- package/models/operations/createtransferoptionsforaccount.js.map +0 -1
- package/src/funcs/transfersGenerateOptionsForAccount.ts +0 -202
- package/src/mcp-server/tools/transfersGenerateOptionsForAccount.ts +0 -46
- package/src/models/operations/createtransferoptionsforaccount.ts +0 -257
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.transfersGenerateOptionsForAccount = transfersGenerateOptionsForAccount;
|
|
40
|
-
const encodings_js_1 = require("../lib/encodings.js");
|
|
41
|
-
const M = __importStar(require("../lib/matchers.js"));
|
|
42
|
-
const primitives_js_1 = require("../lib/primitives.js");
|
|
43
|
-
const schemas_js_1 = require("../lib/schemas.js");
|
|
44
|
-
const security_js_1 = require("../lib/security.js");
|
|
45
|
-
const url_js_1 = require("../lib/url.js");
|
|
46
|
-
const errors = __importStar(require("../models/errors/index.js"));
|
|
47
|
-
const operations = __importStar(require("../models/operations/index.js"));
|
|
48
|
-
const async_js_1 = require("../types/async.js");
|
|
49
|
-
/**
|
|
50
|
-
* Generate available payment method options for one or multiple transfer participants depending on the accountID or paymentMethodID you
|
|
51
|
-
* supply in the request body.
|
|
52
|
-
*
|
|
53
|
-
* The accountID in the route should the partner's accountID.
|
|
54
|
-
*
|
|
55
|
-
* Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
|
|
56
|
-
*
|
|
57
|
-
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
58
|
-
* you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
|
|
59
|
-
*/
|
|
60
|
-
function transfersGenerateOptionsForAccount(client, request, options) {
|
|
61
|
-
return new async_js_1.APIPromise($do(client, request, options));
|
|
62
|
-
}
|
|
63
|
-
async function $do(client, request, options) {
|
|
64
|
-
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.CreateTransferOptionsForAccountRequest$outboundSchema.parse(value), "Input validation failed");
|
|
65
|
-
if (!parsed.ok) {
|
|
66
|
-
return [parsed, { status: "invalid" }];
|
|
67
|
-
}
|
|
68
|
-
const payload = parsed.value;
|
|
69
|
-
const body = (0, encodings_js_1.encodeJSON)("body", payload.CreateTransferOptions, {
|
|
70
|
-
explode: true,
|
|
71
|
-
});
|
|
72
|
-
const pathParams = {
|
|
73
|
-
accountID: (0, encodings_js_1.encodeSimple)("accountID", payload.accountID, {
|
|
74
|
-
explode: false,
|
|
75
|
-
charEncoding: "percent",
|
|
76
|
-
}),
|
|
77
|
-
};
|
|
78
|
-
const path = (0, url_js_1.pathToFunc)("/accounts/{accountID}/transfer-options")(pathParams);
|
|
79
|
-
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
80
|
-
"Content-Type": "application/json",
|
|
81
|
-
Accept: "application/json",
|
|
82
|
-
"x-moov-version": (0, encodings_js_1.encodeSimple)("x-moov-version", client._options.xMoovVersion, { explode: false, charEncoding: "none" }),
|
|
83
|
-
}));
|
|
84
|
-
const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
|
|
85
|
-
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
86
|
-
const context = {
|
|
87
|
-
options: client._options,
|
|
88
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
89
|
-
operationID: "createTransferOptionsForAccount",
|
|
90
|
-
oAuth2Scopes: [],
|
|
91
|
-
resolvedSecurity: requestSecurity,
|
|
92
|
-
securitySource: client._options.security,
|
|
93
|
-
retryConfig: options?.retries
|
|
94
|
-
|| client._options.retryConfig
|
|
95
|
-
|| { strategy: "none" },
|
|
96
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
97
|
-
};
|
|
98
|
-
const requestRes = client._createRequest(context, {
|
|
99
|
-
security: requestSecurity,
|
|
100
|
-
method: "POST",
|
|
101
|
-
baseURL: options?.serverURL,
|
|
102
|
-
path: path,
|
|
103
|
-
headers: headers,
|
|
104
|
-
body: body,
|
|
105
|
-
userAgent: client._options.userAgent,
|
|
106
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
107
|
-
}, options);
|
|
108
|
-
if (!requestRes.ok) {
|
|
109
|
-
return [requestRes, { status: "invalid" }];
|
|
110
|
-
}
|
|
111
|
-
const req = requestRes.value;
|
|
112
|
-
const doResult = await client._do(req, {
|
|
113
|
-
context,
|
|
114
|
-
errorCodes: ["400", "401", "403", "422", "429", "4XX", "500", "504", "5XX"],
|
|
115
|
-
retryConfig: context.retryConfig,
|
|
116
|
-
retryCodes: context.retryCodes,
|
|
117
|
-
});
|
|
118
|
-
if (!doResult.ok) {
|
|
119
|
-
return [doResult, { status: "request-error", request: req }];
|
|
120
|
-
}
|
|
121
|
-
const response = doResult.value;
|
|
122
|
-
const responseFields = {
|
|
123
|
-
HttpMeta: { Response: response, Request: req },
|
|
124
|
-
};
|
|
125
|
-
const [result] = await M.match(M.json(200, operations.CreateTransferOptionsForAccountResponse$inboundSchema, { hdrs: true, key: "Result" }), M.jsonErr(400, errors.GenericError$inboundSchema, { hdrs: true }), M.jsonErr(422, errors.TransferOptionsValidationError$inboundSchema, {
|
|
126
|
-
hdrs: true,
|
|
127
|
-
}), M.fail([401, 403, 429]), M.fail([500, 504]), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
128
|
-
if (!result.ok) {
|
|
129
|
-
return [result, { status: "complete", request: req, response }];
|
|
130
|
-
}
|
|
131
|
-
return [result, { status: "complete", request: req, response }];
|
|
132
|
-
}
|
|
133
|
-
//# sourceMappingURL=transfersGenerateOptionsForAccount.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transfersGenerateOptionsForAccount.js","sourceRoot":"","sources":["../src/funcs/transfersGenerateOptionsForAccount.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCH,gFAwBC;AAzDD,sDAA+D;AAC/D,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAQ3C,kEAAoD;AAIpD,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;;;;;;GAUG;AACH,SAAgB,kCAAkC,CAChD,MAAgB,EAChB,OAA0D,EAC1D,OAAwB;IAgBxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAgB,EAChB,OAA0D,EAC1D,OAAwB;IAmBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,UAAU,CAAC,qDAAqD,CAAC,KAAK,CACpE,KAAK,CACN,EACH,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IACzC,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAA,yBAAU,EAAC,MAAM,EAAE,OAAO,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M,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAa5B,CAAC,CAAC,IAAI,CACJ,GAAG,EACH,UAAU,CAAC,qDAAqD,EAChE,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,CAC9B,EACD,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EACjE,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,4CAA4C,EAAE;QAClE,IAAI,EAAE,IAAI;KACX,CAAC,EACF,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,EACvB,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,EAClB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as operations from "../../models/operations/index.js";
|
|
2
|
-
import { ToolDefinition } from "../tools.js";
|
|
3
|
-
declare const args: {
|
|
4
|
-
request: import("zod").ZodType<operations.CreateTransferOptionsForAccountRequest, import("zod").ZodTypeDef, unknown>;
|
|
5
|
-
};
|
|
6
|
-
export declare const tool$transfersGenerateOptionsForAccount: ToolDefinition<typeof args>;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=transfersGenerateOptionsForAccount.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transfersGenerateOptionsForAccount.d.ts","sourceRoot":"","sources":["../../src/mcp-server/tools/transfersGenerateOptionsForAccount.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,UAAU,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAgB,cAAc,EAAE,MAAM,aAAa,CAAC;AAE3D,QAAA,MAAM,IAAI;;CAET,CAAC;AAEF,eAAO,MAAM,uCAAuC,EAAE,cAAc,CAClE,OAAO,IAAI,CAgCZ,CAAC"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.tool$transfersGenerateOptionsForAccount = void 0;
|
|
40
|
-
const transfersGenerateOptionsForAccount_js_1 = require("../../funcs/transfersGenerateOptionsForAccount.js");
|
|
41
|
-
const operations = __importStar(require("../../models/operations/index.js"));
|
|
42
|
-
const tools_js_1 = require("../tools.js");
|
|
43
|
-
const args = {
|
|
44
|
-
request: operations.CreateTransferOptionsForAccountRequest$inboundSchema,
|
|
45
|
-
};
|
|
46
|
-
exports.tool$transfersGenerateOptionsForAccount = {
|
|
47
|
-
name: "transfers-generate-options-for-account",
|
|
48
|
-
description: `Generate available payment method options for one or multiple transfer participants depending on the accountID or paymentMethodID you
|
|
49
|
-
supply in the request body.
|
|
50
|
-
|
|
51
|
-
The accountID in the route should the partner's accountID.
|
|
52
|
-
|
|
53
|
-
Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
|
|
54
|
-
|
|
55
|
-
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
56
|
-
you'll need to specify the \`/accounts/{accountID}/transfers.write\` scope.`,
|
|
57
|
-
args,
|
|
58
|
-
tool: async (client, args, ctx) => {
|
|
59
|
-
const [result, apiCall] = await (0, transfersGenerateOptionsForAccount_js_1.transfersGenerateOptionsForAccount)(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
60
|
-
if (!result.ok) {
|
|
61
|
-
return {
|
|
62
|
-
content: [{ type: "text", text: result.error.message }],
|
|
63
|
-
isError: true,
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
const value = result.value.result;
|
|
67
|
-
return (0, tools_js_1.formatResult)(value, apiCall);
|
|
68
|
-
},
|
|
69
|
-
};
|
|
70
|
-
//# sourceMappingURL=transfersGenerateOptionsForAccount.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transfersGenerateOptionsForAccount.js","sourceRoot":"","sources":["../../src/mcp-server/tools/transfersGenerateOptionsForAccount.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,6GAAuG;AACvG,6EAA+D;AAC/D,0CAA2D;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,UAAU,CAAC,oDAAoD;CACzE,CAAC;AAEW,QAAA,uCAAuC,GAEhD;IACF,IAAI,EAAE,wCAAwC;IAC9C,WAAW,EACT;;;;;;;;4EAQwE;IAC1E,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAChC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAA,0EAAkC,EAChE,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC;QAElC,OAAO,IAAA,uBAAY,EAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;CACF,CAAC"}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import * as components from "../components/index.js";
|
|
4
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
export type CreateTransferOptionsForAccountGlobals = {
|
|
6
|
-
/**
|
|
7
|
-
* Specify an API version.
|
|
8
|
-
*
|
|
9
|
-
* @remarks
|
|
10
|
-
*
|
|
11
|
-
* API versioning follows the format `vYYYY.QQ.BB`, where
|
|
12
|
-
* - `YYYY` is the year
|
|
13
|
-
* - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
|
|
14
|
-
* - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
|
|
15
|
-
* - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
|
|
16
|
-
*
|
|
17
|
-
* The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
|
|
18
|
-
*/
|
|
19
|
-
xMoovVersion?: string | undefined;
|
|
20
|
-
};
|
|
21
|
-
export type CreateTransferOptionsForAccountRequest = {
|
|
22
|
-
/**
|
|
23
|
-
* The partner's Moov account ID.
|
|
24
|
-
*/
|
|
25
|
-
accountID: string;
|
|
26
|
-
createTransferOptions: components.CreateTransferOptions;
|
|
27
|
-
};
|
|
28
|
-
export type CreateTransferOptionsForAccountResponse = {
|
|
29
|
-
headers: {
|
|
30
|
-
[k: string]: Array<string>;
|
|
31
|
-
};
|
|
32
|
-
result: components.TransferOptions;
|
|
33
|
-
};
|
|
34
|
-
/** @internal */
|
|
35
|
-
export declare const CreateTransferOptionsForAccountGlobals$inboundSchema: z.ZodType<CreateTransferOptionsForAccountGlobals, z.ZodTypeDef, unknown>;
|
|
36
|
-
/** @internal */
|
|
37
|
-
export type CreateTransferOptionsForAccountGlobals$Outbound = {
|
|
38
|
-
"x-moov-version": string;
|
|
39
|
-
};
|
|
40
|
-
/** @internal */
|
|
41
|
-
export declare const CreateTransferOptionsForAccountGlobals$outboundSchema: z.ZodType<CreateTransferOptionsForAccountGlobals$Outbound, z.ZodTypeDef, CreateTransferOptionsForAccountGlobals>;
|
|
42
|
-
/**
|
|
43
|
-
* @internal
|
|
44
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
45
|
-
*/
|
|
46
|
-
export declare namespace CreateTransferOptionsForAccountGlobals$ {
|
|
47
|
-
/** @deprecated use `CreateTransferOptionsForAccountGlobals$inboundSchema` instead. */
|
|
48
|
-
const inboundSchema: z.ZodType<CreateTransferOptionsForAccountGlobals, z.ZodTypeDef, unknown>;
|
|
49
|
-
/** @deprecated use `CreateTransferOptionsForAccountGlobals$outboundSchema` instead. */
|
|
50
|
-
const outboundSchema: z.ZodType<CreateTransferOptionsForAccountGlobals$Outbound, z.ZodTypeDef, CreateTransferOptionsForAccountGlobals>;
|
|
51
|
-
/** @deprecated use `CreateTransferOptionsForAccountGlobals$Outbound` instead. */
|
|
52
|
-
type Outbound = CreateTransferOptionsForAccountGlobals$Outbound;
|
|
53
|
-
}
|
|
54
|
-
export declare function createTransferOptionsForAccountGlobalsToJSON(createTransferOptionsForAccountGlobals: CreateTransferOptionsForAccountGlobals): string;
|
|
55
|
-
export declare function createTransferOptionsForAccountGlobalsFromJSON(jsonString: string): SafeParseResult<CreateTransferOptionsForAccountGlobals, SDKValidationError>;
|
|
56
|
-
/** @internal */
|
|
57
|
-
export declare const CreateTransferOptionsForAccountRequest$inboundSchema: z.ZodType<CreateTransferOptionsForAccountRequest, z.ZodTypeDef, unknown>;
|
|
58
|
-
/** @internal */
|
|
59
|
-
export type CreateTransferOptionsForAccountRequest$Outbound = {
|
|
60
|
-
accountID: string;
|
|
61
|
-
CreateTransferOptions: components.CreateTransferOptions$Outbound;
|
|
62
|
-
};
|
|
63
|
-
/** @internal */
|
|
64
|
-
export declare const CreateTransferOptionsForAccountRequest$outboundSchema: z.ZodType<CreateTransferOptionsForAccountRequest$Outbound, z.ZodTypeDef, CreateTransferOptionsForAccountRequest>;
|
|
65
|
-
/**
|
|
66
|
-
* @internal
|
|
67
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
68
|
-
*/
|
|
69
|
-
export declare namespace CreateTransferOptionsForAccountRequest$ {
|
|
70
|
-
/** @deprecated use `CreateTransferOptionsForAccountRequest$inboundSchema` instead. */
|
|
71
|
-
const inboundSchema: z.ZodType<CreateTransferOptionsForAccountRequest, z.ZodTypeDef, unknown>;
|
|
72
|
-
/** @deprecated use `CreateTransferOptionsForAccountRequest$outboundSchema` instead. */
|
|
73
|
-
const outboundSchema: z.ZodType<CreateTransferOptionsForAccountRequest$Outbound, z.ZodTypeDef, CreateTransferOptionsForAccountRequest>;
|
|
74
|
-
/** @deprecated use `CreateTransferOptionsForAccountRequest$Outbound` instead. */
|
|
75
|
-
type Outbound = CreateTransferOptionsForAccountRequest$Outbound;
|
|
76
|
-
}
|
|
77
|
-
export declare function createTransferOptionsForAccountRequestToJSON(createTransferOptionsForAccountRequest: CreateTransferOptionsForAccountRequest): string;
|
|
78
|
-
export declare function createTransferOptionsForAccountRequestFromJSON(jsonString: string): SafeParseResult<CreateTransferOptionsForAccountRequest, SDKValidationError>;
|
|
79
|
-
/** @internal */
|
|
80
|
-
export declare const CreateTransferOptionsForAccountResponse$inboundSchema: z.ZodType<CreateTransferOptionsForAccountResponse, z.ZodTypeDef, unknown>;
|
|
81
|
-
/** @internal */
|
|
82
|
-
export type CreateTransferOptionsForAccountResponse$Outbound = {
|
|
83
|
-
Headers: {
|
|
84
|
-
[k: string]: Array<string>;
|
|
85
|
-
};
|
|
86
|
-
Result: components.TransferOptions$Outbound;
|
|
87
|
-
};
|
|
88
|
-
/** @internal */
|
|
89
|
-
export declare const CreateTransferOptionsForAccountResponse$outboundSchema: z.ZodType<CreateTransferOptionsForAccountResponse$Outbound, z.ZodTypeDef, CreateTransferOptionsForAccountResponse>;
|
|
90
|
-
/**
|
|
91
|
-
* @internal
|
|
92
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
93
|
-
*/
|
|
94
|
-
export declare namespace CreateTransferOptionsForAccountResponse$ {
|
|
95
|
-
/** @deprecated use `CreateTransferOptionsForAccountResponse$inboundSchema` instead. */
|
|
96
|
-
const inboundSchema: z.ZodType<CreateTransferOptionsForAccountResponse, z.ZodTypeDef, unknown>;
|
|
97
|
-
/** @deprecated use `CreateTransferOptionsForAccountResponse$outboundSchema` instead. */
|
|
98
|
-
const outboundSchema: z.ZodType<CreateTransferOptionsForAccountResponse$Outbound, z.ZodTypeDef, CreateTransferOptionsForAccountResponse>;
|
|
99
|
-
/** @deprecated use `CreateTransferOptionsForAccountResponse$Outbound` instead. */
|
|
100
|
-
type Outbound = CreateTransferOptionsForAccountResponse$Outbound;
|
|
101
|
-
}
|
|
102
|
-
export declare function createTransferOptionsForAccountResponseToJSON(createTransferOptionsForAccountResponse: CreateTransferOptionsForAccountResponse): string;
|
|
103
|
-
export declare function createTransferOptionsForAccountResponseFromJSON(jsonString: string): SafeParseResult<CreateTransferOptionsForAccountResponse, SDKValidationError>;
|
|
104
|
-
//# sourceMappingURL=createtransferoptionsforaccount.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createtransferoptionsforaccount.d.ts","sourceRoot":"","sources":["../../src/models/operations/createtransferoptionsforaccount.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,sCAAsC,G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,MAAM,cAAc,oHAC6B,CAAC;IACzD,kFAAkF;IAClF,KAAY,QAAQ,GAAG,gDAAgD,CAAC;CACzE;AAED,wBAAgB,6CAA6C,CAC3D,uCAAuC,EACrC,uCAAuC,GACxC,MAAM,CAMR;AAED,wBAAgB,+CAA+C,CAC7D,UAAU,EAAE,MAAM,GACjB,eAAe,CAChB,uCAAuC,EACvC,kBAAkB,CACnB,CASA"}
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.CreateTransferOptionsForAccountResponse$ = exports.CreateTransferOptionsForAccountResponse$outboundSchema = exports.CreateTransferOptionsForAccountResponse$inboundSchema = exports.CreateTransferOptionsForAccountRequest$ = exports.CreateTransferOptionsForAccountRequest$outboundSchema = exports.CreateTransferOptionsForAccountRequest$inboundSchema = exports.CreateTransferOptionsForAccountGlobals$ = exports.CreateTransferOptionsForAccountGlobals$outboundSchema = exports.CreateTransferOptionsForAccountGlobals$inboundSchema = void 0;
|
|
40
|
-
exports.createTransferOptionsForAccountGlobalsToJSON = createTransferOptionsForAccountGlobalsToJSON;
|
|
41
|
-
exports.createTransferOptionsForAccountGlobalsFromJSON = createTransferOptionsForAccountGlobalsFromJSON;
|
|
42
|
-
exports.createTransferOptionsForAccountRequestToJSON = createTransferOptionsForAccountRequestToJSON;
|
|
43
|
-
exports.createTransferOptionsForAccountRequestFromJSON = createTransferOptionsForAccountRequestFromJSON;
|
|
44
|
-
exports.createTransferOptionsForAccountResponseToJSON = createTransferOptionsForAccountResponseToJSON;
|
|
45
|
-
exports.createTransferOptionsForAccountResponseFromJSON = createTransferOptionsForAccountResponseFromJSON;
|
|
46
|
-
const z = __importStar(require("zod"));
|
|
47
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
48
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
49
|
-
const components = __importStar(require("../components/index.js"));
|
|
50
|
-
/** @internal */
|
|
51
|
-
exports.CreateTransferOptionsForAccountGlobals$inboundSchema = z.object({
|
|
52
|
-
"x-moov-version": z.string().default("v2024.01.00"),
|
|
53
|
-
}).transform((v) => {
|
|
54
|
-
return (0, primitives_js_1.remap)(v, {
|
|
55
|
-
"x-moov-version": "xMoovVersion",
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
/** @internal */
|
|
59
|
-
exports.CreateTransferOptionsForAccountGlobals$outboundSchema = z.object({
|
|
60
|
-
xMoovVersion: z.string().default("v2024.01.00"),
|
|
61
|
-
}).transform((v) => {
|
|
62
|
-
return (0, primitives_js_1.remap)(v, {
|
|
63
|
-
xMoovVersion: "x-moov-version",
|
|
64
|
-
});
|
|
65
|
-
});
|
|
66
|
-
/**
|
|
67
|
-
* @internal
|
|
68
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
69
|
-
*/
|
|
70
|
-
var CreateTransferOptionsForAccountGlobals$;
|
|
71
|
-
(function (CreateTransferOptionsForAccountGlobals$) {
|
|
72
|
-
/** @deprecated use `CreateTransferOptionsForAccountGlobals$inboundSchema` instead. */
|
|
73
|
-
CreateTransferOptionsForAccountGlobals$.inboundSchema = exports.CreateTransferOptionsForAccountGlobals$inboundSchema;
|
|
74
|
-
/** @deprecated use `CreateTransferOptionsForAccountGlobals$outboundSchema` instead. */
|
|
75
|
-
CreateTransferOptionsForAccountGlobals$.outboundSchema = exports.CreateTransferOptionsForAccountGlobals$outboundSchema;
|
|
76
|
-
})(CreateTransferOptionsForAccountGlobals$ || (exports.CreateTransferOptionsForAccountGlobals$ = CreateTransferOptionsForAccountGlobals$ = {}));
|
|
77
|
-
function createTransferOptionsForAccountGlobalsToJSON(createTransferOptionsForAccountGlobals) {
|
|
78
|
-
return JSON.stringify(exports.CreateTransferOptionsForAccountGlobals$outboundSchema.parse(createTransferOptionsForAccountGlobals));
|
|
79
|
-
}
|
|
80
|
-
function createTransferOptionsForAccountGlobalsFromJSON(jsonString) {
|
|
81
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateTransferOptionsForAccountGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateTransferOptionsForAccountGlobals' from JSON`);
|
|
82
|
-
}
|
|
83
|
-
/** @internal */
|
|
84
|
-
exports.CreateTransferOptionsForAccountRequest$inboundSchema = z.object({
|
|
85
|
-
accountID: z.string(),
|
|
86
|
-
CreateTransferOptions: components.CreateTransferOptions$inboundSchema,
|
|
87
|
-
}).transform((v) => {
|
|
88
|
-
return (0, primitives_js_1.remap)(v, {
|
|
89
|
-
"CreateTransferOptions": "createTransferOptions",
|
|
90
|
-
});
|
|
91
|
-
});
|
|
92
|
-
/** @internal */
|
|
93
|
-
exports.CreateTransferOptionsForAccountRequest$outboundSchema = z.object({
|
|
94
|
-
accountID: z.string(),
|
|
95
|
-
createTransferOptions: components.CreateTransferOptions$outboundSchema,
|
|
96
|
-
}).transform((v) => {
|
|
97
|
-
return (0, primitives_js_1.remap)(v, {
|
|
98
|
-
createTransferOptions: "CreateTransferOptions",
|
|
99
|
-
});
|
|
100
|
-
});
|
|
101
|
-
/**
|
|
102
|
-
* @internal
|
|
103
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
104
|
-
*/
|
|
105
|
-
var CreateTransferOptionsForAccountRequest$;
|
|
106
|
-
(function (CreateTransferOptionsForAccountRequest$) {
|
|
107
|
-
/** @deprecated use `CreateTransferOptionsForAccountRequest$inboundSchema` instead. */
|
|
108
|
-
CreateTransferOptionsForAccountRequest$.inboundSchema = exports.CreateTransferOptionsForAccountRequest$inboundSchema;
|
|
109
|
-
/** @deprecated use `CreateTransferOptionsForAccountRequest$outboundSchema` instead. */
|
|
110
|
-
CreateTransferOptionsForAccountRequest$.outboundSchema = exports.CreateTransferOptionsForAccountRequest$outboundSchema;
|
|
111
|
-
})(CreateTransferOptionsForAccountRequest$ || (exports.CreateTransferOptionsForAccountRequest$ = CreateTransferOptionsForAccountRequest$ = {}));
|
|
112
|
-
function createTransferOptionsForAccountRequestToJSON(createTransferOptionsForAccountRequest) {
|
|
113
|
-
return JSON.stringify(exports.CreateTransferOptionsForAccountRequest$outboundSchema.parse(createTransferOptionsForAccountRequest));
|
|
114
|
-
}
|
|
115
|
-
function createTransferOptionsForAccountRequestFromJSON(jsonString) {
|
|
116
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateTransferOptionsForAccountRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateTransferOptionsForAccountRequest' from JSON`);
|
|
117
|
-
}
|
|
118
|
-
/** @internal */
|
|
119
|
-
exports.CreateTransferOptionsForAccountResponse$inboundSchema = z.object({
|
|
120
|
-
Headers: z.record(z.array(z.string())),
|
|
121
|
-
Result: components.TransferOptions$inboundSchema,
|
|
122
|
-
}).transform((v) => {
|
|
123
|
-
return (0, primitives_js_1.remap)(v, {
|
|
124
|
-
"Headers": "headers",
|
|
125
|
-
"Result": "result",
|
|
126
|
-
});
|
|
127
|
-
});
|
|
128
|
-
/** @internal */
|
|
129
|
-
exports.CreateTransferOptionsForAccountResponse$outboundSchema = z.object({
|
|
130
|
-
headers: z.record(z.array(z.string())),
|
|
131
|
-
result: components.TransferOptions$outboundSchema,
|
|
132
|
-
}).transform((v) => {
|
|
133
|
-
return (0, primitives_js_1.remap)(v, {
|
|
134
|
-
headers: "Headers",
|
|
135
|
-
result: "Result",
|
|
136
|
-
});
|
|
137
|
-
});
|
|
138
|
-
/**
|
|
139
|
-
* @internal
|
|
140
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
141
|
-
*/
|
|
142
|
-
var CreateTransferOptionsForAccountResponse$;
|
|
143
|
-
(function (CreateTransferOptionsForAccountResponse$) {
|
|
144
|
-
/** @deprecated use `CreateTransferOptionsForAccountResponse$inboundSchema` instead. */
|
|
145
|
-
CreateTransferOptionsForAccountResponse$.inboundSchema = exports.CreateTransferOptionsForAccountResponse$inboundSchema;
|
|
146
|
-
/** @deprecated use `CreateTransferOptionsForAccountResponse$outboundSchema` instead. */
|
|
147
|
-
CreateTransferOptionsForAccountResponse$.outboundSchema = exports.CreateTransferOptionsForAccountResponse$outboundSchema;
|
|
148
|
-
})(CreateTransferOptionsForAccountResponse$ || (exports.CreateTransferOptionsForAccountResponse$ = CreateTransferOptionsForAccountResponse$ = {}));
|
|
149
|
-
function createTransferOptionsForAccountResponseToJSON(createTransferOptionsForAccountResponse) {
|
|
150
|
-
return JSON.stringify(exports.CreateTransferOptionsForAccountResponse$outboundSchema.parse(createTransferOptionsForAccountResponse));
|
|
151
|
-
}
|
|
152
|
-
function createTransferOptionsForAccountResponseFromJSON(jsonString) {
|
|
153
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateTransferOptionsForAccountResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateTransferOptionsForAccountResponse' from JSON`);
|
|
154
|
-
}
|
|
155
|
-
//# sourceMappingURL=createtransferoptionsforaccount.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createtransferoptionsforaccount.js","sourceRoot":"","sources":["../../src/models/operations/createtransferoptionsforaccount.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqFH,oGASC;AAED,wGASC;AAmDD,oGASC;AAED,wGASC;AAqDD,sGASC;AAED,0GAcC;AA5PD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AAiCrD,gBAAgB;AACH,QAAA,oDAAoD,GAI7D,CAAC,CAAC,MAAM,CAAC;IACX,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC;CACpD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,gBAAgB,EAAE,cAAc;KACjC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,qDAAqD,GAI9D,CAAC,CAAC,MAAM,CAAC;IACX,YAA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