@moovio/sdk 0.10.12 → 0.10.13
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 +43 -19
- package/bin/mcp-server.js +1581 -1000
- package/bin/mcp-server.js.map +30 -19
- package/docs/sdks/accountterminalapplications/README.md +375 -0
- package/docs/sdks/terminalapplications/README.md +12 -12
- package/funcs/accountTerminalApplicationsGet.d.ts +16 -0
- package/funcs/accountTerminalApplicationsGet.d.ts.map +1 -0
- package/funcs/accountTerminalApplicationsGet.js +121 -0
- package/funcs/accountTerminalApplicationsGet.js.map +1 -0
- package/funcs/{terminalConfigurationsGet.d.ts → accountTerminalApplicationsGetConfiguration.d.ts} +3 -3
- package/funcs/accountTerminalApplicationsGetConfiguration.d.ts.map +1 -0
- package/funcs/{terminalConfigurationsGet.js → accountTerminalApplicationsGetConfiguration.js} +4 -4
- package/funcs/accountTerminalApplicationsGetConfiguration.js.map +1 -0
- package/funcs/accountTerminalApplicationsLink.d.ts +17 -0
- package/funcs/accountTerminalApplicationsLink.d.ts.map +1 -0
- package/funcs/accountTerminalApplicationsLink.js +138 -0
- package/funcs/accountTerminalApplicationsLink.js.map +1 -0
- package/funcs/accountTerminalApplicationsList.d.ts +16 -0
- package/funcs/accountTerminalApplicationsList.d.ts.map +1 -0
- package/funcs/accountTerminalApplicationsList.js +120 -0
- package/funcs/accountTerminalApplicationsList.js.map +1 -0
- package/funcs/terminalApplicationsCreate.d.ts +1 -1
- package/funcs/terminalApplicationsCreate.js +1 -1
- package/funcs/terminalApplicationsDelete.d.ts +1 -1
- package/funcs/terminalApplicationsDelete.js +1 -1
- package/funcs/terminalApplicationsGet.d.ts +1 -1
- package/funcs/terminalApplicationsGet.js +1 -1
- package/funcs/terminalApplicationsList.d.ts +1 -1
- package/funcs/terminalApplicationsList.js +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.d.ts.map +1 -1
- package/mcp-server/server.js +9 -3
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/accountTerminalApplicationsGet.d.ts +8 -0
- package/mcp-server/tools/accountTerminalApplicationsGet.d.ts.map +1 -0
- package/mcp-server/tools/accountTerminalApplicationsGet.js +65 -0
- package/mcp-server/tools/accountTerminalApplicationsGet.js.map +1 -0
- package/mcp-server/tools/{terminalConfigurationsGet.d.ts → accountTerminalApplicationsGetConfiguration.d.ts} +2 -2
- package/mcp-server/tools/accountTerminalApplicationsGetConfiguration.d.ts.map +1 -0
- package/mcp-server/tools/{terminalConfigurationsGet.js → accountTerminalApplicationsGetConfiguration.js} +7 -7
- package/mcp-server/tools/accountTerminalApplicationsGetConfiguration.js.map +1 -0
- package/mcp-server/tools/accountTerminalApplicationsLink.d.ts +8 -0
- package/mcp-server/tools/accountTerminalApplicationsLink.d.ts.map +1 -0
- package/mcp-server/tools/accountTerminalApplicationsLink.js +65 -0
- package/mcp-server/tools/accountTerminalApplicationsLink.js.map +1 -0
- package/mcp-server/tools/accountTerminalApplicationsList.d.ts +8 -0
- package/mcp-server/tools/accountTerminalApplicationsList.d.ts.map +1 -0
- package/mcp-server/tools/accountTerminalApplicationsList.js +65 -0
- package/mcp-server/tools/accountTerminalApplicationsList.js.map +1 -0
- package/mcp-server/tools/terminalApplicationsCreate.js +1 -1
- package/mcp-server/tools/terminalApplicationsCreate.js.map +1 -1
- package/mcp-server/tools/terminalApplicationsDelete.js +1 -1
- package/mcp-server/tools/terminalApplicationsDelete.js.map +1 -1
- package/mcp-server/tools/terminalApplicationsGet.js +1 -1
- package/mcp-server/tools/terminalApplicationsGet.js.map +1 -1
- package/mcp-server/tools/terminalApplicationsList.js +1 -1
- package/mcp-server/tools/terminalApplicationsList.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/linkaccountterminalapplication.d.ts +35 -0
- package/models/components/linkaccountterminalapplication.d.ts.map +1 -0
- package/models/components/linkaccountterminalapplication.js +69 -0
- package/models/components/linkaccountterminalapplication.js.map +1 -0
- package/models/errors/accountterminalapplicationerror.d.ts +31 -0
- package/models/errors/accountterminalapplicationerror.d.ts.map +1 -0
- package/models/errors/accountterminalapplicationerror.js +79 -0
- package/models/errors/accountterminalapplicationerror.js.map +1 -0
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/operations/getaccountterminalapplication.d.ts +101 -0
- package/models/operations/getaccountterminalapplication.d.ts.map +1 -0
- package/models/operations/getaccountterminalapplication.js +147 -0
- package/models/operations/getaccountterminalapplication.js.map +1 -0
- package/models/operations/index.d.ts +3 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +3 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/linkaccountterminalapplication.d.ts +101 -0
- package/models/operations/linkaccountterminalapplication.d.ts.map +1 -0
- package/models/operations/linkaccountterminalapplication.js +155 -0
- package/models/operations/linkaccountterminalapplication.js.map +1 -0
- package/models/operations/listaccountterminalapplications.d.ts +99 -0
- package/models/operations/listaccountterminalapplications.d.ts.map +1 -0
- package/models/operations/listaccountterminalapplications.js +145 -0
- package/models/operations/listaccountterminalapplications.js.map +1 -0
- package/package.json +1 -1
- package/sdk/accountterminalapplications.d.ts +33 -0
- package/sdk/accountterminalapplications.d.ts.map +1 -0
- package/sdk/accountterminalapplications.js +52 -0
- package/sdk/accountterminalapplications.js.map +1 -0
- package/sdk/sdk.d.ts +3 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +3 -3
- package/sdk/sdk.js.map +1 -1
- package/sdk/terminalapplications.d.ts +4 -4
- package/sdk/terminalapplications.js +4 -4
- package/src/funcs/accountTerminalApplicationsGet.ts +184 -0
- package/src/funcs/{terminalConfigurationsGet.ts → accountTerminalApplicationsGetConfiguration.ts} +2 -2
- package/src/funcs/accountTerminalApplicationsLink.ts +205 -0
- package/src/funcs/accountTerminalApplicationsList.ts +179 -0
- package/src/funcs/terminalApplicationsCreate.ts +1 -1
- package/src/funcs/terminalApplicationsDelete.ts +1 -1
- package/src/funcs/terminalApplicationsGet.ts +1 -1
- package/src/funcs/terminalApplicationsList.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +9 -3
- package/src/mcp-server/tools/accountTerminalApplicationsGet.ts +40 -0
- package/src/mcp-server/tools/{terminalConfigurationsGet.ts → accountTerminalApplicationsGetConfiguration.ts} +8 -5
- package/src/mcp-server/tools/accountTerminalApplicationsLink.ts +39 -0
- package/src/mcp-server/tools/accountTerminalApplicationsList.ts +40 -0
- package/src/mcp-server/tools/terminalApplicationsCreate.ts +1 -1
- package/src/mcp-server/tools/terminalApplicationsDelete.ts +1 -1
- package/src/mcp-server/tools/terminalApplicationsGet.ts +1 -1
- package/src/mcp-server/tools/terminalApplicationsList.ts +1 -1
- package/src/models/components/index.ts +1 -0
- package/src/models/components/linkaccountterminalapplication.ts +74 -0
- package/src/models/errors/accountterminalapplicationerror.ts +71 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/getaccountterminalapplication.ts +238 -0
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/linkaccountterminalapplication.ts +250 -0
- package/src/models/operations/listaccountterminalapplications.ts +242 -0
- package/src/sdk/accountterminalapplications.ts +81 -0
- package/src/sdk/sdk.ts +5 -6
- package/src/sdk/terminalapplications.ts +4 -4
- package/docs/sdks/terminalconfigurations/README.md +0 -98
- package/funcs/terminalConfigurationsGet.d.ts.map +0 -1
- package/funcs/terminalConfigurationsGet.js.map +0 -1
- package/mcp-server/tools/terminalConfigurationsGet.d.ts.map +0 -1
- package/mcp-server/tools/terminalConfigurationsGet.js.map +0 -1
- package/sdk/terminalconfigurations.d.ts +0 -12
- package/sdk/terminalconfigurations.d.ts.map +0 -1
- package/sdk/terminalconfigurations.js +0 -22
- package/sdk/terminalconfigurations.js.map +0 -1
- package/src/sdk/terminalconfigurations.ts +0 -27
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
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 LinkAccountTerminalApplicationGlobals = {
|
|
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
|
+
*/
|
|
26
|
+
xMoovVersion?: string | undefined;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export type LinkAccountTerminalApplicationRequest = {
|
|
30
|
+
accountID: string;
|
|
31
|
+
linkAccountTerminalApplication: components.LinkAccountTerminalApplication;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export type LinkAccountTerminalApplicationResponse = {
|
|
35
|
+
headers: { [k: string]: Array<string> };
|
|
36
|
+
result: components.TerminalApplication;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const LinkAccountTerminalApplicationGlobals$inboundSchema: z.ZodType<
|
|
41
|
+
LinkAccountTerminalApplicationGlobals,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
unknown
|
|
44
|
+
> = z.object({
|
|
45
|
+
"x-moov-version": z.string().default("v2024.01.00"),
|
|
46
|
+
}).transform((v) => {
|
|
47
|
+
return remap$(v, {
|
|
48
|
+
"x-moov-version": "xMoovVersion",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export type LinkAccountTerminalApplicationGlobals$Outbound = {
|
|
54
|
+
"x-moov-version": string;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const LinkAccountTerminalApplicationGlobals$outboundSchema: z.ZodType<
|
|
59
|
+
LinkAccountTerminalApplicationGlobals$Outbound,
|
|
60
|
+
z.ZodTypeDef,
|
|
61
|
+
LinkAccountTerminalApplicationGlobals
|
|
62
|
+
> = z.object({
|
|
63
|
+
xMoovVersion: z.string().default("v2024.01.00"),
|
|
64
|
+
}).transform((v) => {
|
|
65
|
+
return remap$(v, {
|
|
66
|
+
xMoovVersion: "x-moov-version",
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @internal
|
|
72
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
73
|
+
*/
|
|
74
|
+
export namespace LinkAccountTerminalApplicationGlobals$ {
|
|
75
|
+
/** @deprecated use `LinkAccountTerminalApplicationGlobals$inboundSchema` instead. */
|
|
76
|
+
export const inboundSchema =
|
|
77
|
+
LinkAccountTerminalApplicationGlobals$inboundSchema;
|
|
78
|
+
/** @deprecated use `LinkAccountTerminalApplicationGlobals$outboundSchema` instead. */
|
|
79
|
+
export const outboundSchema =
|
|
80
|
+
LinkAccountTerminalApplicationGlobals$outboundSchema;
|
|
81
|
+
/** @deprecated use `LinkAccountTerminalApplicationGlobals$Outbound` instead. */
|
|
82
|
+
export type Outbound = LinkAccountTerminalApplicationGlobals$Outbound;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function linkAccountTerminalApplicationGlobalsToJSON(
|
|
86
|
+
linkAccountTerminalApplicationGlobals: LinkAccountTerminalApplicationGlobals,
|
|
87
|
+
): string {
|
|
88
|
+
return JSON.stringify(
|
|
89
|
+
LinkAccountTerminalApplicationGlobals$outboundSchema.parse(
|
|
90
|
+
linkAccountTerminalApplicationGlobals,
|
|
91
|
+
),
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function linkAccountTerminalApplicationGlobalsFromJSON(
|
|
96
|
+
jsonString: string,
|
|
97
|
+
): SafeParseResult<LinkAccountTerminalApplicationGlobals, SDKValidationError> {
|
|
98
|
+
return safeParse(
|
|
99
|
+
jsonString,
|
|
100
|
+
(x) =>
|
|
101
|
+
LinkAccountTerminalApplicationGlobals$inboundSchema.parse(JSON.parse(x)),
|
|
102
|
+
`Failed to parse 'LinkAccountTerminalApplicationGlobals' from JSON`,
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/** @internal */
|
|
107
|
+
export const LinkAccountTerminalApplicationRequest$inboundSchema: z.ZodType<
|
|
108
|
+
LinkAccountTerminalApplicationRequest,
|
|
109
|
+
z.ZodTypeDef,
|
|
110
|
+
unknown
|
|
111
|
+
> = z.object({
|
|
112
|
+
accountID: z.string(),
|
|
113
|
+
LinkAccountTerminalApplication:
|
|
114
|
+
components.LinkAccountTerminalApplication$inboundSchema,
|
|
115
|
+
}).transform((v) => {
|
|
116
|
+
return remap$(v, {
|
|
117
|
+
"LinkAccountTerminalApplication": "linkAccountTerminalApplication",
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
/** @internal */
|
|
122
|
+
export type LinkAccountTerminalApplicationRequest$Outbound = {
|
|
123
|
+
accountID: string;
|
|
124
|
+
LinkAccountTerminalApplication:
|
|
125
|
+
components.LinkAccountTerminalApplication$Outbound;
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
/** @internal */
|
|
129
|
+
export const LinkAccountTerminalApplicationRequest$outboundSchema: z.ZodType<
|
|
130
|
+
LinkAccountTerminalApplicationRequest$Outbound,
|
|
131
|
+
z.ZodTypeDef,
|
|
132
|
+
LinkAccountTerminalApplicationRequest
|
|
133
|
+
> = z.object({
|
|
134
|
+
accountID: z.string(),
|
|
135
|
+
linkAccountTerminalApplication:
|
|
136
|
+
components.LinkAccountTerminalApplication$outboundSchema,
|
|
137
|
+
}).transform((v) => {
|
|
138
|
+
return remap$(v, {
|
|
139
|
+
linkAccountTerminalApplication: "LinkAccountTerminalApplication",
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* @internal
|
|
145
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
146
|
+
*/
|
|
147
|
+
export namespace LinkAccountTerminalApplicationRequest$ {
|
|
148
|
+
/** @deprecated use `LinkAccountTerminalApplicationRequest$inboundSchema` instead. */
|
|
149
|
+
export const inboundSchema =
|
|
150
|
+
LinkAccountTerminalApplicationRequest$inboundSchema;
|
|
151
|
+
/** @deprecated use `LinkAccountTerminalApplicationRequest$outboundSchema` instead. */
|
|
152
|
+
export const outboundSchema =
|
|
153
|
+
LinkAccountTerminalApplicationRequest$outboundSchema;
|
|
154
|
+
/** @deprecated use `LinkAccountTerminalApplicationRequest$Outbound` instead. */
|
|
155
|
+
export type Outbound = LinkAccountTerminalApplicationRequest$Outbound;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export function linkAccountTerminalApplicationRequestToJSON(
|
|
159
|
+
linkAccountTerminalApplicationRequest: LinkAccountTerminalApplicationRequest,
|
|
160
|
+
): string {
|
|
161
|
+
return JSON.stringify(
|
|
162
|
+
LinkAccountTerminalApplicationRequest$outboundSchema.parse(
|
|
163
|
+
linkAccountTerminalApplicationRequest,
|
|
164
|
+
),
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export function linkAccountTerminalApplicationRequestFromJSON(
|
|
169
|
+
jsonString: string,
|
|
170
|
+
): SafeParseResult<LinkAccountTerminalApplicationRequest, SDKValidationError> {
|
|
171
|
+
return safeParse(
|
|
172
|
+
jsonString,
|
|
173
|
+
(x) =>
|
|
174
|
+
LinkAccountTerminalApplicationRequest$inboundSchema.parse(JSON.parse(x)),
|
|
175
|
+
`Failed to parse 'LinkAccountTerminalApplicationRequest' from JSON`,
|
|
176
|
+
);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/** @internal */
|
|
180
|
+
export const LinkAccountTerminalApplicationResponse$inboundSchema: z.ZodType<
|
|
181
|
+
LinkAccountTerminalApplicationResponse,
|
|
182
|
+
z.ZodTypeDef,
|
|
183
|
+
unknown
|
|
184
|
+
> = z.object({
|
|
185
|
+
Headers: z.record(z.array(z.string())),
|
|
186
|
+
Result: components.TerminalApplication$inboundSchema,
|
|
187
|
+
}).transform((v) => {
|
|
188
|
+
return remap$(v, {
|
|
189
|
+
"Headers": "headers",
|
|
190
|
+
"Result": "result",
|
|
191
|
+
});
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
/** @internal */
|
|
195
|
+
export type LinkAccountTerminalApplicationResponse$Outbound = {
|
|
196
|
+
Headers: { [k: string]: Array<string> };
|
|
197
|
+
Result: components.TerminalApplication$Outbound;
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
/** @internal */
|
|
201
|
+
export const LinkAccountTerminalApplicationResponse$outboundSchema: z.ZodType<
|
|
202
|
+
LinkAccountTerminalApplicationResponse$Outbound,
|
|
203
|
+
z.ZodTypeDef,
|
|
204
|
+
LinkAccountTerminalApplicationResponse
|
|
205
|
+
> = z.object({
|
|
206
|
+
headers: z.record(z.array(z.string())),
|
|
207
|
+
result: components.TerminalApplication$outboundSchema,
|
|
208
|
+
}).transform((v) => {
|
|
209
|
+
return remap$(v, {
|
|
210
|
+
headers: "Headers",
|
|
211
|
+
result: "Result",
|
|
212
|
+
});
|
|
213
|
+
});
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* @internal
|
|
217
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
218
|
+
*/
|
|
219
|
+
export namespace LinkAccountTerminalApplicationResponse$ {
|
|
220
|
+
/** @deprecated use `LinkAccountTerminalApplicationResponse$inboundSchema` instead. */
|
|
221
|
+
export const inboundSchema =
|
|
222
|
+
LinkAccountTerminalApplicationResponse$inboundSchema;
|
|
223
|
+
/** @deprecated use `LinkAccountTerminalApplicationResponse$outboundSchema` instead. */
|
|
224
|
+
export const outboundSchema =
|
|
225
|
+
LinkAccountTerminalApplicationResponse$outboundSchema;
|
|
226
|
+
/** @deprecated use `LinkAccountTerminalApplicationResponse$Outbound` instead. */
|
|
227
|
+
export type Outbound = LinkAccountTerminalApplicationResponse$Outbound;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export function linkAccountTerminalApplicationResponseToJSON(
|
|
231
|
+
linkAccountTerminalApplicationResponse:
|
|
232
|
+
LinkAccountTerminalApplicationResponse,
|
|
233
|
+
): string {
|
|
234
|
+
return JSON.stringify(
|
|
235
|
+
LinkAccountTerminalApplicationResponse$outboundSchema.parse(
|
|
236
|
+
linkAccountTerminalApplicationResponse,
|
|
237
|
+
),
|
|
238
|
+
);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export function linkAccountTerminalApplicationResponseFromJSON(
|
|
242
|
+
jsonString: string,
|
|
243
|
+
): SafeParseResult<LinkAccountTerminalApplicationResponse, SDKValidationError> {
|
|
244
|
+
return safeParse(
|
|
245
|
+
jsonString,
|
|
246
|
+
(x) =>
|
|
247
|
+
LinkAccountTerminalApplicationResponse$inboundSchema.parse(JSON.parse(x)),
|
|
248
|
+
`Failed to parse 'LinkAccountTerminalApplicationResponse' from JSON`,
|
|
249
|
+
);
|
|
250
|
+
}
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
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 ListAccountTerminalApplicationsGlobals = {
|
|
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
|
+
*/
|
|
26
|
+
xMoovVersion?: string | undefined;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export type ListAccountTerminalApplicationsRequest = {
|
|
30
|
+
accountID: string;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export type ListAccountTerminalApplicationsResponse = {
|
|
34
|
+
headers: { [k: string]: Array<string> };
|
|
35
|
+
result: Array<components.TerminalApplication>;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const ListAccountTerminalApplicationsGlobals$inboundSchema: z.ZodType<
|
|
40
|
+
ListAccountTerminalApplicationsGlobals,
|
|
41
|
+
z.ZodTypeDef,
|
|
42
|
+
unknown
|
|
43
|
+
> = z.object({
|
|
44
|
+
"x-moov-version": z.string().default("v2024.01.00"),
|
|
45
|
+
}).transform((v) => {
|
|
46
|
+
return remap$(v, {
|
|
47
|
+
"x-moov-version": "xMoovVersion",
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
/** @internal */
|
|
52
|
+
export type ListAccountTerminalApplicationsGlobals$Outbound = {
|
|
53
|
+
"x-moov-version": string;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
/** @internal */
|
|
57
|
+
export const ListAccountTerminalApplicationsGlobals$outboundSchema: z.ZodType<
|
|
58
|
+
ListAccountTerminalApplicationsGlobals$Outbound,
|
|
59
|
+
z.ZodTypeDef,
|
|
60
|
+
ListAccountTerminalApplicationsGlobals
|
|
61
|
+
> = z.object({
|
|
62
|
+
xMoovVersion: z.string().default("v2024.01.00"),
|
|
63
|
+
}).transform((v) => {
|
|
64
|
+
return remap$(v, {
|
|
65
|
+
xMoovVersion: "x-moov-version",
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @internal
|
|
71
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
72
|
+
*/
|
|
73
|
+
export namespace ListAccountTerminalApplicationsGlobals$ {
|
|
74
|
+
/** @deprecated use `ListAccountTerminalApplicationsGlobals$inboundSchema` instead. */
|
|
75
|
+
export const inboundSchema =
|
|
76
|
+
ListAccountTerminalApplicationsGlobals$inboundSchema;
|
|
77
|
+
/** @deprecated use `ListAccountTerminalApplicationsGlobals$outboundSchema` instead. */
|
|
78
|
+
export const outboundSchema =
|
|
79
|
+
ListAccountTerminalApplicationsGlobals$outboundSchema;
|
|
80
|
+
/** @deprecated use `ListAccountTerminalApplicationsGlobals$Outbound` instead. */
|
|
81
|
+
export type Outbound = ListAccountTerminalApplicationsGlobals$Outbound;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function listAccountTerminalApplicationsGlobalsToJSON(
|
|
85
|
+
listAccountTerminalApplicationsGlobals:
|
|
86
|
+
ListAccountTerminalApplicationsGlobals,
|
|
87
|
+
): string {
|
|
88
|
+
return JSON.stringify(
|
|
89
|
+
ListAccountTerminalApplicationsGlobals$outboundSchema.parse(
|
|
90
|
+
listAccountTerminalApplicationsGlobals,
|
|
91
|
+
),
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function listAccountTerminalApplicationsGlobalsFromJSON(
|
|
96
|
+
jsonString: string,
|
|
97
|
+
): SafeParseResult<ListAccountTerminalApplicationsGlobals, SDKValidationError> {
|
|
98
|
+
return safeParse(
|
|
99
|
+
jsonString,
|
|
100
|
+
(x) =>
|
|
101
|
+
ListAccountTerminalApplicationsGlobals$inboundSchema.parse(JSON.parse(x)),
|
|
102
|
+
`Failed to parse 'ListAccountTerminalApplicationsGlobals' from JSON`,
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/** @internal */
|
|
107
|
+
export const ListAccountTerminalApplicationsRequest$inboundSchema: z.ZodType<
|
|
108
|
+
ListAccountTerminalApplicationsRequest,
|
|
109
|
+
z.ZodTypeDef,
|
|
110
|
+
unknown
|
|
111
|
+
> = z.object({
|
|
112
|
+
accountID: z.string(),
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
/** @internal */
|
|
116
|
+
export type ListAccountTerminalApplicationsRequest$Outbound = {
|
|
117
|
+
accountID: string;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
/** @internal */
|
|
121
|
+
export const ListAccountTerminalApplicationsRequest$outboundSchema: z.ZodType<
|
|
122
|
+
ListAccountTerminalApplicationsRequest$Outbound,
|
|
123
|
+
z.ZodTypeDef,
|
|
124
|
+
ListAccountTerminalApplicationsRequest
|
|
125
|
+
> = z.object({
|
|
126
|
+
accountID: z.string(),
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* @internal
|
|
131
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
132
|
+
*/
|
|
133
|
+
export namespace ListAccountTerminalApplicationsRequest$ {
|
|
134
|
+
/** @deprecated use `ListAccountTerminalApplicationsRequest$inboundSchema` instead. */
|
|
135
|
+
export const inboundSchema =
|
|
136
|
+
ListAccountTerminalApplicationsRequest$inboundSchema;
|
|
137
|
+
/** @deprecated use `ListAccountTerminalApplicationsRequest$outboundSchema` instead. */
|
|
138
|
+
export const outboundSchema =
|
|
139
|
+
ListAccountTerminalApplicationsRequest$outboundSchema;
|
|
140
|
+
/** @deprecated use `ListAccountTerminalApplicationsRequest$Outbound` instead. */
|
|
141
|
+
export type Outbound = ListAccountTerminalApplicationsRequest$Outbound;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export function listAccountTerminalApplicationsRequestToJSON(
|
|
145
|
+
listAccountTerminalApplicationsRequest:
|
|
146
|
+
ListAccountTerminalApplicationsRequest,
|
|
147
|
+
): string {
|
|
148
|
+
return JSON.stringify(
|
|
149
|
+
ListAccountTerminalApplicationsRequest$outboundSchema.parse(
|
|
150
|
+
listAccountTerminalApplicationsRequest,
|
|
151
|
+
),
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export function listAccountTerminalApplicationsRequestFromJSON(
|
|
156
|
+
jsonString: string,
|
|
157
|
+
): SafeParseResult<ListAccountTerminalApplicationsRequest, SDKValidationError> {
|
|
158
|
+
return safeParse(
|
|
159
|
+
jsonString,
|
|
160
|
+
(x) =>
|
|
161
|
+
ListAccountTerminalApplicationsRequest$inboundSchema.parse(JSON.parse(x)),
|
|
162
|
+
`Failed to parse 'ListAccountTerminalApplicationsRequest' from JSON`,
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/** @internal */
|
|
167
|
+
export const ListAccountTerminalApplicationsResponse$inboundSchema: z.ZodType<
|
|
168
|
+
ListAccountTerminalApplicationsResponse,
|
|
169
|
+
z.ZodTypeDef,
|
|
170
|
+
unknown
|
|
171
|
+
> = z.object({
|
|
172
|
+
Headers: z.record(z.array(z.string())),
|
|
173
|
+
Result: z.array(components.TerminalApplication$inboundSchema),
|
|
174
|
+
}).transform((v) => {
|
|
175
|
+
return remap$(v, {
|
|
176
|
+
"Headers": "headers",
|
|
177
|
+
"Result": "result",
|
|
178
|
+
});
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
/** @internal */
|
|
182
|
+
export type ListAccountTerminalApplicationsResponse$Outbound = {
|
|
183
|
+
Headers: { [k: string]: Array<string> };
|
|
184
|
+
Result: Array<components.TerminalApplication$Outbound>;
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
/** @internal */
|
|
188
|
+
export const ListAccountTerminalApplicationsResponse$outboundSchema: z.ZodType<
|
|
189
|
+
ListAccountTerminalApplicationsResponse$Outbound,
|
|
190
|
+
z.ZodTypeDef,
|
|
191
|
+
ListAccountTerminalApplicationsResponse
|
|
192
|
+
> = z.object({
|
|
193
|
+
headers: z.record(z.array(z.string())),
|
|
194
|
+
result: z.array(components.TerminalApplication$outboundSchema),
|
|
195
|
+
}).transform((v) => {
|
|
196
|
+
return remap$(v, {
|
|
197
|
+
headers: "Headers",
|
|
198
|
+
result: "Result",
|
|
199
|
+
});
|
|
200
|
+
});
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* @internal
|
|
204
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
205
|
+
*/
|
|
206
|
+
export namespace ListAccountTerminalApplicationsResponse$ {
|
|
207
|
+
/** @deprecated use `ListAccountTerminalApplicationsResponse$inboundSchema` instead. */
|
|
208
|
+
export const inboundSchema =
|
|
209
|
+
ListAccountTerminalApplicationsResponse$inboundSchema;
|
|
210
|
+
/** @deprecated use `ListAccountTerminalApplicationsResponse$outboundSchema` instead. */
|
|
211
|
+
export const outboundSchema =
|
|
212
|
+
ListAccountTerminalApplicationsResponse$outboundSchema;
|
|
213
|
+
/** @deprecated use `ListAccountTerminalApplicationsResponse$Outbound` instead. */
|
|
214
|
+
export type Outbound = ListAccountTerminalApplicationsResponse$Outbound;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
export function listAccountTerminalApplicationsResponseToJSON(
|
|
218
|
+
listAccountTerminalApplicationsResponse:
|
|
219
|
+
ListAccountTerminalApplicationsResponse,
|
|
220
|
+
): string {
|
|
221
|
+
return JSON.stringify(
|
|
222
|
+
ListAccountTerminalApplicationsResponse$outboundSchema.parse(
|
|
223
|
+
listAccountTerminalApplicationsResponse,
|
|
224
|
+
),
|
|
225
|
+
);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export function listAccountTerminalApplicationsResponseFromJSON(
|
|
229
|
+
jsonString: string,
|
|
230
|
+
): SafeParseResult<
|
|
231
|
+
ListAccountTerminalApplicationsResponse,
|
|
232
|
+
SDKValidationError
|
|
233
|
+
> {
|
|
234
|
+
return safeParse(
|
|
235
|
+
jsonString,
|
|
236
|
+
(x) =>
|
|
237
|
+
ListAccountTerminalApplicationsResponse$inboundSchema.parse(
|
|
238
|
+
JSON.parse(x),
|
|
239
|
+
),
|
|
240
|
+
`Failed to parse 'ListAccountTerminalApplicationsResponse' from JSON`,
|
|
241
|
+
);
|
|
242
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { accountTerminalApplicationsGet } from "../funcs/accountTerminalApplicationsGet.js";
|
|
6
|
+
import { accountTerminalApplicationsGetConfiguration } from "../funcs/accountTerminalApplicationsGetConfiguration.js";
|
|
7
|
+
import { accountTerminalApplicationsLink } from "../funcs/accountTerminalApplicationsLink.js";
|
|
8
|
+
import { accountTerminalApplicationsList } from "../funcs/accountTerminalApplicationsList.js";
|
|
9
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
10
|
+
import * as operations from "../models/operations/index.js";
|
|
11
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
12
|
+
|
|
13
|
+
export class AccountTerminalApplications extends ClientSDK {
|
|
14
|
+
/**
|
|
15
|
+
* Link an account with a terminal application.
|
|
16
|
+
*
|
|
17
|
+
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
18
|
+
* you'll need to specify the `/accounts/{accountID}/terminal-applications.write` scope.
|
|
19
|
+
*/
|
|
20
|
+
async link(
|
|
21
|
+
request: operations.LinkAccountTerminalApplicationRequest,
|
|
22
|
+
options?: RequestOptions,
|
|
23
|
+
): Promise<operations.LinkAccountTerminalApplicationResponse> {
|
|
24
|
+
return unwrapAsync(accountTerminalApplicationsLink(
|
|
25
|
+
this,
|
|
26
|
+
request,
|
|
27
|
+
options,
|
|
28
|
+
));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Retrieve all terminal applications linked to a specific account.
|
|
33
|
+
*
|
|
34
|
+
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
35
|
+
* you'll need to specify the `/accounts/{accountID}/terminal-applications.read` scope.
|
|
36
|
+
*/
|
|
37
|
+
async list(
|
|
38
|
+
request: operations.ListAccountTerminalApplicationsRequest,
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): Promise<operations.ListAccountTerminalApplicationsResponse> {
|
|
41
|
+
return unwrapAsync(accountTerminalApplicationsList(
|
|
42
|
+
this,
|
|
43
|
+
request,
|
|
44
|
+
options,
|
|
45
|
+
));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Verifies if a specific Terminal Application is linked to an Account. This endpoint acts as a validation check for the link's existence.
|
|
50
|
+
*
|
|
51
|
+
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
52
|
+
* you'll need to specify the `/accounts/{accountID}/terminal-applications.read` scope.
|
|
53
|
+
*/
|
|
54
|
+
async get(
|
|
55
|
+
request: operations.GetAccountTerminalApplicationRequest,
|
|
56
|
+
options?: RequestOptions,
|
|
57
|
+
): Promise<operations.GetAccountTerminalApplicationResponse> {
|
|
58
|
+
return unwrapAsync(accountTerminalApplicationsGet(
|
|
59
|
+
this,
|
|
60
|
+
request,
|
|
61
|
+
options,
|
|
62
|
+
));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Fetch the configuration for a given Terminal Application linked to a specific Account.
|
|
67
|
+
*
|
|
68
|
+
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
69
|
+
* you'll need to specify the `/accounts/{accountID}/terminal-configuration.read` scope.
|
|
70
|
+
*/
|
|
71
|
+
async getConfiguration(
|
|
72
|
+
request: operations.GetTerminalConfigurationRequest,
|
|
73
|
+
options?: RequestOptions,
|
|
74
|
+
): Promise<operations.GetTerminalConfigurationResponse> {
|
|
75
|
+
return unwrapAsync(accountTerminalApplicationsGetConfiguration(
|
|
76
|
+
this,
|
|
77
|
+
request,
|
|
78
|
+
options,
|
|
79
|
+
));
|
|
80
|
+
}
|
|
81
|
+
}
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { ClientSDK } from "../lib/sdks.js";
|
|
6
6
|
import { Accounts } from "./accounts.js";
|
|
7
|
+
import { AccountTerminalApplications } from "./accountterminalapplications.js";
|
|
7
8
|
import { Adjustments } from "./adjustments.js";
|
|
8
9
|
import { ApplePay } from "./applepay.js";
|
|
9
10
|
import { Authentication } from "./authentication.js";
|
|
@@ -31,7 +32,6 @@ import { Representatives } from "./representatives.js";
|
|
|
31
32
|
import { Scheduling } from "./scheduling.js";
|
|
32
33
|
import { Sweeps } from "./sweeps.js";
|
|
33
34
|
import { TerminalApplications } from "./terminalapplications.js";
|
|
34
|
-
import { TerminalConfigurations } from "./terminalconfigurations.js";
|
|
35
35
|
import { Transfers } from "./transfers.js";
|
|
36
36
|
import { Underwriting } from "./underwriting.js";
|
|
37
37
|
import { Wallets } from "./wallets.js";
|
|
@@ -113,11 +113,10 @@ export class Moov extends ClientSDK {
|
|
|
113
113
|
return (this._sweeps ??= new Sweeps(this._options));
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
private
|
|
117
|
-
get
|
|
118
|
-
return (this.
|
|
119
|
-
this._options
|
|
120
|
-
));
|
|
116
|
+
private _accountTerminalApplications?: AccountTerminalApplications;
|
|
117
|
+
get accountTerminalApplications(): AccountTerminalApplications {
|
|
118
|
+
return (this._accountTerminalApplications ??=
|
|
119
|
+
new AccountTerminalApplications(this._options));
|
|
121
120
|
}
|
|
122
121
|
|
|
123
122
|
private _transfers?: Transfers;
|
|
@@ -16,7 +16,7 @@ export class TerminalApplications extends ClientSDK {
|
|
|
16
16
|
* Create a new terminal application.
|
|
17
17
|
*
|
|
18
18
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
19
|
-
* you'll need to specify the `/
|
|
19
|
+
* you'll need to specify the `/terminal-applications.write` scope.
|
|
20
20
|
*/
|
|
21
21
|
async create(
|
|
22
22
|
request: components.CreateTerminalApplication,
|
|
@@ -33,7 +33,7 @@ export class TerminalApplications extends ClientSDK {
|
|
|
33
33
|
* List all the terminal applications for a Moov Account.
|
|
34
34
|
*
|
|
35
35
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
36
|
-
* you'll need to specify the `/
|
|
36
|
+
* you'll need to specify the `/terminal-applications.read` scope.
|
|
37
37
|
*/
|
|
38
38
|
async list(
|
|
39
39
|
request: operations.ListTerminalApplicationsRequest,
|
|
@@ -50,7 +50,7 @@ export class TerminalApplications extends ClientSDK {
|
|
|
50
50
|
* Fetch a specific terminal application.
|
|
51
51
|
*
|
|
52
52
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
53
|
-
* you'll need to specify the `/
|
|
53
|
+
* you'll need to specify the `/terminal-applications.read` scope.
|
|
54
54
|
*/
|
|
55
55
|
async get(
|
|
56
56
|
request: operations.GetTerminalApplicationRequest,
|
|
@@ -67,7 +67,7 @@ export class TerminalApplications extends ClientSDK {
|
|
|
67
67
|
* Delete a specific terminal application.
|
|
68
68
|
*
|
|
69
69
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
70
|
-
* you'll need to specify the `/
|
|
70
|
+
* you'll need to specify the `/terminal-applications.write` scope.
|
|
71
71
|
*/
|
|
72
72
|
async delete(
|
|
73
73
|
request: operations.DeleteTerminalApplicationRequest,
|