@moovio/sdk 0.10.0 → 0.10.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 +11 -0
- package/bin/mcp-server.js +325 -135
- package/bin/mcp-server.js.map +14 -10
- package/docs/sdks/terminalconfigurations/README.md +98 -0
- package/funcs/terminalConfigurationsGet.d.ts +16 -0
- package/funcs/terminalConfigurationsGet.d.ts.map +1 -0
- package/funcs/terminalConfigurationsGet.js +124 -0
- package/funcs/terminalConfigurationsGet.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +3 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/terminalConfigurationsGet.d.ts +8 -0
- package/mcp-server/tools/terminalConfigurationsGet.d.ts.map +1 -0
- package/mcp-server/tools/terminalConfigurationsGet.js +65 -0
- package/mcp-server/tools/terminalConfigurationsGet.js.map +1 -0
- package/models/components/accountnameverification.d.ts +8 -8
- package/models/components/accountnameverification.d.ts.map +1 -1
- package/models/components/accountnameverification.js +8 -8
- package/models/components/accountnameverification.js.map +1 -1
- package/models/components/cardverification.d.ts +2 -2
- package/models/components/cardverification.d.ts.map +1 -1
- package/models/components/cardverification.js +2 -2
- package/models/components/cardverification.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/terminalconfiguration.d.ts +32 -0
- package/models/components/terminalconfiguration.d.ts.map +1 -0
- package/models/components/terminalconfiguration.js +69 -0
- package/models/components/terminalconfiguration.js.map +1 -0
- package/models/operations/getterminalconfiguration.d.ts +101 -0
- package/models/operations/getterminalconfiguration.d.ts.map +1 -0
- package/models/operations/getterminalconfiguration.js +147 -0
- package/models/operations/getterminalconfiguration.js.map +1 -0
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/terminalconfigurations.d.ts +12 -0
- package/sdk/terminalconfigurations.d.ts.map +1 -0
- package/sdk/terminalconfigurations.js +22 -0
- package/sdk/terminalconfigurations.js.map +1 -0
- package/src/funcs/terminalConfigurationsGet.ts +181 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/terminalConfigurationsGet.ts +38 -0
- package/src/models/components/accountnameverification.ts +16 -16
- package/src/models/components/cardverification.ts +4 -4
- package/src/models/components/index.ts +1 -0
- package/src/models/components/terminalconfiguration.ts +69 -0
- package/src/models/operations/getterminalconfiguration.ts +229 -0
- package/src/models/operations/index.ts +1 -0
- package/src/sdk/sdk.ts +8 -0
- package/src/sdk/terminalconfigurations.ts +27 -0
|
@@ -0,0 +1,229 @@
|
|
|
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 GetTerminalConfigurationGlobals = {
|
|
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 GetTerminalConfigurationRequest = {
|
|
30
|
+
accountID: string;
|
|
31
|
+
terminalApplicationID: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export type GetTerminalConfigurationResponse = {
|
|
35
|
+
headers: { [k: string]: Array<string> };
|
|
36
|
+
result: components.TerminalConfiguration;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const GetTerminalConfigurationGlobals$inboundSchema: z.ZodType<
|
|
41
|
+
GetTerminalConfigurationGlobals,
|
|
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 GetTerminalConfigurationGlobals$Outbound = {
|
|
54
|
+
"x-moov-version": string;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const GetTerminalConfigurationGlobals$outboundSchema: z.ZodType<
|
|
59
|
+
GetTerminalConfigurationGlobals$Outbound,
|
|
60
|
+
z.ZodTypeDef,
|
|
61
|
+
GetTerminalConfigurationGlobals
|
|
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 GetTerminalConfigurationGlobals$ {
|
|
75
|
+
/** @deprecated use `GetTerminalConfigurationGlobals$inboundSchema` instead. */
|
|
76
|
+
export const inboundSchema = GetTerminalConfigurationGlobals$inboundSchema;
|
|
77
|
+
/** @deprecated use `GetTerminalConfigurationGlobals$outboundSchema` instead. */
|
|
78
|
+
export const outboundSchema = GetTerminalConfigurationGlobals$outboundSchema;
|
|
79
|
+
/** @deprecated use `GetTerminalConfigurationGlobals$Outbound` instead. */
|
|
80
|
+
export type Outbound = GetTerminalConfigurationGlobals$Outbound;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function getTerminalConfigurationGlobalsToJSON(
|
|
84
|
+
getTerminalConfigurationGlobals: GetTerminalConfigurationGlobals,
|
|
85
|
+
): string {
|
|
86
|
+
return JSON.stringify(
|
|
87
|
+
GetTerminalConfigurationGlobals$outboundSchema.parse(
|
|
88
|
+
getTerminalConfigurationGlobals,
|
|
89
|
+
),
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function getTerminalConfigurationGlobalsFromJSON(
|
|
94
|
+
jsonString: string,
|
|
95
|
+
): SafeParseResult<GetTerminalConfigurationGlobals, SDKValidationError> {
|
|
96
|
+
return safeParse(
|
|
97
|
+
jsonString,
|
|
98
|
+
(x) => GetTerminalConfigurationGlobals$inboundSchema.parse(JSON.parse(x)),
|
|
99
|
+
`Failed to parse 'GetTerminalConfigurationGlobals' from JSON`,
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/** @internal */
|
|
104
|
+
export const GetTerminalConfigurationRequest$inboundSchema: z.ZodType<
|
|
105
|
+
GetTerminalConfigurationRequest,
|
|
106
|
+
z.ZodTypeDef,
|
|
107
|
+
unknown
|
|
108
|
+
> = z.object({
|
|
109
|
+
accountID: z.string(),
|
|
110
|
+
terminalApplicationID: z.string(),
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
/** @internal */
|
|
114
|
+
export type GetTerminalConfigurationRequest$Outbound = {
|
|
115
|
+
accountID: string;
|
|
116
|
+
terminalApplicationID: string;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
/** @internal */
|
|
120
|
+
export const GetTerminalConfigurationRequest$outboundSchema: z.ZodType<
|
|
121
|
+
GetTerminalConfigurationRequest$Outbound,
|
|
122
|
+
z.ZodTypeDef,
|
|
123
|
+
GetTerminalConfigurationRequest
|
|
124
|
+
> = z.object({
|
|
125
|
+
accountID: z.string(),
|
|
126
|
+
terminalApplicationID: 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 GetTerminalConfigurationRequest$ {
|
|
134
|
+
/** @deprecated use `GetTerminalConfigurationRequest$inboundSchema` instead. */
|
|
135
|
+
export const inboundSchema = GetTerminalConfigurationRequest$inboundSchema;
|
|
136
|
+
/** @deprecated use `GetTerminalConfigurationRequest$outboundSchema` instead. */
|
|
137
|
+
export const outboundSchema = GetTerminalConfigurationRequest$outboundSchema;
|
|
138
|
+
/** @deprecated use `GetTerminalConfigurationRequest$Outbound` instead. */
|
|
139
|
+
export type Outbound = GetTerminalConfigurationRequest$Outbound;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export function getTerminalConfigurationRequestToJSON(
|
|
143
|
+
getTerminalConfigurationRequest: GetTerminalConfigurationRequest,
|
|
144
|
+
): string {
|
|
145
|
+
return JSON.stringify(
|
|
146
|
+
GetTerminalConfigurationRequest$outboundSchema.parse(
|
|
147
|
+
getTerminalConfigurationRequest,
|
|
148
|
+
),
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export function getTerminalConfigurationRequestFromJSON(
|
|
153
|
+
jsonString: string,
|
|
154
|
+
): SafeParseResult<GetTerminalConfigurationRequest, SDKValidationError> {
|
|
155
|
+
return safeParse(
|
|
156
|
+
jsonString,
|
|
157
|
+
(x) => GetTerminalConfigurationRequest$inboundSchema.parse(JSON.parse(x)),
|
|
158
|
+
`Failed to parse 'GetTerminalConfigurationRequest' from JSON`,
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/** @internal */
|
|
163
|
+
export const GetTerminalConfigurationResponse$inboundSchema: z.ZodType<
|
|
164
|
+
GetTerminalConfigurationResponse,
|
|
165
|
+
z.ZodTypeDef,
|
|
166
|
+
unknown
|
|
167
|
+
> = z.object({
|
|
168
|
+
Headers: z.record(z.array(z.string())),
|
|
169
|
+
Result: components.TerminalConfiguration$inboundSchema,
|
|
170
|
+
}).transform((v) => {
|
|
171
|
+
return remap$(v, {
|
|
172
|
+
"Headers": "headers",
|
|
173
|
+
"Result": "result",
|
|
174
|
+
});
|
|
175
|
+
});
|
|
176
|
+
|
|
177
|
+
/** @internal */
|
|
178
|
+
export type GetTerminalConfigurationResponse$Outbound = {
|
|
179
|
+
Headers: { [k: string]: Array<string> };
|
|
180
|
+
Result: components.TerminalConfiguration$Outbound;
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
/** @internal */
|
|
184
|
+
export const GetTerminalConfigurationResponse$outboundSchema: z.ZodType<
|
|
185
|
+
GetTerminalConfigurationResponse$Outbound,
|
|
186
|
+
z.ZodTypeDef,
|
|
187
|
+
GetTerminalConfigurationResponse
|
|
188
|
+
> = z.object({
|
|
189
|
+
headers: z.record(z.array(z.string())),
|
|
190
|
+
result: components.TerminalConfiguration$outboundSchema,
|
|
191
|
+
}).transform((v) => {
|
|
192
|
+
return remap$(v, {
|
|
193
|
+
headers: "Headers",
|
|
194
|
+
result: "Result",
|
|
195
|
+
});
|
|
196
|
+
});
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* @internal
|
|
200
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
201
|
+
*/
|
|
202
|
+
export namespace GetTerminalConfigurationResponse$ {
|
|
203
|
+
/** @deprecated use `GetTerminalConfigurationResponse$inboundSchema` instead. */
|
|
204
|
+
export const inboundSchema = GetTerminalConfigurationResponse$inboundSchema;
|
|
205
|
+
/** @deprecated use `GetTerminalConfigurationResponse$outboundSchema` instead. */
|
|
206
|
+
export const outboundSchema = GetTerminalConfigurationResponse$outboundSchema;
|
|
207
|
+
/** @deprecated use `GetTerminalConfigurationResponse$Outbound` instead. */
|
|
208
|
+
export type Outbound = GetTerminalConfigurationResponse$Outbound;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export function getTerminalConfigurationResponseToJSON(
|
|
212
|
+
getTerminalConfigurationResponse: GetTerminalConfigurationResponse,
|
|
213
|
+
): string {
|
|
214
|
+
return JSON.stringify(
|
|
215
|
+
GetTerminalConfigurationResponse$outboundSchema.parse(
|
|
216
|
+
getTerminalConfigurationResponse,
|
|
217
|
+
),
|
|
218
|
+
);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export function getTerminalConfigurationResponseFromJSON(
|
|
222
|
+
jsonString: string,
|
|
223
|
+
): SafeParseResult<GetTerminalConfigurationResponse, SDKValidationError> {
|
|
224
|
+
return safeParse(
|
|
225
|
+
jsonString,
|
|
226
|
+
(x) => GetTerminalConfigurationResponse$inboundSchema.parse(JSON.parse(x)),
|
|
227
|
+
`Failed to parse 'GetTerminalConfigurationResponse' from JSON`,
|
|
228
|
+
);
|
|
229
|
+
}
|
|
@@ -65,6 +65,7 @@ export * from "./getschedules.js";
|
|
|
65
65
|
export * from "./getsweep.js";
|
|
66
66
|
export * from "./getsweepconfig.js";
|
|
67
67
|
export * from "./getterminalapplication.js";
|
|
68
|
+
export * from "./getterminalconfiguration.js";
|
|
68
69
|
export * from "./gettermsofservicetoken.js";
|
|
69
70
|
export * from "./gettransfer.js";
|
|
70
71
|
export * from "./getunderwriting.js";
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -31,6 +31,7 @@ import { Representatives } from "./representatives.js";
|
|
|
31
31
|
import { Scheduling } from "./scheduling.js";
|
|
32
32
|
import { Sweeps } from "./sweeps.js";
|
|
33
33
|
import { TerminalApplications } from "./terminalapplications.js";
|
|
34
|
+
import { TerminalConfigurations } from "./terminalconfigurations.js";
|
|
34
35
|
import { Transfers } from "./transfers.js";
|
|
35
36
|
import { Underwriting } from "./underwriting.js";
|
|
36
37
|
import { Wallets } from "./wallets.js";
|
|
@@ -112,6 +113,13 @@ export class Moov extends ClientSDK {
|
|
|
112
113
|
return (this._sweeps ??= new Sweeps(this._options));
|
|
113
114
|
}
|
|
114
115
|
|
|
116
|
+
private _terminalConfigurations?: TerminalConfigurations;
|
|
117
|
+
get terminalConfigurations(): TerminalConfigurations {
|
|
118
|
+
return (this._terminalConfigurations ??= new TerminalConfigurations(
|
|
119
|
+
this._options,
|
|
120
|
+
));
|
|
121
|
+
}
|
|
122
|
+
|
|
115
123
|
private _transfers?: Transfers;
|
|
116
124
|
get transfers(): Transfers {
|
|
117
125
|
return (this._transfers ??= new Transfers(this._options));
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { terminalConfigurationsGet } from "../funcs/terminalConfigurationsGet.js";
|
|
6
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
|
+
import * as operations from "../models/operations/index.js";
|
|
8
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
9
|
+
|
|
10
|
+
export class TerminalConfigurations extends ClientSDK {
|
|
11
|
+
/**
|
|
12
|
+
* Fetch the configuration for a given Terminal Application
|
|
13
|
+
*
|
|
14
|
+
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
15
|
+
* you'll need to specify the `/accounts/{accountID}/terminal-configuration.read` scope.
|
|
16
|
+
*/
|
|
17
|
+
async get(
|
|
18
|
+
request: operations.GetTerminalConfigurationRequest,
|
|
19
|
+
options?: RequestOptions,
|
|
20
|
+
): Promise<operations.GetTerminalConfigurationResponse> {
|
|
21
|
+
return unwrapAsync(terminalConfigurationsGet(
|
|
22
|
+
this,
|
|
23
|
+
request,
|
|
24
|
+
options,
|
|
25
|
+
));
|
|
26
|
+
}
|
|
27
|
+
}
|