@moovio/sdk 0.14.25 → 0.14.26
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/bin/mcp-server.js +78 -6
- package/bin/mcp-server.js.map +13 -10
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/index.d.ts +3 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +3 -0
- package/models/components/index.js.map +1 -1
- package/models/components/webhookdata.d.ts +5 -2
- package/models/components/webhookdata.d.ts.map +1 -1
- package/models/components/webhookdata.js +9 -0
- package/models/components/webhookdata.js.map +1 -1
- package/models/components/webhookdataticketcreated.d.ts +31 -0
- package/models/components/webhookdataticketcreated.d.ts.map +1 -0
- package/models/components/webhookdataticketcreated.js +71 -0
- package/models/components/webhookdataticketcreated.js.map +1 -0
- package/models/components/webhookdataticketmessageadded.d.ts +31 -0
- package/models/components/webhookdataticketmessageadded.d.ts.map +1 -0
- package/models/components/webhookdataticketmessageadded.js +71 -0
- package/models/components/webhookdataticketmessageadded.js.map +1 -0
- package/models/components/webhookdataticketupdated.d.ts +34 -0
- package/models/components/webhookdataticketupdated.d.ts.map +1 -0
- package/models/components/webhookdataticketupdated.js +74 -0
- package/models/components/webhookdataticketupdated.js.map +1 -0
- package/models/components/webhookeventtype.d.ts +9 -0
- package/models/components/webhookeventtype.d.ts.map +1 -1
- package/models/components/webhookeventtype.js +3 -0
- package/models/components/webhookeventtype.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +4 -1
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/index.ts +3 -0
- package/src/models/components/webhookdata.ts +30 -0
- package/src/models/components/webhookdataticketcreated.ts +70 -0
- package/src/models/components/webhookdataticketmessageadded.ts +72 -0
- package/src/models/components/webhookdataticketupdated.ts +79 -0
- package/src/models/components/webhookeventtype.ts +3 -0
|
@@ -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.WebhookDataTicketUpdated$ = exports.WebhookDataTicketUpdated$outboundSchema = exports.WebhookDataTicketUpdated$inboundSchema = void 0;
|
|
40
|
+
exports.webhookDataTicketUpdatedToJSON = webhookDataTicketUpdatedToJSON;
|
|
41
|
+
exports.webhookDataTicketUpdatedFromJSON = webhookDataTicketUpdatedFromJSON;
|
|
42
|
+
const z = __importStar(require("zod"));
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
const ticketstatus_js_1 = require("./ticketstatus.js");
|
|
45
|
+
/** @internal */
|
|
46
|
+
exports.WebhookDataTicketUpdated$inboundSchema = z.object({
|
|
47
|
+
accountID: z.string(),
|
|
48
|
+
ticketID: z.string(),
|
|
49
|
+
status: ticketstatus_js_1.TicketStatus$inboundSchema,
|
|
50
|
+
});
|
|
51
|
+
/** @internal */
|
|
52
|
+
exports.WebhookDataTicketUpdated$outboundSchema = z.object({
|
|
53
|
+
accountID: z.string(),
|
|
54
|
+
ticketID: z.string(),
|
|
55
|
+
status: ticketstatus_js_1.TicketStatus$outboundSchema,
|
|
56
|
+
});
|
|
57
|
+
/**
|
|
58
|
+
* @internal
|
|
59
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
60
|
+
*/
|
|
61
|
+
var WebhookDataTicketUpdated$;
|
|
62
|
+
(function (WebhookDataTicketUpdated$) {
|
|
63
|
+
/** @deprecated use `WebhookDataTicketUpdated$inboundSchema` instead. */
|
|
64
|
+
WebhookDataTicketUpdated$.inboundSchema = exports.WebhookDataTicketUpdated$inboundSchema;
|
|
65
|
+
/** @deprecated use `WebhookDataTicketUpdated$outboundSchema` instead. */
|
|
66
|
+
WebhookDataTicketUpdated$.outboundSchema = exports.WebhookDataTicketUpdated$outboundSchema;
|
|
67
|
+
})(WebhookDataTicketUpdated$ || (exports.WebhookDataTicketUpdated$ = WebhookDataTicketUpdated$ = {}));
|
|
68
|
+
function webhookDataTicketUpdatedToJSON(webhookDataTicketUpdated) {
|
|
69
|
+
return JSON.stringify(exports.WebhookDataTicketUpdated$outboundSchema.parse(webhookDataTicketUpdated));
|
|
70
|
+
}
|
|
71
|
+
function webhookDataTicketUpdatedFromJSON(jsonString) {
|
|
72
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.WebhookDataTicketUpdated$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WebhookDataTicketUpdated' from JSON`);
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=webhookdataticketupdated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhookdataticketupdated.js","sourceRoot":"","sources":["../../src/models/components/webhookdataticketupdated.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4DH,wEAMC;AAED,4EAQC;AA1ED,uCAAyB;AACzB,qDAAiD;AAGjD,uDAI2B;AAQ3B,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,MAAM,EAAE,4CAA0B;CACnC,CAAC,CAAC;AASH,gBAAgB;AACH,QAAA,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,MAAM,EAAE,6CAA2B;CACpC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,yBAAyB,CAOzC;AAPD,WAAiB,yBAAyB;IACxC,wEAAwE;IAC3D,uCAAa,GAAG,8CAAsC,CAAC;IACpE,yEAAyE;IAC5D,wCAAc,GAAG,+CAAuC,CAAC;AAGxE,CAAC,EAPgB,yBAAyB,yCAAzB,yBAAyB,QAOzC;AAED,SAAgB,8BAA8B,CAC5C,wBAAkD;IAElD,OAAO,IAAI,CAAC,SAAS,CACnB,+CAAuC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CACxE,CAAC;AACJ,CAAC;AAED,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"}
|
|
@@ -31,6 +31,9 @@ export declare const WebhookEventType: {
|
|
|
31
31
|
readonly SweepUpdated: "sweep.updated";
|
|
32
32
|
readonly TerminalApplicationCreated: "terminalApplication.created";
|
|
33
33
|
readonly TerminalApplicationUpdated: "terminalApplication.updated";
|
|
34
|
+
readonly TicketCreated: "ticket.created";
|
|
35
|
+
readonly TicketUpdated: "ticket.updated";
|
|
36
|
+
readonly TicketMessageAdded: "ticket.messageAdded";
|
|
34
37
|
readonly TransferCreated: "transfer.created";
|
|
35
38
|
readonly TransferUpdated: "transfer.updated";
|
|
36
39
|
readonly WalletTransactionUpdated: "walletTransaction.updated";
|
|
@@ -77,6 +80,9 @@ export declare namespace WebhookEventType$ {
|
|
|
77
80
|
readonly SweepUpdated: "sweep.updated";
|
|
78
81
|
readonly TerminalApplicationCreated: "terminalApplication.created";
|
|
79
82
|
readonly TerminalApplicationUpdated: "terminalApplication.updated";
|
|
83
|
+
readonly TicketCreated: "ticket.created";
|
|
84
|
+
readonly TicketUpdated: "ticket.updated";
|
|
85
|
+
readonly TicketMessageAdded: "ticket.messageAdded";
|
|
80
86
|
readonly TransferCreated: "transfer.created";
|
|
81
87
|
readonly TransferUpdated: "transfer.updated";
|
|
82
88
|
readonly WalletTransactionUpdated: "walletTransaction.updated";
|
|
@@ -110,6 +116,9 @@ export declare namespace WebhookEventType$ {
|
|
|
110
116
|
readonly SweepUpdated: "sweep.updated";
|
|
111
117
|
readonly TerminalApplicationCreated: "terminalApplication.created";
|
|
112
118
|
readonly TerminalApplicationUpdated: "terminalApplication.updated";
|
|
119
|
+
readonly TicketCreated: "ticket.created";
|
|
120
|
+
readonly TicketUpdated: "ticket.updated";
|
|
121
|
+
readonly TicketMessageAdded: "ticket.messageAdded";
|
|
113
122
|
readonly TransferCreated: "transfer.created";
|
|
114
123
|
readonly TransferUpdated: "transfer.updated";
|
|
115
124
|
readonly WalletTransactionUpdated: "walletTransaction.updated";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhookeventtype.d.ts","sourceRoot":"","sources":["../../src/models/components/webhookeventtype.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"webhookeventtype.d.ts","sourceRoot":"","sources":["../../src/models/components/webhookeventtype.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCnB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEnE,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,aAAa,CAC1D,OAAO,gBAAgB,CACS,CAAC;AAEnC,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,aAAa,CAC3D,OAAO,gBAAgB,CACS,CAAC;AAEnC;;;GAGG;AACH,yBAAiB,iBAAiB,CAAC;IACjC,gEAAgE;IACzD,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAiC,CAAC;IAC5D,iEAAiE;IAC1D,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAkC,CAAC;CAC/D"}
|
|
@@ -69,6 +69,9 @@ exports.WebhookEventType = {
|
|
|
69
69
|
SweepUpdated: "sweep.updated",
|
|
70
70
|
TerminalApplicationCreated: "terminalApplication.created",
|
|
71
71
|
TerminalApplicationUpdated: "terminalApplication.updated",
|
|
72
|
+
TicketCreated: "ticket.created",
|
|
73
|
+
TicketUpdated: "ticket.updated",
|
|
74
|
+
TicketMessageAdded: "ticket.messageAdded",
|
|
72
75
|
TransferCreated: "transfer.created",
|
|
73
76
|
TransferUpdated: "transfer.updated",
|
|
74
77
|
WalletTransactionUpdated: "walletTransaction.updated",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhookeventtype.js","sourceRoot":"","sources":["../../src/models/components/webhookeventtype.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGzB;;GAEG;AACU,QAAA,gBAAgB,GAAG;IAC9B,QAAQ,EAAE,GAAG;IACb,cAAc,EAAE,iBAAiB;IACjC,cAAc,EAAE,iBAAiB;IACjC,mBAAmB,EAAE,sBAAsB;IAC3C,cAAc,EAAE,iBAAiB;IACjC,kBAAkB,EAAE,qBAAqB;IACzC,kBAAkB,EAAE,qBAAqB;IACzC,kBAAkB,EAAE,qBAAqB;IACzC,mBAAmB,EAAE,sBAAsB;IAC3C,mBAAmB,EAAE,sBAAsB;IAC3C,eAAe,EAAE,kBAAkB;IACnC,mBAAmB,EAAE,sBAAsB;IAC3C,iBAAiB,EAAE,oBAAoB;IACvC,cAAc,EAAE,iBAAiB;IACjC,cAAc,EAAE,iBAAiB;IACjC,gBAAgB,EAAE,mBAAmB;IACrC,oBAAoB,EAAE,uBAAuB;IAC7C,qBAAqB,EAAE,wBAAwB;IAC/C,aAAa,EAAE,gBAAgB;IAC/B,aAAa,EAAE,gBAAgB;IAC/B,qBAAqB,EAAE,wBAAwB;IAC/C,qBAAqB,EAAE,wBAAwB;IAC/C,qBAAqB,EAAE,wBAAwB;IAC/C,YAAY,EAAE,eAAe;IAC7B,YAAY,EAAE,eAAe;IAC7B,0BAA0B,EAAE,6BAA6B;IACzD,0BAA0B,EAAE,6BAA6B;IACzD,eAAe,EAAE,kBAAkB;IACnC,eAAe,EAAE,kBAAkB;IACnC,wBAAwB,EAAE,2BAA2B;CAC7C,CAAC;AAMX,gBAAgB;AACH,QAAA,8BAA8B,GAEvC,CAAC,CAAC,UAAU,CAAC,wBAAgB,CAAC,CAAC;AAEnC,gBAAgB;AACH,QAAA,+BAA+B,GAExC,sCAA8B,CAAC;AAEnC;;;GAGG;AACH,IAAiB,iBAAiB,CAKjC;AALD,WAAiB,iBAAiB;IAChC,gEAAgE;IACnD,+BAAa,GAAG,sCAA8B,CAAC;IAC5D,iEAAiE;IACpD,gCAAc,GAAG,uCAA+B,CAAC;AAChE,CAAC,EALgB,iBAAiB,iCAAjB,iBAAiB,QAKjC"}
|
|
1
|
+
{"version":3,"file":"webhookeventtype.js","sourceRoot":"","sources":["../../src/models/components/webhookeventtype.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGzB;;GAEG;AACU,QAAA,gBAAgB,GAAG;IAC9B,QAAQ,EAAE,GAAG;IACb,cAAc,EAAE,iBAAiB;IACjC,cAAc,EAAE,iBAAiB;IACjC,mBAAmB,EAAE,sBAAsB;IAC3C,cAAc,EAAE,iBAAiB;IACjC,kBAAkB,EAAE,qBAAqB;IACzC,kBAAkB,EAAE,qBAAqB;IACzC,kBAAkB,EAAE,qBAAqB;IACzC,mBAAmB,EAAE,sBAAsB;IAC3C,mBAAmB,EAAE,sBAAsB;IAC3C,eAAe,EAAE,kBAAkB;IACnC,mBAAmB,EAAE,sBAAsB;IAC3C,iBAAiB,EAAE,oBAAoB;IACvC,cAAc,EAAE,iBAAiB;IACjC,cAAc,EAAE,iBAAiB;IACjC,gBAAgB,EAAE,mBAAmB;IACrC,oBAAoB,EAAE,uBAAuB;IAC7C,qBAAqB,EAAE,wBAAwB;IAC/C,aAAa,EAAE,gBAAgB;IAC/B,aAAa,EAAE,gBAAgB;IAC/B,qBAAqB,EAAE,wBAAwB;IAC/C,qBAAqB,EAAE,wBAAwB;IAC/C,qBAAqB,EAAE,wBAAwB;IAC/C,YAAY,EAAE,eAAe;IAC7B,YAAY,EAAE,eAAe;IAC7B,0BAA0B,EAAE,6BAA6B;IACzD,0BAA0B,EAAE,6BAA6B;IACzD,aAAa,EAAE,gBAAgB;IAC/B,aAAa,EAAE,gBAAgB;IAC/B,kBAAkB,EAAE,qBAAqB;IACzC,eAAe,EAAE,kBAAkB;IACnC,eAAe,EAAE,kBAAkB;IACnC,wBAAwB,EAAE,2BAA2B;CAC7C,CAAC;AAMX,gBAAgB;AACH,QAAA,8BAA8B,GAEvC,CAAC,CAAC,UAAU,CAAC,wBAAgB,CAAC,CAAC;AAEnC,gBAAgB;AACH,QAAA,+BAA+B,GAExC,sCAA8B,CAAC;AAEnC;;;GAGG;AACH,IAAiB,iBAAiB,CAKjC;AALD,WAAiB,iBAAiB;IAChC,gEAAgE;IACnD,+BAAa,GAAG,sCAA8B,CAAC;IAC5D,iEAAiE;IACpD,gCAAc,GAAG,uCAA+B,CAAC;AAChE,CAAC,EALgB,iBAAiB,iCAAjB,iBAAiB,QAKjC"}
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -73,7 +73,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
73
73
|
export const SDK_METADATA = {
|
|
74
74
|
language: "typescript",
|
|
75
75
|
openapiDocVersion: "latest",
|
|
76
|
-
sdkVersion: "0.14.
|
|
77
|
-
genVersion: "2.
|
|
78
|
-
userAgent: "speakeasy-sdk/typescript 0.14.
|
|
76
|
+
sdkVersion: "0.14.26",
|
|
77
|
+
genVersion: "2.684.0",
|
|
78
|
+
userAgent: "speakeasy-sdk/typescript 0.14.26 2.684.0 latest @moovio/sdk",
|
|
79
79
|
} as const;
|
package/src/lib/security.ts
CHANGED
|
@@ -83,7 +83,10 @@ type SecurityInputOAuth2 = {
|
|
|
83
83
|
type SecurityInputOAuth2ClientCredentials = {
|
|
84
84
|
type: "oauth2:client_credentials";
|
|
85
85
|
value:
|
|
86
|
-
| {
|
|
86
|
+
| {
|
|
87
|
+
clientID?: string | undefined;
|
|
88
|
+
clientSecret?: string | undefined;
|
|
89
|
+
}
|
|
87
90
|
| null
|
|
88
91
|
| string
|
|
89
92
|
| undefined;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -443,6 +443,9 @@ export * from "./webhookdatasweepcreated.js";
|
|
|
443
443
|
export * from "./webhookdatasweepupdated.js";
|
|
444
444
|
export * from "./webhookdataterminalapplicationcreated.js";
|
|
445
445
|
export * from "./webhookdataterminalapplicationupdated.js";
|
|
446
|
+
export * from "./webhookdataticketcreated.js";
|
|
447
|
+
export * from "./webhookdataticketmessageadded.js";
|
|
448
|
+
export * from "./webhookdataticketupdated.js";
|
|
446
449
|
export * from "./webhookdatatransfercreated.js";
|
|
447
450
|
export * from "./webhookdatatransferstatus.js";
|
|
448
451
|
export * from "./webhookdatatransferupdated.js";
|
|
@@ -162,6 +162,24 @@ import {
|
|
|
162
162
|
WebhookDataTerminalApplicationUpdated$Outbound,
|
|
163
163
|
WebhookDataTerminalApplicationUpdated$outboundSchema,
|
|
164
164
|
} from "./webhookdataterminalapplicationupdated.js";
|
|
165
|
+
import {
|
|
166
|
+
WebhookDataTicketCreated,
|
|
167
|
+
WebhookDataTicketCreated$inboundSchema,
|
|
168
|
+
WebhookDataTicketCreated$Outbound,
|
|
169
|
+
WebhookDataTicketCreated$outboundSchema,
|
|
170
|
+
} from "./webhookdataticketcreated.js";
|
|
171
|
+
import {
|
|
172
|
+
WebhookDataTicketMessageAdded,
|
|
173
|
+
WebhookDataTicketMessageAdded$inboundSchema,
|
|
174
|
+
WebhookDataTicketMessageAdded$Outbound,
|
|
175
|
+
WebhookDataTicketMessageAdded$outboundSchema,
|
|
176
|
+
} from "./webhookdataticketmessageadded.js";
|
|
177
|
+
import {
|
|
178
|
+
WebhookDataTicketUpdated,
|
|
179
|
+
WebhookDataTicketUpdated$inboundSchema,
|
|
180
|
+
WebhookDataTicketUpdated$Outbound,
|
|
181
|
+
WebhookDataTicketUpdated$outboundSchema,
|
|
182
|
+
} from "./webhookdataticketupdated.js";
|
|
165
183
|
import {
|
|
166
184
|
WebhookDataTransferCreated,
|
|
167
185
|
WebhookDataTransferCreated$inboundSchema,
|
|
@@ -199,6 +217,7 @@ export type WebhookData =
|
|
|
199
217
|
| WebhookDataPaymentMethodDisabled
|
|
200
218
|
| WebhookDataRefundCreated
|
|
201
219
|
| WebhookDataSweepUpdated
|
|
220
|
+
| WebhookDataTicketUpdated
|
|
202
221
|
| WebhookDataTransferCreated
|
|
203
222
|
| WebhookDataBalanceUpdated
|
|
204
223
|
| WebhookDataBankAccountCreated
|
|
@@ -210,6 +229,8 @@ export type WebhookData =
|
|
|
210
229
|
| WebhookDataSweepCreated
|
|
211
230
|
| WebhookDataTerminalApplicationCreated
|
|
212
231
|
| WebhookDataTerminalApplicationUpdated
|
|
232
|
+
| WebhookDataTicketCreated
|
|
233
|
+
| WebhookDataTicketMessageAdded
|
|
213
234
|
| WebhookDataAccountCreated
|
|
214
235
|
| WebhookDataAccountUpdated
|
|
215
236
|
| WebhookDataAccountDisconnected
|
|
@@ -235,6 +256,7 @@ export const WebhookData$inboundSchema: z.ZodType<
|
|
|
235
256
|
WebhookDataPaymentMethodDisabled$inboundSchema,
|
|
236
257
|
WebhookDataRefundCreated$inboundSchema,
|
|
237
258
|
WebhookDataSweepUpdated$inboundSchema,
|
|
259
|
+
WebhookDataTicketUpdated$inboundSchema,
|
|
238
260
|
WebhookDataTransferCreated$inboundSchema,
|
|
239
261
|
WebhookDataBalanceUpdated$inboundSchema,
|
|
240
262
|
WebhookDataBankAccountCreated$inboundSchema,
|
|
@@ -246,6 +268,8 @@ export const WebhookData$inboundSchema: z.ZodType<
|
|
|
246
268
|
WebhookDataSweepCreated$inboundSchema,
|
|
247
269
|
WebhookDataTerminalApplicationCreated$inboundSchema,
|
|
248
270
|
WebhookDataTerminalApplicationUpdated$inboundSchema,
|
|
271
|
+
WebhookDataTicketCreated$inboundSchema,
|
|
272
|
+
WebhookDataTicketMessageAdded$inboundSchema,
|
|
249
273
|
WebhookDataAccountCreated$inboundSchema,
|
|
250
274
|
WebhookDataAccountUpdated$inboundSchema,
|
|
251
275
|
WebhookDataAccountDisconnected$inboundSchema,
|
|
@@ -268,6 +292,7 @@ export type WebhookData$Outbound =
|
|
|
268
292
|
| WebhookDataPaymentMethodDisabled$Outbound
|
|
269
293
|
| WebhookDataRefundCreated$Outbound
|
|
270
294
|
| WebhookDataSweepUpdated$Outbound
|
|
295
|
+
| WebhookDataTicketUpdated$Outbound
|
|
271
296
|
| WebhookDataTransferCreated$Outbound
|
|
272
297
|
| WebhookDataBalanceUpdated$Outbound
|
|
273
298
|
| WebhookDataBankAccountCreated$Outbound
|
|
@@ -279,6 +304,8 @@ export type WebhookData$Outbound =
|
|
|
279
304
|
| WebhookDataSweepCreated$Outbound
|
|
280
305
|
| WebhookDataTerminalApplicationCreated$Outbound
|
|
281
306
|
| WebhookDataTerminalApplicationUpdated$Outbound
|
|
307
|
+
| WebhookDataTicketCreated$Outbound
|
|
308
|
+
| WebhookDataTicketMessageAdded$Outbound
|
|
282
309
|
| WebhookDataAccountCreated$Outbound
|
|
283
310
|
| WebhookDataAccountUpdated$Outbound
|
|
284
311
|
| WebhookDataAccountDisconnected$Outbound
|
|
@@ -304,6 +331,7 @@ export const WebhookData$outboundSchema: z.ZodType<
|
|
|
304
331
|
WebhookDataPaymentMethodDisabled$outboundSchema,
|
|
305
332
|
WebhookDataRefundCreated$outboundSchema,
|
|
306
333
|
WebhookDataSweepUpdated$outboundSchema,
|
|
334
|
+
WebhookDataTicketUpdated$outboundSchema,
|
|
307
335
|
WebhookDataTransferCreated$outboundSchema,
|
|
308
336
|
WebhookDataBalanceUpdated$outboundSchema,
|
|
309
337
|
WebhookDataBankAccountCreated$outboundSchema,
|
|
@@ -315,6 +343,8 @@ export const WebhookData$outboundSchema: z.ZodType<
|
|
|
315
343
|
WebhookDataSweepCreated$outboundSchema,
|
|
316
344
|
WebhookDataTerminalApplicationCreated$outboundSchema,
|
|
317
345
|
WebhookDataTerminalApplicationUpdated$outboundSchema,
|
|
346
|
+
WebhookDataTicketCreated$outboundSchema,
|
|
347
|
+
WebhookDataTicketMessageAdded$outboundSchema,
|
|
318
348
|
WebhookDataAccountCreated$outboundSchema,
|
|
319
349
|
WebhookDataAccountUpdated$outboundSchema,
|
|
320
350
|
WebhookDataAccountDisconnected$outboundSchema,
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type WebhookDataTicketCreated = {
|
|
11
|
+
accountID: string;
|
|
12
|
+
ticketID: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const WebhookDataTicketCreated$inboundSchema: z.ZodType<
|
|
17
|
+
WebhookDataTicketCreated,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
accountID: z.string(),
|
|
22
|
+
ticketID: z.string(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type WebhookDataTicketCreated$Outbound = {
|
|
27
|
+
accountID: string;
|
|
28
|
+
ticketID: string;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const WebhookDataTicketCreated$outboundSchema: z.ZodType<
|
|
33
|
+
WebhookDataTicketCreated$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
WebhookDataTicketCreated
|
|
36
|
+
> = z.object({
|
|
37
|
+
accountID: z.string(),
|
|
38
|
+
ticketID: z.string(),
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @internal
|
|
43
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
44
|
+
*/
|
|
45
|
+
export namespace WebhookDataTicketCreated$ {
|
|
46
|
+
/** @deprecated use `WebhookDataTicketCreated$inboundSchema` instead. */
|
|
47
|
+
export const inboundSchema = WebhookDataTicketCreated$inboundSchema;
|
|
48
|
+
/** @deprecated use `WebhookDataTicketCreated$outboundSchema` instead. */
|
|
49
|
+
export const outboundSchema = WebhookDataTicketCreated$outboundSchema;
|
|
50
|
+
/** @deprecated use `WebhookDataTicketCreated$Outbound` instead. */
|
|
51
|
+
export type Outbound = WebhookDataTicketCreated$Outbound;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function webhookDataTicketCreatedToJSON(
|
|
55
|
+
webhookDataTicketCreated: WebhookDataTicketCreated,
|
|
56
|
+
): string {
|
|
57
|
+
return JSON.stringify(
|
|
58
|
+
WebhookDataTicketCreated$outboundSchema.parse(webhookDataTicketCreated),
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function webhookDataTicketCreatedFromJSON(
|
|
63
|
+
jsonString: string,
|
|
64
|
+
): SafeParseResult<WebhookDataTicketCreated, SDKValidationError> {
|
|
65
|
+
return safeParse(
|
|
66
|
+
jsonString,
|
|
67
|
+
(x) => WebhookDataTicketCreated$inboundSchema.parse(JSON.parse(x)),
|
|
68
|
+
`Failed to parse 'WebhookDataTicketCreated' from JSON`,
|
|
69
|
+
);
|
|
70
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type WebhookDataTicketMessageAdded = {
|
|
11
|
+
accountID: string;
|
|
12
|
+
ticketID: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const WebhookDataTicketMessageAdded$inboundSchema: z.ZodType<
|
|
17
|
+
WebhookDataTicketMessageAdded,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
accountID: z.string(),
|
|
22
|
+
ticketID: z.string(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export type WebhookDataTicketMessageAdded$Outbound = {
|
|
27
|
+
accountID: string;
|
|
28
|
+
ticketID: string;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const WebhookDataTicketMessageAdded$outboundSchema: z.ZodType<
|
|
33
|
+
WebhookDataTicketMessageAdded$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
WebhookDataTicketMessageAdded
|
|
36
|
+
> = z.object({
|
|
37
|
+
accountID: z.string(),
|
|
38
|
+
ticketID: z.string(),
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* @internal
|
|
43
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
44
|
+
*/
|
|
45
|
+
export namespace WebhookDataTicketMessageAdded$ {
|
|
46
|
+
/** @deprecated use `WebhookDataTicketMessageAdded$inboundSchema` instead. */
|
|
47
|
+
export const inboundSchema = WebhookDataTicketMessageAdded$inboundSchema;
|
|
48
|
+
/** @deprecated use `WebhookDataTicketMessageAdded$outboundSchema` instead. */
|
|
49
|
+
export const outboundSchema = WebhookDataTicketMessageAdded$outboundSchema;
|
|
50
|
+
/** @deprecated use `WebhookDataTicketMessageAdded$Outbound` instead. */
|
|
51
|
+
export type Outbound = WebhookDataTicketMessageAdded$Outbound;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function webhookDataTicketMessageAddedToJSON(
|
|
55
|
+
webhookDataTicketMessageAdded: WebhookDataTicketMessageAdded,
|
|
56
|
+
): string {
|
|
57
|
+
return JSON.stringify(
|
|
58
|
+
WebhookDataTicketMessageAdded$outboundSchema.parse(
|
|
59
|
+
webhookDataTicketMessageAdded,
|
|
60
|
+
),
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function webhookDataTicketMessageAddedFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<WebhookDataTicketMessageAdded, SDKValidationError> {
|
|
67
|
+
return safeParse(
|
|
68
|
+
jsonString,
|
|
69
|
+
(x) => WebhookDataTicketMessageAdded$inboundSchema.parse(JSON.parse(x)),
|
|
70
|
+
`Failed to parse 'WebhookDataTicketMessageAdded' from JSON`,
|
|
71
|
+
);
|
|
72
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
TicketStatus,
|
|
11
|
+
TicketStatus$inboundSchema,
|
|
12
|
+
TicketStatus$outboundSchema,
|
|
13
|
+
} from "./ticketstatus.js";
|
|
14
|
+
|
|
15
|
+
export type WebhookDataTicketUpdated = {
|
|
16
|
+
accountID: string;
|
|
17
|
+
ticketID: string;
|
|
18
|
+
status: TicketStatus;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const WebhookDataTicketUpdated$inboundSchema: z.ZodType<
|
|
23
|
+
WebhookDataTicketUpdated,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
accountID: z.string(),
|
|
28
|
+
ticketID: z.string(),
|
|
29
|
+
status: TicketStatus$inboundSchema,
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export type WebhookDataTicketUpdated$Outbound = {
|
|
34
|
+
accountID: string;
|
|
35
|
+
ticketID: string;
|
|
36
|
+
status: string;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const WebhookDataTicketUpdated$outboundSchema: z.ZodType<
|
|
41
|
+
WebhookDataTicketUpdated$Outbound,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
WebhookDataTicketUpdated
|
|
44
|
+
> = z.object({
|
|
45
|
+
accountID: z.string(),
|
|
46
|
+
ticketID: z.string(),
|
|
47
|
+
status: TicketStatus$outboundSchema,
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
53
|
+
*/
|
|
54
|
+
export namespace WebhookDataTicketUpdated$ {
|
|
55
|
+
/** @deprecated use `WebhookDataTicketUpdated$inboundSchema` instead. */
|
|
56
|
+
export const inboundSchema = WebhookDataTicketUpdated$inboundSchema;
|
|
57
|
+
/** @deprecated use `WebhookDataTicketUpdated$outboundSchema` instead. */
|
|
58
|
+
export const outboundSchema = WebhookDataTicketUpdated$outboundSchema;
|
|
59
|
+
/** @deprecated use `WebhookDataTicketUpdated$Outbound` instead. */
|
|
60
|
+
export type Outbound = WebhookDataTicketUpdated$Outbound;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function webhookDataTicketUpdatedToJSON(
|
|
64
|
+
webhookDataTicketUpdated: WebhookDataTicketUpdated,
|
|
65
|
+
): string {
|
|
66
|
+
return JSON.stringify(
|
|
67
|
+
WebhookDataTicketUpdated$outboundSchema.parse(webhookDataTicketUpdated),
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function webhookDataTicketUpdatedFromJSON(
|
|
72
|
+
jsonString: string,
|
|
73
|
+
): SafeParseResult<WebhookDataTicketUpdated, SDKValidationError> {
|
|
74
|
+
return safeParse(
|
|
75
|
+
jsonString,
|
|
76
|
+
(x) => WebhookDataTicketUpdated$inboundSchema.parse(JSON.parse(x)),
|
|
77
|
+
`Failed to parse 'WebhookDataTicketUpdated' from JSON`,
|
|
78
|
+
);
|
|
79
|
+
}
|
|
@@ -36,6 +36,9 @@ export const WebhookEventType = {
|
|
|
36
36
|
SweepUpdated: "sweep.updated",
|
|
37
37
|
TerminalApplicationCreated: "terminalApplication.created",
|
|
38
38
|
TerminalApplicationUpdated: "terminalApplication.updated",
|
|
39
|
+
TicketCreated: "ticket.created",
|
|
40
|
+
TicketUpdated: "ticket.updated",
|
|
41
|
+
TicketMessageAdded: "ticket.messageAdded",
|
|
39
42
|
TransferCreated: "transfer.created",
|
|
40
43
|
TransferUpdated: "transfer.updated",
|
|
41
44
|
WalletTransactionUpdated: "walletTransaction.updated",
|