@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,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-users.d.ts
|
|
4
|
+
declare const SendbirdListUsersInput: z.ZodTypeAny;
|
|
5
|
+
declare const SendbirdListUsersOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sendbirdListUsers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sendbirdListUsers };
|
|
9
|
+
//# sourceMappingURL=list-users.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-users.d.cts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAY4D;AAAA,cAetF,uBAAA,EAAyB,CAAA,CAAE,UAI8B;AAAA,cAEzD,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-users.d.ts
|
|
4
|
+
declare const SendbirdListUsersInput: z.ZodTypeAny;
|
|
5
|
+
declare const SendbirdListUsersOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sendbirdListUsers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sendbirdListUsers };
|
|
9
|
+
//# sourceMappingURL=list-users.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-users.d.mts","names":[],"sources":["../../src/actions/list-users.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAY4D;AAAA,cAetF,uBAAA,EAAyB,CAAA,CAAE,UAI8B;AAAA,cAEzD,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-users.ts
|
|
4
|
+
const SendbirdListUsersInput = z.object({
|
|
5
|
+
limit: z.number().int().describe("Maximum number of users to return per page (1-100). Defaults to 10 if not specified.").optional(),
|
|
6
|
+
order: z.enum([
|
|
7
|
+
"nickname_alphabetical",
|
|
8
|
+
"created_at",
|
|
9
|
+
"user_id_alphabetical"
|
|
10
|
+
]).describe("Sort order for results. Options: 'nickname_alphabetical' (A-Z by nickname), 'created_at' (newest first), 'user_id_alphabetical' (A-Z by user ID).").optional(),
|
|
11
|
+
token: z.string().describe("Pagination token from the 'next' field of a previous response. Omit for the first page.").optional(),
|
|
12
|
+
nickname: z.string().describe("Filter users by exact nickname match (case-insensitive).").optional(),
|
|
13
|
+
user_ids: z.array(z.string()).describe("Filter to only return specific users by their IDs. Provide as a list of user ID strings.").optional(),
|
|
14
|
+
is_active: z.boolean().describe("Filter by account status. Set to true for active users, false for deactivated users.").optional(),
|
|
15
|
+
custom_type: z.string().describe("Filter users by their custom type classification.").optional(),
|
|
16
|
+
metatag_key: z.string().describe("Filter users who have this metadata key set. Use with metatag_values for key-value filtering.").optional(),
|
|
17
|
+
metatag_values: z.array(z.string()).describe("Filter users by metadata values for the specified metatag_key. Requires metatag_key to be set.").optional(),
|
|
18
|
+
nickname_contains: z.string().describe("Filter users whose nickname contains this substring (case-insensitive partial match).").optional(),
|
|
19
|
+
has_ever_logged_in: z.boolean().describe("Filter by login history. Set to true for users who have logged in, false for never logged in.").optional()
|
|
20
|
+
}).describe("Request parameters for listing Sendbird users with filtering and pagination options.");
|
|
21
|
+
const SendbirdListUsers_SendbirdUserSchema = z.object({
|
|
22
|
+
user_id: z.string().describe("Unique identifier for the user in Sendbird."),
|
|
23
|
+
metadata: z.object({}).describe("Custom key-value metadata associated with the user.").nullable().optional(),
|
|
24
|
+
nickname: z.string().describe("Display name of the user.").nullable().optional(),
|
|
25
|
+
is_active: z.boolean().describe("Whether the user account is active (not deactivated).").nullable().optional(),
|
|
26
|
+
issued_at: z.number().int().describe("Unix timestamp in milliseconds when the user was created.").nullable().optional(),
|
|
27
|
+
custom_type: z.string().describe("Custom type string for categorizing users.").nullable().optional(),
|
|
28
|
+
profile_url: z.string().describe("URL of the user's profile image.").nullable().optional(),
|
|
29
|
+
last_seen_at: z.number().int().describe("Unix timestamp in milliseconds when user was last online.").nullable().optional(),
|
|
30
|
+
last_update_at: z.number().int().describe("Unix timestamp in milliseconds of the last profile update.").nullable().optional(),
|
|
31
|
+
connection_status: z.string().describe("Current connection status: 'online' or 'offline'.").nullable().optional(),
|
|
32
|
+
favorite_topic_ids: z.array(z.string()).describe("List of topic IDs the user has marked as favorites.").nullable().optional(),
|
|
33
|
+
require_auth_for_profile_image: z.boolean().describe("If true, profile image URL requires authentication to access.").nullable().optional()
|
|
34
|
+
}).describe("Represents a Sendbird user with profile and status information.");
|
|
35
|
+
const sendbirdListUsers = action("SENDBIRD_LIST_USERS", {
|
|
36
|
+
slug: "sendbird-list-users",
|
|
37
|
+
name: "List Sendbird Users",
|
|
38
|
+
description: "Retrieves a paginated list of users from your Sendbird application. Use this tool to: - Browse all users in your application - Search for users by nickname or user IDs - Filter users by metadata, custom type, or activity status - Paginate through large user lists using the 'next' token Returns user details including profile info, connection status, and metadata. Results are paginated; use the 'next' token from the response to fetch additional pages.",
|
|
39
|
+
input: SendbirdListUsersInput,
|
|
40
|
+
output: z.object({
|
|
41
|
+
next: z.string().describe("Pagination token to fetch the next page. Pass this as 'token' in the next request. Null if no more pages.").nullable().optional(),
|
|
42
|
+
users: z.array(SendbirdListUsers_SendbirdUserSchema).describe("Array of user objects matching the query criteria."),
|
|
43
|
+
total_count: z.number().int().describe("Total number of users matching the filters. Only returned on the first page of results.").nullable().optional()
|
|
44
|
+
}).describe("Response containing a paginated list of Sendbird users.")
|
|
45
|
+
});
|
|
46
|
+
//#endregion
|
|
47
|
+
export { sendbirdListUsers };
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=list-users.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-users.mjs","names":[],"sources":["../../src/actions/list-users.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdListUsersInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum number of users to return per page (1-100). Defaults to 10 if not specified.\").optional(),\n order: z.enum([\"nickname_alphabetical\", \"created_at\", \"user_id_alphabetical\"]).describe(\"Sort order for results. Options: 'nickname_alphabetical' (A-Z by nickname), 'created_at' (newest first), 'user_id_alphabetical' (A-Z by user ID).\").optional(),\n token: z.string().describe(\"Pagination token from the 'next' field of a previous response. Omit for the first page.\").optional(),\n nickname: z.string().describe(\"Filter users by exact nickname match (case-insensitive).\").optional(),\n user_ids: z.array(z.string()).describe(\"Filter to only return specific users by their IDs. Provide as a list of user ID strings.\").optional(),\n is_active: z.boolean().describe(\"Filter by account status. Set to true for active users, false for deactivated users.\").optional(),\n custom_type: z.string().describe(\"Filter users by their custom type classification.\").optional(),\n metatag_key: z.string().describe(\"Filter users who have this metadata key set. Use with metatag_values for key-value filtering.\").optional(),\n metatag_values: z.array(z.string()).describe(\"Filter users by metadata values for the specified metatag_key. Requires metatag_key to be set.\").optional(),\n nickname_contains: z.string().describe(\"Filter users whose nickname contains this substring (case-insensitive partial match).\").optional(),\n has_ever_logged_in: z.boolean().describe(\"Filter by login history. Set to true for users who have logged in, false for never logged in.\").optional(),\n}).describe(\"Request parameters for listing Sendbird users with filtering and pagination options.\");\nconst SendbirdListUsers_SendbirdUserSchema: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"Unique identifier for the user in Sendbird.\"),\n metadata: z.object({}).describe(\"Custom key-value metadata associated with the user.\").nullable().optional(),\n nickname: z.string().describe(\"Display name of the user.\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the user account is active (not deactivated).\").nullable().optional(),\n issued_at: z.number().int().describe(\"Unix timestamp in milliseconds when the user was created.\").nullable().optional(),\n custom_type: z.string().describe(\"Custom type string for categorizing users.\").nullable().optional(),\n profile_url: z.string().describe(\"URL of the user's profile image.\").nullable().optional(),\n last_seen_at: z.number().int().describe(\"Unix timestamp in milliseconds when user was last online.\").nullable().optional(),\n last_update_at: z.number().int().describe(\"Unix timestamp in milliseconds of the last profile update.\").nullable().optional(),\n connection_status: z.string().describe(\"Current connection status: 'online' or 'offline'.\").nullable().optional(),\n favorite_topic_ids: z.array(z.string()).describe(\"List of topic IDs the user has marked as favorites.\").nullable().optional(),\n require_auth_for_profile_image: z.boolean().describe(\"If true, profile image URL requires authentication to access.\").nullable().optional(),\n}).describe(\"Represents a Sendbird user with profile and status information.\");\nexport const SendbirdListUsersOutput: z.ZodTypeAny = z.object({\n next: z.string().describe(\"Pagination token to fetch the next page. Pass this as 'token' in the next request. Null if no more pages.\").nullable().optional(),\n users: z.array(SendbirdListUsers_SendbirdUserSchema).describe(\"Array of user objects matching the query criteria.\"),\n total_count: z.number().int().describe(\"Total number of users matching the filters. Only returned on the first page of results.\").nullable().optional(),\n}).describe(\"Response containing a paginated list of Sendbird users.\");\n\nexport const sendbirdListUsers = action(\"SENDBIRD_LIST_USERS\", {\n slug: \"sendbird-list-users\",\n name: \"List Sendbird Users\",\n description: \"Retrieves a paginated list of users from your Sendbird application. Use this tool to: - Browse all users in your application - Search for users by nickname or user IDs - Filter users by metadata, custom type, or activity status - Paginate through large user lists using the 'next' token Returns user details including profile info, connection status, and metadata. Results are paginated; use the 'next' token from the response to fetch additional pages.\",\n input: SendbirdListUsersInput,\n output: SendbirdListUsersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuC,EAAE,OAAO;CAC3D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAClI,OAAO,EAAE,KAAK;EAAC;EAAyB;EAAc;CAAsB,CAAC,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;CACtP,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CAC/H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACnG,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CAC5I,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CACjI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC/F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CAC3I,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CACxJ,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CACzI,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;AACrJ,CAAC,CAAC,CAAC,SAAS,sFAAsF;AAClG,MAAM,uCAAqD,EAAE,OAAO;CAClE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC1E,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,gCAAgC,EAAE,QAAQ,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAO7E,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXmD,EAAE,OAAO;EAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3J,OAAO,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,oDAAoD;EAClH,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxJ,CAAC,CAAC,CAAC,SAAS,yDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/mark-all-user-messages-as-read.ts
|
|
4
|
+
const SendbirdMarkAllUserMessagesAsReadInput = zod.z.object({ user_id: zod.z.string().describe("Unique ID of the user whose messages will be marked as read.") }).describe("Request model for marking all messages as read for a user.");
|
|
5
|
+
const SendbirdMarkAllUserMessagesAsReadOutput = zod.z.object({ ts: zod.z.number().int().describe("Timestamp when messages were marked as read.") }).describe("Response model for marking all messages as read.");
|
|
6
|
+
const sendbirdMarkAllUserMessagesAsRead = require_action.action("SENDBIRD_MARK_ALL_USER_MESSAGES_AS_READ", {
|
|
7
|
+
slug: "sendbird-mark-all-user-messages-as-read",
|
|
8
|
+
name: "Mark All User Messages As Read",
|
|
9
|
+
description: "Tool to mark all of a user's messages as read in group channels. Use when resetting unread message counts after a user has viewed all messages.",
|
|
10
|
+
input: SendbirdMarkAllUserMessagesAsReadInput,
|
|
11
|
+
output: SendbirdMarkAllUserMessagesAsReadOutput
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.sendbirdMarkAllUserMessagesAsRead = sendbirdMarkAllUserMessagesAsRead;
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=mark-all-user-messages-as-read.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mark-all-user-messages-as-read.cjs","names":["z","action"],"sources":["../../src/actions/mark-all-user-messages-as-read.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdMarkAllUserMessagesAsReadInput: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"Unique ID of the user whose messages will be marked as read.\"),\n}).describe(\"Request model for marking all messages as read for a user.\");\nexport const SendbirdMarkAllUserMessagesAsReadOutput: z.ZodTypeAny = z.object({\n ts: z.number().int().describe(\"Timestamp when messages were marked as read.\"),\n}).describe(\"Response model for marking all messages as read.\");\n\nexport const sendbirdMarkAllUserMessagesAsRead = action(\"SENDBIRD_MARK_ALL_USER_MESSAGES_AS_READ\", {\n slug: \"sendbird-mark-all-user-messages-as-read\",\n name: \"Mark All User Messages As Read\",\n description: \"Tool to mark all of a user's messages as read in group channels. Use when resetting unread message counts after a user has viewed all messages.\",\n input: SendbirdMarkAllUserMessagesAsReadInput,\n output: SendbirdMarkAllUserMessagesAsReadOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAuDA,IAAAA,EAAE,OAAO,EAC3E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,EAC7F,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAa,0CAAwDA,IAAAA,EAAE,OAAO,EAC5E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,EAC9E,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAE9D,MAAa,oCAAoCC,eAAAA,OAAO,2CAA2C;CACjG,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/mark-all-user-messages-as-read.d.ts
|
|
4
|
+
declare const SendbirdMarkAllUserMessagesAsReadInput: z.ZodTypeAny;
|
|
5
|
+
declare const SendbirdMarkAllUserMessagesAsReadOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sendbirdMarkAllUserMessagesAsRead: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sendbirdMarkAllUserMessagesAsRead };
|
|
9
|
+
//# sourceMappingURL=mark-all-user-messages-as-read.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mark-all-user-messages-as-read.d.cts","names":[],"sources":["../../src/actions/mark-all-user-messages-as-read.ts"],"mappings":";;;cAIa,sCAAA,EAAwC,CAAA,CAAE,UAEkB;AAAA,cAC5D,uCAAA,EAAyC,CAAA,CAAE,UAEO;AAAA,cAElD,iCAAA,gCAAiC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/mark-all-user-messages-as-read.d.ts
|
|
4
|
+
declare const SendbirdMarkAllUserMessagesAsReadInput: z.ZodTypeAny;
|
|
5
|
+
declare const SendbirdMarkAllUserMessagesAsReadOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sendbirdMarkAllUserMessagesAsRead: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sendbirdMarkAllUserMessagesAsRead };
|
|
9
|
+
//# sourceMappingURL=mark-all-user-messages-as-read.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mark-all-user-messages-as-read.d.mts","names":[],"sources":["../../src/actions/mark-all-user-messages-as-read.ts"],"mappings":";;;cAIa,sCAAA,EAAwC,CAAA,CAAE,UAEkB;AAAA,cAC5D,uCAAA,EAAyC,CAAA,CAAE,UAEO;AAAA,cAElD,iCAAA,gCAAiC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const sendbirdMarkAllUserMessagesAsRead = action("SENDBIRD_MARK_ALL_USER_MESSAGES_AS_READ", {
|
|
4
|
+
slug: "sendbird-mark-all-user-messages-as-read",
|
|
5
|
+
name: "Mark All User Messages As Read",
|
|
6
|
+
description: "Tool to mark all of a user's messages as read in group channels. Use when resetting unread message counts after a user has viewed all messages.",
|
|
7
|
+
input: z.object({ user_id: z.string().describe("Unique ID of the user whose messages will be marked as read.") }).describe("Request model for marking all messages as read for a user."),
|
|
8
|
+
output: z.object({ ts: z.number().int().describe("Timestamp when messages were marked as read.") }).describe("Response model for marking all messages as read.")
|
|
9
|
+
});
|
|
10
|
+
//#endregion
|
|
11
|
+
export { sendbirdMarkAllUserMessagesAsRead };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=mark-all-user-messages-as-read.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mark-all-user-messages-as-read.mjs","names":[],"sources":["../../src/actions/mark-all-user-messages-as-read.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdMarkAllUserMessagesAsReadInput: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"Unique ID of the user whose messages will be marked as read.\"),\n}).describe(\"Request model for marking all messages as read for a user.\");\nexport const SendbirdMarkAllUserMessagesAsReadOutput: z.ZodTypeAny = z.object({\n ts: z.number().int().describe(\"Timestamp when messages were marked as read.\"),\n}).describe(\"Response model for marking all messages as read.\");\n\nexport const sendbirdMarkAllUserMessagesAsRead = action(\"SENDBIRD_MARK_ALL_USER_MESSAGES_AS_READ\", {\n slug: \"sendbird-mark-all-user-messages-as-read\",\n name: \"Mark All User Messages As Read\",\n description: \"Tool to mark all of a user's messages as read in group channels. Use when resetting unread message counts after a user has viewed all messages.\",\n input: SendbirdMarkAllUserMessagesAsReadInput,\n output: SendbirdMarkAllUserMessagesAsReadOutput,\n});\n"],"mappings":";;AAWA,MAAa,oCAAoC,OAAO,2CAA2C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXkE,EAAE,OAAO,EAC3E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,EAC7F,CAAC,CAAC,CAAC,SAAS,4DASH;CACP,QATmE,EAAE,OAAO,EAC5E,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,EAC9E,CAAC,CAAC,CAAC,SAAS,kDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/mute-user.ts
|
|
4
|
+
const SendbirdMuteUserInput = zod.z.object({
|
|
5
|
+
seconds: zod.z.number().int().describe("Mute duration in seconds (0 = indefinite)").optional(),
|
|
6
|
+
user_id: zod.z.string().describe("ID of the user to mute"),
|
|
7
|
+
channel_url: zod.z.string().describe("URL-encoded identifier of the target group channel"),
|
|
8
|
+
description: zod.z.string().describe("Custom description for the mute action").optional()
|
|
9
|
+
}).describe("Request model for muting a user in a group channel.");
|
|
10
|
+
const SendbirdMuteUserOutput = zod.z.object({}).describe("Response model for muting a user in a group channel.\nThe Sendbird API returns an empty response body on success (HTTP 200).");
|
|
11
|
+
const sendbirdMuteUser = require_action.action("SENDBIRD_MUTE_USER", {
|
|
12
|
+
slug: "sendbird-mute-user",
|
|
13
|
+
name: "Mute User",
|
|
14
|
+
description: "Tool to mute a user in a group channel. Use when you need to prevent a user from sending messages for a specified duration.",
|
|
15
|
+
input: SendbirdMuteUserInput,
|
|
16
|
+
output: SendbirdMuteUserOutput
|
|
17
|
+
});
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.sendbirdMuteUser = sendbirdMuteUser;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=mute-user.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mute-user.cjs","names":["z","action"],"sources":["../../src/actions/mute-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdMuteUserInput: z.ZodTypeAny = z.object({\n seconds: z.number().int().describe(\"Mute duration in seconds (0 = indefinite)\").optional(),\n user_id: z.string().describe(\"ID of the user to mute\"),\n channel_url: z.string().describe(\"URL-encoded identifier of the target group channel\"),\n description: z.string().describe(\"Custom description for the mute action\").optional(),\n}).describe(\"Request model for muting a user in a group channel.\");\nexport const SendbirdMuteUserOutput: z.ZodTypeAny = z.object({}).describe(\"Response model for muting a user in a group channel.\\nThe Sendbird API returns an empty response body on success (HTTP 200).\");\n\nexport const sendbirdMuteUser = action(\"SENDBIRD_MUTE_USER\", {\n slug: \"sendbird-mute-user\",\n name: \"Mute User\",\n description: \"Tool to mute a user in a group channel. Use when you need to prevent a user from sending messages for a specified duration.\",\n input: SendbirdMuteUserInput,\n output: SendbirdMuteUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsCA,IAAAA,EAAE,OAAO;CAC1D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACzF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACrD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CACrF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,yBAAuCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8HAA8H;AAExM,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/mute-user.d.ts
|
|
4
|
+
declare const SendbirdMuteUserInput: z.ZodTypeAny;
|
|
5
|
+
declare const SendbirdMuteUserOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sendbirdMuteUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sendbirdMuteUser };
|
|
9
|
+
//# sourceMappingURL=mute-user.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mute-user.d.cts","names":[],"sources":["../../src/actions/mute-user.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAK4B;AAAA,cACrD,sBAAA,EAAwB,CAAA,CAAE,UAAkK;AAAA,cAE5L,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/mute-user.d.ts
|
|
4
|
+
declare const SendbirdMuteUserInput: z.ZodTypeAny;
|
|
5
|
+
declare const SendbirdMuteUserOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sendbirdMuteUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sendbirdMuteUser };
|
|
9
|
+
//# sourceMappingURL=mute-user.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mute-user.d.mts","names":[],"sources":["../../src/actions/mute-user.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAK4B;AAAA,cACrD,sBAAA,EAAwB,CAAA,CAAE,UAAkK;AAAA,cAE5L,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const sendbirdMuteUser = action("SENDBIRD_MUTE_USER", {
|
|
4
|
+
slug: "sendbird-mute-user",
|
|
5
|
+
name: "Mute User",
|
|
6
|
+
description: "Tool to mute a user in a group channel. Use when you need to prevent a user from sending messages for a specified duration.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
seconds: z.number().int().describe("Mute duration in seconds (0 = indefinite)").optional(),
|
|
9
|
+
user_id: z.string().describe("ID of the user to mute"),
|
|
10
|
+
channel_url: z.string().describe("URL-encoded identifier of the target group channel"),
|
|
11
|
+
description: z.string().describe("Custom description for the mute action").optional()
|
|
12
|
+
}).describe("Request model for muting a user in a group channel."),
|
|
13
|
+
output: z.object({}).describe("Response model for muting a user in a group channel.\nThe Sendbird API returns an empty response body on success (HTTP 200).")
|
|
14
|
+
});
|
|
15
|
+
//#endregion
|
|
16
|
+
export { sendbirdMuteUser };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=mute-user.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mute-user.mjs","names":[],"sources":["../../src/actions/mute-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdMuteUserInput: z.ZodTypeAny = z.object({\n seconds: z.number().int().describe(\"Mute duration in seconds (0 = indefinite)\").optional(),\n user_id: z.string().describe(\"ID of the user to mute\"),\n channel_url: z.string().describe(\"URL-encoded identifier of the target group channel\"),\n description: z.string().describe(\"Custom description for the mute action\").optional(),\n}).describe(\"Request model for muting a user in a group channel.\");\nexport const SendbirdMuteUserOutput: z.ZodTypeAny = z.object({}).describe(\"Response model for muting a user in a group channel.\\nThe Sendbird API returns an empty response body on success (HTTP 200).\");\n\nexport const sendbirdMuteUser = action(\"SENDBIRD_MUTE_USER\", {\n slug: \"sendbird-mute-user\",\n name: \"Mute User\",\n description: \"Tool to mute a user in a group channel. Use when you need to prevent a user from sending messages for a specified duration.\",\n input: SendbirdMuteUserInput,\n output: SendbirdMuteUserOutput,\n});\n"],"mappings":";;AAYA,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZiD,EAAE,OAAO;EAC1D,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACzF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;EACrD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;EACrF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACtF,CAAC,CAAC,CAAC,SAAS,qDAOH;CACP,QAPkD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8HAOhE;AACV,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/register-operators-custom-channel-type.ts
|
|
4
|
+
const SendbirdRegisterOperatorsCustomChannelTypeInput = zod.z.object({
|
|
5
|
+
custom_type: zod.z.string().describe("The custom channel type identifier. This assigns operator privileges to specified users for all channels that have this custom type. The custom_type must match an existing channel's custom_type value."),
|
|
6
|
+
operator_ids: zod.z.array(zod.z.string()).describe("List of existing Sendbird user IDs to register as operators. At least one user ID is required. Operators have elevated privileges like muting/banning users, deleting messages, and managing channel settings.")
|
|
7
|
+
}).describe("Request model for registering users as operators by custom channel type.");
|
|
8
|
+
const SendbirdRegisterOperatorsCustomChannelType_OperatorSchema = zod.z.object({
|
|
9
|
+
user_id: zod.z.string().describe("Unique identifier of the operator user"),
|
|
10
|
+
metadata: zod.z.object({}).describe("Custom metadata key-value pairs associated with the operator").nullable().optional(),
|
|
11
|
+
nickname: zod.z.string().describe("Display nickname of the operator").nullable().optional(),
|
|
12
|
+
profile_url: zod.z.string().describe("URL of the operator's profile image").nullable().optional()
|
|
13
|
+
}).describe("Operator user object representing a registered operator.");
|
|
14
|
+
const SendbirdRegisterOperatorsCustomChannelTypeOutput = zod.z.object({ operators: zod.z.array(SendbirdRegisterOperatorsCustomChannelType_OperatorSchema).describe("List of operator user objects successfully registered for the custom channel type").nullable().optional() }).describe("Response schema for registering operators by custom channel type.\nReturns the list of successfully registered operators.");
|
|
15
|
+
const sendbirdRegisterOperatorsCustomChannelType = require_action.action("SENDBIRD_REGISTER_OPERATORS_CUSTOM_CHANNEL_TYPE", {
|
|
16
|
+
slug: "sendbird-register-operators-custom-channel-type",
|
|
17
|
+
name: "Register Operators by Custom Channel Type",
|
|
18
|
+
description: "Registers one or more users as operators for all channels with a specified custom channel type. Use this tool when you need to grant operator privileges to users across all channels that share the same custom_type. Operators have elevated permissions including: - Muting and banning users from channels - Deleting messages in channels - Freezing/unfreezing channels - Managing channel settings Prerequisites: - The user IDs must belong to existing Sendbird users - The custom_type should match channels you want to manage Note: This affects all channels with the specified custom_type, not just a single channel.",
|
|
19
|
+
input: SendbirdRegisterOperatorsCustomChannelTypeInput,
|
|
20
|
+
output: SendbirdRegisterOperatorsCustomChannelTypeOutput
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
exports.sendbirdRegisterOperatorsCustomChannelType = sendbirdRegisterOperatorsCustomChannelType;
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=register-operators-custom-channel-type.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register-operators-custom-channel-type.cjs","names":["z","action"],"sources":["../../src/actions/register-operators-custom-channel-type.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdRegisterOperatorsCustomChannelTypeInput: z.ZodTypeAny = z.object({\n custom_type: z.string().describe(\"The custom channel type identifier. This assigns operator privileges to specified users for all channels that have this custom type. The custom_type must match an existing channel's custom_type value.\"),\n operator_ids: z.array(z.string()).describe(\"List of existing Sendbird user IDs to register as operators. At least one user ID is required. Operators have elevated privileges like muting/banning users, deleting messages, and managing channel settings.\"),\n}).describe(\"Request model for registering users as operators by custom channel type.\");\nconst SendbirdRegisterOperatorsCustomChannelType_OperatorSchema: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"Unique identifier of the operator user\"),\n metadata: z.object({}).describe(\"Custom metadata key-value pairs associated with the operator\").nullable().optional(),\n nickname: z.string().describe(\"Display nickname of the operator\").nullable().optional(),\n profile_url: z.string().describe(\"URL of the operator's profile image\").nullable().optional(),\n}).describe(\"Operator user object representing a registered operator.\");\nexport const SendbirdRegisterOperatorsCustomChannelTypeOutput: z.ZodTypeAny = z.object({\n operators: z.array(SendbirdRegisterOperatorsCustomChannelType_OperatorSchema).describe(\"List of operator user objects successfully registered for the custom channel type\").nullable().optional(),\n}).describe(\"Response schema for registering operators by custom channel type.\\nReturns the list of successfully registered operators.\");\n\nexport const sendbirdRegisterOperatorsCustomChannelType = action(\"SENDBIRD_REGISTER_OPERATORS_CUSTOM_CHANNEL_TYPE\", {\n slug: \"sendbird-register-operators-custom-channel-type\",\n name: \"Register Operators by Custom Channel Type\",\n description: \"Registers one or more users as operators for all channels with a specified custom channel type. Use this tool when you need to grant operator privileges to users across all channels that share the same custom_type. Operators have elevated permissions including: - Muting and banning users from channels - Deleting messages in channels - Freezing/unfreezing channels - Managing channel settings Prerequisites: - The user IDs must belong to existing Sendbird users - The custom_type should match channels you want to manage Note: This affects all channels with the specified custom_type, not just a single channel.\",\n input: SendbirdRegisterOperatorsCustomChannelTypeInput,\n output: SendbirdRegisterOperatorsCustomChannelTypeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kDAAgEA,IAAAA,EAAE,OAAO;CACpF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0MAA0M;CAC3O,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gNAAgN;AAC7P,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAM,4DAA0EA,IAAAA,EAAE,OAAO;CACvF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACrE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAa,mDAAiEA,IAAAA,EAAE,OAAO,EACrF,WAAWA,IAAAA,EAAE,MAAM,yDAAyD,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAClM,CAAC,CAAC,CAAC,SAAS,2HAA2H;AAEvI,MAAa,6CAA6CC,eAAAA,OAAO,mDAAmD;CAClH,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/register-operators-custom-channel-type.d.ts
|
|
4
|
+
declare const SendbirdRegisterOperatorsCustomChannelTypeInput: z.ZodTypeAny;
|
|
5
|
+
declare const SendbirdRegisterOperatorsCustomChannelTypeOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sendbirdRegisterOperatorsCustomChannelType: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sendbirdRegisterOperatorsCustomChannelType };
|
|
9
|
+
//# sourceMappingURL=register-operators-custom-channel-type.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register-operators-custom-channel-type.d.cts","names":[],"sources":["../../src/actions/register-operators-custom-channel-type.ts"],"mappings":";;;cAIa,+CAAA,EAAiD,CAAA,CAAE,UAGuB;AAAA,cAO1E,gDAAA,EAAkD,CAAA,CAAE,UAEuE;AAAA,cAE3H,0CAAA,gCAA0C,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/register-operators-custom-channel-type.d.ts
|
|
4
|
+
declare const SendbirdRegisterOperatorsCustomChannelTypeInput: z.ZodTypeAny;
|
|
5
|
+
declare const SendbirdRegisterOperatorsCustomChannelTypeOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sendbirdRegisterOperatorsCustomChannelType: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sendbirdRegisterOperatorsCustomChannelType };
|
|
9
|
+
//# sourceMappingURL=register-operators-custom-channel-type.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register-operators-custom-channel-type.d.mts","names":[],"sources":["../../src/actions/register-operators-custom-channel-type.ts"],"mappings":";;;cAIa,+CAAA,EAAiD,CAAA,CAAE,UAGuB;AAAA,cAO1E,gDAAA,EAAkD,CAAA,CAAE,UAEuE;AAAA,cAE3H,0CAAA,gCAA0C,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/register-operators-custom-channel-type.ts
|
|
4
|
+
const SendbirdRegisterOperatorsCustomChannelTypeInput = z.object({
|
|
5
|
+
custom_type: z.string().describe("The custom channel type identifier. This assigns operator privileges to specified users for all channels that have this custom type. The custom_type must match an existing channel's custom_type value."),
|
|
6
|
+
operator_ids: z.array(z.string()).describe("List of existing Sendbird user IDs to register as operators. At least one user ID is required. Operators have elevated privileges like muting/banning users, deleting messages, and managing channel settings.")
|
|
7
|
+
}).describe("Request model for registering users as operators by custom channel type.");
|
|
8
|
+
const SendbirdRegisterOperatorsCustomChannelType_OperatorSchema = z.object({
|
|
9
|
+
user_id: z.string().describe("Unique identifier of the operator user"),
|
|
10
|
+
metadata: z.object({}).describe("Custom metadata key-value pairs associated with the operator").nullable().optional(),
|
|
11
|
+
nickname: z.string().describe("Display nickname of the operator").nullable().optional(),
|
|
12
|
+
profile_url: z.string().describe("URL of the operator's profile image").nullable().optional()
|
|
13
|
+
}).describe("Operator user object representing a registered operator.");
|
|
14
|
+
const sendbirdRegisterOperatorsCustomChannelType = action("SENDBIRD_REGISTER_OPERATORS_CUSTOM_CHANNEL_TYPE", {
|
|
15
|
+
slug: "sendbird-register-operators-custom-channel-type",
|
|
16
|
+
name: "Register Operators by Custom Channel Type",
|
|
17
|
+
description: "Registers one or more users as operators for all channels with a specified custom channel type. Use this tool when you need to grant operator privileges to users across all channels that share the same custom_type. Operators have elevated permissions including: - Muting and banning users from channels - Deleting messages in channels - Freezing/unfreezing channels - Managing channel settings Prerequisites: - The user IDs must belong to existing Sendbird users - The custom_type should match channels you want to manage Note: This affects all channels with the specified custom_type, not just a single channel.",
|
|
18
|
+
input: SendbirdRegisterOperatorsCustomChannelTypeInput,
|
|
19
|
+
output: z.object({ operators: z.array(SendbirdRegisterOperatorsCustomChannelType_OperatorSchema).describe("List of operator user objects successfully registered for the custom channel type").nullable().optional() }).describe("Response schema for registering operators by custom channel type.\nReturns the list of successfully registered operators.")
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
export { sendbirdRegisterOperatorsCustomChannelType };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=register-operators-custom-channel-type.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register-operators-custom-channel-type.mjs","names":[],"sources":["../../src/actions/register-operators-custom-channel-type.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdRegisterOperatorsCustomChannelTypeInput: z.ZodTypeAny = z.object({\n custom_type: z.string().describe(\"The custom channel type identifier. This assigns operator privileges to specified users for all channels that have this custom type. The custom_type must match an existing channel's custom_type value.\"),\n operator_ids: z.array(z.string()).describe(\"List of existing Sendbird user IDs to register as operators. At least one user ID is required. Operators have elevated privileges like muting/banning users, deleting messages, and managing channel settings.\"),\n}).describe(\"Request model for registering users as operators by custom channel type.\");\nconst SendbirdRegisterOperatorsCustomChannelType_OperatorSchema: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"Unique identifier of the operator user\"),\n metadata: z.object({}).describe(\"Custom metadata key-value pairs associated with the operator\").nullable().optional(),\n nickname: z.string().describe(\"Display nickname of the operator\").nullable().optional(),\n profile_url: z.string().describe(\"URL of the operator's profile image\").nullable().optional(),\n}).describe(\"Operator user object representing a registered operator.\");\nexport const SendbirdRegisterOperatorsCustomChannelTypeOutput: z.ZodTypeAny = z.object({\n operators: z.array(SendbirdRegisterOperatorsCustomChannelType_OperatorSchema).describe(\"List of operator user objects successfully registered for the custom channel type\").nullable().optional(),\n}).describe(\"Response schema for registering operators by custom channel type.\\nReturns the list of successfully registered operators.\");\n\nexport const sendbirdRegisterOperatorsCustomChannelType = action(\"SENDBIRD_REGISTER_OPERATORS_CUSTOM_CHANNEL_TYPE\", {\n slug: \"sendbird-register-operators-custom-channel-type\",\n name: \"Register Operators by Custom Channel Type\",\n description: \"Registers one or more users as operators for all channels with a specified custom channel type. Use this tool when you need to grant operator privileges to users across all channels that share the same custom_type. Operators have elevated permissions including: - Muting and banning users from channels - Deleting messages in channels - Freezing/unfreezing channels - Managing channel settings Prerequisites: - The user IDs must belong to existing Sendbird users - The custom_type should match channels you want to manage Note: This affects all channels with the specified custom_type, not just a single channel.\",\n input: SendbirdRegisterOperatorsCustomChannelTypeInput,\n output: SendbirdRegisterOperatorsCustomChannelTypeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kDAAgE,EAAE,OAAO;CACpF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0MAA0M;CAC3O,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gNAAgN;AAC7P,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAM,4DAA0E,EAAE,OAAO;CACvF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACrE,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAKtE,MAAa,6CAA6C,OAAO,mDAAmD;CAClH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT4E,EAAE,OAAO,EACrF,WAAW,EAAE,MAAM,yDAAyD,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAClM,CAAC,CAAC,CAAC,SAAS,2HAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/register-operators-group-channel.ts
|
|
4
|
+
const SendbirdRegisterOperatorsGroupChannelInput = zod.z.object({
|
|
5
|
+
user_ids: zod.z.array(zod.z.string()).describe("List of user IDs to register as operators"),
|
|
6
|
+
channel_url: zod.z.string().describe("URL-encoded identifier of the group channel")
|
|
7
|
+
}).describe("Request parameters for registering operators to a Sendbird group channel.");
|
|
8
|
+
const SendbirdRegisterOperatorsGroupChannel_OperatorSchema = zod.z.object({
|
|
9
|
+
user_id: zod.z.string().describe("Unique ID of the operator user"),
|
|
10
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom metadata key-value pairs for the operator").nullable().optional(),
|
|
11
|
+
nickname: zod.z.string().describe("Nickname of the operator").nullable().optional(),
|
|
12
|
+
profile_url: zod.z.string().describe("Profile image URL of the operator").nullable().optional()
|
|
13
|
+
}).describe("Operator object returned by Sendbird after registration.");
|
|
14
|
+
const SendbirdRegisterOperatorsGroupChannelOutput = zod.z.object({
|
|
15
|
+
operators: zod.z.array(SendbirdRegisterOperatorsGroupChannel_OperatorSchema).describe("List of operator objects after registration"),
|
|
16
|
+
total_count: zod.z.number().int().describe("Total number of operators in the group channel")
|
|
17
|
+
}).describe("Response schema after registering operators to a group channel.");
|
|
18
|
+
const sendbirdRegisterOperatorsGroupChannel = require_action.action("SENDBIRD_REGISTER_OPERATORS_GROUP_CHANNEL", {
|
|
19
|
+
slug: "sendbird-register-operators-group-channel",
|
|
20
|
+
name: "Register Group Channel Operators",
|
|
21
|
+
description: "Tool to register one or more users as operators in a Sendbird group channel. Use when elevating permissions of existing channel members.",
|
|
22
|
+
input: SendbirdRegisterOperatorsGroupChannelInput,
|
|
23
|
+
output: SendbirdRegisterOperatorsGroupChannelOutput
|
|
24
|
+
});
|
|
25
|
+
//#endregion
|
|
26
|
+
exports.sendbirdRegisterOperatorsGroupChannel = sendbirdRegisterOperatorsGroupChannel;
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=register-operators-group-channel.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register-operators-group-channel.cjs","names":["z","action"],"sources":["../../src/actions/register-operators-group-channel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdRegisterOperatorsGroupChannelInput: z.ZodTypeAny = z.object({\n user_ids: z.array(z.string()).describe(\"List of user IDs to register as operators\"),\n channel_url: z.string().describe(\"URL-encoded identifier of the group channel\"),\n}).describe(\"Request parameters for registering operators to a Sendbird group channel.\");\nconst SendbirdRegisterOperatorsGroupChannel_OperatorSchema: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"Unique ID of the operator user\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata key-value pairs for the operator\").nullable().optional(),\n nickname: z.string().describe(\"Nickname of the operator\").nullable().optional(),\n profile_url: z.string().describe(\"Profile image URL of the operator\").nullable().optional(),\n}).describe(\"Operator object returned by Sendbird after registration.\");\nexport const SendbirdRegisterOperatorsGroupChannelOutput: z.ZodTypeAny = z.object({\n operators: z.array(SendbirdRegisterOperatorsGroupChannel_OperatorSchema).describe(\"List of operator objects after registration\"),\n total_count: z.number().int().describe(\"Total number of operators in the group channel\"),\n}).describe(\"Response schema after registering operators to a group channel.\");\n\nexport const sendbirdRegisterOperatorsGroupChannel = action(\"SENDBIRD_REGISTER_OPERATORS_GROUP_CHANNEL\", {\n slug: \"sendbird-register-operators-group-channel\",\n name: \"Register Group Channel Operators\",\n description: \"Tool to register one or more users as operators in a Sendbird group channel. Use when elevating permissions of existing channel members.\",\n input: SendbirdRegisterOperatorsGroupChannelInput,\n output: SendbirdRegisterOperatorsGroupChannelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA2DA,IAAAA,EAAE,OAAO;CAC/E,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C;CAClF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;AAChF,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACvF,MAAM,uDAAqEA,IAAAA,EAAE,OAAO;CAClF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC7D,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAa,8CAA4DA,IAAAA,EAAE,OAAO;CAChF,WAAWA,IAAAA,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,6CAA6C;CAC/H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD;AACzF,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAE7E,MAAa,wCAAwCC,eAAAA,OAAO,6CAA6C;CACvG,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/register-operators-group-channel.d.ts
|
|
4
|
+
declare const SendbirdRegisterOperatorsGroupChannelInput: z.ZodTypeAny;
|
|
5
|
+
declare const SendbirdRegisterOperatorsGroupChannelOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sendbirdRegisterOperatorsGroupChannel: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sendbirdRegisterOperatorsGroupChannel };
|
|
9
|
+
//# sourceMappingURL=register-operators-group-channel.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register-operators-group-channel.d.cts","names":[],"sources":["../../src/actions/register-operators-group-channel.ts"],"mappings":";;;cAIa,0CAAA,EAA4C,CAAA,CAAE,UAG6B;AAAA,cAO3E,2CAAA,EAA6C,CAAA,CAAE,UAGkB;AAAA,cAEjE,qCAAA,gCAAqC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/register-operators-group-channel.d.ts
|
|
4
|
+
declare const SendbirdRegisterOperatorsGroupChannelInput: z.ZodTypeAny;
|
|
5
|
+
declare const SendbirdRegisterOperatorsGroupChannelOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sendbirdRegisterOperatorsGroupChannel: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sendbirdRegisterOperatorsGroupChannel };
|
|
9
|
+
//# sourceMappingURL=register-operators-group-channel.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register-operators-group-channel.d.mts","names":[],"sources":["../../src/actions/register-operators-group-channel.ts"],"mappings":";;;cAIa,0CAAA,EAA4C,CAAA,CAAE,UAG6B;AAAA,cAO3E,2CAAA,EAA6C,CAAA,CAAE,UAGkB;AAAA,cAEjE,qCAAA,gCAAqC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/register-operators-group-channel.ts
|
|
4
|
+
const SendbirdRegisterOperatorsGroupChannelInput = z.object({
|
|
5
|
+
user_ids: z.array(z.string()).describe("List of user IDs to register as operators"),
|
|
6
|
+
channel_url: z.string().describe("URL-encoded identifier of the group channel")
|
|
7
|
+
}).describe("Request parameters for registering operators to a Sendbird group channel.");
|
|
8
|
+
const SendbirdRegisterOperatorsGroupChannel_OperatorSchema = z.object({
|
|
9
|
+
user_id: z.string().describe("Unique ID of the operator user"),
|
|
10
|
+
metadata: z.record(z.string(), z.unknown()).describe("Custom metadata key-value pairs for the operator").nullable().optional(),
|
|
11
|
+
nickname: z.string().describe("Nickname of the operator").nullable().optional(),
|
|
12
|
+
profile_url: z.string().describe("Profile image URL of the operator").nullable().optional()
|
|
13
|
+
}).describe("Operator object returned by Sendbird after registration.");
|
|
14
|
+
const sendbirdRegisterOperatorsGroupChannel = action("SENDBIRD_REGISTER_OPERATORS_GROUP_CHANNEL", {
|
|
15
|
+
slug: "sendbird-register-operators-group-channel",
|
|
16
|
+
name: "Register Group Channel Operators",
|
|
17
|
+
description: "Tool to register one or more users as operators in a Sendbird group channel. Use when elevating permissions of existing channel members.",
|
|
18
|
+
input: SendbirdRegisterOperatorsGroupChannelInput,
|
|
19
|
+
output: z.object({
|
|
20
|
+
operators: z.array(SendbirdRegisterOperatorsGroupChannel_OperatorSchema).describe("List of operator objects after registration"),
|
|
21
|
+
total_count: z.number().int().describe("Total number of operators in the group channel")
|
|
22
|
+
}).describe("Response schema after registering operators to a group channel.")
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
export { sendbirdRegisterOperatorsGroupChannel };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=register-operators-group-channel.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register-operators-group-channel.mjs","names":[],"sources":["../../src/actions/register-operators-group-channel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdRegisterOperatorsGroupChannelInput: z.ZodTypeAny = z.object({\n user_ids: z.array(z.string()).describe(\"List of user IDs to register as operators\"),\n channel_url: z.string().describe(\"URL-encoded identifier of the group channel\"),\n}).describe(\"Request parameters for registering operators to a Sendbird group channel.\");\nconst SendbirdRegisterOperatorsGroupChannel_OperatorSchema: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"Unique ID of the operator user\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata key-value pairs for the operator\").nullable().optional(),\n nickname: z.string().describe(\"Nickname of the operator\").nullable().optional(),\n profile_url: z.string().describe(\"Profile image URL of the operator\").nullable().optional(),\n}).describe(\"Operator object returned by Sendbird after registration.\");\nexport const SendbirdRegisterOperatorsGroupChannelOutput: z.ZodTypeAny = z.object({\n operators: z.array(SendbirdRegisterOperatorsGroupChannel_OperatorSchema).describe(\"List of operator objects after registration\"),\n total_count: z.number().int().describe(\"Total number of operators in the group channel\"),\n}).describe(\"Response schema after registering operators to a group channel.\");\n\nexport const sendbirdRegisterOperatorsGroupChannel = action(\"SENDBIRD_REGISTER_OPERATORS_GROUP_CHANNEL\", {\n slug: \"sendbird-register-operators-group-channel\",\n name: \"Register Group Channel Operators\",\n description: \"Tool to register one or more users as operators in a Sendbird group channel. Use when elevating permissions of existing channel members.\",\n input: SendbirdRegisterOperatorsGroupChannelInput,\n output: SendbirdRegisterOperatorsGroupChannelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA2D,EAAE,OAAO;CAC/E,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C;CAClF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;AAChF,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACvF,MAAM,uDAAqE,EAAE,OAAO;CAClF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC7D,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAMtE,MAAa,wCAAwC,OAAO,6CAA6C;CACvG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVuE,EAAE,OAAO;EAChF,WAAW,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,6CAA6C;EAC/H,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD;CACzF,CAAC,CAAC,CAAC,SAAS,iEAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/register-operators-open-channel.ts
|
|
4
|
+
const SendbirdRegisterOperatorsOpenChannelInput = zod.z.object({
|
|
5
|
+
user_ids: zod.z.array(zod.z.string()).describe("List of user IDs to register as operators (at least one)"),
|
|
6
|
+
channel_url: zod.z.string().describe("URL-encoded identifier of the open channel")
|
|
7
|
+
}).describe("Request model for registering operators to an open channel.");
|
|
8
|
+
const SendbirdRegisterOperatorsOpenChannel_OperatorSchema = zod.z.object({
|
|
9
|
+
user_id: zod.z.string().describe("User ID of the operator"),
|
|
10
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom metadata for the operator").nullable().optional(),
|
|
11
|
+
nickname: zod.z.string().describe("Nickname of the operator").nullable().optional(),
|
|
12
|
+
profile_url: zod.z.string().describe("Profile image URL of the operator").nullable().optional()
|
|
13
|
+
}).describe("Operator information in an open channel.");
|
|
14
|
+
const SendbirdRegisterOperatorsOpenChannelOutput = zod.z.object({ operators: zod.z.array(SendbirdRegisterOperatorsOpenChannel_OperatorSchema).describe("List of operators registered to the open channel") }).describe("Response model for registered operators in an open channel.");
|
|
15
|
+
const sendbirdRegisterOperatorsOpenChannel = require_action.action("SENDBIRD_REGISTER_OPERATORS_OPEN_CHANNEL", {
|
|
16
|
+
slug: "sendbird-register-operators-open-channel",
|
|
17
|
+
name: "Register Operators to Open Channel",
|
|
18
|
+
description: "Tool to register operators to an open channel. Use after creating or updating an open channel when you need to assign operator roles.",
|
|
19
|
+
input: SendbirdRegisterOperatorsOpenChannelInput,
|
|
20
|
+
output: SendbirdRegisterOperatorsOpenChannelOutput
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
exports.sendbirdRegisterOperatorsOpenChannel = sendbirdRegisterOperatorsOpenChannel;
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=register-operators-open-channel.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register-operators-open-channel.cjs","names":["z","action"],"sources":["../../src/actions/register-operators-open-channel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdRegisterOperatorsOpenChannelInput: z.ZodTypeAny = z.object({\n user_ids: z.array(z.string()).describe(\"List of user IDs to register as operators (at least one)\"),\n channel_url: z.string().describe(\"URL-encoded identifier of the open channel\"),\n}).describe(\"Request model for registering operators to an open channel.\");\nconst SendbirdRegisterOperatorsOpenChannel_OperatorSchema: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"User ID of the operator\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata for the operator\").nullable().optional(),\n nickname: z.string().describe(\"Nickname of the operator\").nullable().optional(),\n profile_url: z.string().describe(\"Profile image URL of the operator\").nullable().optional(),\n}).describe(\"Operator information in an open channel.\");\nexport const SendbirdRegisterOperatorsOpenChannelOutput: z.ZodTypeAny = z.object({\n operators: z.array(SendbirdRegisterOperatorsOpenChannel_OperatorSchema).describe(\"List of operators registered to the open channel\"),\n}).describe(\"Response model for registered operators in an open channel.\");\n\nexport const sendbirdRegisterOperatorsOpenChannel = action(\"SENDBIRD_REGISTER_OPERATORS_OPEN_CHANNEL\", {\n slug: \"sendbird-register-operators-open-channel\",\n name: \"Register Operators to Open Channel\",\n description: \"Tool to register operators to an open channel. Use after creating or updating an open channel when you need to assign operator roles.\",\n input: SendbirdRegisterOperatorsOpenChannelInput,\n output: SendbirdRegisterOperatorsOpenChannelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA0DA,IAAAA,EAAE,OAAO;CAC9E,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0DAA0D;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;AAC/E,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,sDAAoEA,IAAAA,EAAE,OAAO;CACjF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACtD,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAa,6CAA2DA,IAAAA,EAAE,OAAO,EAC/E,WAAWA,IAAAA,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,kDAAkD,EACrI,CAAC,CAAC,CAAC,SAAS,6DAA6D;AAEzE,MAAa,uCAAuCC,eAAAA,OAAO,4CAA4C;CACrG,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/register-operators-open-channel.d.ts
|
|
4
|
+
declare const SendbirdRegisterOperatorsOpenChannelInput: z.ZodTypeAny;
|
|
5
|
+
declare const SendbirdRegisterOperatorsOpenChannelOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sendbirdRegisterOperatorsOpenChannel: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sendbirdRegisterOperatorsOpenChannel };
|
|
9
|
+
//# sourceMappingURL=register-operators-open-channel.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register-operators-open-channel.d.cts","names":[],"sources":["../../src/actions/register-operators-open-channel.ts"],"mappings":";;;cAIa,yCAAA,EAA2C,CAAA,CAAE,UAGgB;AAAA,cAO7D,0CAAA,EAA4C,CAAA,CAAE,UAEe;AAAA,cAE7D,oCAAA,gCAAoC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/register-operators-open-channel.d.ts
|
|
4
|
+
declare const SendbirdRegisterOperatorsOpenChannelInput: z.ZodTypeAny;
|
|
5
|
+
declare const SendbirdRegisterOperatorsOpenChannelOutput: z.ZodTypeAny;
|
|
6
|
+
declare const sendbirdRegisterOperatorsOpenChannel: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { sendbirdRegisterOperatorsOpenChannel };
|
|
9
|
+
//# sourceMappingURL=register-operators-open-channel.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register-operators-open-channel.d.mts","names":[],"sources":["../../src/actions/register-operators-open-channel.ts"],"mappings":";;;cAIa,yCAAA,EAA2C,CAAA,CAAE,UAGgB;AAAA,cAO7D,0CAAA,EAA4C,CAAA,CAAE,UAEe;AAAA,cAE7D,oCAAA,gCAAoC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/register-operators-open-channel.ts
|
|
4
|
+
const SendbirdRegisterOperatorsOpenChannelInput = z.object({
|
|
5
|
+
user_ids: z.array(z.string()).describe("List of user IDs to register as operators (at least one)"),
|
|
6
|
+
channel_url: z.string().describe("URL-encoded identifier of the open channel")
|
|
7
|
+
}).describe("Request model for registering operators to an open channel.");
|
|
8
|
+
const SendbirdRegisterOperatorsOpenChannel_OperatorSchema = z.object({
|
|
9
|
+
user_id: z.string().describe("User ID of the operator"),
|
|
10
|
+
metadata: z.record(z.string(), z.unknown()).describe("Custom metadata for the operator").nullable().optional(),
|
|
11
|
+
nickname: z.string().describe("Nickname of the operator").nullable().optional(),
|
|
12
|
+
profile_url: z.string().describe("Profile image URL of the operator").nullable().optional()
|
|
13
|
+
}).describe("Operator information in an open channel.");
|
|
14
|
+
const sendbirdRegisterOperatorsOpenChannel = action("SENDBIRD_REGISTER_OPERATORS_OPEN_CHANNEL", {
|
|
15
|
+
slug: "sendbird-register-operators-open-channel",
|
|
16
|
+
name: "Register Operators to Open Channel",
|
|
17
|
+
description: "Tool to register operators to an open channel. Use after creating or updating an open channel when you need to assign operator roles.",
|
|
18
|
+
input: SendbirdRegisterOperatorsOpenChannelInput,
|
|
19
|
+
output: z.object({ operators: z.array(SendbirdRegisterOperatorsOpenChannel_OperatorSchema).describe("List of operators registered to the open channel") }).describe("Response model for registered operators in an open channel.")
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
export { sendbirdRegisterOperatorsOpenChannel };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=register-operators-open-channel.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register-operators-open-channel.mjs","names":[],"sources":["../../src/actions/register-operators-open-channel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdRegisterOperatorsOpenChannelInput: z.ZodTypeAny = z.object({\n user_ids: z.array(z.string()).describe(\"List of user IDs to register as operators (at least one)\"),\n channel_url: z.string().describe(\"URL-encoded identifier of the open channel\"),\n}).describe(\"Request model for registering operators to an open channel.\");\nconst SendbirdRegisterOperatorsOpenChannel_OperatorSchema: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"User ID of the operator\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata for the operator\").nullable().optional(),\n nickname: z.string().describe(\"Nickname of the operator\").nullable().optional(),\n profile_url: z.string().describe(\"Profile image URL of the operator\").nullable().optional(),\n}).describe(\"Operator information in an open channel.\");\nexport const SendbirdRegisterOperatorsOpenChannelOutput: z.ZodTypeAny = z.object({\n operators: z.array(SendbirdRegisterOperatorsOpenChannel_OperatorSchema).describe(\"List of operators registered to the open channel\"),\n}).describe(\"Response model for registered operators in an open channel.\");\n\nexport const sendbirdRegisterOperatorsOpenChannel = action(\"SENDBIRD_REGISTER_OPERATORS_OPEN_CHANNEL\", {\n slug: \"sendbird-register-operators-open-channel\",\n name: \"Register Operators to Open Channel\",\n description: \"Tool to register operators to an open channel. Use after creating or updating an open channel when you need to assign operator roles.\",\n input: SendbirdRegisterOperatorsOpenChannelInput,\n output: SendbirdRegisterOperatorsOpenChannelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA0D,EAAE,OAAO;CAC9E,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0DAA0D;CACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;AAC/E,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,sDAAoE,EAAE,OAAO;CACjF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACtD,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAKtD,MAAa,uCAAuC,OAAO,4CAA4C;CACrG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsE,EAAE,OAAO,EAC/E,WAAW,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,kDAAkD,EACrI,CAAC,CAAC,CAAC,SAAS,6DAOF;AACV,CAAC"}
|