@moovio/sdk 0.14.3 → 0.14.4
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 +10 -10
- package/bin/mcp-server.js +14 -23
- package/bin/mcp-server.js.map +17 -17
- package/docs/sdks/support/README.md +10 -16
- 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/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.js +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/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/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/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- 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/models/operations/listticketmessages.ts +0 -8
- package/src/models/operations/listtickets.ts +4 -4
- package/src/sdk/support.ts +5 -5
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));
|
|
@@ -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,
|
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.4",
|
|
77
|
+
genVersion: "2.656.3",
|
|
78
|
+
userAgent: "speakeasy-sdk/typescript 0.14.4 2.656.3 latest @moovio/sdk",
|
|
79
79
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -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(
|
|
@@ -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
|
});
|
|
@@ -27,7 +27,7 @@ export type ListTicketsGlobals = {
|
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
export type ListTicketsRequest = {
|
|
30
|
-
|
|
30
|
+
cursor?: string | undefined;
|
|
31
31
|
count?: number | undefined;
|
|
32
32
|
accountID: string;
|
|
33
33
|
};
|
|
@@ -105,14 +105,14 @@ export const ListTicketsRequest$inboundSchema: z.ZodType<
|
|
|
105
105
|
z.ZodTypeDef,
|
|
106
106
|
unknown
|
|
107
107
|
> = z.object({
|
|
108
|
-
|
|
108
|
+
cursor: z.string().optional(),
|
|
109
109
|
count: z.number().int().optional(),
|
|
110
110
|
accountID: z.string(),
|
|
111
111
|
});
|
|
112
112
|
|
|
113
113
|
/** @internal */
|
|
114
114
|
export type ListTicketsRequest$Outbound = {
|
|
115
|
-
|
|
115
|
+
cursor?: string | undefined;
|
|
116
116
|
count?: number | undefined;
|
|
117
117
|
accountID: string;
|
|
118
118
|
};
|
|
@@ -123,7 +123,7 @@ export const ListTicketsRequest$outboundSchema: z.ZodType<
|
|
|
123
123
|
z.ZodTypeDef,
|
|
124
124
|
ListTicketsRequest
|
|
125
125
|
> = z.object({
|
|
126
|
-
|
|
126
|
+
cursor: z.string().optional(),
|
|
127
127
|
count: z.number().int().optional(),
|
|
128
128
|
accountID: z.string(),
|
|
129
129
|
});
|
package/src/sdk/support.ts
CHANGED
|
@@ -16,7 +16,7 @@ export class Support extends 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(
|
|
22
22
|
request: operations.CreateTicketRequest,
|
|
@@ -33,7 +33,7 @@ export class Support extends ClientSDK {
|
|
|
33
33
|
* List all the support tickets created under a Moov account.
|
|
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
|
async listTickets(
|
|
39
39
|
request: operations.ListTicketsRequest,
|
|
@@ -50,7 +50,7 @@ export class Support extends ClientSDK {
|
|
|
50
50
|
* Retrieve a support ticket by ID.
|
|
51
51
|
*
|
|
52
52
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
53
|
-
* you'll need to specify the `/accounts/{accountID}/
|
|
53
|
+
* you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
|
|
54
54
|
*/
|
|
55
55
|
async getTicket(
|
|
56
56
|
request: operations.GetTicketRequest,
|
|
@@ -67,7 +67,7 @@ export class Support extends ClientSDK {
|
|
|
67
67
|
* Updates a support ticket.
|
|
68
68
|
*
|
|
69
69
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
70
|
-
* you'll need to specify the `/accounts/{accountID}/
|
|
70
|
+
* you'll need to specify the `/accounts/{accountID}/tickets.write` scope.
|
|
71
71
|
*/
|
|
72
72
|
async updateTicket(
|
|
73
73
|
request: operations.UpdateTicketRequest,
|
|
@@ -84,7 +84,7 @@ export class Support extends ClientSDK {
|
|
|
84
84
|
* List all the messages for a support ticket.
|
|
85
85
|
*
|
|
86
86
|
* To access this endpoint using an [access token](https://docs.moov.io/api/authentication/access-tokens/)
|
|
87
|
-
* you'll need to specify the `/accounts/{accountID}/
|
|
87
|
+
* you'll need to specify the `/accounts/{accountID}/tickets.read` scope.
|
|
88
88
|
*/
|
|
89
89
|
async listTicketMessages(
|
|
90
90
|
request: operations.ListTicketMessagesRequest,
|