@moovio/sdk 0.10.12 → 0.10.14
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
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.
|
|
72
|
+
sdkVersion: "0.10.14",
|
|
73
73
|
genVersion: "2.585.2",
|
|
74
|
-
userAgent: "speakeasy-sdk/typescript 0.10.
|
|
74
|
+
userAgent: "speakeasy-sdk/typescript 0.10.14 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.14",
|
|
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
|
+
}
|
|
@@ -0,0 +1,238 @@
|
|
|
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 GetAccountTerminalApplicationGlobals = {
|
|
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 GetAccountTerminalApplicationRequest = {
|
|
30
|
+
accountID: string;
|
|
31
|
+
terminalApplicationID: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export type GetAccountTerminalApplicationResponse = {
|
|
35
|
+
headers: { [k: string]: Array<string> };
|
|
36
|
+
result: components.TerminalApplication;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const GetAccountTerminalApplicationGlobals$inboundSchema: z.ZodType<
|
|
41
|
+
GetAccountTerminalApplicationGlobals,
|
|
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 GetAccountTerminalApplicationGlobals$Outbound = {
|
|
54
|
+
"x-moov-version": string;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const GetAccountTerminalApplicationGlobals$outboundSchema: z.ZodType<
|
|
59
|
+
GetAccountTerminalApplicationGlobals$Outbound,
|
|
60
|
+
z.ZodTypeDef,
|
|
61
|
+
GetAccountTerminalApplicationGlobals
|
|
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 GetAccountTerminalApplicationGlobals$ {
|
|
75
|
+
/** @deprecated use `GetAccountTerminalApplicationGlobals$inboundSchema` instead. */
|
|
76
|
+
export const inboundSchema =
|
|
77
|
+
GetAccountTerminalApplicationGlobals$inboundSchema;
|
|
78
|
+
/** @deprecated use `GetAccountTerminalApplicationGlobals$outboundSchema` instead. */
|
|
79
|
+
export const outboundSchema =
|
|
80
|
+
GetAccountTerminalApplicationGlobals$outboundSchema;
|
|
81
|
+
/** @deprecated use `GetAccountTerminalApplicationGlobals$Outbound` instead. */
|
|
82
|
+
export type Outbound = GetAccountTerminalApplicationGlobals$Outbound;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function getAccountTerminalApplicationGlobalsToJSON(
|
|
86
|
+
getAccountTerminalApplicationGlobals: GetAccountTerminalApplicationGlobals,
|
|
87
|
+
): string {
|
|
88
|
+
return JSON.stringify(
|
|
89
|
+
GetAccountTerminalApplicationGlobals$outboundSchema.parse(
|
|
90
|
+
getAccountTerminalApplicationGlobals,
|
|
91
|
+
),
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function getAccountTerminalApplicationGlobalsFromJSON(
|
|
96
|
+
jsonString: string,
|
|
97
|
+
): SafeParseResult<GetAccountTerminalApplicationGlobals, SDKValidationError> {
|
|
98
|
+
return safeParse(
|
|
99
|
+
jsonString,
|
|
100
|
+
(x) =>
|
|
101
|
+
GetAccountTerminalApplicationGlobals$inboundSchema.parse(JSON.parse(x)),
|
|
102
|
+
`Failed to parse 'GetAccountTerminalApplicationGlobals' from JSON`,
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/** @internal */
|
|
107
|
+
export const GetAccountTerminalApplicationRequest$inboundSchema: z.ZodType<
|
|
108
|
+
GetAccountTerminalApplicationRequest,
|
|
109
|
+
z.ZodTypeDef,
|
|
110
|
+
unknown
|
|
111
|
+
> = z.object({
|
|
112
|
+
accountID: z.string(),
|
|
113
|
+
terminalApplicationID: z.string(),
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
/** @internal */
|
|
117
|
+
export type GetAccountTerminalApplicationRequest$Outbound = {
|
|
118
|
+
accountID: string;
|
|
119
|
+
terminalApplicationID: string;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
/** @internal */
|
|
123
|
+
export const GetAccountTerminalApplicationRequest$outboundSchema: z.ZodType<
|
|
124
|
+
GetAccountTerminalApplicationRequest$Outbound,
|
|
125
|
+
z.ZodTypeDef,
|
|
126
|
+
GetAccountTerminalApplicationRequest
|
|
127
|
+
> = z.object({
|
|
128
|
+
accountID: z.string(),
|
|
129
|
+
terminalApplicationID: z.string(),
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* @internal
|
|
134
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
135
|
+
*/
|
|
136
|
+
export namespace GetAccountTerminalApplicationRequest$ {
|
|
137
|
+
/** @deprecated use `GetAccountTerminalApplicationRequest$inboundSchema` instead. */
|
|
138
|
+
export const inboundSchema =
|
|
139
|
+
GetAccountTerminalApplicationRequest$inboundSchema;
|
|
140
|
+
/** @deprecated use `GetAccountTerminalApplicationRequest$outboundSchema` instead. */
|
|
141
|
+
export const outboundSchema =
|
|
142
|
+
GetAccountTerminalApplicationRequest$outboundSchema;
|
|
143
|
+
/** @deprecated use `GetAccountTerminalApplicationRequest$Outbound` instead. */
|
|
144
|
+
export type Outbound = GetAccountTerminalApplicationRequest$Outbound;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export function getAccountTerminalApplicationRequestToJSON(
|
|
148
|
+
getAccountTerminalApplicationRequest: GetAccountTerminalApplicationRequest,
|
|
149
|
+
): string {
|
|
150
|
+
return JSON.stringify(
|
|
151
|
+
GetAccountTerminalApplicationRequest$outboundSchema.parse(
|
|
152
|
+
getAccountTerminalApplicationRequest,
|
|
153
|
+
),
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export function getAccountTerminalApplicationRequestFromJSON(
|
|
158
|
+
jsonString: string,
|
|
159
|
+
): SafeParseResult<GetAccountTerminalApplicationRequest, SDKValidationError> {
|
|
160
|
+
return safeParse(
|
|
161
|
+
jsonString,
|
|
162
|
+
(x) =>
|
|
163
|
+
GetAccountTerminalApplicationRequest$inboundSchema.parse(JSON.parse(x)),
|
|
164
|
+
`Failed to parse 'GetAccountTerminalApplicationRequest' from JSON`,
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/** @internal */
|
|
169
|
+
export const GetAccountTerminalApplicationResponse$inboundSchema: z.ZodType<
|
|
170
|
+
GetAccountTerminalApplicationResponse,
|
|
171
|
+
z.ZodTypeDef,
|
|
172
|
+
unknown
|
|
173
|
+
> = z.object({
|
|
174
|
+
Headers: z.record(z.array(z.string())),
|
|
175
|
+
Result: components.TerminalApplication$inboundSchema,
|
|
176
|
+
}).transform((v) => {
|
|
177
|
+
return remap$(v, {
|
|
178
|
+
"Headers": "headers",
|
|
179
|
+
"Result": "result",
|
|
180
|
+
});
|
|
181
|
+
});
|
|
182
|
+
|
|
183
|
+
/** @internal */
|
|
184
|
+
export type GetAccountTerminalApplicationResponse$Outbound = {
|
|
185
|
+
Headers: { [k: string]: Array<string> };
|
|
186
|
+
Result: components.TerminalApplication$Outbound;
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
/** @internal */
|
|
190
|
+
export const GetAccountTerminalApplicationResponse$outboundSchema: z.ZodType<
|
|
191
|
+
GetAccountTerminalApplicationResponse$Outbound,
|
|
192
|
+
z.ZodTypeDef,
|
|
193
|
+
GetAccountTerminalApplicationResponse
|
|
194
|
+
> = z.object({
|
|
195
|
+
headers: z.record(z.array(z.string())),
|
|
196
|
+
result: components.TerminalApplication$outboundSchema,
|
|
197
|
+
}).transform((v) => {
|
|
198
|
+
return remap$(v, {
|
|
199
|
+
headers: "Headers",
|
|
200
|
+
result: "Result",
|
|
201
|
+
});
|
|
202
|
+
});
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* @internal
|
|
206
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
207
|
+
*/
|
|
208
|
+
export namespace GetAccountTerminalApplicationResponse$ {
|
|
209
|
+
/** @deprecated use `GetAccountTerminalApplicationResponse$inboundSchema` instead. */
|
|
210
|
+
export const inboundSchema =
|
|
211
|
+
GetAccountTerminalApplicationResponse$inboundSchema;
|
|
212
|
+
/** @deprecated use `GetAccountTerminalApplicationResponse$outboundSchema` instead. */
|
|
213
|
+
export const outboundSchema =
|
|
214
|
+
GetAccountTerminalApplicationResponse$outboundSchema;
|
|
215
|
+
/** @deprecated use `GetAccountTerminalApplicationResponse$Outbound` instead. */
|
|
216
|
+
export type Outbound = GetAccountTerminalApplicationResponse$Outbound;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export function getAccountTerminalApplicationResponseToJSON(
|
|
220
|
+
getAccountTerminalApplicationResponse: GetAccountTerminalApplicationResponse,
|
|
221
|
+
): string {
|
|
222
|
+
return JSON.stringify(
|
|
223
|
+
GetAccountTerminalApplicationResponse$outboundSchema.parse(
|
|
224
|
+
getAccountTerminalApplicationResponse,
|
|
225
|
+
),
|
|
226
|
+
);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export function getAccountTerminalApplicationResponseFromJSON(
|
|
230
|
+
jsonString: string,
|
|
231
|
+
): SafeParseResult<GetAccountTerminalApplicationResponse, SDKValidationError> {
|
|
232
|
+
return safeParse(
|
|
233
|
+
jsonString,
|
|
234
|
+
(x) =>
|
|
235
|
+
GetAccountTerminalApplicationResponse$inboundSchema.parse(JSON.parse(x)),
|
|
236
|
+
`Failed to parse 'GetAccountTerminalApplicationResponse' from JSON`,
|
|
237
|
+
);
|
|
238
|
+
}
|
|
@@ -34,6 +34,7 @@ export * from "./disconnectaccount.js";
|
|
|
34
34
|
export * from "./generateendtoendkey.js";
|
|
35
35
|
export * from "./getaccount.js";
|
|
36
36
|
export * from "./getaccountcountries.js";
|
|
37
|
+
export * from "./getaccountterminalapplication.js";
|
|
37
38
|
export * from "./getadjustment.js";
|
|
38
39
|
export * from "./getapplepaymerchantdomains.js";
|
|
39
40
|
export * from "./getavatar.js";
|
|
@@ -74,10 +75,12 @@ export * from "./getwallettransaction.js";
|
|
|
74
75
|
export * from "./initiatebankaccountverification.js";
|
|
75
76
|
export * from "./initiatemicrodeposits.js";
|
|
76
77
|
export * from "./initiaterefund.js";
|
|
78
|
+
export * from "./linkaccountterminalapplication.js";
|
|
77
79
|
export * from "./linkapplepaytoken.js";
|
|
78
80
|
export * from "./linkbankaccount.js";
|
|
79
81
|
export * from "./linkcard.js";
|
|
80
82
|
export * from "./listaccounts.js";
|
|
83
|
+
export * from "./listaccountterminalapplications.js";
|
|
81
84
|
export * from "./listadjustments.js";
|
|
82
85
|
export * from "./listbankaccounts.js";
|
|
83
86
|
export * from "./listcapabilities.js";
|