@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoicetransferpayment.js","sourceRoot":"","sources":["../../src/models/components/invoicetransferpayment.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"invoicetransferpayment.js","sourceRoot":"","sources":["../../src/models/components/invoicetransferpayment.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCH,oEAMC;AACD,wEAQC;AA9CD,0CAA4B;AAC5B,qDAAiD;AAQjD,gBAAgB;AACH,QAAA,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAMH,gBAAgB;AACH,QAAA,qCAAqC,GAI9C,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAEH,SAAgB,4BAA4B,CAC1C,sBAA8C;IAE9C,OAAO,IAAI,CAAC,SAAS,CACnB,6CAAqC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CACpE,CAAC;AACJ,CAAC;AACD,SAAgB,8BAA8B,CAC5C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,4CAAoC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChE,oDAAoD,CACrD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { Webhook, Webhook$Outbound } from "./webhook.js";
|
|
5
|
+
/**
|
|
6
|
+
* Response from pinging a webhook.
|
|
7
|
+
*/
|
|
8
|
+
export type PingResponse = {
|
|
9
|
+
/**
|
|
10
|
+
* The webhook that was pinged.
|
|
11
|
+
*/
|
|
12
|
+
webhook: Webhook;
|
|
13
|
+
/**
|
|
14
|
+
* The request body sent to the target URL. It will contain an event type of `event.test` and an empty (null) data payload.
|
|
15
|
+
*/
|
|
16
|
+
requestBodySent: {
|
|
17
|
+
[k: string]: any;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* The response status code after sending a ping event to the URL.
|
|
21
|
+
*/
|
|
22
|
+
responseStatusCode: number;
|
|
23
|
+
};
|
|
24
|
+
/** @internal */
|
|
25
|
+
export declare const PingResponse$inboundSchema: z.ZodType<PingResponse, z.ZodTypeDef, unknown>;
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type PingResponse$Outbound = {
|
|
28
|
+
webhook: Webhook$Outbound;
|
|
29
|
+
requestBodySent: {
|
|
30
|
+
[k: string]: any;
|
|
31
|
+
};
|
|
32
|
+
responseStatusCode: number;
|
|
33
|
+
};
|
|
34
|
+
/** @internal */
|
|
35
|
+
export declare const PingResponse$outboundSchema: z.ZodType<PingResponse$Outbound, z.ZodTypeDef, PingResponse>;
|
|
36
|
+
export declare function pingResponseToJSON(pingResponse: PingResponse): string;
|
|
37
|
+
export declare function pingResponseFromJSON(jsonString: string): SafeParseResult<PingResponse, SDKValidationError>;
|
|
38
|
+
//# sourceMappingURL=pingresponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pingresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/pingresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,OAAO,EAEP,gBAAgB,EAEjB,MAAM,cAAc,CAAC;AAEtB;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,eAAe,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACtC;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAChD,YAAY,EACZ,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,qBAAqB,GAAG;IAClC,OAAO,EAAE,gBAAgB,CAAC;IAC1B,eAAe,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IACtC,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CACjD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,YAAY,CAKZ,CAAC;AAEH,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAErE;AACD,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,YAAY,EAAE,kBAAkB,CAAC,CAMnD"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.PingResponse$outboundSchema = exports.PingResponse$inboundSchema = void 0;
|
|
40
|
+
exports.pingResponseToJSON = pingResponseToJSON;
|
|
41
|
+
exports.pingResponseFromJSON = pingResponseFromJSON;
|
|
42
|
+
const z = __importStar(require("zod/v3"));
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
const webhook_js_1 = require("./webhook.js");
|
|
45
|
+
/** @internal */
|
|
46
|
+
exports.PingResponse$inboundSchema = z.object({
|
|
47
|
+
webhook: webhook_js_1.Webhook$inboundSchema,
|
|
48
|
+
requestBodySent: z.record(z.any()),
|
|
49
|
+
responseStatusCode: z.number().int(),
|
|
50
|
+
});
|
|
51
|
+
/** @internal */
|
|
52
|
+
exports.PingResponse$outboundSchema = z.object({
|
|
53
|
+
webhook: webhook_js_1.Webhook$outboundSchema,
|
|
54
|
+
requestBodySent: z.record(z.any()),
|
|
55
|
+
responseStatusCode: z.number().int(),
|
|
56
|
+
});
|
|
57
|
+
function pingResponseToJSON(pingResponse) {
|
|
58
|
+
return JSON.stringify(exports.PingResponse$outboundSchema.parse(pingResponse));
|
|
59
|
+
}
|
|
60
|
+
function pingResponseFromJSON(jsonString) {
|
|
61
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PingResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PingResponse' from JSON`);
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=pingresponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pingresponse.js","sourceRoot":"","sources":["../../src/models/components/pingresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DH,gDAEC;AACD,oDAQC;AApED,0CAA4B;AAC5B,qDAAiD;AAGjD,6CAKsB;AAoBtB,gBAAgB;AACH,QAAA,0BAA0B,GAInC,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,kCAAqB;IAC9B,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;IAClC,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACrC,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,2BAA2B,GAIpC,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,mCAAsB;IAC/B,eAAe,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;IAClC,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;CACrC,CAAC,CAAC;AAEH,SAAgB,kBAAkB,CAAC,YAA0B;IAC3D,OAAO,IAAI,CAAC,SAAS,CAAC,mCAA2B,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;AACzE,CAAC;AACD,SAAgB,oBAAoB,CAClC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kCAA0B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtD,0CAA0C,CAC3C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* An addenda record which was added to an ACH transfer
|
|
6
|
+
*/
|
|
7
|
+
export type TransferACHAddendaRecord = {
|
|
8
|
+
/**
|
|
9
|
+
* The ACH addenda record, which may have masked PII
|
|
10
|
+
*/
|
|
11
|
+
record: string;
|
|
12
|
+
/**
|
|
13
|
+
* Flag indicating whether or not this record has been masked
|
|
14
|
+
*/
|
|
15
|
+
isMasked: boolean;
|
|
16
|
+
};
|
|
17
|
+
/** @internal */
|
|
18
|
+
export declare const TransferACHAddendaRecord$inboundSchema: z.ZodType<TransferACHAddendaRecord, z.ZodTypeDef, unknown>;
|
|
19
|
+
/** @internal */
|
|
20
|
+
export type TransferACHAddendaRecord$Outbound = {
|
|
21
|
+
record: string;
|
|
22
|
+
isMasked: boolean;
|
|
23
|
+
};
|
|
24
|
+
/** @internal */
|
|
25
|
+
export declare const TransferACHAddendaRecord$outboundSchema: z.ZodType<TransferACHAddendaRecord$Outbound, z.ZodTypeDef, TransferACHAddendaRecord>;
|
|
26
|
+
export declare function transferACHAddendaRecordToJSON(transferACHAddendaRecord: TransferACHAddendaRecord): string;
|
|
27
|
+
export declare function transferACHAddendaRecordFromJSON(jsonString: string): SafeParseResult<TransferACHAddendaRecord, SDKValidationError>;
|
|
28
|
+
//# sourceMappingURL=transferachaddendarecord.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transferachaddendarecord.d.ts","sourceRoot":"","sources":["../../src/models/components/transferachaddendarecord.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,iCAAiC,GAAG;IAC9C,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,iCAAiC,EACjC,CAAC,CAAC,UAAU,EACZ,wBAAwB,CAIxB,CAAC;AAEH,wBAAgB,8BAA8B,CAC5C,wBAAwB,EAAE,wBAAwB,GACjD,MAAM,CAIR;AACD,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,wBAAwB,EAAE,kBAAkB,CAAC,CAM/D"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.TransferACHAddendaRecord$outboundSchema = exports.TransferACHAddendaRecord$inboundSchema = void 0;
|
|
40
|
+
exports.transferACHAddendaRecordToJSON = transferACHAddendaRecordToJSON;
|
|
41
|
+
exports.transferACHAddendaRecordFromJSON = transferACHAddendaRecordFromJSON;
|
|
42
|
+
const z = __importStar(require("zod/v3"));
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
/** @internal */
|
|
45
|
+
exports.TransferACHAddendaRecord$inboundSchema = z.object({
|
|
46
|
+
record: z.string(),
|
|
47
|
+
isMasked: z.boolean(),
|
|
48
|
+
});
|
|
49
|
+
/** @internal */
|
|
50
|
+
exports.TransferACHAddendaRecord$outboundSchema = z.object({
|
|
51
|
+
record: z.string(),
|
|
52
|
+
isMasked: z.boolean(),
|
|
53
|
+
});
|
|
54
|
+
function transferACHAddendaRecordToJSON(transferACHAddendaRecord) {
|
|
55
|
+
return JSON.stringify(exports.TransferACHAddendaRecord$outboundSchema.parse(transferACHAddendaRecord));
|
|
56
|
+
}
|
|
57
|
+
function transferACHAddendaRecordFromJSON(jsonString) {
|
|
58
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TransferACHAddendaRecord$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TransferACHAddendaRecord' from JSON`);
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=transferachaddendarecord.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transferachaddendarecord.js","sourceRoot":"","sources":["../../src/models/components/transferachaddendarecord.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CH,wEAMC;AACD,4EAQC;AA3DD,0CAA4B;AAC5B,qDAAiD;AAkBjD,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;CACtB,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;CACtB,CAAC,CAAC;AAEH,SAAgB,8BAA8B,CAC5C,wBAAkD;IAElD,OAAO,IAAI,CAAC,SAAS,CACnB,+CAAuC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CACxE,CAAC;AACJ,CAAC;AACD,SAAgB,gCAAgC,CAC9C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8CAAsC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClE,sDAAsD,CACvD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { WebhookEventType } from "./webhookeventtype.js";
|
|
5
|
+
import { WebhookStatus } from "./webhookstatus.js";
|
|
6
|
+
/**
|
|
7
|
+
* Request body for updating an existing webhook.
|
|
8
|
+
*/
|
|
9
|
+
export type UpdateWebhook = {
|
|
10
|
+
/**
|
|
11
|
+
* The URL where webhook events will be sent.
|
|
12
|
+
*/
|
|
13
|
+
url: string;
|
|
14
|
+
/**
|
|
15
|
+
* The status of the webhook.
|
|
16
|
+
*/
|
|
17
|
+
status: WebhookStatus;
|
|
18
|
+
/**
|
|
19
|
+
* The list of event types this webhook should subscribe to.
|
|
20
|
+
*/
|
|
21
|
+
eventTypes: Array<WebhookEventType>;
|
|
22
|
+
/**
|
|
23
|
+
* A description of the webhook for reference. Can be an empty string.
|
|
24
|
+
*/
|
|
25
|
+
description: string;
|
|
26
|
+
};
|
|
27
|
+
/** @internal */
|
|
28
|
+
export declare const UpdateWebhook$inboundSchema: z.ZodType<UpdateWebhook, z.ZodTypeDef, unknown>;
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type UpdateWebhook$Outbound = {
|
|
31
|
+
url: string;
|
|
32
|
+
status: string;
|
|
33
|
+
eventTypes: Array<string>;
|
|
34
|
+
description: string;
|
|
35
|
+
};
|
|
36
|
+
/** @internal */
|
|
37
|
+
export declare const UpdateWebhook$outboundSchema: z.ZodType<UpdateWebhook$Outbound, z.ZodTypeDef, UpdateWebhook>;
|
|
38
|
+
export declare function updateWebhookToJSON(updateWebhook: UpdateWebhook): string;
|
|
39
|
+
export declare function updateWebhookFromJSON(jsonString: string): SafeParseResult<UpdateWebhook, SDKValidationError>;
|
|
40
|
+
//# sourceMappingURL=updatewebhook.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updatewebhook.d.ts","sourceRoot":"","sources":["../../src/models/components/updatewebhook.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,gBAAgB,EAGjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,aAAa,EAGd,MAAM,oBAAoB,CAAC;AAE5B;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,MAAM,EAAE,aAAa,CAAC;IACtB;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;IACpC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CACjD,aAAa,EACb,CAAC,CAAC,UAAU,EACZ,OAAO,CAMP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,sBAAsB,GAAG;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,aAAa,CAMb,CAAC;AAEH,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,CAExE;AACD,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAMpD"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.UpdateWebhook$outboundSchema = exports.UpdateWebhook$inboundSchema = void 0;
|
|
40
|
+
exports.updateWebhookToJSON = updateWebhookToJSON;
|
|
41
|
+
exports.updateWebhookFromJSON = updateWebhookFromJSON;
|
|
42
|
+
const z = __importStar(require("zod/v3"));
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
const webhookeventtype_js_1 = require("./webhookeventtype.js");
|
|
45
|
+
const webhookstatus_js_1 = require("./webhookstatus.js");
|
|
46
|
+
/** @internal */
|
|
47
|
+
exports.UpdateWebhook$inboundSchema = z.object({
|
|
48
|
+
url: z.string(),
|
|
49
|
+
status: webhookstatus_js_1.WebhookStatus$inboundSchema,
|
|
50
|
+
eventTypes: z.array(webhookeventtype_js_1.WebhookEventType$inboundSchema),
|
|
51
|
+
description: z.string(),
|
|
52
|
+
});
|
|
53
|
+
/** @internal */
|
|
54
|
+
exports.UpdateWebhook$outboundSchema = z.object({
|
|
55
|
+
url: z.string(),
|
|
56
|
+
status: webhookstatus_js_1.WebhookStatus$outboundSchema,
|
|
57
|
+
eventTypes: z.array(webhookeventtype_js_1.WebhookEventType$outboundSchema),
|
|
58
|
+
description: z.string(),
|
|
59
|
+
});
|
|
60
|
+
function updateWebhookToJSON(updateWebhook) {
|
|
61
|
+
return JSON.stringify(exports.UpdateWebhook$outboundSchema.parse(updateWebhook));
|
|
62
|
+
}
|
|
63
|
+
function updateWebhookFromJSON(jsonString) {
|
|
64
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateWebhook$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateWebhook' from JSON`);
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=updatewebhook.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updatewebhook.js","sourceRoot":"","sources":["../../src/models/components/updatewebhook.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsEH,kDAEC;AACD,sDAQC;AA/ED,0CAA4B;AAC5B,qDAAiD;AAGjD,+DAI+B;AAC/B,yDAI4B;AAwB5B,gBAAgB;AACH,QAAA,2BAA2B,GAIpC,CAAC,CAAC,MAAM,CAAC;IACX,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,MAAM,EAAE,8CAA2B;IACnC,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,oDAA8B,CAAC;IACnD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC;AASH,gBAAgB;AACH,QAAA,4BAA4B,GAIrC,CAAC,CAAC,MAAM,CAAC;IACX,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,MAAM,EAAE,+CAA4B;IACpC,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,qDAA+B,CAAC;IACpD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC;AAEH,SAAgB,mBAAmB,CAAC,aAA4B;IAC9D,OAAO,IAAI,CAAC,SAAS,CAAC,oCAA4B,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;AAC3E,CAAC;AACD,SAAgB,qBAAqB,CACnC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mCAA2B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvD,2CAA2C,CAC5C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { WebhookEventType } from "./webhookeventtype.js";
|
|
5
|
+
import { WebhookStatus } from "./webhookstatus.js";
|
|
6
|
+
/**
|
|
7
|
+
* A configured webhook endpoint that receives event notifications.
|
|
8
|
+
*/
|
|
9
|
+
export type Webhook = {
|
|
10
|
+
/**
|
|
11
|
+
* Unique identifier for the webhook.
|
|
12
|
+
*/
|
|
13
|
+
webhookID: string;
|
|
14
|
+
/**
|
|
15
|
+
* The URL where webhook events will be sent.
|
|
16
|
+
*/
|
|
17
|
+
url: string;
|
|
18
|
+
/**
|
|
19
|
+
* The status of a webhook.
|
|
20
|
+
*/
|
|
21
|
+
status: WebhookStatus;
|
|
22
|
+
/**
|
|
23
|
+
* The list of event types this webhook is subscribed to.
|
|
24
|
+
*/
|
|
25
|
+
eventTypes: Array<WebhookEventType>;
|
|
26
|
+
/**
|
|
27
|
+
* A description of the webhook for reference.
|
|
28
|
+
*/
|
|
29
|
+
description: string;
|
|
30
|
+
/**
|
|
31
|
+
* Timestamp of when the webhook was created.
|
|
32
|
+
*/
|
|
33
|
+
createdOn: Date;
|
|
34
|
+
/**
|
|
35
|
+
* Timestamp of when the webhook was last updated.
|
|
36
|
+
*/
|
|
37
|
+
updatedOn: Date;
|
|
38
|
+
/**
|
|
39
|
+
* Timestamp of when the webhook last received an event.
|
|
40
|
+
*/
|
|
41
|
+
lastUsedOn?: Date | undefined;
|
|
42
|
+
};
|
|
43
|
+
/** @internal */
|
|
44
|
+
export declare const Webhook$inboundSchema: z.ZodType<Webhook, z.ZodTypeDef, unknown>;
|
|
45
|
+
/** @internal */
|
|
46
|
+
export type Webhook$Outbound = {
|
|
47
|
+
webhookID: string;
|
|
48
|
+
url: string;
|
|
49
|
+
status: string;
|
|
50
|
+
eventTypes: Array<string>;
|
|
51
|
+
description: string;
|
|
52
|
+
createdOn: string;
|
|
53
|
+
updatedOn: string;
|
|
54
|
+
lastUsedOn?: string | undefined;
|
|
55
|
+
};
|
|
56
|
+
/** @internal */
|
|
57
|
+
export declare const Webhook$outboundSchema: z.ZodType<Webhook$Outbound, z.ZodTypeDef, Webhook>;
|
|
58
|
+
export declare function webhookToJSON(webhook: Webhook): string;
|
|
59
|
+
export declare function webhookFromJSON(jsonString: string): SafeParseResult<Webhook, SDKValidationError>;
|
|
60
|
+
//# sourceMappingURL=webhook.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../../src/models/components/webhook.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,gBAAgB,EAGjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,aAAa,EAGd,MAAM,oBAAoB,CAAC;AAE5B;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,MAAM,EAAE,aAAa,CAAC;IACtB;;OAEG;IACH,UAAU,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;IACpC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qBAAqB,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,UAAU,EAAE,OAAO,CAgBxE,CAAC;AACL,gBAAgB;AAChB,MAAM,MAAM,gBAAgB,GAAG;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,OAAO,CAC5C,gBAAgB,EAChB,CAAC,CAAC,UAAU,EACZ,OAAO,CAUP,CAAC;AAEH,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAEtD;AACD,wBAAgB,eAAe,CAC7B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAM9C"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Webhook$outboundSchema = exports.Webhook$inboundSchema = void 0;
|
|
40
|
+
exports.webhookToJSON = webhookToJSON;
|
|
41
|
+
exports.webhookFromJSON = webhookFromJSON;
|
|
42
|
+
const z = __importStar(require("zod/v3"));
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
const webhookeventtype_js_1 = require("./webhookeventtype.js");
|
|
45
|
+
const webhookstatus_js_1 = require("./webhookstatus.js");
|
|
46
|
+
/** @internal */
|
|
47
|
+
exports.Webhook$inboundSchema = z.object({
|
|
48
|
+
webhookID: z.string(),
|
|
49
|
+
url: z.string(),
|
|
50
|
+
status: webhookstatus_js_1.WebhookStatus$inboundSchema,
|
|
51
|
+
eventTypes: z.array(webhookeventtype_js_1.WebhookEventType$inboundSchema),
|
|
52
|
+
description: z.string(),
|
|
53
|
+
createdOn: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
54
|
+
updatedOn: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
55
|
+
lastUsedOn: z.string().datetime({ offset: true }).transform(v => new Date(v)).optional(),
|
|
56
|
+
});
|
|
57
|
+
/** @internal */
|
|
58
|
+
exports.Webhook$outboundSchema = z.object({
|
|
59
|
+
webhookID: z.string(),
|
|
60
|
+
url: z.string(),
|
|
61
|
+
status: webhookstatus_js_1.WebhookStatus$outboundSchema,
|
|
62
|
+
eventTypes: z.array(webhookeventtype_js_1.WebhookEventType$outboundSchema),
|
|
63
|
+
description: z.string(),
|
|
64
|
+
createdOn: z.date().transform(v => v.toISOString()),
|
|
65
|
+
updatedOn: z.date().transform(v => v.toISOString()),
|
|
66
|
+
lastUsedOn: z.date().transform(v => v.toISOString()).optional(),
|
|
67
|
+
});
|
|
68
|
+
function webhookToJSON(webhook) {
|
|
69
|
+
return JSON.stringify(exports.Webhook$outboundSchema.parse(webhook));
|
|
70
|
+
}
|
|
71
|
+
function webhookFromJSON(jsonString) {
|
|
72
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Webhook$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Webhook' from JSON`);
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=webhook.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook.js","sourceRoot":"","sources":["../../src/models/components/webhook.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqGH,sCAEC;AACD,0CAQC;AA9GD,0CAA4B;AAC5B,qDAAiD;AAGjD,+DAI+B;AAC/B,yDAI4B;AAwC5B,gBAAgB;AACH,QAAA,qBAAqB,GAChC,CAAC,CAAC,MAAM,CAAC;IACP,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,MAAM,EAAE,8CAA2B;IACnC,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,oDAA8B,CAAC;IACnD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAC7D,IAAI,IAAI,CAAC,CAAC,CAAC,CACZ;IACD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAC7D,IAAI,IAAI,CAAC,CAAC,CAAC,CACZ;IACD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAC9D,IAAI,IAAI,CAAC,CAAC,CAAC,CACZ,CAAC,QAAQ,EAAE;CACb,CAAC,CAAC;AAaL,gBAAgB;AACH,QAAA,sBAAsB,GAI/B,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,MAAM,EAAE,+CAA4B;IACpC,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,qDAA+B,CAAC;IACpD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IACnD,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IACnD,UAAU,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,QAAQ,EAAE;CAChE,CAAC,CAAC;AAEH,SAAgB,aAAa,CAAC,OAAgB;IAC5C,OAAO,IAAI,CAAC,SAAS,CAAC,8BAAsB,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AAC/D,CAAC;AACD,SAAgB,eAAe,CAC7B,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,6BAAqB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjD,qCAAqC,CACtC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* The secret used to verify webhook payloads.
|
|
6
|
+
*/
|
|
7
|
+
export type WebhookSecret = {
|
|
8
|
+
/**
|
|
9
|
+
* The secret key used to sign webhook payloads. Use this to verify the authenticity of incoming webhooks.
|
|
10
|
+
*/
|
|
11
|
+
secret: string;
|
|
12
|
+
};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare const WebhookSecret$inboundSchema: z.ZodType<WebhookSecret, z.ZodTypeDef, unknown>;
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type WebhookSecret$Outbound = {
|
|
17
|
+
secret: string;
|
|
18
|
+
};
|
|
19
|
+
/** @internal */
|
|
20
|
+
export declare const WebhookSecret$outboundSchema: z.ZodType<WebhookSecret$Outbound, z.ZodTypeDef, WebhookSecret>;
|
|
21
|
+
export declare function webhookSecretToJSON(webhookSecret: WebhookSecret): string;
|
|
22
|
+
export declare function webhookSecretFromJSON(jsonString: string): SafeParseResult<WebhookSecret, SDKValidationError>;
|
|
23
|
+
//# sourceMappingURL=webhooksecret.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhooksecret.d.ts","sourceRoot":"","sources":["../../src/models/components/webhooksecret.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CACjD,aAAa,EACb,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,sBAAsB,GAAG;IACnC,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,aAAa,CAGb,CAAC;AAEH,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,CAExE;AACD,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAMpD"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.WebhookSecret$outboundSchema = exports.WebhookSecret$inboundSchema = void 0;
|
|
40
|
+
exports.webhookSecretToJSON = webhookSecretToJSON;
|
|
41
|
+
exports.webhookSecretFromJSON = webhookSecretFromJSON;
|
|
42
|
+
const z = __importStar(require("zod/v3"));
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
/** @internal */
|
|
45
|
+
exports.WebhookSecret$inboundSchema = z.object({
|
|
46
|
+
secret: z.string(),
|
|
47
|
+
});
|
|
48
|
+
/** @internal */
|
|
49
|
+
exports.WebhookSecret$outboundSchema = z.object({
|
|
50
|
+
secret: z.string(),
|
|
51
|
+
});
|
|
52
|
+
function webhookSecretToJSON(webhookSecret) {
|
|
53
|
+
return JSON.stringify(exports.WebhookSecret$outboundSchema.parse(webhookSecret));
|
|
54
|
+
}
|
|
55
|
+
function webhookSecretFromJSON(jsonString) {
|
|
56
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.WebhookSecret$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WebhookSecret' from JSON`);
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=webhooksecret.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhooksecret.js","sourceRoot":"","sources":["../../src/models/components/webhooksecret.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuCH,kDAEC;AACD,sDAQC;AAhDD,0CAA4B;AAC5B,qDAAiD;AAcjD,gBAAgB;AACH,QAAA,2BAA2B,GAIpC,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAMH,gBAAgB;AACH,QAAA,4BAA4B,GAIrC,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAEH,SAAgB,mBAAmB,CAAC,aAA4B;IAC9D,OAAO,IAAI,CAAC,SAAS,CAAC,oCAA4B,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;AAC3E,CAAC;AACD,SAAgB,qBAAqB,CACnC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mCAA2B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvD,2CAA2C,CAC5C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* The status of a webhook.
|
|
5
|
+
*/
|
|
6
|
+
export declare const WebhookStatus: {
|
|
7
|
+
readonly Enabled: "enabled";
|
|
8
|
+
readonly Disabled: "disabled";
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* The status of a webhook.
|
|
12
|
+
*/
|
|
13
|
+
export type WebhookStatus = ClosedEnum<typeof WebhookStatus>;
|
|
14
|
+
/** @internal */
|
|
15
|
+
export declare const WebhookStatus$inboundSchema: z.ZodNativeEnum<typeof WebhookStatus>;
|
|
16
|
+
/** @internal */
|
|
17
|
+
export declare const WebhookStatus$outboundSchema: z.ZodNativeEnum<typeof WebhookStatus>;
|
|
18
|
+
//# sourceMappingURL=webhookstatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhookstatus.d.ts","sourceRoot":"","sources":["../../src/models/components/webhookstatus.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,aAAa;;;CAGhB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC;AAE7D,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,aAAa,CACvD,OAAO,aAAa,CACS,CAAC;AAChC,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,aAAa,CACxD,OAAO,aAAa,CACS,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.WebhookStatus$outboundSchema = exports.WebhookStatus$inboundSchema = exports.WebhookStatus = void 0;
|
|
40
|
+
const z = __importStar(require("zod/v3"));
|
|
41
|
+
/**
|
|
42
|
+
* The status of a webhook.
|
|
43
|
+
*/
|
|
44
|
+
exports.WebhookStatus = {
|
|
45
|
+
Enabled: "enabled",
|
|
46
|
+
Disabled: "disabled",
|
|
47
|
+
};
|
|
48
|
+
/** @internal */
|
|
49
|
+
exports.WebhookStatus$inboundSchema = z.nativeEnum(exports.WebhookStatus);
|
|
50
|
+
/** @internal */
|
|
51
|
+
exports.WebhookStatus$outboundSchema = exports.WebhookStatus$inboundSchema;
|
|
52
|
+
//# sourceMappingURL=webhookstatus.js.map
|