@moovio/sdk 0.10.11 → 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 +1582 -1001
- package/bin/mcp-server.js.map +32 -21
- 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 +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 +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/createtransfer.d.ts +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/initiaterefund.d.ts +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 +3 -3
- 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 +3 -3
- 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/createtransfer.ts +1 -1
- package/src/models/operations/getaccountterminalapplication.ts +238 -0
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/initiaterefund.ts +1 -1
- 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
|
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
|
|
|
28
28
|
* Delete a specific terminal application.
|
|
29
29
|
*
|
|
30
30
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
31
|
-
* you'll need to specify the `/
|
|
31
|
+
* you'll need to specify the `/terminal-applications.write` scope.
|
|
32
32
|
*/
|
|
33
33
|
export function terminalApplicationsDelete(
|
|
34
34
|
client: MoovCore,
|
|
@@ -27,7 +27,7 @@ import { Result } from "../types/fp.js";
|
|
|
27
27
|
* Fetch a specific terminal application.
|
|
28
28
|
*
|
|
29
29
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
30
|
-
* you'll need to specify the `/
|
|
30
|
+
* you'll need to specify the `/terminal-applications.read` scope.
|
|
31
31
|
*/
|
|
32
32
|
export function terminalApplicationsGet(
|
|
33
33
|
client: MoovCore,
|
|
@@ -26,7 +26,7 @@ import { Result } from "../types/fp.js";
|
|
|
26
26
|
* List all the terminal applications for a Moov Account.
|
|
27
27
|
*
|
|
28
28
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
29
|
-
* you'll need to specify the `/
|
|
29
|
+
* you'll need to specify the `/terminal-applications.read` scope.
|
|
30
30
|
*/
|
|
31
31
|
export function terminalApplicationsList(
|
|
32
32
|
client: MoovCore,
|
package/src/lib/config.ts
CHANGED
|
@@ -69,7 +69,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
69
69
|
export const SDK_METADATA = {
|
|
70
70
|
language: "typescript",
|
|
71
71
|
openapiDocVersion: "latest",
|
|
72
|
-
sdkVersion: "0.10.
|
|
73
|
-
genVersion: "2.
|
|
74
|
-
userAgent: "speakeasy-sdk/typescript 0.10.
|
|
72
|
+
sdkVersion: "0.10.13",
|
|
73
|
+
genVersion: "2.585.2",
|
|
74
|
+
userAgent: "speakeasy-sdk/typescript 0.10.13 2.585.2 latest @moovio/sdk",
|
|
75
75
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -22,6 +22,10 @@ import { tool$accountsGetMerchantProcessingAgreement } from "./tools/accountsGet
|
|
|
22
22
|
import { tool$accountsGetTermsOfServiceToken } from "./tools/accountsGetTermsOfServiceToken.js";
|
|
23
23
|
import { tool$accountsList } from "./tools/accountsList.js";
|
|
24
24
|
import { tool$accountsUpdate } from "./tools/accountsUpdate.js";
|
|
25
|
+
import { tool$accountTerminalApplicationsGet } from "./tools/accountTerminalApplicationsGet.js";
|
|
26
|
+
import { tool$accountTerminalApplicationsGetConfiguration } from "./tools/accountTerminalApplicationsGetConfiguration.js";
|
|
27
|
+
import { tool$accountTerminalApplicationsLink } from "./tools/accountTerminalApplicationsLink.js";
|
|
28
|
+
import { tool$accountTerminalApplicationsList } from "./tools/accountTerminalApplicationsList.js";
|
|
25
29
|
import { tool$adjustmentsGet } from "./tools/adjustmentsGet.js";
|
|
26
30
|
import { tool$adjustmentsList } from "./tools/adjustmentsList.js";
|
|
27
31
|
import { tool$applePayCreateSession } from "./tools/applePayCreateSession.js";
|
|
@@ -127,7 +131,6 @@ import { tool$terminalApplicationsCreate } from "./tools/terminalApplicationsCre
|
|
|
127
131
|
import { tool$terminalApplicationsDelete } from "./tools/terminalApplicationsDelete.js";
|
|
128
132
|
import { tool$terminalApplicationsGet } from "./tools/terminalApplicationsGet.js";
|
|
129
133
|
import { tool$terminalApplicationsList } from "./tools/terminalApplicationsList.js";
|
|
130
|
-
import { tool$terminalConfigurationsGet } from "./tools/terminalConfigurationsGet.js";
|
|
131
134
|
import { tool$transfersCreate } from "./tools/transfersCreate.js";
|
|
132
135
|
import { tool$transfersCreateCancellation } from "./tools/transfersCreateCancellation.js";
|
|
133
136
|
import { tool$transfersCreateReversal } from "./tools/transfersCreateReversal.js";
|
|
@@ -157,7 +160,7 @@ export function createMCPServer(deps: {
|
|
|
157
160
|
}) {
|
|
158
161
|
const server = new McpServer({
|
|
159
162
|
name: "Moov",
|
|
160
|
-
version: "0.10.
|
|
163
|
+
version: "0.10.13",
|
|
161
164
|
});
|
|
162
165
|
|
|
163
166
|
const client = new MoovCore({
|
|
@@ -272,7 +275,10 @@ export function createMCPServer(deps: {
|
|
|
272
275
|
tool(tool$sweepsUpdateConfig);
|
|
273
276
|
tool(tool$sweepsList);
|
|
274
277
|
tool(tool$sweepsGet);
|
|
275
|
-
tool(tool$
|
|
278
|
+
tool(tool$accountTerminalApplicationsLink);
|
|
279
|
+
tool(tool$accountTerminalApplicationsList);
|
|
280
|
+
tool(tool$accountTerminalApplicationsGet);
|
|
281
|
+
tool(tool$accountTerminalApplicationsGetConfiguration);
|
|
276
282
|
tool(tool$transfersCreate);
|
|
277
283
|
tool(tool$transfersList);
|
|
278
284
|
tool(tool$transfersGet);
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { accountTerminalApplicationsGet } from "../../funcs/accountTerminalApplicationsGet.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.GetAccountTerminalApplicationRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$accountTerminalApplicationsGet: ToolDefinition<typeof args> =
|
|
14
|
+
{
|
|
15
|
+
name: "account-terminal-applications-get",
|
|
16
|
+
description:
|
|
17
|
+
`Verifies if a specific Terminal Application is linked to an Account. This endpoint acts as a validation check for the link's existence.
|
|
18
|
+
|
|
19
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
20
|
+
you'll need to specify the \`/accounts/{accountID}/terminal-applications.read\` scope.`,
|
|
21
|
+
args,
|
|
22
|
+
tool: async (client, args, ctx) => {
|
|
23
|
+
const [result, apiCall] = await accountTerminalApplicationsGet(
|
|
24
|
+
client,
|
|
25
|
+
args.request,
|
|
26
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
27
|
+
).$inspect();
|
|
28
|
+
|
|
29
|
+
if (!result.ok) {
|
|
30
|
+
return {
|
|
31
|
+
content: [{ type: "text", text: result.error.message }],
|
|
32
|
+
isError: true,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const value = result.value.result;
|
|
37
|
+
|
|
38
|
+
return formatResult(value, apiCall);
|
|
39
|
+
},
|
|
40
|
+
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { accountTerminalApplicationsGetConfiguration } from "../../funcs/accountTerminalApplicationsGetConfiguration.js";
|
|
6
6
|
import * as operations from "../../models/operations/index.js";
|
|
7
7
|
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
8
|
|
|
@@ -10,15 +10,18 @@ const args = {
|
|
|
10
10
|
request: operations.GetTerminalConfigurationRequest$inboundSchema,
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
-
export const tool$
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
export const tool$accountTerminalApplicationsGetConfiguration: ToolDefinition<
|
|
14
|
+
typeof args
|
|
15
|
+
> = {
|
|
16
|
+
name: "account-terminal-applications-get-configuration",
|
|
17
|
+
description:
|
|
18
|
+
`Fetch the configuration for a given Terminal Application linked to a specific Account.
|
|
16
19
|
|
|
17
20
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
18
21
|
you'll need to specify the \`/accounts/{accountID}/terminal-configuration.read\` scope.`,
|
|
19
22
|
args,
|
|
20
23
|
tool: async (client, args, ctx) => {
|
|
21
|
-
const [result, apiCall] = await
|
|
24
|
+
const [result, apiCall] = await accountTerminalApplicationsGetConfiguration(
|
|
22
25
|
client,
|
|
23
26
|
args.request,
|
|
24
27
|
{ fetchOptions: { signal: ctx.signal } },
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { accountTerminalApplicationsLink } from "../../funcs/accountTerminalApplicationsLink.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.LinkAccountTerminalApplicationRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$accountTerminalApplicationsLink: ToolDefinition<typeof args> =
|
|
14
|
+
{
|
|
15
|
+
name: "account-terminal-applications-link",
|
|
16
|
+
description: `Link an account with a terminal application.
|
|
17
|
+
|
|
18
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
19
|
+
you'll need to specify the \`/accounts/{accountID}/terminal-applications.write\` scope.`,
|
|
20
|
+
args,
|
|
21
|
+
tool: async (client, args, ctx) => {
|
|
22
|
+
const [result, apiCall] = await accountTerminalApplicationsLink(
|
|
23
|
+
client,
|
|
24
|
+
args.request,
|
|
25
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
26
|
+
).$inspect();
|
|
27
|
+
|
|
28
|
+
if (!result.ok) {
|
|
29
|
+
return {
|
|
30
|
+
content: [{ type: "text", text: result.error.message }],
|
|
31
|
+
isError: true,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const value = result.value.result;
|
|
36
|
+
|
|
37
|
+
return formatResult(value, apiCall);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { accountTerminalApplicationsList } from "../../funcs/accountTerminalApplicationsList.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.ListAccountTerminalApplicationsRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$accountTerminalApplicationsList: ToolDefinition<typeof args> =
|
|
14
|
+
{
|
|
15
|
+
name: "account-terminal-applications-list",
|
|
16
|
+
description:
|
|
17
|
+
`Retrieve all terminal applications linked to a specific account.
|
|
18
|
+
|
|
19
|
+
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
20
|
+
you'll need to specify the \`/accounts/{accountID}/terminal-applications.read\` scope.`,
|
|
21
|
+
args,
|
|
22
|
+
tool: async (client, args, ctx) => {
|
|
23
|
+
const [result, apiCall] = await accountTerminalApplicationsList(
|
|
24
|
+
client,
|
|
25
|
+
args.request,
|
|
26
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
27
|
+
).$inspect();
|
|
28
|
+
|
|
29
|
+
if (!result.ok) {
|
|
30
|
+
return {
|
|
31
|
+
content: [{ type: "text", text: result.error.message }],
|
|
32
|
+
isError: true,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const value = result.value.result;
|
|
37
|
+
|
|
38
|
+
return formatResult(value, apiCall);
|
|
39
|
+
},
|
|
40
|
+
};
|
|
@@ -15,7 +15,7 @@ export const tool$terminalApplicationsCreate: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `Create a new terminal application.
|
|
16
16
|
|
|
17
17
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
18
|
-
you'll need to specify the \`/
|
|
18
|
+
you'll need to specify the \`/terminal-applications.write\` scope.`,
|
|
19
19
|
args,
|
|
20
20
|
tool: async (client, args, ctx) => {
|
|
21
21
|
const [result, apiCall] = await terminalApplicationsCreate(
|
|
@@ -15,7 +15,7 @@ export const tool$terminalApplicationsDelete: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `Delete a specific terminal application.
|
|
16
16
|
|
|
17
17
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
18
|
-
you'll need to specify the \`/
|
|
18
|
+
you'll need to specify the \`/terminal-applications.write\` scope.`,
|
|
19
19
|
args,
|
|
20
20
|
tool: async (client, args, ctx) => {
|
|
21
21
|
const [result, apiCall] = await terminalApplicationsDelete(
|
|
@@ -15,7 +15,7 @@ export const tool$terminalApplicationsGet: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `Fetch a specific terminal application.
|
|
16
16
|
|
|
17
17
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
18
|
-
you'll need to specify the \`/
|
|
18
|
+
you'll need to specify the \`/terminal-applications.read\` scope.`,
|
|
19
19
|
args,
|
|
20
20
|
tool: async (client, args, ctx) => {
|
|
21
21
|
const [result, apiCall] = await terminalApplicationsGet(
|
|
@@ -15,7 +15,7 @@ export const tool$terminalApplicationsList: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `List all the terminal applications for a Moov Account.
|
|
16
16
|
|
|
17
17
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
18
|
-
you'll need to specify the \`/
|
|
18
|
+
you'll need to specify the \`/terminal-applications.read\` scope.`,
|
|
19
19
|
args,
|
|
20
20
|
tool: async (client, args, ctx) => {
|
|
21
21
|
const [result, apiCall] = await terminalApplicationsList(
|
|
@@ -210,6 +210,7 @@ export * from "./issuingmerchantdata.js";
|
|
|
210
210
|
export * from "./issuingvelocitylimit.js";
|
|
211
211
|
export * from "./issuingvelocitylimiterror.js";
|
|
212
212
|
export * from "./jsonwebkey.js";
|
|
213
|
+
export * from "./linkaccountterminalapplication.js";
|
|
213
214
|
export * from "./linkapplepay.js";
|
|
214
215
|
export * from "./linkapplepaymentdata.js";
|
|
215
216
|
export * from "./linkapplepaymentmethod.js";
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Describes a request to link an account with a terminal application.
|
|
12
|
+
*/
|
|
13
|
+
export type LinkAccountTerminalApplication = {
|
|
14
|
+
/**
|
|
15
|
+
* ID of the terminal application.
|
|
16
|
+
*/
|
|
17
|
+
terminalApplicationID: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const LinkAccountTerminalApplication$inboundSchema: z.ZodType<
|
|
22
|
+
LinkAccountTerminalApplication,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
terminalApplicationID: z.string(),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type LinkAccountTerminalApplication$Outbound = {
|
|
31
|
+
terminalApplicationID: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const LinkAccountTerminalApplication$outboundSchema: z.ZodType<
|
|
36
|
+
LinkAccountTerminalApplication$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
LinkAccountTerminalApplication
|
|
39
|
+
> = z.object({
|
|
40
|
+
terminalApplicationID: z.string(),
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
|
+
*/
|
|
47
|
+
export namespace LinkAccountTerminalApplication$ {
|
|
48
|
+
/** @deprecated use `LinkAccountTerminalApplication$inboundSchema` instead. */
|
|
49
|
+
export const inboundSchema = LinkAccountTerminalApplication$inboundSchema;
|
|
50
|
+
/** @deprecated use `LinkAccountTerminalApplication$outboundSchema` instead. */
|
|
51
|
+
export const outboundSchema = LinkAccountTerminalApplication$outboundSchema;
|
|
52
|
+
/** @deprecated use `LinkAccountTerminalApplication$Outbound` instead. */
|
|
53
|
+
export type Outbound = LinkAccountTerminalApplication$Outbound;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function linkAccountTerminalApplicationToJSON(
|
|
57
|
+
linkAccountTerminalApplication: LinkAccountTerminalApplication,
|
|
58
|
+
): string {
|
|
59
|
+
return JSON.stringify(
|
|
60
|
+
LinkAccountTerminalApplication$outboundSchema.parse(
|
|
61
|
+
linkAccountTerminalApplication,
|
|
62
|
+
),
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function linkAccountTerminalApplicationFromJSON(
|
|
67
|
+
jsonString: string,
|
|
68
|
+
): SafeParseResult<LinkAccountTerminalApplication, SDKValidationError> {
|
|
69
|
+
return safeParse(
|
|
70
|
+
jsonString,
|
|
71
|
+
(x) => LinkAccountTerminalApplication$inboundSchema.parse(JSON.parse(x)),
|
|
72
|
+
`Failed to parse 'LinkAccountTerminalApplication' from JSON`,
|
|
73
|
+
);
|
|
74
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
|
|
7
|
+
export type AccountTerminalApplicationErrorData = {
|
|
8
|
+
terminalApplicationID?: string | undefined;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export class AccountTerminalApplicationError extends Error {
|
|
12
|
+
terminalApplicationID?: string | undefined;
|
|
13
|
+
|
|
14
|
+
/** The original data that was passed to this error instance. */
|
|
15
|
+
data$: AccountTerminalApplicationErrorData;
|
|
16
|
+
|
|
17
|
+
constructor(err: AccountTerminalApplicationErrorData) {
|
|
18
|
+
const message = "message" in err && typeof err.message === "string"
|
|
19
|
+
? err.message
|
|
20
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
21
|
+
super(message);
|
|
22
|
+
this.data$ = err;
|
|
23
|
+
|
|
24
|
+
if (err.terminalApplicationID != null) {
|
|
25
|
+
this.terminalApplicationID = err.terminalApplicationID;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
this.name = "AccountTerminalApplicationError";
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const AccountTerminalApplicationError$inboundSchema: z.ZodType<
|
|
34
|
+
AccountTerminalApplicationError,
|
|
35
|
+
z.ZodTypeDef,
|
|
36
|
+
unknown
|
|
37
|
+
> = z.object({
|
|
38
|
+
terminalApplicationID: z.string().optional(),
|
|
39
|
+
})
|
|
40
|
+
.transform((v) => {
|
|
41
|
+
return new AccountTerminalApplicationError(v);
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export type AccountTerminalApplicationError$Outbound = {
|
|
46
|
+
terminalApplicationID?: string | undefined;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const AccountTerminalApplicationError$outboundSchema: z.ZodType<
|
|
51
|
+
AccountTerminalApplicationError$Outbound,
|
|
52
|
+
z.ZodTypeDef,
|
|
53
|
+
AccountTerminalApplicationError
|
|
54
|
+
> = z.instanceof(AccountTerminalApplicationError)
|
|
55
|
+
.transform(v => v.data$)
|
|
56
|
+
.pipe(z.object({
|
|
57
|
+
terminalApplicationID: z.string().optional(),
|
|
58
|
+
}));
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @internal
|
|
62
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
63
|
+
*/
|
|
64
|
+
export namespace AccountTerminalApplicationError$ {
|
|
65
|
+
/** @deprecated use `AccountTerminalApplicationError$inboundSchema` instead. */
|
|
66
|
+
export const inboundSchema = AccountTerminalApplicationError$inboundSchema;
|
|
67
|
+
/** @deprecated use `AccountTerminalApplicationError$outboundSchema` instead. */
|
|
68
|
+
export const outboundSchema = AccountTerminalApplicationError$outboundSchema;
|
|
69
|
+
/** @deprecated use `AccountTerminalApplicationError$Outbound` instead. */
|
|
70
|
+
export type Outbound = AccountTerminalApplicationError$Outbound;
|
|
71
|
+
}
|
|
@@ -35,7 +35,7 @@ export type CreateTransferRequest = {
|
|
|
35
35
|
* Optional header that indicates whether to return a synchronous response that includes full transfer and rail-specific details or an
|
|
36
36
|
*
|
|
37
37
|
* @remarks
|
|
38
|
-
* asynchronous response indicating the transfer was created (this is the default response if the header is omitted).
|
|
38
|
+
* asynchronous response indicating the transfer was created (this is the default response if the header is omitted). A timeout will occur after 15 seconds.
|
|
39
39
|
*/
|
|
40
40
|
xWaitFor?: components.TransferWaitFor | undefined;
|
|
41
41
|
/**
|