@moovio/sdk 0.14.3 → 0.14.5
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 +48 -62
- package/bin/mcp-server.js +148 -314
- package/bin/mcp-server.js.map +23 -26
- package/docs/sdks/support/README.md +10 -16
- package/docs/sdks/transfers/README.md +11 -116
- package/examples/package-lock.json +2 -2
- package/funcs/supportCreateTicket.d.ts +1 -1
- package/funcs/supportCreateTicket.js +1 -1
- package/funcs/supportGetTicket.d.ts +1 -1
- package/funcs/supportGetTicket.js +1 -1
- package/funcs/supportListTicketMessages.d.ts +1 -1
- package/funcs/supportListTicketMessages.js +1 -6
- package/funcs/supportListTicketMessages.js.map +1 -1
- package/funcs/supportListTickets.d.ts +1 -1
- package/funcs/supportListTickets.js +2 -2
- package/funcs/supportListTickets.js.map +1 -1
- package/funcs/supportUpdateTicket.d.ts +1 -1
- package/funcs/supportUpdateTicket.js +1 -1
- package/funcs/transfersGenerateOptions.d.ts +4 -3
- package/funcs/transfersGenerateOptions.d.ts.map +1 -1
- package/funcs/transfersGenerateOptions.js +14 -5
- package/funcs/transfersGenerateOptions.js.map +1 -1
- 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 +2 -4
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/supportCreateTicket.js +1 -1
- package/mcp-server/tools/supportGetTicket.js +1 -1
- package/mcp-server/tools/supportListTicketMessages.js +1 -1
- package/mcp-server/tools/supportListTickets.js +1 -1
- package/mcp-server/tools/supportUpdateTicket.js +1 -1
- package/mcp-server/tools/transfersGenerateOptions.d.ts +2 -2
- package/mcp-server/tools/transfersGenerateOptions.d.ts.map +1 -1
- package/mcp-server/tools/transfersGenerateOptions.js +5 -3
- package/mcp-server/tools/transfersGenerateOptions.js.map +1 -1
- package/models/components/terminalcard.d.ts +10 -0
- package/models/components/terminalcard.d.ts.map +1 -1
- package/models/components/terminalcard.js +4 -0
- package/models/components/terminalcard.js.map +1 -1
- package/models/operations/createtransferoptions.d.ts +30 -0
- package/models/operations/createtransferoptions.d.ts.map +1 -1
- package/models/operations/createtransferoptions.js +38 -1
- package/models/operations/createtransferoptions.js.map +1 -1
- package/models/operations/index.d.ts +0 -1
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -1
- package/models/operations/index.js.map +1 -1
- package/models/operations/listticketmessages.d.ts +0 -4
- package/models/operations/listticketmessages.d.ts.map +1 -1
- package/models/operations/listticketmessages.js +0 -4
- package/models/operations/listticketmessages.js.map +1 -1
- package/models/operations/listtickets.d.ts +2 -2
- package/models/operations/listtickets.d.ts.map +1 -1
- package/models/operations/listtickets.js +2 -2
- package/models/operations/listtickets.js.map +1 -1
- package/package.json +2 -2
- package/sdk/support.d.ts +5 -5
- package/sdk/support.js +5 -5
- package/sdk/transfers.d.ts +1 -12
- package/sdk/transfers.d.ts.map +1 -1
- package/sdk/transfers.js +2 -15
- package/sdk/transfers.js.map +1 -1
- package/src/funcs/supportCreateTicket.ts +1 -1
- package/src/funcs/supportGetTicket.ts +1 -1
- package/src/funcs/supportListTicketMessages.ts +2 -8
- package/src/funcs/supportListTickets.ts +2 -2
- package/src/funcs/supportUpdateTicket.ts +1 -1
- package/src/funcs/transfersGenerateOptions.ts +18 -7
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +2 -4
- package/src/mcp-server/tools/supportCreateTicket.ts +1 -1
- package/src/mcp-server/tools/supportGetTicket.ts +1 -1
- package/src/mcp-server/tools/supportListTicketMessages.ts +1 -1
- package/src/mcp-server/tools/supportListTickets.ts +1 -1
- package/src/mcp-server/tools/supportUpdateTicket.ts +1 -1
- package/src/mcp-server/tools/transfersGenerateOptions.ts +5 -3
- package/src/models/components/terminalcard.ts +14 -0
- package/src/models/operations/createtransferoptions.ts +75 -0
- package/src/models/operations/index.ts +0 -1
- package/src/models/operations/listticketmessages.ts +0 -8
- package/src/models/operations/listtickets.ts +4 -4
- package/src/sdk/support.ts +5 -5
- package/src/sdk/transfers.ts +4 -26
- package/funcs/transfersGenerateOptionsForAccount.d.ts +0 -23
- package/funcs/transfersGenerateOptionsForAccount.d.ts.map +0 -1
- package/funcs/transfersGenerateOptionsForAccount.js +0 -133
- package/funcs/transfersGenerateOptionsForAccount.js.map +0 -1
- package/mcp-server/tools/transfersGenerateOptionsForAccount.d.ts +0 -8
- package/mcp-server/tools/transfersGenerateOptionsForAccount.d.ts.map +0 -1
- package/mcp-server/tools/transfersGenerateOptionsForAccount.js +0 -70
- package/mcp-server/tools/transfersGenerateOptionsForAccount.js.map +0 -1
- package/models/operations/createtransferoptionsforaccount.d.ts +0 -104
- package/models/operations/createtransferoptionsforaccount.d.ts.map +0 -1
- package/models/operations/createtransferoptionsforaccount.js +0 -155
- package/models/operations/createtransferoptionsforaccount.js.map +0 -1
- package/src/funcs/transfersGenerateOptionsForAccount.ts +0 -202
- package/src/mcp-server/tools/transfersGenerateOptionsForAccount.ts +0 -46
- package/src/models/operations/createtransferoptionsforaccount.ts +0 -257
package/sdk/support.d.ts
CHANGED
|
@@ -5,35 +5,35 @@ export declare class Support extends ClientSDK {
|
|
|
5
5
|
* Create a support ticket for a Moov account.
|
|
6
6
|
*
|
|
7
7
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
8
|
-
* you'll need to specify the `/accounts/{accountID}/
|
|
8
|
+
* you'll need to specify the `/accounts/{accountID}/tickets.write` scope.
|
|
9
9
|
*/
|
|
10
10
|
createTicket(request: operations.CreateTicketRequest, options?: RequestOptions): Promise<operations.CreateTicketResponse>;
|
|
11
11
|
/**
|
|
12
12
|
* List all the support tickets created under a Moov account.
|
|
13
13
|
*
|
|
14
14
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
15
|
-
* you'll need to specify the `/accounts/{accountID}/
|
|
15
|
+
* you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
|
|
16
16
|
*/
|
|
17
17
|
listTickets(request: operations.ListTicketsRequest, options?: RequestOptions): Promise<operations.ListTicketsResponse>;
|
|
18
18
|
/**
|
|
19
19
|
* Retrieve a support ticket by ID.
|
|
20
20
|
*
|
|
21
21
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
22
|
-
* you'll need to specify the `/accounts/{accountID}/
|
|
22
|
+
* you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
|
|
23
23
|
*/
|
|
24
24
|
getTicket(request: operations.GetTicketRequest, options?: RequestOptions): Promise<operations.GetTicketResponse>;
|
|
25
25
|
/**
|
|
26
26
|
* Updates a support ticket.
|
|
27
27
|
*
|
|
28
28
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
29
|
-
* you'll need to specify the `/accounts/{accountID}/
|
|
29
|
+
* you'll need to specify the `/accounts/{accountID}/tickets.write` scope.
|
|
30
30
|
*/
|
|
31
31
|
updateTicket(request: operations.UpdateTicketRequest, options?: RequestOptions): Promise<operations.UpdateTicketResponse>;
|
|
32
32
|
/**
|
|
33
33
|
* List all the messages for a support ticket.
|
|
34
34
|
*
|
|
35
35
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
36
|
-
* you'll need to specify the `/accounts/{accountID}/
|
|
36
|
+
* you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
|
|
37
37
|
*/
|
|
38
38
|
listTicketMessages(request: operations.ListTicketMessagesRequest, options?: RequestOptions): Promise<operations.ListTicketMessagesResponse>;
|
|
39
39
|
}
|
package/sdk/support.js
CHANGED
|
@@ -16,7 +16,7 @@ class Support extends sdks_js_1.ClientSDK {
|
|
|
16
16
|
* Create a support ticket for a Moov account.
|
|
17
17
|
*
|
|
18
18
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
19
|
-
* you'll need to specify the `/accounts/{accountID}/
|
|
19
|
+
* you'll need to specify the `/accounts/{accountID}/tickets.write` scope.
|
|
20
20
|
*/
|
|
21
21
|
async createTicket(request, options) {
|
|
22
22
|
return (0, fp_js_1.unwrapAsync)((0, supportCreateTicket_js_1.supportCreateTicket)(this, request, options));
|
|
@@ -25,7 +25,7 @@ class Support extends sdks_js_1.ClientSDK {
|
|
|
25
25
|
* List all the support tickets created under a Moov account.
|
|
26
26
|
*
|
|
27
27
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
28
|
-
* you'll need to specify the `/accounts/{accountID}/
|
|
28
|
+
* you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
|
|
29
29
|
*/
|
|
30
30
|
async listTickets(request, options) {
|
|
31
31
|
return (0, fp_js_1.unwrapAsync)((0, supportListTickets_js_1.supportListTickets)(this, request, options));
|
|
@@ -34,7 +34,7 @@ class Support extends sdks_js_1.ClientSDK {
|
|
|
34
34
|
* Retrieve a support ticket by ID.
|
|
35
35
|
*
|
|
36
36
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
37
|
-
* you'll need to specify the `/accounts/{accountID}/
|
|
37
|
+
* you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
|
|
38
38
|
*/
|
|
39
39
|
async getTicket(request, options) {
|
|
40
40
|
return (0, fp_js_1.unwrapAsync)((0, supportGetTicket_js_1.supportGetTicket)(this, request, options));
|
|
@@ -43,7 +43,7 @@ class Support extends sdks_js_1.ClientSDK {
|
|
|
43
43
|
* Updates a support ticket.
|
|
44
44
|
*
|
|
45
45
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
46
|
-
* you'll need to specify the `/accounts/{accountID}/
|
|
46
|
+
* you'll need to specify the `/accounts/{accountID}/tickets.write` scope.
|
|
47
47
|
*/
|
|
48
48
|
async updateTicket(request, options) {
|
|
49
49
|
return (0, fp_js_1.unwrapAsync)((0, supportUpdateTicket_js_1.supportUpdateTicket)(this, request, options));
|
|
@@ -52,7 +52,7 @@ class Support extends sdks_js_1.ClientSDK {
|
|
|
52
52
|
* List all the messages for a support ticket.
|
|
53
53
|
*
|
|
54
54
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
55
|
-
* you'll need to specify the `/accounts/{accountID}/
|
|
55
|
+
* you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
|
|
56
56
|
*/
|
|
57
57
|
async listTicketMessages(request, options) {
|
|
58
58
|
return (0, fp_js_1.unwrapAsync)((0, supportListTicketMessages_js_1.supportListTicketMessages)(this, request, options));
|
package/sdk/transfers.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
-
import * as components from "../models/components/index.js";
|
|
3
2
|
import * as operations from "../models/operations/index.js";
|
|
4
3
|
export declare class Transfers extends ClientSDK {
|
|
5
4
|
/**
|
|
@@ -13,7 +12,7 @@ export declare class Transfers extends ClientSDK {
|
|
|
13
12
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
14
13
|
* you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
|
|
15
14
|
*/
|
|
16
|
-
|
|
15
|
+
generateOptions(request: operations.CreateTransferOptionsRequest, options?: RequestOptions): Promise<operations.CreateTransferOptionsResponse>;
|
|
17
16
|
/**
|
|
18
17
|
* Move money by providing the source, destination, and amount in the request body.
|
|
19
18
|
*
|
|
@@ -103,15 +102,5 @@ export declare class Transfers extends ClientSDK {
|
|
|
103
102
|
* to specify the `/accounts/{accountID}/transfers.write` scope.
|
|
104
103
|
*/
|
|
105
104
|
createReversal(request: operations.CreateReversalRequest, options?: RequestOptions): Promise<operations.CreateReversalResponse>;
|
|
106
|
-
/**
|
|
107
|
-
* Generate available payment method options for one or multiple transfer participants depending on the accountID or paymentMethodID you
|
|
108
|
-
* supply in the request.
|
|
109
|
-
*
|
|
110
|
-
* Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
|
|
111
|
-
*
|
|
112
|
-
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
113
|
-
* you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
|
|
114
|
-
*/
|
|
115
|
-
generateOptions(request: components.CreateTransferOptions, options?: RequestOptions): Promise<operations.CreateTransferOptionsResponse>;
|
|
116
105
|
}
|
|
117
106
|
//# sourceMappingURL=transfers.d.ts.map
|
package/sdk/transfers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transfers.d.ts","sourceRoot":"","sources":["../src/sdk/transfers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"transfers.d.ts","sourceRoot":"","sources":["../src/sdk/transfers.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,SAAU,SAAQ,SAAS;IACtC;;;;;;;;;;OAUG;IACG,eAAe,CACnB,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;IAQpD;;;;;;;OAOG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC;IAQ7C;;;;;;;;;;;;OAYG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,qBAAqB,CAAC;IAQ5C;;;;;;;;OAQG;IACG,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,mBAAmB,CAAC;IAQ1C;;;;;;;OAOG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC;IAQ7C;;;;;OAKG;IACG,kBAAkB,CACtB,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC;IAQjD;;;;;OAKG;IACG,eAAe,CACnB,OAAO,EAAE,UAAU,CAAC,sBAAsB,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,uBAAuB,CAAC;IAQ9C;;;;;;;;OAQG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC;IAQ7C;;;;;OAKG;IACG,WAAW,CACf,OAAO,EAAE,UAAU,CAAC,kBAAkB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,mBAAmB,CAAC;IAQ1C;;;;;OAKG;IACG,SAAS,CACb,OAAO,EAAE,UAAU,CAAC,gBAAgB,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC;IAQxC;;;;;;;OAOG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,sBAAsB,CAAC;CAO9C"}
|
package/sdk/transfers.js
CHANGED
|
@@ -8,7 +8,6 @@ const transfersCreate_js_1 = require("../funcs/transfersCreate.js");
|
|
|
8
8
|
const transfersCreateCancellation_js_1 = require("../funcs/transfersCreateCancellation.js");
|
|
9
9
|
const transfersCreateReversal_js_1 = require("../funcs/transfersCreateReversal.js");
|
|
10
10
|
const transfersGenerateOptions_js_1 = require("../funcs/transfersGenerateOptions.js");
|
|
11
|
-
const transfersGenerateOptionsForAccount_js_1 = require("../funcs/transfersGenerateOptionsForAccount.js");
|
|
12
11
|
const transfersGet_js_1 = require("../funcs/transfersGet.js");
|
|
13
12
|
const transfersGetCancellation_js_1 = require("../funcs/transfersGetCancellation.js");
|
|
14
13
|
const transfersGetRefund_js_1 = require("../funcs/transfersGetRefund.js");
|
|
@@ -30,8 +29,8 @@ class Transfers extends sdks_js_1.ClientSDK {
|
|
|
30
29
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
31
30
|
* you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
|
|
32
31
|
*/
|
|
33
|
-
async
|
|
34
|
-
return (0, fp_js_1.unwrapAsync)((0,
|
|
32
|
+
async generateOptions(request, options) {
|
|
33
|
+
return (0, fp_js_1.unwrapAsync)((0, transfersGenerateOptions_js_1.transfersGenerateOptions)(this, request, options));
|
|
35
34
|
}
|
|
36
35
|
/**
|
|
37
36
|
* Move money by providing the source, destination, and amount in the request body.
|
|
@@ -142,18 +141,6 @@ class Transfers extends sdks_js_1.ClientSDK {
|
|
|
142
141
|
async createReversal(request, options) {
|
|
143
142
|
return (0, fp_js_1.unwrapAsync)((0, transfersCreateReversal_js_1.transfersCreateReversal)(this, request, options));
|
|
144
143
|
}
|
|
145
|
-
/**
|
|
146
|
-
* Generate available payment method options for one or multiple transfer participants depending on the accountID or paymentMethodID you
|
|
147
|
-
* supply in the request.
|
|
148
|
-
*
|
|
149
|
-
* Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
|
|
150
|
-
*
|
|
151
|
-
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
152
|
-
* you'll need to specify the `/accounts/{accountID}/transfers.write` scope.
|
|
153
|
-
*/
|
|
154
|
-
async generateOptions(request, options) {
|
|
155
|
-
return (0, fp_js_1.unwrapAsync)((0, transfersGenerateOptions_js_1.transfersGenerateOptions)(this, request, options));
|
|
156
|
-
}
|
|
157
144
|
}
|
|
158
145
|
exports.Transfers = Transfers;
|
|
159
146
|
//# sourceMappingURL=transfers.js.map
|
package/sdk/transfers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transfers.js","sourceRoot":"","sources":["../src/sdk/transfers.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,oEAA8D;AAC9D,4FAAsF;AACtF,oFAA8E;AAC9E,sFAAgF;AAChF,
|
|
1
|
+
{"version":3,"file":"transfers.js","sourceRoot":"","sources":["../src/sdk/transfers.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,oEAA8D;AAC9D,4FAAsF;AACtF,oFAA8E;AAC9E,sFAAgF;AAChF,8DAAwD;AACxD,sFAAgF;AAChF,0EAAoE;AACpE,oFAA8E;AAC9E,gEAA0D;AAC1D,8EAAwE;AACxE,oEAA8D;AAC9D,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,SAAU,SAAQ,mBAAS;IACtC;;;;;;;;;;OAUG;IACH,KAAK,CAAC,eAAe,CACnB,OAAgD,EAChD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,MAAM,CACV,OAAyC,EACzC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oCAAe,EAChC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,IAAI,CACR,OAAwC,EACxC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gCAAa,EAC9B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,GAAG,CACP,OAAsC,EACtC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8BAAY,EAC7B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,MAAM,CACV,OAAyC,EACzC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oCAAe,EAChC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,kBAAkB,CACtB,OAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4DAA2B,EAC5C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,eAAe,CACnB,OAA0C,EAC1C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,cAAc,CAClB,OAAyC,EACzC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oDAAuB,EACxC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,WAAW,CACf,OAAsC,EACtC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8CAAoB,EACrC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,SAAS,CACb,OAAoC,EACpC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0CAAkB,EACnC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,cAAc,CAClB,OAAyC,EACzC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oDAAuB,EACxC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAnND,8BAmNC"}
|
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Create a support ticket for a Moov account.
|
|
30
30
|
*
|
|
31
31
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
32
|
-
* you'll need to specify the `/accounts/{accountID}/
|
|
32
|
+
* you'll need to specify the `/accounts/{accountID}/tickets.write` scope.
|
|
33
33
|
*/
|
|
34
34
|
export function supportCreateTicket(
|
|
35
35
|
client: MoovCore,
|
|
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
|
|
|
28
28
|
* Retrieve a support ticket by ID.
|
|
29
29
|
*
|
|
30
30
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
31
|
-
* you'll need to specify the `/accounts/{accountID}/
|
|
31
|
+
* you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
|
|
32
32
|
*/
|
|
33
33
|
export function supportGetTicket(
|
|
34
34
|
client: MoovCore,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { MoovCore } from "../core.js";
|
|
6
|
-
import {
|
|
6
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import * as M from "../lib/matchers.js";
|
|
8
8
|
import { compactMap } from "../lib/primitives.js";
|
|
9
9
|
import { safeParse } from "../lib/schemas.js";
|
|
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
|
|
|
28
28
|
* List all the messages for a support ticket.
|
|
29
29
|
*
|
|
30
30
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
31
|
-
* you'll need to specify the `/accounts/{accountID}/
|
|
31
|
+
* you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
|
|
32
32
|
*/
|
|
33
33
|
export function supportListTicketMessages(
|
|
34
34
|
client: MoovCore,
|
|
@@ -100,11 +100,6 @@ async function $do(
|
|
|
100
100
|
pathParams,
|
|
101
101
|
);
|
|
102
102
|
|
|
103
|
-
const query = encodeFormQuery({
|
|
104
|
-
"count": payload.count,
|
|
105
|
-
"skip": payload.skip,
|
|
106
|
-
}, { explode: false });
|
|
107
|
-
|
|
108
103
|
const headers = new Headers(compactMap({
|
|
109
104
|
Accept: "application/json",
|
|
110
105
|
"x-moov-version": encodeSimple(
|
|
@@ -138,7 +133,6 @@ async function $do(
|
|
|
138
133
|
baseURL: options?.serverURL,
|
|
139
134
|
path: path,
|
|
140
135
|
headers: headers,
|
|
141
|
-
query: query,
|
|
142
136
|
body: body,
|
|
143
137
|
userAgent: client._options.userAgent,
|
|
144
138
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
|
|
|
28
28
|
* List all the support tickets created under a Moov account.
|
|
29
29
|
*
|
|
30
30
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
31
|
-
* you'll need to specify the `/accounts/{accountID}/
|
|
31
|
+
* you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
|
|
32
32
|
*/
|
|
33
33
|
export function supportListTickets(
|
|
34
34
|
client: MoovCore,
|
|
@@ -96,7 +96,7 @@ async function $do(
|
|
|
96
96
|
|
|
97
97
|
const query = encodeFormQuery({
|
|
98
98
|
"count": payload.count,
|
|
99
|
-
"
|
|
99
|
+
"cursor": payload.cursor,
|
|
100
100
|
}, { explode: false });
|
|
101
101
|
|
|
102
102
|
const headers = new Headers(compactMap({
|
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Updates a support ticket.
|
|
30
30
|
*
|
|
31
31
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
32
|
-
* you'll need to specify the `/accounts/{accountID}/
|
|
32
|
+
* you'll need to specify the `/accounts/{accountID}/tickets.write` scope.
|
|
33
33
|
*/
|
|
34
34
|
export function supportUpdateTicket(
|
|
35
35
|
client: MoovCore,
|
|
@@ -10,7 +10,6 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
10
10
|
import { RequestOptions } from "../lib/sdks.js";
|
|
11
11
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
12
|
import { pathToFunc } from "../lib/url.js";
|
|
13
|
-
import * as components from "../models/components/index.js";
|
|
14
13
|
import {
|
|
15
14
|
ConnectionError,
|
|
16
15
|
InvalidRequestError,
|
|
@@ -28,7 +27,9 @@ import { Result } from "../types/fp.js";
|
|
|
28
27
|
|
|
29
28
|
/**
|
|
30
29
|
* Generate available payment method options for one or multiple transfer participants depending on the accountID or paymentMethodID you
|
|
31
|
-
* supply in the request.
|
|
30
|
+
* supply in the request body.
|
|
31
|
+
*
|
|
32
|
+
* The accountID in the route should the partner's accountID.
|
|
32
33
|
*
|
|
33
34
|
* Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
|
|
34
35
|
*
|
|
@@ -37,7 +38,7 @@ import { Result } from "../types/fp.js";
|
|
|
37
38
|
*/
|
|
38
39
|
export function transfersGenerateOptions(
|
|
39
40
|
client: MoovCore,
|
|
40
|
-
request:
|
|
41
|
+
request: operations.CreateTransferOptionsRequest,
|
|
41
42
|
options?: RequestOptions,
|
|
42
43
|
): APIPromise<
|
|
43
44
|
Result<
|
|
@@ -63,7 +64,7 @@ export function transfersGenerateOptions(
|
|
|
63
64
|
|
|
64
65
|
async function $do(
|
|
65
66
|
client: MoovCore,
|
|
66
|
-
request:
|
|
67
|
+
request: operations.CreateTransferOptionsRequest,
|
|
67
68
|
options?: RequestOptions,
|
|
68
69
|
): Promise<
|
|
69
70
|
[
|
|
@@ -85,16 +86,26 @@ async function $do(
|
|
|
85
86
|
> {
|
|
86
87
|
const parsed = safeParse(
|
|
87
88
|
request,
|
|
88
|
-
(value) =>
|
|
89
|
+
(value) =>
|
|
90
|
+
operations.CreateTransferOptionsRequest$outboundSchema.parse(value),
|
|
89
91
|
"Input validation failed",
|
|
90
92
|
);
|
|
91
93
|
if (!parsed.ok) {
|
|
92
94
|
return [parsed, { status: "invalid" }];
|
|
93
95
|
}
|
|
94
96
|
const payload = parsed.value;
|
|
95
|
-
const body = encodeJSON("body", payload, {
|
|
97
|
+
const body = encodeJSON("body", payload.CreateTransferOptions, {
|
|
98
|
+
explode: true,
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
const pathParams = {
|
|
102
|
+
accountID: encodeSimple("accountID", payload.accountID, {
|
|
103
|
+
explode: false,
|
|
104
|
+
charEncoding: "percent",
|
|
105
|
+
}),
|
|
106
|
+
};
|
|
96
107
|
|
|
97
|
-
const path = pathToFunc("/transfer-options")();
|
|
108
|
+
const path = pathToFunc("/accounts/{accountID}/transfer-options")(pathParams);
|
|
98
109
|
|
|
99
110
|
const headers = new Headers(compactMap({
|
|
100
111
|
"Content-Type": "application/json",
|
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.5",
|
|
77
|
+
genVersion: "2.656.5",
|
|
78
|
+
userAgent: "speakeasy-sdk/typescript 0.14.5 2.656.5 latest @moovio/sdk",
|
|
79
79
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -141,7 +141,6 @@ import { tool$transfersCreate } from "./tools/transfersCreate.js";
|
|
|
141
141
|
import { tool$transfersCreateCancellation } from "./tools/transfersCreateCancellation.js";
|
|
142
142
|
import { tool$transfersCreateReversal } from "./tools/transfersCreateReversal.js";
|
|
143
143
|
import { tool$transfersGenerateOptions } from "./tools/transfersGenerateOptions.js";
|
|
144
|
-
import { tool$transfersGenerateOptionsForAccount } from "./tools/transfersGenerateOptionsForAccount.js";
|
|
145
144
|
import { tool$transfersGet } from "./tools/transfersGet.js";
|
|
146
145
|
import { tool$transfersGetCancellation } from "./tools/transfersGetCancellation.js";
|
|
147
146
|
import { tool$transfersGetRefund } from "./tools/transfersGetRefund.js";
|
|
@@ -168,7 +167,7 @@ export function createMCPServer(deps: {
|
|
|
168
167
|
}) {
|
|
169
168
|
const server = new McpServer({
|
|
170
169
|
name: "Moov",
|
|
171
|
-
version: "0.14.
|
|
170
|
+
version: "0.14.5",
|
|
172
171
|
});
|
|
173
172
|
|
|
174
173
|
const client = new MoovCore({
|
|
@@ -292,7 +291,7 @@ export function createMCPServer(deps: {
|
|
|
292
291
|
tool(tool$supportGetTicket);
|
|
293
292
|
tool(tool$supportUpdateTicket);
|
|
294
293
|
tool(tool$supportListTicketMessages);
|
|
295
|
-
tool(tool$
|
|
294
|
+
tool(tool$transfersGenerateOptions);
|
|
296
295
|
tool(tool$transfersCreate);
|
|
297
296
|
tool(tool$transfersList);
|
|
298
297
|
tool(tool$transfersGet);
|
|
@@ -303,7 +302,6 @@ export function createMCPServer(deps: {
|
|
|
303
302
|
tool(tool$transfersListRefunds);
|
|
304
303
|
tool(tool$transfersGetRefund);
|
|
305
304
|
tool(tool$transfersCreateReversal);
|
|
306
|
-
tool(tool$transfersGenerateOptions);
|
|
307
305
|
tool(tool$underwritingGet);
|
|
308
306
|
tool(tool$underwritingSave);
|
|
309
307
|
tool(tool$underwritingUpsert);
|
|
@@ -15,7 +15,7 @@ export const tool$supportCreateTicket: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `Create a support ticket for a Moov account.
|
|
16
16
|
|
|
17
17
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
18
|
-
you'll need to specify the \`/accounts/{accountID}/
|
|
18
|
+
you'll need to specify the \`/accounts/{accountID}/tickets.write\` scope.`,
|
|
19
19
|
args,
|
|
20
20
|
tool: async (client, args, ctx) => {
|
|
21
21
|
const [result, apiCall] = await supportCreateTicket(
|
|
@@ -15,7 +15,7 @@ export const tool$supportGetTicket: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `Retrieve a support ticket by ID.
|
|
16
16
|
|
|
17
17
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
18
|
-
you'll need to specify the \`/accounts/{accountID}/
|
|
18
|
+
you'll need to specify the \`/accounts/{accountID}/tickets.read\` scope.`,
|
|
19
19
|
args,
|
|
20
20
|
tool: async (client, args, ctx) => {
|
|
21
21
|
const [result, apiCall] = await supportGetTicket(
|
|
@@ -15,7 +15,7 @@ export const tool$supportListTicketMessages: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `List all the messages for a support ticket.
|
|
16
16
|
|
|
17
17
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
18
|
-
you'll need to specify the \`/accounts/{accountID}/
|
|
18
|
+
you'll need to specify the \`/accounts/{accountID}/tickets.read\` scope.`,
|
|
19
19
|
args,
|
|
20
20
|
tool: async (client, args, ctx) => {
|
|
21
21
|
const [result, apiCall] = await supportListTicketMessages(
|
|
@@ -15,7 +15,7 @@ export const tool$supportListTickets: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `List all the support tickets created under a Moov account.
|
|
16
16
|
|
|
17
17
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
18
|
-
you'll need to specify the \`/accounts/{accountID}/
|
|
18
|
+
you'll need to specify the \`/accounts/{accountID}/tickets.read\` scope.`,
|
|
19
19
|
args,
|
|
20
20
|
tool: async (client, args, ctx) => {
|
|
21
21
|
const [result, apiCall] = await supportListTickets(
|
|
@@ -15,7 +15,7 @@ export const tool$supportUpdateTicket: ToolDefinition<typeof args> = {
|
|
|
15
15
|
description: `Updates a support ticket.
|
|
16
16
|
|
|
17
17
|
To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
18
|
-
you'll need to specify the \`/accounts/{accountID}/
|
|
18
|
+
you'll need to specify the \`/accounts/{accountID}/tickets.write\` scope.`,
|
|
19
19
|
args,
|
|
20
20
|
tool: async (client, args, ctx) => {
|
|
21
21
|
const [result, apiCall] = await supportUpdateTicket(
|
|
@@ -3,18 +3,20 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { transfersGenerateOptions } from "../../funcs/transfersGenerateOptions.js";
|
|
6
|
-
import * as
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
7
|
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
8
|
|
|
9
9
|
const args = {
|
|
10
|
-
request:
|
|
10
|
+
request: operations.CreateTransferOptionsRequest$inboundSchema,
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export const tool$transfersGenerateOptions: ToolDefinition<typeof args> = {
|
|
14
14
|
name: "transfers-generate-options",
|
|
15
15
|
description:
|
|
16
16
|
`Generate available payment method options for one or multiple transfer participants depending on the accountID or paymentMethodID you
|
|
17
|
-
supply in the request.
|
|
17
|
+
supply in the request body.
|
|
18
|
+
|
|
19
|
+
The accountID in the route should the partner's accountID.
|
|
18
20
|
|
|
19
21
|
Read our [transfers overview guide](https://docs.moov.io/guides/money-movement/overview/) to learn more.
|
|
20
22
|
|
|
@@ -73,6 +73,14 @@ export type TerminalCard = {
|
|
|
73
73
|
* Last four digits of the card number
|
|
74
74
|
*/
|
|
75
75
|
lastFourCardNumber?: string | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* Identifier for the point of sale terminal application.
|
|
78
|
+
*/
|
|
79
|
+
applicationID?: string | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* Name label for the point of sale terminal application.
|
|
82
|
+
*/
|
|
83
|
+
applicationName?: string | undefined;
|
|
76
84
|
};
|
|
77
85
|
|
|
78
86
|
/** @internal */
|
|
@@ -91,6 +99,8 @@ export const TerminalCard$inboundSchema: z.ZodType<
|
|
|
91
99
|
issuer: z.string().optional(),
|
|
92
100
|
issuerCountry: z.string().optional(),
|
|
93
101
|
lastFourCardNumber: z.string().optional(),
|
|
102
|
+
applicationID: z.string().optional(),
|
|
103
|
+
applicationName: z.string().optional(),
|
|
94
104
|
});
|
|
95
105
|
|
|
96
106
|
/** @internal */
|
|
@@ -105,6 +115,8 @@ export type TerminalCard$Outbound = {
|
|
|
105
115
|
issuer?: string | undefined;
|
|
106
116
|
issuerCountry?: string | undefined;
|
|
107
117
|
lastFourCardNumber?: string | undefined;
|
|
118
|
+
applicationID?: string | undefined;
|
|
119
|
+
applicationName?: string | undefined;
|
|
108
120
|
};
|
|
109
121
|
|
|
110
122
|
/** @internal */
|
|
@@ -123,6 +135,8 @@ export const TerminalCard$outboundSchema: z.ZodType<
|
|
|
123
135
|
issuer: z.string().optional(),
|
|
124
136
|
issuerCountry: z.string().optional(),
|
|
125
137
|
lastFourCardNumber: z.string().optional(),
|
|
138
|
+
applicationID: z.string().optional(),
|
|
139
|
+
applicationName: z.string().optional(),
|
|
126
140
|
});
|
|
127
141
|
|
|
128
142
|
/**
|
|
@@ -26,6 +26,14 @@ export type CreateTransferOptionsGlobals = {
|
|
|
26
26
|
xMoovVersion?: string | undefined;
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
+
export type CreateTransferOptionsRequest = {
|
|
30
|
+
/**
|
|
31
|
+
* The partner's Moov account ID.
|
|
32
|
+
*/
|
|
33
|
+
accountID: string;
|
|
34
|
+
createTransferOptions: components.CreateTransferOptions;
|
|
35
|
+
};
|
|
36
|
+
|
|
29
37
|
export type CreateTransferOptionsResponse = {
|
|
30
38
|
headers: { [k: string]: Array<string> };
|
|
31
39
|
result: components.TransferOptions;
|
|
@@ -95,6 +103,73 @@ export function createTransferOptionsGlobalsFromJSON(
|
|
|
95
103
|
);
|
|
96
104
|
}
|
|
97
105
|
|
|
106
|
+
/** @internal */
|
|
107
|
+
export const CreateTransferOptionsRequest$inboundSchema: z.ZodType<
|
|
108
|
+
CreateTransferOptionsRequest,
|
|
109
|
+
z.ZodTypeDef,
|
|
110
|
+
unknown
|
|
111
|
+
> = z.object({
|
|
112
|
+
accountID: z.string(),
|
|
113
|
+
CreateTransferOptions: components.CreateTransferOptions$inboundSchema,
|
|
114
|
+
}).transform((v) => {
|
|
115
|
+
return remap$(v, {
|
|
116
|
+
"CreateTransferOptions": "createTransferOptions",
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
/** @internal */
|
|
121
|
+
export type CreateTransferOptionsRequest$Outbound = {
|
|
122
|
+
accountID: string;
|
|
123
|
+
CreateTransferOptions: components.CreateTransferOptions$Outbound;
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
/** @internal */
|
|
127
|
+
export const CreateTransferOptionsRequest$outboundSchema: z.ZodType<
|
|
128
|
+
CreateTransferOptionsRequest$Outbound,
|
|
129
|
+
z.ZodTypeDef,
|
|
130
|
+
CreateTransferOptionsRequest
|
|
131
|
+
> = z.object({
|
|
132
|
+
accountID: z.string(),
|
|
133
|
+
createTransferOptions: components.CreateTransferOptions$outboundSchema,
|
|
134
|
+
}).transform((v) => {
|
|
135
|
+
return remap$(v, {
|
|
136
|
+
createTransferOptions: "CreateTransferOptions",
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* @internal
|
|
142
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
143
|
+
*/
|
|
144
|
+
export namespace CreateTransferOptionsRequest$ {
|
|
145
|
+
/** @deprecated use `CreateTransferOptionsRequest$inboundSchema` instead. */
|
|
146
|
+
export const inboundSchema = CreateTransferOptionsRequest$inboundSchema;
|
|
147
|
+
/** @deprecated use `CreateTransferOptionsRequest$outboundSchema` instead. */
|
|
148
|
+
export const outboundSchema = CreateTransferOptionsRequest$outboundSchema;
|
|
149
|
+
/** @deprecated use `CreateTransferOptionsRequest$Outbound` instead. */
|
|
150
|
+
export type Outbound = CreateTransferOptionsRequest$Outbound;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export function createTransferOptionsRequestToJSON(
|
|
154
|
+
createTransferOptionsRequest: CreateTransferOptionsRequest,
|
|
155
|
+
): string {
|
|
156
|
+
return JSON.stringify(
|
|
157
|
+
CreateTransferOptionsRequest$outboundSchema.parse(
|
|
158
|
+
createTransferOptionsRequest,
|
|
159
|
+
),
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export function createTransferOptionsRequestFromJSON(
|
|
164
|
+
jsonString: string,
|
|
165
|
+
): SafeParseResult<CreateTransferOptionsRequest, SDKValidationError> {
|
|
166
|
+
return safeParse(
|
|
167
|
+
jsonString,
|
|
168
|
+
(x) => CreateTransferOptionsRequest$inboundSchema.parse(JSON.parse(x)),
|
|
169
|
+
`Failed to parse 'CreateTransferOptionsRequest' from JSON`,
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
|
|
98
173
|
/** @internal */
|
|
99
174
|
export const CreateTransferOptionsResponse$inboundSchema: z.ZodType<
|
|
100
175
|
CreateTransferOptionsResponse,
|
|
@@ -24,7 +24,6 @@ export * from "./createterminalapplication.js";
|
|
|
24
24
|
export * from "./createticket.js";
|
|
25
25
|
export * from "./createtransfer.js";
|
|
26
26
|
export * from "./createtransferoptions.js";
|
|
27
|
-
export * from "./createtransferoptionsforaccount.js";
|
|
28
27
|
export * from "./deletedisputeevidencefile.js";
|
|
29
28
|
export * from "./deleterepresentative.js";
|
|
30
29
|
export * from "./deleteterminalapplication.js";
|
|
@@ -27,8 +27,6 @@ export type ListTicketMessagesGlobals = {
|
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
export type ListTicketMessagesRequest = {
|
|
30
|
-
skip?: number | undefined;
|
|
31
|
-
count?: number | undefined;
|
|
32
30
|
accountID: string;
|
|
33
31
|
ticketID: string;
|
|
34
32
|
};
|
|
@@ -106,16 +104,12 @@ export const ListTicketMessagesRequest$inboundSchema: z.ZodType<
|
|
|
106
104
|
z.ZodTypeDef,
|
|
107
105
|
unknown
|
|
108
106
|
> = z.object({
|
|
109
|
-
skip: z.number().int().optional(),
|
|
110
|
-
count: z.number().int().optional(),
|
|
111
107
|
accountID: z.string(),
|
|
112
108
|
ticketID: z.string(),
|
|
113
109
|
});
|
|
114
110
|
|
|
115
111
|
/** @internal */
|
|
116
112
|
export type ListTicketMessagesRequest$Outbound = {
|
|
117
|
-
skip?: number | undefined;
|
|
118
|
-
count?: number | undefined;
|
|
119
113
|
accountID: string;
|
|
120
114
|
ticketID: string;
|
|
121
115
|
};
|
|
@@ -126,8 +120,6 @@ export const ListTicketMessagesRequest$outboundSchema: z.ZodType<
|
|
|
126
120
|
z.ZodTypeDef,
|
|
127
121
|
ListTicketMessagesRequest
|
|
128
122
|
> = z.object({
|
|
129
|
-
skip: z.number().int().optional(),
|
|
130
|
-
count: z.number().int().optional(),
|
|
131
123
|
accountID: z.string(),
|
|
132
124
|
ticketID: z.string(),
|
|
133
125
|
});
|