@keystrokehq/superchat 0.1.0
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 +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/create-contact.cjs +55 -0
- package/dist/actions/create-contact.cjs.map +1 -0
- package/dist/actions/create-contact.d.cts +9 -0
- package/dist/actions/create-contact.d.cts.map +1 -0
- package/dist/actions/create-contact.d.mts +9 -0
- package/dist/actions/create-contact.d.mts.map +1 -0
- package/dist/actions/create-contact.mjs +54 -0
- package/dist/actions/create-contact.mjs.map +1 -0
- package/dist/actions/create-template-folder.cjs +20 -0
- package/dist/actions/create-template-folder.cjs.map +1 -0
- package/dist/actions/create-template-folder.d.cts +9 -0
- package/dist/actions/create-template-folder.d.cts.map +1 -0
- package/dist/actions/create-template-folder.d.mts +9 -0
- package/dist/actions/create-template-folder.d.mts.map +1 -0
- package/dist/actions/create-template-folder.mjs +17 -0
- package/dist/actions/create-template-folder.mjs.map +1 -0
- package/dist/actions/delete-webhook.cjs +16 -0
- package/dist/actions/delete-webhook.cjs.map +1 -0
- package/dist/actions/delete-webhook.d.cts +9 -0
- package/dist/actions/delete-webhook.d.cts.map +1 -0
- package/dist/actions/delete-webhook.d.mts +9 -0
- package/dist/actions/delete-webhook.d.mts.map +1 -0
- package/dist/actions/delete-webhook.mjs +13 -0
- package/dist/actions/delete-webhook.mjs.map +1 -0
- package/dist/actions/get-contact.cjs +39 -0
- package/dist/actions/get-contact.cjs.map +1 -0
- package/dist/actions/get-contact.d.cts +9 -0
- package/dist/actions/get-contact.d.cts.map +1 -0
- package/dist/actions/get-contact.d.mts +9 -0
- package/dist/actions/get-contact.d.mts.map +1 -0
- package/dist/actions/get-contact.mjs +38 -0
- package/dist/actions/get-contact.mjs.map +1 -0
- package/dist/actions/get-file.cjs +26 -0
- package/dist/actions/get-file.cjs.map +1 -0
- package/dist/actions/get-file.d.cts +9 -0
- package/dist/actions/get-file.d.cts.map +1 -0
- package/dist/actions/get-file.d.mts +9 -0
- package/dist/actions/get-file.d.mts.map +1 -0
- package/dist/actions/get-file.mjs +25 -0
- package/dist/actions/get-file.mjs.map +1 -0
- package/dist/actions/get-user.cjs +25 -0
- package/dist/actions/get-user.cjs.map +1 -0
- package/dist/actions/get-user.d.cts +9 -0
- package/dist/actions/get-user.d.cts.map +1 -0
- package/dist/actions/get-user.d.mts +9 -0
- package/dist/actions/get-user.d.mts.map +1 -0
- package/dist/actions/get-user.mjs +22 -0
- package/dist/actions/get-user.mjs.map +1 -0
- package/dist/actions/index.cjs +35 -0
- package/dist/actions/index.d.cts +18 -0
- package/dist/actions/index.d.mts +18 -0
- package/dist/actions/index.mjs +18 -0
- package/dist/actions/list-channels.cjs +37 -0
- package/dist/actions/list-channels.cjs.map +1 -0
- package/dist/actions/list-channels.d.cts +9 -0
- package/dist/actions/list-channels.d.cts.map +1 -0
- package/dist/actions/list-channels.d.mts +9 -0
- package/dist/actions/list-channels.d.mts.map +1 -0
- package/dist/actions/list-channels.mjs +36 -0
- package/dist/actions/list-channels.mjs.map +1 -0
- package/dist/actions/list-contacts.cjs +63 -0
- package/dist/actions/list-contacts.cjs.map +1 -0
- package/dist/actions/list-contacts.d.cts +9 -0
- package/dist/actions/list-contacts.d.cts.map +1 -0
- package/dist/actions/list-contacts.d.mts +9 -0
- package/dist/actions/list-contacts.d.mts.map +1 -0
- package/dist/actions/list-contacts.mjs +62 -0
- package/dist/actions/list-contacts.mjs.map +1 -0
- package/dist/actions/list-conversations.cjs +70 -0
- package/dist/actions/list-conversations.cjs.map +1 -0
- package/dist/actions/list-conversations.d.cts +9 -0
- package/dist/actions/list-conversations.d.cts.map +1 -0
- package/dist/actions/list-conversations.d.mts +9 -0
- package/dist/actions/list-conversations.d.mts.map +1 -0
- package/dist/actions/list-conversations.mjs +69 -0
- package/dist/actions/list-conversations.mjs.map +1 -0
- package/dist/actions/list-custom-attributes.cjs +37 -0
- package/dist/actions/list-custom-attributes.cjs.map +1 -0
- package/dist/actions/list-custom-attributes.d.cts +9 -0
- package/dist/actions/list-custom-attributes.d.cts.map +1 -0
- package/dist/actions/list-custom-attributes.d.mts +9 -0
- package/dist/actions/list-custom-attributes.d.mts.map +1 -0
- package/dist/actions/list-custom-attributes.mjs +36 -0
- package/dist/actions/list-custom-attributes.mjs.map +1 -0
- package/dist/actions/list-inboxes.cjs +41 -0
- package/dist/actions/list-inboxes.cjs.map +1 -0
- package/dist/actions/list-inboxes.d.cts +9 -0
- package/dist/actions/list-inboxes.d.cts.map +1 -0
- package/dist/actions/list-inboxes.d.mts +9 -0
- package/dist/actions/list-inboxes.d.mts.map +1 -0
- package/dist/actions/list-inboxes.mjs +40 -0
- package/dist/actions/list-inboxes.mjs.map +1 -0
- package/dist/actions/list-labels.cjs +37 -0
- package/dist/actions/list-labels.cjs.map +1 -0
- package/dist/actions/list-labels.d.cts +9 -0
- package/dist/actions/list-labels.d.cts.map +1 -0
- package/dist/actions/list-labels.d.mts +9 -0
- package/dist/actions/list-labels.d.mts.map +1 -0
- package/dist/actions/list-labels.mjs +36 -0
- package/dist/actions/list-labels.mjs.map +1 -0
- package/dist/actions/list-templates.cjs +38 -0
- package/dist/actions/list-templates.cjs.map +1 -0
- package/dist/actions/list-templates.d.cts +9 -0
- package/dist/actions/list-templates.d.cts.map +1 -0
- package/dist/actions/list-templates.d.mts +9 -0
- package/dist/actions/list-templates.d.mts.map +1 -0
- package/dist/actions/list-templates.mjs +37 -0
- package/dist/actions/list-templates.mjs.map +1 -0
- package/dist/actions/list-users.cjs +40 -0
- package/dist/actions/list-users.cjs.map +1 -0
- package/dist/actions/list-users.d.cts +9 -0
- package/dist/actions/list-users.d.cts.map +1 -0
- package/dist/actions/list-users.d.mts +9 -0
- package/dist/actions/list-users.d.mts.map +1 -0
- package/dist/actions/list-users.mjs +39 -0
- package/dist/actions/list-users.mjs.map +1 -0
- package/dist/actions/list-webhooks.cjs +47 -0
- package/dist/actions/list-webhooks.cjs.map +1 -0
- package/dist/actions/list-webhooks.d.cts +9 -0
- package/dist/actions/list-webhooks.d.cts.map +1 -0
- package/dist/actions/list-webhooks.d.mts +9 -0
- package/dist/actions/list-webhooks.d.mts.map +1 -0
- package/dist/actions/list-webhooks.mjs +46 -0
- package/dist/actions/list-webhooks.mjs.map +1 -0
- package/dist/actions/update-contact.cjs +68 -0
- package/dist/actions/update-contact.cjs.map +1 -0
- package/dist/actions/update-contact.d.cts +9 -0
- package/dist/actions/update-contact.d.cts.map +1 -0
- package/dist/actions/update-contact.d.mts +9 -0
- package/dist/actions/update-contact.d.mts.map +1 -0
- package/dist/actions/update-contact.mjs +67 -0
- package/dist/actions/update-contact.mjs.map +1 -0
- package/dist/actions/update-webhook.cjs +27 -0
- package/dist/actions/update-webhook.cjs.map +1 -0
- package/dist/actions/update-webhook.d.cts +9 -0
- package/dist/actions/update-webhook.d.cts.map +1 -0
- package/dist/actions/update-webhook.d.mts +9 -0
- package/dist/actions/update-webhook.d.mts.map +1 -0
- package/dist/actions/update-webhook.mjs +24 -0
- package/dist/actions/update-webhook.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +40 -0
- package/dist/index.d.cts +20 -0
- package/dist/index.d.mts +20 -0
- package/dist/index.mjs +21 -0
- package/package.json +49 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-conversations.ts
|
|
4
|
+
const SuperchatListConversationsInput = zod.z.object({
|
|
5
|
+
after: zod.z.string().describe("Pagination cursor to retrieve the next page of results. Use the 'next_cursor' value from a previous response. Cannot be used with 'before'. Omit for the first page.").optional(),
|
|
6
|
+
limit: zod.z.number().int().default(50).describe("Number of conversations to return (1-100). Default is 50.").optional(),
|
|
7
|
+
before: zod.z.string().describe("Pagination cursor to retrieve the previous page of results. Use the 'previous_cursor' value from a previous response. Cannot be used with 'after'. Omit for the first page.").optional()
|
|
8
|
+
}).describe("Request model for ListConversations action.");
|
|
9
|
+
const SuperchatListConversations_InboxRefSchema = zod.z.object({
|
|
10
|
+
id: zod.z.string().describe("Unique identifier of the inbox.").nullable().optional(),
|
|
11
|
+
url: zod.z.string().describe("API URL reference to the inbox resource.").nullable().optional(),
|
|
12
|
+
name: zod.z.string().describe("Name of the inbox.").nullable().optional()
|
|
13
|
+
}).describe("Reference to the inbox containing the conversation.");
|
|
14
|
+
const SuperchatListConversations_LabelRefSchema = zod.z.object({
|
|
15
|
+
id: zod.z.string().describe("Unique identifier of the label.").nullable().optional(),
|
|
16
|
+
url: zod.z.string().describe("API URL reference to the label resource.").nullable().optional(),
|
|
17
|
+
name: zod.z.string().describe("Name of the label.").nullable().optional()
|
|
18
|
+
}).describe("Reference to a label applied to the conversation.");
|
|
19
|
+
const SuperchatListConversations_ChannelInfoSchema = zod.z.object({
|
|
20
|
+
id: zod.z.string().describe("Unique identifier of the channel.").nullable().optional(),
|
|
21
|
+
url: zod.z.string().describe("API URL reference to the channel resource.").nullable().optional(),
|
|
22
|
+
type: zod.z.string().describe("Type of channel. One of: 'whats_app', 'mail', 'sms', 'telegram', 'instagram', 'facebook'.").nullable().optional()
|
|
23
|
+
}).describe("Information about the communication channel used in a conversation.");
|
|
24
|
+
const SuperchatListConversations_ContactRefSchema = zod.z.object({
|
|
25
|
+
id: zod.z.string().describe("Unique identifier of the contact.").nullable().optional(),
|
|
26
|
+
url: zod.z.string().describe("API URL reference to the contact resource.").nullable().optional()
|
|
27
|
+
}).describe("Reference to a contact in the conversation.");
|
|
28
|
+
const SuperchatListConversations_TimeWindowSchema = zod.z.object({
|
|
29
|
+
state: zod.z.string().describe("State of the time window. One of: 'open', 'closed'.").nullable().optional(),
|
|
30
|
+
open_until: zod.z.string().describe("ISO 8601 timestamp until which the time window is open.").nullable().optional()
|
|
31
|
+
}).describe("Information about the messaging time window for the conversation.");
|
|
32
|
+
const SuperchatListConversations_UserRefSchema = zod.z.object({
|
|
33
|
+
id: zod.z.string().describe("Unique identifier of the user.").nullable().optional(),
|
|
34
|
+
url: zod.z.string().describe("API URL reference to the user resource.").nullable().optional(),
|
|
35
|
+
email: zod.z.string().describe("Email address of the user.").nullable().optional()
|
|
36
|
+
}).describe("Reference to a user assigned to the conversation.");
|
|
37
|
+
const SuperchatListConversations_ConversationSummarySchema = zod.z.object({
|
|
38
|
+
id: zod.z.string().describe("Unique identifier of the conversation, prefixed with 'cv_'."),
|
|
39
|
+
url: zod.z.string().describe("API URL reference to this conversation resource.").nullable().optional(),
|
|
40
|
+
inbox: SuperchatListConversations_InboxRefSchema.nullable().optional(),
|
|
41
|
+
labels: zod.z.array(SuperchatListConversations_LabelRefSchema).describe("List of labels applied to this conversation.").nullable().optional(),
|
|
42
|
+
status: zod.z.string().describe("Current status of the conversation. One of: 'open', 'snoozed', 'done'.").nullable().optional(),
|
|
43
|
+
channel: SuperchatListConversations_ChannelInfoSchema.nullable().optional(),
|
|
44
|
+
contacts: zod.z.array(SuperchatListConversations_ContactRefSchema).describe("List of contacts in this conversation (0-1 contacts).").nullable().optional(),
|
|
45
|
+
time_window: SuperchatListConversations_TimeWindowSchema.nullable().optional(),
|
|
46
|
+
snoozed_until: zod.z.string().describe("ISO 8601 timestamp until which the conversation is snoozed (if snoozed).").nullable().optional(),
|
|
47
|
+
assigned_users: zod.z.array(SuperchatListConversations_UserRefSchema).describe("List of users assigned to this conversation.").nullable().optional()
|
|
48
|
+
}).describe("Summary of a conversation resource.");
|
|
49
|
+
const SuperchatListConversations_PaginationSchema = zod.z.object({
|
|
50
|
+
next_url: zod.z.string().describe("URL for the next page of results, if available.").nullable().optional(),
|
|
51
|
+
next_cursor: zod.z.string().describe("Cursor for the next page of results. Use this value in the 'after' parameter to fetch the next page.").nullable().optional(),
|
|
52
|
+
previous_url: zod.z.string().describe("URL for the previous page of results, if available.").nullable().optional(),
|
|
53
|
+
previous_cursor: zod.z.string().describe("Cursor for the previous page of results. Use this value in the 'before' parameter to fetch the previous page.").nullable().optional()
|
|
54
|
+
}).describe("Pagination details for list responses.");
|
|
55
|
+
const SuperchatListConversationsOutput = zod.z.object({
|
|
56
|
+
url: zod.z.string().describe("URL of the conversations resource."),
|
|
57
|
+
results: zod.z.array(SuperchatListConversations_ConversationSummarySchema).describe("List of conversation summary objects."),
|
|
58
|
+
pagination: SuperchatListConversations_PaginationSchema.nullable()
|
|
59
|
+
}).describe("Response model for ListConversations action.");
|
|
60
|
+
const superchatListConversations = require_action.action("SUPERCHAT_LIST_CONVERSATIONS", {
|
|
61
|
+
slug: "superchat-list-conversations",
|
|
62
|
+
name: "List Conversations",
|
|
63
|
+
description: "Retrieves a paginated list of all conversations in your Superchat account. Each conversation includes channel info, status (open/snoozed/done), assigned users, contacts, labels, and inbox details. Use this to browse conversations, find specific ones by status or channel, or get conversation IDs for further operations. Supports cursor-based pagination to handle large result sets.",
|
|
64
|
+
input: SuperchatListConversationsInput,
|
|
65
|
+
output: SuperchatListConversationsOutput
|
|
66
|
+
});
|
|
67
|
+
//#endregion
|
|
68
|
+
exports.superchatListConversations = superchatListConversations;
|
|
69
|
+
|
|
70
|
+
//# sourceMappingURL=list-conversations.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-conversations.cjs","names":["z","action"],"sources":["../../src/actions/list-conversations.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SuperchatListConversationsInput: z.ZodTypeAny = z.object({\n after: z.string().describe(\"Pagination cursor to retrieve the next page of results. Use the 'next_cursor' value from a previous response. Cannot be used with 'before'. Omit for the first page.\").optional(),\n limit: z.number().int().default(50).describe(\"Number of conversations to return (1-100). Default is 50.\").optional(),\n before: z.string().describe(\"Pagination cursor to retrieve the previous page of results. Use the 'previous_cursor' value from a previous response. Cannot be used with 'after'. Omit for the first page.\").optional(),\n}).describe(\"Request model for ListConversations action.\");\nconst SuperchatListConversations_InboxRefSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the inbox.\").nullable().optional(),\n url: z.string().describe(\"API URL reference to the inbox resource.\").nullable().optional(),\n name: z.string().describe(\"Name of the inbox.\").nullable().optional(),\n}).describe(\"Reference to the inbox containing the conversation.\");\nconst SuperchatListConversations_LabelRefSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the label.\").nullable().optional(),\n url: z.string().describe(\"API URL reference to the label resource.\").nullable().optional(),\n name: z.string().describe(\"Name of the label.\").nullable().optional(),\n}).describe(\"Reference to a label applied to the conversation.\");\nconst SuperchatListConversations_ChannelInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the channel.\").nullable().optional(),\n url: z.string().describe(\"API URL reference to the channel resource.\").nullable().optional(),\n type: z.string().describe(\"Type of channel. One of: 'whats_app', 'mail', 'sms', 'telegram', 'instagram', 'facebook'.\").nullable().optional(),\n}).describe(\"Information about the communication channel used in a conversation.\");\nconst SuperchatListConversations_ContactRefSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the contact.\").nullable().optional(),\n url: z.string().describe(\"API URL reference to the contact resource.\").nullable().optional(),\n}).describe(\"Reference to a contact in the conversation.\");\nconst SuperchatListConversations_TimeWindowSchema: z.ZodTypeAny = z.object({\n state: z.string().describe(\"State of the time window. One of: 'open', 'closed'.\").nullable().optional(),\n open_until: z.string().describe(\"ISO 8601 timestamp until which the time window is open.\").nullable().optional(),\n}).describe(\"Information about the messaging time window for the conversation.\");\nconst SuperchatListConversations_UserRefSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the user.\").nullable().optional(),\n url: z.string().describe(\"API URL reference to the user resource.\").nullable().optional(),\n email: z.string().describe(\"Email address of the user.\").nullable().optional(),\n}).describe(\"Reference to a user assigned to the conversation.\");\nconst SuperchatListConversations_ConversationSummarySchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the conversation, prefixed with 'cv_'.\"),\n url: z.string().describe(\"API URL reference to this conversation resource.\").nullable().optional(),\n inbox: SuperchatListConversations_InboxRefSchema.nullable().optional(),\n labels: z.array(SuperchatListConversations_LabelRefSchema).describe(\"List of labels applied to this conversation.\").nullable().optional(),\n status: z.string().describe(\"Current status of the conversation. One of: 'open', 'snoozed', 'done'.\").nullable().optional(),\n channel: SuperchatListConversations_ChannelInfoSchema.nullable().optional(),\n contacts: z.array(SuperchatListConversations_ContactRefSchema).describe(\"List of contacts in this conversation (0-1 contacts).\").nullable().optional(),\n time_window: SuperchatListConversations_TimeWindowSchema.nullable().optional(),\n snoozed_until: z.string().describe(\"ISO 8601 timestamp until which the conversation is snoozed (if snoozed).\").nullable().optional(),\n assigned_users: z.array(SuperchatListConversations_UserRefSchema).describe(\"List of users assigned to this conversation.\").nullable().optional(),\n}).describe(\"Summary of a conversation resource.\");\nconst SuperchatListConversations_PaginationSchema: z.ZodTypeAny = z.object({\n next_url: z.string().describe(\"URL for the next page of results, if available.\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor for the next page of results. Use this value in the 'after' parameter to fetch the next page.\").nullable().optional(),\n previous_url: z.string().describe(\"URL for the previous page of results, if available.\").nullable().optional(),\n previous_cursor: z.string().describe(\"Cursor for the previous page of results. Use this value in the 'before' parameter to fetch the previous page.\").nullable().optional(),\n}).describe(\"Pagination details for list responses.\");\nexport const SuperchatListConversationsOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the conversations resource.\"),\n results: z.array(SuperchatListConversations_ConversationSummarySchema).describe(\"List of conversation summary objects.\"),\n pagination: SuperchatListConversations_PaginationSchema.nullable(),\n}).describe(\"Response model for ListConversations action.\");\n\nexport const superchatListConversations = action(\"SUPERCHAT_LIST_CONVERSATIONS\", {\n slug: \"superchat-list-conversations\",\n name: \"List Conversations\",\n description: \"Retrieves a paginated list of all conversations in your Superchat account. Each conversation includes channel info, status (open/snoozed/done), assigned users, contacts, labels, and inbox details. Use this to browse conversations, find specific ones by status or channel, or get conversation IDs for further operations. Supports cursor-based pagination to handle large result sets.\",\n input: SuperchatListConversationsInput,\n output: SuperchatListConversationsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK,CAAC,CAAC,SAAS;CAC5M,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6KAA6K,CAAC,CAAC,SAAS;AACtN,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,4CAA0DA,IAAAA,EAAE,OAAO;CACvE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;A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AC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjJ,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAM,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7J,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5K,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC7D,SAASA,IAAAA,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,uCAAuC;CACvH,YAAY,4CAA4C,SAAS;AACnE,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,6BAA6BC,eAAAA,OAAO,gCAAgC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-conversations.d.ts
|
|
4
|
+
declare const SuperchatListConversationsInput: z.ZodTypeAny;
|
|
5
|
+
declare const SuperchatListConversationsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const superchatListConversations: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { superchatListConversations };
|
|
9
|
+
//# sourceMappingURL=list-conversations.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-conversations.d.cts","names":[],"sources":["../../src/actions/list-conversations.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAIU;AAAA,cA+C7C,gCAAA,EAAkC,CAAA,CAAE,UAIU;AAAA,cAE9C,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-conversations.d.ts
|
|
4
|
+
declare const SuperchatListConversationsInput: z.ZodTypeAny;
|
|
5
|
+
declare const SuperchatListConversationsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const superchatListConversations: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { superchatListConversations };
|
|
9
|
+
//# sourceMappingURL=list-conversations.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-conversations.d.mts","names":[],"sources":["../../src/actions/list-conversations.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAIU;AAAA,cA+C7C,gCAAA,EAAkC,CAAA,CAAE,UAIU;AAAA,cAE9C,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-conversations.ts
|
|
4
|
+
const SuperchatListConversationsInput = z.object({
|
|
5
|
+
after: z.string().describe("Pagination cursor to retrieve the next page of results. Use the 'next_cursor' value from a previous response. Cannot be used with 'before'. Omit for the first page.").optional(),
|
|
6
|
+
limit: z.number().int().default(50).describe("Number of conversations to return (1-100). Default is 50.").optional(),
|
|
7
|
+
before: z.string().describe("Pagination cursor to retrieve the previous page of results. Use the 'previous_cursor' value from a previous response. Cannot be used with 'after'. Omit for the first page.").optional()
|
|
8
|
+
}).describe("Request model for ListConversations action.");
|
|
9
|
+
const SuperchatListConversations_InboxRefSchema = z.object({
|
|
10
|
+
id: z.string().describe("Unique identifier of the inbox.").nullable().optional(),
|
|
11
|
+
url: z.string().describe("API URL reference to the inbox resource.").nullable().optional(),
|
|
12
|
+
name: z.string().describe("Name of the inbox.").nullable().optional()
|
|
13
|
+
}).describe("Reference to the inbox containing the conversation.");
|
|
14
|
+
const SuperchatListConversations_LabelRefSchema = z.object({
|
|
15
|
+
id: z.string().describe("Unique identifier of the label.").nullable().optional(),
|
|
16
|
+
url: z.string().describe("API URL reference to the label resource.").nullable().optional(),
|
|
17
|
+
name: z.string().describe("Name of the label.").nullable().optional()
|
|
18
|
+
}).describe("Reference to a label applied to the conversation.");
|
|
19
|
+
const SuperchatListConversations_ChannelInfoSchema = z.object({
|
|
20
|
+
id: z.string().describe("Unique identifier of the channel.").nullable().optional(),
|
|
21
|
+
url: z.string().describe("API URL reference to the channel resource.").nullable().optional(),
|
|
22
|
+
type: z.string().describe("Type of channel. One of: 'whats_app', 'mail', 'sms', 'telegram', 'instagram', 'facebook'.").nullable().optional()
|
|
23
|
+
}).describe("Information about the communication channel used in a conversation.");
|
|
24
|
+
const SuperchatListConversations_ContactRefSchema = z.object({
|
|
25
|
+
id: z.string().describe("Unique identifier of the contact.").nullable().optional(),
|
|
26
|
+
url: z.string().describe("API URL reference to the contact resource.").nullable().optional()
|
|
27
|
+
}).describe("Reference to a contact in the conversation.");
|
|
28
|
+
const SuperchatListConversations_TimeWindowSchema = z.object({
|
|
29
|
+
state: z.string().describe("State of the time window. One of: 'open', 'closed'.").nullable().optional(),
|
|
30
|
+
open_until: z.string().describe("ISO 8601 timestamp until which the time window is open.").nullable().optional()
|
|
31
|
+
}).describe("Information about the messaging time window for the conversation.");
|
|
32
|
+
const SuperchatListConversations_UserRefSchema = z.object({
|
|
33
|
+
id: z.string().describe("Unique identifier of the user.").nullable().optional(),
|
|
34
|
+
url: z.string().describe("API URL reference to the user resource.").nullable().optional(),
|
|
35
|
+
email: z.string().describe("Email address of the user.").nullable().optional()
|
|
36
|
+
}).describe("Reference to a user assigned to the conversation.");
|
|
37
|
+
const SuperchatListConversations_ConversationSummarySchema = z.object({
|
|
38
|
+
id: z.string().describe("Unique identifier of the conversation, prefixed with 'cv_'."),
|
|
39
|
+
url: z.string().describe("API URL reference to this conversation resource.").nullable().optional(),
|
|
40
|
+
inbox: SuperchatListConversations_InboxRefSchema.nullable().optional(),
|
|
41
|
+
labels: z.array(SuperchatListConversations_LabelRefSchema).describe("List of labels applied to this conversation.").nullable().optional(),
|
|
42
|
+
status: z.string().describe("Current status of the conversation. One of: 'open', 'snoozed', 'done'.").nullable().optional(),
|
|
43
|
+
channel: SuperchatListConversations_ChannelInfoSchema.nullable().optional(),
|
|
44
|
+
contacts: z.array(SuperchatListConversations_ContactRefSchema).describe("List of contacts in this conversation (0-1 contacts).").nullable().optional(),
|
|
45
|
+
time_window: SuperchatListConversations_TimeWindowSchema.nullable().optional(),
|
|
46
|
+
snoozed_until: z.string().describe("ISO 8601 timestamp until which the conversation is snoozed (if snoozed).").nullable().optional(),
|
|
47
|
+
assigned_users: z.array(SuperchatListConversations_UserRefSchema).describe("List of users assigned to this conversation.").nullable().optional()
|
|
48
|
+
}).describe("Summary of a conversation resource.");
|
|
49
|
+
const SuperchatListConversations_PaginationSchema = z.object({
|
|
50
|
+
next_url: z.string().describe("URL for the next page of results, if available.").nullable().optional(),
|
|
51
|
+
next_cursor: z.string().describe("Cursor for the next page of results. Use this value in the 'after' parameter to fetch the next page.").nullable().optional(),
|
|
52
|
+
previous_url: z.string().describe("URL for the previous page of results, if available.").nullable().optional(),
|
|
53
|
+
previous_cursor: z.string().describe("Cursor for the previous page of results. Use this value in the 'before' parameter to fetch the previous page.").nullable().optional()
|
|
54
|
+
}).describe("Pagination details for list responses.");
|
|
55
|
+
const superchatListConversations = action("SUPERCHAT_LIST_CONVERSATIONS", {
|
|
56
|
+
slug: "superchat-list-conversations",
|
|
57
|
+
name: "List Conversations",
|
|
58
|
+
description: "Retrieves a paginated list of all conversations in your Superchat account. Each conversation includes channel info, status (open/snoozed/done), assigned users, contacts, labels, and inbox details. Use this to browse conversations, find specific ones by status or channel, or get conversation IDs for further operations. Supports cursor-based pagination to handle large result sets.",
|
|
59
|
+
input: SuperchatListConversationsInput,
|
|
60
|
+
output: z.object({
|
|
61
|
+
url: z.string().describe("URL of the conversations resource."),
|
|
62
|
+
results: z.array(SuperchatListConversations_ConversationSummarySchema).describe("List of conversation summary objects."),
|
|
63
|
+
pagination: SuperchatListConversations_PaginationSchema.nullable()
|
|
64
|
+
}).describe("Response model for ListConversations action.")
|
|
65
|
+
});
|
|
66
|
+
//#endregion
|
|
67
|
+
export { superchatListConversations };
|
|
68
|
+
|
|
69
|
+
//# sourceMappingURL=list-conversations.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-conversations.mjs","names":[],"sources":["../../src/actions/list-conversations.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SuperchatListConversationsInput: z.ZodTypeAny = z.object({\n after: z.string().describe(\"Pagination cursor to retrieve the next page of results. Use the 'next_cursor' value from a previous response. Cannot be used with 'before'. Omit for the first page.\").optional(),\n limit: z.number().int().default(50).describe(\"Number of conversations to return (1-100). Default is 50.\").optional(),\n before: z.string().describe(\"Pagination cursor to retrieve the previous page of results. Use the 'previous_cursor' value from a previous response. Cannot be used with 'after'. Omit for the first page.\").optional(),\n}).describe(\"Request model for ListConversations action.\");\nconst SuperchatListConversations_InboxRefSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the inbox.\").nullable().optional(),\n url: z.string().describe(\"API URL reference to the inbox resource.\").nullable().optional(),\n name: z.string().describe(\"Name of the inbox.\").nullable().optional(),\n}).describe(\"Reference to the inbox containing the conversation.\");\nconst SuperchatListConversations_LabelRefSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the label.\").nullable().optional(),\n url: z.string().describe(\"API URL reference to the label resource.\").nullable().optional(),\n name: z.string().describe(\"Name of the label.\").nullable().optional(),\n}).describe(\"Reference to a label applied to the conversation.\");\nconst SuperchatListConversations_ChannelInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the channel.\").nullable().optional(),\n url: z.string().describe(\"API URL reference to the channel resource.\").nullable().optional(),\n type: z.string().describe(\"Type of channel. One of: 'whats_app', 'mail', 'sms', 'telegram', 'instagram', 'facebook'.\").nullable().optional(),\n}).describe(\"Information about the communication channel used in a conversation.\");\nconst SuperchatListConversations_ContactRefSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the contact.\").nullable().optional(),\n url: z.string().describe(\"API URL reference to the contact resource.\").nullable().optional(),\n}).describe(\"Reference to a contact in the conversation.\");\nconst SuperchatListConversations_TimeWindowSchema: z.ZodTypeAny = z.object({\n state: z.string().describe(\"State of the time window. One of: 'open', 'closed'.\").nullable().optional(),\n open_until: z.string().describe(\"ISO 8601 timestamp until which the time window is open.\").nullable().optional(),\n}).describe(\"Information about the messaging time window for the conversation.\");\nconst SuperchatListConversations_UserRefSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the user.\").nullable().optional(),\n url: z.string().describe(\"API URL reference to the user resource.\").nullable().optional(),\n email: z.string().describe(\"Email address of the user.\").nullable().optional(),\n}).describe(\"Reference to a user assigned to the conversation.\");\nconst SuperchatListConversations_ConversationSummarySchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the conversation, prefixed with 'cv_'.\"),\n url: z.string().describe(\"API URL reference to this conversation resource.\").nullable().optional(),\n inbox: SuperchatListConversations_InboxRefSchema.nullable().optional(),\n labels: z.array(SuperchatListConversations_LabelRefSchema).describe(\"List of labels applied to this conversation.\").nullable().optional(),\n status: z.string().describe(\"Current status of the conversation. One of: 'open', 'snoozed', 'done'.\").nullable().optional(),\n channel: SuperchatListConversations_ChannelInfoSchema.nullable().optional(),\n contacts: z.array(SuperchatListConversations_ContactRefSchema).describe(\"List of contacts in this conversation (0-1 contacts).\").nullable().optional(),\n time_window: SuperchatListConversations_TimeWindowSchema.nullable().optional(),\n snoozed_until: z.string().describe(\"ISO 8601 timestamp until which the conversation is snoozed (if snoozed).\").nullable().optional(),\n assigned_users: z.array(SuperchatListConversations_UserRefSchema).describe(\"List of users assigned to this conversation.\").nullable().optional(),\n}).describe(\"Summary of a conversation resource.\");\nconst SuperchatListConversations_PaginationSchema: z.ZodTypeAny = z.object({\n next_url: z.string().describe(\"URL for the next page of results, if available.\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor for the next page of results. Use this value in the 'after' parameter to fetch the next page.\").nullable().optional(),\n previous_url: z.string().describe(\"URL for the previous page of results, if available.\").nullable().optional(),\n previous_cursor: z.string().describe(\"Cursor for the previous page of results. Use this value in the 'before' parameter to fetch the previous page.\").nullable().optional(),\n}).describe(\"Pagination details for list responses.\");\nexport const SuperchatListConversationsOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the conversations resource.\"),\n results: z.array(SuperchatListConversations_ConversationSummarySchema).describe(\"List of conversation summary objects.\"),\n pagination: SuperchatListConversations_PaginationSchema.nullable(),\n}).describe(\"Response model for ListConversations action.\");\n\nexport const superchatListConversations = action(\"SUPERCHAT_LIST_CONVERSATIONS\", {\n slug: \"superchat-list-conversations\",\n name: \"List Conversations\",\n description: \"Retrieves a paginated list of all conversations in your Superchat account. Each conversation includes channel info, status (open/snoozed/done), assigned users, contacts, labels, and inbox details. Use this to browse conversations, find specific ones by status or channel, or get conversation IDs for further operations. Supports cursor-based pagination to handle large result sets.\",\n input: SuperchatListConversationsInput,\n output: SuperchatListConversationsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgD,EAAE,OAAO;CACpE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK,CAAC,CAAC,SAAS;CAC5M,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6KAA6K,CAAC,CAAC,SAAS;AACtN,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,4CAA0D,EAAE,OAAO;CACvE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtE,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,4CAA0D,EAAE,OAAO;CACvE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtE,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,+CAA6D,EAAE,OAAO;CAC1E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,KAAK,EAAE,OAAO,CAAC,CAAC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AY,4CAA4C,SAAS;CACnE,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-custom-attributes.ts
|
|
4
|
+
const SuperchatListCustomAttributesInput = zod.z.object({
|
|
5
|
+
after: zod.z.string().describe("Cursor for pagination to get results after a specified position.").optional(),
|
|
6
|
+
limit: zod.z.number().int().default(50).describe("The total number of objects to be returned. Min: 1, Max: 100.").optional(),
|
|
7
|
+
before: zod.z.string().describe("Cursor for pagination to get results before a specified position.").optional()
|
|
8
|
+
}).describe("Request model for ListCustomAttributes action.");
|
|
9
|
+
const SuperchatListCustomAttributes_CustomAttributeSummarySchema = zod.z.object({
|
|
10
|
+
id: zod.z.string().describe("Unique identifier of the custom attribute."),
|
|
11
|
+
name: zod.z.string().describe("Name of the custom attribute."),
|
|
12
|
+
type: zod.z.string().describe("Data type of the custom attribute. Possible values: 'date_time', 'date_only', 'string', 'number', 'multi_select', 'single_select'."),
|
|
13
|
+
description: zod.z.string().describe("Description of the custom attribute.").nullable().optional()
|
|
14
|
+
}).describe("A single custom attribute definition used for contacts.");
|
|
15
|
+
const SuperchatListCustomAttributes_PaginationInfoSchema = zod.z.object({
|
|
16
|
+
has_more: zod.z.boolean().describe("Indicates if there are more results available.").nullable().optional(),
|
|
17
|
+
next_url: zod.z.string().describe("URL for the next page of results.").nullable().optional(),
|
|
18
|
+
next_cursor: zod.z.string().describe("Cursor to use for the next page of results.").nullable().optional(),
|
|
19
|
+
previous_url: zod.z.string().describe("URL for the previous page of results.").nullable().optional(),
|
|
20
|
+
previous_cursor: zod.z.string().describe("Cursor to use for the previous page of results.").nullable().optional()
|
|
21
|
+
}).describe("Pagination information for paginated responses.");
|
|
22
|
+
const SuperchatListCustomAttributesOutput = zod.z.object({
|
|
23
|
+
url: zod.z.string().describe("URL of the custom attributes resource endpoint."),
|
|
24
|
+
results: zod.z.array(SuperchatListCustomAttributes_CustomAttributeSummarySchema).default([]).describe("List of custom attribute definitions.").nullable().optional(),
|
|
25
|
+
pagination: SuperchatListCustomAttributes_PaginationInfoSchema.nullable().optional()
|
|
26
|
+
}).describe("Response model for ListCustomAttributes action.");
|
|
27
|
+
const superchatListCustomAttributes = require_action.action("SUPERCHAT_LIST_CUSTOM_ATTRIBUTES", {
|
|
28
|
+
slug: "superchat-list-custom-attributes",
|
|
29
|
+
name: "List Custom Attributes",
|
|
30
|
+
description: "List all custom attributes defined for contacts in your Superchat account. Custom attributes are user-defined fields that extend contact data beyond standard fields like name and email. Use this action to discover available custom attributes before reading or updating contact information. Supports cursor-based pagination for accounts with many custom attributes. Common use cases: - Discover available custom fields before updating contacts - Retrieve custom attribute types (string, number, date, select, etc.) - Get custom attribute IDs for use in other API calls",
|
|
31
|
+
input: SuperchatListCustomAttributesInput,
|
|
32
|
+
output: SuperchatListCustomAttributesOutput
|
|
33
|
+
});
|
|
34
|
+
//#endregion
|
|
35
|
+
exports.superchatListCustomAttributes = superchatListCustomAttributes;
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=list-custom-attributes.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-custom-attributes.cjs","names":["z","action"],"sources":["../../src/actions/list-custom-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SuperchatListCustomAttributesInput: z.ZodTypeAny = z.object({\n after: z.string().describe(\"Cursor for pagination to get results after a specified position.\").optional(),\n limit: z.number().int().default(50).describe(\"The total number of objects to be returned. Min: 1, Max: 100.\").optional(),\n before: z.string().describe(\"Cursor for pagination to get results before a specified position.\").optional(),\n}).describe(\"Request model for ListCustomAttributes action.\");\nconst SuperchatListCustomAttributes_CustomAttributeSummarySchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the custom attribute.\"),\n name: z.string().describe(\"Name of the custom attribute.\"),\n type: z.string().describe(\"Data type of the custom attribute. Possible values: 'date_time', 'date_only', 'string', 'number', 'multi_select', 'single_select'.\"),\n description: z.string().describe(\"Description of the custom attribute.\").nullable().optional(),\n}).describe(\"A single custom attribute definition used for contacts.\");\nconst SuperchatListCustomAttributes_PaginationInfoSchema: z.ZodTypeAny = z.object({\n has_more: z.boolean().describe(\"Indicates if there are more results available.\").nullable().optional(),\n next_url: z.string().describe(\"URL for the next page of results.\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor to use for the next page of results.\").nullable().optional(),\n previous_url: z.string().describe(\"URL for the previous page of results.\").nullable().optional(),\n previous_cursor: z.string().describe(\"Cursor to use for the previous page of results.\").nullable().optional(),\n}).describe(\"Pagination information for paginated responses.\");\nexport const SuperchatListCustomAttributesOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the custom attributes resource endpoint.\"),\n results: z.array(SuperchatListCustomAttributes_CustomAttributeSummarySchema).default([]).describe(\"List of custom attribute definitions.\").nullable().optional(),\n pagination: SuperchatListCustomAttributes_PaginationInfoSchema.nullable().optional(),\n}).describe(\"Response model for ListCustomAttributes action.\");\n\nexport const superchatListCustomAttributes = action(\"SUPERCHAT_LIST_CUSTOM_ATTRIBUTES\", {\n slug: \"superchat-list-custom-attributes\",\n name: \"List Custom Attributes\",\n description: \"List all custom attributes defined for contacts in your Superchat account. Custom attributes are user-defined fields that extend contact data beyond standard fields like name and email. Use this action to discover available custom attributes before reading or updating contact information. Supports cursor-based pagination for accounts with many custom attributes. Common use cases: - Discover available custom fields before updating contacts - Retrieve custom attribute types (string, number, date, select, etc.) - Get custom attribute IDs for use in other API calls\",\n input: SuperchatListCustomAttributesInput,\n output: SuperchatListCustomAttributesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CACxG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CA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,EAAE,MAAM,0DAA0D,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/J,YAAY,mDAAmD,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAE7D,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-custom-attributes.d.ts
|
|
4
|
+
declare const SuperchatListCustomAttributesInput: z.ZodTypeAny;
|
|
5
|
+
declare const SuperchatListCustomAttributesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const superchatListCustomAttributes: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { superchatListCustomAttributes };
|
|
9
|
+
//# sourceMappingURL=list-custom-attributes.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-custom-attributes.d.cts","names":[],"sources":["../../src/actions/list-custom-attributes.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAIU;AAAA,cAchD,mCAAA,EAAqC,CAAA,CAAE,UAIU;AAAA,cAEjD,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-custom-attributes.d.ts
|
|
4
|
+
declare const SuperchatListCustomAttributesInput: z.ZodTypeAny;
|
|
5
|
+
declare const SuperchatListCustomAttributesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const superchatListCustomAttributes: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { superchatListCustomAttributes };
|
|
9
|
+
//# sourceMappingURL=list-custom-attributes.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-custom-attributes.d.mts","names":[],"sources":["../../src/actions/list-custom-attributes.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAIU;AAAA,cAchD,mCAAA,EAAqC,CAAA,CAAE,UAIU;AAAA,cAEjD,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-custom-attributes.ts
|
|
4
|
+
const SuperchatListCustomAttributesInput = z.object({
|
|
5
|
+
after: z.string().describe("Cursor for pagination to get results after a specified position.").optional(),
|
|
6
|
+
limit: z.number().int().default(50).describe("The total number of objects to be returned. Min: 1, Max: 100.").optional(),
|
|
7
|
+
before: z.string().describe("Cursor for pagination to get results before a specified position.").optional()
|
|
8
|
+
}).describe("Request model for ListCustomAttributes action.");
|
|
9
|
+
const SuperchatListCustomAttributes_CustomAttributeSummarySchema = z.object({
|
|
10
|
+
id: z.string().describe("Unique identifier of the custom attribute."),
|
|
11
|
+
name: z.string().describe("Name of the custom attribute."),
|
|
12
|
+
type: z.string().describe("Data type of the custom attribute. Possible values: 'date_time', 'date_only', 'string', 'number', 'multi_select', 'single_select'."),
|
|
13
|
+
description: z.string().describe("Description of the custom attribute.").nullable().optional()
|
|
14
|
+
}).describe("A single custom attribute definition used for contacts.");
|
|
15
|
+
const SuperchatListCustomAttributes_PaginationInfoSchema = z.object({
|
|
16
|
+
has_more: z.boolean().describe("Indicates if there are more results available.").nullable().optional(),
|
|
17
|
+
next_url: z.string().describe("URL for the next page of results.").nullable().optional(),
|
|
18
|
+
next_cursor: z.string().describe("Cursor to use for the next page of results.").nullable().optional(),
|
|
19
|
+
previous_url: z.string().describe("URL for the previous page of results.").nullable().optional(),
|
|
20
|
+
previous_cursor: z.string().describe("Cursor to use for the previous page of results.").nullable().optional()
|
|
21
|
+
}).describe("Pagination information for paginated responses.");
|
|
22
|
+
const superchatListCustomAttributes = action("SUPERCHAT_LIST_CUSTOM_ATTRIBUTES", {
|
|
23
|
+
slug: "superchat-list-custom-attributes",
|
|
24
|
+
name: "List Custom Attributes",
|
|
25
|
+
description: "List all custom attributes defined for contacts in your Superchat account. Custom attributes are user-defined fields that extend contact data beyond standard fields like name and email. Use this action to discover available custom attributes before reading or updating contact information. Supports cursor-based pagination for accounts with many custom attributes. Common use cases: - Discover available custom fields before updating contacts - Retrieve custom attribute types (string, number, date, select, etc.) - Get custom attribute IDs for use in other API calls",
|
|
26
|
+
input: SuperchatListCustomAttributesInput,
|
|
27
|
+
output: z.object({
|
|
28
|
+
url: z.string().describe("URL of the custom attributes resource endpoint."),
|
|
29
|
+
results: z.array(SuperchatListCustomAttributes_CustomAttributeSummarySchema).default([]).describe("List of custom attribute definitions.").nullable().optional(),
|
|
30
|
+
pagination: SuperchatListCustomAttributes_PaginationInfoSchema.nullable().optional()
|
|
31
|
+
}).describe("Response model for ListCustomAttributes action.")
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
export { superchatListCustomAttributes };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=list-custom-attributes.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-custom-attributes.mjs","names":[],"sources":["../../src/actions/list-custom-attributes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SuperchatListCustomAttributesInput: z.ZodTypeAny = z.object({\n after: z.string().describe(\"Cursor for pagination to get results after a specified position.\").optional(),\n limit: z.number().int().default(50).describe(\"The total number of objects to be returned. Min: 1, Max: 100.\").optional(),\n before: z.string().describe(\"Cursor for pagination to get results before a specified position.\").optional(),\n}).describe(\"Request model for ListCustomAttributes action.\");\nconst SuperchatListCustomAttributes_CustomAttributeSummarySchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the custom attribute.\"),\n name: z.string().describe(\"Name of the custom attribute.\"),\n type: z.string().describe(\"Data type of the custom attribute. Possible values: 'date_time', 'date_only', 'string', 'number', 'multi_select', 'single_select'.\"),\n description: z.string().describe(\"Description of the custom attribute.\").nullable().optional(),\n}).describe(\"A single custom attribute definition used for contacts.\");\nconst SuperchatListCustomAttributes_PaginationInfoSchema: z.ZodTypeAny = z.object({\n has_more: z.boolean().describe(\"Indicates if there are more results available.\").nullable().optional(),\n next_url: z.string().describe(\"URL for the next page of results.\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor to use for the next page of results.\").nullable().optional(),\n previous_url: z.string().describe(\"URL for the previous page of results.\").nullable().optional(),\n previous_cursor: z.string().describe(\"Cursor to use for the previous page of results.\").nullable().optional(),\n}).describe(\"Pagination information for paginated responses.\");\nexport const SuperchatListCustomAttributesOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the custom attributes resource endpoint.\"),\n results: z.array(SuperchatListCustomAttributes_CustomAttributeSummarySchema).default([]).describe(\"List of custom attribute definitions.\").nullable().optional(),\n pagination: SuperchatListCustomAttributes_PaginationInfoSchema.nullable().optional(),\n}).describe(\"Response model for ListCustomAttributes action.\");\n\nexport const superchatListCustomAttributes = action(\"SUPERCHAT_LIST_CUSTOM_ATTRIBUTES\", {\n slug: \"superchat-list-custom-attributes\",\n name: \"List Custom Attributes\",\n description: \"List all custom attributes defined for contacts in your Superchat account. Custom attributes are user-defined fields that extend contact data beyond standard fields like name and email. Use this action to discover available custom attributes before reading or updating contact information. Supports cursor-based pagination for accounts with many custom attributes. Common use cases: - Discover available custom fields before updating contacts - Retrieve custom attribute types (string, number, date, select, etc.) - Get custom attribute IDs for use in other API calls\",\n input: SuperchatListCustomAttributesInput,\n output: SuperchatListCustomAttributesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmD,EAAE,OAAO;CACvE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CACxG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACvH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,6DAA2E,EAAE,OAAO;CACxF,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI;CAC9J,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,qDAAmE,EAAE,OAAO;CAChF,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAO7D,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX+D,EAAE,OAAO;EACxE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;EAC1E,SAAS,EAAE,MAAM,0DAA0D,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/J,YAAY,mDAAmD,SAAS,CAAC,CAAC,SAAS;CACrF,CAAC,CAAC,CAAC,SAAS,iDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-inboxes.ts
|
|
4
|
+
const SuperchatListInboxesInput = zod.z.object({
|
|
5
|
+
after: zod.z.string().describe("Cursor after which inboxes should be returned. Use for forward pagination. Cannot be used with 'before'.").optional(),
|
|
6
|
+
limit: zod.z.number().int().default(50).describe("Total number of inboxes to return (1-100). Default is 50.").optional(),
|
|
7
|
+
before: zod.z.string().describe("Cursor before which inboxes should be returned. Use for backward pagination. Cannot be used with 'after'.").optional()
|
|
8
|
+
}).describe("Request model for ListInboxes action with optional pagination parameters.");
|
|
9
|
+
const SuperchatListInboxes_InboxUserSchema = zod.z.object({
|
|
10
|
+
id: zod.z.string().describe("Unique identifier of the user (format: us_xxx)."),
|
|
11
|
+
url: zod.z.string().describe("API resource URL of the user.").nullable().optional(),
|
|
12
|
+
email: zod.z.string().describe("Email address of the user.").nullable().optional()
|
|
13
|
+
}).describe("A user associated with an inbox.");
|
|
14
|
+
const SuperchatListInboxes_InboxSummarySchema = zod.z.object({
|
|
15
|
+
id: zod.z.string().describe("Unique identifier of the inbox (format: ib_xxx)."),
|
|
16
|
+
url: zod.z.string().describe("API resource URL of this inbox.").nullable().optional(),
|
|
17
|
+
name: zod.z.string().describe("Name of the inbox.").nullable().optional(),
|
|
18
|
+
users: zod.z.array(SuperchatListInboxes_InboxUserSchema).describe("List of users assigned to this inbox.").nullable().optional()
|
|
19
|
+
}).describe("Summary of a single inbox resource.");
|
|
20
|
+
const SuperchatListInboxes_PaginationSchema = zod.z.object({
|
|
21
|
+
next_url: zod.z.string().describe("Full URL to retrieve the next page of results.").nullable().optional(),
|
|
22
|
+
next_cursor: zod.z.string().describe("Cursor for the next page of results. Use this value in the 'after' parameter to fetch the next page.").nullable().optional(),
|
|
23
|
+
previous_url: zod.z.string().describe("Full URL to retrieve the previous page of results.").nullable().optional(),
|
|
24
|
+
previous_cursor: zod.z.string().describe("Cursor for the previous page of results. Use this value in the 'before' parameter to fetch the previous page.").nullable().optional()
|
|
25
|
+
}).describe("Pagination details for list responses. Use next_cursor/previous_cursor values\nin the 'after'/'before' request parameters to navigate pages.");
|
|
26
|
+
const SuperchatListInboxesOutput = zod.z.object({
|
|
27
|
+
url: zod.z.string().describe("URL of the inboxes resource.").nullable().optional(),
|
|
28
|
+
results: zod.z.array(SuperchatListInboxes_InboxSummarySchema).describe("List of inbox objects.").nullable().optional(),
|
|
29
|
+
pagination: SuperchatListInboxes_PaginationSchema.nullable().optional()
|
|
30
|
+
}).describe("Response model for ListInboxes action.");
|
|
31
|
+
const superchatListInboxes = require_action.action("SUPERCHAT_LIST_INBOXES", {
|
|
32
|
+
slug: "superchat-list-inboxes",
|
|
33
|
+
name: "List Inboxes",
|
|
34
|
+
description: "Tool to list all inboxes. Use when you need to retrieve inbox IDs and metadata before sending or organizing messages.",
|
|
35
|
+
input: SuperchatListInboxesInput,
|
|
36
|
+
output: SuperchatListInboxesOutput
|
|
37
|
+
});
|
|
38
|
+
//#endregion
|
|
39
|
+
exports.superchatListInboxes = superchatListInboxes;
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=list-inboxes.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-inboxes.cjs","names":["z","action"],"sources":["../../src/actions/list-inboxes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SuperchatListInboxesInput: z.ZodTypeAny = z.object({\n after: z.string().describe(\"Cursor after which inboxes should be returned. Use for forward pagination. Cannot be used with 'before'.\").optional(),\n limit: z.number().int().default(50).describe(\"Total number of inboxes to return (1-100). Default is 50.\").optional(),\n before: z.string().describe(\"Cursor before which inboxes should be returned. Use for backward pagination. Cannot be used with 'after'.\").optional(),\n}).describe(\"Request model for ListInboxes action with optional pagination parameters.\");\nconst SuperchatListInboxes_InboxUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the user (format: us_xxx).\"),\n url: z.string().describe(\"API resource URL of the user.\").nullable().optional(),\n email: z.string().describe(\"Email address of the user.\").nullable().optional(),\n}).describe(\"A user associated with an inbox.\");\nconst SuperchatListInboxes_InboxSummarySchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the inbox (format: ib_xxx).\"),\n url: z.string().describe(\"API resource URL of this inbox.\").nullable().optional(),\n name: z.string().describe(\"Name of the inbox.\").nullable().optional(),\n users: z.array(SuperchatListInboxes_InboxUserSchema).describe(\"List of users assigned to this inbox.\").nullable().optional(),\n}).describe(\"Summary of a single inbox resource.\");\nconst SuperchatListInboxes_PaginationSchema: z.ZodTypeAny = z.object({\n next_url: z.string().describe(\"Full URL to retrieve the next page of results.\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor for the next page of results. Use this value in the 'after' parameter to fetch the next page.\").nullable().optional(),\n previous_url: z.string().describe(\"Full URL to retrieve the previous page of results.\").nullable().optional(),\n previous_cursor: z.string().describe(\"Cursor for the previous page of results. Use this value in the 'before' parameter to fetch the previous page.\").nullable().optional(),\n}).describe(\"Pagination details for list responses. Use next_cursor/previous_cursor values\\nin the 'after'/'before' request parameters to navigate pages.\");\nexport const SuperchatListInboxesOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the inboxes resource.\").nullable().optional(),\n results: z.array(SuperchatListInboxes_InboxSummarySchema).describe(\"List of inbox objects.\").nullable().optional(),\n pagination: SuperchatListInboxes_PaginationSchema.nullable().optional(),\n}).describe(\"Response model for ListInboxes action.\");\n\nexport const superchatListInboxes = action(\"SUPERCHAT_LIST_INBOXES\", {\n slug: \"superchat-list-inboxes\",\n name: \"List Inboxes\",\n description: \"Tool to list all inboxes. Use when you need to retrieve inbox IDs and metadata before sending or organizing messages.\",\n input: SuperchatListInboxesInput,\n output: SuperchatListInboxesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CAChJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;AACpJ,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACvF,MAAM,uCAAqDA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CACzE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAC9C,MAAM,0CAAwDA,IAAAA,EAAE,OAAO;CACrE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAC1E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,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
+
|
|
3
|
+
//#region src/actions/list-inboxes.d.ts
|
|
4
|
+
declare const SuperchatListInboxesInput: z.ZodTypeAny;
|
|
5
|
+
declare const SuperchatListInboxesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const superchatListInboxes: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { superchatListInboxes };
|
|
9
|
+
//# sourceMappingURL=list-inboxes.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-inboxes.d.cts","names":[],"sources":["../../src/actions/list-inboxes.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAI8C;AAAA,cAkB3E,0BAAA,EAA4B,CAAA,CAAE,UAIU;AAAA,cAExC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-inboxes.d.ts
|
|
4
|
+
declare const SuperchatListInboxesInput: z.ZodTypeAny;
|
|
5
|
+
declare const SuperchatListInboxesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const superchatListInboxes: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { superchatListInboxes };
|
|
9
|
+
//# sourceMappingURL=list-inboxes.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-inboxes.d.mts","names":[],"sources":["../../src/actions/list-inboxes.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAI8C;AAAA,cAkB3E,0BAAA,EAA4B,CAAA,CAAE,UAIU;AAAA,cAExC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-inboxes.ts
|
|
4
|
+
const SuperchatListInboxesInput = z.object({
|
|
5
|
+
after: z.string().describe("Cursor after which inboxes should be returned. Use for forward pagination. Cannot be used with 'before'.").optional(),
|
|
6
|
+
limit: z.number().int().default(50).describe("Total number of inboxes to return (1-100). Default is 50.").optional(),
|
|
7
|
+
before: z.string().describe("Cursor before which inboxes should be returned. Use for backward pagination. Cannot be used with 'after'.").optional()
|
|
8
|
+
}).describe("Request model for ListInboxes action with optional pagination parameters.");
|
|
9
|
+
const SuperchatListInboxes_InboxUserSchema = z.object({
|
|
10
|
+
id: z.string().describe("Unique identifier of the user (format: us_xxx)."),
|
|
11
|
+
url: z.string().describe("API resource URL of the user.").nullable().optional(),
|
|
12
|
+
email: z.string().describe("Email address of the user.").nullable().optional()
|
|
13
|
+
}).describe("A user associated with an inbox.");
|
|
14
|
+
const SuperchatListInboxes_InboxSummarySchema = z.object({
|
|
15
|
+
id: z.string().describe("Unique identifier of the inbox (format: ib_xxx)."),
|
|
16
|
+
url: z.string().describe("API resource URL of this inbox.").nullable().optional(),
|
|
17
|
+
name: z.string().describe("Name of the inbox.").nullable().optional(),
|
|
18
|
+
users: z.array(SuperchatListInboxes_InboxUserSchema).describe("List of users assigned to this inbox.").nullable().optional()
|
|
19
|
+
}).describe("Summary of a single inbox resource.");
|
|
20
|
+
const SuperchatListInboxes_PaginationSchema = z.object({
|
|
21
|
+
next_url: z.string().describe("Full URL to retrieve the next page of results.").nullable().optional(),
|
|
22
|
+
next_cursor: z.string().describe("Cursor for the next page of results. Use this value in the 'after' parameter to fetch the next page.").nullable().optional(),
|
|
23
|
+
previous_url: z.string().describe("Full URL to retrieve the previous page of results.").nullable().optional(),
|
|
24
|
+
previous_cursor: z.string().describe("Cursor for the previous page of results. Use this value in the 'before' parameter to fetch the previous page.").nullable().optional()
|
|
25
|
+
}).describe("Pagination details for list responses. Use next_cursor/previous_cursor values\nin the 'after'/'before' request parameters to navigate pages.");
|
|
26
|
+
const superchatListInboxes = action("SUPERCHAT_LIST_INBOXES", {
|
|
27
|
+
slug: "superchat-list-inboxes",
|
|
28
|
+
name: "List Inboxes",
|
|
29
|
+
description: "Tool to list all inboxes. Use when you need to retrieve inbox IDs and metadata before sending or organizing messages.",
|
|
30
|
+
input: SuperchatListInboxesInput,
|
|
31
|
+
output: z.object({
|
|
32
|
+
url: z.string().describe("URL of the inboxes resource.").nullable().optional(),
|
|
33
|
+
results: z.array(SuperchatListInboxes_InboxSummarySchema).describe("List of inbox objects.").nullable().optional(),
|
|
34
|
+
pagination: SuperchatListInboxes_PaginationSchema.nullable().optional()
|
|
35
|
+
}).describe("Response model for ListInboxes action.")
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
38
|
+
export { superchatListInboxes };
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=list-inboxes.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-inboxes.mjs","names":[],"sources":["../../src/actions/list-inboxes.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SuperchatListInboxesInput: z.ZodTypeAny = z.object({\n after: z.string().describe(\"Cursor after which inboxes should be returned. Use for forward pagination. Cannot be used with 'before'.\").optional(),\n limit: z.number().int().default(50).describe(\"Total number of inboxes to return (1-100). Default is 50.\").optional(),\n before: z.string().describe(\"Cursor before which inboxes should be returned. Use for backward pagination. Cannot be used with 'after'.\").optional(),\n}).describe(\"Request model for ListInboxes action with optional pagination parameters.\");\nconst SuperchatListInboxes_InboxUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the user (format: us_xxx).\"),\n url: z.string().describe(\"API resource URL of the user.\").nullable().optional(),\n email: z.string().describe(\"Email address of the user.\").nullable().optional(),\n}).describe(\"A user associated with an inbox.\");\nconst SuperchatListInboxes_InboxSummarySchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the inbox (format: ib_xxx).\"),\n url: z.string().describe(\"API resource URL of this inbox.\").nullable().optional(),\n name: z.string().describe(\"Name of the inbox.\").nullable().optional(),\n users: z.array(SuperchatListInboxes_InboxUserSchema).describe(\"List of users assigned to this inbox.\").nullable().optional(),\n}).describe(\"Summary of a single inbox resource.\");\nconst SuperchatListInboxes_PaginationSchema: z.ZodTypeAny = z.object({\n next_url: z.string().describe(\"Full URL to retrieve the next page of results.\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor for the next page of results. Use this value in the 'after' parameter to fetch the next page.\").nullable().optional(),\n previous_url: z.string().describe(\"Full URL to retrieve the previous page of results.\").nullable().optional(),\n previous_cursor: z.string().describe(\"Cursor for the previous page of results. Use this value in the 'before' parameter to fetch the previous page.\").nullable().optional(),\n}).describe(\"Pagination details for list responses. Use next_cursor/previous_cursor values\\nin the 'after'/'before' request parameters to navigate pages.\");\nexport const SuperchatListInboxesOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the inboxes resource.\").nullable().optional(),\n results: z.array(SuperchatListInboxes_InboxSummarySchema).describe(\"List of inbox objects.\").nullable().optional(),\n pagination: SuperchatListInboxes_PaginationSchema.nullable().optional(),\n}).describe(\"Response model for ListInboxes action.\");\n\nexport const superchatListInboxes = action(\"SUPERCHAT_LIST_INBOXES\", {\n slug: \"superchat-list-inboxes\",\n name: \"List Inboxes\",\n description: \"Tool to list all inboxes. Use when you need to retrieve inbox IDs and metadata before sending or organizing messages.\",\n input: SuperchatListInboxesInput,\n output: SuperchatListInboxesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO;CAC9D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CA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CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5K,CAAC,CAAC,CAAC,SAAS,8IAA8I;AAO1J,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXsD,EAAE,OAAO;EAC/D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,SAAS,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,YAAY,sCAAsC,SAAS,CAAC,CAAC,SAAS;CACxE,CAAC,CAAC,CAAC,SAAS,wCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-labels.ts
|
|
4
|
+
const SuperchatListLabelsInput = zod.z.object({
|
|
5
|
+
after: zod.z.string().describe("Cursor for pagination. Returns labels after this cursor position. Use the 'next_cursor' from a previous response.").optional(),
|
|
6
|
+
limit: zod.z.number().int().default(50).describe("Number of labels to return per page (1-100). Defaults to 50.").optional(),
|
|
7
|
+
before: zod.z.string().describe("Cursor for pagination. Returns labels before this cursor position. Use the 'previous_cursor' from a previous response. Cannot be used together with 'after'.").optional()
|
|
8
|
+
}).describe("Request model for listing labels in Superchat.\nLabels are used to categorize and organize conversations in a workspace.");
|
|
9
|
+
const SuperchatListLabels_LabelSummarySchema = zod.z.object({
|
|
10
|
+
id: zod.z.string().describe("Unique identifier of the label."),
|
|
11
|
+
name: zod.z.string().describe("Display name of the label."),
|
|
12
|
+
color: zod.z.string().describe("Hex color code of the label (if set).").nullable().optional(),
|
|
13
|
+
created_at: zod.z.string().describe("ISO 8601 timestamp when the label was created.").nullable().optional(),
|
|
14
|
+
updated_at: zod.z.string().describe("ISO 8601 timestamp when the label was last updated.").nullable().optional()
|
|
15
|
+
}).describe("Summary of a single label resource.\nLabels are used to categorize conversations in Superchat.");
|
|
16
|
+
const SuperchatListLabels_PaginationSchema = zod.z.object({
|
|
17
|
+
next_url: zod.z.string().describe("URL to retrieve the next page of results.").nullable().optional(),
|
|
18
|
+
next_cursor: zod.z.string().describe("Cursor for the next page of results.").nullable().optional(),
|
|
19
|
+
previous_url: zod.z.string().describe("URL to retrieve the previous page of results.").nullable().optional(),
|
|
20
|
+
previous_cursor: zod.z.string().describe("Cursor for the previous page of results.").nullable().optional()
|
|
21
|
+
}).describe("Pagination details for list responses.");
|
|
22
|
+
const SuperchatListLabelsOutput = zod.z.object({
|
|
23
|
+
url: zod.z.string().describe("Endpoint URL for the labels resource."),
|
|
24
|
+
results: zod.z.array(SuperchatListLabels_LabelSummarySchema).describe("List of label summaries."),
|
|
25
|
+
pagination: SuperchatListLabels_PaginationSchema.nullable()
|
|
26
|
+
}).describe("Response model for ListLabels action.");
|
|
27
|
+
const superchatListLabels = require_action.action("SUPERCHAT_LIST_LABELS", {
|
|
28
|
+
slug: "superchat-list-labels",
|
|
29
|
+
name: "List Labels",
|
|
30
|
+
description: "List all labels in the Superchat workspace. Labels are used to categorize and organize conversations. Use this tool to retrieve available labels and their IDs, which can then be used to assign labels to conversations via the update conversation endpoint. Supports cursor-based pagination for workspaces with many labels.",
|
|
31
|
+
input: SuperchatListLabelsInput,
|
|
32
|
+
output: SuperchatListLabelsOutput
|
|
33
|
+
});
|
|
34
|
+
//#endregion
|
|
35
|
+
exports.superchatListLabels = superchatListLabels;
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=list-labels.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-labels.cjs","names":["z","action"],"sources":["../../src/actions/list-labels.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SuperchatListLabelsInput: z.ZodTypeAny = z.object({\n after: z.string().describe(\"Cursor for pagination. Returns labels after this cursor position. Use the 'next_cursor' from a previous response.\").optional(),\n limit: z.number().int().default(50).describe(\"Number of labels to return per page (1-100). Defaults to 50.\").optional(),\n before: z.string().describe(\"Cursor for pagination. Returns labels before this cursor position. Use the 'previous_cursor' from a previous response. Cannot be used together with 'after'.\").optional(),\n}).describe(\"Request model for listing labels in Superchat.\\nLabels are used to categorize and organize conversations in a workspace.\");\nconst SuperchatListLabels_LabelSummarySchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the label.\"),\n name: z.string().describe(\"Display name of the label.\"),\n color: z.string().describe(\"Hex color code of the label (if set).\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the label was created.\").nullable().optional(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the label was last updated.\").nullable().optional(),\n}).describe(\"Summary of a single label resource.\\nLabels are used to categorize conversations in Superchat.\");\nconst SuperchatListLabels_PaginationSchema: z.ZodTypeAny = z.object({\n next_url: z.string().describe(\"URL to retrieve the next page of results.\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor for the next page of results.\").nullable().optional(),\n previous_url: z.string().describe(\"URL to retrieve the previous page of results.\").nullable().optional(),\n previous_cursor: z.string().describe(\"Cursor for the previous page of results.\").nullable().optional(),\n}).describe(\"Pagination details for list responses.\");\nexport const SuperchatListLabelsOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Endpoint URL for the labels resource.\"),\n results: z.array(SuperchatListLabels_LabelSummarySchema).describe(\"List of label summaries.\"),\n pagination: SuperchatListLabels_PaginationSchema.nullable(),\n}).describe(\"Response model for ListLabels action.\");\n\nexport const superchatListLabels = action(\"SUPERCHAT_LIST_LABELS\", {\n slug: \"superchat-list-labels\",\n name: \"List Labels\",\n description: \"List all labels in the Superchat workspace. Labels are used to categorize and organize conversations. Use this tool to retrieve available labels and their IDs, which can then be used to assign labels to conversations via the update conversation endpoint. Supports cursor-based pagination for workspaces with many labels.\",\n input: SuperchatListLabelsInput,\n output: SuperchatList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CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAChE,SAASA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,0BAA0B;CAC5F,YAAY,qCAAqC,SAAS;AAC5D,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAEnD,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-labels.d.ts
|
|
4
|
+
declare const SuperchatListLabelsInput: z.ZodTypeAny;
|
|
5
|
+
declare const SuperchatListLabelsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const superchatListLabels: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { superchatListLabels };
|
|
9
|
+
//# sourceMappingURL=list-labels.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-labels.d.cts","names":[],"sources":["../../src/actions/list-labels.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAI8F;AAAA,cAc1H,yBAAA,EAA2B,CAAA,CAAE,UAIU;AAAA,cAEvC,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-labels.d.ts
|
|
4
|
+
declare const SuperchatListLabelsInput: z.ZodTypeAny;
|
|
5
|
+
declare const SuperchatListLabelsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const superchatListLabels: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { superchatListLabels };
|
|
9
|
+
//# sourceMappingURL=list-labels.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-labels.d.mts","names":[],"sources":["../../src/actions/list-labels.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAI8F;AAAA,cAc1H,yBAAA,EAA2B,CAAA,CAAE,UAIU;AAAA,cAEvC,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|