@keystrokehq/sendbird_ai_chabot 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-bot.cjs +8 -8
- package/dist/actions/create-bot.cjs.map +1 -1
- package/dist/actions/create-bot.d.cts +40 -3
- package/dist/actions/create-bot.d.cts.map +1 -1
- package/dist/actions/create-bot.d.mts +40 -3
- package/dist/actions/create-bot.d.mts.map +1 -1
- package/dist/actions/create-bot.mjs +8 -8
- package/dist/actions/create-bot.mjs.map +1 -1
- package/dist/actions/get-bot.cjs +6 -6
- package/dist/actions/get-bot.cjs.map +1 -1
- package/dist/actions/get-bot.d.cts +19 -3
- package/dist/actions/get-bot.d.cts.map +1 -1
- package/dist/actions/get-bot.d.mts +19 -3
- package/dist/actions/get-bot.d.mts.map +1 -1
- package/dist/actions/get-bot.mjs +6 -6
- package/dist/actions/get-bot.mjs.map +1 -1
- package/dist/actions/list-bots.cjs +5 -5
- package/dist/actions/list-bots.cjs.map +1 -1
- package/dist/actions/list-bots.d.cts +28 -3
- package/dist/actions/list-bots.d.cts.map +1 -1
- package/dist/actions/list-bots.d.mts +28 -3
- package/dist/actions/list-bots.d.mts.map +1 -1
- package/dist/actions/list-bots.mjs +5 -5
- package/dist/actions/list-bots.mjs.map +1 -1
- package/dist/actions/list-group-channels.cjs +2 -2
- package/dist/actions/list-group-channels.cjs.map +1 -1
- package/dist/actions/list-group-channels.d.cts +88 -3
- package/dist/actions/list-group-channels.d.cts.map +1 -1
- package/dist/actions/list-group-channels.d.mts +88 -3
- package/dist/actions/list-group-channels.d.mts.map +1 -1
- package/dist/actions/list-group-channels.mjs +2 -2
- package/dist/actions/list-group-channels.mjs.map +1 -1
- package/dist/actions/unregister-bot-webhook.cjs +2 -2
- package/dist/actions/unregister-bot-webhook.cjs.map +1 -1
- package/dist/actions/unregister-bot-webhook.d.cts +10 -3
- package/dist/actions/unregister-bot-webhook.d.cts.map +1 -1
- package/dist/actions/unregister-bot-webhook.d.mts +10 -3
- package/dist/actions/unregister-bot-webhook.d.mts.map +1 -1
- package/dist/actions/unregister-bot-webhook.mjs +2 -2
- package/dist/actions/unregister-bot-webhook.mjs.map +1 -1
- package/dist/actions/update-bot.cjs +4 -4
- package/dist/actions/update-bot.cjs.map +1 -1
- package/dist/actions/update-bot.d.cts +32 -3
- package/dist/actions/update-bot.d.cts.map +1 -1
- package/dist/actions/update-bot.d.mts +32 -3
- package/dist/actions/update-bot.d.mts.map +1 -1
- package/dist/actions/update-bot.mjs +4 -4
- package/dist/actions/update-bot.mjs.map +1 -1
- package/dist/catalog.cjs +13 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +12 -0
- package/dist/catalog.d.mts +12 -0
- package/dist/catalog.mjs +13 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["sendbirdAiChabot","executeSendbirdAiChabotTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { sendbirdAiChabot } from \"./app\";\nimport { executeSendbirdAiChabotTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["sendbirdAiChabot","executeSendbirdAiChabotTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { sendbirdAiChabot } from \"./app\";\nimport { executeSendbirdAiChabotTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return sendbirdAiChabot.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeSendbirdAiChabotTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,iBAAiB,OAAO;EAC7B,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,4BAA4B,MAAM,KAAgC,CAAC;EACnG;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { sendbirdAiChabot } from \"./app\";\nimport { executeSendbirdAiChabotTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { sendbirdAiChabot } from \"./app\";\nimport { executeSendbirdAiChabotTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return sendbirdAiChabot.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeSendbirdAiChabotTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,iBAAiB,OAAO;EAC7B,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,4BAA4B,MAAM,KAAgC,CAAC;EACnG;CACF,CAAC;AACH"}
|
|
@@ -12,20 +12,20 @@ const SendbirdAiChabotCreateBotInput = zod.z.object({
|
|
|
12
12
|
channel_invitation_preference: zod.z.number().int().describe("Channel invitation handling options for the bot. 0 = disable auto accept, 1 = auto accept").optional()
|
|
13
13
|
}).describe("Request model for creating a new bot");
|
|
14
14
|
const SendbirdAiChabotCreateBot_BotModelSchema = zod.z.object({
|
|
15
|
-
bot_type: zod.z.enum(["AI", "DEFAULT"]).describe("Type of the bot"),
|
|
15
|
+
bot_type: zod.z.enum(["AI", "DEFAULT"]).describe("Type of the bot").nullable(),
|
|
16
16
|
bot_token: zod.z.string().describe("Bot's authentication token").nullable().optional(),
|
|
17
|
-
bot_userid: zod.z.string().describe("Bot's unique user ID"),
|
|
18
|
-
bot_nickname: zod.z.string().describe("Bot's nickname"),
|
|
17
|
+
bot_userid: zod.z.string().describe("Bot's unique user ID").nullable(),
|
|
18
|
+
bot_nickname: zod.z.string().describe("Bot's nickname").nullable(),
|
|
19
19
|
bot_profile_url: zod.z.string().describe("Bot's profile image URL (can be empty string)").nullable().optional()
|
|
20
|
-
}).describe("Model representing a bot in Sendbird");
|
|
20
|
+
}).passthrough().describe("Model representing a bot in Sendbird");
|
|
21
21
|
const SendbirdAiChabotCreateBotOutput = zod.z.object({
|
|
22
22
|
bot: SendbirdAiChabotCreateBot_BotModelSchema.nullable(),
|
|
23
|
-
created_at: zod.z.number().int().describe("Timestamp (in milliseconds) when the bot was created"),
|
|
24
|
-
is_privacy_mode: zod.z.boolean().describe("Whether the bot operates in privacy mode"),
|
|
23
|
+
created_at: zod.z.number().int().describe("Timestamp (in milliseconds) when the bot was created").nullable(),
|
|
24
|
+
is_privacy_mode: zod.z.boolean().describe("Whether the bot operates in privacy mode").nullable(),
|
|
25
25
|
bot_callback_url: zod.z.string().describe("Callback URL for the bot's webhook events").nullable().optional(),
|
|
26
|
-
enable_mark_as_read: zod.z.boolean().describe("Whether the bot marks messages as read automatically"),
|
|
26
|
+
enable_mark_as_read: zod.z.boolean().describe("Whether the bot marks messages as read automatically").nullable(),
|
|
27
27
|
channel_invitation_preference: zod.z.number().int().describe("Channel invitation handling options (0 = disable auto accept, 1 = auto accept)").nullable().optional()
|
|
28
|
-
}).describe("Response model for creating a new bot");
|
|
28
|
+
}).passthrough().describe("Response model for creating a new bot");
|
|
29
29
|
const sendbirdAiChabotCreateBot = require_action.action("SENDBIRD_AI_CHABOT_CREATE_BOT", {
|
|
30
30
|
slug: "sendbird_ai_chabot-create-bot",
|
|
31
31
|
name: "Create Bot",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-bot.cjs","names":["z","action"],"sources":["../../src/actions/create-bot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdAiChabotCreateBotInput
|
|
1
|
+
{"version":3,"file":"create-bot.cjs","names":["z","action"],"sources":["../../src/actions/create-bot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdAiChabotCreateBotInput = z.object({\n bot_type: z.enum([\"AI\", \"DEFAULT\"]).default(\"AI\").describe(\"Type of the bot\").optional(),\n bot_userid: z.string().describe(\"Unique ID for the bot, maximum 80 characters\"),\n bot_nickname: z.string().describe(\"Nickname for the bot, maximum 80 characters\"),\n bot_profile_url: z.string().describe(\"Profile image URL for the bot\").optional(),\n is_privacy_mode: z.boolean().default(false).describe(\"Whether the bot operates in privacy mode\").optional(),\n bot_callback_url: z.string().describe(\"Callback URL for the bot’s webhook events\").optional(),\n enable_mark_as_read: z.boolean().default(false).describe(\"Whether the bot marks messages as read automatically\").optional(),\n channel_invitation_preference: z.number().int().describe(\"Channel invitation handling options for the bot. 0 = disable auto accept, 1 = auto accept\").optional(),\n}).describe(\"Request model for creating a new bot\");\nconst SendbirdAiChabotCreateBot_BotModelSchema = z.object({\n bot_type: z.enum([\"AI\", \"DEFAULT\"]).describe(\"Type of the bot\").nullable(),\n bot_token: z.string().describe(\"Bot's authentication token\").nullable().optional(),\n bot_userid: z.string().describe(\"Bot's unique user ID\").nullable(),\n bot_nickname: z.string().describe(\"Bot's nickname\").nullable(),\n bot_profile_url: z.string().describe(\"Bot's profile image URL (can be empty string)\").nullable().optional(),\n}).passthrough().describe(\"Model representing a bot in Sendbird\");\nexport const SendbirdAiChabotCreateBotOutput = z.object({\n bot: SendbirdAiChabotCreateBot_BotModelSchema.nullable(),\n created_at: z.number().int().describe(\"Timestamp (in milliseconds) when the bot was created\").nullable(),\n is_privacy_mode: z.boolean().describe(\"Whether the bot operates in privacy mode\").nullable(),\n bot_callback_url: z.string().describe(\"Callback URL for the bot's webhook events\").nullable().optional(),\n enable_mark_as_read: z.boolean().describe(\"Whether the bot marks messages as read automatically\").nullable(),\n channel_invitation_preference: z.number().int().describe(\"Channel invitation handling options (0 = disable auto accept, 1 = auto accept)\").nullable().optional(),\n}).passthrough().describe(\"Response model for creating a new bot\");\n\nexport const sendbirdAiChabotCreateBot = action(\"SENDBIRD_AI_CHABOT_CREATE_BOT\", {\n slug: \"sendbird_ai_chabot-create-bot\",\n name: \"Create Bot\",\n description: \"Tool to create a new bot. Use when you need to add an AI or default bot to your Sendbird app.\",\n input: SendbirdAiChabotCreateBotInput,\n output: SendbirdAiChabotCreateBotOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,UAAUA,IAAAA,EAAE,KAAK,CAAC,MAAM,SAAS,CAAC,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACvF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC9E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC/E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC/E,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC1G,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC5F,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC1H,+BAA+BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;AACjK,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAM,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,UAAUA,IAAAA,EAAE,KAAK,CAAC,MAAM,SAAS,CAAC,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACzE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACjE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CAC7D,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAChE,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,KAAK,yCAAyC,SAAS;CACvD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACvG,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC3F,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC3G,+BAA+BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,MAAa,4BAA4BC,eAAAA,OAAO,iCAAiC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,46 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-bot.d.ts
|
|
4
|
-
declare const SendbirdAiChabotCreateBotInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SendbirdAiChabotCreateBotInput: z.ZodObject<{
|
|
5
|
+
bot_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
6
|
+
AI: "AI";
|
|
7
|
+
DEFAULT: "DEFAULT";
|
|
8
|
+
}>>>;
|
|
9
|
+
bot_userid: z.ZodString;
|
|
10
|
+
bot_nickname: z.ZodString;
|
|
11
|
+
bot_profile_url: z.ZodOptional<z.ZodString>;
|
|
12
|
+
is_privacy_mode: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
13
|
+
bot_callback_url: z.ZodOptional<z.ZodString>;
|
|
14
|
+
enable_mark_as_read: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
15
|
+
channel_invitation_preference: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
declare const SendbirdAiChabotCreateBotOutput: z.ZodObject<{
|
|
18
|
+
bot: z.ZodNullable<z.ZodObject<{
|
|
19
|
+
bot_type: z.ZodNullable<z.ZodEnum<{
|
|
20
|
+
AI: "AI";
|
|
21
|
+
DEFAULT: "DEFAULT";
|
|
22
|
+
}>>;
|
|
23
|
+
bot_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
bot_userid: z.ZodNullable<z.ZodString>;
|
|
25
|
+
bot_nickname: z.ZodNullable<z.ZodString>;
|
|
26
|
+
bot_profile_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
}, z.core.$loose>>;
|
|
28
|
+
created_at: z.ZodNullable<z.ZodNumber>;
|
|
29
|
+
is_privacy_mode: z.ZodNullable<z.ZodBoolean>;
|
|
30
|
+
bot_callback_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
enable_mark_as_read: z.ZodNullable<z.ZodBoolean>;
|
|
32
|
+
channel_invitation_preference: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
33
|
+
}, z.core.$loose>;
|
|
34
|
+
declare const sendbirdAiChabotCreateBot: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
35
|
+
bot_userid: string;
|
|
36
|
+
bot_nickname: string;
|
|
37
|
+
bot_type?: "AI" | "DEFAULT" | undefined;
|
|
38
|
+
bot_profile_url?: string | undefined;
|
|
39
|
+
is_privacy_mode?: boolean | undefined;
|
|
40
|
+
bot_callback_url?: string | undefined;
|
|
41
|
+
enable_mark_as_read?: boolean | undefined;
|
|
42
|
+
channel_invitation_preference?: number | undefined;
|
|
43
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
44
|
//#endregion
|
|
8
45
|
export { sendbirdAiChabotCreateBot };
|
|
9
46
|
//# sourceMappingURL=create-bot.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-bot.d.cts","names":[],"sources":["../../src/actions/create-bot.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"create-bot.d.cts","names":[],"sources":["../../src/actions/create-bot.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAiB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAS/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -1,9 +1,46 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-bot.d.ts
|
|
4
|
-
declare const SendbirdAiChabotCreateBotInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SendbirdAiChabotCreateBotInput: z.ZodObject<{
|
|
5
|
+
bot_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
6
|
+
AI: "AI";
|
|
7
|
+
DEFAULT: "DEFAULT";
|
|
8
|
+
}>>>;
|
|
9
|
+
bot_userid: z.ZodString;
|
|
10
|
+
bot_nickname: z.ZodString;
|
|
11
|
+
bot_profile_url: z.ZodOptional<z.ZodString>;
|
|
12
|
+
is_privacy_mode: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
13
|
+
bot_callback_url: z.ZodOptional<z.ZodString>;
|
|
14
|
+
enable_mark_as_read: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
15
|
+
channel_invitation_preference: z.ZodOptional<z.ZodNumber>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
declare const SendbirdAiChabotCreateBotOutput: z.ZodObject<{
|
|
18
|
+
bot: z.ZodNullable<z.ZodObject<{
|
|
19
|
+
bot_type: z.ZodNullable<z.ZodEnum<{
|
|
20
|
+
AI: "AI";
|
|
21
|
+
DEFAULT: "DEFAULT";
|
|
22
|
+
}>>;
|
|
23
|
+
bot_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
bot_userid: z.ZodNullable<z.ZodString>;
|
|
25
|
+
bot_nickname: z.ZodNullable<z.ZodString>;
|
|
26
|
+
bot_profile_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
}, z.core.$loose>>;
|
|
28
|
+
created_at: z.ZodNullable<z.ZodNumber>;
|
|
29
|
+
is_privacy_mode: z.ZodNullable<z.ZodBoolean>;
|
|
30
|
+
bot_callback_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
enable_mark_as_read: z.ZodNullable<z.ZodBoolean>;
|
|
32
|
+
channel_invitation_preference: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
33
|
+
}, z.core.$loose>;
|
|
34
|
+
declare const sendbirdAiChabotCreateBot: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
35
|
+
bot_userid: string;
|
|
36
|
+
bot_nickname: string;
|
|
37
|
+
bot_type?: "AI" | "DEFAULT" | undefined;
|
|
38
|
+
bot_profile_url?: string | undefined;
|
|
39
|
+
is_privacy_mode?: boolean | undefined;
|
|
40
|
+
bot_callback_url?: string | undefined;
|
|
41
|
+
enable_mark_as_read?: boolean | undefined;
|
|
42
|
+
channel_invitation_preference?: number | undefined;
|
|
43
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
44
|
//#endregion
|
|
8
45
|
export { sendbirdAiChabotCreateBot };
|
|
9
46
|
//# sourceMappingURL=create-bot.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-bot.d.mts","names":[],"sources":["../../src/actions/create-bot.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"create-bot.d.mts","names":[],"sources":["../../src/actions/create-bot.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAiB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAS/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -12,12 +12,12 @@ const SendbirdAiChabotCreateBotInput = z.object({
|
|
|
12
12
|
channel_invitation_preference: z.number().int().describe("Channel invitation handling options for the bot. 0 = disable auto accept, 1 = auto accept").optional()
|
|
13
13
|
}).describe("Request model for creating a new bot");
|
|
14
14
|
const SendbirdAiChabotCreateBot_BotModelSchema = z.object({
|
|
15
|
-
bot_type: z.enum(["AI", "DEFAULT"]).describe("Type of the bot"),
|
|
15
|
+
bot_type: z.enum(["AI", "DEFAULT"]).describe("Type of the bot").nullable(),
|
|
16
16
|
bot_token: z.string().describe("Bot's authentication token").nullable().optional(),
|
|
17
|
-
bot_userid: z.string().describe("Bot's unique user ID"),
|
|
18
|
-
bot_nickname: z.string().describe("Bot's nickname"),
|
|
17
|
+
bot_userid: z.string().describe("Bot's unique user ID").nullable(),
|
|
18
|
+
bot_nickname: z.string().describe("Bot's nickname").nullable(),
|
|
19
19
|
bot_profile_url: z.string().describe("Bot's profile image URL (can be empty string)").nullable().optional()
|
|
20
|
-
}).describe("Model representing a bot in Sendbird");
|
|
20
|
+
}).passthrough().describe("Model representing a bot in Sendbird");
|
|
21
21
|
const sendbirdAiChabotCreateBot = action("SENDBIRD_AI_CHABOT_CREATE_BOT", {
|
|
22
22
|
slug: "sendbird_ai_chabot-create-bot",
|
|
23
23
|
name: "Create Bot",
|
|
@@ -25,12 +25,12 @@ const sendbirdAiChabotCreateBot = action("SENDBIRD_AI_CHABOT_CREATE_BOT", {
|
|
|
25
25
|
input: SendbirdAiChabotCreateBotInput,
|
|
26
26
|
output: z.object({
|
|
27
27
|
bot: SendbirdAiChabotCreateBot_BotModelSchema.nullable(),
|
|
28
|
-
created_at: z.number().int().describe("Timestamp (in milliseconds) when the bot was created"),
|
|
29
|
-
is_privacy_mode: z.boolean().describe("Whether the bot operates in privacy mode"),
|
|
28
|
+
created_at: z.number().int().describe("Timestamp (in milliseconds) when the bot was created").nullable(),
|
|
29
|
+
is_privacy_mode: z.boolean().describe("Whether the bot operates in privacy mode").nullable(),
|
|
30
30
|
bot_callback_url: z.string().describe("Callback URL for the bot's webhook events").nullable().optional(),
|
|
31
|
-
enable_mark_as_read: z.boolean().describe("Whether the bot marks messages as read automatically"),
|
|
31
|
+
enable_mark_as_read: z.boolean().describe("Whether the bot marks messages as read automatically").nullable(),
|
|
32
32
|
channel_invitation_preference: z.number().int().describe("Channel invitation handling options (0 = disable auto accept, 1 = auto accept)").nullable().optional()
|
|
33
|
-
}).describe("Response model for creating a new bot")
|
|
33
|
+
}).passthrough().describe("Response model for creating a new bot")
|
|
34
34
|
});
|
|
35
35
|
//#endregion
|
|
36
36
|
export { sendbirdAiChabotCreateBot };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-bot.mjs","names":[],"sources":["../../src/actions/create-bot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdAiChabotCreateBotInput
|
|
1
|
+
{"version":3,"file":"create-bot.mjs","names":[],"sources":["../../src/actions/create-bot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdAiChabotCreateBotInput = z.object({\n bot_type: z.enum([\"AI\", \"DEFAULT\"]).default(\"AI\").describe(\"Type of the bot\").optional(),\n bot_userid: z.string().describe(\"Unique ID for the bot, maximum 80 characters\"),\n bot_nickname: z.string().describe(\"Nickname for the bot, maximum 80 characters\"),\n bot_profile_url: z.string().describe(\"Profile image URL for the bot\").optional(),\n is_privacy_mode: z.boolean().default(false).describe(\"Whether the bot operates in privacy mode\").optional(),\n bot_callback_url: z.string().describe(\"Callback URL for the bot’s webhook events\").optional(),\n enable_mark_as_read: z.boolean().default(false).describe(\"Whether the bot marks messages as read automatically\").optional(),\n channel_invitation_preference: z.number().int().describe(\"Channel invitation handling options for the bot. 0 = disable auto accept, 1 = auto accept\").optional(),\n}).describe(\"Request model for creating a new bot\");\nconst SendbirdAiChabotCreateBot_BotModelSchema = z.object({\n bot_type: z.enum([\"AI\", \"DEFAULT\"]).describe(\"Type of the bot\").nullable(),\n bot_token: z.string().describe(\"Bot's authentication token\").nullable().optional(),\n bot_userid: z.string().describe(\"Bot's unique user ID\").nullable(),\n bot_nickname: z.string().describe(\"Bot's nickname\").nullable(),\n bot_profile_url: z.string().describe(\"Bot's profile image URL (can be empty string)\").nullable().optional(),\n}).passthrough().describe(\"Model representing a bot in Sendbird\");\nexport const SendbirdAiChabotCreateBotOutput = z.object({\n bot: SendbirdAiChabotCreateBot_BotModelSchema.nullable(),\n created_at: z.number().int().describe(\"Timestamp (in milliseconds) when the bot was created\").nullable(),\n is_privacy_mode: z.boolean().describe(\"Whether the bot operates in privacy mode\").nullable(),\n bot_callback_url: z.string().describe(\"Callback URL for the bot's webhook events\").nullable().optional(),\n enable_mark_as_read: z.boolean().describe(\"Whether the bot marks messages as read automatically\").nullable(),\n channel_invitation_preference: z.number().int().describe(\"Channel invitation handling options (0 = disable auto accept, 1 = auto accept)\").nullable().optional(),\n}).passthrough().describe(\"Response model for creating a new bot\");\n\nexport const sendbirdAiChabotCreateBot = action(\"SENDBIRD_AI_CHABOT_CREATE_BOT\", {\n slug: \"sendbird_ai_chabot-create-bot\",\n name: \"Create Bot\",\n description: \"Tool to create a new bot. Use when you need to add an AI or default bot to your Sendbird app.\",\n input: SendbirdAiChabotCreateBotInput,\n output: SendbirdAiChabotCreateBotOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO;CACrD,UAAU,EAAE,KAAK,CAAC,MAAM,SAAS,CAAC,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACvF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC9E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC/E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC/E,iBAAiB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC1G,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC5F,qBAAqB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC1H,+BAA+B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;AACjK,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAM,2CAA2C,EAAE,OAAO;CACxD,UAAU,EAAE,KAAK,CAAC,MAAM,SAAS,CAAC,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACzE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACjE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CAC7D,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAUhE,MAAa,4BAA4B,OAAO,iCAAiC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd6C,EAAE,OAAO;EACtD,KAAK,yCAAyC,SAAS;EACvD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EACvG,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EAC3F,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,qBAAqB,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EAC3G,+BAA+B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAOhB;AACV,CAAC"}
|
package/dist/actions/get-bot.cjs
CHANGED
|
@@ -3,17 +3,17 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/get-bot.ts
|
|
4
4
|
const SendbirdAiChabotGetBotInput = zod.z.object({ bot_user_id: zod.z.string().describe("The unique user ID of the bot to retrieve.") }).describe("Request model for retrieving a specific bot by its user ID.");
|
|
5
5
|
const SendbirdAiChabotGetBot_BotSchema = zod.z.object({
|
|
6
|
-
name: zod.z.string().describe("Name of the bot."),
|
|
7
|
-
status: zod.z.string().describe("Current status of the bot."),
|
|
8
|
-
created_at: zod.z.number().int().describe("Timestamp when the bot was created in milliseconds."),
|
|
9
|
-
bot_user_id: zod.z.string().describe("Unique user ID of the bot."),
|
|
6
|
+
name: zod.z.string().describe("Name of the bot.").nullable(),
|
|
7
|
+
status: zod.z.string().describe("Current status of the bot.").nullable(),
|
|
8
|
+
created_at: zod.z.number().int().describe("Timestamp when the bot was created in milliseconds.").nullable(),
|
|
9
|
+
bot_user_id: zod.z.string().describe("Unique user ID of the bot.").nullable(),
|
|
10
10
|
profile_url: zod.z.string().describe("Profile image URL of the bot.").nullable().optional(),
|
|
11
11
|
show_member: zod.z.boolean().describe("Indicates if the bot is shown as a member.").nullable().optional(),
|
|
12
12
|
issue_status: zod.z.string().describe("Issue status if any.").nullable().optional(),
|
|
13
13
|
is_privacy_mode: zod.z.boolean().describe("Indicates if privacy mode is enabled for the bot.").nullable().optional(),
|
|
14
14
|
channel_invitation_preference: zod.z.string().describe("Channel invitation preference setting.").nullable().optional()
|
|
15
|
-
}).describe("Represents a Sendbird AI chatbot bot object.");
|
|
16
|
-
const SendbirdAiChabotGetBotOutput = zod.z.object({ bot: SendbirdAiChabotGetBot_BotSchema.nullable() }).describe("Response model containing the bot information.");
|
|
15
|
+
}).passthrough().describe("Represents a Sendbird AI chatbot bot object.");
|
|
16
|
+
const SendbirdAiChabotGetBotOutput = zod.z.object({ bot: SendbirdAiChabotGetBot_BotSchema.nullable() }).passthrough().describe("Response model containing the bot information.");
|
|
17
17
|
const sendbirdAiChabotGetBot = require_action.action("SENDBIRD_AI_CHABOT_GET_BOT", {
|
|
18
18
|
slug: "sendbird_ai_chabot-get-bot",
|
|
19
19
|
name: "Get Bot",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-bot.cjs","names":["z","action"],"sources":["../../src/actions/get-bot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdAiChabotGetBotInput
|
|
1
|
+
{"version":3,"file":"get-bot.cjs","names":["z","action"],"sources":["../../src/actions/get-bot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdAiChabotGetBotInput = z.object({\n bot_user_id: z.string().describe(\"The unique user ID of the bot to retrieve.\"),\n}).describe(\"Request model for retrieving a specific bot by its user ID.\");\nconst SendbirdAiChabotGetBot_BotSchema = z.object({\n name: z.string().describe(\"Name of the bot.\").nullable(),\n status: z.string().describe(\"Current status of the bot.\").nullable(),\n created_at: z.number().int().describe(\"Timestamp when the bot was created in milliseconds.\").nullable(),\n bot_user_id: z.string().describe(\"Unique user ID of the bot.\").nullable(),\n profile_url: z.string().describe(\"Profile image URL of the bot.\").nullable().optional(),\n show_member: z.boolean().describe(\"Indicates if the bot is shown as a member.\").nullable().optional(),\n issue_status: z.string().describe(\"Issue status if any.\").nullable().optional(),\n is_privacy_mode: z.boolean().describe(\"Indicates if privacy mode is enabled for the bot.\").nullable().optional(),\n channel_invitation_preference: z.string().describe(\"Channel invitation preference setting.\").nullable().optional(),\n}).passthrough().describe(\"Represents a Sendbird AI chatbot bot object.\");\nexport const SendbirdAiChabotGetBotOutput = z.object({\n bot: SendbirdAiChabotGetBot_BotSchema.nullable(),\n}).passthrough().describe(\"Response model containing the bot information.\");\n\nexport const sendbirdAiChabotGetBot = action(\"SENDBIRD_AI_CHABOT_GET_BOT\", {\n slug: \"sendbird_ai_chabot-get-bot\",\n name: \"Get Bot\",\n description: \"Tool to retrieve information on a specific bot by its user ID. Use when you need to fetch bot details before performing subsequent operations.\",\n input: SendbirdAiChabotGetBotInput,\n output: SendbirdAiChabotGetBotOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,EAC/E,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACnE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACtG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACxE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,+BAA+BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,KAAK,iCAAiC,SAAS,EACjD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,yBAAyBC,eAAAA,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-bot.d.ts
|
|
4
|
-
declare const SendbirdAiChabotGetBotInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SendbirdAiChabotGetBotInput: z.ZodObject<{
|
|
5
|
+
bot_user_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SendbirdAiChabotGetBotOutput: z.ZodObject<{
|
|
8
|
+
bot: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
name: z.ZodNullable<z.ZodString>;
|
|
10
|
+
status: z.ZodNullable<z.ZodString>;
|
|
11
|
+
created_at: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
bot_user_id: z.ZodNullable<z.ZodString>;
|
|
13
|
+
profile_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
show_member: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
15
|
+
issue_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
is_privacy_mode: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
17
|
+
channel_invitation_preference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
}, z.core.$loose>>;
|
|
19
|
+
}, z.core.$loose>;
|
|
20
|
+
declare const sendbirdAiChabotGetBot: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
21
|
+
bot_user_id: string;
|
|
22
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
23
|
//#endregion
|
|
8
24
|
export { sendbirdAiChabotGetBot };
|
|
9
25
|
//# sourceMappingURL=get-bot.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-bot.d.cts","names":[],"sources":["../../src/actions/get-bot.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"get-bot.d.cts","names":[],"sources":["../../src/actions/get-bot.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAc3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-bot.d.ts
|
|
4
|
-
declare const SendbirdAiChabotGetBotInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SendbirdAiChabotGetBotInput: z.ZodObject<{
|
|
5
|
+
bot_user_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const SendbirdAiChabotGetBotOutput: z.ZodObject<{
|
|
8
|
+
bot: z.ZodNullable<z.ZodObject<{
|
|
9
|
+
name: z.ZodNullable<z.ZodString>;
|
|
10
|
+
status: z.ZodNullable<z.ZodString>;
|
|
11
|
+
created_at: z.ZodNullable<z.ZodNumber>;
|
|
12
|
+
bot_user_id: z.ZodNullable<z.ZodString>;
|
|
13
|
+
profile_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
show_member: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
15
|
+
issue_status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
is_privacy_mode: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
17
|
+
channel_invitation_preference: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
}, z.core.$loose>>;
|
|
19
|
+
}, z.core.$loose>;
|
|
20
|
+
declare const sendbirdAiChabotGetBot: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
21
|
+
bot_user_id: string;
|
|
22
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
23
|
//#endregion
|
|
8
24
|
export { sendbirdAiChabotGetBot };
|
|
9
25
|
//# sourceMappingURL=get-bot.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-bot.d.mts","names":[],"sources":["../../src/actions/get-bot.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"get-bot.d.mts","names":[],"sources":["../../src/actions/get-bot.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAc3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAI5B,sBAAA,gCAAsB,wBAAA"}
|
package/dist/actions/get-bot.mjs
CHANGED
|
@@ -3,22 +3,22 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/get-bot.ts
|
|
4
4
|
const SendbirdAiChabotGetBotInput = z.object({ bot_user_id: z.string().describe("The unique user ID of the bot to retrieve.") }).describe("Request model for retrieving a specific bot by its user ID.");
|
|
5
5
|
const SendbirdAiChabotGetBot_BotSchema = z.object({
|
|
6
|
-
name: z.string().describe("Name of the bot."),
|
|
7
|
-
status: z.string().describe("Current status of the bot."),
|
|
8
|
-
created_at: z.number().int().describe("Timestamp when the bot was created in milliseconds."),
|
|
9
|
-
bot_user_id: z.string().describe("Unique user ID of the bot."),
|
|
6
|
+
name: z.string().describe("Name of the bot.").nullable(),
|
|
7
|
+
status: z.string().describe("Current status of the bot.").nullable(),
|
|
8
|
+
created_at: z.number().int().describe("Timestamp when the bot was created in milliseconds.").nullable(),
|
|
9
|
+
bot_user_id: z.string().describe("Unique user ID of the bot.").nullable(),
|
|
10
10
|
profile_url: z.string().describe("Profile image URL of the bot.").nullable().optional(),
|
|
11
11
|
show_member: z.boolean().describe("Indicates if the bot is shown as a member.").nullable().optional(),
|
|
12
12
|
issue_status: z.string().describe("Issue status if any.").nullable().optional(),
|
|
13
13
|
is_privacy_mode: z.boolean().describe("Indicates if privacy mode is enabled for the bot.").nullable().optional(),
|
|
14
14
|
channel_invitation_preference: z.string().describe("Channel invitation preference setting.").nullable().optional()
|
|
15
|
-
}).describe("Represents a Sendbird AI chatbot bot object.");
|
|
15
|
+
}).passthrough().describe("Represents a Sendbird AI chatbot bot object.");
|
|
16
16
|
const sendbirdAiChabotGetBot = action("SENDBIRD_AI_CHABOT_GET_BOT", {
|
|
17
17
|
slug: "sendbird_ai_chabot-get-bot",
|
|
18
18
|
name: "Get Bot",
|
|
19
19
|
description: "Tool to retrieve information on a specific bot by its user ID. Use when you need to fetch bot details before performing subsequent operations.",
|
|
20
20
|
input: SendbirdAiChabotGetBotInput,
|
|
21
|
-
output: z.object({ bot: SendbirdAiChabotGetBot_BotSchema.nullable() }).describe("Response model containing the bot information.")
|
|
21
|
+
output: z.object({ bot: SendbirdAiChabotGetBot_BotSchema.nullable() }).passthrough().describe("Response model containing the bot information.")
|
|
22
22
|
});
|
|
23
23
|
//#endregion
|
|
24
24
|
export { sendbirdAiChabotGetBot };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-bot.mjs","names":[],"sources":["../../src/actions/get-bot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdAiChabotGetBotInput
|
|
1
|
+
{"version":3,"file":"get-bot.mjs","names":[],"sources":["../../src/actions/get-bot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdAiChabotGetBotInput = z.object({\n bot_user_id: z.string().describe(\"The unique user ID of the bot to retrieve.\"),\n}).describe(\"Request model for retrieving a specific bot by its user ID.\");\nconst SendbirdAiChabotGetBot_BotSchema = z.object({\n name: z.string().describe(\"Name of the bot.\").nullable(),\n status: z.string().describe(\"Current status of the bot.\").nullable(),\n created_at: z.number().int().describe(\"Timestamp when the bot was created in milliseconds.\").nullable(),\n bot_user_id: z.string().describe(\"Unique user ID of the bot.\").nullable(),\n profile_url: z.string().describe(\"Profile image URL of the bot.\").nullable().optional(),\n show_member: z.boolean().describe(\"Indicates if the bot is shown as a member.\").nullable().optional(),\n issue_status: z.string().describe(\"Issue status if any.\").nullable().optional(),\n is_privacy_mode: z.boolean().describe(\"Indicates if privacy mode is enabled for the bot.\").nullable().optional(),\n channel_invitation_preference: z.string().describe(\"Channel invitation preference setting.\").nullable().optional(),\n}).passthrough().describe(\"Represents a Sendbird AI chatbot bot object.\");\nexport const SendbirdAiChabotGetBotOutput = z.object({\n bot: SendbirdAiChabotGetBot_BotSchema.nullable(),\n}).passthrough().describe(\"Response model containing the bot information.\");\n\nexport const sendbirdAiChabotGetBot = action(\"SENDBIRD_AI_CHABOT_GET_BOT\", {\n slug: \"sendbird_ai_chabot-get-bot\",\n name: \"Get Bot\",\n description: \"Tool to retrieve information on a specific bot by its user ID. Use when you need to fetch bot details before performing subsequent operations.\",\n input: SendbirdAiChabotGetBotInput,\n output: SendbirdAiChabotGetBotOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO,EAClD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,EAC/E,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,mCAAmC,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACnE,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACtG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACxE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,+BAA+B,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAKxE,MAAa,yBAAyB,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT0C,EAAE,OAAO,EACnD,KAAK,iCAAiC,SAAS,EACjD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
|
|
@@ -9,11 +9,11 @@ const SendbirdAiChabotListBotsInput = zod.z.object({
|
|
|
9
9
|
const SendbirdAiChabotListBots_BotInfoSchema = zod.z.object({
|
|
10
10
|
bot_type: zod.z.string().describe("Type of the bot (e.g., 'AI', 'DEFAULT', 'marketer').").nullable().optional(),
|
|
11
11
|
bot_token: zod.z.string().describe("Authentication token for the bot.").nullable().optional(),
|
|
12
|
-
bot_userid: zod.z.string().describe("The user ID for the bot."),
|
|
12
|
+
bot_userid: zod.z.string().describe("The user ID for the bot.").nullable(),
|
|
13
13
|
bot_metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom metadata object for the bot.").nullable().optional(),
|
|
14
|
-
bot_nickname: zod.z.string().describe("Nickname (display name) of the bot."),
|
|
14
|
+
bot_nickname: zod.z.string().describe("Nickname (display name) of the bot.").nullable(),
|
|
15
15
|
bot_profile_url: zod.z.string().describe("URL for the bot's profile image.").nullable().optional()
|
|
16
|
-
}).describe("Inner bot information object.");
|
|
16
|
+
}).passthrough().describe("Inner bot information object.");
|
|
17
17
|
const SendbirdAiChabotListBots_BotSchema = zod.z.object({
|
|
18
18
|
bot: SendbirdAiChabotListBots_BotInfoSchema.nullable(),
|
|
19
19
|
show_member: zod.z.boolean().describe("Whether the bot is shown as a channel member.").nullable().optional(),
|
|
@@ -21,11 +21,11 @@ const SendbirdAiChabotListBots_BotSchema = zod.z.object({
|
|
|
21
21
|
bot_callback_url: zod.z.string().describe("Callback URL of the bot.").nullable().optional(),
|
|
22
22
|
enable_mark_as_read: zod.z.boolean().describe("Whether the bot marks messages as read automatically.").nullable().optional(),
|
|
23
23
|
channel_invitation_preference: zod.z.number().int().describe("Channel invitation preference setting.").nullable().optional()
|
|
24
|
-
}).describe("Bot object returned in the list bots response.");
|
|
24
|
+
}).passthrough().describe("Bot object returned in the list bots response.");
|
|
25
25
|
const SendbirdAiChabotListBotsOutput = zod.z.object({
|
|
26
26
|
bots: zod.z.array(SendbirdAiChabotListBots_BotSchema).describe("List of bot objects."),
|
|
27
27
|
next: zod.z.string().describe("Pagination token for the next page; null if no further pages.").nullable().optional()
|
|
28
|
-
});
|
|
28
|
+
}).passthrough();
|
|
29
29
|
const sendbirdAiChabotListBots = require_action.action("SENDBIRD_AI_CHABOT_LIST_BOTS", {
|
|
30
30
|
slug: "sendbird_ai_chabot-list-bots",
|
|
31
31
|
name: "List Bots",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-bots.cjs","names":["z","action"],"sources":["../../src/actions/list-bots.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdAiChabotListBotsInput
|
|
1
|
+
{"version":3,"file":"list-bots.cjs","names":["z","action"],"sources":["../../src/actions/list-bots.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdAiChabotListBotsInput = z.object({\n limit: z.number().int().describe(\"Number of results to return per page (1–100). Defaults to 10 if omitted.\").optional(),\n token: z.string().describe(\"Pagination token for a paginated result.\").optional(),\n bot_id: z.string().describe(\"Filter results by a specific bot ID.\").optional(),\n});\nconst SendbirdAiChabotListBots_BotInfoSchema = z.object({\n bot_type: z.string().describe(\"Type of the bot (e.g., 'AI', 'DEFAULT', 'marketer').\").nullable().optional(),\n bot_token: z.string().describe(\"Authentication token for the bot.\").nullable().optional(),\n bot_userid: z.string().describe(\"The user ID for the bot.\").nullable(),\n bot_metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata object for the bot.\").nullable().optional(),\n bot_nickname: z.string().describe(\"Nickname (display name) of the bot.\").nullable(),\n bot_profile_url: z.string().describe(\"URL for the bot's profile image.\").nullable().optional(),\n}).passthrough().describe(\"Inner bot information object.\");\nconst SendbirdAiChabotListBots_BotSchema = z.object({\n bot: SendbirdAiChabotListBots_BotInfoSchema.nullable(),\n show_member: z.boolean().describe(\"Whether the bot is shown as a channel member.\").nullable().optional(),\n is_privacy_mode: z.boolean().describe(\"Whether the bot is in privacy mode.\").nullable().optional(),\n bot_callback_url: z.string().describe(\"Callback URL of the bot.\").nullable().optional(),\n enable_mark_as_read: z.boolean().describe(\"Whether the bot marks messages as read automatically.\").nullable().optional(),\n channel_invitation_preference: z.number().int().describe(\"Channel invitation preference setting.\").nullable().optional(),\n}).passthrough().describe(\"Bot object returned in the list bots response.\");\nexport const SendbirdAiChabotListBotsOutput = z.object({\n bots: z.array(SendbirdAiChabotListBots_BotSchema).describe(\"List of bot objects.\"),\n next: z.string().describe(\"Pagination token for the next page; null if no further pages.\").nullable().optional(),\n}).passthrough();\n\nexport const sendbirdAiChabotListBots = action(\"SENDBIRD_AI_CHABOT_LIST_BOTS\", {\n slug: \"sendbird_ai_chabot-list-bots\",\n name: \"List Bots\",\n description: \"Tool to list all bots in the Sendbird application. Use when you need to fetch bot details with optional filters and pagination.\",\n input: SendbirdAiChabotListBotsInput,\n output: SendbirdAiChabotListBotsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACtH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAChF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AAC/E,CAAC;AACD,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACrE,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAClF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+BAA+B;AACzD,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,KAAK,uCAAuC,SAAS;CACrD,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,+BAA+BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAC1E,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,sBAAsB;CACjF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjH,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,2BAA2BC,eAAAA,OAAO,gCAAgC;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,34 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-bots.d.ts
|
|
4
|
-
declare const SendbirdAiChabotListBotsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SendbirdAiChabotListBotsInput: z.ZodObject<{
|
|
5
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
token: z.ZodOptional<z.ZodString>;
|
|
7
|
+
bot_id: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const SendbirdAiChabotListBotsOutput: z.ZodObject<{
|
|
10
|
+
bots: z.ZodArray<z.ZodObject<{
|
|
11
|
+
bot: z.ZodNullable<z.ZodObject<{
|
|
12
|
+
bot_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
bot_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
bot_userid: z.ZodNullable<z.ZodString>;
|
|
15
|
+
bot_metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
16
|
+
bot_nickname: z.ZodNullable<z.ZodString>;
|
|
17
|
+
bot_profile_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
}, z.core.$loose>>;
|
|
19
|
+
show_member: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
20
|
+
is_privacy_mode: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
21
|
+
bot_callback_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
enable_mark_as_read: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
23
|
+
channel_invitation_preference: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
|
+
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
|
+
declare const sendbirdAiChabotListBots: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
|
+
limit?: number | undefined;
|
|
29
|
+
token?: string | undefined;
|
|
30
|
+
bot_id?: string | undefined;
|
|
31
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
32
|
//#endregion
|
|
8
33
|
export { sendbirdAiChabotListBots };
|
|
9
34
|
//# sourceMappingURL=list-bots.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-bots.d.cts","names":[],"sources":["../../src/actions/list-bots.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"list-bots.d.cts","names":[],"sources":["../../src/actions/list-bots.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;cAqB7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAK9B,wBAAA,gCAAwB,wBAAA"}
|
|
@@ -1,9 +1,34 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-bots.d.ts
|
|
4
|
-
declare const SendbirdAiChabotListBotsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SendbirdAiChabotListBotsInput: z.ZodObject<{
|
|
5
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
token: z.ZodOptional<z.ZodString>;
|
|
7
|
+
bot_id: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const SendbirdAiChabotListBotsOutput: z.ZodObject<{
|
|
10
|
+
bots: z.ZodArray<z.ZodObject<{
|
|
11
|
+
bot: z.ZodNullable<z.ZodObject<{
|
|
12
|
+
bot_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
bot_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
bot_userid: z.ZodNullable<z.ZodString>;
|
|
15
|
+
bot_metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
16
|
+
bot_nickname: z.ZodNullable<z.ZodString>;
|
|
17
|
+
bot_profile_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
}, z.core.$loose>>;
|
|
19
|
+
show_member: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
20
|
+
is_privacy_mode: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
21
|
+
bot_callback_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
enable_mark_as_read: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
23
|
+
channel_invitation_preference: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
|
+
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
}, z.core.$loose>;
|
|
27
|
+
declare const sendbirdAiChabotListBots: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
|
+
limit?: number | undefined;
|
|
29
|
+
token?: string | undefined;
|
|
30
|
+
bot_id?: string | undefined;
|
|
31
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
32
|
//#endregion
|
|
8
33
|
export { sendbirdAiChabotListBots };
|
|
9
34
|
//# sourceMappingURL=list-bots.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-bots.d.mts","names":[],"sources":["../../src/actions/list-bots.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"list-bots.d.mts","names":[],"sources":["../../src/actions/list-bots.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;cAqB7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAK9B,wBAAA,gCAAwB,wBAAA"}
|
|
@@ -9,11 +9,11 @@ const SendbirdAiChabotListBotsInput = z.object({
|
|
|
9
9
|
const SendbirdAiChabotListBots_BotInfoSchema = z.object({
|
|
10
10
|
bot_type: z.string().describe("Type of the bot (e.g., 'AI', 'DEFAULT', 'marketer').").nullable().optional(),
|
|
11
11
|
bot_token: z.string().describe("Authentication token for the bot.").nullable().optional(),
|
|
12
|
-
bot_userid: z.string().describe("The user ID for the bot."),
|
|
12
|
+
bot_userid: z.string().describe("The user ID for the bot.").nullable(),
|
|
13
13
|
bot_metadata: z.record(z.string(), z.unknown()).describe("Custom metadata object for the bot.").nullable().optional(),
|
|
14
|
-
bot_nickname: z.string().describe("Nickname (display name) of the bot."),
|
|
14
|
+
bot_nickname: z.string().describe("Nickname (display name) of the bot.").nullable(),
|
|
15
15
|
bot_profile_url: z.string().describe("URL for the bot's profile image.").nullable().optional()
|
|
16
|
-
}).describe("Inner bot information object.");
|
|
16
|
+
}).passthrough().describe("Inner bot information object.");
|
|
17
17
|
const SendbirdAiChabotListBots_BotSchema = z.object({
|
|
18
18
|
bot: SendbirdAiChabotListBots_BotInfoSchema.nullable(),
|
|
19
19
|
show_member: z.boolean().describe("Whether the bot is shown as a channel member.").nullable().optional(),
|
|
@@ -21,7 +21,7 @@ const SendbirdAiChabotListBots_BotSchema = z.object({
|
|
|
21
21
|
bot_callback_url: z.string().describe("Callback URL of the bot.").nullable().optional(),
|
|
22
22
|
enable_mark_as_read: z.boolean().describe("Whether the bot marks messages as read automatically.").nullable().optional(),
|
|
23
23
|
channel_invitation_preference: z.number().int().describe("Channel invitation preference setting.").nullable().optional()
|
|
24
|
-
}).describe("Bot object returned in the list bots response.");
|
|
24
|
+
}).passthrough().describe("Bot object returned in the list bots response.");
|
|
25
25
|
const sendbirdAiChabotListBots = action("SENDBIRD_AI_CHABOT_LIST_BOTS", {
|
|
26
26
|
slug: "sendbird_ai_chabot-list-bots",
|
|
27
27
|
name: "List Bots",
|
|
@@ -30,7 +30,7 @@ const sendbirdAiChabotListBots = action("SENDBIRD_AI_CHABOT_LIST_BOTS", {
|
|
|
30
30
|
output: z.object({
|
|
31
31
|
bots: z.array(SendbirdAiChabotListBots_BotSchema).describe("List of bot objects."),
|
|
32
32
|
next: z.string().describe("Pagination token for the next page; null if no further pages.").nullable().optional()
|
|
33
|
-
})
|
|
33
|
+
}).passthrough()
|
|
34
34
|
});
|
|
35
35
|
//#endregion
|
|
36
36
|
export { sendbirdAiChabotListBots };
|