@moovio/sdk 0.22.7 → 0.22.9
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 +72 -51
- package/_speakeasy/.github/action-inputs-config.json +53 -0
- package/_speakeasy/.github/action-security-config.json +88 -0
- package/bin/mcp-server.js +40342 -21443
- package/bin/mcp-server.js.map +224 -45
- package/examples/package-lock.json +2 -2
- package/funcs/accountsConnect.d.ts +16 -0
- package/funcs/accountsConnect.d.ts.map +1 -0
- package/funcs/accountsConnect.js +138 -0
- package/funcs/accountsConnect.js.map +1 -0
- package/funcs/accountsListConnected.d.ts +21 -0
- package/funcs/accountsListConnected.d.ts.map +1 -0
- package/funcs/accountsListConnected.js +138 -0
- package/funcs/accountsListConnected.js.map +1 -0
- package/funcs/invoicesMarkPaidInvoice.js +1 -1
- package/funcs/invoicesMarkPaidInvoice.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/prompts.d.ts +3 -3
- package/mcp-server/prompts.d.ts.map +1 -1
- package/mcp-server/prompts.js.map +1 -1
- package/mcp-server/resources.d.ts +3 -3
- package/mcp-server/resources.d.ts.map +1 -1
- package/mcp-server/resources.js.map +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +5 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/accountsConnect.d.ts +8 -0
- package/mcp-server/tools/accountsConnect.d.ts.map +1 -0
- package/mcp-server/tools/accountsConnect.js +62 -0
- package/mcp-server/tools/accountsConnect.js.map +1 -0
- package/mcp-server/tools/accountsListConnected.d.ts +8 -0
- package/mcp-server/tools/accountsListConnected.d.ts.map +1 -0
- package/mcp-server/tools/accountsListConnected.js +69 -0
- package/mcp-server/tools/accountsListConnected.js.map +1 -0
- package/mcp-server/tools.d.ts +3 -3
- package/mcp-server/tools.d.ts.map +1 -1
- package/mcp-server/tools.js.map +1 -1
- package/models/components/createtransfer.d.ts +3 -3
- package/models/components/createtransfer.d.ts.map +1 -1
- package/models/components/createtransfer.js +3 -3
- package/models/components/createtransfer.js.map +1 -1
- package/models/components/createtransferlineitem.d.ts +50 -0
- package/models/components/createtransferlineitem.d.ts.map +1 -0
- package/models/components/createtransferlineitem.js +70 -0
- package/models/components/createtransferlineitem.js.map +1 -0
- package/models/components/createtransferlineitemoption.d.ts +44 -0
- package/models/components/createtransferlineitemoption.d.ts.map +1 -0
- package/models/components/createtransferlineitemoption.js +67 -0
- package/models/components/createtransferlineitemoption.js.map +1 -0
- package/models/components/createtransferlineitemoptionvalidationerror.d.ts +26 -0
- package/models/components/createtransferlineitemoptionvalidationerror.d.ts.map +1 -0
- package/models/components/{transferlineitemoptionvalidationerror.js → createtransferlineitemoptionvalidationerror.js} +12 -10
- package/models/components/createtransferlineitemoptionvalidationerror.js.map +1 -0
- package/models/components/createtransferlineitems.d.ts +27 -0
- package/models/components/createtransferlineitems.d.ts.map +1 -0
- package/models/components/{transferlineitemsvalidationerror.js → createtransferlineitems.js} +13 -13
- package/models/components/createtransferlineitems.js.map +1 -0
- package/models/components/createtransferlineitemsvalidationerror.d.ts +22 -0
- package/models/components/createtransferlineitemsvalidationerror.d.ts.map +1 -0
- package/models/components/createtransferlineitemsvalidationerror.js +61 -0
- package/models/components/createtransferlineitemsvalidationerror.js.map +1 -0
- package/models/components/createtransferlineitemvalidationerror.d.ts +33 -0
- package/models/components/createtransferlineitemvalidationerror.d.ts.map +1 -0
- package/models/components/{transferlineitemvalidationerror.js → createtransferlineitemvalidationerror.js} +15 -13
- package/models/components/createtransferlineitemvalidationerror.js.map +1 -0
- package/models/components/index.d.ts +8 -3
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +8 -3
- package/models/components/index.js.map +1 -1
- package/models/components/sharescopes.d.ts +29 -0
- package/models/components/sharescopes.d.ts.map +1 -0
- package/models/components/sharescopes.js +61 -0
- package/models/components/sharescopes.js.map +1 -0
- package/models/components/transferlineitem.d.ts +6 -0
- package/models/components/transferlineitem.d.ts.map +1 -1
- package/models/components/transferlineitem.js +3 -0
- package/models/components/transferlineitem.js.map +1 -1
- package/models/components/transferlineitemimagemetadata.d.ts +35 -0
- package/models/components/transferlineitemimagemetadata.d.ts.map +1 -0
- package/models/components/transferlineitemimagemetadata.js +64 -0
- package/models/components/transferlineitemimagemetadata.js.map +1 -0
- package/models/components/transferlineitemoption.d.ts +6 -0
- package/models/components/transferlineitemoption.d.ts.map +1 -1
- package/models/components/transferlineitemoption.js +3 -0
- package/models/components/transferlineitemoption.js.map +1 -1
- package/models/errors/connectaccountrequestvalidationerror.d.ts +33 -0
- package/models/errors/connectaccountrequestvalidationerror.d.ts.map +1 -0
- package/models/errors/connectaccountrequestvalidationerror.js +80 -0
- package/models/errors/connectaccountrequestvalidationerror.js.map +1 -0
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/transfervalidationerror.d.ts +3 -3
- package/models/errors/transfervalidationerror.d.ts.map +1 -1
- package/models/errors/transfervalidationerror.js +3 -3
- package/models/errors/transfervalidationerror.js.map +1 -1
- package/models/operations/connectaccount.d.ts +64 -0
- package/models/operations/connectaccount.d.ts.map +1 -0
- package/models/operations/connectaccount.js +118 -0
- package/models/operations/connectaccount.js.map +1 -0
- package/models/operations/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listconnectedaccountsforaccount.d.ts +130 -0
- package/models/operations/listconnectedaccountsforaccount.d.ts.map +1 -0
- package/models/operations/listconnectedaccountsforaccount.js +130 -0
- package/models/operations/listconnectedaccountsforaccount.js.map +1 -0
- package/package.json +2 -2
- package/sdk/accounts.d.ts +16 -0
- package/sdk/accounts.d.ts.map +1 -1
- package/sdk/accounts.js +22 -0
- package/sdk/accounts.js.map +1 -1
- package/src/funcs/accountsConnect.ts +200 -0
- package/src/funcs/accountsListConnected.ts +202 -0
- package/src/funcs/invoicesMarkPaidInvoice.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/prompts.ts +7 -3
- package/src/mcp-server/resources.ts +7 -3
- package/src/mcp-server/server.ts +5 -1
- package/src/mcp-server/tools/accountsConnect.ts +35 -0
- package/src/mcp-server/tools/accountsListConnected.ts +42 -0
- package/src/mcp-server/tools.ts +7 -3
- package/src/models/components/createtransfer.ts +10 -10
- package/src/models/components/createtransferlineitem.ts +104 -0
- package/src/models/components/createtransferlineitemoption.ts +93 -0
- package/src/models/components/createtransferlineitemoptionvalidationerror.ts +84 -0
- package/src/models/components/createtransferlineitems.ts +66 -0
- package/src/models/components/createtransferlineitemsvalidationerror.ts +65 -0
- package/src/models/components/createtransferlineitemvalidationerror.ts +92 -0
- package/src/models/components/index.ts +8 -3
- package/src/models/components/sharescopes.ts +65 -0
- package/src/models/components/transferlineitem.ts +13 -0
- package/src/models/components/transferlineitemimagemetadata.ts +77 -0
- package/src/models/components/transferlineitemoption.ts +13 -0
- package/src/models/errors/connectaccountrequestvalidationerror.ts +74 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/errors/transfervalidationerror.ts +8 -6
- package/src/models/operations/connectaccount.ts +181 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/listconnectedaccountsforaccount.ts +276 -0
- package/src/sdk/accounts.ts +38 -0
- package/models/components/transferlineitemoptionvalidationerror.d.ts +0 -24
- package/models/components/transferlineitemoptionvalidationerror.d.ts.map +0 -1
- package/models/components/transferlineitemoptionvalidationerror.js.map +0 -1
- package/models/components/transferlineitemsvalidationerror.d.ts +0 -22
- package/models/components/transferlineitemsvalidationerror.d.ts.map +0 -1
- package/models/components/transferlineitemsvalidationerror.js.map +0 -1
- package/models/components/transferlineitemvalidationerror.d.ts +0 -31
- package/models/components/transferlineitemvalidationerror.d.ts.map +0 -1
- package/models/components/transferlineitemvalidationerror.js.map +0 -1
- package/src/models/components/transferlineitemoptionvalidationerror.ts +0 -72
- package/src/models/components/transferlineitemsvalidationerror.ts +0 -59
- package/src/models/components/transferlineitemvalidationerror.ts +0 -85
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type ListConnectedAccountsForAccountGlobals = {
|
|
13
|
+
/**
|
|
14
|
+
* Specify an API version.
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
*
|
|
18
|
+
* API versioning follows the format `vYYYY.QQ.BB`, where
|
|
19
|
+
* - `YYYY` is the year
|
|
20
|
+
* - `QQ` is the two-digit month for the first month of the quarter (e.g., 01, 04, 07, 10)
|
|
21
|
+
* - `BB` is the build number, starting at `.01`, for subsequent builds in the same quarter.
|
|
22
|
+
* - For example, `v2024.01.00` is the initial release of the first quarter of 2024.
|
|
23
|
+
*
|
|
24
|
+
* The `latest` version represents the most recent development state. It may include breaking changes and should be treated as a beta release.
|
|
25
|
+
* When no version is specified, the API defaults to `v2024.01.00`.
|
|
26
|
+
*/
|
|
27
|
+
xMoovVersion?: string | undefined;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export type ListConnectedAccountsForAccountRequest = {
|
|
31
|
+
accountID: string;
|
|
32
|
+
/**
|
|
33
|
+
* Filter connected accounts by name.
|
|
34
|
+
*
|
|
35
|
+
* @remarks
|
|
36
|
+
*
|
|
37
|
+
* If provided, this query will attempt to find matches against the following Account and Profile fields:
|
|
38
|
+
* <ul>
|
|
39
|
+
* <li>Account `displayName`</li>
|
|
40
|
+
* <li>Individual Profile `firstName`, `middleName`, and `lastName`</li>
|
|
41
|
+
* <li>Business Profile `legalBusinessName`</li>
|
|
42
|
+
* </ul>
|
|
43
|
+
*
|
|
44
|
+
* Filtering by Guest Profile `name` is not currently supported.
|
|
45
|
+
*/
|
|
46
|
+
name?: string | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Filter connected accounts by email address.
|
|
49
|
+
*
|
|
50
|
+
* @remarks
|
|
51
|
+
*
|
|
52
|
+
* Provide the full email address to filter by email.
|
|
53
|
+
*/
|
|
54
|
+
email?: string | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* Filter connected accounts by AccountType.
|
|
57
|
+
*
|
|
58
|
+
* @remarks
|
|
59
|
+
*
|
|
60
|
+
* If the `type` parameter is used in combination with `name`, only the corresponding type's name fields will
|
|
61
|
+
* be searched. For example, if `type=business` and `name=moov`, the search will attempt to find matches against
|
|
62
|
+
* the display name and Business Profile name fields (`legalBusinessName`, and `doingBusinessAs`).
|
|
63
|
+
*
|
|
64
|
+
* Filtering by `type=guest` is not currently supported.
|
|
65
|
+
*/
|
|
66
|
+
type?: components.CreateAccountType | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Serves as an optional alias from a foreign/external system which can be used to reference this resource.
|
|
69
|
+
*/
|
|
70
|
+
foreignID?: string | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* Filter disconnected accounts.
|
|
73
|
+
*
|
|
74
|
+
* @remarks
|
|
75
|
+
*
|
|
76
|
+
* If true, the response will include disconnected accounts.
|
|
77
|
+
*/
|
|
78
|
+
includeDisconnected?: boolean | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* Filter connected accounts by the capability.
|
|
81
|
+
*/
|
|
82
|
+
capability?: components.CapabilityID | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* Filter connected accounts by the capability.
|
|
85
|
+
*/
|
|
86
|
+
capabilityStatus?: components.CapabilityStatus | undefined;
|
|
87
|
+
skip?: number | undefined;
|
|
88
|
+
count?: number | undefined;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
export type ListConnectedAccountsForAccountResponse = {
|
|
92
|
+
headers: { [k: string]: Array<string> };
|
|
93
|
+
result: Array<components.Account>;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
/** @internal */
|
|
97
|
+
export const ListConnectedAccountsForAccountGlobals$inboundSchema: z.ZodType<
|
|
98
|
+
ListConnectedAccountsForAccountGlobals,
|
|
99
|
+
z.ZodTypeDef,
|
|
100
|
+
unknown
|
|
101
|
+
> = z.object({
|
|
102
|
+
"X-Moov-Version": z.string().optional(),
|
|
103
|
+
}).transform((v) => {
|
|
104
|
+
return remap$(v, {
|
|
105
|
+
"X-Moov-Version": "xMoovVersion",
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
/** @internal */
|
|
109
|
+
export type ListConnectedAccountsForAccountGlobals$Outbound = {
|
|
110
|
+
"X-Moov-Version"?: string | undefined;
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
/** @internal */
|
|
114
|
+
export const ListConnectedAccountsForAccountGlobals$outboundSchema: z.ZodType<
|
|
115
|
+
ListConnectedAccountsForAccountGlobals$Outbound,
|
|
116
|
+
z.ZodTypeDef,
|
|
117
|
+
ListConnectedAccountsForAccountGlobals
|
|
118
|
+
> = z.object({
|
|
119
|
+
xMoovVersion: z.string().optional(),
|
|
120
|
+
}).transform((v) => {
|
|
121
|
+
return remap$(v, {
|
|
122
|
+
xMoovVersion: "X-Moov-Version",
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
export function listConnectedAccountsForAccountGlobalsToJSON(
|
|
127
|
+
listConnectedAccountsForAccountGlobals:
|
|
128
|
+
ListConnectedAccountsForAccountGlobals,
|
|
129
|
+
): string {
|
|
130
|
+
return JSON.stringify(
|
|
131
|
+
ListConnectedAccountsForAccountGlobals$outboundSchema.parse(
|
|
132
|
+
listConnectedAccountsForAccountGlobals,
|
|
133
|
+
),
|
|
134
|
+
);
|
|
135
|
+
}
|
|
136
|
+
export function listConnectedAccountsForAccountGlobalsFromJSON(
|
|
137
|
+
jsonString: string,
|
|
138
|
+
): SafeParseResult<ListConnectedAccountsForAccountGlobals, SDKValidationError> {
|
|
139
|
+
return safeParse(
|
|
140
|
+
jsonString,
|
|
141
|
+
(x) =>
|
|
142
|
+
ListConnectedAccountsForAccountGlobals$inboundSchema.parse(JSON.parse(x)),
|
|
143
|
+
`Failed to parse 'ListConnectedAccountsForAccountGlobals' from JSON`,
|
|
144
|
+
);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/** @internal */
|
|
148
|
+
export const ListConnectedAccountsForAccountRequest$inboundSchema: z.ZodType<
|
|
149
|
+
ListConnectedAccountsForAccountRequest,
|
|
150
|
+
z.ZodTypeDef,
|
|
151
|
+
unknown
|
|
152
|
+
> = z.object({
|
|
153
|
+
accountID: z.string(),
|
|
154
|
+
name: z.string().optional(),
|
|
155
|
+
email: z.string().optional(),
|
|
156
|
+
type: components.CreateAccountType$inboundSchema.optional(),
|
|
157
|
+
foreignID: z.string().optional(),
|
|
158
|
+
includeDisconnected: z.boolean().optional(),
|
|
159
|
+
capability: components.CapabilityID$inboundSchema.optional(),
|
|
160
|
+
capabilityStatus: components.CapabilityStatus$inboundSchema.optional(),
|
|
161
|
+
skip: z.number().int().optional(),
|
|
162
|
+
count: z.number().int().optional(),
|
|
163
|
+
});
|
|
164
|
+
/** @internal */
|
|
165
|
+
export type ListConnectedAccountsForAccountRequest$Outbound = {
|
|
166
|
+
accountID: string;
|
|
167
|
+
name?: string | undefined;
|
|
168
|
+
email?: string | undefined;
|
|
169
|
+
type?: string | undefined;
|
|
170
|
+
foreignID?: string | undefined;
|
|
171
|
+
includeDisconnected?: boolean | undefined;
|
|
172
|
+
capability?: string | undefined;
|
|
173
|
+
capabilityStatus?: string | undefined;
|
|
174
|
+
skip?: number | undefined;
|
|
175
|
+
count?: number | undefined;
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
/** @internal */
|
|
179
|
+
export const ListConnectedAccountsForAccountRequest$outboundSchema: z.ZodType<
|
|
180
|
+
ListConnectedAccountsForAccountRequest$Outbound,
|
|
181
|
+
z.ZodTypeDef,
|
|
182
|
+
ListConnectedAccountsForAccountRequest
|
|
183
|
+
> = z.object({
|
|
184
|
+
accountID: z.string(),
|
|
185
|
+
name: z.string().optional(),
|
|
186
|
+
email: z.string().optional(),
|
|
187
|
+
type: components.CreateAccountType$outboundSchema.optional(),
|
|
188
|
+
foreignID: z.string().optional(),
|
|
189
|
+
includeDisconnected: z.boolean().optional(),
|
|
190
|
+
capability: components.CapabilityID$outboundSchema.optional(),
|
|
191
|
+
capabilityStatus: components.CapabilityStatus$outboundSchema.optional(),
|
|
192
|
+
skip: z.number().int().optional(),
|
|
193
|
+
count: z.number().int().optional(),
|
|
194
|
+
});
|
|
195
|
+
|
|
196
|
+
export function listConnectedAccountsForAccountRequestToJSON(
|
|
197
|
+
listConnectedAccountsForAccountRequest:
|
|
198
|
+
ListConnectedAccountsForAccountRequest,
|
|
199
|
+
): string {
|
|
200
|
+
return JSON.stringify(
|
|
201
|
+
ListConnectedAccountsForAccountRequest$outboundSchema.parse(
|
|
202
|
+
listConnectedAccountsForAccountRequest,
|
|
203
|
+
),
|
|
204
|
+
);
|
|
205
|
+
}
|
|
206
|
+
export function listConnectedAccountsForAccountRequestFromJSON(
|
|
207
|
+
jsonString: string,
|
|
208
|
+
): SafeParseResult<ListConnectedAccountsForAccountRequest, SDKValidationError> {
|
|
209
|
+
return safeParse(
|
|
210
|
+
jsonString,
|
|
211
|
+
(x) =>
|
|
212
|
+
ListConnectedAccountsForAccountRequest$inboundSchema.parse(JSON.parse(x)),
|
|
213
|
+
`Failed to parse 'ListConnectedAccountsForAccountRequest' from JSON`,
|
|
214
|
+
);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/** @internal */
|
|
218
|
+
export const ListConnectedAccountsForAccountResponse$inboundSchema: z.ZodType<
|
|
219
|
+
ListConnectedAccountsForAccountResponse,
|
|
220
|
+
z.ZodTypeDef,
|
|
221
|
+
unknown
|
|
222
|
+
> = z.object({
|
|
223
|
+
Headers: z.record(z.array(z.string())).default({}),
|
|
224
|
+
Result: z.array(components.Account$inboundSchema),
|
|
225
|
+
}).transform((v) => {
|
|
226
|
+
return remap$(v, {
|
|
227
|
+
"Headers": "headers",
|
|
228
|
+
"Result": "result",
|
|
229
|
+
});
|
|
230
|
+
});
|
|
231
|
+
/** @internal */
|
|
232
|
+
export type ListConnectedAccountsForAccountResponse$Outbound = {
|
|
233
|
+
Headers: { [k: string]: Array<string> };
|
|
234
|
+
Result: Array<components.Account$Outbound>;
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
/** @internal */
|
|
238
|
+
export const ListConnectedAccountsForAccountResponse$outboundSchema: z.ZodType<
|
|
239
|
+
ListConnectedAccountsForAccountResponse$Outbound,
|
|
240
|
+
z.ZodTypeDef,
|
|
241
|
+
ListConnectedAccountsForAccountResponse
|
|
242
|
+
> = z.object({
|
|
243
|
+
headers: z.record(z.array(z.string())),
|
|
244
|
+
result: z.array(components.Account$outboundSchema),
|
|
245
|
+
}).transform((v) => {
|
|
246
|
+
return remap$(v, {
|
|
247
|
+
headers: "Headers",
|
|
248
|
+
result: "Result",
|
|
249
|
+
});
|
|
250
|
+
});
|
|
251
|
+
|
|
252
|
+
export function listConnectedAccountsForAccountResponseToJSON(
|
|
253
|
+
listConnectedAccountsForAccountResponse:
|
|
254
|
+
ListConnectedAccountsForAccountResponse,
|
|
255
|
+
): string {
|
|
256
|
+
return JSON.stringify(
|
|
257
|
+
ListConnectedAccountsForAccountResponse$outboundSchema.parse(
|
|
258
|
+
listConnectedAccountsForAccountResponse,
|
|
259
|
+
),
|
|
260
|
+
);
|
|
261
|
+
}
|
|
262
|
+
export function listConnectedAccountsForAccountResponseFromJSON(
|
|
263
|
+
jsonString: string,
|
|
264
|
+
): SafeParseResult<
|
|
265
|
+
ListConnectedAccountsForAccountResponse,
|
|
266
|
+
SDKValidationError
|
|
267
|
+
> {
|
|
268
|
+
return safeParse(
|
|
269
|
+
jsonString,
|
|
270
|
+
(x) =>
|
|
271
|
+
ListConnectedAccountsForAccountResponse$inboundSchema.parse(
|
|
272
|
+
JSON.parse(x),
|
|
273
|
+
),
|
|
274
|
+
`Failed to parse 'ListConnectedAccountsForAccountResponse' from JSON`,
|
|
275
|
+
);
|
|
276
|
+
}
|
package/src/sdk/accounts.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { accountsAssignCountries } from "../funcs/accountsAssignCountries.js";
|
|
6
|
+
import { accountsConnect } from "../funcs/accountsConnect.js";
|
|
6
7
|
import { accountsCreate } from "../funcs/accountsCreate.js";
|
|
7
8
|
import { accountsDisconnect } from "../funcs/accountsDisconnect.js";
|
|
8
9
|
import { accountsGet } from "../funcs/accountsGet.js";
|
|
@@ -10,6 +11,7 @@ import { accountsGetCountries } from "../funcs/accountsGetCountries.js";
|
|
|
10
11
|
import { accountsGetMerchantProcessingAgreement } from "../funcs/accountsGetMerchantProcessingAgreement.js";
|
|
11
12
|
import { accountsGetTermsOfServiceToken } from "../funcs/accountsGetTermsOfServiceToken.js";
|
|
12
13
|
import { accountsList } from "../funcs/accountsList.js";
|
|
14
|
+
import { accountsListConnected } from "../funcs/accountsListConnected.js";
|
|
13
15
|
import { accountsUpdate } from "../funcs/accountsUpdate.js";
|
|
14
16
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
15
17
|
import * as components from "../models/components/index.js";
|
|
@@ -127,6 +129,42 @@ export class Accounts extends ClientSDK {
|
|
|
127
129
|
));
|
|
128
130
|
}
|
|
129
131
|
|
|
132
|
+
/**
|
|
133
|
+
* List or search accounts to which the caller is connected.
|
|
134
|
+
*
|
|
135
|
+
* All supported query parameters are optional. If none are provided the response will include all connected accounts.
|
|
136
|
+
* Pagination is supported via the `skip` and `count` query parameters. Searching by name and email will overlap and
|
|
137
|
+
* return results based on relevance. Accounts with AccountType `guest` will not be included in the response.
|
|
138
|
+
*
|
|
139
|
+
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/) you'll need
|
|
140
|
+
* to specify the `/accounts.read` scope.
|
|
141
|
+
*/
|
|
142
|
+
async listConnected(
|
|
143
|
+
request: operations.ListConnectedAccountsForAccountRequest,
|
|
144
|
+
options?: RequestOptions,
|
|
145
|
+
): Promise<operations.ListConnectedAccountsForAccountResponse> {
|
|
146
|
+
return unwrapAsync(accountsListConnected(
|
|
147
|
+
this,
|
|
148
|
+
request,
|
|
149
|
+
options,
|
|
150
|
+
));
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Shares access scopes from the account specified to the caller, establishing a connection
|
|
155
|
+
* between the two accounts with the specified permissions.
|
|
156
|
+
*/
|
|
157
|
+
async connect(
|
|
158
|
+
request: operations.ConnectAccountRequest,
|
|
159
|
+
options?: RequestOptions,
|
|
160
|
+
): Promise<operations.ConnectAccountResponse | undefined> {
|
|
161
|
+
return unwrapAsync(accountsConnect(
|
|
162
|
+
this,
|
|
163
|
+
request,
|
|
164
|
+
options,
|
|
165
|
+
));
|
|
166
|
+
}
|
|
167
|
+
|
|
130
168
|
/**
|
|
131
169
|
* Retrieve the specified countries of operation for an account.
|
|
132
170
|
*
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
import { AmountDecimalValidationError, AmountDecimalValidationError$Outbound } from "./amountdecimalvalidationerror.js";
|
|
5
|
-
export type TransferLineItemOptionValidationError = {
|
|
6
|
-
name?: string | undefined;
|
|
7
|
-
group?: string | undefined;
|
|
8
|
-
priceModifier?: AmountDecimalValidationError | undefined;
|
|
9
|
-
quantity?: string | undefined;
|
|
10
|
-
};
|
|
11
|
-
/** @internal */
|
|
12
|
-
export declare const TransferLineItemOptionValidationError$inboundSchema: z.ZodType<TransferLineItemOptionValidationError, z.ZodTypeDef, unknown>;
|
|
13
|
-
/** @internal */
|
|
14
|
-
export type TransferLineItemOptionValidationError$Outbound = {
|
|
15
|
-
name?: string | undefined;
|
|
16
|
-
group?: string | undefined;
|
|
17
|
-
priceModifier?: AmountDecimalValidationError$Outbound | undefined;
|
|
18
|
-
quantity?: string | undefined;
|
|
19
|
-
};
|
|
20
|
-
/** @internal */
|
|
21
|
-
export declare const TransferLineItemOptionValidationError$outboundSchema: z.ZodType<TransferLineItemOptionValidationError$Outbound, z.ZodTypeDef, TransferLineItemOptionValidationError>;
|
|
22
|
-
export declare function transferLineItemOptionValidationErrorToJSON(transferLineItemOptionValidationError: TransferLineItemOptionValidationError): string;
|
|
23
|
-
export declare function transferLineItemOptionValidationErrorFromJSON(jsonString: string): SafeParseResult<TransferLineItemOptionValidationError, SDKValidationError>;
|
|
24
|
-
//# sourceMappingURL=transferlineitemoptionvalidationerror.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transferlineitemoptionvalidationerror.d.ts","sourceRoot":"","sources":["../../src/models/components/transferlineitemoptionvalidationerror.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,4BAA4B,EAE5B,qCAAqC,EAEtC,MAAM,mCAAmC,CAAC;AAE3C,MAAM,MAAM,qCAAqC,GAAG;IAClD,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,aAAa,CAAC,EAAE,4BAA4B,GAAG,SAAS,CAAC;IACzD,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mDAAmD,EAAE,CAAC,CAAC,OAAO,CACzE,qCAAqC,EACrC,CAAC,CAAC,UAAU,EACZ,OAAO,CAMP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,8CAA8C,GAAG;IAC3D,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,aAAa,CAAC,EAAE,qCAAqC,GAAG,SAAS,CAAC;IAClE,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oDAAoD,EAAE,CAAC,CAAC,OAAO,CAC1E,8CAA8C,EAC9C,CAAC,CAAC,UAAU,EACZ,qCAAqC,CAMrC,CAAC;AAEH,wBAAgB,2CAA2C,CACzD,qCAAqC,EAAE,qCAAqC,GAC3E,MAAM,CAMR;AACD,wBAAgB,6CAA6C,CAC3D,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qCAAqC,EAAE,kBAAkB,CAAC,CAO5E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transferlineitemoptionvalidationerror.js","sourceRoot":"","sources":["../../src/models/components/transferlineitemoptionvalidationerror.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmDH,kGAQC;AACD,sGASC;AAnED,0CAA4B;AAC5B,qDAAiD;AAGjD,uFAK2C;AAS3C,gBAAgB;AACH,QAAA,mDAAmD,GAI5D,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,aAAa,EAAE,4EAA0C,CAAC,QAAQ,EAAE;IACpE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AASH,gBAAgB;AACH,QAAA,oDAAoD,GAI7D,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,aAAa,EAAE,6EAA2C,CAAC,QAAQ,EAAE;IACrE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAEH,SAAgB,2CAA2C,CACzD,qCAA4E;IAE5E,OAAO,IAAI,CAAC,SAAS,CACnB,4DAAoD,CAAC,KAAK,CACxD,qCAAqC,CACtC,CACF,CAAC;AACJ,CAAC;AACD,SAAgB,6CAA6C,CAC3D,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,2DAAmD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1E,mEAAmE,CACpE,CAAC;AACJ,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
import { TransferLineItemValidationError, TransferLineItemValidationError$Outbound } from "./transferlineitemvalidationerror.js";
|
|
5
|
-
export type TransferLineItemsValidationError = {
|
|
6
|
-
items?: {
|
|
7
|
-
[k: string]: TransferLineItemValidationError;
|
|
8
|
-
} | undefined;
|
|
9
|
-
};
|
|
10
|
-
/** @internal */
|
|
11
|
-
export declare const TransferLineItemsValidationError$inboundSchema: z.ZodType<TransferLineItemsValidationError, z.ZodTypeDef, unknown>;
|
|
12
|
-
/** @internal */
|
|
13
|
-
export type TransferLineItemsValidationError$Outbound = {
|
|
14
|
-
items?: {
|
|
15
|
-
[k: string]: TransferLineItemValidationError$Outbound;
|
|
16
|
-
} | undefined;
|
|
17
|
-
};
|
|
18
|
-
/** @internal */
|
|
19
|
-
export declare const TransferLineItemsValidationError$outboundSchema: z.ZodType<TransferLineItemsValidationError$Outbound, z.ZodTypeDef, TransferLineItemsValidationError>;
|
|
20
|
-
export declare function transferLineItemsValidationErrorToJSON(transferLineItemsValidationError: TransferLineItemsValidationError): string;
|
|
21
|
-
export declare function transferLineItemsValidationErrorFromJSON(jsonString: string): SafeParseResult<TransferLineItemsValidationError, SDKValidationError>;
|
|
22
|
-
//# sourceMappingURL=transferlineitemsvalidationerror.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transferlineitemsvalidationerror.d.ts","sourceRoot":"","sources":["../../src/models/components/transferlineitemsvalidationerror.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,+BAA+B,EAE/B,wCAAwC,EAEzC,MAAM,sCAAsC,CAAC;AAE9C,MAAM,MAAM,gCAAgC,GAAG;IAC7C,KAAK,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,+BAA+B,CAAA;KAAE,GAAG,SAAS,CAAC;CACtE,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,OAAO,CACpE,gCAAgC,EAChC,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,yCAAyC,GAAG;IACtD,KAAK,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,wCAAwC,CAAA;KAAE,GAAG,SAAS,CAAC;CAC/E,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+CAA+C,EAAE,CAAC,CAAC,OAAO,CACrE,yCAAyC,EACzC,CAAC,CAAC,UAAU,EACZ,gCAAgC,CAGhC,CAAC;AAEH,wBAAgB,sCAAsC,CACpD,gCAAgC,EAAE,gCAAgC,GACjE,MAAM,CAMR;AACD,wBAAgB,wCAAwC,CACtD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gCAAgC,EAAE,kBAAkB,CAAC,CAMvE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transferlineitemsvalidationerror.js","sourceRoot":"","sources":["../../src/models/components/transferlineitemsvalidationerror.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCH,wFAQC;AACD,4FAQC;AAtDD,0CAA4B;AAC5B,qDAAiD;AAGjD,6FAK8C;AAM9C,gBAAgB;AACH,QAAA,8CAA8C,GAIvD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,kFAA6C,CAAC,CAAC,QAAQ,EAAE;CAC1E,CAAC,CAAC;AAMH,gBAAgB;AACH,QAAA,+CAA+C,GAIxD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,mFAA8C,CAAC,CAAC,QAAQ,EAAE;CAC3E,CAAC,CAAC;AAEH,SAAgB,sCAAsC,CACpD,gCAAkE;IAElE,OAAO,IAAI,CAAC,SAAS,CACnB,uDAA+C,CAAC,KAAK,CACnD,gCAAgC,CACjC,CACF,CAAC;AACJ,CAAC;AACD,SAAgB,wCAAwC,CACtD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sDAA8C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1E,8DAA8D,CAC/D,CAAC;AACJ,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
import { AmountDecimalValidationError, AmountDecimalValidationError$Outbound } from "./amountdecimalvalidationerror.js";
|
|
5
|
-
import { TransferLineItemOptionValidationError, TransferLineItemOptionValidationError$Outbound } from "./transferlineitemoptionvalidationerror.js";
|
|
6
|
-
export type TransferLineItemValidationError = {
|
|
7
|
-
productID?: string | undefined;
|
|
8
|
-
name?: string | undefined;
|
|
9
|
-
basePrice?: AmountDecimalValidationError | undefined;
|
|
10
|
-
options?: {
|
|
11
|
-
[k: string]: TransferLineItemOptionValidationError;
|
|
12
|
-
} | undefined;
|
|
13
|
-
quantity?: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
/** @internal */
|
|
16
|
-
export declare const TransferLineItemValidationError$inboundSchema: z.ZodType<TransferLineItemValidationError, z.ZodTypeDef, unknown>;
|
|
17
|
-
/** @internal */
|
|
18
|
-
export type TransferLineItemValidationError$Outbound = {
|
|
19
|
-
productID?: string | undefined;
|
|
20
|
-
name?: string | undefined;
|
|
21
|
-
basePrice?: AmountDecimalValidationError$Outbound | undefined;
|
|
22
|
-
options?: {
|
|
23
|
-
[k: string]: TransferLineItemOptionValidationError$Outbound;
|
|
24
|
-
} | undefined;
|
|
25
|
-
quantity?: string | undefined;
|
|
26
|
-
};
|
|
27
|
-
/** @internal */
|
|
28
|
-
export declare const TransferLineItemValidationError$outboundSchema: z.ZodType<TransferLineItemValidationError$Outbound, z.ZodTypeDef, TransferLineItemValidationError>;
|
|
29
|
-
export declare function transferLineItemValidationErrorToJSON(transferLineItemValidationError: TransferLineItemValidationError): string;
|
|
30
|
-
export declare function transferLineItemValidationErrorFromJSON(jsonString: string): SafeParseResult<TransferLineItemValidationError, SDKValidationError>;
|
|
31
|
-
//# sourceMappingURL=transferlineitemvalidationerror.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transferlineitemvalidationerror.d.ts","sourceRoot":"","sources":["../../src/models/components/transferlineitemvalidationerror.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,4BAA4B,EAE5B,qCAAqC,EAEtC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,qCAAqC,EAErC,8CAA8C,EAE/C,MAAM,4CAA4C,CAAC;AAEpD,MAAM,MAAM,+BAA+B,GAAG;IAC5C,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,4BAA4B,GAAG,SAAS,CAAC;IACrD,OAAO,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,qCAAqC,CAAA;KAAE,GAAG,SAAS,CAAC;IAC7E,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6CAA6C,EAAE,CAAC,CAAC,OAAO,CACnE,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,OAAO,CAQP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,wCAAwC,GAAG;IACrD,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,qCAAqC,GAAG,SAAS,CAAC;IAC9D,OAAO,CAAC,EACJ;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,8CAA8C,CAAA;KAAE,GAC/D,SAAS,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,OAAO,CACpE,wCAAwC,EACxC,CAAC,CAAC,UAAU,EACZ,+BAA+B,CAQ/B,CAAC;AAEH,wBAAgB,qCAAqC,CACnD,+BAA+B,EAAE,+BAA+B,GAC/D,MAAM,CAMR;AACD,wBAAgB,uCAAuC,CACrD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,+BAA+B,EAAE,kBAAkB,CAAC,CAMtE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transferlineitemvalidationerror.js","sourceRoot":"","sources":["../../src/models/components/transferlineitemvalidationerror.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiEH,sFAQC;AACD,0FAQC;AAhFD,0CAA4B;AAC5B,qDAAiD;AAGjD,uFAK2C;AAC3C,yGAKoD;AAUpD,gBAAgB;AACH,QAAA,6CAA6C,GAItD,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,SAAS,EAAE,4EAA0C,CAAC,QAAQ,EAAE;IAChE,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,8FAAmD,CAAC;SACnE,QAAQ,EAAE;IACb,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAYH,gBAAgB;AACH,QAAA,8CAA8C,GAIvD,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,SAAS,EAAE,6EAA2C,CAAC,QAAQ,EAAE;IACjE,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,+FAAoD,CAAC;SACpE,QAAQ,EAAE;IACb,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAEH,SAAgB,qCAAqC,CACnD,+BAAgE;IAEhE,OAAO,IAAI,CAAC,SAAS,CACnB,sDAA8C,CAAC,KAAK,CAClD,+BAA+B,CAChC,CACF,CAAC;AACJ,CAAC;AACD,SAAgB,uCAAuC,CACrD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qDAA6C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzE,6DAA6D,CAC9D,CAAC;AACJ,CAAC"}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
import {
|
|
10
|
-
AmountDecimalValidationError,
|
|
11
|
-
AmountDecimalValidationError$inboundSchema,
|
|
12
|
-
AmountDecimalValidationError$Outbound,
|
|
13
|
-
AmountDecimalValidationError$outboundSchema,
|
|
14
|
-
} from "./amountdecimalvalidationerror.js";
|
|
15
|
-
|
|
16
|
-
export type TransferLineItemOptionValidationError = {
|
|
17
|
-
name?: string | undefined;
|
|
18
|
-
group?: string | undefined;
|
|
19
|
-
priceModifier?: AmountDecimalValidationError | undefined;
|
|
20
|
-
quantity?: string | undefined;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
/** @internal */
|
|
24
|
-
export const TransferLineItemOptionValidationError$inboundSchema: z.ZodType<
|
|
25
|
-
TransferLineItemOptionValidationError,
|
|
26
|
-
z.ZodTypeDef,
|
|
27
|
-
unknown
|
|
28
|
-
> = z.object({
|
|
29
|
-
name: z.string().optional(),
|
|
30
|
-
group: z.string().optional(),
|
|
31
|
-
priceModifier: AmountDecimalValidationError$inboundSchema.optional(),
|
|
32
|
-
quantity: z.string().optional(),
|
|
33
|
-
});
|
|
34
|
-
/** @internal */
|
|
35
|
-
export type TransferLineItemOptionValidationError$Outbound = {
|
|
36
|
-
name?: string | undefined;
|
|
37
|
-
group?: string | undefined;
|
|
38
|
-
priceModifier?: AmountDecimalValidationError$Outbound | undefined;
|
|
39
|
-
quantity?: string | undefined;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
/** @internal */
|
|
43
|
-
export const TransferLineItemOptionValidationError$outboundSchema: z.ZodType<
|
|
44
|
-
TransferLineItemOptionValidationError$Outbound,
|
|
45
|
-
z.ZodTypeDef,
|
|
46
|
-
TransferLineItemOptionValidationError
|
|
47
|
-
> = z.object({
|
|
48
|
-
name: z.string().optional(),
|
|
49
|
-
group: z.string().optional(),
|
|
50
|
-
priceModifier: AmountDecimalValidationError$outboundSchema.optional(),
|
|
51
|
-
quantity: z.string().optional(),
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
export function transferLineItemOptionValidationErrorToJSON(
|
|
55
|
-
transferLineItemOptionValidationError: TransferLineItemOptionValidationError,
|
|
56
|
-
): string {
|
|
57
|
-
return JSON.stringify(
|
|
58
|
-
TransferLineItemOptionValidationError$outboundSchema.parse(
|
|
59
|
-
transferLineItemOptionValidationError,
|
|
60
|
-
),
|
|
61
|
-
);
|
|
62
|
-
}
|
|
63
|
-
export function transferLineItemOptionValidationErrorFromJSON(
|
|
64
|
-
jsonString: string,
|
|
65
|
-
): SafeParseResult<TransferLineItemOptionValidationError, SDKValidationError> {
|
|
66
|
-
return safeParse(
|
|
67
|
-
jsonString,
|
|
68
|
-
(x) =>
|
|
69
|
-
TransferLineItemOptionValidationError$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
-
`Failed to parse 'TransferLineItemOptionValidationError' from JSON`,
|
|
71
|
-
);
|
|
72
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
import {
|
|
10
|
-
TransferLineItemValidationError,
|
|
11
|
-
TransferLineItemValidationError$inboundSchema,
|
|
12
|
-
TransferLineItemValidationError$Outbound,
|
|
13
|
-
TransferLineItemValidationError$outboundSchema,
|
|
14
|
-
} from "./transferlineitemvalidationerror.js";
|
|
15
|
-
|
|
16
|
-
export type TransferLineItemsValidationError = {
|
|
17
|
-
items?: { [k: string]: TransferLineItemValidationError } | undefined;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
/** @internal */
|
|
21
|
-
export const TransferLineItemsValidationError$inboundSchema: z.ZodType<
|
|
22
|
-
TransferLineItemsValidationError,
|
|
23
|
-
z.ZodTypeDef,
|
|
24
|
-
unknown
|
|
25
|
-
> = z.object({
|
|
26
|
-
items: z.record(TransferLineItemValidationError$inboundSchema).optional(),
|
|
27
|
-
});
|
|
28
|
-
/** @internal */
|
|
29
|
-
export type TransferLineItemsValidationError$Outbound = {
|
|
30
|
-
items?: { [k: string]: TransferLineItemValidationError$Outbound } | undefined;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
/** @internal */
|
|
34
|
-
export const TransferLineItemsValidationError$outboundSchema: z.ZodType<
|
|
35
|
-
TransferLineItemsValidationError$Outbound,
|
|
36
|
-
z.ZodTypeDef,
|
|
37
|
-
TransferLineItemsValidationError
|
|
38
|
-
> = z.object({
|
|
39
|
-
items: z.record(TransferLineItemValidationError$outboundSchema).optional(),
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
export function transferLineItemsValidationErrorToJSON(
|
|
43
|
-
transferLineItemsValidationError: TransferLineItemsValidationError,
|
|
44
|
-
): string {
|
|
45
|
-
return JSON.stringify(
|
|
46
|
-
TransferLineItemsValidationError$outboundSchema.parse(
|
|
47
|
-
transferLineItemsValidationError,
|
|
48
|
-
),
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
export function transferLineItemsValidationErrorFromJSON(
|
|
52
|
-
jsonString: string,
|
|
53
|
-
): SafeParseResult<TransferLineItemsValidationError, SDKValidationError> {
|
|
54
|
-
return safeParse(
|
|
55
|
-
jsonString,
|
|
56
|
-
(x) => TransferLineItemsValidationError$inboundSchema.parse(JSON.parse(x)),
|
|
57
|
-
`Failed to parse 'TransferLineItemsValidationError' from JSON`,
|
|
58
|
-
);
|
|
59
|
-
}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
import {
|
|
10
|
-
AmountDecimalValidationError,
|
|
11
|
-
AmountDecimalValidationError$inboundSchema,
|
|
12
|
-
AmountDecimalValidationError$Outbound,
|
|
13
|
-
AmountDecimalValidationError$outboundSchema,
|
|
14
|
-
} from "./amountdecimalvalidationerror.js";
|
|
15
|
-
import {
|
|
16
|
-
TransferLineItemOptionValidationError,
|
|
17
|
-
TransferLineItemOptionValidationError$inboundSchema,
|
|
18
|
-
TransferLineItemOptionValidationError$Outbound,
|
|
19
|
-
TransferLineItemOptionValidationError$outboundSchema,
|
|
20
|
-
} from "./transferlineitemoptionvalidationerror.js";
|
|
21
|
-
|
|
22
|
-
export type TransferLineItemValidationError = {
|
|
23
|
-
productID?: string | undefined;
|
|
24
|
-
name?: string | undefined;
|
|
25
|
-
basePrice?: AmountDecimalValidationError | undefined;
|
|
26
|
-
options?: { [k: string]: TransferLineItemOptionValidationError } | undefined;
|
|
27
|
-
quantity?: string | undefined;
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
/** @internal */
|
|
31
|
-
export const TransferLineItemValidationError$inboundSchema: z.ZodType<
|
|
32
|
-
TransferLineItemValidationError,
|
|
33
|
-
z.ZodTypeDef,
|
|
34
|
-
unknown
|
|
35
|
-
> = z.object({
|
|
36
|
-
productID: z.string().optional(),
|
|
37
|
-
name: z.string().optional(),
|
|
38
|
-
basePrice: AmountDecimalValidationError$inboundSchema.optional(),
|
|
39
|
-
options: z.record(TransferLineItemOptionValidationError$inboundSchema)
|
|
40
|
-
.optional(),
|
|
41
|
-
quantity: z.string().optional(),
|
|
42
|
-
});
|
|
43
|
-
/** @internal */
|
|
44
|
-
export type TransferLineItemValidationError$Outbound = {
|
|
45
|
-
productID?: string | undefined;
|
|
46
|
-
name?: string | undefined;
|
|
47
|
-
basePrice?: AmountDecimalValidationError$Outbound | undefined;
|
|
48
|
-
options?:
|
|
49
|
-
| { [k: string]: TransferLineItemOptionValidationError$Outbound }
|
|
50
|
-
| undefined;
|
|
51
|
-
quantity?: string | undefined;
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
/** @internal */
|
|
55
|
-
export const TransferLineItemValidationError$outboundSchema: z.ZodType<
|
|
56
|
-
TransferLineItemValidationError$Outbound,
|
|
57
|
-
z.ZodTypeDef,
|
|
58
|
-
TransferLineItemValidationError
|
|
59
|
-
> = z.object({
|
|
60
|
-
productID: z.string().optional(),
|
|
61
|
-
name: z.string().optional(),
|
|
62
|
-
basePrice: AmountDecimalValidationError$outboundSchema.optional(),
|
|
63
|
-
options: z.record(TransferLineItemOptionValidationError$outboundSchema)
|
|
64
|
-
.optional(),
|
|
65
|
-
quantity: z.string().optional(),
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
export function transferLineItemValidationErrorToJSON(
|
|
69
|
-
transferLineItemValidationError: TransferLineItemValidationError,
|
|
70
|
-
): string {
|
|
71
|
-
return JSON.stringify(
|
|
72
|
-
TransferLineItemValidationError$outboundSchema.parse(
|
|
73
|
-
transferLineItemValidationError,
|
|
74
|
-
),
|
|
75
|
-
);
|
|
76
|
-
}
|
|
77
|
-
export function transferLineItemValidationErrorFromJSON(
|
|
78
|
-
jsonString: string,
|
|
79
|
-
): SafeParseResult<TransferLineItemValidationError, SDKValidationError> {
|
|
80
|
-
return safeParse(
|
|
81
|
-
jsonString,
|
|
82
|
-
(x) => TransferLineItemValidationError$inboundSchema.parse(JSON.parse(x)),
|
|
83
|
-
`Failed to parse 'TransferLineItemValidationError' from JSON`,
|
|
84
|
-
);
|
|
85
|
-
}
|