@keystrokehq/respond_io 0.1.0 → 0.1.3
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/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-comment.cjs +4 -4
- package/dist/actions/create-comment.cjs.map +1 -1
- package/dist/actions/create-comment.d.cts +13 -3
- package/dist/actions/create-comment.d.cts.map +1 -1
- package/dist/actions/create-comment.d.mts +13 -3
- package/dist/actions/create-comment.d.mts.map +1 -1
- package/dist/actions/create-comment.mjs +4 -4
- package/dist/actions/create-comment.mjs.map +1 -1
- package/dist/actions/create-contact.cjs +4 -4
- package/dist/actions/create-contact.cjs.map +1 -1
- package/dist/actions/create-contact.d.cts +33 -3
- package/dist/actions/create-contact.d.cts.map +1 -1
- package/dist/actions/create-contact.d.mts +33 -3
- package/dist/actions/create-contact.d.mts.map +1 -1
- package/dist/actions/create-contact.mjs +4 -4
- package/dist/actions/create-contact.mjs.map +1 -1
- package/dist/actions/create-space-tag.cjs +5 -5
- package/dist/actions/create-space-tag.cjs.map +1 -1
- package/dist/actions/create-space-tag.d.cts +18 -3
- package/dist/actions/create-space-tag.d.cts.map +1 -1
- package/dist/actions/create-space-tag.d.mts +18 -3
- package/dist/actions/create-space-tag.d.mts.map +1 -1
- package/dist/actions/create-space-tag.mjs +5 -5
- package/dist/actions/create-space-tag.mjs.map +1 -1
- package/dist/actions/get-message.cjs +13 -13
- package/dist/actions/get-message.cjs.map +1 -1
- package/dist/actions/get-message.d.cts +57 -3
- package/dist/actions/get-message.d.cts.map +1 -1
- package/dist/actions/get-message.d.mts +57 -3
- package/dist/actions/get-message.d.mts.map +1 -1
- package/dist/actions/get-message.mjs +13 -13
- package/dist/actions/get-message.mjs.map +1 -1
- package/dist/actions/list-channels.cjs +7 -7
- package/dist/actions/list-channels.cjs.map +1 -1
- package/dist/actions/list-channels.d.cts +39 -3
- package/dist/actions/list-channels.d.cts.map +1 -1
- package/dist/actions/list-channels.d.mts +39 -3
- package/dist/actions/list-channels.d.mts.map +1 -1
- package/dist/actions/list-channels.mjs +7 -7
- package/dist/actions/list-channels.mjs.map +1 -1
- package/dist/actions/list-users.cjs +10 -10
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +28 -3
- package/dist/actions/list-users.d.cts.map +1 -1
- package/dist/actions/list-users.d.mts +28 -3
- package/dist/actions/list-users.d.mts.map +1 -1
- package/dist/actions/list-users.mjs +10 -10
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/update-space-tag.cjs +1 -1
- package/dist/actions/update-space-tag.cjs.map +1 -1
- package/dist/actions/update-space-tag.d.cts +21 -3
- package/dist/actions/update-space-tag.d.cts.map +1 -1
- package/dist/actions/update-space-tag.d.mts +21 -3
- package/dist/actions/update-space-tag.d.mts.map +1 -1
- package/dist/actions/update-space-tag.mjs +1 -1
- package/dist/actions/update-space-tag.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,63 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-message.d.ts
|
|
4
|
-
declare const RespondIoGetMessageInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RespondIoGetMessageInput: z.ZodObject<{
|
|
5
|
+
messageId: z.ZodNumber;
|
|
6
|
+
identifier: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const RespondIoGetMessageOutput: z.ZodObject<{
|
|
9
|
+
status: z.ZodArray<z.ZodObject<{
|
|
10
|
+
value: z.ZodNullable<z.ZodEnum<{
|
|
11
|
+
pending: "pending";
|
|
12
|
+
sent: "sent";
|
|
13
|
+
delivered: "delivered";
|
|
14
|
+
read: "read";
|
|
15
|
+
failed: "failed";
|
|
16
|
+
}>>;
|
|
17
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
timestamp: z.ZodNullable<z.ZodNumber>;
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
|
+
message: z.ZodNullable<z.ZodObject<{
|
|
21
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
23
|
+
file: "file";
|
|
24
|
+
text: "text";
|
|
25
|
+
image: "image";
|
|
26
|
+
video: "video";
|
|
27
|
+
audio: "audio";
|
|
28
|
+
attachment: "attachment";
|
|
29
|
+
}>>;
|
|
30
|
+
attachment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
31
|
+
url: z.ZodNullable<z.ZodString>;
|
|
32
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
33
|
+
file: "file";
|
|
34
|
+
image: "image";
|
|
35
|
+
video: "video";
|
|
36
|
+
audio: "audio";
|
|
37
|
+
}>>;
|
|
38
|
+
fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
mimeType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
}, z.core.$loose>>>;
|
|
42
|
+
messageTag: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
43
|
+
ACCOUNT_UPDATE: "ACCOUNT_UPDATE";
|
|
44
|
+
POST_PURCHASE_UPDATE: "POST_PURCHASE_UPDATE";
|
|
45
|
+
CONFIRMED_EVENT_UPDATE: "CONFIRMED_EVENT_UPDATE";
|
|
46
|
+
}>>>;
|
|
47
|
+
}, z.core.$loose>>;
|
|
48
|
+
traffic: z.ZodNullable<z.ZodEnum<{
|
|
49
|
+
outgoing: "outgoing";
|
|
50
|
+
incoming: "incoming";
|
|
51
|
+
}>>;
|
|
52
|
+
channelId: z.ZodNullable<z.ZodNumber>;
|
|
53
|
+
contactId: z.ZodNullable<z.ZodNumber>;
|
|
54
|
+
messageId: z.ZodNullable<z.ZodNumber>;
|
|
55
|
+
channelMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
+
}, z.core.$loose>;
|
|
57
|
+
declare const respondIoGetMessage: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
58
|
+
messageId: number;
|
|
59
|
+
identifier: string;
|
|
60
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
61
|
//#endregion
|
|
8
62
|
export { respondIoGetMessage };
|
|
9
63
|
//# sourceMappingURL=get-message.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-message.d.cts","names":[],"sources":["../../src/actions/get-message.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"get-message.d.cts","names":[],"sources":["../../src/actions/get-message.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAsBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAUzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -1,9 +1,63 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-message.d.ts
|
|
4
|
-
declare const RespondIoGetMessageInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RespondIoGetMessageInput: z.ZodObject<{
|
|
5
|
+
messageId: z.ZodNumber;
|
|
6
|
+
identifier: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const RespondIoGetMessageOutput: z.ZodObject<{
|
|
9
|
+
status: z.ZodArray<z.ZodObject<{
|
|
10
|
+
value: z.ZodNullable<z.ZodEnum<{
|
|
11
|
+
pending: "pending";
|
|
12
|
+
sent: "sent";
|
|
13
|
+
delivered: "delivered";
|
|
14
|
+
read: "read";
|
|
15
|
+
failed: "failed";
|
|
16
|
+
}>>;
|
|
17
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
timestamp: z.ZodNullable<z.ZodNumber>;
|
|
19
|
+
}, z.core.$loose>>;
|
|
20
|
+
message: z.ZodNullable<z.ZodObject<{
|
|
21
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
23
|
+
file: "file";
|
|
24
|
+
text: "text";
|
|
25
|
+
image: "image";
|
|
26
|
+
video: "video";
|
|
27
|
+
audio: "audio";
|
|
28
|
+
attachment: "attachment";
|
|
29
|
+
}>>;
|
|
30
|
+
attachment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
31
|
+
url: z.ZodNullable<z.ZodString>;
|
|
32
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
33
|
+
file: "file";
|
|
34
|
+
image: "image";
|
|
35
|
+
video: "video";
|
|
36
|
+
audio: "audio";
|
|
37
|
+
}>>;
|
|
38
|
+
fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
mimeType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
}, z.core.$loose>>>;
|
|
42
|
+
messageTag: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
43
|
+
ACCOUNT_UPDATE: "ACCOUNT_UPDATE";
|
|
44
|
+
POST_PURCHASE_UPDATE: "POST_PURCHASE_UPDATE";
|
|
45
|
+
CONFIRMED_EVENT_UPDATE: "CONFIRMED_EVENT_UPDATE";
|
|
46
|
+
}>>>;
|
|
47
|
+
}, z.core.$loose>>;
|
|
48
|
+
traffic: z.ZodNullable<z.ZodEnum<{
|
|
49
|
+
outgoing: "outgoing";
|
|
50
|
+
incoming: "incoming";
|
|
51
|
+
}>>;
|
|
52
|
+
channelId: z.ZodNullable<z.ZodNumber>;
|
|
53
|
+
contactId: z.ZodNullable<z.ZodNumber>;
|
|
54
|
+
messageId: z.ZodNullable<z.ZodNumber>;
|
|
55
|
+
channelMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
+
}, z.core.$loose>;
|
|
57
|
+
declare const respondIoGetMessage: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
58
|
+
messageId: number;
|
|
59
|
+
identifier: string;
|
|
60
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
61
|
//#endregion
|
|
8
62
|
export { respondIoGetMessage };
|
|
9
63
|
//# sourceMappingURL=get-message.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-message.d.mts","names":[],"sources":["../../src/actions/get-message.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"get-message.d.mts","names":[],"sources":["../../src/actions/get-message.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAsBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAUzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -12,22 +12,22 @@ const RespondIoGetMessage_RESPOND_IO_GET_MESSAGEStatusSchema = z.object({
|
|
|
12
12
|
"delivered",
|
|
13
13
|
"read",
|
|
14
14
|
"failed"
|
|
15
|
-
]).describe("Delivery status of the message."),
|
|
15
|
+
]).describe("Delivery status of the message.").nullable(),
|
|
16
16
|
message: z.string().describe("Reason for failure, if status is 'failed'.").nullable().optional(),
|
|
17
|
-
timestamp: z.number().int().describe("Unix timestamp in seconds indicating when the status was recorded.")
|
|
18
|
-
});
|
|
17
|
+
timestamp: z.number().int().describe("Unix timestamp in seconds indicating when the status was recorded.").nullable()
|
|
18
|
+
}).passthrough();
|
|
19
19
|
const RespondIoGetMessage_RESPOND_IO_GET_MESSAGEAttachmentSchema = z.object({
|
|
20
|
-
url: z.string().describe("URL of the attachment."),
|
|
20
|
+
url: z.string().describe("URL of the attachment.").nullable(),
|
|
21
21
|
type: z.enum([
|
|
22
22
|
"image",
|
|
23
23
|
"video",
|
|
24
24
|
"audio",
|
|
25
25
|
"file"
|
|
26
|
-
]).describe("Type of the attachment."),
|
|
26
|
+
]).describe("Type of the attachment.").nullable(),
|
|
27
27
|
fileName: z.string().describe("Name of the file.").nullable().optional(),
|
|
28
28
|
mimeType: z.string().describe("MIME type of the attachment (e.g., 'image/png').").nullable().optional(),
|
|
29
29
|
description: z.string().describe("Optional description of the attachment.").nullable().optional()
|
|
30
|
-
});
|
|
30
|
+
}).passthrough();
|
|
31
31
|
const RespondIoGetMessage_RESPOND_IO_GET_MESSAGEMessageSchema = z.object({
|
|
32
32
|
text: z.string().describe("Text content of the message (for text messages).").nullable().optional(),
|
|
33
33
|
type: z.enum([
|
|
@@ -37,14 +37,14 @@ const RespondIoGetMessage_RESPOND_IO_GET_MESSAGEMessageSchema = z.object({
|
|
|
37
37
|
"audio",
|
|
38
38
|
"file",
|
|
39
39
|
"attachment"
|
|
40
|
-
]).describe("Type of the message. Supported types: text, image, video, audio, file, attachment."),
|
|
40
|
+
]).describe("Type of the message. Supported types: text, image, video, audio, file, attachment.").nullable(),
|
|
41
41
|
attachment: RespondIoGetMessage_RESPOND_IO_GET_MESSAGEAttachmentSchema.nullable().optional(),
|
|
42
42
|
messageTag: z.enum([
|
|
43
43
|
"ACCOUNT_UPDATE",
|
|
44
44
|
"POST_PURCHASE_UPDATE",
|
|
45
45
|
"CONFIRMED_EVENT_UPDATE"
|
|
46
46
|
]).describe("Tag for Facebook/Instagram messages sent outside 24h window. Allowed values: ACCOUNT_UPDATE, POST_PURCHASE_UPDATE, CONFIRMED_EVENT_UPDATE.").nullable().optional()
|
|
47
|
-
});
|
|
47
|
+
}).passthrough();
|
|
48
48
|
const respondIoGetMessage = action("RESPOND_IO_GET_MESSAGE", {
|
|
49
49
|
slug: "respond_io-get-message",
|
|
50
50
|
name: "Get Message",
|
|
@@ -53,12 +53,12 @@ const respondIoGetMessage = action("RESPOND_IO_GET_MESSAGE", {
|
|
|
53
53
|
output: z.object({
|
|
54
54
|
status: z.array(RespondIoGetMessage_RESPOND_IO_GET_MESSAGEStatusSchema).describe("Delivery statuses of the message."),
|
|
55
55
|
message: RespondIoGetMessage_RESPOND_IO_GET_MESSAGEMessageSchema.nullable(),
|
|
56
|
-
traffic: z.enum(["outgoing", "incoming"]).describe("Defines if the message was sent ('outgoing') or received ('incoming')."),
|
|
57
|
-
channelId: z.number().int().describe("ID of the channel through which the message was sent/received."),
|
|
58
|
-
contactId: z.number().int().describe("ID of the contact associated with the message."),
|
|
59
|
-
messageId: z.number().int().describe("Unique ID of the message."),
|
|
56
|
+
traffic: z.enum(["outgoing", "incoming"]).describe("Defines if the message was sent ('outgoing') or received ('incoming').").nullable(),
|
|
57
|
+
channelId: z.number().int().describe("ID of the channel through which the message was sent/received.").nullable(),
|
|
58
|
+
contactId: z.number().int().describe("ID of the contact associated with the message.").nullable(),
|
|
59
|
+
messageId: z.number().int().describe("Unique ID of the message.").nullable(),
|
|
60
60
|
channelMessageId: z.string().describe("Identifier of the message on the channel.").nullable().optional()
|
|
61
|
-
})
|
|
61
|
+
}).passthrough()
|
|
62
62
|
});
|
|
63
63
|
//#endregion
|
|
64
64
|
export { respondIoGetMessage };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-message.mjs","names":[],"sources":["../../src/actions/get-message.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RespondIoGetMessageInput
|
|
1
|
+
{"version":3,"file":"get-message.mjs","names":[],"sources":["../../src/actions/get-message.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RespondIoGetMessageInput = z.object({\n messageId: z.number().int().describe(\"Unique ID of the message to retrieve.\"),\n identifier: z.string().describe(\"Identifier of the contact, can be a phone number ('+60121233112'), email ('abdc@gmail.com'), or contact ID prefixed by 'id:' (e.g., 'id:123').\"),\n}).describe(\"Request model for retrieving a specific message by its ID.\");\nconst RespondIoGetMessage_RESPOND_IO_GET_MESSAGEStatusSchema = z.object({\n value: z.enum([\"pending\", \"sent\", \"delivered\", \"read\", \"failed\"]).describe(\"Delivery status of the message.\").nullable(),\n message: z.string().describe(\"Reason for failure, if status is 'failed'.\").nullable().optional(),\n timestamp: z.number().int().describe(\"Unix timestamp in seconds indicating when the status was recorded.\").nullable(),\n}).passthrough();\nconst RespondIoGetMessage_RESPOND_IO_GET_MESSAGEAttachmentSchema = z.object({\n url: z.string().describe(\"URL of the attachment.\").nullable(),\n type: z.enum([\"image\", \"video\", \"audio\", \"file\"]).describe(\"Type of the attachment.\").nullable(),\n fileName: z.string().describe(\"Name of the file.\").nullable().optional(),\n mimeType: z.string().describe(\"MIME type of the attachment (e.g., 'image/png').\").nullable().optional(),\n description: z.string().describe(\"Optional description of the attachment.\").nullable().optional(),\n}).passthrough();\nconst RespondIoGetMessage_RESPOND_IO_GET_MESSAGEMessageSchema = z.object({\n text: z.string().describe(\"Text content of the message (for text messages).\").nullable().optional(),\n type: z.enum([\"text\", \"image\", \"video\", \"audio\", \"file\", \"attachment\"]).describe(\"Type of the message. Supported types: text, image, video, audio, file, attachment.\").nullable(),\n attachment: RespondIoGetMessage_RESPOND_IO_GET_MESSAGEAttachmentSchema.nullable().optional(),\n messageTag: z.enum([\"ACCOUNT_UPDATE\", \"POST_PURCHASE_UPDATE\", \"CONFIRMED_EVENT_UPDATE\"]).describe(\"Tag for Facebook/Instagram messages sent outside 24h window. Allowed values: ACCOUNT_UPDATE, POST_PURCHASE_UPDATE, CONFIRMED_EVENT_UPDATE.\").nullable().optional(),\n}).passthrough();\nexport const RespondIoGetMessageOutput = z.object({\n status: z.array(RespondIoGetMessage_RESPOND_IO_GET_MESSAGEStatusSchema).describe(\"Delivery statuses of the message.\"),\n message: RespondIoGetMessage_RESPOND_IO_GET_MESSAGEMessageSchema.nullable(),\n traffic: z.enum([\"outgoing\", \"incoming\"]).describe(\"Defines if the message was sent ('outgoing') or received ('incoming').\").nullable(),\n channelId: z.number().int().describe(\"ID of the channel through which the message was sent/received.\").nullable(),\n contactId: z.number().int().describe(\"ID of the contact associated with the message.\").nullable(),\n messageId: z.number().int().describe(\"Unique ID of the message.\").nullable(),\n channelMessageId: z.string().describe(\"Identifier of the message on the channel.\").nullable().optional(),\n}).passthrough();\n\nexport const respondIoGetMessage = action(\"RESPOND_IO_GET_MESSAGE\", {\n slug: \"respond_io-get-message\",\n name: \"Get Message\",\n description: \"Tool to retrieve a specific message. Use when you need the details of a message sent to or received from a contact.\",\n input: RespondIoGetMessageInput,\n output: RespondIoGetMessageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC;CAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gJAAgJ;AAClL,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,yDAAyD,EAAE,OAAO;CACtE,OAAO,EAAE,KAAK;EAAC;EAAW;EAAQ;EAAa;EAAQ;CAAQ,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACvH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,6DAA6D,EAAE,OAAO;CAC1E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC5D,MAAM,EAAE,KAAK;EAAC;EAAS;EAAS;EAAS;CAAM,CAAC,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC/F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,0DAA0D,EAAE,OAAO;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,MAAM,EAAE,KAAK;EAAC;EAAQ;EAAS;EAAS;EAAS;EAAQ;CAAY,CAAC,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAChL,YAAY,2DAA2D,SAAS,CAAC,CAAC,SAAS;CAC3F,YAAY,EAAE,KAAK;EAAC;EAAkB;EAAwB;CAAwB,CAAC,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtQ,CAAC,CAAC,CAAC,YAAY;AAWf,MAAa,sBAAsB,OAAO,0BAA0B;CAClE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAfuC,EAAE,OAAO;EAChD,QAAQ,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,mCAAmC;EACpH,SAAS,wDAAwD,SAAS;EAC1E,SAAS,EAAE,KAAK,CAAC,YAAY,UAAU,CAAC,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;EACtI,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EAChH,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAChG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EAC3E,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -6,8 +6,8 @@ const RespondIoListChannelsInput = zod.z.object({
|
|
|
6
6
|
cursorId: zod.z.number().int().describe("Pointer to the channel ID from where the next batch of records should start.").optional()
|
|
7
7
|
}).describe("Request model for listing channels with optional pagination.");
|
|
8
8
|
const RespondIoListChannels_ChannelItemSchema = zod.z.object({
|
|
9
|
-
id: zod.z.number().int().describe("Unique identifier for the channel."),
|
|
10
|
-
name: zod.z.string().describe("Name of the channel."),
|
|
9
|
+
id: zod.z.number().int().describe("Unique identifier for the channel.").nullable(),
|
|
10
|
+
name: zod.z.string().describe("Name of the channel.").nullable(),
|
|
11
11
|
source: zod.z.enum([
|
|
12
12
|
"facebook",
|
|
13
13
|
"instagram",
|
|
@@ -27,17 +27,17 @@ const RespondIoListChannels_ChannelItemSchema = zod.z.object({
|
|
|
27
27
|
"message_bird_whatsapp",
|
|
28
28
|
"whatsappnexmo_whatsapp",
|
|
29
29
|
"whatsapp_cloud"
|
|
30
|
-
]).describe("Type of the channel."),
|
|
31
|
-
created_at: zod.z.number().int().describe("Unix timestamp (in seconds) when the channel was created.")
|
|
32
|
-
}).describe("Represents a messaging channel connected to the workspace.");
|
|
30
|
+
]).describe("Type of the channel.").nullable(),
|
|
31
|
+
created_at: zod.z.number().int().describe("Unix timestamp (in seconds) when the channel was created.").nullable()
|
|
32
|
+
}).passthrough().describe("Represents a messaging channel connected to the workspace.");
|
|
33
33
|
const RespondIoListChannels_PaginationSchema = zod.z.object({
|
|
34
34
|
next: zod.z.string().nullable(),
|
|
35
35
|
previous: zod.z.string().describe("URL to the previous page of results.").nullable().optional()
|
|
36
|
-
}).describe("URLs for navigating through paginated channel list.");
|
|
36
|
+
}).passthrough().describe("URLs for navigating through paginated channel list.");
|
|
37
37
|
const RespondIoListChannelsOutput = zod.z.object({
|
|
38
38
|
items: zod.z.array(RespondIoListChannels_ChannelItemSchema).describe("List of channels connected to the workspace."),
|
|
39
39
|
pagination: RespondIoListChannels_PaginationSchema.nullable()
|
|
40
|
-
}).describe("Response model containing the list of channels and pagination info.");
|
|
40
|
+
}).passthrough().describe("Response model containing the list of channels and pagination info.");
|
|
41
41
|
const respondIoListChannels = require_action.action("RESPOND_IO_LIST_CHANNELS", {
|
|
42
42
|
slug: "respond_io-list-channels",
|
|
43
43
|
name: "List channels",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-channels.cjs","names":["z","action"],"sources":["../../src/actions/list-channels.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RespondIoListChannelsInput
|
|
1
|
+
{"version":3,"file":"list-channels.cjs","names":["z","action"],"sources":["../../src/actions/list-channels.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RespondIoListChannelsInput = z.object({\n limit: z.number().int().default(10).describe(\"Number of items to return (page size). Default is 10, maximum 100.\").optional(),\n cursorId: z.number().int().describe(\"Pointer to the channel ID from where the next batch of records should start.\").optional(),\n}).describe(\"Request model for listing channels with optional pagination.\");\nconst RespondIoListChannels_ChannelItemSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the channel.\").nullable(),\n name: z.string().describe(\"Name of the channel.\").nullable(),\n source: z.enum([\"facebook\", \"instagram\", \"line\", \"telegram\", \"viber\", \"twitter\", \"wechat\", \"custom_channel\", \"gmail\", \"other_email\", \"twilio\", \"message_bird\", \"nexmo\", \"360dialog_whatsapp\", \"twilio_whatsapp\", \"message_bird_whatsapp\", \"whatsappnexmo_whatsapp\", \"whatsapp_cloud\"]).describe(\"Type of the channel.\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp (in seconds) when the channel was created.\").nullable(),\n}).passthrough().describe(\"Represents a messaging channel connected to the workspace.\");\nconst RespondIoListChannels_PaginationSchema = z.object({\n next: z.string().nullable(),\n previous: z.string().describe(\"URL to the previous page of results.\").nullable().optional(),\n}).passthrough().describe(\"URLs for navigating through paginated channel list.\");\nexport const RespondIoListChannelsOutput = z.object({\n items: z.array(RespondIoListChannels_ChannelItemSchema).describe(\"List of channels connected to the workspace.\"),\n pagination: RespondIoListChannels_PaginationSchema.nullable(),\n}).passthrough().describe(\"Response model containing the list of channels and pagination info.\");\n\nexport const respondIoListChannels = action(\"RESPOND_IO_LIST_CHANNELS\", {\n slug: \"respond_io-list-channels\",\n name: \"List channels\",\n description: \"Tool to retrieve a list of channels connected to the workspace. Use when you need to enumerate all messaging channels with pagination support.\",\n input: RespondIoListChannelsInput,\n output: RespondIoListChannelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC5H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;AAC/H,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC3D,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAY;EAAa;EAAQ;EAAY;EAAS;EAAW;EAAU;EAAkB;EAAS;EAAe;EAAU;EAAgB;EAAS;EAAsB;EAAmB;EAAyB;EAA0B;CAAgB,CAAC,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACjU,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AACtF,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,OAAOA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,8CAA8C;CAC/G,YAAY,uCAAuC,SAAS;AAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qEAAqE;AAE/F,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,45 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-channels.d.ts
|
|
4
|
-
declare const RespondIoListChannelsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RespondIoListChannelsInput: z.ZodObject<{
|
|
5
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
|
+
cursorId: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const RespondIoListChannelsOutput: z.ZodObject<{
|
|
9
|
+
items: z.ZodArray<z.ZodObject<{
|
|
10
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
name: z.ZodNullable<z.ZodString>;
|
|
12
|
+
source: z.ZodNullable<z.ZodEnum<{
|
|
13
|
+
facebook: "facebook";
|
|
14
|
+
instagram: "instagram";
|
|
15
|
+
line: "line";
|
|
16
|
+
telegram: "telegram";
|
|
17
|
+
viber: "viber";
|
|
18
|
+
twitter: "twitter";
|
|
19
|
+
wechat: "wechat";
|
|
20
|
+
custom_channel: "custom_channel";
|
|
21
|
+
gmail: "gmail";
|
|
22
|
+
other_email: "other_email";
|
|
23
|
+
twilio: "twilio";
|
|
24
|
+
message_bird: "message_bird";
|
|
25
|
+
nexmo: "nexmo";
|
|
26
|
+
"360dialog_whatsapp": "360dialog_whatsapp";
|
|
27
|
+
twilio_whatsapp: "twilio_whatsapp";
|
|
28
|
+
message_bird_whatsapp: "message_bird_whatsapp";
|
|
29
|
+
whatsappnexmo_whatsapp: "whatsappnexmo_whatsapp";
|
|
30
|
+
whatsapp_cloud: "whatsapp_cloud";
|
|
31
|
+
}>>;
|
|
32
|
+
created_at: z.ZodNullable<z.ZodNumber>;
|
|
33
|
+
}, z.core.$loose>>;
|
|
34
|
+
pagination: z.ZodNullable<z.ZodObject<{
|
|
35
|
+
next: z.ZodNullable<z.ZodString>;
|
|
36
|
+
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
}, z.core.$loose>>;
|
|
38
|
+
}, z.core.$loose>;
|
|
39
|
+
declare const respondIoListChannels: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
40
|
+
limit?: number | undefined;
|
|
41
|
+
cursorId?: number | undefined;
|
|
42
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
43
|
//#endregion
|
|
8
44
|
export { respondIoListChannels };
|
|
9
45
|
//# sourceMappingURL=list-channels.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-channels.d.cts","names":[],"sources":["../../src/actions/list-channels.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"list-channels.d.cts","names":[],"sources":["../../src/actions/list-channels.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAc1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -1,9 +1,45 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-channels.d.ts
|
|
4
|
-
declare const RespondIoListChannelsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RespondIoListChannelsInput: z.ZodObject<{
|
|
5
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
|
+
cursorId: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const RespondIoListChannelsOutput: z.ZodObject<{
|
|
9
|
+
items: z.ZodArray<z.ZodObject<{
|
|
10
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
11
|
+
name: z.ZodNullable<z.ZodString>;
|
|
12
|
+
source: z.ZodNullable<z.ZodEnum<{
|
|
13
|
+
facebook: "facebook";
|
|
14
|
+
instagram: "instagram";
|
|
15
|
+
line: "line";
|
|
16
|
+
telegram: "telegram";
|
|
17
|
+
viber: "viber";
|
|
18
|
+
twitter: "twitter";
|
|
19
|
+
wechat: "wechat";
|
|
20
|
+
custom_channel: "custom_channel";
|
|
21
|
+
gmail: "gmail";
|
|
22
|
+
other_email: "other_email";
|
|
23
|
+
twilio: "twilio";
|
|
24
|
+
message_bird: "message_bird";
|
|
25
|
+
nexmo: "nexmo";
|
|
26
|
+
"360dialog_whatsapp": "360dialog_whatsapp";
|
|
27
|
+
twilio_whatsapp: "twilio_whatsapp";
|
|
28
|
+
message_bird_whatsapp: "message_bird_whatsapp";
|
|
29
|
+
whatsappnexmo_whatsapp: "whatsappnexmo_whatsapp";
|
|
30
|
+
whatsapp_cloud: "whatsapp_cloud";
|
|
31
|
+
}>>;
|
|
32
|
+
created_at: z.ZodNullable<z.ZodNumber>;
|
|
33
|
+
}, z.core.$loose>>;
|
|
34
|
+
pagination: z.ZodNullable<z.ZodObject<{
|
|
35
|
+
next: z.ZodNullable<z.ZodString>;
|
|
36
|
+
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
}, z.core.$loose>>;
|
|
38
|
+
}, z.core.$loose>;
|
|
39
|
+
declare const respondIoListChannels: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
40
|
+
limit?: number | undefined;
|
|
41
|
+
cursorId?: number | undefined;
|
|
42
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
43
|
//#endregion
|
|
8
44
|
export { respondIoListChannels };
|
|
9
45
|
//# sourceMappingURL=list-channels.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-channels.d.mts","names":[],"sources":["../../src/actions/list-channels.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"list-channels.d.mts","names":[],"sources":["../../src/actions/list-channels.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAc1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAK3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -6,8 +6,8 @@ const RespondIoListChannelsInput = z.object({
|
|
|
6
6
|
cursorId: z.number().int().describe("Pointer to the channel ID from where the next batch of records should start.").optional()
|
|
7
7
|
}).describe("Request model for listing channels with optional pagination.");
|
|
8
8
|
const RespondIoListChannels_ChannelItemSchema = z.object({
|
|
9
|
-
id: z.number().int().describe("Unique identifier for the channel."),
|
|
10
|
-
name: z.string().describe("Name of the channel."),
|
|
9
|
+
id: z.number().int().describe("Unique identifier for the channel.").nullable(),
|
|
10
|
+
name: z.string().describe("Name of the channel.").nullable(),
|
|
11
11
|
source: z.enum([
|
|
12
12
|
"facebook",
|
|
13
13
|
"instagram",
|
|
@@ -27,13 +27,13 @@ const RespondIoListChannels_ChannelItemSchema = z.object({
|
|
|
27
27
|
"message_bird_whatsapp",
|
|
28
28
|
"whatsappnexmo_whatsapp",
|
|
29
29
|
"whatsapp_cloud"
|
|
30
|
-
]).describe("Type of the channel."),
|
|
31
|
-
created_at: z.number().int().describe("Unix timestamp (in seconds) when the channel was created.")
|
|
32
|
-
}).describe("Represents a messaging channel connected to the workspace.");
|
|
30
|
+
]).describe("Type of the channel.").nullable(),
|
|
31
|
+
created_at: z.number().int().describe("Unix timestamp (in seconds) when the channel was created.").nullable()
|
|
32
|
+
}).passthrough().describe("Represents a messaging channel connected to the workspace.");
|
|
33
33
|
const RespondIoListChannels_PaginationSchema = z.object({
|
|
34
34
|
next: z.string().nullable(),
|
|
35
35
|
previous: z.string().describe("URL to the previous page of results.").nullable().optional()
|
|
36
|
-
}).describe("URLs for navigating through paginated channel list.");
|
|
36
|
+
}).passthrough().describe("URLs for navigating through paginated channel list.");
|
|
37
37
|
const respondIoListChannels = action("RESPOND_IO_LIST_CHANNELS", {
|
|
38
38
|
slug: "respond_io-list-channels",
|
|
39
39
|
name: "List channels",
|
|
@@ -42,7 +42,7 @@ const respondIoListChannels = action("RESPOND_IO_LIST_CHANNELS", {
|
|
|
42
42
|
output: z.object({
|
|
43
43
|
items: z.array(RespondIoListChannels_ChannelItemSchema).describe("List of channels connected to the workspace."),
|
|
44
44
|
pagination: RespondIoListChannels_PaginationSchema.nullable()
|
|
45
|
-
}).describe("Response model containing the list of channels and pagination info.")
|
|
45
|
+
}).passthrough().describe("Response model containing the list of channels and pagination info.")
|
|
46
46
|
});
|
|
47
47
|
//#endregion
|
|
48
48
|
export { respondIoListChannels };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-channels.mjs","names":[],"sources":["../../src/actions/list-channels.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RespondIoListChannelsInput
|
|
1
|
+
{"version":3,"file":"list-channels.mjs","names":[],"sources":["../../src/actions/list-channels.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RespondIoListChannelsInput = z.object({\n limit: z.number().int().default(10).describe(\"Number of items to return (page size). Default is 10, maximum 100.\").optional(),\n cursorId: z.number().int().describe(\"Pointer to the channel ID from where the next batch of records should start.\").optional(),\n}).describe(\"Request model for listing channels with optional pagination.\");\nconst RespondIoListChannels_ChannelItemSchema = z.object({\n id: z.number().int().describe(\"Unique identifier for the channel.\").nullable(),\n name: z.string().describe(\"Name of the channel.\").nullable(),\n source: z.enum([\"facebook\", \"instagram\", \"line\", \"telegram\", \"viber\", \"twitter\", \"wechat\", \"custom_channel\", \"gmail\", \"other_email\", \"twilio\", \"message_bird\", \"nexmo\", \"360dialog_whatsapp\", \"twilio_whatsapp\", \"message_bird_whatsapp\", \"whatsappnexmo_whatsapp\", \"whatsapp_cloud\"]).describe(\"Type of the channel.\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp (in seconds) when the channel was created.\").nullable(),\n}).passthrough().describe(\"Represents a messaging channel connected to the workspace.\");\nconst RespondIoListChannels_PaginationSchema = z.object({\n next: z.string().nullable(),\n previous: z.string().describe(\"URL to the previous page of results.\").nullable().optional(),\n}).passthrough().describe(\"URLs for navigating through paginated channel list.\");\nexport const RespondIoListChannelsOutput = z.object({\n items: z.array(RespondIoListChannels_ChannelItemSchema).describe(\"List of channels connected to the workspace.\"),\n pagination: RespondIoListChannels_PaginationSchema.nullable(),\n}).passthrough().describe(\"Response model containing the list of channels and pagination info.\");\n\nexport const respondIoListChannels = action(\"RESPOND_IO_LIST_CHANNELS\", {\n slug: \"respond_io-list-channels\",\n name: \"List channels\",\n description: \"Tool to retrieve a list of channels connected to the workspace. Use when you need to enumerate all messaging channels with pagination support.\",\n input: RespondIoListChannelsInput,\n output: RespondIoListChannelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC5H,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;AAC/H,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,0CAA0C,EAAE,OAAO;CACvD,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC3D,QAAQ,EAAE,KAAK;EAAC;EAAY;EAAa;EAAQ;EAAY;EAAS;EAAW;EAAU;EAAkB;EAAS;EAAe;EAAU;EAAgB;EAAS;EAAsB;EAAmB;EAAyB;EAA0B;CAAgB,CAAC,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACjU,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AACtF,MAAM,yCAAyC,EAAE,OAAO;CACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS;CAC1B,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAM/E,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVyC,EAAE,OAAO;EAClD,OAAO,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,8CAA8C;EAC/G,YAAY,uCAAuC,SAAS;CAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qEAOhB;AACV,CAAC"}
|
|
@@ -3,20 +3,20 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/list-users.ts
|
|
4
4
|
const RespondIoListUsersInput = zod.z.object({}).describe("Request model for listing all users in the workspace.");
|
|
5
5
|
const RespondIoListUsers_TeamSchema = zod.z.object({
|
|
6
|
-
id: zod.z.number().int().describe("Unique identifier of the team."),
|
|
7
|
-
name: zod.z.string().describe("Name of the team.")
|
|
8
|
-
}).describe("Team object associated with a user.");
|
|
6
|
+
id: zod.z.number().int().describe("Unique identifier of the team.").nullable(),
|
|
7
|
+
name: zod.z.string().describe("Name of the team.").nullable()
|
|
8
|
+
}).passthrough().describe("Team object associated with a user.");
|
|
9
9
|
const RespondIoListUsers_UserItemSchema = zod.z.object({
|
|
10
|
-
id: zod.z.number().int().describe("Unique identifier of the user."),
|
|
10
|
+
id: zod.z.number().int().describe("Unique identifier of the user.").nullable(),
|
|
11
11
|
role: zod.z.enum([
|
|
12
12
|
"agent",
|
|
13
13
|
"manager",
|
|
14
14
|
"owner"
|
|
15
|
-
]).describe("Role of the user in the workspace."),
|
|
15
|
+
]).describe("Role of the user in the workspace.").nullable(),
|
|
16
16
|
team: RespondIoListUsers_TeamSchema.nullable().optional(),
|
|
17
|
-
email: zod.z.string().describe("Email address of the user."),
|
|
18
|
-
lastName: zod.z.string().describe("Last name of the user."),
|
|
19
|
-
firstName: zod.z.string().describe("First name of the user."),
|
|
17
|
+
email: zod.z.string().describe("Email address of the user.").nullable(),
|
|
18
|
+
lastName: zod.z.string().describe("Last name of the user.").nullable(),
|
|
19
|
+
firstName: zod.z.string().describe("First name of the user.").nullable(),
|
|
20
20
|
restrictions: zod.z.array(zod.z.enum([
|
|
21
21
|
"restrict_data_export",
|
|
22
22
|
"restrict_contact_deletion",
|
|
@@ -26,8 +26,8 @@ const RespondIoListUsers_UserItemSchema = zod.z.object({
|
|
|
26
26
|
"restrict_space_integration",
|
|
27
27
|
"restrict_shortcuts"
|
|
28
28
|
])).describe("Workspace-level restrictions applied to the user.")
|
|
29
|
-
}).describe("Represents a user in the workspace.");
|
|
30
|
-
const RespondIoListUsersOutput = zod.z.object({ data: zod.z.array(RespondIoListUsers_UserItemSchema).describe("List of users in the workspace.") }).describe("Response model containing a list of users in the workspace.");
|
|
29
|
+
}).passthrough().describe("Represents a user in the workspace.");
|
|
30
|
+
const RespondIoListUsersOutput = zod.z.object({ data: zod.z.array(RespondIoListUsers_UserItemSchema).describe("List of users in the workspace.") }).passthrough().describe("Response model containing a list of users in the workspace.");
|
|
31
31
|
const respondIoListUsers = require_action.action("RESPOND_IO_LIST_USERS", {
|
|
32
32
|
slug: "respond_io-list-users",
|
|
33
33
|
name: "List users",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-users.cjs","names":["z","action"],"sources":["../../src/actions/list-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RespondIoListUsersInput
|
|
1
|
+
{"version":3,"file":"list-users.cjs","names":["z","action"],"sources":["../../src/actions/list-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RespondIoListUsersInput = z.object({}).describe(\"Request model for listing all users in the workspace.\");\nconst RespondIoListUsers_TeamSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the team.\").nullable(),\n name: z.string().describe(\"Name of the team.\").nullable(),\n}).passthrough().describe(\"Team object associated with a user.\");\nconst RespondIoListUsers_UserItemSchema = z.object({\n id: z.number().int().describe(\"Unique identifier of the user.\").nullable(),\n role: z.enum([\"agent\", \"manager\", \"owner\"]).describe(\"Role of the user in the workspace.\").nullable(),\n team: RespondIoListUsers_TeamSchema.nullable().optional(),\n email: z.string().describe(\"Email address of the user.\").nullable(),\n lastName: z.string().describe(\"Last name of the user.\").nullable(),\n firstName: z.string().describe(\"First name of the user.\").nullable(),\n restrictions: z.array(z.enum([\"restrict_data_export\", \"restrict_contact_deletion\", \"restrict_space_settings\", \"show_team_contacts\", \"show_only_mine\", \"restrict_space_integration\", \"restrict_shortcuts\"])).describe(\"Workspace-level restrictions applied to the user.\"),\n}).passthrough().describe(\"Represents a user in the workspace.\");\nexport const RespondIoListUsersOutput = z.object({\n data: z.array(RespondIoListUsers_UserItemSchema).describe(\"List of users in the workspace.\"),\n}).passthrough().describe(\"Response model containing a list of users in the workspace.\");\n\nexport const respondIoListUsers = action(\"RESPOND_IO_LIST_USERS\", {\n slug: \"respond_io-list-users\",\n name: \"List users\",\n description: \"Tool to retrieve a list of users in the workspace. Use when you need to fetch all workspace users for auditing or assignment.\",\n input: RespondIoListUsersInput,\n output: RespondIoListUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACpH,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;AAC1D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAM,oCAAoCA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACzE,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAW;CAAO,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACpG,MAAM,8BAA8B,SAAS,CAAC,CAAC,SAAS;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACjE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACnE,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAwB;EAA6B;EAA2B;EAAsB;EAAkB;EAA8B;CAAoB,CAAC,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC1Q,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,MAAMA,IAAAA,EAAE,MAAM,iCAAiC,CAAC,CAAC,SAAS,iCAAiC,EAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AAEvF,MAAa,qBAAqBC,eAAAA,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,34 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-users.d.ts
|
|
4
|
-
declare const RespondIoListUsersInput: z.
|
|
5
|
-
declare const RespondIoListUsersOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const RespondIoListUsersInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const RespondIoListUsersOutput: z.ZodObject<{
|
|
6
|
+
data: z.ZodArray<z.ZodObject<{
|
|
7
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
8
|
+
role: z.ZodNullable<z.ZodEnum<{
|
|
9
|
+
agent: "agent";
|
|
10
|
+
manager: "manager";
|
|
11
|
+
owner: "owner";
|
|
12
|
+
}>>;
|
|
13
|
+
team: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
14
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
name: z.ZodNullable<z.ZodString>;
|
|
16
|
+
}, z.core.$loose>>>;
|
|
17
|
+
email: z.ZodNullable<z.ZodString>;
|
|
18
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
19
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
20
|
+
restrictions: z.ZodArray<z.ZodEnum<{
|
|
21
|
+
restrict_data_export: "restrict_data_export";
|
|
22
|
+
restrict_contact_deletion: "restrict_contact_deletion";
|
|
23
|
+
restrict_space_settings: "restrict_space_settings";
|
|
24
|
+
show_team_contacts: "show_team_contacts";
|
|
25
|
+
show_only_mine: "show_only_mine";
|
|
26
|
+
restrict_space_integration: "restrict_space_integration";
|
|
27
|
+
restrict_shortcuts: "restrict_shortcuts";
|
|
28
|
+
}>>;
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
|
+
}, z.core.$loose>;
|
|
31
|
+
declare const respondIoListUsers: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
32
|
//#endregion
|
|
8
33
|
export { respondIoListUsers };
|
|
9
34
|
//# sourceMappingURL=list-users.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-users.d.cts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"list-users.d.cts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAcvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,34 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-users.d.ts
|
|
4
|
-
declare const RespondIoListUsersInput: z.
|
|
5
|
-
declare const RespondIoListUsersOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const RespondIoListUsersInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const RespondIoListUsersOutput: z.ZodObject<{
|
|
6
|
+
data: z.ZodArray<z.ZodObject<{
|
|
7
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
8
|
+
role: z.ZodNullable<z.ZodEnum<{
|
|
9
|
+
agent: "agent";
|
|
10
|
+
manager: "manager";
|
|
11
|
+
owner: "owner";
|
|
12
|
+
}>>;
|
|
13
|
+
team: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
14
|
+
id: z.ZodNullable<z.ZodNumber>;
|
|
15
|
+
name: z.ZodNullable<z.ZodString>;
|
|
16
|
+
}, z.core.$loose>>>;
|
|
17
|
+
email: z.ZodNullable<z.ZodString>;
|
|
18
|
+
lastName: z.ZodNullable<z.ZodString>;
|
|
19
|
+
firstName: z.ZodNullable<z.ZodString>;
|
|
20
|
+
restrictions: z.ZodArray<z.ZodEnum<{
|
|
21
|
+
restrict_data_export: "restrict_data_export";
|
|
22
|
+
restrict_contact_deletion: "restrict_contact_deletion";
|
|
23
|
+
restrict_space_settings: "restrict_space_settings";
|
|
24
|
+
show_team_contacts: "show_team_contacts";
|
|
25
|
+
show_only_mine: "show_only_mine";
|
|
26
|
+
restrict_space_integration: "restrict_space_integration";
|
|
27
|
+
restrict_shortcuts: "restrict_shortcuts";
|
|
28
|
+
}>>;
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
|
+
}, z.core.$loose>;
|
|
31
|
+
declare const respondIoListUsers: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
32
|
//#endregion
|
|
8
33
|
export { respondIoListUsers };
|
|
9
34
|
//# sourceMappingURL=list-users.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-users.d.mts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"list-users.d.mts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAcvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAIxB,kBAAA,gCAAkB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|