@keystrokehq/sendbird 0.1.5 → 0.1.6
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/add-members-group-channel.cjs +1 -0
- package/dist/actions/add-members-group-channel.cjs.map +1 -1
- package/dist/actions/add-members-group-channel.d.cts +3 -20
- package/dist/actions/add-members-group-channel.d.cts.map +1 -1
- package/dist/actions/add-members-group-channel.d.mts +3 -20
- package/dist/actions/add-members-group-channel.d.mts.map +1 -1
- package/dist/actions/add-members-group-channel.mjs +1 -0
- package/dist/actions/add-members-group-channel.mjs.map +1 -1
- package/dist/actions/ban-user-from-group-channel.cjs +1 -0
- package/dist/actions/ban-user-from-group-channel.cjs.map +1 -1
- package/dist/actions/ban-user-from-group-channel.d.cts +3 -21
- package/dist/actions/ban-user-from-group-channel.d.cts.map +1 -1
- package/dist/actions/ban-user-from-group-channel.d.mts +3 -21
- package/dist/actions/ban-user-from-group-channel.d.mts.map +1 -1
- package/dist/actions/ban-user-from-group-channel.mjs +1 -0
- package/dist/actions/ban-user-from-group-channel.mjs.map +1 -1
- package/dist/actions/create-channel.cjs +1 -0
- package/dist/actions/create-channel.cjs.map +1 -1
- package/dist/actions/create-channel.d.cts +3 -34
- package/dist/actions/create-channel.d.cts.map +1 -1
- package/dist/actions/create-channel.d.mts +3 -34
- package/dist/actions/create-channel.d.mts.map +1 -1
- package/dist/actions/create-channel.mjs +1 -0
- package/dist/actions/create-channel.mjs.map +1 -1
- package/dist/actions/create-user.cjs +1 -0
- package/dist/actions/create-user.cjs.map +1 -1
- package/dist/actions/create-user.d.cts +3 -27
- package/dist/actions/create-user.d.cts.map +1 -1
- package/dist/actions/create-user.d.mts +3 -27
- package/dist/actions/create-user.d.mts.map +1 -1
- package/dist/actions/create-user.mjs +1 -0
- package/dist/actions/create-user.mjs.map +1 -1
- package/dist/actions/delete-channel.cjs +1 -0
- package/dist/actions/delete-channel.cjs.map +1 -1
- package/dist/actions/delete-channel.d.cts +3 -17
- package/dist/actions/delete-channel.d.cts.map +1 -1
- package/dist/actions/delete-channel.d.mts +3 -17
- package/dist/actions/delete-channel.d.mts.map +1 -1
- package/dist/actions/delete-channel.mjs +1 -0
- package/dist/actions/delete-channel.mjs.map +1 -1
- package/dist/actions/delete-message.cjs +1 -0
- package/dist/actions/delete-message.cjs.map +1 -1
- package/dist/actions/delete-message.d.cts +3 -18
- package/dist/actions/delete-message.d.cts.map +1 -1
- package/dist/actions/delete-message.d.mts +3 -18
- package/dist/actions/delete-message.d.mts.map +1 -1
- package/dist/actions/delete-message.mjs +1 -0
- package/dist/actions/delete-message.mjs.map +1 -1
- package/dist/actions/delete-user.cjs +1 -0
- package/dist/actions/delete-user.cjs.map +1 -1
- package/dist/actions/delete-user.d.cts +3 -18
- package/dist/actions/delete-user.d.cts.map +1 -1
- package/dist/actions/delete-user.d.mts +3 -18
- package/dist/actions/delete-user.d.mts.map +1 -1
- package/dist/actions/delete-user.mjs +1 -0
- package/dist/actions/delete-user.mjs.map +1 -1
- package/dist/actions/get-count-preference-of-channel.cjs +1 -0
- package/dist/actions/get-count-preference-of-channel.cjs.map +1 -1
- package/dist/actions/get-count-preference-of-channel.d.cts +4 -19
- package/dist/actions/get-count-preference-of-channel.d.cts.map +1 -1
- package/dist/actions/get-count-preference-of-channel.d.mts +4 -19
- package/dist/actions/get-count-preference-of-channel.d.mts.map +1 -1
- package/dist/actions/get-count-preference-of-channel.mjs +1 -0
- package/dist/actions/get-count-preference-of-channel.mjs.map +1 -1
- package/dist/actions/get-number-of-channels-by-join-status.cjs +1 -0
- package/dist/actions/get-number-of-channels-by-join-status.cjs.map +1 -1
- package/dist/actions/get-number-of-channels-by-join-status.d.cts +3 -21
- package/dist/actions/get-number-of-channels-by-join-status.d.cts.map +1 -1
- package/dist/actions/get-number-of-channels-by-join-status.d.mts +3 -21
- package/dist/actions/get-number-of-channels-by-join-status.d.mts.map +1 -1
- package/dist/actions/get-number-of-channels-by-join-status.mjs +1 -0
- package/dist/actions/get-number-of-channels-by-join-status.mjs.map +1 -1
- package/dist/actions/get-number-of-unread-items.cjs +1 -0
- package/dist/actions/get-number-of-unread-items.cjs.map +1 -1
- package/dist/actions/get-number-of-unread-items.d.cts +3 -19
- package/dist/actions/get-number-of-unread-items.d.cts.map +1 -1
- package/dist/actions/get-number-of-unread-items.d.mts +3 -19
- package/dist/actions/get-number-of-unread-items.d.mts.map +1 -1
- package/dist/actions/get-number-of-unread-items.mjs +1 -0
- package/dist/actions/get-number-of-unread-items.mjs.map +1 -1
- package/dist/actions/issue-session-token.cjs +1 -0
- package/dist/actions/issue-session-token.cjs.map +1 -1
- package/dist/actions/issue-session-token.d.cts +3 -18
- package/dist/actions/issue-session-token.d.cts.map +1 -1
- package/dist/actions/issue-session-token.d.mts +3 -18
- package/dist/actions/issue-session-token.d.mts.map +1 -1
- package/dist/actions/issue-session-token.mjs +1 -0
- package/dist/actions/issue-session-token.mjs.map +1 -1
- package/dist/actions/leave-group-channels.cjs +1 -0
- package/dist/actions/leave-group-channels.cjs.map +1 -1
- package/dist/actions/leave-group-channels.d.cts +3 -20
- package/dist/actions/leave-group-channels.d.cts.map +1 -1
- package/dist/actions/leave-group-channels.d.mts +3 -20
- package/dist/actions/leave-group-channels.d.mts.map +1 -1
- package/dist/actions/leave-group-channels.mjs +1 -0
- package/dist/actions/leave-group-channels.mjs.map +1 -1
- package/dist/actions/list-banned-members.cjs +1 -0
- package/dist/actions/list-banned-members.cjs.map +1 -1
- package/dist/actions/list-banned-members.d.cts +3 -19
- package/dist/actions/list-banned-members.d.cts.map +1 -1
- package/dist/actions/list-banned-members.d.mts +3 -19
- package/dist/actions/list-banned-members.d.mts.map +1 -1
- package/dist/actions/list-banned-members.mjs +1 -0
- package/dist/actions/list-banned-members.mjs.map +1 -1
- package/dist/actions/list-group-channel-messages.cjs +1 -0
- package/dist/actions/list-group-channel-messages.cjs.map +1 -1
- package/dist/actions/list-group-channel-messages.d.cts +3 -35
- package/dist/actions/list-group-channel-messages.d.cts.map +1 -1
- package/dist/actions/list-group-channel-messages.d.mts +3 -35
- package/dist/actions/list-group-channel-messages.d.mts.map +1 -1
- package/dist/actions/list-group-channel-messages.mjs +1 -0
- package/dist/actions/list-group-channel-messages.mjs.map +1 -1
- package/dist/actions/list-group-channels.cjs +1 -0
- package/dist/actions/list-group-channels.cjs.map +1 -1
- package/dist/actions/list-group-channels.d.cts +3 -37
- package/dist/actions/list-group-channels.d.cts.map +1 -1
- package/dist/actions/list-group-channels.d.mts +3 -37
- package/dist/actions/list-group-channels.d.mts.map +1 -1
- package/dist/actions/list-group-channels.mjs +1 -0
- package/dist/actions/list-group-channels.mjs.map +1 -1
- package/dist/actions/list-members-group-channel.cjs +1 -0
- package/dist/actions/list-members-group-channel.cjs.map +1 -1
- package/dist/actions/list-members-group-channel.d.cts +3 -25
- package/dist/actions/list-members-group-channel.d.cts.map +1 -1
- package/dist/actions/list-members-group-channel.d.mts +3 -25
- package/dist/actions/list-members-group-channel.d.mts.map +1 -1
- package/dist/actions/list-members-group-channel.mjs +1 -0
- package/dist/actions/list-members-group-channel.mjs.map +1 -1
- package/dist/actions/list-operators-custom-channel-type.cjs +1 -0
- package/dist/actions/list-operators-custom-channel-type.cjs.map +1 -1
- package/dist/actions/list-operators-custom-channel-type.d.cts +3 -19
- package/dist/actions/list-operators-custom-channel-type.d.cts.map +1 -1
- package/dist/actions/list-operators-custom-channel-type.d.mts +3 -19
- package/dist/actions/list-operators-custom-channel-type.d.mts.map +1 -1
- package/dist/actions/list-operators-custom-channel-type.mjs +1 -0
- package/dist/actions/list-operators-custom-channel-type.mjs.map +1 -1
- package/dist/actions/list-operators-group-channel.cjs +1 -0
- package/dist/actions/list-operators-group-channel.cjs.map +1 -1
- package/dist/actions/list-operators-group-channel.d.cts +3 -19
- package/dist/actions/list-operators-group-channel.d.cts.map +1 -1
- package/dist/actions/list-operators-group-channel.d.mts +3 -19
- package/dist/actions/list-operators-group-channel.d.mts.map +1 -1
- package/dist/actions/list-operators-group-channel.mjs +1 -0
- package/dist/actions/list-operators-group-channel.mjs.map +1 -1
- package/dist/actions/list-operators-open-channel.cjs +1 -0
- package/dist/actions/list-operators-open-channel.cjs.map +1 -1
- package/dist/actions/list-operators-open-channel.d.cts +3 -19
- package/dist/actions/list-operators-open-channel.d.cts.map +1 -1
- package/dist/actions/list-operators-open-channel.d.mts +3 -19
- package/dist/actions/list-operators-open-channel.d.mts.map +1 -1
- package/dist/actions/list-operators-open-channel.mjs +1 -0
- package/dist/actions/list-operators-open-channel.mjs.map +1 -1
- package/dist/actions/list-users.cjs +1 -0
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +3 -27
- package/dist/actions/list-users.d.cts.map +1 -1
- package/dist/actions/list-users.d.mts +3 -27
- package/dist/actions/list-users.d.mts.map +1 -1
- package/dist/actions/list-users.mjs +1 -0
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/mark-all-user-messages-as-read.cjs +1 -0
- package/dist/actions/mark-all-user-messages-as-read.cjs.map +1 -1
- package/dist/actions/mark-all-user-messages-as-read.d.cts +3 -17
- package/dist/actions/mark-all-user-messages-as-read.d.cts.map +1 -1
- package/dist/actions/mark-all-user-messages-as-read.d.mts +3 -17
- package/dist/actions/mark-all-user-messages-as-read.d.mts.map +1 -1
- package/dist/actions/mark-all-user-messages-as-read.mjs +1 -0
- package/dist/actions/mark-all-user-messages-as-read.mjs.map +1 -1
- package/dist/actions/mute-user.cjs +1 -0
- package/dist/actions/mute-user.cjs.map +1 -1
- package/dist/actions/mute-user.d.cts +3 -20
- package/dist/actions/mute-user.d.cts.map +1 -1
- package/dist/actions/mute-user.d.mts +3 -20
- package/dist/actions/mute-user.d.mts.map +1 -1
- package/dist/actions/mute-user.mjs +1 -0
- package/dist/actions/mute-user.mjs.map +1 -1
- package/dist/actions/register-operators-custom-channel-type.cjs +1 -0
- package/dist/actions/register-operators-custom-channel-type.cjs.map +1 -1
- package/dist/actions/register-operators-custom-channel-type.d.cts +3 -18
- package/dist/actions/register-operators-custom-channel-type.d.cts.map +1 -1
- package/dist/actions/register-operators-custom-channel-type.d.mts +3 -18
- package/dist/actions/register-operators-custom-channel-type.d.mts.map +1 -1
- package/dist/actions/register-operators-custom-channel-type.mjs +1 -0
- package/dist/actions/register-operators-custom-channel-type.mjs.map +1 -1
- package/dist/actions/register-operators-group-channel.cjs +1 -0
- package/dist/actions/register-operators-group-channel.cjs.map +1 -1
- package/dist/actions/register-operators-group-channel.d.cts +3 -18
- package/dist/actions/register-operators-group-channel.d.cts.map +1 -1
- package/dist/actions/register-operators-group-channel.d.mts +3 -18
- package/dist/actions/register-operators-group-channel.d.mts.map +1 -1
- package/dist/actions/register-operators-group-channel.mjs +1 -0
- package/dist/actions/register-operators-group-channel.mjs.map +1 -1
- package/dist/actions/register-operators-open-channel.cjs +1 -0
- package/dist/actions/register-operators-open-channel.cjs.map +1 -1
- package/dist/actions/register-operators-open-channel.d.cts +3 -18
- package/dist/actions/register-operators-open-channel.d.cts.map +1 -1
- package/dist/actions/register-operators-open-channel.d.mts +3 -18
- package/dist/actions/register-operators-open-channel.d.mts.map +1 -1
- package/dist/actions/register-operators-open-channel.mjs +1 -0
- package/dist/actions/register-operators-open-channel.mjs.map +1 -1
- package/dist/actions/revoke-all-session-tokens.cjs +1 -0
- package/dist/actions/revoke-all-session-tokens.cjs.map +1 -1
- package/dist/actions/revoke-all-session-tokens.d.cts +3 -17
- package/dist/actions/revoke-all-session-tokens.d.cts.map +1 -1
- package/dist/actions/revoke-all-session-tokens.d.mts +3 -17
- package/dist/actions/revoke-all-session-tokens.d.mts.map +1 -1
- package/dist/actions/revoke-all-session-tokens.mjs +1 -0
- package/dist/actions/revoke-all-session-tokens.mjs.map +1 -1
- package/dist/actions/send-message.cjs +1 -0
- package/dist/actions/send-message.cjs.map +1 -1
- package/dist/actions/send-message.d.cts +3 -36
- package/dist/actions/send-message.d.cts.map +1 -1
- package/dist/actions/send-message.d.mts +3 -36
- package/dist/actions/send-message.d.mts.map +1 -1
- package/dist/actions/send-message.mjs +1 -0
- package/dist/actions/send-message.mjs.map +1 -1
- package/dist/actions/unban-user.cjs +1 -0
- package/dist/actions/unban-user.cjs.map +1 -1
- package/dist/actions/unban-user.d.cts +3 -18
- package/dist/actions/unban-user.d.cts.map +1 -1
- package/dist/actions/unban-user.d.mts +3 -18
- package/dist/actions/unban-user.d.mts.map +1 -1
- package/dist/actions/unban-user.mjs +1 -0
- package/dist/actions/unban-user.mjs.map +1 -1
- package/dist/actions/unmute-user.cjs +1 -0
- package/dist/actions/unmute-user.cjs.map +1 -1
- package/dist/actions/unmute-user.d.cts +3 -18
- package/dist/actions/unmute-user.d.cts.map +1 -1
- package/dist/actions/unmute-user.d.mts +3 -18
- package/dist/actions/unmute-user.d.mts.map +1 -1
- package/dist/actions/unmute-user.mjs +1 -0
- package/dist/actions/unmute-user.mjs.map +1 -1
- package/dist/actions/unregister-operators-custom-channel-type.cjs +1 -0
- package/dist/actions/unregister-operators-custom-channel-type.cjs.map +1 -1
- package/dist/actions/unregister-operators-custom-channel-type.d.cts +3 -18
- package/dist/actions/unregister-operators-custom-channel-type.d.cts.map +1 -1
- package/dist/actions/unregister-operators-custom-channel-type.d.mts +3 -18
- package/dist/actions/unregister-operators-custom-channel-type.d.mts.map +1 -1
- package/dist/actions/unregister-operators-custom-channel-type.mjs +1 -0
- package/dist/actions/unregister-operators-custom-channel-type.mjs.map +1 -1
- package/dist/actions/update-count-preference-of-channel.cjs +1 -0
- package/dist/actions/update-count-preference-of-channel.cjs.map +1 -1
- package/dist/actions/update-count-preference-of-channel.d.cts +3 -19
- package/dist/actions/update-count-preference-of-channel.d.cts.map +1 -1
- package/dist/actions/update-count-preference-of-channel.d.mts +3 -19
- package/dist/actions/update-count-preference-of-channel.d.mts.map +1 -1
- package/dist/actions/update-count-preference-of-channel.mjs +1 -0
- package/dist/actions/update-count-preference-of-channel.mjs.map +1 -1
- package/dist/actions/update-group-channel.cjs +1 -0
- package/dist/actions/update-group-channel.cjs.map +1 -1
- package/dist/actions/update-group-channel.d.cts +3 -28
- package/dist/actions/update-group-channel.d.cts.map +1 -1
- package/dist/actions/update-group-channel.d.mts +3 -28
- package/dist/actions/update-group-channel.d.mts.map +1 -1
- package/dist/actions/update-group-channel.mjs +1 -0
- package/dist/actions/update-group-channel.mjs.map +1 -1
- package/dist/actions/update-message.cjs +1 -0
- package/dist/actions/update-message.cjs.map +1 -1
- package/dist/actions/update-message.d.cts +3 -30
- package/dist/actions/update-message.d.cts.map +1 -1
- package/dist/actions/update-message.d.mts +3 -30
- package/dist/actions/update-message.d.mts.map +1 -1
- package/dist/actions/update-message.mjs +1 -0
- package/dist/actions/update-message.mjs.map +1 -1
- package/dist/actions/update-user.cjs +1 -0
- package/dist/actions/update-user.cjs.map +1 -1
- package/dist/actions/update-user.d.cts +3 -23
- package/dist/actions/update-user.d.cts.map +1 -1
- package/dist/actions/update-user.d.mts +3 -23
- package/dist/actions/update-user.d.mts.map +1 -1
- package/dist/actions/update-user.mjs +1 -0
- package/dist/actions/update-user.mjs.map +1 -1
- package/dist/actions/view-group-channel.cjs +1 -0
- package/dist/actions/view-group-channel.cjs.map +1 -1
- package/dist/actions/view-group-channel.d.cts +3 -22
- package/dist/actions/view-group-channel.d.cts.map +1 -1
- package/dist/actions/view-group-channel.d.mts +3 -22
- package/dist/actions/view-group-channel.d.mts.map +1 -1
- package/dist/actions/view-group-channel.mjs +1 -0
- package/dist/actions/view-group-channel.mjs.map +1 -1
- package/dist/actions/view-message.cjs +1 -0
- package/dist/actions/view-message.cjs.map +1 -1
- package/dist/actions/view-message.d.cts +3 -19
- package/dist/actions/view-message.d.cts.map +1 -1
- package/dist/actions/view-message.d.mts +3 -19
- package/dist/actions/view-message.d.mts.map +1 -1
- package/dist/actions/view-message.mjs +1 -0
- package/dist/actions/view-message.mjs.map +1 -1
- package/dist/actions/view-user.cjs +1 -0
- package/dist/actions/view-user.cjs.map +1 -1
- package/dist/actions/view-user.d.cts +3 -17
- package/dist/actions/view-user.d.cts.map +1 -1
- package/dist/actions/view-user.d.mts +3 -17
- package/dist/actions/view-user.d.mts.map +1 -1
- package/dist/actions/view-user.mjs +1 -0
- package/dist/actions/view-user.mjs.map +1 -1
- package/dist/app.cjs +5 -4
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["sendbird","executeSendbirdTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { sendbird } from \"./app\";\nimport { executeSendbirdTool } 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:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["sendbird","executeSendbirdTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { sendbird } from \"./app\";\nimport { executeSendbirdTool } 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, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof sendbird.credential> {\n return sendbird.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSendbirdTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOwD;CACxD,OAAOA,YAAAA,SAAS,OAAO;EACrB,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,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;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 { sendbird } from \"./app\";\nimport { executeSendbirdTool } 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:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { sendbird } from \"./app\";\nimport { executeSendbirdTool } 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, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof sendbird.credential> {\n return sendbird.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSendbirdTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOwD;CACxD,OAAO,SAAS,OAAO;EACrB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,oBAAoB,MAAM,KAAgC,CAAC;EAC3F;CACF,CAAC;AACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-members-group-channel.cjs","names":["z","action"],"sources":["../../src/actions/add-members-group-channel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdAddMembersGroupChannelInput = z.object({\n seconds: z.number().int().describe(\"Duration in seconds to hide previous messages. Required if hide_existing_messages is true.\").optional(),\n user_ids: z.array(z.string()).describe(\"List of User IDs to add to the channel.\"),\n channel_url: z.string().describe(\"URL-encoded identifier of the target group channel.\"),\n hide_existing_messages: z.boolean().describe(\"Whether to hide previous messages for new members.\").optional(),\n}).describe(\"Request model for adding members to a group channel.\");\nconst SendbirdAddMembersGroupChannel_AddMembersGroupChannelMemberSchema = z.object({\n user_id: z.string().describe(\"User ID of the member.\").nullable(),\n nickname: z.string().describe(\"Nickname of the member.\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the user is active (online status).\").nullable().optional(),\n friend_name: z.string().describe(\"Friend name if available.\").nullable().optional(),\n profile_url: z.string().describe(\"Profile URL of the member.\").nullable().optional(),\n last_seen_at: z.number().int().describe(\"Timestamp (ms) when the user was last seen.\").nullable().optional(),\n member_state: z.string().describe(\"State of the member in channel (joined, invited, etc.).\").nullable().optional(),\n connection_id: z.number().int().describe(\"Connection identifier if connected.\").nullable().optional(),\n hide_start_ts: z.number().int().describe(\"Timestamp (ms) when hiding messages started for the user.\").nullable().optional(),\n registered_at: z.number().int().describe(\"Timestamp (ms) when the user registered.\").nullable().optional(),\n preferred_languages: z.array(z.string()).describe(\"Preferred language codes of the member.\").nullable().optional(),\n require_auth_for_profile_image: z.boolean().describe(\"Whether the member requires auth for profile image access.\").nullable().optional(),\n}).passthrough().describe(\"Member object returned after adding to group channel.\");\nexport const SendbirdAddMembersGroupChannelOutput = z.object({\n members: z.array(SendbirdAddMembersGroupChannel_AddMembersGroupChannelMemberSchema).describe(\"List of members successfully added to the channel.\"),\n}).passthrough().describe(\"Response model for adding members to a group channel.\");\n\nexport const sendbirdAddMembersGroupChannel = action(\"SENDBIRD_ADD_MEMBERS_GROUP_CHANNEL\", {\n slug: \"sendbird-add-members-group-channel\",\n name: \"Add Members To Group Channel\",\n description: \"Tool to add members to a group channel. Use when you need to invite one or more users into an existing group channel.\",\n input: SendbirdAddMembersGroupChannelInput,\n output: SendbirdAddMembersGroupChannelOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-members-group-channel.cjs","names":["z","action"],"sources":["../../src/actions/add-members-group-channel.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sendbird } from \"../app\";\n\nexport const SendbirdAddMembersGroupChannelInput = z.object({\n seconds: z.number().int().describe(\"Duration in seconds to hide previous messages. Required if hide_existing_messages is true.\").optional(),\n user_ids: z.array(z.string()).describe(\"List of User IDs to add to the channel.\"),\n channel_url: z.string().describe(\"URL-encoded identifier of the target group channel.\"),\n hide_existing_messages: z.boolean().describe(\"Whether to hide previous messages for new members.\").optional(),\n}).describe(\"Request model for adding members to a group channel.\");\nconst SendbirdAddMembersGroupChannel_AddMembersGroupChannelMemberSchema = z.object({\n user_id: z.string().describe(\"User ID of the member.\").nullable(),\n nickname: z.string().describe(\"Nickname of the member.\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the user is active (online status).\").nullable().optional(),\n friend_name: z.string().describe(\"Friend name if available.\").nullable().optional(),\n profile_url: z.string().describe(\"Profile URL of the member.\").nullable().optional(),\n last_seen_at: z.number().int().describe(\"Timestamp (ms) when the user was last seen.\").nullable().optional(),\n member_state: z.string().describe(\"State of the member in channel (joined, invited, etc.).\").nullable().optional(),\n connection_id: z.number().int().describe(\"Connection identifier if connected.\").nullable().optional(),\n hide_start_ts: z.number().int().describe(\"Timestamp (ms) when hiding messages started for the user.\").nullable().optional(),\n registered_at: z.number().int().describe(\"Timestamp (ms) when the user registered.\").nullable().optional(),\n preferred_languages: z.array(z.string()).describe(\"Preferred language codes of the member.\").nullable().optional(),\n require_auth_for_profile_image: z.boolean().describe(\"Whether the member requires auth for profile image access.\").nullable().optional(),\n}).passthrough().describe(\"Member object returned after adding to group channel.\");\nexport const SendbirdAddMembersGroupChannelOutput = z.object({\n members: z.array(SendbirdAddMembersGroupChannel_AddMembersGroupChannelMemberSchema).describe(\"List of members successfully added to the channel.\"),\n}).passthrough().describe(\"Response model for adding members to a group channel.\");\n\nexport const sendbirdAddMembersGroupChannel: AppAction<\n typeof SendbirdAddMembersGroupChannelInput,\n typeof SendbirdAddMembersGroupChannelOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_ADD_MEMBERS_GROUP_CHANNEL\", {\n slug: \"sendbird-add-members-group-channel\",\n name: \"Add Members To Group Channel\",\n description: \"Tool to add members to a group channel. Use when you need to invite one or more users into an existing group channel.\",\n input: SendbirdAddMembersGroupChannelInput,\n output: SendbirdAddMembersGroupChannelOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CAC1I,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yCAAyC;CAChF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CACtF,wBAAwBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,oEAAoEA,IAAAA,EAAE,OAAO;CACjF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAChE,UAAUA,IAAAA,EAAE,OAAO,CAAC,C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,EAAE,MAAM,iEAAiE,CAAC,CAAC,SAAS,oDAAoD,EACnJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAEjF,MAAa,iCAITC,eAAAA,OAAO,sCAAsC;CAC/C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sendbird } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/add-members-group-channel.d.ts
|
|
@@ -23,26 +25,7 @@ declare const SendbirdAddMembersGroupChannelOutput: z.ZodObject<{
|
|
|
23
25
|
require_auth_for_profile_image: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
24
26
|
}, z.core.$loose>>;
|
|
25
27
|
}, z.core.$loose>;
|
|
26
|
-
declare const sendbirdAddMembersGroupChannel:
|
|
27
|
-
user_ids: string[];
|
|
28
|
-
channel_url: string;
|
|
29
|
-
seconds?: number | undefined;
|
|
30
|
-
hide_existing_messages?: boolean | undefined;
|
|
31
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
|
|
32
|
-
connectionId: z.ZodString;
|
|
33
|
-
entityId: z.ZodString;
|
|
34
|
-
instanceId: z.ZodString;
|
|
35
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
36
|
-
subdomain: z.ZodString;
|
|
37
|
-
generic_api_key: z.ZodString;
|
|
38
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
|
|
39
|
-
connectionId: z.ZodString;
|
|
40
|
-
entityId: z.ZodString;
|
|
41
|
-
instanceId: z.ZodString;
|
|
42
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
-
subdomain: z.ZodString;
|
|
44
|
-
generic_api_key: z.ZodString;
|
|
45
|
-
}, z.core.$strip>>]>;
|
|
28
|
+
declare const sendbirdAddMembersGroupChannel: AppAction<typeof SendbirdAddMembersGroupChannelInput, typeof SendbirdAddMembersGroupChannelOutput, typeof sendbird.credential>;
|
|
46
29
|
//#endregion
|
|
47
30
|
export { sendbirdAddMembersGroupChannel };
|
|
48
31
|
//# sourceMappingURL=add-members-group-channel.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-members-group-channel.d.cts","names":[],"sources":["../../src/actions/add-members-group-channel.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-members-group-channel.d.cts","names":[],"sources":["../../src/actions/add-members-group-channel.ts"],"mappings":";;;;;cAMa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;cAoBnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAIpC,8BAAA,EAAgC,SAAA,QACpC,mCAAA,SACA,oCAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sendbird } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/add-members-group-channel.d.ts
|
|
@@ -23,26 +25,7 @@ declare const SendbirdAddMembersGroupChannelOutput: z.ZodObject<{
|
|
|
23
25
|
require_auth_for_profile_image: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
24
26
|
}, z.core.$loose>>;
|
|
25
27
|
}, z.core.$loose>;
|
|
26
|
-
declare const sendbirdAddMembersGroupChannel:
|
|
27
|
-
user_ids: string[];
|
|
28
|
-
channel_url: string;
|
|
29
|
-
seconds?: number | undefined;
|
|
30
|
-
hide_existing_messages?: boolean | undefined;
|
|
31
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
|
|
32
|
-
connectionId: z.ZodString;
|
|
33
|
-
entityId: z.ZodString;
|
|
34
|
-
instanceId: z.ZodString;
|
|
35
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
36
|
-
subdomain: z.ZodString;
|
|
37
|
-
generic_api_key: z.ZodString;
|
|
38
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
|
|
39
|
-
connectionId: z.ZodString;
|
|
40
|
-
entityId: z.ZodString;
|
|
41
|
-
instanceId: z.ZodString;
|
|
42
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
-
subdomain: z.ZodString;
|
|
44
|
-
generic_api_key: z.ZodString;
|
|
45
|
-
}, z.core.$strip>>]>;
|
|
28
|
+
declare const sendbirdAddMembersGroupChannel: AppAction<typeof SendbirdAddMembersGroupChannelInput, typeof SendbirdAddMembersGroupChannelOutput, typeof sendbird.credential>;
|
|
46
29
|
//#endregion
|
|
47
30
|
export { sendbirdAddMembersGroupChannel };
|
|
48
31
|
//# sourceMappingURL=add-members-group-channel.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-members-group-channel.d.mts","names":[],"sources":["../../src/actions/add-members-group-channel.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-members-group-channel.d.mts","names":[],"sources":["../../src/actions/add-members-group-channel.ts"],"mappings":";;;;;cAMa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;cAoBnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAIpC,8BAAA,EAAgC,SAAA,QACpC,mCAAA,SACA,oCAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-members-group-channel.mjs","names":[],"sources":["../../src/actions/add-members-group-channel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdAddMembersGroupChannelInput = z.object({\n seconds: z.number().int().describe(\"Duration in seconds to hide previous messages. Required if hide_existing_messages is true.\").optional(),\n user_ids: z.array(z.string()).describe(\"List of User IDs to add to the channel.\"),\n channel_url: z.string().describe(\"URL-encoded identifier of the target group channel.\"),\n hide_existing_messages: z.boolean().describe(\"Whether to hide previous messages for new members.\").optional(),\n}).describe(\"Request model for adding members to a group channel.\");\nconst SendbirdAddMembersGroupChannel_AddMembersGroupChannelMemberSchema = z.object({\n user_id: z.string().describe(\"User ID of the member.\").nullable(),\n nickname: z.string().describe(\"Nickname of the member.\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the user is active (online status).\").nullable().optional(),\n friend_name: z.string().describe(\"Friend name if available.\").nullable().optional(),\n profile_url: z.string().describe(\"Profile URL of the member.\").nullable().optional(),\n last_seen_at: z.number().int().describe(\"Timestamp (ms) when the user was last seen.\").nullable().optional(),\n member_state: z.string().describe(\"State of the member in channel (joined, invited, etc.).\").nullable().optional(),\n connection_id: z.number().int().describe(\"Connection identifier if connected.\").nullable().optional(),\n hide_start_ts: z.number().int().describe(\"Timestamp (ms) when hiding messages started for the user.\").nullable().optional(),\n registered_at: z.number().int().describe(\"Timestamp (ms) when the user registered.\").nullable().optional(),\n preferred_languages: z.array(z.string()).describe(\"Preferred language codes of the member.\").nullable().optional(),\n require_auth_for_profile_image: z.boolean().describe(\"Whether the member requires auth for profile image access.\").nullable().optional(),\n}).passthrough().describe(\"Member object returned after adding to group channel.\");\nexport const SendbirdAddMembersGroupChannelOutput = z.object({\n members: z.array(SendbirdAddMembersGroupChannel_AddMembersGroupChannelMemberSchema).describe(\"List of members successfully added to the channel.\"),\n}).passthrough().describe(\"Response model for adding members to a group channel.\");\n\nexport const sendbirdAddMembersGroupChannel = action(\"SENDBIRD_ADD_MEMBERS_GROUP_CHANNEL\", {\n slug: \"sendbird-add-members-group-channel\",\n name: \"Add Members To Group Channel\",\n description: \"Tool to add members to a group channel. Use when you need to invite one or more users into an existing group channel.\",\n input: SendbirdAddMembersGroupChannelInput,\n output: SendbirdAddMembersGroupChannelOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-members-group-channel.mjs","names":[],"sources":["../../src/actions/add-members-group-channel.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sendbird } from \"../app\";\n\nexport const SendbirdAddMembersGroupChannelInput = z.object({\n seconds: z.number().int().describe(\"Duration in seconds to hide previous messages. Required if hide_existing_messages is true.\").optional(),\n user_ids: z.array(z.string()).describe(\"List of User IDs to add to the channel.\"),\n channel_url: z.string().describe(\"URL-encoded identifier of the target group channel.\"),\n hide_existing_messages: z.boolean().describe(\"Whether to hide previous messages for new members.\").optional(),\n}).describe(\"Request model for adding members to a group channel.\");\nconst SendbirdAddMembersGroupChannel_AddMembersGroupChannelMemberSchema = z.object({\n user_id: z.string().describe(\"User ID of the member.\").nullable(),\n nickname: z.string().describe(\"Nickname of the member.\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the user is active (online status).\").nullable().optional(),\n friend_name: z.string().describe(\"Friend name if available.\").nullable().optional(),\n profile_url: z.string().describe(\"Profile URL of the member.\").nullable().optional(),\n last_seen_at: z.number().int().describe(\"Timestamp (ms) when the user was last seen.\").nullable().optional(),\n member_state: z.string().describe(\"State of the member in channel (joined, invited, etc.).\").nullable().optional(),\n connection_id: z.number().int().describe(\"Connection identifier if connected.\").nullable().optional(),\n hide_start_ts: z.number().int().describe(\"Timestamp (ms) when hiding messages started for the user.\").nullable().optional(),\n registered_at: z.number().int().describe(\"Timestamp (ms) when the user registered.\").nullable().optional(),\n preferred_languages: z.array(z.string()).describe(\"Preferred language codes of the member.\").nullable().optional(),\n require_auth_for_profile_image: z.boolean().describe(\"Whether the member requires auth for profile image access.\").nullable().optional(),\n}).passthrough().describe(\"Member object returned after adding to group channel.\");\nexport const SendbirdAddMembersGroupChannelOutput = z.object({\n members: z.array(SendbirdAddMembersGroupChannel_AddMembersGroupChannelMemberSchema).describe(\"List of members successfully added to the channel.\"),\n}).passthrough().describe(\"Response model for adding members to a group channel.\");\n\nexport const sendbirdAddMembersGroupChannel: AppAction<\n typeof SendbirdAddMembersGroupChannelInput,\n typeof SendbirdAddMembersGroupChannelOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_ADD_MEMBERS_GROUP_CHANNEL\", {\n slug: \"sendbird-add-members-group-channel\",\n name: \"Add Members To Group Channel\",\n description: \"Tool to add members to a group channel. Use when you need to invite one or more users into an existing group channel.\",\n input: SendbirdAddMembersGroupChannelInput,\n output: SendbirdAddMembersGroupChannelOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sCAAsC,EAAE,OAAO;CAC1D,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS;CAC1I,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yCAAyC;CAChF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CACtF,wBAAwB,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AAC9G,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAM,oEAAoE,EAAE,OAAO;CACjF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAChE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,qBAAqB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,gCAAgC,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAKjF,MAAa,iCAIT,OAAO,sCAAsC;CAC/C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbkD,EAAE,OAAO,EAC3D,SAAS,EAAE,MAAM,iEAAiE,CAAC,CAAC,SAAS,oDAAoD,EACnJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ban-user-from-group-channel.cjs","names":["z","action"],"sources":["../../src/actions/ban-user-from-group-channel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdBanUserFromGroupChannelInput = z.object({\n seconds: z.number().int().describe(\"Duration of the ban in seconds. If omitted, ban is permanent.\").optional(),\n user_id: z.string().describe(\"ID of the user to ban from the channel.\"),\n agent_id: z.string().describe(\"ID of the admin or moderator performing the ban.\").optional(),\n channel_url: z.string().describe(\"URL-encoded identifier of the group channel to ban the user from.\"),\n description: z.string().describe(\"Reason for the ban in moderation records.\").optional(),\n}).describe(\"Request model for banning a user from a group channel.\");\nconst SendbirdBanUserFromGroupChannel_BannedUserInfoSchema = z.object({\n user_id: z.string().describe(\"ID of the banned user.\").nullable(),\n nickname: z.string().describe(\"Nickname of the banned user.\").nullable().optional(),\n profile_url: z.string().describe(\"Profile image URL of the banned user.\").nullable().optional(),\n}).passthrough().describe(\"Information about the banned user.\");\nexport const SendbirdBanUserFromGroupChannelOutput = z.object({\n user: SendbirdBanUserFromGroupChannel_BannedUserInfoSchema.nullable(),\n end_at: z.number().int().describe(\"Unix epoch timestamp when ban ends.\").nullable().optional(),\n seconds: z.number().int().describe(\"Duration of the ban in seconds.\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix epoch timestamp when ban was created.\").nullable().optional(),\n description: z.string().describe(\"Reason for the ban.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a banned user record.\");\n\nexport const sendbirdBanUserFromGroupChannel = action(\"SENDBIRD_BAN_USER_FROM_GROUP_CHANNEL\", {\n slug: \"sendbird-ban-user-from-group-channel\",\n name: \"Ban User from Group Channel\",\n description: \"Tool to ban a user from a group channel. Use when moderating group channels to restrict member access. Execute after confirming channel_url and user_id.\",\n input: SendbirdBanUserFromGroupChannelInput,\n output: SendbirdBanUserFromGroupChannelOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ban-user-from-group-channel.cjs","names":["z","action"],"sources":["../../src/actions/ban-user-from-group-channel.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sendbird } from \"../app\";\n\nexport const SendbirdBanUserFromGroupChannelInput = z.object({\n seconds: z.number().int().describe(\"Duration of the ban in seconds. If omitted, ban is permanent.\").optional(),\n user_id: z.string().describe(\"ID of the user to ban from the channel.\"),\n agent_id: z.string().describe(\"ID of the admin or moderator performing the ban.\").optional(),\n channel_url: z.string().describe(\"URL-encoded identifier of the group channel to ban the user from.\"),\n description: z.string().describe(\"Reason for the ban in moderation records.\").optional(),\n}).describe(\"Request model for banning a user from a group channel.\");\nconst SendbirdBanUserFromGroupChannel_BannedUserInfoSchema = z.object({\n user_id: z.string().describe(\"ID of the banned user.\").nullable(),\n nickname: z.string().describe(\"Nickname of the banned user.\").nullable().optional(),\n profile_url: z.string().describe(\"Profile image URL of the banned user.\").nullable().optional(),\n}).passthrough().describe(\"Information about the banned user.\");\nexport const SendbirdBanUserFromGroupChannelOutput = z.object({\n user: SendbirdBanUserFromGroupChannel_BannedUserInfoSchema.nullable(),\n end_at: z.number().int().describe(\"Unix epoch timestamp when ban ends.\").nullable().optional(),\n seconds: z.number().int().describe(\"Duration of the ban in seconds.\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix epoch timestamp when ban was created.\").nullable().optional(),\n description: z.string().describe(\"Reason for the ban.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a banned user record.\");\n\nexport const sendbirdBanUserFromGroupChannel: AppAction<\n typeof SendbirdBanUserFromGroupChannelInput,\n typeof SendbirdBanUserFromGroupChannelOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_BAN_USER_FROM_GROUP_CHANNEL\", {\n slug: \"sendbird-ban-user-from-group-channel\",\n name: \"Ban User from Group Channel\",\n description: \"Tool to ban a user from a group channel. Use when moderating group channels to restrict member access. Execute after confirming channel_url and user_id.\",\n input: SendbirdBanUserFromGroupChannelInput,\n output: SendbirdBanUserFromGroupChannelOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC7G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CAC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ACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sendbird } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/ban-user-from-group-channel.d.ts
|
|
@@ -19,27 +21,7 @@ declare const SendbirdBanUserFromGroupChannelOutput: z.ZodObject<{
|
|
|
19
21
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
22
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
23
|
}, z.core.$loose>;
|
|
22
|
-
declare const sendbirdBanUserFromGroupChannel:
|
|
23
|
-
user_id: string;
|
|
24
|
-
channel_url: string;
|
|
25
|
-
seconds?: number | undefined;
|
|
26
|
-
agent_id?: string | undefined;
|
|
27
|
-
description?: string | undefined;
|
|
28
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
|
|
29
|
-
connectionId: z.ZodString;
|
|
30
|
-
entityId: z.ZodString;
|
|
31
|
-
instanceId: z.ZodString;
|
|
32
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
-
subdomain: z.ZodString;
|
|
34
|
-
generic_api_key: z.ZodString;
|
|
35
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
|
|
36
|
-
connectionId: z.ZodString;
|
|
37
|
-
entityId: z.ZodString;
|
|
38
|
-
instanceId: z.ZodString;
|
|
39
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
-
subdomain: z.ZodString;
|
|
41
|
-
generic_api_key: z.ZodString;
|
|
42
|
-
}, z.core.$strip>>]>;
|
|
24
|
+
declare const sendbirdBanUserFromGroupChannel: AppAction<typeof SendbirdBanUserFromGroupChannelInput, typeof SendbirdBanUserFromGroupChannelOutput, typeof sendbird.credential>;
|
|
43
25
|
//#endregion
|
|
44
26
|
export { sendbirdBanUserFromGroupChannel };
|
|
45
27
|
//# sourceMappingURL=ban-user-from-group-channel.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ban-user-from-group-channel.d.cts","names":[],"sources":["../../src/actions/ban-user-from-group-channel.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ban-user-from-group-channel.d.cts","names":[],"sources":["../../src/actions/ban-user-from-group-channel.ts"],"mappings":";;;;;cAMa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;cAYpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;cAQrC,+BAAA,EAAiC,SAAA,QACrC,oCAAA,SACA,qCAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sendbird } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/ban-user-from-group-channel.d.ts
|
|
@@ -19,27 +21,7 @@ declare const SendbirdBanUserFromGroupChannelOutput: z.ZodObject<{
|
|
|
19
21
|
created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
22
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
23
|
}, z.core.$loose>;
|
|
22
|
-
declare const sendbirdBanUserFromGroupChannel:
|
|
23
|
-
user_id: string;
|
|
24
|
-
channel_url: string;
|
|
25
|
-
seconds?: number | undefined;
|
|
26
|
-
agent_id?: string | undefined;
|
|
27
|
-
description?: string | undefined;
|
|
28
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
|
|
29
|
-
connectionId: z.ZodString;
|
|
30
|
-
entityId: z.ZodString;
|
|
31
|
-
instanceId: z.ZodString;
|
|
32
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
33
|
-
subdomain: z.ZodString;
|
|
34
|
-
generic_api_key: z.ZodString;
|
|
35
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
|
|
36
|
-
connectionId: z.ZodString;
|
|
37
|
-
entityId: z.ZodString;
|
|
38
|
-
instanceId: z.ZodString;
|
|
39
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
-
subdomain: z.ZodString;
|
|
41
|
-
generic_api_key: z.ZodString;
|
|
42
|
-
}, z.core.$strip>>]>;
|
|
24
|
+
declare const sendbirdBanUserFromGroupChannel: AppAction<typeof SendbirdBanUserFromGroupChannelInput, typeof SendbirdBanUserFromGroupChannelOutput, typeof sendbird.credential>;
|
|
43
25
|
//#endregion
|
|
44
26
|
export { sendbirdBanUserFromGroupChannel };
|
|
45
27
|
//# sourceMappingURL=ban-user-from-group-channel.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ban-user-from-group-channel.d.mts","names":[],"sources":["../../src/actions/ban-user-from-group-channel.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ban-user-from-group-channel.d.mts","names":[],"sources":["../../src/actions/ban-user-from-group-channel.ts"],"mappings":";;;;;cAMa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;cAYpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;cAQrC,+BAAA,EAAiC,SAAA,QACrC,oCAAA,SACA,qCAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ban-user-from-group-channel.mjs","names":[],"sources":["../../src/actions/ban-user-from-group-channel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdBanUserFromGroupChannelInput = z.object({\n seconds: z.number().int().describe(\"Duration of the ban in seconds. If omitted, ban is permanent.\").optional(),\n user_id: z.string().describe(\"ID of the user to ban from the channel.\"),\n agent_id: z.string().describe(\"ID of the admin or moderator performing the ban.\").optional(),\n channel_url: z.string().describe(\"URL-encoded identifier of the group channel to ban the user from.\"),\n description: z.string().describe(\"Reason for the ban in moderation records.\").optional(),\n}).describe(\"Request model for banning a user from a group channel.\");\nconst SendbirdBanUserFromGroupChannel_BannedUserInfoSchema = z.object({\n user_id: z.string().describe(\"ID of the banned user.\").nullable(),\n nickname: z.string().describe(\"Nickname of the banned user.\").nullable().optional(),\n profile_url: z.string().describe(\"Profile image URL of the banned user.\").nullable().optional(),\n}).passthrough().describe(\"Information about the banned user.\");\nexport const SendbirdBanUserFromGroupChannelOutput = z.object({\n user: SendbirdBanUserFromGroupChannel_BannedUserInfoSchema.nullable(),\n end_at: z.number().int().describe(\"Unix epoch timestamp when ban ends.\").nullable().optional(),\n seconds: z.number().int().describe(\"Duration of the ban in seconds.\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix epoch timestamp when ban was created.\").nullable().optional(),\n description: z.string().describe(\"Reason for the ban.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a banned user record.\");\n\nexport const sendbirdBanUserFromGroupChannel = action(\"SENDBIRD_BAN_USER_FROM_GROUP_CHANNEL\", {\n slug: \"sendbird-ban-user-from-group-channel\",\n name: \"Ban User from Group Channel\",\n description: \"Tool to ban a user from a group channel. Use when moderating group channels to restrict member access. Execute after confirming channel_url and user_id.\",\n input: SendbirdBanUserFromGroupChannelInput,\n output: SendbirdBanUserFromGroupChannelOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ban-user-from-group-channel.mjs","names":[],"sources":["../../src/actions/ban-user-from-group-channel.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sendbird } from \"../app\";\n\nexport const SendbirdBanUserFromGroupChannelInput = z.object({\n seconds: z.number().int().describe(\"Duration of the ban in seconds. If omitted, ban is permanent.\").optional(),\n user_id: z.string().describe(\"ID of the user to ban from the channel.\"),\n agent_id: z.string().describe(\"ID of the admin or moderator performing the ban.\").optional(),\n channel_url: z.string().describe(\"URL-encoded identifier of the group channel to ban the user from.\"),\n description: z.string().describe(\"Reason for the ban in moderation records.\").optional(),\n}).describe(\"Request model for banning a user from a group channel.\");\nconst SendbirdBanUserFromGroupChannel_BannedUserInfoSchema = z.object({\n user_id: z.string().describe(\"ID of the banned user.\").nullable(),\n nickname: z.string().describe(\"Nickname of the banned user.\").nullable().optional(),\n profile_url: z.string().describe(\"Profile image URL of the banned user.\").nullable().optional(),\n}).passthrough().describe(\"Information about the banned user.\");\nexport const SendbirdBanUserFromGroupChannelOutput = z.object({\n user: SendbirdBanUserFromGroupChannel_BannedUserInfoSchema.nullable(),\n end_at: z.number().int().describe(\"Unix epoch timestamp when ban ends.\").nullable().optional(),\n seconds: z.number().int().describe(\"Duration of the ban in seconds.\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix epoch timestamp when ban was created.\").nullable().optional(),\n description: z.string().describe(\"Reason for the ban.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a banned user record.\");\n\nexport const sendbirdBanUserFromGroupChannel: AppAction<\n typeof SendbirdBanUserFromGroupChannelInput,\n typeof SendbirdBanUserFromGroupChannelOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_BAN_USER_FROM_GROUP_CHANNEL\", {\n slug: \"sendbird-ban-user-from-group-channel\",\n name: \"Ban User from Group Channel\",\n description: \"Tool to ban a user from a group channel. Use when moderating group channels to restrict member access. Execute after confirming channel_url and user_id.\",\n input: SendbirdBanUserFromGroupChannelInput,\n output: SendbirdBanUserFromGroupChannelOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,uCAAuC,EAAE,OAAO;CAC3D,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC7G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACtE,UAAU,EAAE,OA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ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdCreateChannelInput = z.object({\n data: z.string().describe(\"Custom data for the channel\").optional(),\n name: z.string().describe(\"Name of the channel\").optional(),\n strict: z.boolean().describe(\"True for strict creation; fails if channel exists\").optional(),\n is_super: z.boolean().describe(\"True to create a supergroup channel\").optional(),\n user_ids: z.array(z.string()).describe(\"List of user IDs to invite to the channel (max 100)\").optional(),\n cover_url: z.string().describe(\"URL of the channel cover image\").optional(),\n is_public: z.boolean().describe(\"True to create a public channel\").optional(),\n cover_file: z.string().describe(\"Binary content of the cover image for multipart upload\").optional(),\n access_code: z.string().describe(\"Access code for private channels\").optional(),\n channel_url: z.string().describe(\"Custom URL of the channel; autogenerated if omitted\").optional(),\n custom_type: z.string().describe(\"Custom type identifier for the channel\").optional(),\n is_distinct: z.boolean().describe(\"True to create a distinct channel\").optional(),\n is_ephemeral: z.boolean().describe(\"True to create an ephemeral channel\").optional(),\n operator_ids: z.array(z.string()).describe(\"List of user IDs to assign as operators\").optional(),\n custom_fields: z.record(z.string(), z.unknown()).describe(\"Custom fields object\").optional(),\n is_discoverable: z.boolean().describe(\"True to list the channel in search results\").optional(),\n is_chat_notification: z.boolean().describe(\"True to send system notifications for channel events\").optional(),\n message_survival_seconds: z.number().int().describe(\"Message retention period in seconds\").optional(),\n}).describe(\"Request model for creating a new Sendbird group channel.\");\nconst SendbirdCreateChannel_MemberSchema = z.object({\n state: z.string().describe(\"Member state (joined, invited, etc.)\").nullable().optional(),\n has_pin: z.boolean().describe(\"Whether member has pinned the channel\").nullable().optional(),\n user_id: z.string().describe(\"Member user ID\").nullable(),\n nickname: z.string().describe(\"Member nickname\").nullable().optional(),\n profile_url: z.string().describe(\"Member profile image URL\").nullable().optional(),\n last_seen_at: z.number().int().describe(\"Timestamp when member was last active (ms)\").nullable().optional(),\n connection_id: z.number().int().describe(\"Member connection ID\").nullable().optional(),\n pin_timestamp: z.number().int().describe(\"Timestamp when channel was pinned (ms)\").nullable().optional(),\n}).passthrough();\nconst SendbirdCreateChannel_LastMessageSchema = z.object({\n data: z.string().describe(\"Data payload of the last message\").nullable().optional(),\n message: z.string().describe(\"Content of the last message if text-based\").nullable().optional(),\n created_at: z.number().int().describe(\"Timestamp when the last message was created (ms)\").nullable(),\n message_id: z.string().describe(\"ID of the last message\").nullable(),\n updated_at: z.number().int().describe(\"Timestamp when the last message was last updated (ms)\").nullable(),\n custom_type: z.string().describe(\"Custom type of the last message\").nullable().optional(),\n message_type: z.string().describe(\"Type of the last message (MESG, FILE, ADMM)\").nullable(),\n}).passthrough();\nexport const SendbirdCreateChannelOutput = z.object({\n data: z.string().describe(\"Custom data of the channel\").nullable().optional(),\n name: z.string().describe(\"Name of the channel\").nullable().optional(),\n freeze: z.boolean().describe(\"Whether the channel is frozen\").nullable(),\n members: z.array(SendbirdCreateChannel_MemberSchema).describe(\"List of channel members\"),\n is_super: z.boolean().describe(\"Whether the channel is a supergroup channel\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Channel metadata key-value pairs\").nullable().optional(),\n cover_url: z.string().describe(\"Cover image URL of the channel\").nullable().optional(),\n is_public: z.boolean().describe(\"Whether the channel is public\").nullable(),\n operators: z.array(SendbirdCreateChannel_MemberSchema).describe(\"List of channel operators\"),\n created_at: z.number().int().describe(\"Timestamp when the channel was created (ms)\").nullable(),\n channel_url: z.string().describe(\"Unique URL of the group channel\").nullable(),\n custom_type: z.string().describe(\"Custom type identifier of the channel\").nullable().optional(),\n is_distinct: z.boolean().describe(\"Whether the channel is distinct\").nullable(),\n is_broadcast: z.boolean().describe(\"Whether the channel is broadcast type\").nullable(),\n is_ephemeral: z.boolean().describe(\"Whether the channel is ephemeral\").nullable(),\n last_message: SendbirdCreateChannel_LastMessageSchema.nullable().optional(),\n member_count: z.number().int().describe(\"Number of members in the channel\").nullable(),\n read_receipt: z.record(z.string(), z.unknown()).describe(\"Read receipt per user mapping\").nullable().optional(),\n is_discoverable: z.boolean().describe(\"Whether the channel is discoverable in search\").nullable(),\n delivery_receipt: z.record(z.string(), z.unknown()).describe(\"Delivery receipt per user mapping\").nullable().optional(),\n joined_member_count: z.number().int().describe(\"Number of joined members in the channel\").nullable(),\n unread_message_count: z.number().int().describe(\"Count of unread messages for the user\").nullable(),\n}).passthrough().describe(\"Response model for creating a Sendbird group channel.\");\n\nexport const sendbirdCreateChannel = action(\"SENDBIRD_CREATE_CHANNEL\", {\n slug: \"sendbird-create-channel\",\n name: \"Create Group Channel\",\n description: \"Tool to create a new group channel. Use when you need to start a conversation with specific users. Execute after specifying users and optional settings.\",\n input: SendbirdCreateChannelInput,\n output: SendbirdCreateChannelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC3F,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC/E,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACvG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC1E,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACnG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC9E,aAAaA,IAAAA,EAAE,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,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAChF,cAAc,wCAAwC,SAAS,CAAC,CAAC,SAAS;CAC1E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrF,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAChG,kBAAkBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACnG,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAEjF,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-channel.cjs","names":["z","action"],"sources":["../../src/actions/create-channel.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sendbird } from \"../app\";\n\nexport const SendbirdCreateChannelInput = z.object({\n data: z.string().describe(\"Custom data for the channel\").optional(),\n name: z.string().describe(\"Name of the channel\").optional(),\n strict: z.boolean().describe(\"True for strict creation; fails if channel exists\").optional(),\n is_super: z.boolean().describe(\"True to create a supergroup channel\").optional(),\n user_ids: z.array(z.string()).describe(\"List of user IDs to invite to the channel (max 100)\").optional(),\n cover_url: z.string().describe(\"URL of the channel cover image\").optional(),\n is_public: z.boolean().describe(\"True to create a public channel\").optional(),\n cover_file: z.string().describe(\"Binary content of the cover image for multipart upload\").optional(),\n access_code: z.string().describe(\"Access code for private channels\").optional(),\n channel_url: z.string().describe(\"Custom URL of the channel; autogenerated if omitted\").optional(),\n custom_type: z.string().describe(\"Custom type identifier for the channel\").optional(),\n is_distinct: z.boolean().describe(\"True to create a distinct channel\").optional(),\n is_ephemeral: z.boolean().describe(\"True to create an ephemeral channel\").optional(),\n operator_ids: z.array(z.string()).describe(\"List of user IDs to assign as operators\").optional(),\n custom_fields: z.record(z.string(), z.unknown()).describe(\"Custom fields object\").optional(),\n is_discoverable: z.boolean().describe(\"True to list the channel in search results\").optional(),\n is_chat_notification: z.boolean().describe(\"True to send system notifications for channel events\").optional(),\n message_survival_seconds: z.number().int().describe(\"Message retention period in seconds\").optional(),\n}).describe(\"Request model for creating a new Sendbird group channel.\");\nconst SendbirdCreateChannel_MemberSchema = z.object({\n state: z.string().describe(\"Member state (joined, invited, etc.)\").nullable().optional(),\n has_pin: z.boolean().describe(\"Whether member has pinned the channel\").nullable().optional(),\n user_id: z.string().describe(\"Member user ID\").nullable(),\n nickname: z.string().describe(\"Member nickname\").nullable().optional(),\n profile_url: z.string().describe(\"Member profile image URL\").nullable().optional(),\n last_seen_at: z.number().int().describe(\"Timestamp when member was last active (ms)\").nullable().optional(),\n connection_id: z.number().int().describe(\"Member connection ID\").nullable().optional(),\n pin_timestamp: z.number().int().describe(\"Timestamp when channel was pinned (ms)\").nullable().optional(),\n}).passthrough();\nconst SendbirdCreateChannel_LastMessageSchema = z.object({\n data: z.string().describe(\"Data payload of the last message\").nullable().optional(),\n message: z.string().describe(\"Content of the last message if text-based\").nullable().optional(),\n created_at: z.number().int().describe(\"Timestamp when the last message was created (ms)\").nullable(),\n message_id: z.string().describe(\"ID of the last message\").nullable(),\n updated_at: z.number().int().describe(\"Timestamp when the last message was last updated (ms)\").nullable(),\n custom_type: z.string().describe(\"Custom type of the last message\").nullable().optional(),\n message_type: z.string().describe(\"Type of the last message (MESG, FILE, ADMM)\").nullable(),\n}).passthrough();\nexport const SendbirdCreateChannelOutput = z.object({\n data: z.string().describe(\"Custom data of the channel\").nullable().optional(),\n name: z.string().describe(\"Name of the channel\").nullable().optional(),\n freeze: z.boolean().describe(\"Whether the channel is frozen\").nullable(),\n members: z.array(SendbirdCreateChannel_MemberSchema).describe(\"List of channel members\"),\n is_super: z.boolean().describe(\"Whether the channel is a supergroup channel\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Channel metadata key-value pairs\").nullable().optional(),\n cover_url: z.string().describe(\"Cover image URL of the channel\").nullable().optional(),\n is_public: z.boolean().describe(\"Whether the channel is public\").nullable(),\n operators: z.array(SendbirdCreateChannel_MemberSchema).describe(\"List of channel operators\"),\n created_at: z.number().int().describe(\"Timestamp when the channel was created (ms)\").nullable(),\n channel_url: z.string().describe(\"Unique URL of the group channel\").nullable(),\n custom_type: z.string().describe(\"Custom type identifier of the channel\").nullable().optional(),\n is_distinct: z.boolean().describe(\"Whether the channel is distinct\").nullable(),\n is_broadcast: z.boolean().describe(\"Whether the channel is broadcast type\").nullable(),\n is_ephemeral: z.boolean().describe(\"Whether the channel is ephemeral\").nullable(),\n last_message: SendbirdCreateChannel_LastMessageSchema.nullable().optional(),\n member_count: z.number().int().describe(\"Number of members in the channel\").nullable(),\n read_receipt: z.record(z.string(), z.unknown()).describe(\"Read receipt per user mapping\").nullable().optional(),\n is_discoverable: z.boolean().describe(\"Whether the channel is discoverable in search\").nullable(),\n delivery_receipt: z.record(z.string(), z.unknown()).describe(\"Delivery receipt per user mapping\").nullable().optional(),\n joined_member_count: z.number().int().describe(\"Number of joined members in the channel\").nullable(),\n unread_message_count: z.number().int().describe(\"Count of unread messages for the user\").nullable(),\n}).passthrough().describe(\"Response model for creating a Sendbird group channel.\");\n\nexport const sendbirdCreateChannel: AppAction<\n typeof SendbirdCreateChannelInput,\n typeof SendbirdCreateChannelOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_CREATE_CHANNEL\", {\n slug: \"sendbird-create-channel\",\n name: \"Create Group Channel\",\n description: \"Tool to create a new group channel. Use when you need to start a conversation with specific users. Execute after specifying users and optional settings.\",\n input: SendbirdCreateChannelInput,\n output: SendbirdCreateChannelOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC3F,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC/E,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACvG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC1E,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACnG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC9E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,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AcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrF,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAChG,kBAAkBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACnG,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAEjF,MAAa,wBAITC,eAAAA,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sendbird } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-channel.d.ts
|
|
@@ -71,40 +73,7 @@ declare const SendbirdCreateChannelOutput: z.ZodObject<{
|
|
|
71
73
|
joined_member_count: z.ZodNullable<z.ZodNumber>;
|
|
72
74
|
unread_message_count: z.ZodNullable<z.ZodNumber>;
|
|
73
75
|
}, z.core.$loose>;
|
|
74
|
-
declare const sendbirdCreateChannel:
|
|
75
|
-
data?: string | undefined;
|
|
76
|
-
name?: string | undefined;
|
|
77
|
-
strict?: boolean | undefined;
|
|
78
|
-
is_super?: boolean | undefined;
|
|
79
|
-
user_ids?: string[] | undefined;
|
|
80
|
-
cover_url?: string | undefined;
|
|
81
|
-
is_public?: boolean | undefined;
|
|
82
|
-
cover_file?: string | undefined;
|
|
83
|
-
access_code?: string | undefined;
|
|
84
|
-
channel_url?: string | undefined;
|
|
85
|
-
custom_type?: string | undefined;
|
|
86
|
-
is_distinct?: boolean | undefined;
|
|
87
|
-
is_ephemeral?: boolean | undefined;
|
|
88
|
-
operator_ids?: string[] | undefined;
|
|
89
|
-
custom_fields?: Record<string, unknown> | undefined;
|
|
90
|
-
is_discoverable?: boolean | undefined;
|
|
91
|
-
is_chat_notification?: boolean | undefined;
|
|
92
|
-
message_survival_seconds?: number | undefined;
|
|
93
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
|
|
94
|
-
connectionId: z.ZodString;
|
|
95
|
-
entityId: z.ZodString;
|
|
96
|
-
instanceId: z.ZodString;
|
|
97
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
98
|
-
subdomain: z.ZodString;
|
|
99
|
-
generic_api_key: z.ZodString;
|
|
100
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
|
|
101
|
-
connectionId: z.ZodString;
|
|
102
|
-
entityId: z.ZodString;
|
|
103
|
-
instanceId: z.ZodString;
|
|
104
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
105
|
-
subdomain: z.ZodString;
|
|
106
|
-
generic_api_key: z.ZodString;
|
|
107
|
-
}, z.core.$strip>>]>;
|
|
76
|
+
declare const sendbirdCreateChannel: AppAction<typeof SendbirdCreateChannelInput, typeof SendbirdCreateChannelOutput, typeof sendbird.credential>;
|
|
108
77
|
//#endregion
|
|
109
78
|
export { sendbirdCreateChannel };
|
|
110
79
|
//# sourceMappingURL=create-channel.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-channel.d.cts","names":[],"sources":["../../src/actions/create-channel.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-channel.d.cts","names":[],"sources":["../../src/actions/create-channel.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAuC1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyB3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sendbird } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-channel.d.ts
|
|
@@ -71,40 +73,7 @@ declare const SendbirdCreateChannelOutput: z.ZodObject<{
|
|
|
71
73
|
joined_member_count: z.ZodNullable<z.ZodNumber>;
|
|
72
74
|
unread_message_count: z.ZodNullable<z.ZodNumber>;
|
|
73
75
|
}, z.core.$loose>;
|
|
74
|
-
declare const sendbirdCreateChannel:
|
|
75
|
-
data?: string | undefined;
|
|
76
|
-
name?: string | undefined;
|
|
77
|
-
strict?: boolean | undefined;
|
|
78
|
-
is_super?: boolean | undefined;
|
|
79
|
-
user_ids?: string[] | undefined;
|
|
80
|
-
cover_url?: string | undefined;
|
|
81
|
-
is_public?: boolean | undefined;
|
|
82
|
-
cover_file?: string | undefined;
|
|
83
|
-
access_code?: string | undefined;
|
|
84
|
-
channel_url?: string | undefined;
|
|
85
|
-
custom_type?: string | undefined;
|
|
86
|
-
is_distinct?: boolean | undefined;
|
|
87
|
-
is_ephemeral?: boolean | undefined;
|
|
88
|
-
operator_ids?: string[] | undefined;
|
|
89
|
-
custom_fields?: Record<string, unknown> | undefined;
|
|
90
|
-
is_discoverable?: boolean | undefined;
|
|
91
|
-
is_chat_notification?: boolean | undefined;
|
|
92
|
-
message_survival_seconds?: number | undefined;
|
|
93
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
|
|
94
|
-
connectionId: z.ZodString;
|
|
95
|
-
entityId: z.ZodString;
|
|
96
|
-
instanceId: z.ZodString;
|
|
97
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
98
|
-
subdomain: z.ZodString;
|
|
99
|
-
generic_api_key: z.ZodString;
|
|
100
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
|
|
101
|
-
connectionId: z.ZodString;
|
|
102
|
-
entityId: z.ZodString;
|
|
103
|
-
instanceId: z.ZodString;
|
|
104
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
105
|
-
subdomain: z.ZodString;
|
|
106
|
-
generic_api_key: z.ZodString;
|
|
107
|
-
}, z.core.$strip>>]>;
|
|
76
|
+
declare const sendbirdCreateChannel: AppAction<typeof SendbirdCreateChannelInput, typeof SendbirdCreateChannelOutput, typeof sendbird.credential>;
|
|
108
77
|
//#endregion
|
|
109
78
|
export { sendbirdCreateChannel };
|
|
110
79
|
//# sourceMappingURL=create-channel.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-channel.d.mts","names":[],"sources":["../../src/actions/create-channel.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-channel.d.mts","names":[],"sources":["../../src/actions/create-channel.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAuC1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyB3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-channel.mjs","names":[],"sources":["../../src/actions/create-channel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdCreateChannelInput = z.object({\n data: z.string().describe(\"Custom data for the channel\").optional(),\n name: z.string().describe(\"Name of the channel\").optional(),\n strict: z.boolean().describe(\"True for strict creation; fails if channel exists\").optional(),\n is_super: z.boolean().describe(\"True to create a supergroup channel\").optional(),\n user_ids: z.array(z.string()).describe(\"List of user IDs to invite to the channel (max 100)\").optional(),\n cover_url: z.string().describe(\"URL of the channel cover image\").optional(),\n is_public: z.boolean().describe(\"True to create a public channel\").optional(),\n cover_file: z.string().describe(\"Binary content of the cover image for multipart upload\").optional(),\n access_code: z.string().describe(\"Access code for private channels\").optional(),\n channel_url: z.string().describe(\"Custom URL of the channel; autogenerated if omitted\").optional(),\n custom_type: z.string().describe(\"Custom type identifier for the channel\").optional(),\n is_distinct: z.boolean().describe(\"True to create a distinct channel\").optional(),\n is_ephemeral: z.boolean().describe(\"True to create an ephemeral channel\").optional(),\n operator_ids: z.array(z.string()).describe(\"List of user IDs to assign as operators\").optional(),\n custom_fields: z.record(z.string(), z.unknown()).describe(\"Custom fields object\").optional(),\n is_discoverable: z.boolean().describe(\"True to list the channel in search results\").optional(),\n is_chat_notification: z.boolean().describe(\"True to send system notifications for channel events\").optional(),\n message_survival_seconds: z.number().int().describe(\"Message retention period in seconds\").optional(),\n}).describe(\"Request model for creating a new Sendbird group channel.\");\nconst SendbirdCreateChannel_MemberSchema = z.object({\n state: z.string().describe(\"Member state (joined, invited, etc.)\").nullable().optional(),\n has_pin: z.boolean().describe(\"Whether member has pinned the channel\").nullable().optional(),\n user_id: z.string().describe(\"Member user ID\").nullable(),\n nickname: z.string().describe(\"Member nickname\").nullable().optional(),\n profile_url: z.string().describe(\"Member profile image URL\").nullable().optional(),\n last_seen_at: z.number().int().describe(\"Timestamp when member was last active (ms)\").nullable().optional(),\n connection_id: z.number().int().describe(\"Member connection ID\").nullable().optional(),\n pin_timestamp: z.number().int().describe(\"Timestamp when channel was pinned (ms)\").nullable().optional(),\n}).passthrough();\nconst SendbirdCreateChannel_LastMessageSchema = z.object({\n data: z.string().describe(\"Data payload of the last message\").nullable().optional(),\n message: z.string().describe(\"Content of the last message if text-based\").nullable().optional(),\n created_at: z.number().int().describe(\"Timestamp when the last message was created (ms)\").nullable(),\n message_id: z.string().describe(\"ID of the last message\").nullable(),\n updated_at: z.number().int().describe(\"Timestamp when the last message was last updated (ms)\").nullable(),\n custom_type: z.string().describe(\"Custom type of the last message\").nullable().optional(),\n message_type: z.string().describe(\"Type of the last message (MESG, FILE, ADMM)\").nullable(),\n}).passthrough();\nexport const SendbirdCreateChannelOutput = z.object({\n data: z.string().describe(\"Custom data of the channel\").nullable().optional(),\n name: z.string().describe(\"Name of the channel\").nullable().optional(),\n freeze: z.boolean().describe(\"Whether the channel is frozen\").nullable(),\n members: z.array(SendbirdCreateChannel_MemberSchema).describe(\"List of channel members\"),\n is_super: z.boolean().describe(\"Whether the channel is a supergroup channel\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Channel metadata key-value pairs\").nullable().optional(),\n cover_url: z.string().describe(\"Cover image URL of the channel\").nullable().optional(),\n is_public: z.boolean().describe(\"Whether the channel is public\").nullable(),\n operators: z.array(SendbirdCreateChannel_MemberSchema).describe(\"List of channel operators\"),\n created_at: z.number().int().describe(\"Timestamp when the channel was created (ms)\").nullable(),\n channel_url: z.string().describe(\"Unique URL of the group channel\").nullable(),\n custom_type: z.string().describe(\"Custom type identifier of the channel\").nullable().optional(),\n is_distinct: z.boolean().describe(\"Whether the channel is distinct\").nullable(),\n is_broadcast: z.boolean().describe(\"Whether the channel is broadcast type\").nullable(),\n is_ephemeral: z.boolean().describe(\"Whether the channel is ephemeral\").nullable(),\n last_message: SendbirdCreateChannel_LastMessageSchema.nullable().optional(),\n member_count: z.number().int().describe(\"Number of members in the channel\").nullable(),\n read_receipt: z.record(z.string(), z.unknown()).describe(\"Read receipt per user mapping\").nullable().optional(),\n is_discoverable: z.boolean().describe(\"Whether the channel is discoverable in search\").nullable(),\n delivery_receipt: z.record(z.string(), z.unknown()).describe(\"Delivery receipt per user mapping\").nullable().optional(),\n joined_member_count: z.number().int().describe(\"Number of joined members in the channel\").nullable(),\n unread_message_count: z.number().int().describe(\"Count of unread messages for the user\").nullable(),\n}).passthrough().describe(\"Response model for creating a Sendbird group channel.\");\n\nexport const sendbirdCreateChannel = action(\"SENDBIRD_CREATE_CHANNEL\", {\n slug: \"sendbird-create-channel\",\n name: \"Create Group Channel\",\n description: \"Tool to create a new group channel. Use when you need to start a conversation with specific users. Execute after specifying users and optional settings.\",\n input: SendbirdCreateChannelInput,\n output: SendbirdCreateChannelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC3F,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC/E,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACvG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC1E,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACnG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC9E,aAAa,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AS;EAC9G,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAChG,kBAAkB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtH,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EACnG,sBAAsB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAOhB;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-channel.mjs","names":[],"sources":["../../src/actions/create-channel.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sendbird } from \"../app\";\n\nexport const SendbirdCreateChannelInput = z.object({\n data: z.string().describe(\"Custom data for the channel\").optional(),\n name: z.string().describe(\"Name of the channel\").optional(),\n strict: z.boolean().describe(\"True for strict creation; fails if channel exists\").optional(),\n is_super: z.boolean().describe(\"True to create a supergroup channel\").optional(),\n user_ids: z.array(z.string()).describe(\"List of user IDs to invite to the channel (max 100)\").optional(),\n cover_url: z.string().describe(\"URL of the channel cover image\").optional(),\n is_public: z.boolean().describe(\"True to create a public channel\").optional(),\n cover_file: z.string().describe(\"Binary content of the cover image for multipart upload\").optional(),\n access_code: z.string().describe(\"Access code for private channels\").optional(),\n channel_url: z.string().describe(\"Custom URL of the channel; autogenerated if omitted\").optional(),\n custom_type: z.string().describe(\"Custom type identifier for the channel\").optional(),\n is_distinct: z.boolean().describe(\"True to create a distinct channel\").optional(),\n is_ephemeral: z.boolean().describe(\"True to create an ephemeral channel\").optional(),\n operator_ids: z.array(z.string()).describe(\"List of user IDs to assign as operators\").optional(),\n custom_fields: z.record(z.string(), z.unknown()).describe(\"Custom fields object\").optional(),\n is_discoverable: z.boolean().describe(\"True to list the channel in search results\").optional(),\n is_chat_notification: z.boolean().describe(\"True to send system notifications for channel events\").optional(),\n message_survival_seconds: z.number().int().describe(\"Message retention period in seconds\").optional(),\n}).describe(\"Request model for creating a new Sendbird group channel.\");\nconst SendbirdCreateChannel_MemberSchema = z.object({\n state: z.string().describe(\"Member state (joined, invited, etc.)\").nullable().optional(),\n has_pin: z.boolean().describe(\"Whether member has pinned the channel\").nullable().optional(),\n user_id: z.string().describe(\"Member user ID\").nullable(),\n nickname: z.string().describe(\"Member nickname\").nullable().optional(),\n profile_url: z.string().describe(\"Member profile image URL\").nullable().optional(),\n last_seen_at: z.number().int().describe(\"Timestamp when member was last active (ms)\").nullable().optional(),\n connection_id: z.number().int().describe(\"Member connection ID\").nullable().optional(),\n pin_timestamp: z.number().int().describe(\"Timestamp when channel was pinned (ms)\").nullable().optional(),\n}).passthrough();\nconst SendbirdCreateChannel_LastMessageSchema = z.object({\n data: z.string().describe(\"Data payload of the last message\").nullable().optional(),\n message: z.string().describe(\"Content of the last message if text-based\").nullable().optional(),\n created_at: z.number().int().describe(\"Timestamp when the last message was created (ms)\").nullable(),\n message_id: z.string().describe(\"ID of the last message\").nullable(),\n updated_at: z.number().int().describe(\"Timestamp when the last message was last updated (ms)\").nullable(),\n custom_type: z.string().describe(\"Custom type of the last message\").nullable().optional(),\n message_type: z.string().describe(\"Type of the last message (MESG, FILE, ADMM)\").nullable(),\n}).passthrough();\nexport const SendbirdCreateChannelOutput = z.object({\n data: z.string().describe(\"Custom data of the channel\").nullable().optional(),\n name: z.string().describe(\"Name of the channel\").nullable().optional(),\n freeze: z.boolean().describe(\"Whether the channel is frozen\").nullable(),\n members: z.array(SendbirdCreateChannel_MemberSchema).describe(\"List of channel members\"),\n is_super: z.boolean().describe(\"Whether the channel is a supergroup channel\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Channel metadata key-value pairs\").nullable().optional(),\n cover_url: z.string().describe(\"Cover image URL of the channel\").nullable().optional(),\n is_public: z.boolean().describe(\"Whether the channel is public\").nullable(),\n operators: z.array(SendbirdCreateChannel_MemberSchema).describe(\"List of channel operators\"),\n created_at: z.number().int().describe(\"Timestamp when the channel was created (ms)\").nullable(),\n channel_url: z.string().describe(\"Unique URL of the group channel\").nullable(),\n custom_type: z.string().describe(\"Custom type identifier of the channel\").nullable().optional(),\n is_distinct: z.boolean().describe(\"Whether the channel is distinct\").nullable(),\n is_broadcast: z.boolean().describe(\"Whether the channel is broadcast type\").nullable(),\n is_ephemeral: z.boolean().describe(\"Whether the channel is ephemeral\").nullable(),\n last_message: SendbirdCreateChannel_LastMessageSchema.nullable().optional(),\n member_count: z.number().int().describe(\"Number of members in the channel\").nullable(),\n read_receipt: z.record(z.string(), z.unknown()).describe(\"Read receipt per user mapping\").nullable().optional(),\n is_discoverable: z.boolean().describe(\"Whether the channel is discoverable in search\").nullable(),\n delivery_receipt: z.record(z.string(), z.unknown()).describe(\"Delivery receipt per user mapping\").nullable().optional(),\n joined_member_count: z.number().int().describe(\"Number of joined members in the channel\").nullable(),\n unread_message_count: z.number().int().describe(\"Count of unread messages for the user\").nullable(),\n}).passthrough().describe(\"Response model for creating a Sendbird group channel.\");\n\nexport const sendbirdCreateChannel: AppAction<\n typeof SendbirdCreateChannelInput,\n typeof SendbirdCreateChannelOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_CREATE_CHANNEL\", {\n slug: \"sendbird-create-channel\",\n name: \"Create Group Channel\",\n description: \"Tool to create a new group channel. Use when you need to start a conversation with specific users. Execute after specifying users and optional settings.\",\n input: SendbirdCreateChannelInput,\n output: SendbirdCreateChannelOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6B,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC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,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC9E,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EACrF,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAChF,cAAc,wCAAwC,SAAS,CAAC,CAAC,SAAS;EAC1E,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACrF,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAChG,kBAAkB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtH,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EACnG,sBAAsB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-user.cjs","names":["z","action"],"sources":["../../src/actions/create-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdCreateUserInput = z.object({\n user_id: z.string().describe(\"Unique identifier for the new user. Must be unique across the application. Can contain alphanumeric characters, underscores, and hyphens.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs to store additional user data. Keys and values must be strings.\").optional(),\n nickname: z.string().describe(\"Display name shown to other users in channels. If not provided, may default to user_id.\").optional(),\n is_active: z.boolean().default(true).describe(\"If true, the user is active and can send/receive messages. Inactive users cannot participate in channels.\").optional(),\n profile_url: z.string().describe(\"URL of the user's profile image. Must be a valid HTTP/HTTPS URL.\").optional(),\n phone_number: z.string().describe(\"User's phone number in E.164 format (e.g., +15551234567). Used for user discovery if enabled.\").optional(),\n profile_file: z.string().describe(\"Binary content of the user's profile image for multipart upload. Use this instead of profile_url when uploading an image file directly.\").optional(),\n discovery_keys: z.array(z.string()).describe(\"List of unique keys used to find this user through the discovery feature (e.g., email addresses, phone numbers).\").optional(),\n has_ever_logged_in: z.boolean().default(false).describe(\"Internal flag indicating if the user has ever logged in. Typically managed by the system.\").optional(),\n issue_access_token: z.boolean().default(false).describe(\"If true, generates and returns an access token for the user that can be used for client-side authentication.\").optional(),\n preferred_languages: z.array(z.string()).describe(\"List of ISO 639-1 language codes indicating user's preferred languages for push notifications.\").optional(),\n}).describe(\"Request model for creating a new Sendbird user.\");\nexport const SendbirdCreateUserOutput = z.object({\n user_id: z.string().describe(\"The unique identifier of the created user\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs stored with the user\").nullable().optional(),\n nickname: z.string().describe(\"The display name of the user\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the user is currently active in the system\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp (in milliseconds) when the user was created\").nullable().optional(),\n profile_url: z.string().describe(\"URL of the user's profile image\").nullable().optional(),\n access_token: z.string().describe(\"Access token for client-side authentication. Only returned if issue_access_token was set to true.\").nullable().optional(),\n last_seen_at: z.number().int().describe(\"Unix timestamp (in milliseconds) of the user's last activity. May be 0 for newly created users.\").nullable().optional(),\n phone_number: z.string().describe(\"User's phone number in E.164 format\").nullable().optional(),\n discovery_keys: z.array(z.string()).describe(\"List of discovery keys associated with the user\").nullable().optional(),\n has_ever_logged_in: z.boolean().describe(\"Whether the user has ever logged in to the application\").nullable().optional(),\n preferred_languages: z.array(z.string()).describe(\"User's preferred language codes for push notifications\").nullable().optional(),\n}).passthrough().describe(\"Response model after successfully creating a new Sendbird user.\");\n\nexport const sendbirdCreateUser = action(\"SENDBIRD_CREATE_USER\", {\n slug: \"sendbird-create-user\",\n name: \"Create Sendbird User\",\n description: \"Creates a new user in Sendbird. Use this to register user accounts before they can join channels or send messages. The user_id must be unique across the application.\",\n input: SendbirdCreateUserInput,\n output: SendbirdCreateUserOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-user.cjs","names":["z","action"],"sources":["../../src/actions/create-user.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sendbird } from \"../app\";\n\nexport const SendbirdCreateUserInput = z.object({\n user_id: z.string().describe(\"Unique identifier for the new user. Must be unique across the application. Can contain alphanumeric characters, underscores, and hyphens.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs to store additional user data. Keys and values must be strings.\").optional(),\n nickname: z.string().describe(\"Display name shown to other users in channels. If not provided, may default to user_id.\").optional(),\n is_active: z.boolean().default(true).describe(\"If true, the user is active and can send/receive messages. Inactive users cannot participate in channels.\").optional(),\n profile_url: z.string().describe(\"URL of the user's profile image. Must be a valid HTTP/HTTPS URL.\").optional(),\n phone_number: z.string().describe(\"User's phone number in E.164 format (e.g., +15551234567). Used for user discovery if enabled.\").optional(),\n profile_file: z.string().describe(\"Binary content of the user's profile image for multipart upload. Use this instead of profile_url when uploading an image file directly.\").optional(),\n discovery_keys: z.array(z.string()).describe(\"List of unique keys used to find this user through the discovery feature (e.g., email addresses, phone numbers).\").optional(),\n has_ever_logged_in: z.boolean().default(false).describe(\"Internal flag indicating if the user has ever logged in. Typically managed by the system.\").optional(),\n issue_access_token: z.boolean().default(false).describe(\"If true, generates and returns an access token for the user that can be used for client-side authentication.\").optional(),\n preferred_languages: z.array(z.string()).describe(\"List of ISO 639-1 language codes indicating user's preferred languages for push notifications.\").optional(),\n}).describe(\"Request model for creating a new Sendbird user.\");\nexport const SendbirdCreateUserOutput = z.object({\n user_id: z.string().describe(\"The unique identifier of the created user\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs stored with the user\").nullable().optional(),\n nickname: z.string().describe(\"The display name of the user\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the user is currently active in the system\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp (in milliseconds) when the user was created\").nullable().optional(),\n profile_url: z.string().describe(\"URL of the user's profile image\").nullable().optional(),\n access_token: z.string().describe(\"Access token for client-side authentication. Only returned if issue_access_token was set to true.\").nullable().optional(),\n last_seen_at: z.number().int().describe(\"Unix timestamp (in milliseconds) of the user's last activity. May be 0 for newly created users.\").nullable().optional(),\n phone_number: z.string().describe(\"User's phone number in E.164 format\").nullable().optional(),\n discovery_keys: z.array(z.string()).describe(\"List of discovery keys associated with the user\").nullable().optional(),\n has_ever_logged_in: z.boolean().describe(\"Whether the user has ever logged in to the application\").nullable().optional(),\n preferred_languages: z.array(z.string()).describe(\"User's preferred language codes for push notifications\").nullable().optional(),\n}).passthrough().describe(\"Response model after successfully creating a new Sendbird user.\");\n\nexport const sendbirdCreateUser: AppAction<\n typeof SendbirdCreateUserInput,\n typeof SendbirdCreateUserOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_CREATE_USER\", {\n slug: \"sendbird-create-user\",\n name: \"Create Sendbird User\",\n description: \"Creates a new user in Sendbird. Use this to register user accounts before they can join channels or send messages. The user_id must be unique across the application.\",\n input: SendbirdCreateUserInput,\n output: SendbirdCreateUserOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I;CACxK,UAAUA,IAAAA,EAAE,O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