@keystrokehq/sendbird 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/add-members-group-channel.cjs +35 -0
- package/dist/actions/add-members-group-channel.cjs.map +1 -0
- package/dist/actions/add-members-group-channel.d.cts +9 -0
- package/dist/actions/add-members-group-channel.d.cts.map +1 -0
- package/dist/actions/add-members-group-channel.d.mts +9 -0
- package/dist/actions/add-members-group-channel.d.mts.map +1 -0
- package/dist/actions/add-members-group-channel.mjs +34 -0
- package/dist/actions/add-members-group-channel.mjs.map +1 -0
- package/dist/actions/ban-user-from-group-channel.cjs +33 -0
- package/dist/actions/ban-user-from-group-channel.cjs.map +1 -0
- package/dist/actions/ban-user-from-group-channel.d.cts +9 -0
- package/dist/actions/ban-user-from-group-channel.d.cts.map +1 -0
- package/dist/actions/ban-user-from-group-channel.d.mts +9 -0
- package/dist/actions/ban-user-from-group-channel.d.mts.map +1 -0
- package/dist/actions/ban-user-from-group-channel.mjs +32 -0
- package/dist/actions/ban-user-from-group-channel.mjs.map +1 -0
- package/dist/actions/create-channel.cjs +77 -0
- package/dist/actions/create-channel.cjs.map +1 -0
- package/dist/actions/create-channel.d.cts +9 -0
- package/dist/actions/create-channel.d.cts.map +1 -0
- package/dist/actions/create-channel.d.mts +9 -0
- package/dist/actions/create-channel.d.mts.map +1 -0
- package/dist/actions/create-channel.mjs +76 -0
- package/dist/actions/create-channel.mjs.map +1 -0
- package/dist/actions/create-user.cjs +41 -0
- package/dist/actions/create-user.cjs.map +1 -0
- package/dist/actions/create-user.d.cts +9 -0
- package/dist/actions/create-user.d.cts.map +1 -0
- package/dist/actions/create-user.d.mts +9 -0
- package/dist/actions/create-user.d.mts.map +1 -0
- package/dist/actions/create-user.mjs +38 -0
- package/dist/actions/create-user.mjs.map +1 -0
- package/dist/actions/delete-channel.cjs +16 -0
- package/dist/actions/delete-channel.cjs.map +1 -0
- package/dist/actions/delete-channel.d.cts +9 -0
- package/dist/actions/delete-channel.d.cts.map +1 -0
- package/dist/actions/delete-channel.d.mts +9 -0
- package/dist/actions/delete-channel.d.mts.map +1 -0
- package/dist/actions/delete-channel.mjs +13 -0
- package/dist/actions/delete-channel.mjs.map +1 -0
- package/dist/actions/delete-message.cjs +19 -0
- package/dist/actions/delete-message.cjs.map +1 -0
- package/dist/actions/delete-message.d.cts +9 -0
- package/dist/actions/delete-message.d.cts.map +1 -0
- package/dist/actions/delete-message.d.mts +9 -0
- package/dist/actions/delete-message.d.mts.map +1 -0
- package/dist/actions/delete-message.mjs +16 -0
- package/dist/actions/delete-message.mjs.map +1 -0
- package/dist/actions/delete-user.cjs +19 -0
- package/dist/actions/delete-user.cjs.map +1 -0
- package/dist/actions/delete-user.d.cts +9 -0
- package/dist/actions/delete-user.d.cts.map +1 -0
- package/dist/actions/delete-user.d.mts +9 -0
- package/dist/actions/delete-user.d.mts.map +1 -0
- package/dist/actions/delete-user.mjs +16 -0
- package/dist/actions/delete-user.mjs.map +1 -0
- package/dist/actions/get-count-preference-of-channel.cjs +26 -0
- package/dist/actions/get-count-preference-of-channel.cjs.map +1 -0
- package/dist/actions/get-count-preference-of-channel.d.cts +9 -0
- package/dist/actions/get-count-preference-of-channel.d.cts.map +1 -0
- package/dist/actions/get-count-preference-of-channel.d.mts +9 -0
- package/dist/actions/get-count-preference-of-channel.d.mts.map +1 -0
- package/dist/actions/get-count-preference-of-channel.mjs +23 -0
- package/dist/actions/get-count-preference-of-channel.mjs.map +1 -0
- package/dist/actions/get-number-of-channels-by-join-status.cjs +40 -0
- package/dist/actions/get-number-of-channels-by-join-status.cjs.map +1 -0
- package/dist/actions/get-number-of-channels-by-join-status.d.cts +9 -0
- package/dist/actions/get-number-of-channels-by-join-status.d.cts.map +1 -0
- package/dist/actions/get-number-of-channels-by-join-status.d.mts +9 -0
- package/dist/actions/get-number-of-channels-by-join-status.d.mts.map +1 -0
- package/dist/actions/get-number-of-channels-by-join-status.mjs +37 -0
- package/dist/actions/get-number-of-channels-by-join-status.mjs.map +1 -0
- package/dist/actions/get-number-of-unread-items.cjs +30 -0
- package/dist/actions/get-number-of-unread-items.cjs.map +1 -0
- package/dist/actions/get-number-of-unread-items.d.cts +9 -0
- package/dist/actions/get-number-of-unread-items.d.cts.map +1 -0
- package/dist/actions/get-number-of-unread-items.d.mts +9 -0
- package/dist/actions/get-number-of-unread-items.d.mts.map +1 -0
- package/dist/actions/get-number-of-unread-items.mjs +27 -0
- package/dist/actions/get-number-of-unread-items.mjs.map +1 -0
- package/dist/actions/index.cjs +75 -0
- package/dist/actions/index.d.cts +38 -0
- package/dist/actions/index.d.mts +38 -0
- package/dist/actions/index.mjs +38 -0
- package/dist/actions/issue-session-token.cjs +23 -0
- package/dist/actions/issue-session-token.cjs.map +1 -0
- package/dist/actions/issue-session-token.d.cts +9 -0
- package/dist/actions/issue-session-token.d.cts.map +1 -0
- package/dist/actions/issue-session-token.d.mts +9 -0
- package/dist/actions/issue-session-token.d.mts.map +1 -0
- package/dist/actions/issue-session-token.mjs +20 -0
- package/dist/actions/issue-session-token.mjs.map +1 -0
- package/dist/actions/leave-group-channels.cjs +21 -0
- package/dist/actions/leave-group-channels.cjs.map +1 -0
- package/dist/actions/leave-group-channels.d.cts +9 -0
- package/dist/actions/leave-group-channels.d.cts.map +1 -0
- package/dist/actions/leave-group-channels.d.mts +9 -0
- package/dist/actions/leave-group-channels.d.mts.map +1 -0
- package/dist/actions/leave-group-channels.mjs +18 -0
- package/dist/actions/leave-group-channels.mjs.map +1 -0
- package/dist/actions/list-banned-members.cjs +31 -0
- package/dist/actions/list-banned-members.cjs.map +1 -0
- package/dist/actions/list-banned-members.d.cts +9 -0
- package/dist/actions/list-banned-members.d.cts.map +1 -0
- package/dist/actions/list-banned-members.d.mts +9 -0
- package/dist/actions/list-banned-members.d.mts.map +1 -0
- package/dist/actions/list-banned-members.mjs +30 -0
- package/dist/actions/list-banned-members.mjs.map +1 -0
- package/dist/actions/list-group-channel-messages.cjs +89 -0
- package/dist/actions/list-group-channel-messages.cjs.map +1 -0
- package/dist/actions/list-group-channel-messages.d.cts +9 -0
- package/dist/actions/list-group-channel-messages.d.cts.map +1 -0
- package/dist/actions/list-group-channel-messages.d.mts +9 -0
- package/dist/actions/list-group-channel-messages.d.mts.map +1 -0
- package/dist/actions/list-group-channel-messages.mjs +88 -0
- package/dist/actions/list-group-channel-messages.mjs.map +1 -0
- package/dist/actions/list-group-channels.cjs +102 -0
- package/dist/actions/list-group-channels.cjs.map +1 -0
- package/dist/actions/list-group-channels.d.cts +9 -0
- package/dist/actions/list-group-channels.d.cts.map +1 -0
- package/dist/actions/list-group-channels.d.mts +9 -0
- package/dist/actions/list-group-channels.d.mts.map +1 -0
- package/dist/actions/list-group-channels.mjs +101 -0
- package/dist/actions/list-group-channels.mjs.map +1 -0
- package/dist/actions/list-members-group-channel.cjs +53 -0
- package/dist/actions/list-members-group-channel.cjs.map +1 -0
- package/dist/actions/list-members-group-channel.d.cts +9 -0
- package/dist/actions/list-members-group-channel.d.cts.map +1 -0
- package/dist/actions/list-members-group-channel.d.mts +9 -0
- package/dist/actions/list-members-group-channel.d.mts.map +1 -0
- package/dist/actions/list-members-group-channel.mjs +52 -0
- package/dist/actions/list-members-group-channel.mjs.map +1 -0
- package/dist/actions/list-operators-custom-channel-type.cjs +29 -0
- package/dist/actions/list-operators-custom-channel-type.cjs.map +1 -0
- package/dist/actions/list-operators-custom-channel-type.d.cts +9 -0
- package/dist/actions/list-operators-custom-channel-type.d.cts.map +1 -0
- package/dist/actions/list-operators-custom-channel-type.d.mts +9 -0
- package/dist/actions/list-operators-custom-channel-type.d.mts.map +1 -0
- package/dist/actions/list-operators-custom-channel-type.mjs +28 -0
- package/dist/actions/list-operators-custom-channel-type.mjs.map +1 -0
- package/dist/actions/list-operators-group-channel.cjs +28 -0
- package/dist/actions/list-operators-group-channel.cjs.map +1 -0
- package/dist/actions/list-operators-group-channel.d.cts +9 -0
- package/dist/actions/list-operators-group-channel.d.cts.map +1 -0
- package/dist/actions/list-operators-group-channel.d.mts +9 -0
- package/dist/actions/list-operators-group-channel.d.mts.map +1 -0
- package/dist/actions/list-operators-group-channel.mjs +27 -0
- package/dist/actions/list-operators-group-channel.mjs.map +1 -0
- package/dist/actions/list-operators-open-channel.cjs +29 -0
- package/dist/actions/list-operators-open-channel.cjs.map +1 -0
- package/dist/actions/list-operators-open-channel.d.cts +9 -0
- package/dist/actions/list-operators-open-channel.d.cts.map +1 -0
- package/dist/actions/list-operators-open-channel.d.mts +9 -0
- package/dist/actions/list-operators-open-channel.d.mts.map +1 -0
- package/dist/actions/list-operators-open-channel.mjs +28 -0
- package/dist/actions/list-operators-open-channel.mjs.map +1 -0
- package/dist/actions/list-users.cjs +50 -0
- package/dist/actions/list-users.cjs.map +1 -0
- package/dist/actions/list-users.d.cts +9 -0
- package/dist/actions/list-users.d.cts.map +1 -0
- package/dist/actions/list-users.d.mts +9 -0
- package/dist/actions/list-users.d.mts.map +1 -0
- package/dist/actions/list-users.mjs +49 -0
- package/dist/actions/list-users.mjs.map +1 -0
- package/dist/actions/mark-all-user-messages-as-read.cjs +16 -0
- package/dist/actions/mark-all-user-messages-as-read.cjs.map +1 -0
- package/dist/actions/mark-all-user-messages-as-read.d.cts +9 -0
- package/dist/actions/mark-all-user-messages-as-read.d.cts.map +1 -0
- package/dist/actions/mark-all-user-messages-as-read.d.mts +9 -0
- package/dist/actions/mark-all-user-messages-as-read.d.mts.map +1 -0
- package/dist/actions/mark-all-user-messages-as-read.mjs +13 -0
- package/dist/actions/mark-all-user-messages-as-read.mjs.map +1 -0
- package/dist/actions/mute-user.cjs +21 -0
- package/dist/actions/mute-user.cjs.map +1 -0
- package/dist/actions/mute-user.d.cts +9 -0
- package/dist/actions/mute-user.d.cts.map +1 -0
- package/dist/actions/mute-user.d.mts +9 -0
- package/dist/actions/mute-user.d.mts.map +1 -0
- package/dist/actions/mute-user.mjs +18 -0
- package/dist/actions/mute-user.mjs.map +1 -0
- package/dist/actions/register-operators-custom-channel-type.cjs +25 -0
- package/dist/actions/register-operators-custom-channel-type.cjs.map +1 -0
- package/dist/actions/register-operators-custom-channel-type.d.cts +9 -0
- package/dist/actions/register-operators-custom-channel-type.d.cts.map +1 -0
- package/dist/actions/register-operators-custom-channel-type.d.mts +9 -0
- package/dist/actions/register-operators-custom-channel-type.d.mts.map +1 -0
- package/dist/actions/register-operators-custom-channel-type.mjs +24 -0
- package/dist/actions/register-operators-custom-channel-type.mjs.map +1 -0
- package/dist/actions/register-operators-group-channel.cjs +28 -0
- package/dist/actions/register-operators-group-channel.cjs.map +1 -0
- package/dist/actions/register-operators-group-channel.d.cts +9 -0
- package/dist/actions/register-operators-group-channel.d.cts.map +1 -0
- package/dist/actions/register-operators-group-channel.d.mts +9 -0
- package/dist/actions/register-operators-group-channel.d.mts.map +1 -0
- package/dist/actions/register-operators-group-channel.mjs +27 -0
- package/dist/actions/register-operators-group-channel.mjs.map +1 -0
- package/dist/actions/register-operators-open-channel.cjs +25 -0
- package/dist/actions/register-operators-open-channel.cjs.map +1 -0
- package/dist/actions/register-operators-open-channel.d.cts +9 -0
- package/dist/actions/register-operators-open-channel.d.cts.map +1 -0
- package/dist/actions/register-operators-open-channel.d.mts +9 -0
- package/dist/actions/register-operators-open-channel.d.mts.map +1 -0
- package/dist/actions/register-operators-open-channel.mjs +24 -0
- package/dist/actions/register-operators-open-channel.mjs.map +1 -0
- package/dist/actions/revoke-all-session-tokens.cjs +19 -0
- package/dist/actions/revoke-all-session-tokens.cjs.map +1 -0
- package/dist/actions/revoke-all-session-tokens.d.cts +9 -0
- package/dist/actions/revoke-all-session-tokens.d.cts.map +1 -0
- package/dist/actions/revoke-all-session-tokens.d.mts +9 -0
- package/dist/actions/revoke-all-session-tokens.d.mts.map +1 -0
- package/dist/actions/revoke-all-session-tokens.mjs +16 -0
- package/dist/actions/revoke-all-session-tokens.mjs.map +1 -0
- package/dist/actions/send-message.cjs +79 -0
- package/dist/actions/send-message.cjs.map +1 -0
- package/dist/actions/send-message.d.cts +9 -0
- package/dist/actions/send-message.d.cts.map +1 -0
- package/dist/actions/send-message.d.mts +9 -0
- package/dist/actions/send-message.d.mts.map +1 -0
- package/dist/actions/send-message.mjs +78 -0
- package/dist/actions/send-message.mjs.map +1 -0
- package/dist/actions/unban-user.cjs +19 -0
- package/dist/actions/unban-user.cjs.map +1 -0
- package/dist/actions/unban-user.d.cts +9 -0
- package/dist/actions/unban-user.d.cts.map +1 -0
- package/dist/actions/unban-user.d.mts +9 -0
- package/dist/actions/unban-user.d.mts.map +1 -0
- package/dist/actions/unban-user.mjs +16 -0
- package/dist/actions/unban-user.mjs.map +1 -0
- package/dist/actions/unmute-user.cjs +26 -0
- package/dist/actions/unmute-user.cjs.map +1 -0
- package/dist/actions/unmute-user.d.cts +9 -0
- package/dist/actions/unmute-user.d.cts.map +1 -0
- package/dist/actions/unmute-user.d.mts +9 -0
- package/dist/actions/unmute-user.d.mts.map +1 -0
- package/dist/actions/unmute-user.mjs +23 -0
- package/dist/actions/unmute-user.mjs.map +1 -0
- package/dist/actions/unregister-operators-custom-channel-type.cjs +23 -0
- package/dist/actions/unregister-operators-custom-channel-type.cjs.map +1 -0
- package/dist/actions/unregister-operators-custom-channel-type.d.cts +9 -0
- package/dist/actions/unregister-operators-custom-channel-type.d.cts.map +1 -0
- package/dist/actions/unregister-operators-custom-channel-type.d.mts +9 -0
- package/dist/actions/unregister-operators-custom-channel-type.d.mts.map +1 -0
- package/dist/actions/unregister-operators-custom-channel-type.mjs +22 -0
- package/dist/actions/unregister-operators-custom-channel-type.mjs.map +1 -0
- package/dist/actions/update-count-preference-of-channel.cjs +28 -0
- package/dist/actions/update-count-preference-of-channel.cjs.map +1 -0
- package/dist/actions/update-count-preference-of-channel.d.cts +9 -0
- package/dist/actions/update-count-preference-of-channel.d.cts.map +1 -0
- package/dist/actions/update-count-preference-of-channel.d.mts +9 -0
- package/dist/actions/update-count-preference-of-channel.d.mts.map +1 -0
- package/dist/actions/update-count-preference-of-channel.mjs +25 -0
- package/dist/actions/update-count-preference-of-channel.mjs.map +1 -0
- package/dist/actions/update-group-channel.cjs +42 -0
- package/dist/actions/update-group-channel.cjs.map +1 -0
- package/dist/actions/update-group-channel.d.cts +9 -0
- package/dist/actions/update-group-channel.d.cts.map +1 -0
- package/dist/actions/update-group-channel.d.mts +9 -0
- package/dist/actions/update-group-channel.d.mts.map +1 -0
- package/dist/actions/update-group-channel.mjs +39 -0
- package/dist/actions/update-group-channel.mjs.map +1 -0
- package/dist/actions/update-message.cjs +54 -0
- package/dist/actions/update-message.cjs.map +1 -0
- package/dist/actions/update-message.d.cts +9 -0
- package/dist/actions/update-message.d.cts.map +1 -0
- package/dist/actions/update-message.d.mts +9 -0
- package/dist/actions/update-message.d.mts.map +1 -0
- package/dist/actions/update-message.mjs +51 -0
- package/dist/actions/update-message.mjs.map +1 -0
- package/dist/actions/update-user.cjs +39 -0
- package/dist/actions/update-user.cjs.map +1 -0
- package/dist/actions/update-user.d.cts +9 -0
- package/dist/actions/update-user.d.cts.map +1 -0
- package/dist/actions/update-user.d.mts +9 -0
- package/dist/actions/update-user.d.mts.map +1 -0
- package/dist/actions/update-user.mjs +36 -0
- package/dist/actions/update-user.mjs.map +1 -0
- package/dist/actions/view-group-channel.cjs +59 -0
- package/dist/actions/view-group-channel.cjs.map +1 -0
- package/dist/actions/view-group-channel.d.cts +9 -0
- package/dist/actions/view-group-channel.d.cts.map +1 -0
- package/dist/actions/view-group-channel.d.mts +9 -0
- package/dist/actions/view-group-channel.d.mts.map +1 -0
- package/dist/actions/view-group-channel.mjs +58 -0
- package/dist/actions/view-group-channel.mjs.map +1 -0
- package/dist/actions/view-message.cjs +67 -0
- package/dist/actions/view-message.cjs.map +1 -0
- package/dist/actions/view-message.d.cts +9 -0
- package/dist/actions/view-message.d.cts.map +1 -0
- package/dist/actions/view-message.d.mts +9 -0
- package/dist/actions/view-message.d.mts.map +1 -0
- package/dist/actions/view-message.mjs +66 -0
- package/dist/actions/view-message.mjs.map +1 -0
- package/dist/actions/view-user.cjs +31 -0
- package/dist/actions/view-user.cjs.map +1 -0
- package/dist/actions/view-user.d.cts +9 -0
- package/dist/actions/view-user.d.cts.map +1 -0
- package/dist/actions/view-user.d.mts +9 -0
- package/dist/actions/view-user.d.mts.map +1 -0
- package/dist/actions/view-user.mjs +28 -0
- package/dist/actions/view-user.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +80 -0
- package/dist/index.d.cts +40 -0
- package/dist/index.d.mts +40 -0
- package/dist/index.mjs +41 -0
- package/package.json +49 -0
|
@@ -0,0 +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.ZodTypeAny = 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.object({}).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.ZodTypeAny = z.object({\n user_id: z.string().describe(\"The unique identifier of the created user\"),\n metadata: z.object({}).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\"),\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}).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":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I;CACxK,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACnI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CAClI,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CACpK,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC9G,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CAC5I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;CACtL,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CAC1K,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CAC9J,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;CACjL,qBAAqBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;AAC/J,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACxE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD;CACpF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3J,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/J,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,qBAAqBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClI,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAE7E,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-user.d.ts
|
|
4
|
+
declare const SendbirdCreateUserInput: z.ZodTypeAny;
|
|
5
|
+
declare const SendbirdCreateUserOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sendbirdCreateUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sendbirdCreateUser };
|
|
9
|
+
//# sourceMappingURL=create-user.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-user.d.cts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAYsB;AAAA,cACjD,wBAAA,EAA0B,CAAA,CAAE,UAaqC;AAAA,cAEjE,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-user.d.ts
|
|
4
|
+
declare const SendbirdCreateUserInput: z.ZodTypeAny;
|
|
5
|
+
declare const SendbirdCreateUserOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sendbirdCreateUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sendbirdCreateUser };
|
|
9
|
+
//# sourceMappingURL=create-user.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-user.d.mts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAYsB;AAAA,cACjD,wBAAA,EAA0B,CAAA,CAAE,UAaqC;AAAA,cAEjE,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const sendbirdCreateUser = action("SENDBIRD_CREATE_USER", {
|
|
4
|
+
slug: "sendbird-create-user",
|
|
5
|
+
name: "Create Sendbird User",
|
|
6
|
+
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.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
user_id: z.string().describe("Unique identifier for the new user. Must be unique across the application. Can contain alphanumeric characters, underscores, and hyphens."),
|
|
9
|
+
metadata: z.object({}).describe("Custom key-value pairs to store additional user data. Keys and values must be strings.").optional(),
|
|
10
|
+
nickname: z.string().describe("Display name shown to other users in channels. If not provided, may default to user_id.").optional(),
|
|
11
|
+
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(),
|
|
12
|
+
profile_url: z.string().describe("URL of the user's profile image. Must be a valid HTTP/HTTPS URL.").optional(),
|
|
13
|
+
phone_number: z.string().describe("User's phone number in E.164 format (e.g., +15551234567). Used for user discovery if enabled.").optional(),
|
|
14
|
+
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(),
|
|
15
|
+
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(),
|
|
16
|
+
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(),
|
|
17
|
+
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(),
|
|
18
|
+
preferred_languages: z.array(z.string()).describe("List of ISO 639-1 language codes indicating user's preferred languages for push notifications.").optional()
|
|
19
|
+
}).describe("Request model for creating a new Sendbird user."),
|
|
20
|
+
output: z.object({
|
|
21
|
+
user_id: z.string().describe("The unique identifier of the created user"),
|
|
22
|
+
metadata: z.object({}).describe("Custom key-value pairs stored with the user").nullable().optional(),
|
|
23
|
+
nickname: z.string().describe("The display name of the user").nullable().optional(),
|
|
24
|
+
is_active: z.boolean().describe("Whether the user is currently active in the system"),
|
|
25
|
+
created_at: z.number().int().describe("Unix timestamp (in milliseconds) when the user was created").nullable().optional(),
|
|
26
|
+
profile_url: z.string().describe("URL of the user's profile image").nullable().optional(),
|
|
27
|
+
access_token: z.string().describe("Access token for client-side authentication. Only returned if issue_access_token was set to true.").nullable().optional(),
|
|
28
|
+
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(),
|
|
29
|
+
phone_number: z.string().describe("User's phone number in E.164 format").nullable().optional(),
|
|
30
|
+
discovery_keys: z.array(z.string()).describe("List of discovery keys associated with the user").nullable().optional(),
|
|
31
|
+
has_ever_logged_in: z.boolean().describe("Whether the user has ever logged in to the application").nullable().optional(),
|
|
32
|
+
preferred_languages: z.array(z.string()).describe("User's preferred language codes for push notifications").nullable().optional()
|
|
33
|
+
}).describe("Response model after successfully creating a new Sendbird user.")
|
|
34
|
+
});
|
|
35
|
+
//#endregion
|
|
36
|
+
export { sendbirdCreateUser };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=create-user.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-user.mjs","names":[],"sources":["../../src/actions/create-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdCreateUserInput: z.ZodTypeAny = 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.object({}).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.ZodTypeAny = z.object({\n user_id: z.string().describe(\"The unique identifier of the created user\"),\n metadata: z.object({}).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\"),\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}).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":";;AAgCA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhCmD,EAAE,OAAO;EAC5D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I;EACxK,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;EACnI,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;EAClI,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;EACpK,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EAC9G,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;EAC5I,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;EACtL,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;EAC1K,oBAAoB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;EAC9J,oBAAoB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;EACjL,qBAAqB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CAC/J,CAAC,CAAC,CAAC,SAAS,iDAoBH;CACP,QApBoD,EAAE,OAAO;EAC7D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;EACxE,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD;EACpF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3J,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/J,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpH,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,qBAAqB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,CAAC,CAAC,CAAC,SAAS,iEAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/delete-channel.ts
|
|
4
|
+
const SendbirdDeleteChannelInput = zod.z.object({ channel_url: zod.z.string().describe("The unique URL identifier of the group channel to delete. This is the channel's unique ID, typically in format like 'sendbird_group_channel_123456' or a custom URL set during channel creation.") }).describe("Request model for deleting a Sendbird group channel.");
|
|
5
|
+
const SendbirdDeleteChannelOutput = zod.z.object({ success: zod.z.boolean().describe("True if the channel was successfully deleted. The deletion is permanent and cannot be undone.") }).describe("Response model for deletion of a group channel.");
|
|
6
|
+
const sendbirdDeleteChannel = require_action.action("SENDBIRD_DELETE_CHANNEL", {
|
|
7
|
+
slug: "sendbird-delete-channel",
|
|
8
|
+
name: "Delete Group Channel",
|
|
9
|
+
description: "Permanently deletes a Sendbird group channel. Use this tool when you need to remove a group channel and all its associated data (messages, members, etc.). WARNING: This action is irreversible. Requires the channel_url identifier of the channel to delete.",
|
|
10
|
+
input: SendbirdDeleteChannelInput,
|
|
11
|
+
output: SendbirdDeleteChannelOutput
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.sendbirdDeleteChannel = sendbirdDeleteChannel;
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=delete-channel.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-channel.cjs","names":["z","action"],"sources":["../../src/actions/delete-channel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdDeleteChannelInput: z.ZodTypeAny = z.object({\n channel_url: z.string().describe(\"The unique URL identifier of the group channel to delete. This is the channel's unique ID, typically in format like 'sendbird_group_channel_123456' or a custom URL set during channel creation.\"),\n}).describe(\"Request model for deleting a Sendbird group channel.\");\nexport const SendbirdDeleteChannelOutput: z.ZodTypeAny = z.object({\n success: z.boolean().describe(\"True if the channel was successfully deleted. The deletion is permanent and cannot be undone.\"),\n}).describe(\"Response model for deletion of a group channel.\");\n\nexport const sendbirdDeleteChannel = action(\"SENDBIRD_DELETE_CHANNEL\", {\n slug: \"sendbird-delete-channel\",\n name: \"Delete Group Channel\",\n description: \"Permanently deletes a Sendbird group channel. Use this tool when you need to remove a group channel and all its associated data (messages, members, etc.). WARNING: This action is irreversible. Requires the channel_url identifier of the channel to delete.\",\n input: SendbirdDeleteChannelInput,\n output: SendbirdDeleteChannelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,EAC/D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kMAAkM,EACrO,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,EAChE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+FAA+F,EAC/H,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAE7D,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-channel.d.ts
|
|
4
|
+
declare const SendbirdDeleteChannelInput: z.ZodTypeAny;
|
|
5
|
+
declare const SendbirdDeleteChannelOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sendbirdDeleteChannel: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sendbirdDeleteChannel };
|
|
9
|
+
//# sourceMappingURL=delete-channel.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-channel.d.cts","names":[],"sources":["../../src/actions/delete-channel.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAEwB;AAAA,cACtD,2BAAA,EAA6B,CAAA,CAAE,UAEkB;AAAA,cAEjD,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-channel.d.ts
|
|
4
|
+
declare const SendbirdDeleteChannelInput: z.ZodTypeAny;
|
|
5
|
+
declare const SendbirdDeleteChannelOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sendbirdDeleteChannel: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sendbirdDeleteChannel };
|
|
9
|
+
//# sourceMappingURL=delete-channel.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-channel.d.mts","names":[],"sources":["../../src/actions/delete-channel.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAEwB;AAAA,cACtD,2BAAA,EAA6B,CAAA,CAAE,UAEkB;AAAA,cAEjD,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const sendbirdDeleteChannel = action("SENDBIRD_DELETE_CHANNEL", {
|
|
4
|
+
slug: "sendbird-delete-channel",
|
|
5
|
+
name: "Delete Group Channel",
|
|
6
|
+
description: "Permanently deletes a Sendbird group channel. Use this tool when you need to remove a group channel and all its associated data (messages, members, etc.). WARNING: This action is irreversible. Requires the channel_url identifier of the channel to delete.",
|
|
7
|
+
input: z.object({ channel_url: z.string().describe("The unique URL identifier of the group channel to delete. This is the channel's unique ID, typically in format like 'sendbird_group_channel_123456' or a custom URL set during channel creation.") }).describe("Request model for deleting a Sendbird group channel."),
|
|
8
|
+
output: z.object({ success: z.boolean().describe("True if the channel was successfully deleted. The deletion is permanent and cannot be undone.") }).describe("Response model for deletion of a group channel.")
|
|
9
|
+
});
|
|
10
|
+
//#endregion
|
|
11
|
+
export { sendbirdDeleteChannel };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=delete-channel.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-channel.mjs","names":[],"sources":["../../src/actions/delete-channel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdDeleteChannelInput: z.ZodTypeAny = z.object({\n channel_url: z.string().describe(\"The unique URL identifier of the group channel to delete. This is the channel's unique ID, typically in format like 'sendbird_group_channel_123456' or a custom URL set during channel creation.\"),\n}).describe(\"Request model for deleting a Sendbird group channel.\");\nexport const SendbirdDeleteChannelOutput: z.ZodTypeAny = z.object({\n success: z.boolean().describe(\"True if the channel was successfully deleted. The deletion is permanent and cannot be undone.\"),\n}).describe(\"Response model for deletion of a group channel.\");\n\nexport const sendbirdDeleteChannel = action(\"SENDBIRD_DELETE_CHANNEL\", {\n slug: \"sendbird-delete-channel\",\n name: \"Delete Group Channel\",\n description: \"Permanently deletes a Sendbird group channel. Use this tool when you need to remove a group channel and all its associated data (messages, members, etc.). WARNING: This action is irreversible. Requires the channel_url identifier of the channel to delete.\",\n input: SendbirdDeleteChannelInput,\n output: SendbirdDeleteChannelOutput,\n});\n"],"mappings":";;AAWA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXsD,EAAE,OAAO,EAC/D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kMAAkM,EACrO,CAAC,CAAC,CAAC,SAAS,sDASH;CACP,QATuD,EAAE,OAAO,EAChE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,+FAA+F,EAC/H,CAAC,CAAC,CAAC,SAAS,iDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/delete-message.ts
|
|
4
|
+
const SendbirdDeleteMessageInput = zod.z.object({
|
|
5
|
+
message_id: zod.z.number().int().describe("Unique numeric ID of the message to delete. Must be a positive integer obtained from message listing or message sending responses."),
|
|
6
|
+
channel_url: zod.z.string().describe("URL-encoded identifier of the group channel containing the message to delete. Can be obtained from channel creation responses or channel listing endpoints.")
|
|
7
|
+
}).describe("Request schema for deleting a Sendbird group channel message.");
|
|
8
|
+
const SendbirdDeleteMessageOutput = zod.z.object({ success: zod.z.boolean().describe("Indicates whether the message was successfully deleted. Always True on successful deletion; errors raise ExecutionFailed.") }).describe("Response schema for successful deletion of a Sendbird message.");
|
|
9
|
+
const sendbirdDeleteMessage = require_action.action("SENDBIRD_DELETE_MESSAGE", {
|
|
10
|
+
slug: "sendbird-delete-message",
|
|
11
|
+
name: "Delete Message",
|
|
12
|
+
description: "Permanently deletes a specific message from a Sendbird group channel. This action cannot be undone. Use this when you need to remove a message that was sent by mistake or contains inappropriate content. Requires both channel_url and message_id, which can be obtained from channel/message listing endpoints.",
|
|
13
|
+
input: SendbirdDeleteMessageInput,
|
|
14
|
+
output: SendbirdDeleteMessageOutput
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.sendbirdDeleteMessage = sendbirdDeleteMessage;
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=delete-message.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-message.cjs","names":["z","action"],"sources":["../../src/actions/delete-message.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdDeleteMessageInput: z.ZodTypeAny = z.object({\n message_id: z.number().int().describe(\"Unique numeric ID of the message to delete. Must be a positive integer obtained from message listing or message sending responses.\"),\n channel_url: z.string().describe(\"URL-encoded identifier of the group channel containing the message to delete. Can be obtained from channel creation responses or channel listing endpoints.\"),\n}).describe(\"Request schema for deleting a Sendbird group channel message.\");\nexport const SendbirdDeleteMessageOutput: z.ZodTypeAny = z.object({\n success: z.boolean().describe(\"Indicates whether the message was successfully deleted. Always True on successful deletion; errors raise ExecutionFailed.\"),\n}).describe(\"Response schema for successful deletion of a Sendbird message.\");\n\nexport const sendbirdDeleteMessage = action(\"SENDBIRD_DELETE_MESSAGE\", {\n slug: \"sendbird-delete-message\",\n name: \"Delete Message\",\n description: \"Permanently deletes a specific message from a Sendbird group channel. This action cannot be undone. Use this when you need to remove a message that was sent by mistake or contains inappropriate content. Requires both channel_url and message_id, which can be obtained from channel/message listing endpoints.\",\n input: SendbirdDeleteMessageInput,\n output: SendbirdDeleteMessageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oIAAoI;CAC1K,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J;AAChM,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,EAChE,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2HAA2H,EAC3J,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAE5E,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-message.d.ts
|
|
4
|
+
declare const SendbirdDeleteMessageInput: z.ZodTypeAny;
|
|
5
|
+
declare const SendbirdDeleteMessageOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sendbirdDeleteMessage: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sendbirdDeleteMessage };
|
|
9
|
+
//# sourceMappingURL=delete-message.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-message.d.cts","names":[],"sources":["../../src/actions/delete-message.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAGiC;AAAA,cAC/D,2BAAA,EAA6B,CAAA,CAAE,UAEiC;AAAA,cAEhE,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-message.d.ts
|
|
4
|
+
declare const SendbirdDeleteMessageInput: z.ZodTypeAny;
|
|
5
|
+
declare const SendbirdDeleteMessageOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sendbirdDeleteMessage: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sendbirdDeleteMessage };
|
|
9
|
+
//# sourceMappingURL=delete-message.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-message.d.mts","names":[],"sources":["../../src/actions/delete-message.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAGiC;AAAA,cAC/D,2BAAA,EAA6B,CAAA,CAAE,UAEiC;AAAA,cAEhE,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const sendbirdDeleteMessage = action("SENDBIRD_DELETE_MESSAGE", {
|
|
4
|
+
slug: "sendbird-delete-message",
|
|
5
|
+
name: "Delete Message",
|
|
6
|
+
description: "Permanently deletes a specific message from a Sendbird group channel. This action cannot be undone. Use this when you need to remove a message that was sent by mistake or contains inappropriate content. Requires both channel_url and message_id, which can be obtained from channel/message listing endpoints.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
message_id: z.number().int().describe("Unique numeric ID of the message to delete. Must be a positive integer obtained from message listing or message sending responses."),
|
|
9
|
+
channel_url: z.string().describe("URL-encoded identifier of the group channel containing the message to delete. Can be obtained from channel creation responses or channel listing endpoints.")
|
|
10
|
+
}).describe("Request schema for deleting a Sendbird group channel message."),
|
|
11
|
+
output: z.object({ success: z.boolean().describe("Indicates whether the message was successfully deleted. Always True on successful deletion; errors raise ExecutionFailed.") }).describe("Response schema for successful deletion of a Sendbird message.")
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { sendbirdDeleteMessage };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=delete-message.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-message.mjs","names":[],"sources":["../../src/actions/delete-message.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdDeleteMessageInput: z.ZodTypeAny = z.object({\n message_id: z.number().int().describe(\"Unique numeric ID of the message to delete. Must be a positive integer obtained from message listing or message sending responses.\"),\n channel_url: z.string().describe(\"URL-encoded identifier of the group channel containing the message to delete. Can be obtained from channel creation responses or channel listing endpoints.\"),\n}).describe(\"Request schema for deleting a Sendbird group channel message.\");\nexport const SendbirdDeleteMessageOutput: z.ZodTypeAny = z.object({\n success: z.boolean().describe(\"Indicates whether the message was successfully deleted. Always True on successful deletion; errors raise ExecutionFailed.\"),\n}).describe(\"Response schema for successful deletion of a Sendbird message.\");\n\nexport const sendbirdDeleteMessage = action(\"SENDBIRD_DELETE_MESSAGE\", {\n slug: \"sendbird-delete-message\",\n name: \"Delete Message\",\n description: \"Permanently deletes a specific message from a Sendbird group channel. This action cannot be undone. Use this when you need to remove a message that was sent by mistake or contains inappropriate content. Requires both channel_url and message_id, which can be obtained from channel/message listing endpoints.\",\n input: SendbirdDeleteMessageInput,\n output: SendbirdDeleteMessageOutput,\n});\n"],"mappings":";;AAYA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZsD,EAAE,OAAO;EAC/D,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oIAAoI;EAC1K,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J;CAChM,CAAC,CAAC,CAAC,SAAS,+DASH;CACP,QATuD,EAAE,OAAO,EAChE,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,2HAA2H,EAC3J,CAAC,CAAC,CAAC,SAAS,gEAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/delete-user.ts
|
|
4
|
+
const SendbirdDeleteUserInput = zod.z.object({
|
|
5
|
+
user_id: zod.z.string().describe("Unique ID of the user to delete."),
|
|
6
|
+
hard_delete: zod.z.boolean().default(false).describe("Whether to permanently delete the user and all associated data.").optional()
|
|
7
|
+
}).describe("Request parameters for deleting a Sendbird user.");
|
|
8
|
+
const SendbirdDeleteUserOutput = zod.z.object({}).describe("Response schema for deleting a Sendbird user (empty on success).");
|
|
9
|
+
const sendbirdDeleteUser = require_action.action("SENDBIRD_DELETE_USER", {
|
|
10
|
+
slug: "sendbird-delete-user",
|
|
11
|
+
name: "Delete Sendbird User",
|
|
12
|
+
description: "Tool to delete a Sendbird user. Use when you need to remove a user from your Sendbird application, optionally permanently.",
|
|
13
|
+
input: SendbirdDeleteUserInput,
|
|
14
|
+
output: SendbirdDeleteUserOutput
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.sendbirdDeleteUser = sendbirdDeleteUser;
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=delete-user.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-user.cjs","names":["z","action"],"sources":["../../src/actions/delete-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdDeleteUserInput: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"Unique ID of the user to delete.\"),\n hard_delete: z.boolean().default(false).describe(\"Whether to permanently delete the user and all associated data.\").optional(),\n}).describe(\"Request parameters for deleting a Sendbird user.\");\nexport const SendbirdDeleteUserOutput: z.ZodTypeAny = z.object({}).describe(\"Response schema for deleting a Sendbird user (empty on success).\");\n\nexport const sendbirdDeleteUser = action(\"SENDBIRD_DELETE_USER\", {\n slug: \"sendbird-delete-user\",\n name: \"Delete Sendbird User\",\n description: \"Tool to delete a Sendbird user. Use when you need to remove a user from your Sendbird application, optionally permanently.\",\n input: SendbirdDeleteUserInput,\n output: SendbirdDeleteUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC/D,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;AAC/H,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAE9I,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-user.d.ts
|
|
4
|
+
declare const SendbirdDeleteUserInput: z.ZodTypeAny;
|
|
5
|
+
declare const SendbirdDeleteUserOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sendbirdDeleteUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sendbirdDeleteUser };
|
|
9
|
+
//# sourceMappingURL=delete-user.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-user.d.cts","names":[],"sources":["../../src/actions/delete-user.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAGuB;AAAA,cAClD,wBAAA,EAA0B,CAAA,CAAE,UAAsG;AAAA,cAElI,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-user.d.ts
|
|
4
|
+
declare const SendbirdDeleteUserInput: z.ZodTypeAny;
|
|
5
|
+
declare const SendbirdDeleteUserOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sendbirdDeleteUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sendbirdDeleteUser };
|
|
9
|
+
//# sourceMappingURL=delete-user.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-user.d.mts","names":[],"sources":["../../src/actions/delete-user.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAGuB;AAAA,cAClD,wBAAA,EAA0B,CAAA,CAAE,UAAsG;AAAA,cAElI,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const sendbirdDeleteUser = action("SENDBIRD_DELETE_USER", {
|
|
4
|
+
slug: "sendbird-delete-user",
|
|
5
|
+
name: "Delete Sendbird User",
|
|
6
|
+
description: "Tool to delete a Sendbird user. Use when you need to remove a user from your Sendbird application, optionally permanently.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
user_id: z.string().describe("Unique ID of the user to delete."),
|
|
9
|
+
hard_delete: z.boolean().default(false).describe("Whether to permanently delete the user and all associated data.").optional()
|
|
10
|
+
}).describe("Request parameters for deleting a Sendbird user."),
|
|
11
|
+
output: z.object({}).describe("Response schema for deleting a Sendbird user (empty on success).")
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { sendbirdDeleteUser };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=delete-user.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-user.mjs","names":[],"sources":["../../src/actions/delete-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdDeleteUserInput: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"Unique ID of the user to delete.\"),\n hard_delete: z.boolean().default(false).describe(\"Whether to permanently delete the user and all associated data.\").optional(),\n}).describe(\"Request parameters for deleting a Sendbird user.\");\nexport const SendbirdDeleteUserOutput: z.ZodTypeAny = z.object({}).describe(\"Response schema for deleting a Sendbird user (empty on success).\");\n\nexport const sendbirdDeleteUser = action(\"SENDBIRD_DELETE_USER\", {\n slug: \"sendbird-delete-user\",\n name: \"Delete Sendbird User\",\n description: \"Tool to delete a Sendbird user. Use when you need to remove a user from your Sendbird application, optionally permanently.\",\n input: SendbirdDeleteUserInput,\n output: SendbirdDeleteUserOutput,\n});\n"],"mappings":";;AAUA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAVmD,EAAE,OAAO;EAC5D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAC/D,aAAa,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC/H,CAAC,CAAC,CAAC,SAAS,kDAOH;CACP,QAPoD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kEAOlE;AACV,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-count-preference-of-channel.ts
|
|
4
|
+
const SendbirdGetCountPreferenceOfChannelInput = zod.z.object({
|
|
5
|
+
user_id: zod.z.string().describe("The unique ID of the user."),
|
|
6
|
+
channel_url: zod.z.string().describe("URL (identifier) of the group channel.")
|
|
7
|
+
}).describe("Request model for retrieving a user's count preference for a specific group channel.");
|
|
8
|
+
const SendbirdGetCountPreferenceOfChannelOutput = zod.z.object({
|
|
9
|
+
channel_url: zod.z.string().describe("The URL of the group channel."),
|
|
10
|
+
count_preference: zod.z.enum([
|
|
11
|
+
"all",
|
|
12
|
+
"unread_message_count",
|
|
13
|
+
"mention_count"
|
|
14
|
+
]).describe("The user's count preference for the channel.")
|
|
15
|
+
}).describe("Response model for a user's count preference of a group channel.");
|
|
16
|
+
const sendbirdGetCountPreferenceOfChannel = require_action.action("SENDBIRD_GET_COUNT_PREFERENCE_OF_CHANNEL", {
|
|
17
|
+
slug: "sendbird-get-count-preference-of-channel",
|
|
18
|
+
name: "Get Count Preference Of Channel",
|
|
19
|
+
description: "Tool to retrieve a user's count preference for a specific group channel. Use after confirming the user and channel exist to determine whether to display all, unread-only, or mention-only counts.",
|
|
20
|
+
input: SendbirdGetCountPreferenceOfChannelInput,
|
|
21
|
+
output: SendbirdGetCountPreferenceOfChannelOutput
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
exports.sendbirdGetCountPreferenceOfChannel = sendbirdGetCountPreferenceOfChannel;
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=get-count-preference-of-channel.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-count-preference-of-channel.cjs","names":["z","action"],"sources":["../../src/actions/get-count-preference-of-channel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdGetCountPreferenceOfChannelInput: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"The unique ID of the user.\"),\n channel_url: z.string().describe(\"URL (identifier) of the group channel.\"),\n}).describe(\"Request model for retrieving a user's count preference for a specific group channel.\");\nexport const SendbirdGetCountPreferenceOfChannelOutput: z.ZodTypeAny = z.object({\n channel_url: z.string().describe(\"The URL of the group channel.\"),\n count_preference: z.enum([\"all\", \"unread_message_count\", \"mention_count\"]).describe(\"The user's count preference for the channel.\"),\n}).describe(\"Response model for a user's count preference of a group channel.\");\n\nexport const sendbirdGetCountPreferenceOfChannel = action(\"SENDBIRD_GET_COUNT_PREFERENCE_OF_CHANNEL\", {\n slug: \"sendbird-get-count-preference-of-channel\",\n name: \"Get Count Preference Of Channel\",\n description: \"Tool to retrieve a user's count preference for a specific group channel. Use after confirming the user and channel exist to determine whether to display all, unread-only, or mention-only counts.\",\n input: SendbirdGetCountPreferenceOfChannelInput,\n output: SendbirdGetCountPreferenceOfChannelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAAyDA,IAAAA,EAAE,OAAO;CAC7E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACzD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;AAC3E,CAAC,CAAC,CAAC,SAAS,sFAAsF;AAClG,MAAa,4CAA0DA,IAAAA,EAAE,OAAO;CAC9E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAChE,kBAAkBA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAwB;CAAe,CAAC,CAAC,CAAC,SAAS,8CAA8C;AACpI,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAE9E,MAAa,sCAAsCC,eAAAA,OAAO,4CAA4C;CACpG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-count-preference-of-channel.d.ts
|
|
4
|
+
declare const SendbirdGetCountPreferenceOfChannelInput: z.ZodTypeAny;
|
|
5
|
+
declare const SendbirdGetCountPreferenceOfChannelOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sendbirdGetCountPreferenceOfChannel: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sendbirdGetCountPreferenceOfChannel };
|
|
9
|
+
//# sourceMappingURL=get-count-preference-of-channel.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-count-preference-of-channel.d.cts","names":[],"sources":["../../src/actions/get-count-preference-of-channel.ts"],"mappings":";;;cAIa,wCAAA,EAA0C,CAAA,CAAE,UAG0C;AAAA,cACtF,yCAAA,EAA2C,CAAA,CAAE,UAGqB;AAAA,cAElE,mCAAA,gCAAmC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-count-preference-of-channel.d.ts
|
|
4
|
+
declare const SendbirdGetCountPreferenceOfChannelInput: z.ZodTypeAny;
|
|
5
|
+
declare const SendbirdGetCountPreferenceOfChannelOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sendbirdGetCountPreferenceOfChannel: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sendbirdGetCountPreferenceOfChannel };
|
|
9
|
+
//# sourceMappingURL=get-count-preference-of-channel.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-count-preference-of-channel.d.mts","names":[],"sources":["../../src/actions/get-count-preference-of-channel.ts"],"mappings":";;;cAIa,wCAAA,EAA0C,CAAA,CAAE,UAG0C;AAAA,cACtF,yCAAA,EAA2C,CAAA,CAAE,UAGqB;AAAA,cAElE,mCAAA,gCAAmC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const sendbirdGetCountPreferenceOfChannel = action("SENDBIRD_GET_COUNT_PREFERENCE_OF_CHANNEL", {
|
|
4
|
+
slug: "sendbird-get-count-preference-of-channel",
|
|
5
|
+
name: "Get Count Preference Of Channel",
|
|
6
|
+
description: "Tool to retrieve a user's count preference for a specific group channel. Use after confirming the user and channel exist to determine whether to display all, unread-only, or mention-only counts.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
user_id: z.string().describe("The unique ID of the user."),
|
|
9
|
+
channel_url: z.string().describe("URL (identifier) of the group channel.")
|
|
10
|
+
}).describe("Request model for retrieving a user's count preference for a specific group channel."),
|
|
11
|
+
output: z.object({
|
|
12
|
+
channel_url: z.string().describe("The URL of the group channel."),
|
|
13
|
+
count_preference: z.enum([
|
|
14
|
+
"all",
|
|
15
|
+
"unread_message_count",
|
|
16
|
+
"mention_count"
|
|
17
|
+
]).describe("The user's count preference for the channel.")
|
|
18
|
+
}).describe("Response model for a user's count preference of a group channel.")
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
export { sendbirdGetCountPreferenceOfChannel };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=get-count-preference-of-channel.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-count-preference-of-channel.mjs","names":[],"sources":["../../src/actions/get-count-preference-of-channel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdGetCountPreferenceOfChannelInput: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"The unique ID of the user.\"),\n channel_url: z.string().describe(\"URL (identifier) of the group channel.\"),\n}).describe(\"Request model for retrieving a user's count preference for a specific group channel.\");\nexport const SendbirdGetCountPreferenceOfChannelOutput: z.ZodTypeAny = z.object({\n channel_url: z.string().describe(\"The URL of the group channel.\"),\n count_preference: z.enum([\"all\", \"unread_message_count\", \"mention_count\"]).describe(\"The user's count preference for the channel.\"),\n}).describe(\"Response model for a user's count preference of a group channel.\");\n\nexport const sendbirdGetCountPreferenceOfChannel = action(\"SENDBIRD_GET_COUNT_PREFERENCE_OF_CHANNEL\", {\n slug: \"sendbird-get-count-preference-of-channel\",\n name: \"Get Count Preference Of Channel\",\n description: \"Tool to retrieve a user's count preference for a specific group channel. Use after confirming the user and channel exist to determine whether to display all, unread-only, or mention-only counts.\",\n input: SendbirdGetCountPreferenceOfChannelInput,\n output: SendbirdGetCountPreferenceOfChannelOutput,\n});\n"],"mappings":";;AAaA,MAAa,sCAAsC,OAAO,4CAA4C;CACpG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAboE,EAAE,OAAO;EAC7E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;EACzD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAC3E,CAAC,CAAC,CAAC,SAAS,sFAUH;CACP,QAVqE,EAAE,OAAO;EAC9E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EAChE,kBAAkB,EAAE,KAAK;GAAC;GAAO;GAAwB;EAAe,CAAC,CAAC,CAAC,SAAS,8CAA8C;CACpI,CAAC,CAAC,CAAC,SAAS,kEAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-number-of-channels-by-join-status.ts
|
|
4
|
+
const SendbirdGetNumberOfChannelsByJoinStatusInput = zod.z.object({
|
|
5
|
+
user_id: zod.z.string().describe("The unique ID of the target user whose group channel count will be retrieved."),
|
|
6
|
+
super_mode: zod.z.enum([
|
|
7
|
+
"all",
|
|
8
|
+
"super",
|
|
9
|
+
"nonsuper"
|
|
10
|
+
]).describe("Filter by channel type. 'super' channels support up to tens of thousands of members; 'nonsuper' regular channels support up to 100 members. Defaults to 'all'.").optional(),
|
|
11
|
+
public_mode: zod.z.enum([
|
|
12
|
+
"all",
|
|
13
|
+
"public",
|
|
14
|
+
"private"
|
|
15
|
+
]).describe("Filter by channel visibility. 'public' channels allow users to join without invitation; 'private' channels require an invitation. Defaults to 'all'.").optional(),
|
|
16
|
+
custom_types: zod.z.array(zod.z.string()).describe("Filter by custom channel types. Only channels matching one of the specified custom types will be counted. Pass an empty list or omit to include all custom types.").optional(),
|
|
17
|
+
distinct_mode: zod.z.enum([
|
|
18
|
+
"all",
|
|
19
|
+
"distinct",
|
|
20
|
+
"nondistinct"
|
|
21
|
+
]).describe("Filter by channel distinctness. 'distinct' channels resume conversations with the same members; 'nondistinct' allows multiple channels with identical member sets. Defaults to 'all'.").optional()
|
|
22
|
+
}).describe("Request model for fetching number of group channels by join status for a user.");
|
|
23
|
+
const SendbirdGetNumberOfChannelsByJoinStatusOutput = zod.z.object({
|
|
24
|
+
total: zod.z.number().int().describe("Total number of group channels associated with the user (sum of joined and invited channels)."),
|
|
25
|
+
joined: zod.z.number().int().default(0).describe("Number of group channels the user is currently a member of (has joined).").nullable().optional(),
|
|
26
|
+
invited: zod.z.number().int().default(0).describe("Number of group channels the user has been invited to but has not yet joined.").nullable().optional(),
|
|
27
|
+
invited_by_friend: zod.z.number().int().default(0).describe("Number of group channels the user has been invited to by a friend (if friend feature is enabled).").nullable().optional(),
|
|
28
|
+
invited_by_non_friend: zod.z.number().int().default(0).describe("Number of group channels the user has been invited to by someone who is not a friend.").nullable().optional()
|
|
29
|
+
}).describe("Response model for group channel count by join status. Contains counts of channels where the user is invited or has joined.");
|
|
30
|
+
const sendbirdGetNumberOfChannelsByJoinStatus = require_action.action("SENDBIRD_GET_NUMBER_OF_CHANNELS_BY_JOIN_STATUS", {
|
|
31
|
+
slug: "sendbird-get-number-of-channels-by-join-status",
|
|
32
|
+
name: "Get User Group Channel Count by Join Status",
|
|
33
|
+
description: "Retrieves the number of group channels for a user, categorized by join status (joined, invited, etc.). Use this tool to get channel count statistics for a specific user, optionally filtered by channel properties like visibility (public/private), distinctness, or super mode. Returns counts of joined channels, invited channels (with friend/non-friend breakdown), and total count.",
|
|
34
|
+
input: SendbirdGetNumberOfChannelsByJoinStatusInput,
|
|
35
|
+
output: SendbirdGetNumberOfChannelsByJoinStatusOutput
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
38
|
+
exports.sendbirdGetNumberOfChannelsByJoinStatus = sendbirdGetNumberOfChannelsByJoinStatus;
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=get-number-of-channels-by-join-status.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-number-of-channels-by-join-status.cjs","names":["z","action"],"sources":["../../src/actions/get-number-of-channels-by-join-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdGetNumberOfChannelsByJoinStatusInput: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"The unique ID of the target user whose group channel count will be retrieved.\"),\n super_mode: z.enum([\"all\", \"super\", \"nonsuper\"]).describe(\"Filter by channel type. 'super' channels support up to tens of thousands of members; 'nonsuper' regular channels support up to 100 members. Defaults to 'all'.\").optional(),\n public_mode: z.enum([\"all\", \"public\", \"private\"]).describe(\"Filter by channel visibility. 'public' channels allow users to join without invitation; 'private' channels require an invitation. Defaults to 'all'.\").optional(),\n custom_types: z.array(z.string()).describe(\"Filter by custom channel types. Only channels matching one of the specified custom types will be counted. Pass an empty list or omit to include all custom types.\").optional(),\n distinct_mode: z.enum([\"all\", \"distinct\", \"nondistinct\"]).describe(\"Filter by channel distinctness. 'distinct' channels resume conversations with the same members; 'nondistinct' allows multiple channels with identical member sets. Defaults to 'all'.\").optional(),\n}).describe(\"Request model for fetching number of group channels by join status for a user.\");\nexport const SendbirdGetNumberOfChannelsByJoinStatusOutput: z.ZodTypeAny = z.object({\n total: z.number().int().describe(\"Total number of group channels associated with the user (sum of joined and invited channels).\"),\n joined: z.number().int().default(0).describe(\"Number of group channels the user is currently a member of (has joined).\").nullable().optional(),\n invited: z.number().int().default(0).describe(\"Number of group channels the user has been invited to but has not yet joined.\").nullable().optional(),\n invited_by_friend: z.number().int().default(0).describe(\"Number of group channels the user has been invited to by a friend (if friend feature is enabled).\").nullable().optional(),\n invited_by_non_friend: z.number().int().default(0).describe(\"Number of group channels the user has been invited to by someone who is not a friend.\").nullable().optional(),\n}).describe(\"Response model for group channel count by join status. Contains counts of channels where the user is invited or has joined.\");\n\nexport const sendbirdGetNumberOfChannelsByJoinStatus = action(\"SENDBIRD_GET_NUMBER_OF_CHANNELS_BY_JOIN_STATUS\", {\n slug: \"sendbird-get-number-of-channels-by-join-status\",\n name: \"Get User Group Channel Count by Join Status\",\n description: \"Retrieves the number of group channels for a user, categorized by join status (joined, invited, etc.). Use this tool to get channel count statistics for a specific user, optionally filtered by channel properties like visibility (public/private), distinctness, or super mode. Returns counts of joined channels, invited channels (with friend/non-friend breakdown), and total count.\",\n input: SendbirdGetNumberOfChannelsByJoinStatusInput,\n output: SendbirdGetNumberOfChannelsByJoinStatusOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+CAA6DA,IAAAA,EAAE,OAAO;CACjF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC5G,YAAYA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAS;CAAU,CAAC,CAAC,CAAC,SAAS,gKAAgK,CAAC,CAAC,SAAS;CACrO,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAU;CAAS,CAAC,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;CAC5N,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mKAAmK,CAAC,CAAC,SAAS;CACzN,eAAeA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAY;CAAa,CAAC,CAAC,CAAC,SAAS,uLAAuL,CAAC,CAAC,SAAS;AACvQ,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAC5F,MAAa,gDAA8DA,IAAAA,EAAE,OAAO;CAClF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+FAA+F;CAChI,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7I,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnJ,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjL,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3K,CAAC,CAAC,CAAC,SAAS,6HAA6H;AAEzI,MAAa,0CAA0CC,eAAAA,OAAO,kDAAkD;CAC9G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-number-of-channels-by-join-status.d.ts
|
|
4
|
+
declare const SendbirdGetNumberOfChannelsByJoinStatusInput: z.ZodTypeAny;
|
|
5
|
+
declare const SendbirdGetNumberOfChannelsByJoinStatusOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sendbirdGetNumberOfChannelsByJoinStatus: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sendbirdGetNumberOfChannelsByJoinStatus };
|
|
9
|
+
//# sourceMappingURL=get-number-of-channels-by-join-status.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-number-of-channels-by-join-status.d.cts","names":[],"sources":["../../src/actions/get-number-of-channels-by-join-status.ts"],"mappings":";;;cAIa,4CAAA,EAA8C,CAAA,CAAE,UAMgC;AAAA,cAChF,6CAAA,EAA+C,CAAA,CAAE,UAM4E;AAAA,cAE7H,uCAAA,gCAAuC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-number-of-channels-by-join-status.d.ts
|
|
4
|
+
declare const SendbirdGetNumberOfChannelsByJoinStatusInput: z.ZodTypeAny;
|
|
5
|
+
declare const SendbirdGetNumberOfChannelsByJoinStatusOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sendbirdGetNumberOfChannelsByJoinStatus: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sendbirdGetNumberOfChannelsByJoinStatus };
|
|
9
|
+
//# sourceMappingURL=get-number-of-channels-by-join-status.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-number-of-channels-by-join-status.d.mts","names":[],"sources":["../../src/actions/get-number-of-channels-by-join-status.ts"],"mappings":";;;cAIa,4CAAA,EAA8C,CAAA,CAAE,UAMgC;AAAA,cAChF,6CAAA,EAA+C,CAAA,CAAE,UAM4E;AAAA,cAE7H,uCAAA,gCAAuC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const sendbirdGetNumberOfChannelsByJoinStatus = action("SENDBIRD_GET_NUMBER_OF_CHANNELS_BY_JOIN_STATUS", {
|
|
4
|
+
slug: "sendbird-get-number-of-channels-by-join-status",
|
|
5
|
+
name: "Get User Group Channel Count by Join Status",
|
|
6
|
+
description: "Retrieves the number of group channels for a user, categorized by join status (joined, invited, etc.). Use this tool to get channel count statistics for a specific user, optionally filtered by channel properties like visibility (public/private), distinctness, or super mode. Returns counts of joined channels, invited channels (with friend/non-friend breakdown), and total count.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
user_id: z.string().describe("The unique ID of the target user whose group channel count will be retrieved."),
|
|
9
|
+
super_mode: z.enum([
|
|
10
|
+
"all",
|
|
11
|
+
"super",
|
|
12
|
+
"nonsuper"
|
|
13
|
+
]).describe("Filter by channel type. 'super' channels support up to tens of thousands of members; 'nonsuper' regular channels support up to 100 members. Defaults to 'all'.").optional(),
|
|
14
|
+
public_mode: z.enum([
|
|
15
|
+
"all",
|
|
16
|
+
"public",
|
|
17
|
+
"private"
|
|
18
|
+
]).describe("Filter by channel visibility. 'public' channels allow users to join without invitation; 'private' channels require an invitation. Defaults to 'all'.").optional(),
|
|
19
|
+
custom_types: z.array(z.string()).describe("Filter by custom channel types. Only channels matching one of the specified custom types will be counted. Pass an empty list or omit to include all custom types.").optional(),
|
|
20
|
+
distinct_mode: z.enum([
|
|
21
|
+
"all",
|
|
22
|
+
"distinct",
|
|
23
|
+
"nondistinct"
|
|
24
|
+
]).describe("Filter by channel distinctness. 'distinct' channels resume conversations with the same members; 'nondistinct' allows multiple channels with identical member sets. Defaults to 'all'.").optional()
|
|
25
|
+
}).describe("Request model for fetching number of group channels by join status for a user."),
|
|
26
|
+
output: z.object({
|
|
27
|
+
total: z.number().int().describe("Total number of group channels associated with the user (sum of joined and invited channels)."),
|
|
28
|
+
joined: z.number().int().default(0).describe("Number of group channels the user is currently a member of (has joined).").nullable().optional(),
|
|
29
|
+
invited: z.number().int().default(0).describe("Number of group channels the user has been invited to but has not yet joined.").nullable().optional(),
|
|
30
|
+
invited_by_friend: z.number().int().default(0).describe("Number of group channels the user has been invited to by a friend (if friend feature is enabled).").nullable().optional(),
|
|
31
|
+
invited_by_non_friend: z.number().int().default(0).describe("Number of group channels the user has been invited to by someone who is not a friend.").nullable().optional()
|
|
32
|
+
}).describe("Response model for group channel count by join status. Contains counts of channels where the user is invited or has joined.")
|
|
33
|
+
});
|
|
34
|
+
//#endregion
|
|
35
|
+
export { sendbirdGetNumberOfChannelsByJoinStatus };
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=get-number-of-channels-by-join-status.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-number-of-channels-by-join-status.mjs","names":[],"sources":["../../src/actions/get-number-of-channels-by-join-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdGetNumberOfChannelsByJoinStatusInput: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"The unique ID of the target user whose group channel count will be retrieved.\"),\n super_mode: z.enum([\"all\", \"super\", \"nonsuper\"]).describe(\"Filter by channel type. 'super' channels support up to tens of thousands of members; 'nonsuper' regular channels support up to 100 members. Defaults to 'all'.\").optional(),\n public_mode: z.enum([\"all\", \"public\", \"private\"]).describe(\"Filter by channel visibility. 'public' channels allow users to join without invitation; 'private' channels require an invitation. Defaults to 'all'.\").optional(),\n custom_types: z.array(z.string()).describe(\"Filter by custom channel types. Only channels matching one of the specified custom types will be counted. Pass an empty list or omit to include all custom types.\").optional(),\n distinct_mode: z.enum([\"all\", \"distinct\", \"nondistinct\"]).describe(\"Filter by channel distinctness. 'distinct' channels resume conversations with the same members; 'nondistinct' allows multiple channels with identical member sets. Defaults to 'all'.\").optional(),\n}).describe(\"Request model for fetching number of group channels by join status for a user.\");\nexport const SendbirdGetNumberOfChannelsByJoinStatusOutput: z.ZodTypeAny = z.object({\n total: z.number().int().describe(\"Total number of group channels associated with the user (sum of joined and invited channels).\"),\n joined: z.number().int().default(0).describe(\"Number of group channels the user is currently a member of (has joined).\").nullable().optional(),\n invited: z.number().int().default(0).describe(\"Number of group channels the user has been invited to but has not yet joined.\").nullable().optional(),\n invited_by_friend: z.number().int().default(0).describe(\"Number of group channels the user has been invited to by a friend (if friend feature is enabled).\").nullable().optional(),\n invited_by_non_friend: z.number().int().default(0).describe(\"Number of group channels the user has been invited to by someone who is not a friend.\").nullable().optional(),\n}).describe(\"Response model for group channel count by join status. Contains counts of channels where the user is invited or has joined.\");\n\nexport const sendbirdGetNumberOfChannelsByJoinStatus = action(\"SENDBIRD_GET_NUMBER_OF_CHANNELS_BY_JOIN_STATUS\", {\n slug: \"sendbird-get-number-of-channels-by-join-status\",\n name: \"Get User Group Channel Count by Join Status\",\n description: \"Retrieves the number of group channels for a user, categorized by join status (joined, invited, etc.). Use this tool to get channel count statistics for a specific user, optionally filtered by channel properties like visibility (public/private), distinctness, or super mode. Returns counts of joined channels, invited channels (with friend/non-friend breakdown), and total count.\",\n input: SendbirdGetNumberOfChannelsByJoinStatusInput,\n output: SendbirdGetNumberOfChannelsByJoinStatusOutput,\n});\n"],"mappings":";;AAmBA,MAAa,0CAA0C,OAAO,kDAAkD;CAC9G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnBwE,EAAE,OAAO;EACjF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;EAC5G,YAAY,EAAE,KAAK;GAAC;GAAO;GAAS;EAAU,CAAC,CAAC,CAAC,SAAS,gKAAgK,CAAC,CAAC,SAAS;EACrO,aAAa,EAAE,KAAK;GAAC;GAAO;GAAU;EAAS,CAAC,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;EAC5N,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mKAAmK,CAAC,CAAC,SAAS;EACzN,eAAe,EAAE,KAAK;GAAC;GAAO;GAAY;EAAa,CAAC,CAAC,CAAC,SAAS,uLAAuL,CAAC,CAAC,SAAS;CACvQ,CAAC,CAAC,CAAC,SAAS,gFAaH;CACP,QAbyE,EAAE,OAAO;EAClF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+FAA+F;EAChI,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7I,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnJ,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjL,uBAAuB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3K,CAAC,CAAC,CAAC,SAAS,6HAOF;AACV,CAAC"}
|