@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 @@
|
|
|
1
|
+
{"version":3,"file":"get-file.d.cts","names":[],"sources":["../../src/actions/get-file.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAEU;AAAA,cAKnC,sBAAA,EAAwB,CAAA,CAAE,UAMmC;AAAA,cAE7D,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-file.d.ts
|
|
4
|
+
declare const SuperchatGetFileInput: z.ZodTypeAny;
|
|
5
|
+
declare const SuperchatGetFileOutput: z.ZodTypeAny;
|
|
6
|
+
declare const superchatGetFile: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { superchatGetFile };
|
|
9
|
+
//# sourceMappingURL=get-file.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-file.d.mts","names":[],"sources":["../../src/actions/get-file.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAEU;AAAA,cAKnC,sBAAA,EAAwB,CAAA,CAAE,UAMmC;AAAA,cAE7D,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-file.ts
|
|
4
|
+
const SuperchatGetFileInput = z.object({ file_id: z.string().describe("The unique identifier of the file to retrieve (e.g., 'fi_abc123').") }).describe("Request model for GetFile action.");
|
|
5
|
+
const SuperchatGetFile_FileLinkSchema = z.object({
|
|
6
|
+
url: z.string().describe("Temporary download URL for the file."),
|
|
7
|
+
valid_until: z.string().describe("ISO 8601 timestamp until which the download link is valid.")
|
|
8
|
+
}).describe("Download link information for the file.");
|
|
9
|
+
const superchatGetFile = action("SUPERCHAT_GET_FILE", {
|
|
10
|
+
slug: "superchat-get-file",
|
|
11
|
+
name: "Get File",
|
|
12
|
+
description: "Retrieve metadata for a specific file by its ID. Returns file details including the file name, MIME type, API resource URL, and a temporary download link with expiration. Use this to get information about uploaded files before downloading or processing them.",
|
|
13
|
+
input: SuperchatGetFileInput,
|
|
14
|
+
output: z.object({
|
|
15
|
+
id: z.string().describe("Unique identifier of the file (prefixed with 'fi_')."),
|
|
16
|
+
url: z.string().describe("API resource URL path for the file."),
|
|
17
|
+
link: SuperchatGetFile_FileLinkSchema.nullable(),
|
|
18
|
+
name: z.string().describe("Original filename of the uploaded file."),
|
|
19
|
+
mime_type: z.string().describe("MIME type of the file (e.g., 'text/plain', 'application/pdf', 'image/png').")
|
|
20
|
+
}).describe("Response model for GetFile action containing file metadata.")
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
export { superchatGetFile };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=get-file.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-file.mjs","names":[],"sources":["../../src/actions/get-file.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SuperchatGetFileInput: z.ZodTypeAny = z.object({\n file_id: z.string().describe(\"The unique identifier of the file to retrieve (e.g., 'fi_abc123').\"),\n}).describe(\"Request model for GetFile action.\");\nconst SuperchatGetFile_FileLinkSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Temporary download URL for the file.\"),\n valid_until: z.string().describe(\"ISO 8601 timestamp until which the download link is valid.\"),\n}).describe(\"Download link information for the file.\");\nexport const SuperchatGetFileOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the file (prefixed with 'fi_').\"),\n url: z.string().describe(\"API resource URL path for the file.\"),\n link: SuperchatGetFile_FileLinkSchema.nullable(),\n name: z.string().describe(\"Original filename of the uploaded file.\"),\n mime_type: z.string().describe(\"MIME type of the file (e.g., 'text/plain', 'application/pdf', 'image/png').\"),\n}).describe(\"Response model for GetFile action containing file metadata.\");\n\nexport const superchatGetFile = action(\"SUPERCHAT_GET_FILE\", {\n slug: \"superchat-get-file\",\n name: \"Get File\",\n description: \"Retrieve metadata for a specific file by its ID. Returns file details including the file name, MIME type, API resource URL, and a temporary download link with expiration. Use this to get information about uploaded files before downloading or processing them.\",\n input: SuperchatGetFileInput,\n output: SuperchatGetFileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsC,EAAE,OAAO,EAC1D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,EACnG,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAM,kCAAgD,EAAE,OAAO;CAC7D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAC/D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;AAC/F,CAAC,CAAC,CAAC,SAAS,yCAAyC;AASrD,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbkD,EAAE,OAAO;EAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;EAC9E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;EAC9D,MAAM,gCAAgC,SAAS;EAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;EACnE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;CAC9G,CAAC,CAAC,CAAC,SAAS,6DAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-user.ts
|
|
4
|
+
const SuperchatGetUserInput = zod.z.object({ user_id: zod.z.string().describe("The unique identifier of the user to retrieve (format: us_xxx). Obtain user IDs from the List Users action.") }).describe("Request model for retrieving a specific user in Superchat.");
|
|
5
|
+
const SuperchatGetUserOutput = zod.z.object({
|
|
6
|
+
id: zod.z.string().describe("Unique identifier of the user (format: us_xxx)."),
|
|
7
|
+
url: zod.z.string().describe("API URL of the user resource.").nullable().optional(),
|
|
8
|
+
name: zod.z.string().describe("Full name of the user.").nullable().optional(),
|
|
9
|
+
role: zod.z.string().describe("Role of the user within the workspace (e.g., 'admin', 'member')."),
|
|
10
|
+
email: zod.z.string().describe("Email address of the user."),
|
|
11
|
+
phone: zod.z.string().describe("Phone number of the user.").nullable().optional(),
|
|
12
|
+
last_name: zod.z.string().describe("Last name of the user.").nullable().optional(),
|
|
13
|
+
first_name: zod.z.string().describe("First name of the user.").nullable().optional()
|
|
14
|
+
}).describe("Response model containing user details from Superchat.");
|
|
15
|
+
const superchatGetUser = require_action.action("SUPERCHAT_GET_USER", {
|
|
16
|
+
slug: "superchat-get-user",
|
|
17
|
+
name: "Get User",
|
|
18
|
+
description: "Retrieve details of a specific user in the Superchat workspace by their user ID. Use this tool when you need to fetch profile information for a known user. Note: You can obtain user IDs by first calling the List Users action. Example user_id format: 'us_abc123xyz'",
|
|
19
|
+
input: SuperchatGetUserInput,
|
|
20
|
+
output: SuperchatGetUserOutput
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
exports.superchatGetUser = superchatGetUser;
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=get-user.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-user.cjs","names":["z","action"],"sources":["../../src/actions/get-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SuperchatGetUserInput: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"The unique identifier of the user to retrieve (format: us_xxx). Obtain user IDs from the List Users action.\"),\n}).describe(\"Request model for retrieving a specific user in Superchat.\");\nexport const SuperchatGetUserOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the user (format: us_xxx).\"),\n url: z.string().describe(\"API URL of the user resource.\").nullable().optional(),\n name: z.string().describe(\"Full name of the user.\").nullable().optional(),\n role: z.string().describe(\"Role of the user within the workspace (e.g., 'admin', 'member').\"),\n email: z.string().describe(\"Email address of the user.\"),\n phone: z.string().describe(\"Phone number of the user.\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the user.\").nullable().optional(),\n first_name: z.string().describe(\"First name of the user.\").nullable().optional(),\n}).describe(\"Response model containing user details from Superchat.\");\n\nexport const superchatGetUser = action(\"SUPERCHAT_GET_USER\", {\n slug: \"superchat-get-user\",\n name: \"Get User\",\n description: \"Retrieve details of a specific user in the Superchat workspace by their user ID. Use this tool when you need to fetch profile information for a known user. Note: You can obtain user IDs by first calling the List Users action. Example user_id format: 'us_abc123xyz'\",\n input: SuperchatGetUserInput,\n output: SuperchatGetUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsCA,IAAAA,EAAE,OAAO,EAC1D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,EAC5I,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAa,yBAAuCA,IAAAA,EAAE,OAAO;CAC3D,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,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;CAC5F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAEpE,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,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/get-user.d.ts
|
|
4
|
+
declare const SuperchatGetUserInput: z.ZodTypeAny;
|
|
5
|
+
declare const SuperchatGetUserOutput: z.ZodTypeAny;
|
|
6
|
+
declare const superchatGetUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { superchatGetUser };
|
|
9
|
+
//# sourceMappingURL=get-user.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-user.d.cts","names":[],"sources":["../../src/actions/get-user.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAEmC;AAAA,cAC5D,sBAAA,EAAwB,CAAA,CAAE,UAS8B;AAAA,cAExD,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-user.d.ts
|
|
4
|
+
declare const SuperchatGetUserInput: z.ZodTypeAny;
|
|
5
|
+
declare const SuperchatGetUserOutput: z.ZodTypeAny;
|
|
6
|
+
declare const superchatGetUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { superchatGetUser };
|
|
9
|
+
//# sourceMappingURL=get-user.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-user.d.mts","names":[],"sources":["../../src/actions/get-user.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAEmC;AAAA,cAC5D,sBAAA,EAAwB,CAAA,CAAE,UAS8B;AAAA,cAExD,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const superchatGetUser = action("SUPERCHAT_GET_USER", {
|
|
4
|
+
slug: "superchat-get-user",
|
|
5
|
+
name: "Get User",
|
|
6
|
+
description: "Retrieve details of a specific user in the Superchat workspace by their user ID. Use this tool when you need to fetch profile information for a known user. Note: You can obtain user IDs by first calling the List Users action. Example user_id format: 'us_abc123xyz'",
|
|
7
|
+
input: z.object({ user_id: z.string().describe("The unique identifier of the user to retrieve (format: us_xxx). Obtain user IDs from the List Users action.") }).describe("Request model for retrieving a specific user in Superchat."),
|
|
8
|
+
output: z.object({
|
|
9
|
+
id: z.string().describe("Unique identifier of the user (format: us_xxx)."),
|
|
10
|
+
url: z.string().describe("API URL of the user resource.").nullable().optional(),
|
|
11
|
+
name: z.string().describe("Full name of the user.").nullable().optional(),
|
|
12
|
+
role: z.string().describe("Role of the user within the workspace (e.g., 'admin', 'member')."),
|
|
13
|
+
email: z.string().describe("Email address of the user."),
|
|
14
|
+
phone: z.string().describe("Phone number of the user.").nullable().optional(),
|
|
15
|
+
last_name: z.string().describe("Last name of the user.").nullable().optional(),
|
|
16
|
+
first_name: z.string().describe("First name of the user.").nullable().optional()
|
|
17
|
+
}).describe("Response model containing user details from Superchat.")
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
export { superchatGetUser };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=get-user.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-user.mjs","names":[],"sources":["../../src/actions/get-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SuperchatGetUserInput: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"The unique identifier of the user to retrieve (format: us_xxx). Obtain user IDs from the List Users action.\"),\n}).describe(\"Request model for retrieving a specific user in Superchat.\");\nexport const SuperchatGetUserOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the user (format: us_xxx).\"),\n url: z.string().describe(\"API URL of the user resource.\").nullable().optional(),\n name: z.string().describe(\"Full name of the user.\").nullable().optional(),\n role: z.string().describe(\"Role of the user within the workspace (e.g., 'admin', 'member').\"),\n email: z.string().describe(\"Email address of the user.\"),\n phone: z.string().describe(\"Phone number of the user.\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the user.\").nullable().optional(),\n first_name: z.string().describe(\"First name of the user.\").nullable().optional(),\n}).describe(\"Response model containing user details from Superchat.\");\n\nexport const superchatGetUser = action(\"SUPERCHAT_GET_USER\", {\n slug: \"superchat-get-user\",\n name: \"Get User\",\n description: \"Retrieve details of a specific user in the Superchat workspace by their user ID. Use this tool when you need to fetch profile information for a known user. Note: You can obtain user IDs by first calling the List Users action. Example user_id format: 'us_abc123xyz'\",\n input: SuperchatGetUserInput,\n output: SuperchatGetUserOutput,\n});\n"],"mappings":";;AAkBA,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBiD,EAAE,OAAO,EAC1D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,EAC5I,CAAC,CAAC,CAAC,SAAS,4DAgBH;CACP,QAhBkD,EAAE,OAAO;EAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;EACzE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;EAC5F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;EACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_create_contact = require("./create-contact.cjs");
|
|
3
|
+
const require_create_template_folder = require("./create-template-folder.cjs");
|
|
4
|
+
const require_delete_webhook = require("./delete-webhook.cjs");
|
|
5
|
+
const require_get_contact = require("./get-contact.cjs");
|
|
6
|
+
const require_get_file = require("./get-file.cjs");
|
|
7
|
+
const require_get_user = require("./get-user.cjs");
|
|
8
|
+
const require_list_channels = require("./list-channels.cjs");
|
|
9
|
+
const require_list_contacts = require("./list-contacts.cjs");
|
|
10
|
+
const require_list_conversations = require("./list-conversations.cjs");
|
|
11
|
+
const require_list_custom_attributes = require("./list-custom-attributes.cjs");
|
|
12
|
+
const require_list_inboxes = require("./list-inboxes.cjs");
|
|
13
|
+
const require_list_labels = require("./list-labels.cjs");
|
|
14
|
+
const require_list_templates = require("./list-templates.cjs");
|
|
15
|
+
const require_list_users = require("./list-users.cjs");
|
|
16
|
+
const require_list_webhooks = require("./list-webhooks.cjs");
|
|
17
|
+
const require_update_contact = require("./update-contact.cjs");
|
|
18
|
+
const require_update_webhook = require("./update-webhook.cjs");
|
|
19
|
+
exports.superchatCreateContact = require_create_contact.superchatCreateContact;
|
|
20
|
+
exports.superchatCreateTemplateFolder = require_create_template_folder.superchatCreateTemplateFolder;
|
|
21
|
+
exports.superchatDeleteWebhook = require_delete_webhook.superchatDeleteWebhook;
|
|
22
|
+
exports.superchatGetContact = require_get_contact.superchatGetContact;
|
|
23
|
+
exports.superchatGetFile = require_get_file.superchatGetFile;
|
|
24
|
+
exports.superchatGetUser = require_get_user.superchatGetUser;
|
|
25
|
+
exports.superchatListChannels = require_list_channels.superchatListChannels;
|
|
26
|
+
exports.superchatListContacts = require_list_contacts.superchatListContacts;
|
|
27
|
+
exports.superchatListConversations = require_list_conversations.superchatListConversations;
|
|
28
|
+
exports.superchatListCustomAttributes = require_list_custom_attributes.superchatListCustomAttributes;
|
|
29
|
+
exports.superchatListInboxes = require_list_inboxes.superchatListInboxes;
|
|
30
|
+
exports.superchatListLabels = require_list_labels.superchatListLabels;
|
|
31
|
+
exports.superchatListTemplates = require_list_templates.superchatListTemplates;
|
|
32
|
+
exports.superchatListUsers = require_list_users.superchatListUsers;
|
|
33
|
+
exports.superchatListWebhooks = require_list_webhooks.superchatListWebhooks;
|
|
34
|
+
exports.superchatUpdateContact = require_update_contact.superchatUpdateContact;
|
|
35
|
+
exports.superchatUpdateWebhook = require_update_webhook.superchatUpdateWebhook;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { superchatCreateContact } from "./create-contact.cjs";
|
|
2
|
+
import { superchatCreateTemplateFolder } from "./create-template-folder.cjs";
|
|
3
|
+
import { superchatDeleteWebhook } from "./delete-webhook.cjs";
|
|
4
|
+
import { superchatGetContact } from "./get-contact.cjs";
|
|
5
|
+
import { superchatGetFile } from "./get-file.cjs";
|
|
6
|
+
import { superchatGetUser } from "./get-user.cjs";
|
|
7
|
+
import { superchatListChannels } from "./list-channels.cjs";
|
|
8
|
+
import { superchatListContacts } from "./list-contacts.cjs";
|
|
9
|
+
import { superchatListConversations } from "./list-conversations.cjs";
|
|
10
|
+
import { superchatListCustomAttributes } from "./list-custom-attributes.cjs";
|
|
11
|
+
import { superchatListInboxes } from "./list-inboxes.cjs";
|
|
12
|
+
import { superchatListLabels } from "./list-labels.cjs";
|
|
13
|
+
import { superchatListTemplates } from "./list-templates.cjs";
|
|
14
|
+
import { superchatListUsers } from "./list-users.cjs";
|
|
15
|
+
import { superchatListWebhooks } from "./list-webhooks.cjs";
|
|
16
|
+
import { superchatUpdateContact } from "./update-contact.cjs";
|
|
17
|
+
import { superchatUpdateWebhook } from "./update-webhook.cjs";
|
|
18
|
+
export { superchatCreateContact, superchatCreateTemplateFolder, superchatDeleteWebhook, superchatGetContact, superchatGetFile, superchatGetUser, superchatListChannels, superchatListContacts, superchatListConversations, superchatListCustomAttributes, superchatListInboxes, superchatListLabels, superchatListTemplates, superchatListUsers, superchatListWebhooks, superchatUpdateContact, superchatUpdateWebhook };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { superchatCreateContact } from "./create-contact.mjs";
|
|
2
|
+
import { superchatCreateTemplateFolder } from "./create-template-folder.mjs";
|
|
3
|
+
import { superchatDeleteWebhook } from "./delete-webhook.mjs";
|
|
4
|
+
import { superchatGetContact } from "./get-contact.mjs";
|
|
5
|
+
import { superchatGetFile } from "./get-file.mjs";
|
|
6
|
+
import { superchatGetUser } from "./get-user.mjs";
|
|
7
|
+
import { superchatListChannels } from "./list-channels.mjs";
|
|
8
|
+
import { superchatListContacts } from "./list-contacts.mjs";
|
|
9
|
+
import { superchatListConversations } from "./list-conversations.mjs";
|
|
10
|
+
import { superchatListCustomAttributes } from "./list-custom-attributes.mjs";
|
|
11
|
+
import { superchatListInboxes } from "./list-inboxes.mjs";
|
|
12
|
+
import { superchatListLabels } from "./list-labels.mjs";
|
|
13
|
+
import { superchatListTemplates } from "./list-templates.mjs";
|
|
14
|
+
import { superchatListUsers } from "./list-users.mjs";
|
|
15
|
+
import { superchatListWebhooks } from "./list-webhooks.mjs";
|
|
16
|
+
import { superchatUpdateContact } from "./update-contact.mjs";
|
|
17
|
+
import { superchatUpdateWebhook } from "./update-webhook.mjs";
|
|
18
|
+
export { superchatCreateContact, superchatCreateTemplateFolder, superchatDeleteWebhook, superchatGetContact, superchatGetFile, superchatGetUser, superchatListChannels, superchatListContacts, superchatListConversations, superchatListCustomAttributes, superchatListInboxes, superchatListLabels, superchatListTemplates, superchatListUsers, superchatListWebhooks, superchatUpdateContact, superchatUpdateWebhook };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { superchatCreateContact } from "./create-contact.mjs";
|
|
2
|
+
import { superchatCreateTemplateFolder } from "./create-template-folder.mjs";
|
|
3
|
+
import { superchatDeleteWebhook } from "./delete-webhook.mjs";
|
|
4
|
+
import { superchatGetContact } from "./get-contact.mjs";
|
|
5
|
+
import { superchatGetFile } from "./get-file.mjs";
|
|
6
|
+
import { superchatGetUser } from "./get-user.mjs";
|
|
7
|
+
import { superchatListChannels } from "./list-channels.mjs";
|
|
8
|
+
import { superchatListContacts } from "./list-contacts.mjs";
|
|
9
|
+
import { superchatListConversations } from "./list-conversations.mjs";
|
|
10
|
+
import { superchatListCustomAttributes } from "./list-custom-attributes.mjs";
|
|
11
|
+
import { superchatListInboxes } from "./list-inboxes.mjs";
|
|
12
|
+
import { superchatListLabels } from "./list-labels.mjs";
|
|
13
|
+
import { superchatListTemplates } from "./list-templates.mjs";
|
|
14
|
+
import { superchatListUsers } from "./list-users.mjs";
|
|
15
|
+
import { superchatListWebhooks } from "./list-webhooks.mjs";
|
|
16
|
+
import { superchatUpdateContact } from "./update-contact.mjs";
|
|
17
|
+
import { superchatUpdateWebhook } from "./update-webhook.mjs";
|
|
18
|
+
export { superchatCreateContact, superchatCreateTemplateFolder, superchatDeleteWebhook, superchatGetContact, superchatGetFile, superchatGetUser, superchatListChannels, superchatListContacts, superchatListConversations, superchatListCustomAttributes, superchatListInboxes, superchatListLabels, superchatListTemplates, superchatListUsers, superchatListWebhooks, superchatUpdateContact, superchatUpdateWebhook };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-channels.ts
|
|
4
|
+
const SuperchatListChannelsInput = zod.z.object({
|
|
5
|
+
after: zod.z.string().describe("Cursor after which channels should be returned. Cannot be used with 'before'.").optional(),
|
|
6
|
+
limit: zod.z.number().int().default(50).describe("Total number of channels to return (1-100).").optional(),
|
|
7
|
+
before: zod.z.string().describe("Cursor before which channels should be returned. Cannot be used with 'after'.").optional()
|
|
8
|
+
}).describe("Request model for listing channels with optional pagination.");
|
|
9
|
+
const SuperchatListChannels_ChannelSummarySchema = zod.z.object({
|
|
10
|
+
id: zod.z.string().describe("Unique identifier of the channel."),
|
|
11
|
+
url: zod.z.string().describe("Resource URL path for this channel.").nullable().optional(),
|
|
12
|
+
name: zod.z.string().describe("Display name of the channel.").nullable().optional(),
|
|
13
|
+
type: zod.z.string().describe("Type of the channel (e.g., 'whats_app', 'mail', 'sms', 'telegram', 'instagram', 'facebook').").nullable().optional(),
|
|
14
|
+
created_at: zod.z.string().describe("Timestamp when the channel was created, in ISO 8601 format.").nullable().optional()
|
|
15
|
+
}).describe("Summary of a single channel resource.");
|
|
16
|
+
const SuperchatListChannels_PaginationSchema = zod.z.object({
|
|
17
|
+
next_url: zod.z.string().describe("URL for the next page of results.").nullable().optional(),
|
|
18
|
+
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(),
|
|
19
|
+
previous_url: zod.z.string().describe("URL for the previous page of results.").nullable().optional(),
|
|
20
|
+
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()
|
|
21
|
+
}).describe("Pagination details for list responses.");
|
|
22
|
+
const SuperchatListChannelsOutput = zod.z.object({
|
|
23
|
+
url: zod.z.string().describe("URL of the channel resources.").nullable().optional(),
|
|
24
|
+
results: zod.z.array(SuperchatListChannels_ChannelSummarySchema).describe("List of channel summaries.").nullable().optional(),
|
|
25
|
+
pagination: SuperchatListChannels_PaginationSchema.nullable().optional()
|
|
26
|
+
}).describe("Response model for ListChannels action.");
|
|
27
|
+
const superchatListChannels = require_action.action("SUPERCHAT_LIST_CHANNELS", {
|
|
28
|
+
slug: "superchat-list-channels",
|
|
29
|
+
name: "List Channels",
|
|
30
|
+
description: "Lists all communication channels in your Superchat workspace. Channels represent different messaging mediums (WhatsApp, email, SMS, Telegram, Instagram, Facebook) through which conversations occur. Results are sorted by creation date (newest first) and can be paginated using 'limit', 'after', or 'before' parameters.",
|
|
31
|
+
input: SuperchatListChannelsInput,
|
|
32
|
+
output: SuperchatListChannelsOutput
|
|
33
|
+
});
|
|
34
|
+
//#endregion
|
|
35
|
+
exports.superchatListChannels = superchatListChannels;
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=list-channels.cjs.map
|
|
@@ -0,0 +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 SuperchatListChannelsInput: z.ZodTypeAny = z.object({\n after: z.string().describe(\"Cursor after which channels should be returned. Cannot be used with 'before'.\").optional(),\n limit: z.number().int().default(50).describe(\"Total number of channels to return (1-100).\").optional(),\n before: z.string().describe(\"Cursor before which channels should be returned. Cannot be used with 'after'.\").optional(),\n}).describe(\"Request model for listing channels with optional pagination.\");\nconst SuperchatListChannels_ChannelSummarySchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the channel.\"),\n url: z.string().describe(\"Resource URL path for this channel.\").nullable().optional(),\n name: z.string().describe(\"Display name of the channel.\").nullable().optional(),\n type: z.string().describe(\"Type of the channel (e.g., 'whats_app', 'mail', 'sms', 'telegram', 'instagram', 'facebook').\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the channel was created, in ISO 8601 format.\").nullable().optional(),\n}).describe(\"Summary of a single channel resource.\");\nconst SuperchatListChannels_PaginationSchema: z.ZodTypeAny = z.object({\n next_url: z.string().describe(\"URL for 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(\"URL for 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.\");\nexport const SuperchatListChannelsOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the channel resources.\").nullable().optional(),\n results: z.array(SuperchatListChannels_ChannelSummarySchema).describe(\"List of channel summaries.\").nullable().optional(),\n pagination: SuperchatListChannels_PaginationSchema.nullable().optional(),\n}).describe(\"Response model for ListChannels action.\");\n\nexport const superchatListChannels = action(\"SUPERCHAT_LIST_CHANNELS\", {\n slug: \"superchat-list-channels\",\n name: \"List Channels\",\n description: \"Lists all communication channels in your Superchat workspace. Channels represent different messaging mediums (WhatsApp, email, SMS, Telegram, Instagram, Facebook) through which conversations occur. Results are sorted by creation date (newest first) and can be paginated using 'limit', 'after', or 'before' parameters.\",\n input: SuperchatListChannelsInput,\n output: SuperchatListChannelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CACrH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8BAA4CA,IAAAA,EAAE,OAAO;CAChE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,SAASA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,YAAY,uCAAuC,SAAS,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAErD,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,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-channels.d.ts
|
|
4
|
+
declare const SuperchatListChannelsInput: z.ZodTypeAny;
|
|
5
|
+
declare const SuperchatListChannelsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const superchatListChannels: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { superchatListChannels };
|
|
9
|
+
//# sourceMappingURL=list-channels.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-channels.d.cts","names":[],"sources":["../../src/actions/list-channels.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAIgC;AAAA,cAc9D,2BAAA,EAA6B,CAAA,CAAE,UAIU;AAAA,cAEzC,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-channels.d.ts
|
|
4
|
+
declare const SuperchatListChannelsInput: z.ZodTypeAny;
|
|
5
|
+
declare const SuperchatListChannelsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const superchatListChannels: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { superchatListChannels };
|
|
9
|
+
//# sourceMappingURL=list-channels.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-channels.d.mts","names":[],"sources":["../../src/actions/list-channels.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAIgC;AAAA,cAc9D,2BAAA,EAA6B,CAAA,CAAE,UAIU;AAAA,cAEzC,qBAAA,gCAAqB,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-channels.ts
|
|
4
|
+
const SuperchatListChannelsInput = z.object({
|
|
5
|
+
after: z.string().describe("Cursor after which channels should be returned. Cannot be used with 'before'.").optional(),
|
|
6
|
+
limit: z.number().int().default(50).describe("Total number of channels to return (1-100).").optional(),
|
|
7
|
+
before: z.string().describe("Cursor before which channels should be returned. Cannot be used with 'after'.").optional()
|
|
8
|
+
}).describe("Request model for listing channels with optional pagination.");
|
|
9
|
+
const SuperchatListChannels_ChannelSummarySchema = z.object({
|
|
10
|
+
id: z.string().describe("Unique identifier of the channel."),
|
|
11
|
+
url: z.string().describe("Resource URL path for this channel.").nullable().optional(),
|
|
12
|
+
name: z.string().describe("Display name of the channel.").nullable().optional(),
|
|
13
|
+
type: z.string().describe("Type of the channel (e.g., 'whats_app', 'mail', 'sms', 'telegram', 'instagram', 'facebook').").nullable().optional(),
|
|
14
|
+
created_at: z.string().describe("Timestamp when the channel was created, in ISO 8601 format.").nullable().optional()
|
|
15
|
+
}).describe("Summary of a single channel resource.");
|
|
16
|
+
const SuperchatListChannels_PaginationSchema = z.object({
|
|
17
|
+
next_url: z.string().describe("URL for the next page of results.").nullable().optional(),
|
|
18
|
+
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(),
|
|
19
|
+
previous_url: z.string().describe("URL for the previous page of results.").nullable().optional(),
|
|
20
|
+
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()
|
|
21
|
+
}).describe("Pagination details for list responses.");
|
|
22
|
+
const superchatListChannels = action("SUPERCHAT_LIST_CHANNELS", {
|
|
23
|
+
slug: "superchat-list-channels",
|
|
24
|
+
name: "List Channels",
|
|
25
|
+
description: "Lists all communication channels in your Superchat workspace. Channels represent different messaging mediums (WhatsApp, email, SMS, Telegram, Instagram, Facebook) through which conversations occur. Results are sorted by creation date (newest first) and can be paginated using 'limit', 'after', or 'before' parameters.",
|
|
26
|
+
input: SuperchatListChannelsInput,
|
|
27
|
+
output: z.object({
|
|
28
|
+
url: z.string().describe("URL of the channel resources.").nullable().optional(),
|
|
29
|
+
results: z.array(SuperchatListChannels_ChannelSummarySchema).describe("List of channel summaries.").nullable().optional(),
|
|
30
|
+
pagination: SuperchatListChannels_PaginationSchema.nullable().optional()
|
|
31
|
+
}).describe("Response model for ListChannels action.")
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
export { superchatListChannels };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=list-channels.mjs.map
|
|
@@ -0,0 +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 SuperchatListChannelsInput: z.ZodTypeAny = z.object({\n after: z.string().describe(\"Cursor after which channels should be returned. Cannot be used with 'before'.\").optional(),\n limit: z.number().int().default(50).describe(\"Total number of channels to return (1-100).\").optional(),\n before: z.string().describe(\"Cursor before which channels should be returned. Cannot be used with 'after'.\").optional(),\n}).describe(\"Request model for listing channels with optional pagination.\");\nconst SuperchatListChannels_ChannelSummarySchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the channel.\"),\n url: z.string().describe(\"Resource URL path for this channel.\").nullable().optional(),\n name: z.string().describe(\"Display name of the channel.\").nullable().optional(),\n type: z.string().describe(\"Type of the channel (e.g., 'whats_app', 'mail', 'sms', 'telegram', 'instagram', 'facebook').\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the channel was created, in ISO 8601 format.\").nullable().optional(),\n}).describe(\"Summary of a single channel resource.\");\nconst SuperchatListChannels_PaginationSchema: z.ZodTypeAny = z.object({\n next_url: z.string().describe(\"URL for 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(\"URL for 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.\");\nexport const SuperchatListChannelsOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the channel resources.\").nullable().optional(),\n results: z.array(SuperchatListChannels_ChannelSummarySchema).describe(\"List of channel summaries.\").nullable().optional(),\n pagination: SuperchatListChannels_PaginationSchema.nullable().optional(),\n}).describe(\"Response model for ListChannels action.\");\n\nexport const superchatListChannels = action(\"SUPERCHAT_LIST_CHANNELS\", {\n slug: \"superchat-list-channels\",\n name: \"List Channels\",\n description: \"Lists all communication channels in your Superchat workspace. Channels represent different messaging mediums (WhatsApp, email, SMS, Telegram, Instagram, Facebook) through which conversations occur. Results are sorted by creation date (newest first) and can be paginated using 'limit', 'after', or 'before' parameters.\",\n input: SuperchatListChannelsInput,\n output: SuperchatListChannelsOutput,\n});\n"],"mappings":";;;A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BAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXuD,EAAE,OAAO;EAChE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9E,SAAS,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,YAAY,uCAAuC,SAAS,CAAC,CAAC,SAAS;CACzE,CAAC,CAAC,CAAC,SAAS,yCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-contacts.ts
|
|
4
|
+
const SuperchatListContactsInput = zod.z.object({
|
|
5
|
+
after: zod.z.string().describe("Contact ID cursor to fetch contacts after. Use for forward pagination.").optional(),
|
|
6
|
+
limit: zod.z.number().int().default(50).describe("Number of contacts to return per page. Range: 1-100. Default: 50.").optional(),
|
|
7
|
+
before: zod.z.string().describe("Contact ID cursor to fetch contacts before. Use for backward pagination.").optional()
|
|
8
|
+
}).describe("Request model for listing contacts with optional pagination.");
|
|
9
|
+
const SuperchatListContacts_ContactHandleResponseSchema = zod.z.object({
|
|
10
|
+
id: zod.z.string().describe("Unique identifier of the contact handle."),
|
|
11
|
+
type: zod.z.enum([
|
|
12
|
+
"phone",
|
|
13
|
+
"mail",
|
|
14
|
+
"instagram",
|
|
15
|
+
"telegram",
|
|
16
|
+
"google_business_messaging",
|
|
17
|
+
"facebook_messenger"
|
|
18
|
+
]).describe("Type of contact handle."),
|
|
19
|
+
value: zod.z.string().describe("The handle value (phone number, email address, username, etc.).")
|
|
20
|
+
}).describe("A contact handle representing a communication channel (phone, email, etc.).");
|
|
21
|
+
const SuperchatListContacts_CustomAttributeResponseSchema = zod.z.object({
|
|
22
|
+
id: zod.z.string().describe("Unique identifier of the custom attribute.").nullable().optional(),
|
|
23
|
+
name: zod.z.string().describe("Name of the custom attribute.").nullable().optional(),
|
|
24
|
+
type: zod.z.string().describe("Type of the custom attribute (string, number, date_time, date_only, single_select, multi_select).").nullable().optional(),
|
|
25
|
+
value: zod.z.unknown().describe("Value of the custom attribute.").nullable().optional()
|
|
26
|
+
}).describe("Custom attribute stored on a contact.");
|
|
27
|
+
const SuperchatListContacts_ContactResponseSchema = zod.z.object({
|
|
28
|
+
id: zod.z.string().describe("Unique identifier of the contact (format: co_xxx)."),
|
|
29
|
+
url: zod.z.string().describe("Resource URL of the contact.").nullable().optional(),
|
|
30
|
+
gender: zod.z.enum([
|
|
31
|
+
"female",
|
|
32
|
+
"male",
|
|
33
|
+
"diverse"
|
|
34
|
+
]).describe("Gender of the contact.").nullable().optional(),
|
|
35
|
+
handles: zod.z.array(SuperchatListContacts_ContactHandleResponseSchema).describe("List of contact handles (phone, email, social accounts).").nullable().optional(),
|
|
36
|
+
last_name: zod.z.string().describe("Last name of the contact.").nullable().optional(),
|
|
37
|
+
created_at: zod.z.string().describe("UTC datetime when the contact was created.").nullable().optional(),
|
|
38
|
+
first_name: zod.z.string().describe("First name of the contact.").nullable().optional(),
|
|
39
|
+
updated_at: zod.z.string().describe("UTC datetime when the contact was last updated.").nullable().optional(),
|
|
40
|
+
custom_attributes: zod.z.array(SuperchatListContacts_CustomAttributeResponseSchema).describe("Custom attributes associated with the contact.").nullable().optional()
|
|
41
|
+
}).describe("Contact object with handles and custom attributes.");
|
|
42
|
+
const SuperchatListContacts_PaginationSchema = zod.z.object({
|
|
43
|
+
next_url: zod.z.string().describe("Pre-built URL for fetching the next page of results.").nullable().optional(),
|
|
44
|
+
next_cursor: zod.z.string().describe("Cursor pointing to the last item. Use as 'after' parameter for next page.").nullable().optional(),
|
|
45
|
+
previous_url: zod.z.string().describe("Pre-built URL for fetching the previous page of results.").nullable().optional(),
|
|
46
|
+
previous_cursor: zod.z.string().describe("Cursor pointing to the first item. Use as 'before' parameter for previous page.").nullable().optional()
|
|
47
|
+
}).describe("Cursor-based pagination information.");
|
|
48
|
+
const SuperchatListContactsOutput = zod.z.object({
|
|
49
|
+
url: zod.z.string().describe("URL of the contacts resource.").nullable().optional(),
|
|
50
|
+
results: zod.z.array(SuperchatListContacts_ContactResponseSchema).describe("List of contact objects.").nullable().optional(),
|
|
51
|
+
pagination: SuperchatListContacts_PaginationSchema.nullable().optional()
|
|
52
|
+
}).describe("Response containing a paginated list of contacts.");
|
|
53
|
+
const superchatListContacts = require_action.action("SUPERCHAT_LIST_CONTACTS", {
|
|
54
|
+
slug: "superchat-list-contacts",
|
|
55
|
+
name: "List Contacts",
|
|
56
|
+
description: "List all contacts in the Superchat workspace with cursor-based pagination. Use this tool to browse contacts, find contact IDs, or export contact data. Results are sorted by creation date (newest first).",
|
|
57
|
+
input: SuperchatListContactsInput,
|
|
58
|
+
output: SuperchatListContactsOutput
|
|
59
|
+
});
|
|
60
|
+
//#endregion
|
|
61
|
+
exports.superchatListContacts = superchatListContacts;
|
|
62
|
+
|
|
63
|
+
//# sourceMappingURL=list-contacts.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-contacts.cjs","names":["z","action"],"sources":["../../src/actions/list-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SuperchatListContactsInput: z.ZodTypeAny = z.object({\n after: z.string().describe(\"Contact ID cursor to fetch contacts after. Use for forward pagination.\").optional(),\n limit: z.number().int().default(50).describe(\"Number of contacts to return per page. Range: 1-100. Default: 50.\").optional(),\n before: z.string().describe(\"Contact ID cursor to fetch contacts before. Use for backward pagination.\").optional(),\n}).describe(\"Request model for listing contacts with optional pagination.\");\nconst SuperchatListContacts_ContactHandleResponseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the contact handle.\"),\n type: z.enum([\"phone\", \"mail\", \"instagram\", \"telegram\", \"google_business_messaging\", \"facebook_messenger\"]).describe(\"Type of contact handle.\"),\n value: z.string().describe(\"The handle value (phone number, email address, username, etc.).\"),\n}).describe(\"A contact handle representing a communication channel (phone, email, etc.).\");\nconst SuperchatListContacts_CustomAttributeResponseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the custom attribute.\").nullable().optional(),\n name: z.string().describe(\"Name of the custom attribute.\").nullable().optional(),\n type: z.string().describe(\"Type of the custom attribute (string, number, date_time, date_only, single_select, multi_select).\").nullable().optional(),\n value: z.unknown().describe(\"Value of the custom attribute.\").nullable().optional(),\n}).describe(\"Custom attribute stored on a contact.\");\nconst SuperchatListContacts_ContactResponseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the contact (format: co_xxx).\"),\n url: z.string().describe(\"Resource URL of the contact.\").nullable().optional(),\n gender: z.enum([\"female\", \"male\", \"diverse\"]).describe(\"Gender of the contact.\").nullable().optional(),\n handles: z.array(SuperchatListContacts_ContactHandleResponseSchema).describe(\"List of contact handles (phone, email, social accounts).\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the contact.\").nullable().optional(),\n created_at: z.string().describe(\"UTC datetime when the contact was created.\").nullable().optional(),\n first_name: z.string().describe(\"First name of the contact.\").nullable().optional(),\n updated_at: z.string().describe(\"UTC datetime when the contact was last updated.\").nullable().optional(),\n custom_attributes: z.array(SuperchatListContacts_CustomAttributeResponseSchema).describe(\"Custom attributes associated with the contact.\").nullable().optional(),\n}).describe(\"Contact object with handles and custom attributes.\");\nconst SuperchatListContacts_PaginationSchema: z.ZodTypeAny = z.object({\n next_url: z.string().describe(\"Pre-built URL for fetching the next page of results.\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor pointing to the last item. Use as 'after' parameter for next page.\").nullable().optional(),\n previous_url: z.string().describe(\"Pre-built URL for fetching the previous page of results.\").nullable().optional(),\n previous_cursor: z.string().describe(\"Cursor pointing to the first item. Use as 'before' parameter for previous page.\").nullable().optional(),\n}).describe(\"Cursor-based pagination information.\");\nexport const SuperchatListContactsOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the contacts resource.\").nullable().optional(),\n results: z.array(SuperchatListContacts_ContactResponseSchema).describe(\"List of contact objects.\").nullable().optional(),\n pagination: SuperchatListContacts_PaginationSchema.nullable().optional(),\n}).describe(\"Response containing a paginated list of contacts.\");\n\nexport const superchatListContacts = action(\"SUPERCHAT_LIST_CONTACTS\", {\n slug: \"superchat-list-contacts\",\n name: \"List Contacts\",\n description: \"List all contacts in the Superchat workspace with cursor-based pagination. Use this tool to browse contacts, find contact IDs, or export contact data. Results are sorted by creation date (newest first).\",\n input: SuperchatListContactsInput,\n output: SuperchatListContactsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAC9G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC3H,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,oDAAkEA,IAAAA,EAAE,OAAO;CAC/E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAClE,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAQ;EAAa;EAAY;EAA6B;CAAoB,CAAC,CAAC,CAAC,SAAS,yBAAyB;CAC9I,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;AAC9F,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAM,sDAAoEA,IAAAA,EAAE,OAAO;CACjF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,MAAMA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K,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,yCAAuDA,IAAAA,EAAE,OAAO;CACpE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9I,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,SAASA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,YAAY,uCAAuC,SAAS,CAAC,CAAC,SAAS;AACzE,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,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-contacts.d.ts
|
|
4
|
+
declare const SuperchatListContactsInput: z.ZodTypeAny;
|
|
5
|
+
declare const SuperchatListContactsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const superchatListContacts: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { superchatListContacts };
|
|
9
|
+
//# sourceMappingURL=list-contacts.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-contacts.d.cts","names":[],"sources":["../../src/actions/list-contacts.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAIgC;AAAA,cA6B9D,2BAAA,EAA6B,CAAA,CAAE,UAIoB;AAAA,cAEnD,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-contacts.d.ts
|
|
4
|
+
declare const SuperchatListContactsInput: z.ZodTypeAny;
|
|
5
|
+
declare const SuperchatListContactsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const superchatListContacts: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { superchatListContacts };
|
|
9
|
+
//# sourceMappingURL=list-contacts.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-contacts.d.mts","names":[],"sources":["../../src/actions/list-contacts.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAIgC;AAAA,cA6B9D,2BAAA,EAA6B,CAAA,CAAE,UAIoB;AAAA,cAEnD,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-contacts.ts
|
|
4
|
+
const SuperchatListContactsInput = z.object({
|
|
5
|
+
after: z.string().describe("Contact ID cursor to fetch contacts after. Use for forward pagination.").optional(),
|
|
6
|
+
limit: z.number().int().default(50).describe("Number of contacts to return per page. Range: 1-100. Default: 50.").optional(),
|
|
7
|
+
before: z.string().describe("Contact ID cursor to fetch contacts before. Use for backward pagination.").optional()
|
|
8
|
+
}).describe("Request model for listing contacts with optional pagination.");
|
|
9
|
+
const SuperchatListContacts_ContactHandleResponseSchema = z.object({
|
|
10
|
+
id: z.string().describe("Unique identifier of the contact handle."),
|
|
11
|
+
type: z.enum([
|
|
12
|
+
"phone",
|
|
13
|
+
"mail",
|
|
14
|
+
"instagram",
|
|
15
|
+
"telegram",
|
|
16
|
+
"google_business_messaging",
|
|
17
|
+
"facebook_messenger"
|
|
18
|
+
]).describe("Type of contact handle."),
|
|
19
|
+
value: z.string().describe("The handle value (phone number, email address, username, etc.).")
|
|
20
|
+
}).describe("A contact handle representing a communication channel (phone, email, etc.).");
|
|
21
|
+
const SuperchatListContacts_CustomAttributeResponseSchema = z.object({
|
|
22
|
+
id: z.string().describe("Unique identifier of the custom attribute.").nullable().optional(),
|
|
23
|
+
name: z.string().describe("Name of the custom attribute.").nullable().optional(),
|
|
24
|
+
type: z.string().describe("Type of the custom attribute (string, number, date_time, date_only, single_select, multi_select).").nullable().optional(),
|
|
25
|
+
value: z.unknown().describe("Value of the custom attribute.").nullable().optional()
|
|
26
|
+
}).describe("Custom attribute stored on a contact.");
|
|
27
|
+
const SuperchatListContacts_ContactResponseSchema = z.object({
|
|
28
|
+
id: z.string().describe("Unique identifier of the contact (format: co_xxx)."),
|
|
29
|
+
url: z.string().describe("Resource URL of the contact.").nullable().optional(),
|
|
30
|
+
gender: z.enum([
|
|
31
|
+
"female",
|
|
32
|
+
"male",
|
|
33
|
+
"diverse"
|
|
34
|
+
]).describe("Gender of the contact.").nullable().optional(),
|
|
35
|
+
handles: z.array(SuperchatListContacts_ContactHandleResponseSchema).describe("List of contact handles (phone, email, social accounts).").nullable().optional(),
|
|
36
|
+
last_name: z.string().describe("Last name of the contact.").nullable().optional(),
|
|
37
|
+
created_at: z.string().describe("UTC datetime when the contact was created.").nullable().optional(),
|
|
38
|
+
first_name: z.string().describe("First name of the contact.").nullable().optional(),
|
|
39
|
+
updated_at: z.string().describe("UTC datetime when the contact was last updated.").nullable().optional(),
|
|
40
|
+
custom_attributes: z.array(SuperchatListContacts_CustomAttributeResponseSchema).describe("Custom attributes associated with the contact.").nullable().optional()
|
|
41
|
+
}).describe("Contact object with handles and custom attributes.");
|
|
42
|
+
const SuperchatListContacts_PaginationSchema = z.object({
|
|
43
|
+
next_url: z.string().describe("Pre-built URL for fetching the next page of results.").nullable().optional(),
|
|
44
|
+
next_cursor: z.string().describe("Cursor pointing to the last item. Use as 'after' parameter for next page.").nullable().optional(),
|
|
45
|
+
previous_url: z.string().describe("Pre-built URL for fetching the previous page of results.").nullable().optional(),
|
|
46
|
+
previous_cursor: z.string().describe("Cursor pointing to the first item. Use as 'before' parameter for previous page.").nullable().optional()
|
|
47
|
+
}).describe("Cursor-based pagination information.");
|
|
48
|
+
const superchatListContacts = action("SUPERCHAT_LIST_CONTACTS", {
|
|
49
|
+
slug: "superchat-list-contacts",
|
|
50
|
+
name: "List Contacts",
|
|
51
|
+
description: "List all contacts in the Superchat workspace with cursor-based pagination. Use this tool to browse contacts, find contact IDs, or export contact data. Results are sorted by creation date (newest first).",
|
|
52
|
+
input: SuperchatListContactsInput,
|
|
53
|
+
output: z.object({
|
|
54
|
+
url: z.string().describe("URL of the contacts resource.").nullable().optional(),
|
|
55
|
+
results: z.array(SuperchatListContacts_ContactResponseSchema).describe("List of contact objects.").nullable().optional(),
|
|
56
|
+
pagination: SuperchatListContacts_PaginationSchema.nullable().optional()
|
|
57
|
+
}).describe("Response containing a paginated list of contacts.")
|
|
58
|
+
});
|
|
59
|
+
//#endregion
|
|
60
|
+
export { superchatListContacts };
|
|
61
|
+
|
|
62
|
+
//# sourceMappingURL=list-contacts.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-contacts.mjs","names":[],"sources":["../../src/actions/list-contacts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SuperchatListContactsInput: z.ZodTypeAny = z.object({\n after: z.string().describe(\"Contact ID cursor to fetch contacts after. Use for forward pagination.\").optional(),\n limit: z.number().int().default(50).describe(\"Number of contacts to return per page. Range: 1-100. Default: 50.\").optional(),\n before: z.string().describe(\"Contact ID cursor to fetch contacts before. Use for backward pagination.\").optional(),\n}).describe(\"Request model for listing contacts with optional pagination.\");\nconst SuperchatListContacts_ContactHandleResponseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the contact handle.\"),\n type: z.enum([\"phone\", \"mail\", \"instagram\", \"telegram\", \"google_business_messaging\", \"facebook_messenger\"]).describe(\"Type of contact handle.\"),\n value: z.string().describe(\"The handle value (phone number, email address, username, etc.).\"),\n}).describe(\"A contact handle representing a communication channel (phone, email, etc.).\");\nconst SuperchatListContacts_CustomAttributeResponseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the custom attribute.\").nullable().optional(),\n name: z.string().describe(\"Name of the custom attribute.\").nullable().optional(),\n type: z.string().describe(\"Type of the custom attribute (string, number, date_time, date_only, single_select, multi_select).\").nullable().optional(),\n value: z.unknown().describe(\"Value of the custom attribute.\").nullable().optional(),\n}).describe(\"Custom attribute stored on a contact.\");\nconst SuperchatListContacts_ContactResponseSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the contact (format: co_xxx).\"),\n url: z.string().describe(\"Resource URL of the contact.\").nullable().optional(),\n gender: z.enum([\"female\", \"male\", \"diverse\"]).describe(\"Gender of the contact.\").nullable().optional(),\n handles: z.array(SuperchatListContacts_ContactHandleResponseSchema).describe(\"List of contact handles (phone, email, social accounts).\").nullable().optional(),\n last_name: z.string().describe(\"Last name of the contact.\").nullable().optional(),\n created_at: z.string().describe(\"UTC datetime when the contact was created.\").nullable().optional(),\n first_name: z.string().describe(\"First name of the contact.\").nullable().optional(),\n updated_at: z.string().describe(\"UTC datetime when the contact was last updated.\").nullable().optional(),\n custom_attributes: z.array(SuperchatListContacts_CustomAttributeResponseSchema).describe(\"Custom attributes associated with the contact.\").nullable().optional(),\n}).describe(\"Contact object with handles and custom attributes.\");\nconst SuperchatListContacts_PaginationSchema: z.ZodTypeAny = z.object({\n next_url: z.string().describe(\"Pre-built URL for fetching the next page of results.\").nullable().optional(),\n next_cursor: z.string().describe(\"Cursor pointing to the last item. Use as 'after' parameter for next page.\").nullable().optional(),\n previous_url: z.string().describe(\"Pre-built URL for fetching the previous page of results.\").nullable().optional(),\n previous_cursor: z.string().describe(\"Cursor pointing to the first item. Use as 'before' parameter for previous page.\").nullable().optional(),\n}).describe(\"Cursor-based pagination information.\");\nexport const SuperchatListContactsOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the contacts resource.\").nullable().optional(),\n results: z.array(SuperchatListContacts_ContactResponseSchema).describe(\"List of contact objects.\").nullable().optional(),\n pagination: SuperchatListContacts_PaginationSchema.nullable().optional(),\n}).describe(\"Response containing a paginated list of contacts.\");\n\nexport const superchatListContacts = action(\"SUPERCHAT_LIST_CONTACTS\", {\n slug: \"superchat-list-contacts\",\n name: \"List Contacts\",\n description: \"List all contacts in the Superchat workspace with cursor-based pagination. Use this tool to browse contacts, find contact IDs, or export contact data. Results are sorted by creation date (newest first).\",\n input: SuperchatListContactsInput,\n output: SuperchatListContactsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO;CAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAC9G,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC3H,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,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