@moovio/sdk 0.22.11 → 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 +2557 -621
- package/bin/mcp-server.js.map +59 -16
- 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/achtransactiondetails.d.ts +3 -0
- package/models/components/achtransactiondetails.d.ts.map +1 -1
- package/models/components/achtransactiondetails.js +3 -0
- package/models/components/achtransactiondetails.js.map +1 -1
- 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/createtransferachaddendarecord.d.ts +23 -0
- package/models/components/createtransferachaddendarecord.d.ts.map +1 -0
- package/models/components/createtransferachaddendarecord.js +58 -0
- package/models/components/createtransferachaddendarecord.js.map +1 -0
- package/models/components/createtransferdestinationach.d.ts +3 -0
- package/models/components/createtransferdestinationach.d.ts.map +1 -1
- package/models/components/createtransferdestinationach.js +3 -0
- package/models/components/createtransferdestinationach.js.map +1 -1
- package/models/components/createtransfersourceach.d.ts +3 -0
- package/models/components/createtransfersourceach.d.ts.map +1 -1
- package/models/components/createtransfersourceach.js +3 -0
- package/models/components/createtransfersourceach.js.map +1 -1
- 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 +10 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +10 -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/transferachaddendarecord.d.ts +28 -0
- package/models/components/transferachaddendarecord.d.ts.map +1 -0
- package/models/components/transferachaddendarecord.js +60 -0
- package/models/components/transferachaddendarecord.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/achtransactiondetails.ts +10 -0
- package/src/models/components/createinvoicepayment.ts +60 -0
- package/src/models/components/createtransferachaddendarecord.ts +59 -0
- package/src/models/components/createtransferdestinationach.ts +10 -0
- package/src/models/components/createtransfersourceach.ts +10 -0
- package/src/models/components/createwebhook.ts +84 -0
- package/src/models/components/eventtype.ts +67 -0
- package/src/models/components/index.ts +10 -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/transferachaddendarecord.ts +64 -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,175 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
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 GetWebhookGlobals = {
|
|
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
|
+
* When no version is specified, the API defaults to `v2024.01.00`.
|
|
26
|
+
*/
|
|
27
|
+
xMoovVersion?: string | undefined;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export type GetWebhookRequest = {
|
|
31
|
+
webhookID: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export type GetWebhookResponse = {
|
|
35
|
+
headers: { [k: string]: Array<string> };
|
|
36
|
+
result: components.Webhook;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const GetWebhookGlobals$inboundSchema: z.ZodType<
|
|
41
|
+
GetWebhookGlobals,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
unknown
|
|
44
|
+
> = z.object({
|
|
45
|
+
"X-Moov-Version": z.string().optional(),
|
|
46
|
+
}).transform((v) => {
|
|
47
|
+
return remap$(v, {
|
|
48
|
+
"X-Moov-Version": "xMoovVersion",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
/** @internal */
|
|
52
|
+
export type GetWebhookGlobals$Outbound = {
|
|
53
|
+
"X-Moov-Version"?: string | undefined;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
/** @internal */
|
|
57
|
+
export const GetWebhookGlobals$outboundSchema: z.ZodType<
|
|
58
|
+
GetWebhookGlobals$Outbound,
|
|
59
|
+
z.ZodTypeDef,
|
|
60
|
+
GetWebhookGlobals
|
|
61
|
+
> = z.object({
|
|
62
|
+
xMoovVersion: z.string().optional(),
|
|
63
|
+
}).transform((v) => {
|
|
64
|
+
return remap$(v, {
|
|
65
|
+
xMoovVersion: "X-Moov-Version",
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
export function getWebhookGlobalsToJSON(
|
|
70
|
+
getWebhookGlobals: GetWebhookGlobals,
|
|
71
|
+
): string {
|
|
72
|
+
return JSON.stringify(
|
|
73
|
+
GetWebhookGlobals$outboundSchema.parse(getWebhookGlobals),
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
export function getWebhookGlobalsFromJSON(
|
|
77
|
+
jsonString: string,
|
|
78
|
+
): SafeParseResult<GetWebhookGlobals, SDKValidationError> {
|
|
79
|
+
return safeParse(
|
|
80
|
+
jsonString,
|
|
81
|
+
(x) => GetWebhookGlobals$inboundSchema.parse(JSON.parse(x)),
|
|
82
|
+
`Failed to parse 'GetWebhookGlobals' from JSON`,
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/** @internal */
|
|
87
|
+
export const GetWebhookRequest$inboundSchema: z.ZodType<
|
|
88
|
+
GetWebhookRequest,
|
|
89
|
+
z.ZodTypeDef,
|
|
90
|
+
unknown
|
|
91
|
+
> = z.object({
|
|
92
|
+
webhookID: z.string(),
|
|
93
|
+
});
|
|
94
|
+
/** @internal */
|
|
95
|
+
export type GetWebhookRequest$Outbound = {
|
|
96
|
+
webhookID: string;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
/** @internal */
|
|
100
|
+
export const GetWebhookRequest$outboundSchema: z.ZodType<
|
|
101
|
+
GetWebhookRequest$Outbound,
|
|
102
|
+
z.ZodTypeDef,
|
|
103
|
+
GetWebhookRequest
|
|
104
|
+
> = z.object({
|
|
105
|
+
webhookID: z.string(),
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
export function getWebhookRequestToJSON(
|
|
109
|
+
getWebhookRequest: GetWebhookRequest,
|
|
110
|
+
): string {
|
|
111
|
+
return JSON.stringify(
|
|
112
|
+
GetWebhookRequest$outboundSchema.parse(getWebhookRequest),
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
export function getWebhookRequestFromJSON(
|
|
116
|
+
jsonString: string,
|
|
117
|
+
): SafeParseResult<GetWebhookRequest, SDKValidationError> {
|
|
118
|
+
return safeParse(
|
|
119
|
+
jsonString,
|
|
120
|
+
(x) => GetWebhookRequest$inboundSchema.parse(JSON.parse(x)),
|
|
121
|
+
`Failed to parse 'GetWebhookRequest' from JSON`,
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/** @internal */
|
|
126
|
+
export const GetWebhookResponse$inboundSchema: z.ZodType<
|
|
127
|
+
GetWebhookResponse,
|
|
128
|
+
z.ZodTypeDef,
|
|
129
|
+
unknown
|
|
130
|
+
> = z.object({
|
|
131
|
+
Headers: z.record(z.array(z.string())).default({}),
|
|
132
|
+
Result: components.Webhook$inboundSchema,
|
|
133
|
+
}).transform((v) => {
|
|
134
|
+
return remap$(v, {
|
|
135
|
+
"Headers": "headers",
|
|
136
|
+
"Result": "result",
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
/** @internal */
|
|
140
|
+
export type GetWebhookResponse$Outbound = {
|
|
141
|
+
Headers: { [k: string]: Array<string> };
|
|
142
|
+
Result: components.Webhook$Outbound;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
/** @internal */
|
|
146
|
+
export const GetWebhookResponse$outboundSchema: z.ZodType<
|
|
147
|
+
GetWebhookResponse$Outbound,
|
|
148
|
+
z.ZodTypeDef,
|
|
149
|
+
GetWebhookResponse
|
|
150
|
+
> = z.object({
|
|
151
|
+
headers: z.record(z.array(z.string())),
|
|
152
|
+
result: components.Webhook$outboundSchema,
|
|
153
|
+
}).transform((v) => {
|
|
154
|
+
return remap$(v, {
|
|
155
|
+
headers: "Headers",
|
|
156
|
+
result: "Result",
|
|
157
|
+
});
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
export function getWebhookResponseToJSON(
|
|
161
|
+
getWebhookResponse: GetWebhookResponse,
|
|
162
|
+
): string {
|
|
163
|
+
return JSON.stringify(
|
|
164
|
+
GetWebhookResponse$outboundSchema.parse(getWebhookResponse),
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
export function getWebhookResponseFromJSON(
|
|
168
|
+
jsonString: string,
|
|
169
|
+
): SafeParseResult<GetWebhookResponse, SDKValidationError> {
|
|
170
|
+
return safeParse(
|
|
171
|
+
jsonString,
|
|
172
|
+
(x) => GetWebhookResponse$inboundSchema.parse(JSON.parse(x)),
|
|
173
|
+
`Failed to parse 'GetWebhookResponse' from JSON`,
|
|
174
|
+
);
|
|
175
|
+
}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
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 GetWebhookSecretGlobals = {
|
|
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
|
+
* When no version is specified, the API defaults to `v2024.01.00`.
|
|
26
|
+
*/
|
|
27
|
+
xMoovVersion?: string | undefined;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export type GetWebhookSecretRequest = {
|
|
31
|
+
webhookID: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export type GetWebhookSecretResponse = {
|
|
35
|
+
headers: { [k: string]: Array<string> };
|
|
36
|
+
result: components.WebhookSecret;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const GetWebhookSecretGlobals$inboundSchema: z.ZodType<
|
|
41
|
+
GetWebhookSecretGlobals,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
unknown
|
|
44
|
+
> = z.object({
|
|
45
|
+
"X-Moov-Version": z.string().optional(),
|
|
46
|
+
}).transform((v) => {
|
|
47
|
+
return remap$(v, {
|
|
48
|
+
"X-Moov-Version": "xMoovVersion",
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
/** @internal */
|
|
52
|
+
export type GetWebhookSecretGlobals$Outbound = {
|
|
53
|
+
"X-Moov-Version"?: string | undefined;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
/** @internal */
|
|
57
|
+
export const GetWebhookSecretGlobals$outboundSchema: z.ZodType<
|
|
58
|
+
GetWebhookSecretGlobals$Outbound,
|
|
59
|
+
z.ZodTypeDef,
|
|
60
|
+
GetWebhookSecretGlobals
|
|
61
|
+
> = z.object({
|
|
62
|
+
xMoovVersion: z.string().optional(),
|
|
63
|
+
}).transform((v) => {
|
|
64
|
+
return remap$(v, {
|
|
65
|
+
xMoovVersion: "X-Moov-Version",
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
export function getWebhookSecretGlobalsToJSON(
|
|
70
|
+
getWebhookSecretGlobals: GetWebhookSecretGlobals,
|
|
71
|
+
): string {
|
|
72
|
+
return JSON.stringify(
|
|
73
|
+
GetWebhookSecretGlobals$outboundSchema.parse(getWebhookSecretGlobals),
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
export function getWebhookSecretGlobalsFromJSON(
|
|
77
|
+
jsonString: string,
|
|
78
|
+
): SafeParseResult<GetWebhookSecretGlobals, SDKValidationError> {
|
|
79
|
+
return safeParse(
|
|
80
|
+
jsonString,
|
|
81
|
+
(x) => GetWebhookSecretGlobals$inboundSchema.parse(JSON.parse(x)),
|
|
82
|
+
`Failed to parse 'GetWebhookSecretGlobals' from JSON`,
|
|
83
|
+
);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/** @internal */
|
|
87
|
+
export const GetWebhookSecretRequest$inboundSchema: z.ZodType<
|
|
88
|
+
GetWebhookSecretRequest,
|
|
89
|
+
z.ZodTypeDef,
|
|
90
|
+
unknown
|
|
91
|
+
> = z.object({
|
|
92
|
+
webhookID: z.string(),
|
|
93
|
+
});
|
|
94
|
+
/** @internal */
|
|
95
|
+
export type GetWebhookSecretRequest$Outbound = {
|
|
96
|
+
webhookID: string;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
/** @internal */
|
|
100
|
+
export const GetWebhookSecretRequest$outboundSchema: z.ZodType<
|
|
101
|
+
GetWebhookSecretRequest$Outbound,
|
|
102
|
+
z.ZodTypeDef,
|
|
103
|
+
GetWebhookSecretRequest
|
|
104
|
+
> = z.object({
|
|
105
|
+
webhookID: z.string(),
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
export function getWebhookSecretRequestToJSON(
|
|
109
|
+
getWebhookSecretRequest: GetWebhookSecretRequest,
|
|
110
|
+
): string {
|
|
111
|
+
return JSON.stringify(
|
|
112
|
+
GetWebhookSecretRequest$outboundSchema.parse(getWebhookSecretRequest),
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
export function getWebhookSecretRequestFromJSON(
|
|
116
|
+
jsonString: string,
|
|
117
|
+
): SafeParseResult<GetWebhookSecretRequest, SDKValidationError> {
|
|
118
|
+
return safeParse(
|
|
119
|
+
jsonString,
|
|
120
|
+
(x) => GetWebhookSecretRequest$inboundSchema.parse(JSON.parse(x)),
|
|
121
|
+
`Failed to parse 'GetWebhookSecretRequest' from JSON`,
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/** @internal */
|
|
126
|
+
export const GetWebhookSecretResponse$inboundSchema: z.ZodType<
|
|
127
|
+
GetWebhookSecretResponse,
|
|
128
|
+
z.ZodTypeDef,
|
|
129
|
+
unknown
|
|
130
|
+
> = z.object({
|
|
131
|
+
Headers: z.record(z.array(z.string())).default({}),
|
|
132
|
+
Result: components.WebhookSecret$inboundSchema,
|
|
133
|
+
}).transform((v) => {
|
|
134
|
+
return remap$(v, {
|
|
135
|
+
"Headers": "headers",
|
|
136
|
+
"Result": "result",
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
/** @internal */
|
|
140
|
+
export type GetWebhookSecretResponse$Outbound = {
|
|
141
|
+
Headers: { [k: string]: Array<string> };
|
|
142
|
+
Result: components.WebhookSecret$Outbound;
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
/** @internal */
|
|
146
|
+
export const GetWebhookSecretResponse$outboundSchema: z.ZodType<
|
|
147
|
+
GetWebhookSecretResponse$Outbound,
|
|
148
|
+
z.ZodTypeDef,
|
|
149
|
+
GetWebhookSecretResponse
|
|
150
|
+
> = z.object({
|
|
151
|
+
headers: z.record(z.array(z.string())),
|
|
152
|
+
result: components.WebhookSecret$outboundSchema,
|
|
153
|
+
}).transform((v) => {
|
|
154
|
+
return remap$(v, {
|
|
155
|
+
headers: "Headers",
|
|
156
|
+
result: "Result",
|
|
157
|
+
});
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
export function getWebhookSecretResponseToJSON(
|
|
161
|
+
getWebhookSecretResponse: GetWebhookSecretResponse,
|
|
162
|
+
): string {
|
|
163
|
+
return JSON.stringify(
|
|
164
|
+
GetWebhookSecretResponse$outboundSchema.parse(getWebhookSecretResponse),
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
export function getWebhookSecretResponseFromJSON(
|
|
168
|
+
jsonString: string,
|
|
169
|
+
): SafeParseResult<GetWebhookSecretResponse, SDKValidationError> {
|
|
170
|
+
return safeParse(
|
|
171
|
+
jsonString,
|
|
172
|
+
(x) => GetWebhookSecretResponse$inboundSchema.parse(JSON.parse(x)),
|
|
173
|
+
`Failed to parse 'GetWebhookSecretResponse' from JSON`,
|
|
174
|
+
);
|
|
175
|
+
}
|
|
@@ -15,6 +15,7 @@ export * from "./createbrand.js";
|
|
|
15
15
|
export * from "./createcancellation.js";
|
|
16
16
|
export * from "./createfeeplanagreements.js";
|
|
17
17
|
export * from "./createinvoice.js";
|
|
18
|
+
export * from "./createinvoicepayment.js";
|
|
18
19
|
export * from "./createonboardinginvite.js";
|
|
19
20
|
export * from "./createpaymentlink.js";
|
|
20
21
|
export * from "./createproduct.js";
|
|
@@ -29,6 +30,7 @@ export * from "./createticket.js";
|
|
|
29
30
|
export * from "./createtransfer.js";
|
|
30
31
|
export * from "./createtransferoptions.js";
|
|
31
32
|
export * from "./createwallet.js";
|
|
33
|
+
export * from "./createwebhook.js";
|
|
32
34
|
export * from "./deletedisputeevidencefile.js";
|
|
33
35
|
export * from "./deleteimage.js";
|
|
34
36
|
export * from "./deleterepresentative.js";
|
|
@@ -38,6 +40,7 @@ export * from "./disablecapability.js";
|
|
|
38
40
|
export * from "./disablecard.js";
|
|
39
41
|
export * from "./disablepaymentlink.js";
|
|
40
42
|
export * from "./disableproduct.js";
|
|
43
|
+
export * from "./disablewebhook.js";
|
|
41
44
|
export * from "./disconnectaccount.js";
|
|
42
45
|
export * from "./generateendtoendkey.js";
|
|
43
46
|
export * from "./getaccount.js";
|
|
@@ -87,6 +90,8 @@ export * from "./gettransfer.js";
|
|
|
87
90
|
export * from "./getunderwriting.js";
|
|
88
91
|
export * from "./getwallet.js";
|
|
89
92
|
export * from "./getwallettransaction.js";
|
|
93
|
+
export * from "./getwebhook.js";
|
|
94
|
+
export * from "./getwebhooksecret.js";
|
|
90
95
|
export * from "./initiatebankaccountverification.js";
|
|
91
96
|
export * from "./initiatemicrodeposits.js";
|
|
92
97
|
export * from "./initiaterefund.js";
|
|
@@ -103,6 +108,7 @@ export * from "./listcards.js";
|
|
|
103
108
|
export * from "./listconnectedaccountsforaccount.js";
|
|
104
109
|
export * from "./listdisputeevidence.js";
|
|
105
110
|
export * from "./listdisputes.js";
|
|
111
|
+
export * from "./listeventtypes.js";
|
|
106
112
|
export * from "./listfeeplanagreements.js";
|
|
107
113
|
export * from "./listfeeplans.js";
|
|
108
114
|
export * from "./listfeerevenue.js";
|
|
@@ -111,6 +117,7 @@ export * from "./listfiles.js";
|
|
|
111
117
|
export * from "./listimagemetadata.js";
|
|
112
118
|
export * from "./listindustries.js";
|
|
113
119
|
export * from "./listinstitutions.js";
|
|
120
|
+
export * from "./listinvoicepayments.js";
|
|
114
121
|
export * from "./listinvoices.js";
|
|
115
122
|
export * from "./listissuedcardauthorizationevents.js";
|
|
116
123
|
export * from "./listissuedcardauthorizations.js";
|
|
@@ -137,7 +144,9 @@ export * from "./listtickets.js";
|
|
|
137
144
|
export * from "./listtransfers.js";
|
|
138
145
|
export * from "./listwallets.js";
|
|
139
146
|
export * from "./listwallettransactions.js";
|
|
147
|
+
export * from "./listwebhooks.js";
|
|
140
148
|
export * from "./ping.js";
|
|
149
|
+
export * from "./pingwebhook.js";
|
|
141
150
|
export * from "./registerapplepaymerchantdomains.js";
|
|
142
151
|
export * from "./requestcapabilities.js";
|
|
143
152
|
export * from "./requestcard.js";
|
|
@@ -164,6 +173,7 @@ export * from "./updatesweepconfig.js";
|
|
|
164
173
|
export * from "./updateticket.js";
|
|
165
174
|
export * from "./updatetransfer.js";
|
|
166
175
|
export * from "./updatewallet.js";
|
|
176
|
+
export * from "./updatewebhook.js";
|
|
167
177
|
export * from "./uploaddisputeevidencefile.js";
|
|
168
178
|
export * from "./uploaddisputeevidencetext.js";
|
|
169
179
|
export * from "./uploadfile.js";
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
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 ListEventTypesGlobals = {
|
|
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
|
+
* When no version is specified, the API defaults to `v2024.01.00`.
|
|
26
|
+
*/
|
|
27
|
+
xMoovVersion?: string | undefined;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export type ListEventTypesRequest = {};
|
|
31
|
+
|
|
32
|
+
export type ListEventTypesResponse = {
|
|
33
|
+
headers: { [k: string]: Array<string> };
|
|
34
|
+
result: Array<components.EventType>;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const ListEventTypesGlobals$inboundSchema: z.ZodType<
|
|
39
|
+
ListEventTypesGlobals,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
unknown
|
|
42
|
+
> = z.object({
|
|
43
|
+
"X-Moov-Version": z.string().optional(),
|
|
44
|
+
}).transform((v) => {
|
|
45
|
+
return remap$(v, {
|
|
46
|
+
"X-Moov-Version": "xMoovVersion",
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
/** @internal */
|
|
50
|
+
export type ListEventTypesGlobals$Outbound = {
|
|
51
|
+
"X-Moov-Version"?: string | undefined;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const ListEventTypesGlobals$outboundSchema: z.ZodType<
|
|
56
|
+
ListEventTypesGlobals$Outbound,
|
|
57
|
+
z.ZodTypeDef,
|
|
58
|
+
ListEventTypesGlobals
|
|
59
|
+
> = z.object({
|
|
60
|
+
xMoovVersion: z.string().optional(),
|
|
61
|
+
}).transform((v) => {
|
|
62
|
+
return remap$(v, {
|
|
63
|
+
xMoovVersion: "X-Moov-Version",
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
export function listEventTypesGlobalsToJSON(
|
|
68
|
+
listEventTypesGlobals: ListEventTypesGlobals,
|
|
69
|
+
): string {
|
|
70
|
+
return JSON.stringify(
|
|
71
|
+
ListEventTypesGlobals$outboundSchema.parse(listEventTypesGlobals),
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
export function listEventTypesGlobalsFromJSON(
|
|
75
|
+
jsonString: string,
|
|
76
|
+
): SafeParseResult<ListEventTypesGlobals, SDKValidationError> {
|
|
77
|
+
return safeParse(
|
|
78
|
+
jsonString,
|
|
79
|
+
(x) => ListEventTypesGlobals$inboundSchema.parse(JSON.parse(x)),
|
|
80
|
+
`Failed to parse 'ListEventTypesGlobals' from JSON`,
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/** @internal */
|
|
85
|
+
export const ListEventTypesRequest$inboundSchema: z.ZodType<
|
|
86
|
+
ListEventTypesRequest,
|
|
87
|
+
z.ZodTypeDef,
|
|
88
|
+
unknown
|
|
89
|
+
> = z.object({});
|
|
90
|
+
/** @internal */
|
|
91
|
+
export type ListEventTypesRequest$Outbound = {};
|
|
92
|
+
|
|
93
|
+
/** @internal */
|
|
94
|
+
export const ListEventTypesRequest$outboundSchema: z.ZodType<
|
|
95
|
+
ListEventTypesRequest$Outbound,
|
|
96
|
+
z.ZodTypeDef,
|
|
97
|
+
ListEventTypesRequest
|
|
98
|
+
> = z.object({});
|
|
99
|
+
|
|
100
|
+
export function listEventTypesRequestToJSON(
|
|
101
|
+
listEventTypesRequest: ListEventTypesRequest,
|
|
102
|
+
): string {
|
|
103
|
+
return JSON.stringify(
|
|
104
|
+
ListEventTypesRequest$outboundSchema.parse(listEventTypesRequest),
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
export function listEventTypesRequestFromJSON(
|
|
108
|
+
jsonString: string,
|
|
109
|
+
): SafeParseResult<ListEventTypesRequest, SDKValidationError> {
|
|
110
|
+
return safeParse(
|
|
111
|
+
jsonString,
|
|
112
|
+
(x) => ListEventTypesRequest$inboundSchema.parse(JSON.parse(x)),
|
|
113
|
+
`Failed to parse 'ListEventTypesRequest' from JSON`,
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/** @internal */
|
|
118
|
+
export const ListEventTypesResponse$inboundSchema: z.ZodType<
|
|
119
|
+
ListEventTypesResponse,
|
|
120
|
+
z.ZodTypeDef,
|
|
121
|
+
unknown
|
|
122
|
+
> = z.object({
|
|
123
|
+
Headers: z.record(z.array(z.string())).default({}),
|
|
124
|
+
Result: z.array(components.EventType$inboundSchema),
|
|
125
|
+
}).transform((v) => {
|
|
126
|
+
return remap$(v, {
|
|
127
|
+
"Headers": "headers",
|
|
128
|
+
"Result": "result",
|
|
129
|
+
});
|
|
130
|
+
});
|
|
131
|
+
/** @internal */
|
|
132
|
+
export type ListEventTypesResponse$Outbound = {
|
|
133
|
+
Headers: { [k: string]: Array<string> };
|
|
134
|
+
Result: Array<components.EventType$Outbound>;
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
/** @internal */
|
|
138
|
+
export const ListEventTypesResponse$outboundSchema: z.ZodType<
|
|
139
|
+
ListEventTypesResponse$Outbound,
|
|
140
|
+
z.ZodTypeDef,
|
|
141
|
+
ListEventTypesResponse
|
|
142
|
+
> = z.object({
|
|
143
|
+
headers: z.record(z.array(z.string())),
|
|
144
|
+
result: z.array(components.EventType$outboundSchema),
|
|
145
|
+
}).transform((v) => {
|
|
146
|
+
return remap$(v, {
|
|
147
|
+
headers: "Headers",
|
|
148
|
+
result: "Result",
|
|
149
|
+
});
|
|
150
|
+
});
|
|
151
|
+
|
|
152
|
+
export function listEventTypesResponseToJSON(
|
|
153
|
+
listEventTypesResponse: ListEventTypesResponse,
|
|
154
|
+
): string {
|
|
155
|
+
return JSON.stringify(
|
|
156
|
+
ListEventTypesResponse$outboundSchema.parse(listEventTypesResponse),
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
export function listEventTypesResponseFromJSON(
|
|
160
|
+
jsonString: string,
|
|
161
|
+
): SafeParseResult<ListEventTypesResponse, SDKValidationError> {
|
|
162
|
+
return safeParse(
|
|
163
|
+
jsonString,
|
|
164
|
+
(x) => ListEventTypesResponse$inboundSchema.parse(JSON.parse(x)),
|
|
165
|
+
`Failed to parse 'ListEventTypesResponse' from JSON`,
|
|
166
|
+
);
|
|
167
|
+
}
|