@moovio/sdk 0.14.4 → 0.14.6
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 +180 -303
- package/bin/mcp-server.js.map +16 -18
- package/docs/sdks/transfers/README.md +11 -116
- package/examples/package-lock.json +1 -1
- package/funcs/supportListTickets.js +1 -0
- package/funcs/supportListTickets.js.map +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/cardtransactiondetails.d.ts +5 -0
- package/models/components/cardtransactiondetails.d.ts.map +1 -1
- package/models/components/cardtransactiondetails.js +2 -0
- package/models/components/cardtransactiondetails.js.map +1 -1
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/itemlistnextpage.d.ts +32 -0
- package/models/components/itemlistnextpage.d.ts.map +1 -0
- package/models/components/itemlistnextpage.js +69 -0
- package/models/components/itemlistnextpage.js.map +1 -0
- 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/models/operations/listtickets.d.ts +34 -2
- package/models/operations/listtickets.d.ts.map +1 -1
- package/models/operations/listtickets.js +34 -3
- package/models/operations/listtickets.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/supportListTickets.ts +1 -0
- 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/cardtransactiondetails.ts +7 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/itemlistnextpage.ts +69 -0
- 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/models/operations/listtickets.ts +73 -4
- package/src/sdk/transfers.ts +4 -26
- package/test/README.md +13 -1
- package/test/package.json +2 -0
- 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
|
@@ -29,12 +29,21 @@ export type ListTicketsGlobals = {
|
|
|
29
29
|
export type ListTicketsRequest = {
|
|
30
30
|
cursor?: string | undefined;
|
|
31
31
|
count?: number | undefined;
|
|
32
|
+
status?: components.TicketStatus | undefined;
|
|
32
33
|
accountID: string;
|
|
33
34
|
};
|
|
34
35
|
|
|
36
|
+
/**
|
|
37
|
+
* A paginated list of items. The `nextPage` field is omitted if there are no more pages available.
|
|
38
|
+
*/
|
|
39
|
+
export type ListTicketsResponseBody = {
|
|
40
|
+
items: Array<components.Ticket>;
|
|
41
|
+
nextPage?: components.ItemListNextPage | undefined;
|
|
42
|
+
};
|
|
43
|
+
|
|
35
44
|
export type ListTicketsResponse = {
|
|
36
45
|
headers: { [k: string]: Array<string> };
|
|
37
|
-
result:
|
|
46
|
+
result: ListTicketsResponseBody;
|
|
38
47
|
};
|
|
39
48
|
|
|
40
49
|
/** @internal */
|
|
@@ -107,6 +116,7 @@ export const ListTicketsRequest$inboundSchema: z.ZodType<
|
|
|
107
116
|
> = z.object({
|
|
108
117
|
cursor: z.string().optional(),
|
|
109
118
|
count: z.number().int().optional(),
|
|
119
|
+
status: components.TicketStatus$inboundSchema.optional(),
|
|
110
120
|
accountID: z.string(),
|
|
111
121
|
});
|
|
112
122
|
|
|
@@ -114,6 +124,7 @@ export const ListTicketsRequest$inboundSchema: z.ZodType<
|
|
|
114
124
|
export type ListTicketsRequest$Outbound = {
|
|
115
125
|
cursor?: string | undefined;
|
|
116
126
|
count?: number | undefined;
|
|
127
|
+
status?: string | undefined;
|
|
117
128
|
accountID: string;
|
|
118
129
|
};
|
|
119
130
|
|
|
@@ -125,6 +136,7 @@ export const ListTicketsRequest$outboundSchema: z.ZodType<
|
|
|
125
136
|
> = z.object({
|
|
126
137
|
cursor: z.string().optional(),
|
|
127
138
|
count: z.number().int().optional(),
|
|
139
|
+
status: components.TicketStatus$outboundSchema.optional(),
|
|
128
140
|
accountID: z.string(),
|
|
129
141
|
});
|
|
130
142
|
|
|
@@ -159,6 +171,63 @@ export function listTicketsRequestFromJSON(
|
|
|
159
171
|
);
|
|
160
172
|
}
|
|
161
173
|
|
|
174
|
+
/** @internal */
|
|
175
|
+
export const ListTicketsResponseBody$inboundSchema: z.ZodType<
|
|
176
|
+
ListTicketsResponseBody,
|
|
177
|
+
z.ZodTypeDef,
|
|
178
|
+
unknown
|
|
179
|
+
> = z.object({
|
|
180
|
+
items: z.array(components.Ticket$inboundSchema),
|
|
181
|
+
nextPage: components.ItemListNextPage$inboundSchema.optional(),
|
|
182
|
+
});
|
|
183
|
+
|
|
184
|
+
/** @internal */
|
|
185
|
+
export type ListTicketsResponseBody$Outbound = {
|
|
186
|
+
items: Array<components.Ticket$Outbound>;
|
|
187
|
+
nextPage?: components.ItemListNextPage$Outbound | undefined;
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
/** @internal */
|
|
191
|
+
export const ListTicketsResponseBody$outboundSchema: z.ZodType<
|
|
192
|
+
ListTicketsResponseBody$Outbound,
|
|
193
|
+
z.ZodTypeDef,
|
|
194
|
+
ListTicketsResponseBody
|
|
195
|
+
> = z.object({
|
|
196
|
+
items: z.array(components.Ticket$outboundSchema),
|
|
197
|
+
nextPage: components.ItemListNextPage$outboundSchema.optional(),
|
|
198
|
+
});
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* @internal
|
|
202
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
203
|
+
*/
|
|
204
|
+
export namespace ListTicketsResponseBody$ {
|
|
205
|
+
/** @deprecated use `ListTicketsResponseBody$inboundSchema` instead. */
|
|
206
|
+
export const inboundSchema = ListTicketsResponseBody$inboundSchema;
|
|
207
|
+
/** @deprecated use `ListTicketsResponseBody$outboundSchema` instead. */
|
|
208
|
+
export const outboundSchema = ListTicketsResponseBody$outboundSchema;
|
|
209
|
+
/** @deprecated use `ListTicketsResponseBody$Outbound` instead. */
|
|
210
|
+
export type Outbound = ListTicketsResponseBody$Outbound;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export function listTicketsResponseBodyToJSON(
|
|
214
|
+
listTicketsResponseBody: ListTicketsResponseBody,
|
|
215
|
+
): string {
|
|
216
|
+
return JSON.stringify(
|
|
217
|
+
ListTicketsResponseBody$outboundSchema.parse(listTicketsResponseBody),
|
|
218
|
+
);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export function listTicketsResponseBodyFromJSON(
|
|
222
|
+
jsonString: string,
|
|
223
|
+
): SafeParseResult<ListTicketsResponseBody, SDKValidationError> {
|
|
224
|
+
return safeParse(
|
|
225
|
+
jsonString,
|
|
226
|
+
(x) => ListTicketsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
227
|
+
`Failed to parse 'ListTicketsResponseBody' from JSON`,
|
|
228
|
+
);
|
|
229
|
+
}
|
|
230
|
+
|
|
162
231
|
/** @internal */
|
|
163
232
|
export const ListTicketsResponse$inboundSchema: z.ZodType<
|
|
164
233
|
ListTicketsResponse,
|
|
@@ -166,7 +235,7 @@ export const ListTicketsResponse$inboundSchema: z.ZodType<
|
|
|
166
235
|
unknown
|
|
167
236
|
> = z.object({
|
|
168
237
|
Headers: z.record(z.array(z.string())),
|
|
169
|
-
Result: z.
|
|
238
|
+
Result: z.lazy(() => ListTicketsResponseBody$inboundSchema),
|
|
170
239
|
}).transform((v) => {
|
|
171
240
|
return remap$(v, {
|
|
172
241
|
"Headers": "headers",
|
|
@@ -177,7 +246,7 @@ export const ListTicketsResponse$inboundSchema: z.ZodType<
|
|
|
177
246
|
/** @internal */
|
|
178
247
|
export type ListTicketsResponse$Outbound = {
|
|
179
248
|
Headers: { [k: string]: Array<string> };
|
|
180
|
-
Result:
|
|
249
|
+
Result: ListTicketsResponseBody$Outbound;
|
|
181
250
|
};
|
|
182
251
|
|
|
183
252
|
/** @internal */
|
|
@@ -187,7 +256,7 @@ export const ListTicketsResponse$outboundSchema: z.ZodType<
|
|
|
187
256
|
ListTicketsResponse
|
|
188
257
|
> = z.object({
|
|
189
258
|
headers: z.record(z.array(z.string())),
|
|
190
|
-
result: z.
|
|
259
|
+
result: z.lazy(() => ListTicketsResponseBody$outboundSchema),
|
|
191
260
|
}).transform((v) => {
|
|
192
261
|
return remap$(v, {
|
|
193
262
|
headers: "Headers",
|
package/src/sdk/transfers.ts
CHANGED
|
@@ -6,7 +6,6 @@ import { transfersCreate } from "../funcs/transfersCreate.js";
|
|
|
6
6
|
import { transfersCreateCancellation } from "../funcs/transfersCreateCancellation.js";
|
|
7
7
|
import { transfersCreateReversal } from "../funcs/transfersCreateReversal.js";
|
|
8
8
|
import { transfersGenerateOptions } from "../funcs/transfersGenerateOptions.js";
|
|
9
|
-
import { transfersGenerateOptionsForAccount } from "../funcs/transfersGenerateOptionsForAccount.js";
|
|
10
9
|
import { transfersGet } from "../funcs/transfersGet.js";
|
|
11
10
|
import { transfersGetCancellation } from "../funcs/transfersGetCancellation.js";
|
|
12
11
|
import { transfersGetRefund } from "../funcs/transfersGetRefund.js";
|
|
@@ -15,7 +14,6 @@ import { transfersList } from "../funcs/transfersList.js";
|
|
|
15
14
|
import { transfersListRefunds } from "../funcs/transfersListRefunds.js";
|
|
16
15
|
import { transfersUpdate } from "../funcs/transfersUpdate.js";
|
|
17
16
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
18
|
-
import * as components from "../models/components/index.js";
|
|
19
17
|
import * as operations from "../models/operations/index.js";
|
|
20
18
|
import { unwrapAsync } from "../types/fp.js";
|
|
21
19
|
|
|
@@ -31,11 +29,11 @@ export class Transfers extends ClientSDK {
|
|
|
31
29
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
32
30
|
* you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
|
|
33
31
|
*/
|
|
34
|
-
async
|
|
35
|
-
request: operations.
|
|
32
|
+
async generateOptions(
|
|
33
|
+
request: operations.CreateTransferOptionsRequest,
|
|
36
34
|
options?: RequestOptions,
|
|
37
|
-
): Promise<operations.
|
|
38
|
-
return unwrapAsync(
|
|
35
|
+
): Promise<operations.CreateTransferOptionsResponse> {
|
|
36
|
+
return unwrapAsync(transfersGenerateOptions(
|
|
39
37
|
this,
|
|
40
38
|
request,
|
|
41
39
|
options,
|
|
@@ -230,24 +228,4 @@ export class Transfers extends ClientSDK {
|
|
|
230
228
|
options,
|
|
231
229
|
));
|
|
232
230
|
}
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* Generate available payment method options for one or multiple transfer participants depending on the accountID or paymentMethodID you
|
|
236
|
-
* supply in the request.
|
|
237
|
-
*
|
|
238
|
-
* Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
|
|
239
|
-
*
|
|
240
|
-
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
241
|
-
* you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
|
|
242
|
-
*/
|
|
243
|
-
async generateOptions(
|
|
244
|
-
request: components.CreateTransferOptions,
|
|
245
|
-
options?: RequestOptions,
|
|
246
|
-
): Promise<operations.CreateTransferOptionsResponse> {
|
|
247
|
-
return unwrapAsync(transfersGenerateOptions(
|
|
248
|
-
this,
|
|
249
|
-
request,
|
|
250
|
-
options,
|
|
251
|
-
));
|
|
252
|
-
}
|
|
253
231
|
}
|
package/test/README.md
CHANGED
|
@@ -1,2 +1,14 @@
|
|
|
1
1
|
1. Make sure you have `bun` [installed](https://bun.sh/docs/installation)
|
|
2
|
-
2. Run `bun
|
|
2
|
+
2. Run `bun run setup` (this will build and link the parent package)
|
|
3
|
+
3. Run `bun run test` or `bun run test:verbose` to see all the Requests and Responses
|
|
4
|
+
4. Create a moov API Key and create the `.secrets.json` file in this folder with this format:
|
|
5
|
+
```json
|
|
6
|
+
{
|
|
7
|
+
"username": "publicKey",
|
|
8
|
+
"password": "privateKey",
|
|
9
|
+
"serverURL": "https://dashboard.moov-staging.io/api/"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
ℹ️️ Running `bun run test` will automatically build the parent project to make sure you're always testing the latest version
|
package/test/package.json
CHANGED
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
"scripts": {
|
|
6
6
|
"format": "prettier --write \"**/*.{ts,tsx,md,json}\"",
|
|
7
7
|
"format:check": "prettier --check \"**/*.{ts,tsx,md,json}\"",
|
|
8
|
+
"setup": "cd .. && bun i && bun link && bun run build && cd test && bun link @moovio/sdk && bun i",
|
|
9
|
+
"pretest": "cd .. && bun run build",
|
|
8
10
|
"test": "bun test --timeout 20000",
|
|
9
11
|
"test:verbose": "VERBOSE=1 bun test --timeout 20000"
|
|
10
12
|
},
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { MoovCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
4
|
-
import * as errors from "../models/errors/index.js";
|
|
5
|
-
import { MoovError } from "../models/errors/mooverror.js";
|
|
6
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
7
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
-
import * as operations from "../models/operations/index.js";
|
|
9
|
-
import { APIPromise } from "../types/async.js";
|
|
10
|
-
import { Result } from "../types/fp.js";
|
|
11
|
-
/**
|
|
12
|
-
* Generate available payment method options for one or multiple transfer participants depending on the accountID or paymentMethodID you
|
|
13
|
-
* supply in the request body.
|
|
14
|
-
*
|
|
15
|
-
* The accountID in the route should the partner's accountID.
|
|
16
|
-
*
|
|
17
|
-
* Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
|
|
18
|
-
*
|
|
19
|
-
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
20
|
-
* you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
|
|
21
|
-
*/
|
|
22
|
-
export declare function transfersGenerateOptionsForAccount(client: MoovCore, request: operations.CreateTransferOptionsForAccountRequest, options?: RequestOptions): APIPromise<Result<operations.CreateTransferOptionsForAccountResponse, errors.GenericError | errors.TransferOptionsValidationError | MoovError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
23
|
-
//# sourceMappingURL=transfersGenerateOptionsForAccount.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transfersGenerateOptionsForAccount.d.ts","sourceRoot":"","sources":["../src/funcs/transfersGenerateOptionsForAccount.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAKtC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;;;;GAUG;AACH,wBAAgB,kCAAkC,CAChD,MAAM,EAAE,QAAQ,EAChB,OAAO,EAAE,UAAU,CAAC,sCAAsC,EAC1D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,uCAAuC,EAChD,MAAM,CAAC,YAAY,GACnB,MAAM,CAAC,8BAA8B,GACrC,SAAS,GACT,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -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;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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,GAAG;IACnD;;;;;;;;;;;;OAYG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,sCAAsC,GAAG;IACnD;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,qBAAqB,EAAE,UAAU,CAAC,qBAAqB,CAAC;CACzD,CAAC;AAEF,MAAM,MAAM,uCAAuC,GAAG;IACpD,OAAO,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC;IACxC,MAAM,EAAE,UAAU,CAAC,eAAe,CAAC;CACpC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oDA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