@moovio/sdk 0.22.12 → 0.22.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 +91 -51
- package/bin/mcp-server.js +2514 -615
- package/bin/mcp-server.js.map +54 -13
- package/examples/package-lock.json +1 -1
- package/funcs/invoicesCreateInvoicePayment.d.ts +19 -0
- package/funcs/invoicesCreateInvoicePayment.d.ts.map +1 -0
- package/funcs/invoicesCreateInvoicePayment.js +148 -0
- package/funcs/invoicesCreateInvoicePayment.js.map +1 -0
- package/funcs/invoicesListInvoicePayments.d.ts +17 -0
- package/funcs/invoicesListInvoicePayments.d.ts.map +1 -0
- package/funcs/invoicesListInvoicePayments.js +129 -0
- package/funcs/invoicesListInvoicePayments.js.map +1 -0
- package/funcs/webhooksCreate.d.ts +16 -0
- package/funcs/webhooksCreate.d.ts.map +1 -0
- package/funcs/webhooksCreate.js +133 -0
- package/funcs/webhooksCreate.js.map +1 -0
- package/funcs/webhooksDisable.d.ts +15 -0
- package/funcs/webhooksDisable.d.ts.map +1 -0
- package/funcs/webhooksDisable.js +133 -0
- package/funcs/webhooksDisable.js.map +1 -0
- package/funcs/webhooksGet.d.ts +14 -0
- package/funcs/webhooksGet.d.ts.map +1 -0
- package/funcs/webhooksGet.js +122 -0
- package/funcs/webhooksGet.js.map +1 -0
- package/funcs/webhooksGetSecret.d.ts +14 -0
- package/funcs/webhooksGetSecret.d.ts.map +1 -0
- package/funcs/webhooksGetSecret.js +122 -0
- package/funcs/webhooksGetSecret.js.map +1 -0
- package/funcs/webhooksList.d.ts +14 -0
- package/funcs/webhooksList.d.ts.map +1 -0
- package/funcs/webhooksList.js +108 -0
- package/funcs/webhooksList.js.map +1 -0
- package/funcs/webhooksListEventTypes.d.ts +14 -0
- package/funcs/webhooksListEventTypes.d.ts.map +1 -0
- package/funcs/webhooksListEventTypes.js +108 -0
- package/funcs/webhooksListEventTypes.js.map +1 -0
- package/funcs/webhooksPing.d.ts +14 -0
- package/funcs/webhooksPing.d.ts.map +1 -0
- package/funcs/webhooksPing.js +122 -0
- package/funcs/webhooksPing.js.map +1 -0
- package/funcs/webhooksUpdate.d.ts +15 -0
- package/funcs/webhooksUpdate.d.ts.map +1 -0
- package/funcs/webhooksUpdate.js +138 -0
- package/funcs/webhooksUpdate.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 +21 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/invoicesCreateInvoicePayment.d.ts +8 -0
- package/mcp-server/tools/invoicesCreateInvoicePayment.d.ts.map +1 -0
- package/mcp-server/tools/invoicesCreateInvoicePayment.js +66 -0
- package/mcp-server/tools/invoicesCreateInvoicePayment.js.map +1 -0
- package/mcp-server/tools/invoicesListInvoicePayments.d.ts +8 -0
- package/mcp-server/tools/invoicesListInvoicePayments.d.ts.map +1 -0
- package/mcp-server/tools/invoicesListInvoicePayments.js +65 -0
- package/mcp-server/tools/invoicesListInvoicePayments.js.map +1 -0
- package/mcp-server/tools/webhooksCreate.d.ts +8 -0
- package/mcp-server/tools/webhooksCreate.d.ts.map +1 -0
- package/mcp-server/tools/webhooksCreate.js +62 -0
- package/mcp-server/tools/webhooksCreate.js.map +1 -0
- package/mcp-server/tools/webhooksDisable.d.ts +8 -0
- package/mcp-server/tools/webhooksDisable.d.ts.map +1 -0
- package/mcp-server/tools/webhooksDisable.js +61 -0
- package/mcp-server/tools/webhooksDisable.js.map +1 -0
- package/mcp-server/tools/webhooksGet.d.ts +8 -0
- package/mcp-server/tools/webhooksGet.d.ts.map +1 -0
- package/mcp-server/tools/webhooksGet.js +62 -0
- package/mcp-server/tools/webhooksGet.js.map +1 -0
- package/mcp-server/tools/webhooksGetSecret.d.ts +8 -0
- package/mcp-server/tools/webhooksGetSecret.d.ts.map +1 -0
- package/mcp-server/tools/webhooksGetSecret.js +62 -0
- package/mcp-server/tools/webhooksGetSecret.js.map +1 -0
- package/mcp-server/tools/webhooksList.d.ts +8 -0
- package/mcp-server/tools/webhooksList.d.ts.map +1 -0
- package/mcp-server/tools/webhooksList.js +62 -0
- package/mcp-server/tools/webhooksList.js.map +1 -0
- package/mcp-server/tools/webhooksListEventTypes.d.ts +8 -0
- package/mcp-server/tools/webhooksListEventTypes.d.ts.map +1 -0
- package/mcp-server/tools/webhooksListEventTypes.js +62 -0
- package/mcp-server/tools/webhooksListEventTypes.js.map +1 -0
- package/mcp-server/tools/webhooksPing.d.ts +8 -0
- package/mcp-server/tools/webhooksPing.d.ts.map +1 -0
- package/mcp-server/tools/webhooksPing.js +62 -0
- package/mcp-server/tools/webhooksPing.js.map +1 -0
- package/mcp-server/tools/webhooksUpdate.d.ts +8 -0
- package/mcp-server/tools/webhooksUpdate.d.ts.map +1 -0
- package/mcp-server/tools/webhooksUpdate.js +62 -0
- package/mcp-server/tools/webhooksUpdate.js.map +1 -0
- package/models/components/createinvoicepayment.d.ts +21 -0
- package/models/components/createinvoicepayment.d.ts.map +1 -0
- package/models/components/createinvoicepayment.js +63 -0
- package/models/components/createinvoicepayment.js.map +1 -0
- package/models/components/createwebhook.d.ts +40 -0
- package/models/components/createwebhook.d.ts.map +1 -0
- package/models/components/createwebhook.js +66 -0
- package/models/components/createwebhook.js.map +1 -0
- package/models/components/eventtype.d.ts +33 -0
- package/models/components/eventtype.d.ts.map +1 -0
- package/models/components/eventtype.js +62 -0
- package/models/components/eventtype.js.map +1 -0
- package/models/components/index.d.ts +8 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +8 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invoiceexternalpayment.d.ts +0 -11
- package/models/components/invoiceexternalpayment.d.ts.map +1 -1
- package/models/components/invoiceexternalpayment.js +1 -10
- package/models/components/invoiceexternalpayment.js.map +1 -1
- package/models/components/invoicepayment.d.ts +4 -2
- package/models/components/invoicepayment.d.ts.map +1 -1
- package/models/components/invoicepayment.js +4 -2
- package/models/components/invoicepayment.js.map +1 -1
- package/models/components/invoicetransferpayment.d.ts +0 -11
- package/models/components/invoicetransferpayment.d.ts.map +1 -1
- package/models/components/invoicetransferpayment.js +1 -11
- package/models/components/invoicetransferpayment.js.map +1 -1
- package/models/components/pingresponse.d.ts +38 -0
- package/models/components/pingresponse.d.ts.map +1 -0
- package/models/components/pingresponse.js +63 -0
- package/models/components/pingresponse.js.map +1 -0
- package/models/components/updatewebhook.d.ts +40 -0
- package/models/components/updatewebhook.d.ts.map +1 -0
- package/models/components/updatewebhook.js +66 -0
- package/models/components/updatewebhook.js.map +1 -0
- package/models/components/webhook.d.ts +60 -0
- package/models/components/webhook.d.ts.map +1 -0
- package/models/components/webhook.js +74 -0
- package/models/components/webhook.js.map +1 -0
- package/models/components/webhooksecret.d.ts +23 -0
- package/models/components/webhooksecret.d.ts.map +1 -0
- package/models/components/webhooksecret.js +58 -0
- package/models/components/webhooksecret.js.map +1 -0
- package/models/components/webhookstatus.d.ts +18 -0
- package/models/components/webhookstatus.d.ts.map +1 -0
- package/models/components/webhookstatus.js +52 -0
- package/models/components/webhookstatus.js.map +1 -0
- package/models/errors/createinvoicepaymenterror.d.ts +30 -0
- package/models/errors/createinvoicepaymenterror.d.ts.map +1 -0
- package/models/errors/createinvoicepaymenterror.js +83 -0
- package/models/errors/createinvoicepaymenterror.js.map +1 -0
- package/models/errors/createwebhookvalidationerror.d.ts +57 -0
- package/models/errors/createwebhookvalidationerror.d.ts.map +1 -0
- package/models/errors/createwebhookvalidationerror.js +87 -0
- package/models/errors/createwebhookvalidationerror.js.map +1 -0
- package/models/errors/index.d.ts +3 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +3 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/updatewebhookvalidationerror.d.ts +57 -0
- package/models/errors/updatewebhookvalidationerror.d.ts.map +1 -0
- package/models/errors/updatewebhookvalidationerror.js +87 -0
- package/models/errors/updatewebhookvalidationerror.js.map +1 -0
- package/models/operations/createinvoicepayment.d.ts +68 -0
- package/models/operations/createinvoicepayment.d.ts.map +1 -0
- package/models/operations/createinvoicepayment.js +124 -0
- package/models/operations/createinvoicepayment.js.map +1 -0
- package/models/operations/createwebhook.d.ts +51 -0
- package/models/operations/createwebhook.d.ts.map +1 -0
- package/models/operations/createwebhook.js +96 -0
- package/models/operations/createwebhook.js.map +1 -0
- package/models/operations/disablewebhook.d.ts +61 -0
- package/models/operations/disablewebhook.d.ts.map +1 -0
- package/models/operations/disablewebhook.js +107 -0
- package/models/operations/disablewebhook.js.map +1 -0
- package/models/operations/getwebhook.d.ts +64 -0
- package/models/operations/getwebhook.d.ts.map +1 -0
- package/models/operations/getwebhook.js +112 -0
- package/models/operations/getwebhook.js.map +1 -0
- package/models/operations/getwebhooksecret.d.ts +64 -0
- package/models/operations/getwebhooksecret.d.ts.map +1 -0
- package/models/operations/getwebhooksecret.js +112 -0
- package/models/operations/getwebhooksecret.js.map +1 -0
- package/models/operations/index.d.ts +10 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +10 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listeventtypes.d.ts +60 -0
- package/models/operations/listeventtypes.d.ts.map +1 -0
- package/models/operations/listeventtypes.js +108 -0
- package/models/operations/listeventtypes.js.map +1 -0
- package/models/operations/listinvoicepayments.d.ts +66 -0
- package/models/operations/listinvoicepayments.d.ts.map +1 -0
- package/models/operations/listinvoicepayments.js +114 -0
- package/models/operations/listinvoicepayments.js.map +1 -0
- package/models/operations/listwebhooks.d.ts +60 -0
- package/models/operations/listwebhooks.d.ts.map +1 -0
- package/models/operations/listwebhooks.js +108 -0
- package/models/operations/listwebhooks.js.map +1 -0
- package/models/operations/pingwebhook.d.ts +64 -0
- package/models/operations/pingwebhook.d.ts.map +1 -0
- package/models/operations/pingwebhook.js +112 -0
- package/models/operations/pingwebhook.js.map +1 -0
- package/models/operations/updatewebhook.d.ts +66 -0
- package/models/operations/updatewebhook.d.ts.map +1 -0
- package/models/operations/updatewebhook.js +122 -0
- package/models/operations/updatewebhook.js.map +1 -0
- package/package.json +1 -1
- package/sdk/invoices.d.ts +15 -0
- package/sdk/invoices.d.ts.map +1 -1
- package/sdk/invoices.js +21 -0
- package/sdk/invoices.js.map +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/webhooks.d.ts +38 -0
- package/sdk/webhooks.d.ts.map +1 -0
- package/sdk/webhooks.js +68 -0
- package/sdk/webhooks.js.map +1 -0
- package/src/funcs/invoicesCreateInvoicePayment.ts +213 -0
- package/src/funcs/invoicesListInvoicePayments.ts +186 -0
- package/src/funcs/webhooksCreate.ts +194 -0
- package/src/funcs/webhooksDisable.ts +191 -0
- package/src/funcs/webhooksGet.ts +176 -0
- package/src/funcs/webhooksGetSecret.ts +176 -0
- package/src/funcs/webhooksList.ts +156 -0
- package/src/funcs/webhooksListEventTypes.ts +156 -0
- package/src/funcs/webhooksPing.ts +176 -0
- package/src/funcs/webhooksUpdate.ts +200 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +21 -1
- package/src/mcp-server/tools/invoicesCreateInvoicePayment.ts +40 -0
- package/src/mcp-server/tools/invoicesListInvoicePayments.ts +38 -0
- package/src/mcp-server/tools/webhooksCreate.ts +35 -0
- package/src/mcp-server/tools/webhooksDisable.ts +34 -0
- package/src/mcp-server/tools/webhooksGet.ts +35 -0
- package/src/mcp-server/tools/webhooksGetSecret.ts +35 -0
- package/src/mcp-server/tools/webhooksList.ts +35 -0
- package/src/mcp-server/tools/webhooksListEventTypes.ts +35 -0
- package/src/mcp-server/tools/webhooksPing.ts +36 -0
- package/src/mcp-server/tools/webhooksUpdate.ts +35 -0
- package/src/models/components/createinvoicepayment.ts +60 -0
- package/src/models/components/createwebhook.ts +84 -0
- package/src/models/components/eventtype.ts +67 -0
- package/src/models/components/index.ts +8 -0
- package/src/models/components/invoiceexternalpayment.ts +0 -21
- package/src/models/components/invoicepayment.ts +8 -4
- package/src/models/components/invoicetransferpayment.ts +0 -17
- package/src/models/components/pingresponse.ts +73 -0
- package/src/models/components/updatewebhook.ts +84 -0
- package/src/models/components/webhook.ts +115 -0
- package/src/models/components/webhooksecret.ts +53 -0
- package/src/models/components/webhookstatus.ts +27 -0
- package/src/models/errors/createinvoicepaymenterror.ts +78 -0
- package/src/models/errors/createwebhookvalidationerror.ts +108 -0
- package/src/models/errors/index.ts +3 -0
- package/src/models/errors/updatewebhookvalidationerror.ts +108 -0
- package/src/models/operations/createinvoicepayment.ts +197 -0
- package/src/models/operations/createwebhook.ts +132 -0
- package/src/models/operations/disablewebhook.ts +168 -0
- package/src/models/operations/getwebhook.ts +175 -0
- package/src/models/operations/getwebhooksecret.ts +175 -0
- package/src/models/operations/index.ts +10 -0
- package/src/models/operations/listeventtypes.ts +167 -0
- package/src/models/operations/listinvoicepayments.ts +181 -0
- package/src/models/operations/listwebhooks.ts +167 -0
- package/src/models/operations/pingwebhook.ts +175 -0
- package/src/models/operations/updatewebhook.ts +187 -0
- package/src/sdk/invoices.ts +37 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/webhooks.ts +130 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { webhooksCreate } from "../../funcs/webhooksCreate.js";
|
|
6
|
+
import * as components from "../../models/components/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: components.CreateWebhook$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$webhooksCreate: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "webhooks-create",
|
|
15
|
+
description: `Create a new webhook for the account.`,
|
|
16
|
+
args,
|
|
17
|
+
tool: async (client, args, ctx) => {
|
|
18
|
+
const [result, apiCall] = await webhooksCreate(
|
|
19
|
+
client,
|
|
20
|
+
args.request,
|
|
21
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
22
|
+
).$inspect();
|
|
23
|
+
|
|
24
|
+
if (!result.ok) {
|
|
25
|
+
return {
|
|
26
|
+
content: [{ type: "text", text: result.error.message }],
|
|
27
|
+
isError: true,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const value = result.value.result;
|
|
32
|
+
|
|
33
|
+
return formatResult(value, apiCall);
|
|
34
|
+
},
|
|
35
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { webhooksDisable } from "../../funcs/webhooksDisable.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.DisableWebhookRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$webhooksDisable: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "webhooks-disable",
|
|
15
|
+
description:
|
|
16
|
+
`Disable a webhook. Disabled webhooks will no longer receive events.`,
|
|
17
|
+
args,
|
|
18
|
+
tool: async (client, args, ctx) => {
|
|
19
|
+
const [result, apiCall] = await webhooksDisable(
|
|
20
|
+
client,
|
|
21
|
+
args.request,
|
|
22
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
23
|
+
).$inspect();
|
|
24
|
+
|
|
25
|
+
if (!result.ok) {
|
|
26
|
+
return {
|
|
27
|
+
content: [{ type: "text", text: result.error.message }],
|
|
28
|
+
isError: true,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
return formatResult(void 0, apiCall);
|
|
33
|
+
},
|
|
34
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { webhooksGet } from "../../funcs/webhooksGet.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.GetWebhookRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$webhooksGet: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "webhooks-get",
|
|
15
|
+
description: `Get details of a specific webhook.`,
|
|
16
|
+
args,
|
|
17
|
+
tool: async (client, args, ctx) => {
|
|
18
|
+
const [result, apiCall] = await webhooksGet(
|
|
19
|
+
client,
|
|
20
|
+
args.request,
|
|
21
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
22
|
+
).$inspect();
|
|
23
|
+
|
|
24
|
+
if (!result.ok) {
|
|
25
|
+
return {
|
|
26
|
+
content: [{ type: "text", text: result.error.message }],
|
|
27
|
+
isError: true,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const value = result.value.result;
|
|
32
|
+
|
|
33
|
+
return formatResult(value, apiCall);
|
|
34
|
+
},
|
|
35
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { webhooksGetSecret } from "../../funcs/webhooksGetSecret.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.GetWebhookSecretRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$webhooksGetSecret: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "webhooks-get-secret",
|
|
15
|
+
description: `Get the secret key for verifying webhook payloads.`,
|
|
16
|
+
args,
|
|
17
|
+
tool: async (client, args, ctx) => {
|
|
18
|
+
const [result, apiCall] = await webhooksGetSecret(
|
|
19
|
+
client,
|
|
20
|
+
args.request,
|
|
21
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
22
|
+
).$inspect();
|
|
23
|
+
|
|
24
|
+
if (!result.ok) {
|
|
25
|
+
return {
|
|
26
|
+
content: [{ type: "text", text: result.error.message }],
|
|
27
|
+
isError: true,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const value = result.value.result;
|
|
32
|
+
|
|
33
|
+
return formatResult(value, apiCall);
|
|
34
|
+
},
|
|
35
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { webhooksList } from "../../funcs/webhooksList.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.ListWebhooksRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$webhooksList: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "webhooks-list",
|
|
15
|
+
description: `List all webhooks configured for the account.`,
|
|
16
|
+
args,
|
|
17
|
+
tool: async (client, args, ctx) => {
|
|
18
|
+
const [result, apiCall] = await webhooksList(
|
|
19
|
+
client,
|
|
20
|
+
args.request,
|
|
21
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
22
|
+
).$inspect();
|
|
23
|
+
|
|
24
|
+
if (!result.ok) {
|
|
25
|
+
return {
|
|
26
|
+
content: [{ type: "text", text: result.error.message }],
|
|
27
|
+
isError: true,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const value = result.value.result;
|
|
32
|
+
|
|
33
|
+
return formatResult(value, apiCall);
|
|
34
|
+
},
|
|
35
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { webhooksListEventTypes } from "../../funcs/webhooksListEventTypes.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.ListEventTypesRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$webhooksListEventTypes: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "webhooks-list-event-types",
|
|
15
|
+
description: `List all available event types that can be subscribed to.`,
|
|
16
|
+
args,
|
|
17
|
+
tool: async (client, args, ctx) => {
|
|
18
|
+
const [result, apiCall] = await webhooksListEventTypes(
|
|
19
|
+
client,
|
|
20
|
+
args.request,
|
|
21
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
22
|
+
).$inspect();
|
|
23
|
+
|
|
24
|
+
if (!result.ok) {
|
|
25
|
+
return {
|
|
26
|
+
content: [{ type: "text", text: result.error.message }],
|
|
27
|
+
isError: true,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const value = result.value.result;
|
|
32
|
+
|
|
33
|
+
return formatResult(value, apiCall);
|
|
34
|
+
},
|
|
35
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { webhooksPing } from "../../funcs/webhooksPing.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.PingWebhookRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$webhooksPing: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "webhooks-ping",
|
|
15
|
+
description:
|
|
16
|
+
`Send a test ping to a webhook to verify it is configured correctly.`,
|
|
17
|
+
args,
|
|
18
|
+
tool: async (client, args, ctx) => {
|
|
19
|
+
const [result, apiCall] = await webhooksPing(
|
|
20
|
+
client,
|
|
21
|
+
args.request,
|
|
22
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
23
|
+
).$inspect();
|
|
24
|
+
|
|
25
|
+
if (!result.ok) {
|
|
26
|
+
return {
|
|
27
|
+
content: [{ type: "text", text: result.error.message }],
|
|
28
|
+
isError: true,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
const value = result.value.result;
|
|
33
|
+
|
|
34
|
+
return formatResult(value, apiCall);
|
|
35
|
+
},
|
|
36
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { webhooksUpdate } from "../../funcs/webhooksUpdate.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.UpdateWebhookRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$webhooksUpdate: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "webhooks-update",
|
|
15
|
+
description: `Update an existing webhook.`,
|
|
16
|
+
args,
|
|
17
|
+
tool: async (client, args, ctx) => {
|
|
18
|
+
const [result, apiCall] = await webhooksUpdate(
|
|
19
|
+
client,
|
|
20
|
+
args.request,
|
|
21
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
22
|
+
).$inspect();
|
|
23
|
+
|
|
24
|
+
if (!result.ok) {
|
|
25
|
+
return {
|
|
26
|
+
content: [{ type: "text", text: result.error.message }],
|
|
27
|
+
isError: true,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const value = result.value.result;
|
|
32
|
+
|
|
33
|
+
return formatResult(value, apiCall);
|
|
34
|
+
},
|
|
35
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type CreateInvoicePayment = {
|
|
11
|
+
foreignID?: string | undefined;
|
|
12
|
+
description?: string | undefined;
|
|
13
|
+
paymentDate?: Date | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const CreateInvoicePayment$inboundSchema: z.ZodType<
|
|
18
|
+
CreateInvoicePayment,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
foreignID: z.string().optional(),
|
|
23
|
+
description: z.string().optional(),
|
|
24
|
+
paymentDate: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
25
|
+
.optional(),
|
|
26
|
+
});
|
|
27
|
+
/** @internal */
|
|
28
|
+
export type CreateInvoicePayment$Outbound = {
|
|
29
|
+
foreignID?: string | undefined;
|
|
30
|
+
description?: string | undefined;
|
|
31
|
+
paymentDate?: string | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const CreateInvoicePayment$outboundSchema: z.ZodType<
|
|
36
|
+
CreateInvoicePayment$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
CreateInvoicePayment
|
|
39
|
+
> = z.object({
|
|
40
|
+
foreignID: z.string().optional(),
|
|
41
|
+
description: z.string().optional(),
|
|
42
|
+
paymentDate: z.date().transform(v => v.toISOString()).optional(),
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
export function createInvoicePaymentToJSON(
|
|
46
|
+
createInvoicePayment: CreateInvoicePayment,
|
|
47
|
+
): string {
|
|
48
|
+
return JSON.stringify(
|
|
49
|
+
CreateInvoicePayment$outboundSchema.parse(createInvoicePayment),
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
export function createInvoicePaymentFromJSON(
|
|
53
|
+
jsonString: string,
|
|
54
|
+
): SafeParseResult<CreateInvoicePayment, SDKValidationError> {
|
|
55
|
+
return safeParse(
|
|
56
|
+
jsonString,
|
|
57
|
+
(x) => CreateInvoicePayment$inboundSchema.parse(JSON.parse(x)),
|
|
58
|
+
`Failed to parse 'CreateInvoicePayment' from JSON`,
|
|
59
|
+
);
|
|
60
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
WebhookEventType,
|
|
11
|
+
WebhookEventType$inboundSchema,
|
|
12
|
+
WebhookEventType$outboundSchema,
|
|
13
|
+
} from "./webhookeventtype.js";
|
|
14
|
+
import {
|
|
15
|
+
WebhookStatus,
|
|
16
|
+
WebhookStatus$inboundSchema,
|
|
17
|
+
WebhookStatus$outboundSchema,
|
|
18
|
+
} from "./webhookstatus.js";
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Request body for creating a new webhook.
|
|
22
|
+
*/
|
|
23
|
+
export type CreateWebhook = {
|
|
24
|
+
/**
|
|
25
|
+
* The URL where webhook events will be sent.
|
|
26
|
+
*/
|
|
27
|
+
url: string;
|
|
28
|
+
/**
|
|
29
|
+
* The status of the webhook.
|
|
30
|
+
*/
|
|
31
|
+
status: WebhookStatus;
|
|
32
|
+
/**
|
|
33
|
+
* The list of event types this webhook should subscribe to.
|
|
34
|
+
*/
|
|
35
|
+
eventTypes: Array<WebhookEventType>;
|
|
36
|
+
/**
|
|
37
|
+
* A description of the webhook for reference. Can be an empty string.
|
|
38
|
+
*/
|
|
39
|
+
description: string;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const CreateWebhook$inboundSchema: z.ZodType<
|
|
44
|
+
CreateWebhook,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
unknown
|
|
47
|
+
> = z.object({
|
|
48
|
+
url: z.string(),
|
|
49
|
+
status: WebhookStatus$inboundSchema,
|
|
50
|
+
eventTypes: z.array(WebhookEventType$inboundSchema),
|
|
51
|
+
description: z.string(),
|
|
52
|
+
});
|
|
53
|
+
/** @internal */
|
|
54
|
+
export type CreateWebhook$Outbound = {
|
|
55
|
+
url: string;
|
|
56
|
+
status: string;
|
|
57
|
+
eventTypes: Array<string>;
|
|
58
|
+
description: string;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
/** @internal */
|
|
62
|
+
export const CreateWebhook$outboundSchema: z.ZodType<
|
|
63
|
+
CreateWebhook$Outbound,
|
|
64
|
+
z.ZodTypeDef,
|
|
65
|
+
CreateWebhook
|
|
66
|
+
> = z.object({
|
|
67
|
+
url: z.string(),
|
|
68
|
+
status: WebhookStatus$outboundSchema,
|
|
69
|
+
eventTypes: z.array(WebhookEventType$outboundSchema),
|
|
70
|
+
description: z.string(),
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
export function createWebhookToJSON(createWebhook: CreateWebhook): string {
|
|
74
|
+
return JSON.stringify(CreateWebhook$outboundSchema.parse(createWebhook));
|
|
75
|
+
}
|
|
76
|
+
export function createWebhookFromJSON(
|
|
77
|
+
jsonString: string,
|
|
78
|
+
): SafeParseResult<CreateWebhook, SDKValidationError> {
|
|
79
|
+
return safeParse(
|
|
80
|
+
jsonString,
|
|
81
|
+
(x) => CreateWebhook$inboundSchema.parse(JSON.parse(x)),
|
|
82
|
+
`Failed to parse 'CreateWebhook' from JSON`,
|
|
83
|
+
);
|
|
84
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Describes an available event type that can be subscribed to.
|
|
12
|
+
*/
|
|
13
|
+
export type EventType = {
|
|
14
|
+
/**
|
|
15
|
+
* Unique identifier for the event type.
|
|
16
|
+
*/
|
|
17
|
+
eventTypeID: string;
|
|
18
|
+
/**
|
|
19
|
+
* The type identifier string.
|
|
20
|
+
*/
|
|
21
|
+
type: string;
|
|
22
|
+
/**
|
|
23
|
+
* A human-readable description of the event type.
|
|
24
|
+
*/
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const EventType$inboundSchema: z.ZodType<
|
|
30
|
+
EventType,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
eventTypeID: z.string(),
|
|
35
|
+
type: z.string(),
|
|
36
|
+
description: z.string(),
|
|
37
|
+
});
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type EventType$Outbound = {
|
|
40
|
+
eventTypeID: string;
|
|
41
|
+
type: string;
|
|
42
|
+
description: string;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const EventType$outboundSchema: z.ZodType<
|
|
47
|
+
EventType$Outbound,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
EventType
|
|
50
|
+
> = z.object({
|
|
51
|
+
eventTypeID: z.string(),
|
|
52
|
+
type: z.string(),
|
|
53
|
+
description: z.string(),
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export function eventTypeToJSON(eventType: EventType): string {
|
|
57
|
+
return JSON.stringify(EventType$outboundSchema.parse(eventType));
|
|
58
|
+
}
|
|
59
|
+
export function eventTypeFromJSON(
|
|
60
|
+
jsonString: string,
|
|
61
|
+
): SafeParseResult<EventType, SDKValidationError> {
|
|
62
|
+
return safeParse(
|
|
63
|
+
jsonString,
|
|
64
|
+
(x) => EventType$inboundSchema.parse(JSON.parse(x)),
|
|
65
|
+
`Failed to parse 'EventType' from JSON`,
|
|
66
|
+
);
|
|
67
|
+
}
|
|
@@ -151,6 +151,7 @@ export * from "./createinvoicelineitems.js";
|
|
|
151
151
|
export * from "./createinvoicelineitemsupdate.js";
|
|
152
152
|
export * from "./createinvoicelineitemsvalidationerror.js";
|
|
153
153
|
export * from "./createinvoicelineitemvalidationerror.js";
|
|
154
|
+
export * from "./createinvoicepayment.js";
|
|
154
155
|
export * from "./createpaymentlink.js";
|
|
155
156
|
export * from "./createpaymentlinklineitem.js";
|
|
156
157
|
export * from "./createpaymentlinklineitemoption.js";
|
|
@@ -187,6 +188,7 @@ export * from "./createtransfersource.js";
|
|
|
187
188
|
export * from "./createtransfersourceach.js";
|
|
188
189
|
export * from "./createtransfersourcecard.js";
|
|
189
190
|
export * from "./createwallet.js";
|
|
191
|
+
export * from "./createwebhook.js";
|
|
190
192
|
export * from "./customersupport.js";
|
|
191
193
|
export * from "./customersupporterror.js";
|
|
192
194
|
export * from "./debitholdperiod.js";
|
|
@@ -212,6 +214,7 @@ export * from "./enrichedindustrycodes.js";
|
|
|
212
214
|
export * from "./entrymode.js";
|
|
213
215
|
export * from "./estimatedactivity.js";
|
|
214
216
|
export * from "./estimatedactivityerror.js";
|
|
217
|
+
export * from "./eventtype.js";
|
|
215
218
|
export * from "./evidencetextresponse.js";
|
|
216
219
|
export * from "./evidencetype.js";
|
|
217
220
|
export * from "./evidenceuploadresponse.js";
|
|
@@ -358,6 +361,7 @@ export * from "./payoutrecipienterror.js";
|
|
|
358
361
|
export * from "./pendinglitigation.js";
|
|
359
362
|
export * from "./phonenumber.js";
|
|
360
363
|
export * from "./phonenumbererror.js";
|
|
364
|
+
export * from "./pingresponse.js";
|
|
361
365
|
export * from "./plaidintegration.js";
|
|
362
366
|
export * from "./plaidlinkintegration.js";
|
|
363
367
|
export * from "./plaidlinkpayload.js";
|
|
@@ -483,6 +487,7 @@ export * from "./updaterepresentative.js";
|
|
|
483
487
|
export * from "./updateticket.js";
|
|
484
488
|
export * from "./updateticketstatus.js";
|
|
485
489
|
export * from "./updateunderwriting.js";
|
|
490
|
+
export * from "./updatewebhook.js";
|
|
486
491
|
export * from "./upsertschedule.js";
|
|
487
492
|
export * from "./upsertunderwriting.js";
|
|
488
493
|
export * from "./verification.js";
|
|
@@ -501,6 +506,7 @@ export * from "./wallettransactionsourcetype.js";
|
|
|
501
506
|
export * from "./wallettransactionstatus.js";
|
|
502
507
|
export * from "./wallettransactiontype.js";
|
|
503
508
|
export * from "./wallettype.js";
|
|
509
|
+
export * from "./webhook.js";
|
|
504
510
|
export * from "./webhookbillingstatementcreated.js";
|
|
505
511
|
export * from "./webhookdata.js";
|
|
506
512
|
export * from "./webhookdataaccountcreated.js";
|
|
@@ -542,6 +548,8 @@ export * from "./webhookdatawallettransactionupdated.js";
|
|
|
542
548
|
export * from "./webhookdatawalletupdated.js";
|
|
543
549
|
export * from "./webhookevent.js";
|
|
544
550
|
export * from "./webhookeventtype.js";
|
|
551
|
+
export * from "./webhooksecret.js";
|
|
552
|
+
export * from "./webhookstatus.js";
|
|
545
553
|
export * from "./webhooktransferpaymentmethoddetails.js";
|
|
546
554
|
export * from "./wireinstitution.js";
|
|
547
555
|
export * from "./wireservices.js";
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
8
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
9
|
import {
|
|
@@ -14,37 +13,19 @@ import {
|
|
|
14
13
|
AmountDecimal$outboundSchema,
|
|
15
14
|
} from "./amountdecimal.js";
|
|
16
15
|
|
|
17
|
-
export const InvoiceExternalPaymentPaymentType = {
|
|
18
|
-
External: "external",
|
|
19
|
-
} as const;
|
|
20
|
-
export type InvoiceExternalPaymentPaymentType = ClosedEnum<
|
|
21
|
-
typeof InvoiceExternalPaymentPaymentType
|
|
22
|
-
>;
|
|
23
|
-
|
|
24
16
|
export type InvoiceExternalPayment = {
|
|
25
|
-
paymentType: InvoiceExternalPaymentPaymentType;
|
|
26
17
|
description: string;
|
|
27
18
|
foreignID?: string | undefined;
|
|
28
19
|
paymentDate?: Date | undefined;
|
|
29
20
|
amount: AmountDecimal;
|
|
30
21
|
};
|
|
31
22
|
|
|
32
|
-
/** @internal */
|
|
33
|
-
export const InvoiceExternalPaymentPaymentType$inboundSchema: z.ZodNativeEnum<
|
|
34
|
-
typeof InvoiceExternalPaymentPaymentType
|
|
35
|
-
> = z.nativeEnum(InvoiceExternalPaymentPaymentType);
|
|
36
|
-
/** @internal */
|
|
37
|
-
export const InvoiceExternalPaymentPaymentType$outboundSchema: z.ZodNativeEnum<
|
|
38
|
-
typeof InvoiceExternalPaymentPaymentType
|
|
39
|
-
> = InvoiceExternalPaymentPaymentType$inboundSchema;
|
|
40
|
-
|
|
41
23
|
/** @internal */
|
|
42
24
|
export const InvoiceExternalPayment$inboundSchema: z.ZodType<
|
|
43
25
|
InvoiceExternalPayment,
|
|
44
26
|
z.ZodTypeDef,
|
|
45
27
|
unknown
|
|
46
28
|
> = z.object({
|
|
47
|
-
paymentType: InvoiceExternalPaymentPaymentType$inboundSchema,
|
|
48
29
|
description: z.string(),
|
|
49
30
|
foreignID: z.string().optional(),
|
|
50
31
|
paymentDate: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
@@ -53,7 +34,6 @@ export const InvoiceExternalPayment$inboundSchema: z.ZodType<
|
|
|
53
34
|
});
|
|
54
35
|
/** @internal */
|
|
55
36
|
export type InvoiceExternalPayment$Outbound = {
|
|
56
|
-
paymentType: string;
|
|
57
37
|
description: string;
|
|
58
38
|
foreignID?: string | undefined;
|
|
59
39
|
paymentDate?: string | undefined;
|
|
@@ -66,7 +46,6 @@ export const InvoiceExternalPayment$outboundSchema: z.ZodType<
|
|
|
66
46
|
z.ZodTypeDef,
|
|
67
47
|
InvoiceExternalPayment
|
|
68
48
|
> = z.object({
|
|
69
|
-
paymentType: InvoiceExternalPaymentPaymentType$outboundSchema,
|
|
70
49
|
description: z.string(),
|
|
71
50
|
foreignID: z.string().optional(),
|
|
72
51
|
paymentDate: z.date().transform(v => v.toISOString()).optional(),
|
|
@@ -28,7 +28,8 @@ import {
|
|
|
28
28
|
* Payment made towards an invoice, will be either a transfer or an external payment.
|
|
29
29
|
*/
|
|
30
30
|
export type InvoicePayment = {
|
|
31
|
-
|
|
31
|
+
invoicePaymentID: string;
|
|
32
|
+
invoicePaymentType: InvoicePaymentType;
|
|
32
33
|
transfer?: InvoiceTransferPayment | undefined;
|
|
33
34
|
external?: InvoiceExternalPayment | undefined;
|
|
34
35
|
};
|
|
@@ -39,13 +40,15 @@ export const InvoicePayment$inboundSchema: z.ZodType<
|
|
|
39
40
|
z.ZodTypeDef,
|
|
40
41
|
unknown
|
|
41
42
|
> = z.object({
|
|
42
|
-
|
|
43
|
+
invoicePaymentID: z.string(),
|
|
44
|
+
invoicePaymentType: InvoicePaymentType$inboundSchema,
|
|
43
45
|
transfer: InvoiceTransferPayment$inboundSchema.optional(),
|
|
44
46
|
external: InvoiceExternalPayment$inboundSchema.optional(),
|
|
45
47
|
});
|
|
46
48
|
/** @internal */
|
|
47
49
|
export type InvoicePayment$Outbound = {
|
|
48
|
-
|
|
50
|
+
invoicePaymentID: string;
|
|
51
|
+
invoicePaymentType: string;
|
|
49
52
|
transfer?: InvoiceTransferPayment$Outbound | undefined;
|
|
50
53
|
external?: InvoiceExternalPayment$Outbound | undefined;
|
|
51
54
|
};
|
|
@@ -56,7 +59,8 @@ export const InvoicePayment$outboundSchema: z.ZodType<
|
|
|
56
59
|
z.ZodTypeDef,
|
|
57
60
|
InvoicePayment
|
|
58
61
|
> = z.object({
|
|
59
|
-
|
|
62
|
+
invoicePaymentID: z.string(),
|
|
63
|
+
invoicePaymentType: InvoicePaymentType$outboundSchema,
|
|
60
64
|
transfer: InvoiceTransferPayment$outboundSchema.optional(),
|
|
61
65
|
external: InvoiceExternalPayment$outboundSchema.optional(),
|
|
62
66
|
});
|