@moovio/sdk 0.15.1 → 0.15.2
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 +7 -3
- package/bin/mcp-server.js +360 -49
- package/bin/mcp-server.js.map +20 -16
- package/docs/sdks/transfers/README.md +8 -6
- package/docs/sdks/wallets/README.md +14 -13
- package/docs/sdks/wallettransactions/README.md +4 -3
- package/examples/package-lock.json +1 -1
- package/funcs/transfersList.d.ts +2 -1
- package/funcs/transfersList.d.ts.map +1 -1
- package/funcs/transfersList.js +4 -1
- package/funcs/transfersList.js.map +1 -1
- package/funcs/transfersUpdate.d.ts +2 -1
- package/funcs/transfersUpdate.d.ts.map +1 -1
- package/funcs/transfersUpdate.js +4 -1
- package/funcs/transfersUpdate.js.map +1 -1
- package/funcs/walletTransactionsList.d.ts +2 -1
- package/funcs/walletTransactionsList.d.ts.map +1 -1
- package/funcs/walletTransactionsList.js +4 -1
- package/funcs/walletTransactionsList.js.map +1 -1
- package/funcs/walletsCreate.d.ts +1 -1
- package/funcs/walletsCreate.d.ts.map +1 -1
- package/funcs/walletsCreate.js +3 -1
- package/funcs/walletsCreate.js.map +1 -1
- package/funcs/walletsList.d.ts +2 -1
- package/funcs/walletsList.d.ts.map +1 -1
- package/funcs/walletsList.js +4 -1
- package/funcs/walletsList.js.map +1 -1
- package/funcs/walletsUpdate.d.ts +1 -1
- package/funcs/walletsUpdate.d.ts.map +1 -1
- package/funcs/walletsUpdate.js +3 -1
- package/funcs/walletsUpdate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/errors/createwalletvalidationerror.d.ts +41 -0
- package/models/errors/createwalletvalidationerror.d.ts.map +1 -0
- package/models/errors/{createwalleterror.js → createwalletvalidationerror.js} +15 -15
- package/models/errors/createwalletvalidationerror.js.map +1 -0
- package/models/errors/index.d.ts +6 -2
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +6 -2
- package/models/errors/index.js.map +1 -1
- package/models/errors/listtransfersvalidationerror.d.ts +69 -0
- package/models/errors/listtransfersvalidationerror.d.ts.map +1 -0
- package/models/errors/listtransfersvalidationerror.js +130 -0
- package/models/errors/listtransfersvalidationerror.js.map +1 -0
- package/models/errors/listwalletsvalidationerror.d.ts +45 -0
- package/models/errors/listwalletsvalidationerror.d.ts.map +1 -0
- package/models/errors/listwalletsvalidationerror.js +98 -0
- package/models/errors/listwalletsvalidationerror.js.map +1 -0
- package/models/errors/listwallettransactionsvalidationerror.d.ts +72 -0
- package/models/errors/listwallettransactionsvalidationerror.d.ts.map +1 -0
- package/models/errors/listwallettransactionsvalidationerror.js +140 -0
- package/models/errors/listwallettransactionsvalidationerror.js.map +1 -0
- package/models/errors/patchtransfervalidationerror.d.ts +39 -0
- package/models/errors/patchtransfervalidationerror.d.ts.map +1 -0
- package/models/errors/patchtransfervalidationerror.js +90 -0
- package/models/errors/patchtransfervalidationerror.js.map +1 -0
- package/models/errors/patchwalletvalidationerror.d.ts +44 -0
- package/models/errors/patchwalletvalidationerror.d.ts.map +1 -0
- package/models/errors/{patchwalleterror.js → patchwalletvalidationerror.js} +15 -15
- package/models/errors/patchwalletvalidationerror.js.map +1 -0
- package/models/errors/transfervalidationerror.d.ts +6 -12
- package/models/errors/transfervalidationerror.d.ts.map +1 -1
- package/models/errors/transfervalidationerror.js +8 -10
- package/models/errors/transfervalidationerror.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/transfersList.ts +8 -1
- package/src/funcs/transfersUpdate.ts +8 -1
- package/src/funcs/walletTransactionsList.ts +8 -1
- package/src/funcs/walletsCreate.ts +6 -4
- package/src/funcs/walletsList.ts +8 -1
- package/src/funcs/walletsUpdate.ts +6 -4
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/errors/{createwalleterror.ts → createwalletvalidationerror.ts} +20 -20
- package/src/models/errors/index.ts +6 -2
- package/src/models/errors/listtransfersvalidationerror.ts +145 -0
- package/src/models/errors/listwalletsvalidationerror.ts +97 -0
- package/src/models/errors/listwallettransactionsvalidationerror.ts +165 -0
- package/src/models/errors/patchtransfervalidationerror.ts +85 -0
- package/src/models/errors/{patchwalleterror.ts → patchwalletvalidationerror.ts} +20 -20
- package/src/models/errors/transfervalidationerror.ts +12 -20
- package/models/errors/createwalleterror.d.ts +0 -41
- package/models/errors/createwalleterror.d.ts.map +0 -1
- package/models/errors/createwalleterror.js.map +0 -1
- package/models/errors/patchwalleterror.d.ts +0 -44
- package/models/errors/patchwalleterror.d.ts.map +0 -1
- package/models/errors/patchwalleterror.js.map +0 -1
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
RequestTimeoutError,
|
|
18
18
|
UnexpectedClientError,
|
|
19
19
|
} from "../models/errors/httpclienterrors.js";
|
|
20
|
+
import * as errors from "../models/errors/index.js";
|
|
20
21
|
import { MoovError } from "../models/errors/mooverror.js";
|
|
21
22
|
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
22
23
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
@@ -39,6 +40,7 @@ export function transfersUpdate(
|
|
|
39
40
|
): APIPromise<
|
|
40
41
|
Result<
|
|
41
42
|
operations.UpdateTransferResponse,
|
|
43
|
+
| errors.PatchTransferValidationError
|
|
42
44
|
| MoovError
|
|
43
45
|
| ResponseValidationError
|
|
44
46
|
| ConnectionError
|
|
@@ -64,6 +66,7 @@ async function $do(
|
|
|
64
66
|
[
|
|
65
67
|
Result<
|
|
66
68
|
operations.UpdateTransferResponse,
|
|
69
|
+
| errors.PatchTransferValidationError
|
|
67
70
|
| MoovError
|
|
68
71
|
| ResponseValidationError
|
|
69
72
|
| ConnectionError
|
|
@@ -147,7 +150,7 @@ async function $do(
|
|
|
147
150
|
|
|
148
151
|
const doResult = await client._do(req, {
|
|
149
152
|
context,
|
|
150
|
-
errorCodes: ["401", "403", "404", "429", "4XX", "500", "504", "5XX"],
|
|
153
|
+
errorCodes: ["401", "403", "404", "422", "429", "4XX", "500", "504", "5XX"],
|
|
151
154
|
retryConfig: context.retryConfig,
|
|
152
155
|
retryCodes: context.retryCodes,
|
|
153
156
|
});
|
|
@@ -162,6 +165,7 @@ async function $do(
|
|
|
162
165
|
|
|
163
166
|
const [result] = await M.match<
|
|
164
167
|
operations.UpdateTransferResponse,
|
|
168
|
+
| errors.PatchTransferValidationError
|
|
165
169
|
| MoovError
|
|
166
170
|
| ResponseValidationError
|
|
167
171
|
| ConnectionError
|
|
@@ -175,6 +179,9 @@ async function $do(
|
|
|
175
179
|
hdrs: true,
|
|
176
180
|
key: "Result",
|
|
177
181
|
}),
|
|
182
|
+
M.jsonErr(422, errors.PatchTransferValidationError$inboundSchema, {
|
|
183
|
+
hdrs: true,
|
|
184
|
+
}),
|
|
178
185
|
M.fail([401, 403, 404, 429]),
|
|
179
186
|
M.fail([500, 504]),
|
|
180
187
|
M.fail("4XX"),
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
RequestTimeoutError,
|
|
18
18
|
UnexpectedClientError,
|
|
19
19
|
} from "../models/errors/httpclienterrors.js";
|
|
20
|
+
import * as errors from "../models/errors/index.js";
|
|
20
21
|
import { MoovError } from "../models/errors/mooverror.js";
|
|
21
22
|
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
22
23
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
@@ -39,6 +40,7 @@ export function walletTransactionsList(
|
|
|
39
40
|
): APIPromise<
|
|
40
41
|
Result<
|
|
41
42
|
operations.ListWalletTransactionsResponse,
|
|
43
|
+
| errors.ListWalletTransactionsValidationError
|
|
42
44
|
| MoovError
|
|
43
45
|
| ResponseValidationError
|
|
44
46
|
| ConnectionError
|
|
@@ -64,6 +66,7 @@ async function $do(
|
|
|
64
66
|
[
|
|
65
67
|
Result<
|
|
66
68
|
operations.ListWalletTransactionsResponse,
|
|
69
|
+
| errors.ListWalletTransactionsValidationError
|
|
67
70
|
| MoovError
|
|
68
71
|
| ResponseValidationError
|
|
69
72
|
| ConnectionError
|
|
@@ -163,7 +166,7 @@ async function $do(
|
|
|
163
166
|
|
|
164
167
|
const doResult = await client._do(req, {
|
|
165
168
|
context,
|
|
166
|
-
errorCodes: ["401", "403", "429", "4XX", "500", "504", "5XX"],
|
|
169
|
+
errorCodes: ["401", "403", "422", "429", "4XX", "500", "504", "5XX"],
|
|
167
170
|
retryConfig: context.retryConfig,
|
|
168
171
|
retryCodes: context.retryCodes,
|
|
169
172
|
});
|
|
@@ -178,6 +181,7 @@ async function $do(
|
|
|
178
181
|
|
|
179
182
|
const [result] = await M.match<
|
|
180
183
|
operations.ListWalletTransactionsResponse,
|
|
184
|
+
| errors.ListWalletTransactionsValidationError
|
|
181
185
|
| MoovError
|
|
182
186
|
| ResponseValidationError
|
|
183
187
|
| ConnectionError
|
|
@@ -191,6 +195,9 @@ async function $do(
|
|
|
191
195
|
hdrs: true,
|
|
192
196
|
key: "Result",
|
|
193
197
|
}),
|
|
198
|
+
M.jsonErr(422, errors.ListWalletTransactionsValidationError$inboundSchema, {
|
|
199
|
+
hdrs: true,
|
|
200
|
+
}),
|
|
194
201
|
M.fail([401, 403, 429]),
|
|
195
202
|
M.fail([500, 504]),
|
|
196
203
|
M.fail("4XX"),
|
|
@@ -41,7 +41,7 @@ export function walletsCreate(
|
|
|
41
41
|
Result<
|
|
42
42
|
operations.CreateWalletResponse,
|
|
43
43
|
| errors.GenericError
|
|
44
|
-
| errors.
|
|
44
|
+
| errors.CreateWalletValidationError
|
|
45
45
|
| MoovError
|
|
46
46
|
| ResponseValidationError
|
|
47
47
|
| ConnectionError
|
|
@@ -68,7 +68,7 @@ async function $do(
|
|
|
68
68
|
Result<
|
|
69
69
|
operations.CreateWalletResponse,
|
|
70
70
|
| errors.GenericError
|
|
71
|
-
| errors.
|
|
71
|
+
| errors.CreateWalletValidationError
|
|
72
72
|
| MoovError
|
|
73
73
|
| ResponseValidationError
|
|
74
74
|
| ConnectionError
|
|
@@ -174,7 +174,7 @@ async function $do(
|
|
|
174
174
|
const [result] = await M.match<
|
|
175
175
|
operations.CreateWalletResponse,
|
|
176
176
|
| errors.GenericError
|
|
177
|
-
| errors.
|
|
177
|
+
| errors.CreateWalletValidationError
|
|
178
178
|
| MoovError
|
|
179
179
|
| ResponseValidationError
|
|
180
180
|
| ConnectionError
|
|
@@ -189,7 +189,9 @@ async function $do(
|
|
|
189
189
|
key: "Result",
|
|
190
190
|
}),
|
|
191
191
|
M.jsonErr([400, 409], errors.GenericError$inboundSchema, { hdrs: true }),
|
|
192
|
-
M.jsonErr(422, errors.
|
|
192
|
+
M.jsonErr(422, errors.CreateWalletValidationError$inboundSchema, {
|
|
193
|
+
hdrs: true,
|
|
194
|
+
}),
|
|
193
195
|
M.fail([401, 403, 404, 429]),
|
|
194
196
|
M.fail([500, 504]),
|
|
195
197
|
M.fail("4XX"),
|
package/src/funcs/walletsList.ts
CHANGED
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
RequestTimeoutError,
|
|
18
18
|
UnexpectedClientError,
|
|
19
19
|
} from "../models/errors/httpclienterrors.js";
|
|
20
|
+
import * as errors from "../models/errors/index.js";
|
|
20
21
|
import { MoovError } from "../models/errors/mooverror.js";
|
|
21
22
|
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
22
23
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
@@ -39,6 +40,7 @@ export function walletsList(
|
|
|
39
40
|
): APIPromise<
|
|
40
41
|
Result<
|
|
41
42
|
operations.ListWalletsResponse,
|
|
43
|
+
| errors.ListWalletsValidationError
|
|
42
44
|
| MoovError
|
|
43
45
|
| ResponseValidationError
|
|
44
46
|
| ConnectionError
|
|
@@ -64,6 +66,7 @@ async function $do(
|
|
|
64
66
|
[
|
|
65
67
|
Result<
|
|
66
68
|
operations.ListWalletsResponse,
|
|
69
|
+
| errors.ListWalletsValidationError
|
|
67
70
|
| MoovError
|
|
68
71
|
| ResponseValidationError
|
|
69
72
|
| ConnectionError
|
|
@@ -148,7 +151,7 @@ async function $do(
|
|
|
148
151
|
|
|
149
152
|
const doResult = await client._do(req, {
|
|
150
153
|
context,
|
|
151
|
-
errorCodes: ["401", "403", "429", "4XX", "500", "504", "5XX"],
|
|
154
|
+
errorCodes: ["401", "403", "422", "429", "4XX", "500", "504", "5XX"],
|
|
152
155
|
retryConfig: context.retryConfig,
|
|
153
156
|
retryCodes: context.retryCodes,
|
|
154
157
|
});
|
|
@@ -163,6 +166,7 @@ async function $do(
|
|
|
163
166
|
|
|
164
167
|
const [result] = await M.match<
|
|
165
168
|
operations.ListWalletsResponse,
|
|
169
|
+
| errors.ListWalletsValidationError
|
|
166
170
|
| MoovError
|
|
167
171
|
| ResponseValidationError
|
|
168
172
|
| ConnectionError
|
|
@@ -176,6 +180,9 @@ async function $do(
|
|
|
176
180
|
hdrs: true,
|
|
177
181
|
key: "Result",
|
|
178
182
|
}),
|
|
183
|
+
M.jsonErr(422, errors.ListWalletsValidationError$inboundSchema, {
|
|
184
|
+
hdrs: true,
|
|
185
|
+
}),
|
|
179
186
|
M.fail([401, 403, 429]),
|
|
180
187
|
M.fail([500, 504]),
|
|
181
188
|
M.fail("4XX"),
|
|
@@ -41,7 +41,7 @@ export function walletsUpdate(
|
|
|
41
41
|
Result<
|
|
42
42
|
operations.UpdateWalletResponse,
|
|
43
43
|
| errors.GenericError
|
|
44
|
-
| errors.
|
|
44
|
+
| errors.PatchWalletValidationError
|
|
45
45
|
| MoovError
|
|
46
46
|
| ResponseValidationError
|
|
47
47
|
| ConnectionError
|
|
@@ -68,7 +68,7 @@ async function $do(
|
|
|
68
68
|
Result<
|
|
69
69
|
operations.UpdateWalletResponse,
|
|
70
70
|
| errors.GenericError
|
|
71
|
-
| errors.
|
|
71
|
+
| errors.PatchWalletValidationError
|
|
72
72
|
| MoovError
|
|
73
73
|
| ResponseValidationError
|
|
74
74
|
| ConnectionError
|
|
@@ -180,7 +180,7 @@ async function $do(
|
|
|
180
180
|
const [result] = await M.match<
|
|
181
181
|
operations.UpdateWalletResponse,
|
|
182
182
|
| errors.GenericError
|
|
183
|
-
| errors.
|
|
183
|
+
| errors.PatchWalletValidationError
|
|
184
184
|
| MoovError
|
|
185
185
|
| ResponseValidationError
|
|
186
186
|
| ConnectionError
|
|
@@ -195,7 +195,9 @@ async function $do(
|
|
|
195
195
|
key: "Result",
|
|
196
196
|
}),
|
|
197
197
|
M.jsonErr([400, 409], errors.GenericError$inboundSchema, { hdrs: true }),
|
|
198
|
-
M.jsonErr(422, errors.
|
|
198
|
+
M.jsonErr(422, errors.PatchWalletValidationError$inboundSchema, {
|
|
199
|
+
hdrs: true,
|
|
200
|
+
}),
|
|
199
201
|
M.fail([401, 403, 404, 429]),
|
|
200
202
|
M.fail([500, 504]),
|
|
201
203
|
M.fail("4XX"),
|
package/src/lib/config.ts
CHANGED
|
@@ -73,7 +73,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
73
73
|
export const SDK_METADATA = {
|
|
74
74
|
language: "typescript",
|
|
75
75
|
openapiDocVersion: "latest",
|
|
76
|
-
sdkVersion: "0.15.
|
|
76
|
+
sdkVersion: "0.15.2",
|
|
77
77
|
genVersion: "2.709.0",
|
|
78
|
-
userAgent: "speakeasy-sdk/typescript 0.15.
|
|
78
|
+
userAgent: "speakeasy-sdk/typescript 0.15.2 2.709.0 latest @moovio/sdk",
|
|
79
79
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -5,21 +5,21 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { MoovError } from "./mooverror.js";
|
|
7
7
|
|
|
8
|
-
export type
|
|
8
|
+
export type CreateWalletValidationErrorData = {
|
|
9
9
|
name?: string | undefined;
|
|
10
10
|
description?: string | undefined;
|
|
11
11
|
metadata?: string | undefined;
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
export class
|
|
14
|
+
export class CreateWalletValidationError extends MoovError {
|
|
15
15
|
description?: string | undefined;
|
|
16
16
|
metadata?: string | undefined;
|
|
17
17
|
|
|
18
18
|
/** The original data that was passed to this error instance. */
|
|
19
|
-
data$:
|
|
19
|
+
data$: CreateWalletValidationErrorData;
|
|
20
20
|
|
|
21
21
|
constructor(
|
|
22
|
-
err:
|
|
22
|
+
err: CreateWalletValidationErrorData,
|
|
23
23
|
httpMeta: { response: Response; request: Request; body: string },
|
|
24
24
|
) {
|
|
25
25
|
const message = "message" in err && typeof err.message === "string"
|
|
@@ -30,13 +30,13 @@ export class CreateWalletError extends MoovError {
|
|
|
30
30
|
if (err.description != null) this.description = err.description;
|
|
31
31
|
if (err.metadata != null) this.metadata = err.metadata;
|
|
32
32
|
|
|
33
|
-
this.name = "
|
|
33
|
+
this.name = "CreateWalletValidationError";
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
/** @internal */
|
|
38
|
-
export const
|
|
39
|
-
|
|
38
|
+
export const CreateWalletValidationError$inboundSchema: z.ZodType<
|
|
39
|
+
CreateWalletValidationError,
|
|
40
40
|
z.ZodTypeDef,
|
|
41
41
|
unknown
|
|
42
42
|
> = z.object({
|
|
@@ -48,7 +48,7 @@ export const CreateWalletError$inboundSchema: z.ZodType<
|
|
|
48
48
|
body$: z.string(),
|
|
49
49
|
})
|
|
50
50
|
.transform((v) => {
|
|
51
|
-
return new
|
|
51
|
+
return new CreateWalletValidationError(v, {
|
|
52
52
|
request: v.request$,
|
|
53
53
|
response: v.response$,
|
|
54
54
|
body: v.body$,
|
|
@@ -56,18 +56,18 @@ export const CreateWalletError$inboundSchema: z.ZodType<
|
|
|
56
56
|
});
|
|
57
57
|
|
|
58
58
|
/** @internal */
|
|
59
|
-
export type
|
|
59
|
+
export type CreateWalletValidationError$Outbound = {
|
|
60
60
|
name?: string | undefined;
|
|
61
61
|
description?: string | undefined;
|
|
62
62
|
metadata?: string | undefined;
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
/** @internal */
|
|
66
|
-
export const
|
|
67
|
-
|
|
66
|
+
export const CreateWalletValidationError$outboundSchema: z.ZodType<
|
|
67
|
+
CreateWalletValidationError$Outbound,
|
|
68
68
|
z.ZodTypeDef,
|
|
69
|
-
|
|
70
|
-
> = z.instanceof(
|
|
69
|
+
CreateWalletValidationError
|
|
70
|
+
> = z.instanceof(CreateWalletValidationError)
|
|
71
71
|
.transform(v => v.data$)
|
|
72
72
|
.pipe(z.object({
|
|
73
73
|
name: z.string().optional(),
|
|
@@ -79,11 +79,11 @@ export const CreateWalletError$outboundSchema: z.ZodType<
|
|
|
79
79
|
* @internal
|
|
80
80
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
81
81
|
*/
|
|
82
|
-
export namespace
|
|
83
|
-
/** @deprecated use `
|
|
84
|
-
export const inboundSchema =
|
|
85
|
-
/** @deprecated use `
|
|
86
|
-
export const outboundSchema =
|
|
87
|
-
/** @deprecated use `
|
|
88
|
-
export type Outbound =
|
|
82
|
+
export namespace CreateWalletValidationError$ {
|
|
83
|
+
/** @deprecated use `CreateWalletValidationError$inboundSchema` instead. */
|
|
84
|
+
export const inboundSchema = CreateWalletValidationError$inboundSchema;
|
|
85
|
+
/** @deprecated use `CreateWalletValidationError$outboundSchema` instead. */
|
|
86
|
+
export const outboundSchema = CreateWalletValidationError$outboundSchema;
|
|
87
|
+
/** @deprecated use `CreateWalletValidationError$Outbound` instead. */
|
|
88
|
+
export type Outbound = CreateWalletValidationError$Outbound;
|
|
89
89
|
}
|
|
@@ -14,7 +14,7 @@ export * from "./createaccounterror.js";
|
|
|
14
14
|
export * from "./createpaymentlinkerror.js";
|
|
15
15
|
export * from "./createsweepconfigerror.js";
|
|
16
16
|
export * from "./createticketerror.js";
|
|
17
|
-
export * from "./
|
|
17
|
+
export * from "./createwalletvalidationerror.js";
|
|
18
18
|
export * from "./feeplanagreementerror.js";
|
|
19
19
|
export * from "./fileuploadvalidationerror.js";
|
|
20
20
|
export * from "./filevalidationerror.js";
|
|
@@ -22,12 +22,16 @@ export * from "./genericerror.js";
|
|
|
22
22
|
export * from "./httpclienterrors.js";
|
|
23
23
|
export * from "./linkapplepayerror.js";
|
|
24
24
|
export * from "./linkcarderror.js";
|
|
25
|
+
export * from "./listtransfersvalidationerror.js";
|
|
26
|
+
export * from "./listwalletsvalidationerror.js";
|
|
27
|
+
export * from "./listwallettransactionsvalidationerror.js";
|
|
25
28
|
export * from "./microdepositvalidationerror.js";
|
|
26
29
|
export * from "./mooverror.js";
|
|
27
30
|
export * from "./onboardinginviteerror.js";
|
|
28
31
|
export * from "./patchaccounterror.js";
|
|
29
32
|
export * from "./patchsweepconfigerror.js";
|
|
30
|
-
export * from "./
|
|
33
|
+
export * from "./patchtransfervalidationerror.js";
|
|
34
|
+
export * from "./patchwalletvalidationerror.js";
|
|
31
35
|
export * from "./refundvalidationerror.js";
|
|
32
36
|
export * from "./representativevalidationerror.js";
|
|
33
37
|
export * from "./requestcarderror.js";
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { MoovError } from "./mooverror.js";
|
|
7
|
+
|
|
8
|
+
export type ListTransfersValidationErrorData = {
|
|
9
|
+
accountIDs?: string | undefined;
|
|
10
|
+
status?: string | undefined;
|
|
11
|
+
startDateTime?: string | undefined;
|
|
12
|
+
endDateTime?: string | undefined;
|
|
13
|
+
skip?: string | undefined;
|
|
14
|
+
count?: string | undefined;
|
|
15
|
+
groupID?: string | undefined;
|
|
16
|
+
foreignID?: string | undefined;
|
|
17
|
+
scheduleID?: string | undefined;
|
|
18
|
+
paymentLinkCode?: string | undefined;
|
|
19
|
+
refunded?: string | undefined;
|
|
20
|
+
disputed?: string | undefined;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export class ListTransfersValidationError extends MoovError {
|
|
24
|
+
accountIDs?: string | undefined;
|
|
25
|
+
status?: string | undefined;
|
|
26
|
+
startDateTime?: string | undefined;
|
|
27
|
+
endDateTime?: string | undefined;
|
|
28
|
+
skip?: string | undefined;
|
|
29
|
+
count?: string | undefined;
|
|
30
|
+
groupID?: string | undefined;
|
|
31
|
+
foreignID?: string | undefined;
|
|
32
|
+
scheduleID?: string | undefined;
|
|
33
|
+
paymentLinkCode?: string | undefined;
|
|
34
|
+
refunded?: string | undefined;
|
|
35
|
+
disputed?: string | undefined;
|
|
36
|
+
|
|
37
|
+
/** The original data that was passed to this error instance. */
|
|
38
|
+
data$: ListTransfersValidationErrorData;
|
|
39
|
+
|
|
40
|
+
constructor(
|
|
41
|
+
err: ListTransfersValidationErrorData,
|
|
42
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
43
|
+
) {
|
|
44
|
+
const message = "message" in err && typeof err.message === "string"
|
|
45
|
+
? err.message
|
|
46
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
47
|
+
super(message, httpMeta);
|
|
48
|
+
this.data$ = err;
|
|
49
|
+
if (err.accountIDs != null) this.accountIDs = err.accountIDs;
|
|
50
|
+
if (err.status != null) this.status = err.status;
|
|
51
|
+
if (err.startDateTime != null) this.startDateTime = err.startDateTime;
|
|
52
|
+
if (err.endDateTime != null) this.endDateTime = err.endDateTime;
|
|
53
|
+
if (err.skip != null) this.skip = err.skip;
|
|
54
|
+
if (err.count != null) this.count = err.count;
|
|
55
|
+
if (err.groupID != null) this.groupID = err.groupID;
|
|
56
|
+
if (err.foreignID != null) this.foreignID = err.foreignID;
|
|
57
|
+
if (err.scheduleID != null) this.scheduleID = err.scheduleID;
|
|
58
|
+
if (err.paymentLinkCode != null) this.paymentLinkCode = err.paymentLinkCode;
|
|
59
|
+
if (err.refunded != null) this.refunded = err.refunded;
|
|
60
|
+
if (err.disputed != null) this.disputed = err.disputed;
|
|
61
|
+
|
|
62
|
+
this.name = "ListTransfersValidationError";
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/** @internal */
|
|
67
|
+
export const ListTransfersValidationError$inboundSchema: z.ZodType<
|
|
68
|
+
ListTransfersValidationError,
|
|
69
|
+
z.ZodTypeDef,
|
|
70
|
+
unknown
|
|
71
|
+
> = z.object({
|
|
72
|
+
accountIDs: z.string().optional(),
|
|
73
|
+
status: z.string().optional(),
|
|
74
|
+
startDateTime: z.string().optional(),
|
|
75
|
+
endDateTime: z.string().optional(),
|
|
76
|
+
skip: z.string().optional(),
|
|
77
|
+
count: z.string().optional(),
|
|
78
|
+
groupID: z.string().optional(),
|
|
79
|
+
foreignID: z.string().optional(),
|
|
80
|
+
scheduleID: z.string().optional(),
|
|
81
|
+
paymentLinkCode: z.string().optional(),
|
|
82
|
+
refunded: z.string().optional(),
|
|
83
|
+
disputed: z.string().optional(),
|
|
84
|
+
request$: z.instanceof(Request),
|
|
85
|
+
response$: z.instanceof(Response),
|
|
86
|
+
body$: z.string(),
|
|
87
|
+
})
|
|
88
|
+
.transform((v) => {
|
|
89
|
+
return new ListTransfersValidationError(v, {
|
|
90
|
+
request: v.request$,
|
|
91
|
+
response: v.response$,
|
|
92
|
+
body: v.body$,
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
/** @internal */
|
|
97
|
+
export type ListTransfersValidationError$Outbound = {
|
|
98
|
+
accountIDs?: string | undefined;
|
|
99
|
+
status?: string | undefined;
|
|
100
|
+
startDateTime?: string | undefined;
|
|
101
|
+
endDateTime?: string | undefined;
|
|
102
|
+
skip?: string | undefined;
|
|
103
|
+
count?: string | undefined;
|
|
104
|
+
groupID?: string | undefined;
|
|
105
|
+
foreignID?: string | undefined;
|
|
106
|
+
scheduleID?: string | undefined;
|
|
107
|
+
paymentLinkCode?: string | undefined;
|
|
108
|
+
refunded?: string | undefined;
|
|
109
|
+
disputed?: string | undefined;
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
/** @internal */
|
|
113
|
+
export const ListTransfersValidationError$outboundSchema: z.ZodType<
|
|
114
|
+
ListTransfersValidationError$Outbound,
|
|
115
|
+
z.ZodTypeDef,
|
|
116
|
+
ListTransfersValidationError
|
|
117
|
+
> = z.instanceof(ListTransfersValidationError)
|
|
118
|
+
.transform(v => v.data$)
|
|
119
|
+
.pipe(z.object({
|
|
120
|
+
accountIDs: z.string().optional(),
|
|
121
|
+
status: z.string().optional(),
|
|
122
|
+
startDateTime: z.string().optional(),
|
|
123
|
+
endDateTime: z.string().optional(),
|
|
124
|
+
skip: z.string().optional(),
|
|
125
|
+
count: z.string().optional(),
|
|
126
|
+
groupID: z.string().optional(),
|
|
127
|
+
foreignID: z.string().optional(),
|
|
128
|
+
scheduleID: z.string().optional(),
|
|
129
|
+
paymentLinkCode: z.string().optional(),
|
|
130
|
+
refunded: z.string().optional(),
|
|
131
|
+
disputed: z.string().optional(),
|
|
132
|
+
}));
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* @internal
|
|
136
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
137
|
+
*/
|
|
138
|
+
export namespace ListTransfersValidationError$ {
|
|
139
|
+
/** @deprecated use `ListTransfersValidationError$inboundSchema` instead. */
|
|
140
|
+
export const inboundSchema = ListTransfersValidationError$inboundSchema;
|
|
141
|
+
/** @deprecated use `ListTransfersValidationError$outboundSchema` instead. */
|
|
142
|
+
export const outboundSchema = ListTransfersValidationError$outboundSchema;
|
|
143
|
+
/** @deprecated use `ListTransfersValidationError$Outbound` instead. */
|
|
144
|
+
export type Outbound = ListTransfersValidationError$Outbound;
|
|
145
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { MoovError } from "./mooverror.js";
|
|
7
|
+
|
|
8
|
+
export type ListWalletsValidationErrorData = {
|
|
9
|
+
status?: string | undefined;
|
|
10
|
+
walletType?: string | undefined;
|
|
11
|
+
skip?: string | undefined;
|
|
12
|
+
count?: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export class ListWalletsValidationError extends MoovError {
|
|
16
|
+
status?: string | undefined;
|
|
17
|
+
walletType?: string | undefined;
|
|
18
|
+
skip?: string | undefined;
|
|
19
|
+
count?: string | undefined;
|
|
20
|
+
|
|
21
|
+
/** The original data that was passed to this error instance. */
|
|
22
|
+
data$: ListWalletsValidationErrorData;
|
|
23
|
+
|
|
24
|
+
constructor(
|
|
25
|
+
err: ListWalletsValidationErrorData,
|
|
26
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
27
|
+
) {
|
|
28
|
+
const message = "message" in err && typeof err.message === "string"
|
|
29
|
+
? err.message
|
|
30
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
31
|
+
super(message, httpMeta);
|
|
32
|
+
this.data$ = err;
|
|
33
|
+
if (err.status != null) this.status = err.status;
|
|
34
|
+
if (err.walletType != null) this.walletType = err.walletType;
|
|
35
|
+
if (err.skip != null) this.skip = err.skip;
|
|
36
|
+
if (err.count != null) this.count = err.count;
|
|
37
|
+
|
|
38
|
+
this.name = "ListWalletsValidationError";
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const ListWalletsValidationError$inboundSchema: z.ZodType<
|
|
44
|
+
ListWalletsValidationError,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
unknown
|
|
47
|
+
> = z.object({
|
|
48
|
+
status: z.string().optional(),
|
|
49
|
+
walletType: z.string().optional(),
|
|
50
|
+
skip: z.string().optional(),
|
|
51
|
+
count: z.string().optional(),
|
|
52
|
+
request$: z.instanceof(Request),
|
|
53
|
+
response$: z.instanceof(Response),
|
|
54
|
+
body$: z.string(),
|
|
55
|
+
})
|
|
56
|
+
.transform((v) => {
|
|
57
|
+
return new ListWalletsValidationError(v, {
|
|
58
|
+
request: v.request$,
|
|
59
|
+
response: v.response$,
|
|
60
|
+
body: v.body$,
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
/** @internal */
|
|
65
|
+
export type ListWalletsValidationError$Outbound = {
|
|
66
|
+
status?: string | undefined;
|
|
67
|
+
walletType?: string | undefined;
|
|
68
|
+
skip?: string | undefined;
|
|
69
|
+
count?: string | undefined;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
/** @internal */
|
|
73
|
+
export const ListWalletsValidationError$outboundSchema: z.ZodType<
|
|
74
|
+
ListWalletsValidationError$Outbound,
|
|
75
|
+
z.ZodTypeDef,
|
|
76
|
+
ListWalletsValidationError
|
|
77
|
+
> = z.instanceof(ListWalletsValidationError)
|
|
78
|
+
.transform(v => v.data$)
|
|
79
|
+
.pipe(z.object({
|
|
80
|
+
status: z.string().optional(),
|
|
81
|
+
walletType: z.string().optional(),
|
|
82
|
+
skip: z.string().optional(),
|
|
83
|
+
count: z.string().optional(),
|
|
84
|
+
}));
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @internal
|
|
88
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
89
|
+
*/
|
|
90
|
+
export namespace ListWalletsValidationError$ {
|
|
91
|
+
/** @deprecated use `ListWalletsValidationError$inboundSchema` instead. */
|
|
92
|
+
export const inboundSchema = ListWalletsValidationError$inboundSchema;
|
|
93
|
+
/** @deprecated use `ListWalletsValidationError$outboundSchema` instead. */
|
|
94
|
+
export const outboundSchema = ListWalletsValidationError$outboundSchema;
|
|
95
|
+
/** @deprecated use `ListWalletsValidationError$Outbound` instead. */
|
|
96
|
+
export type Outbound = ListWalletsValidationError$Outbound;
|
|
97
|
+
}
|