@keystrokehq/sendbird 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-members-group-channel.cjs +1 -0
- package/dist/actions/add-members-group-channel.cjs.map +1 -1
- package/dist/actions/add-members-group-channel.d.cts +3 -6
- package/dist/actions/add-members-group-channel.d.cts.map +1 -1
- package/dist/actions/add-members-group-channel.d.mts +3 -6
- package/dist/actions/add-members-group-channel.d.mts.map +1 -1
- package/dist/actions/add-members-group-channel.mjs +1 -0
- package/dist/actions/add-members-group-channel.mjs.map +1 -1
- package/dist/actions/ban-user-from-group-channel.cjs +1 -0
- package/dist/actions/ban-user-from-group-channel.cjs.map +1 -1
- package/dist/actions/ban-user-from-group-channel.d.cts +3 -7
- package/dist/actions/ban-user-from-group-channel.d.cts.map +1 -1
- package/dist/actions/ban-user-from-group-channel.d.mts +3 -7
- package/dist/actions/ban-user-from-group-channel.d.mts.map +1 -1
- package/dist/actions/ban-user-from-group-channel.mjs +1 -0
- package/dist/actions/ban-user-from-group-channel.mjs.map +1 -1
- package/dist/actions/create-channel.cjs +1 -0
- package/dist/actions/create-channel.cjs.map +1 -1
- package/dist/actions/create-channel.d.cts +3 -20
- package/dist/actions/create-channel.d.cts.map +1 -1
- package/dist/actions/create-channel.d.mts +3 -20
- package/dist/actions/create-channel.d.mts.map +1 -1
- package/dist/actions/create-channel.mjs +1 -0
- package/dist/actions/create-channel.mjs.map +1 -1
- package/dist/actions/create-user.cjs +1 -0
- package/dist/actions/create-user.cjs.map +1 -1
- package/dist/actions/create-user.d.cts +3 -13
- package/dist/actions/create-user.d.cts.map +1 -1
- package/dist/actions/create-user.d.mts +3 -13
- package/dist/actions/create-user.d.mts.map +1 -1
- package/dist/actions/create-user.mjs +1 -0
- package/dist/actions/create-user.mjs.map +1 -1
- package/dist/actions/delete-channel.cjs +1 -0
- package/dist/actions/delete-channel.cjs.map +1 -1
- package/dist/actions/delete-channel.d.cts +3 -3
- package/dist/actions/delete-channel.d.cts.map +1 -1
- package/dist/actions/delete-channel.d.mts +3 -3
- package/dist/actions/delete-channel.d.mts.map +1 -1
- package/dist/actions/delete-channel.mjs +1 -0
- package/dist/actions/delete-channel.mjs.map +1 -1
- package/dist/actions/delete-message.cjs +1 -0
- package/dist/actions/delete-message.cjs.map +1 -1
- package/dist/actions/delete-message.d.cts +3 -4
- package/dist/actions/delete-message.d.cts.map +1 -1
- package/dist/actions/delete-message.d.mts +3 -4
- package/dist/actions/delete-message.d.mts.map +1 -1
- package/dist/actions/delete-message.mjs +1 -0
- package/dist/actions/delete-message.mjs.map +1 -1
- package/dist/actions/delete-user.cjs +1 -0
- package/dist/actions/delete-user.cjs.map +1 -1
- package/dist/actions/delete-user.d.cts +3 -4
- package/dist/actions/delete-user.d.cts.map +1 -1
- package/dist/actions/delete-user.d.mts +3 -4
- package/dist/actions/delete-user.d.mts.map +1 -1
- package/dist/actions/delete-user.mjs +1 -0
- package/dist/actions/delete-user.mjs.map +1 -1
- package/dist/actions/get-count-preference-of-channel.cjs +1 -0
- package/dist/actions/get-count-preference-of-channel.cjs.map +1 -1
- package/dist/actions/get-count-preference-of-channel.d.cts +4 -5
- package/dist/actions/get-count-preference-of-channel.d.cts.map +1 -1
- package/dist/actions/get-count-preference-of-channel.d.mts +4 -5
- package/dist/actions/get-count-preference-of-channel.d.mts.map +1 -1
- package/dist/actions/get-count-preference-of-channel.mjs +1 -0
- package/dist/actions/get-count-preference-of-channel.mjs.map +1 -1
- package/dist/actions/get-number-of-channels-by-join-status.cjs +1 -0
- package/dist/actions/get-number-of-channels-by-join-status.cjs.map +1 -1
- package/dist/actions/get-number-of-channels-by-join-status.d.cts +3 -7
- package/dist/actions/get-number-of-channels-by-join-status.d.cts.map +1 -1
- package/dist/actions/get-number-of-channels-by-join-status.d.mts +3 -7
- package/dist/actions/get-number-of-channels-by-join-status.d.mts.map +1 -1
- package/dist/actions/get-number-of-channels-by-join-status.mjs +1 -0
- package/dist/actions/get-number-of-channels-by-join-status.mjs.map +1 -1
- package/dist/actions/get-number-of-unread-items.cjs +1 -0
- package/dist/actions/get-number-of-unread-items.cjs.map +1 -1
- package/dist/actions/get-number-of-unread-items.d.cts +3 -5
- package/dist/actions/get-number-of-unread-items.d.cts.map +1 -1
- package/dist/actions/get-number-of-unread-items.d.mts +3 -5
- package/dist/actions/get-number-of-unread-items.d.mts.map +1 -1
- package/dist/actions/get-number-of-unread-items.mjs +1 -0
- package/dist/actions/get-number-of-unread-items.mjs.map +1 -1
- package/dist/actions/issue-session-token.cjs +1 -0
- package/dist/actions/issue-session-token.cjs.map +1 -1
- package/dist/actions/issue-session-token.d.cts +3 -4
- package/dist/actions/issue-session-token.d.cts.map +1 -1
- package/dist/actions/issue-session-token.d.mts +3 -4
- package/dist/actions/issue-session-token.d.mts.map +1 -1
- package/dist/actions/issue-session-token.mjs +1 -0
- package/dist/actions/issue-session-token.mjs.map +1 -1
- package/dist/actions/leave-group-channels.cjs +1 -0
- package/dist/actions/leave-group-channels.cjs.map +1 -1
- package/dist/actions/leave-group-channels.d.cts +3 -6
- package/dist/actions/leave-group-channels.d.cts.map +1 -1
- package/dist/actions/leave-group-channels.d.mts +3 -6
- package/dist/actions/leave-group-channels.d.mts.map +1 -1
- package/dist/actions/leave-group-channels.mjs +1 -0
- package/dist/actions/leave-group-channels.mjs.map +1 -1
- package/dist/actions/list-banned-members.cjs +1 -0
- package/dist/actions/list-banned-members.cjs.map +1 -1
- package/dist/actions/list-banned-members.d.cts +3 -5
- package/dist/actions/list-banned-members.d.cts.map +1 -1
- package/dist/actions/list-banned-members.d.mts +3 -5
- package/dist/actions/list-banned-members.d.mts.map +1 -1
- package/dist/actions/list-banned-members.mjs +1 -0
- package/dist/actions/list-banned-members.mjs.map +1 -1
- package/dist/actions/list-group-channel-messages.cjs +1 -0
- package/dist/actions/list-group-channel-messages.cjs.map +1 -1
- package/dist/actions/list-group-channel-messages.d.cts +3 -21
- package/dist/actions/list-group-channel-messages.d.cts.map +1 -1
- package/dist/actions/list-group-channel-messages.d.mts +3 -21
- package/dist/actions/list-group-channel-messages.d.mts.map +1 -1
- package/dist/actions/list-group-channel-messages.mjs +1 -0
- package/dist/actions/list-group-channel-messages.mjs.map +1 -1
- package/dist/actions/list-group-channels.cjs +1 -0
- package/dist/actions/list-group-channels.cjs.map +1 -1
- package/dist/actions/list-group-channels.d.cts +3 -23
- package/dist/actions/list-group-channels.d.cts.map +1 -1
- package/dist/actions/list-group-channels.d.mts +3 -23
- package/dist/actions/list-group-channels.d.mts.map +1 -1
- package/dist/actions/list-group-channels.mjs +1 -0
- package/dist/actions/list-group-channels.mjs.map +1 -1
- package/dist/actions/list-members-group-channel.cjs +1 -0
- package/dist/actions/list-members-group-channel.cjs.map +1 -1
- package/dist/actions/list-members-group-channel.d.cts +3 -11
- package/dist/actions/list-members-group-channel.d.cts.map +1 -1
- package/dist/actions/list-members-group-channel.d.mts +3 -11
- package/dist/actions/list-members-group-channel.d.mts.map +1 -1
- package/dist/actions/list-members-group-channel.mjs +1 -0
- package/dist/actions/list-members-group-channel.mjs.map +1 -1
- package/dist/actions/list-operators-custom-channel-type.cjs +1 -0
- package/dist/actions/list-operators-custom-channel-type.cjs.map +1 -1
- package/dist/actions/list-operators-custom-channel-type.d.cts +3 -5
- package/dist/actions/list-operators-custom-channel-type.d.cts.map +1 -1
- package/dist/actions/list-operators-custom-channel-type.d.mts +3 -5
- package/dist/actions/list-operators-custom-channel-type.d.mts.map +1 -1
- package/dist/actions/list-operators-custom-channel-type.mjs +1 -0
- package/dist/actions/list-operators-custom-channel-type.mjs.map +1 -1
- package/dist/actions/list-operators-group-channel.cjs +1 -0
- package/dist/actions/list-operators-group-channel.cjs.map +1 -1
- package/dist/actions/list-operators-group-channel.d.cts +3 -5
- package/dist/actions/list-operators-group-channel.d.cts.map +1 -1
- package/dist/actions/list-operators-group-channel.d.mts +3 -5
- package/dist/actions/list-operators-group-channel.d.mts.map +1 -1
- package/dist/actions/list-operators-group-channel.mjs +1 -0
- package/dist/actions/list-operators-group-channel.mjs.map +1 -1
- package/dist/actions/list-operators-open-channel.cjs +1 -0
- package/dist/actions/list-operators-open-channel.cjs.map +1 -1
- package/dist/actions/list-operators-open-channel.d.cts +3 -5
- package/dist/actions/list-operators-open-channel.d.cts.map +1 -1
- package/dist/actions/list-operators-open-channel.d.mts +3 -5
- package/dist/actions/list-operators-open-channel.d.mts.map +1 -1
- package/dist/actions/list-operators-open-channel.mjs +1 -0
- package/dist/actions/list-operators-open-channel.mjs.map +1 -1
- package/dist/actions/list-users.cjs +1 -0
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +3 -13
- package/dist/actions/list-users.d.cts.map +1 -1
- package/dist/actions/list-users.d.mts +3 -13
- package/dist/actions/list-users.d.mts.map +1 -1
- package/dist/actions/list-users.mjs +1 -0
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/mark-all-user-messages-as-read.cjs +1 -0
- package/dist/actions/mark-all-user-messages-as-read.cjs.map +1 -1
- package/dist/actions/mark-all-user-messages-as-read.d.cts +3 -3
- package/dist/actions/mark-all-user-messages-as-read.d.cts.map +1 -1
- package/dist/actions/mark-all-user-messages-as-read.d.mts +3 -3
- package/dist/actions/mark-all-user-messages-as-read.d.mts.map +1 -1
- package/dist/actions/mark-all-user-messages-as-read.mjs +1 -0
- package/dist/actions/mark-all-user-messages-as-read.mjs.map +1 -1
- package/dist/actions/mute-user.cjs +1 -0
- package/dist/actions/mute-user.cjs.map +1 -1
- package/dist/actions/mute-user.d.cts +3 -6
- package/dist/actions/mute-user.d.cts.map +1 -1
- package/dist/actions/mute-user.d.mts +3 -6
- package/dist/actions/mute-user.d.mts.map +1 -1
- package/dist/actions/mute-user.mjs +1 -0
- package/dist/actions/mute-user.mjs.map +1 -1
- package/dist/actions/register-operators-custom-channel-type.cjs +1 -0
- package/dist/actions/register-operators-custom-channel-type.cjs.map +1 -1
- package/dist/actions/register-operators-custom-channel-type.d.cts +3 -4
- package/dist/actions/register-operators-custom-channel-type.d.cts.map +1 -1
- package/dist/actions/register-operators-custom-channel-type.d.mts +3 -4
- package/dist/actions/register-operators-custom-channel-type.d.mts.map +1 -1
- package/dist/actions/register-operators-custom-channel-type.mjs +1 -0
- package/dist/actions/register-operators-custom-channel-type.mjs.map +1 -1
- package/dist/actions/register-operators-group-channel.cjs +1 -0
- package/dist/actions/register-operators-group-channel.cjs.map +1 -1
- package/dist/actions/register-operators-group-channel.d.cts +3 -4
- package/dist/actions/register-operators-group-channel.d.cts.map +1 -1
- package/dist/actions/register-operators-group-channel.d.mts +3 -4
- package/dist/actions/register-operators-group-channel.d.mts.map +1 -1
- package/dist/actions/register-operators-group-channel.mjs +1 -0
- package/dist/actions/register-operators-group-channel.mjs.map +1 -1
- package/dist/actions/register-operators-open-channel.cjs +1 -0
- package/dist/actions/register-operators-open-channel.cjs.map +1 -1
- package/dist/actions/register-operators-open-channel.d.cts +3 -4
- package/dist/actions/register-operators-open-channel.d.cts.map +1 -1
- package/dist/actions/register-operators-open-channel.d.mts +3 -4
- package/dist/actions/register-operators-open-channel.d.mts.map +1 -1
- package/dist/actions/register-operators-open-channel.mjs +1 -0
- package/dist/actions/register-operators-open-channel.mjs.map +1 -1
- package/dist/actions/revoke-all-session-tokens.cjs +1 -0
- package/dist/actions/revoke-all-session-tokens.cjs.map +1 -1
- package/dist/actions/revoke-all-session-tokens.d.cts +3 -3
- package/dist/actions/revoke-all-session-tokens.d.cts.map +1 -1
- package/dist/actions/revoke-all-session-tokens.d.mts +3 -3
- package/dist/actions/revoke-all-session-tokens.d.mts.map +1 -1
- package/dist/actions/revoke-all-session-tokens.mjs +1 -0
- package/dist/actions/revoke-all-session-tokens.mjs.map +1 -1
- package/dist/actions/send-message.cjs +1 -0
- package/dist/actions/send-message.cjs.map +1 -1
- package/dist/actions/send-message.d.cts +3 -22
- package/dist/actions/send-message.d.cts.map +1 -1
- package/dist/actions/send-message.d.mts +3 -22
- package/dist/actions/send-message.d.mts.map +1 -1
- package/dist/actions/send-message.mjs +1 -0
- package/dist/actions/send-message.mjs.map +1 -1
- package/dist/actions/unban-user.cjs +1 -0
- package/dist/actions/unban-user.cjs.map +1 -1
- package/dist/actions/unban-user.d.cts +3 -4
- package/dist/actions/unban-user.d.cts.map +1 -1
- package/dist/actions/unban-user.d.mts +3 -4
- package/dist/actions/unban-user.d.mts.map +1 -1
- package/dist/actions/unban-user.mjs +1 -0
- package/dist/actions/unban-user.mjs.map +1 -1
- package/dist/actions/unmute-user.cjs +1 -0
- package/dist/actions/unmute-user.cjs.map +1 -1
- package/dist/actions/unmute-user.d.cts +3 -4
- package/dist/actions/unmute-user.d.cts.map +1 -1
- package/dist/actions/unmute-user.d.mts +3 -4
- package/dist/actions/unmute-user.d.mts.map +1 -1
- package/dist/actions/unmute-user.mjs +1 -0
- package/dist/actions/unmute-user.mjs.map +1 -1
- package/dist/actions/unregister-operators-custom-channel-type.cjs +1 -0
- package/dist/actions/unregister-operators-custom-channel-type.cjs.map +1 -1
- package/dist/actions/unregister-operators-custom-channel-type.d.cts +3 -4
- package/dist/actions/unregister-operators-custom-channel-type.d.cts.map +1 -1
- package/dist/actions/unregister-operators-custom-channel-type.d.mts +3 -4
- package/dist/actions/unregister-operators-custom-channel-type.d.mts.map +1 -1
- package/dist/actions/unregister-operators-custom-channel-type.mjs +1 -0
- package/dist/actions/unregister-operators-custom-channel-type.mjs.map +1 -1
- package/dist/actions/update-count-preference-of-channel.cjs +1 -0
- package/dist/actions/update-count-preference-of-channel.cjs.map +1 -1
- package/dist/actions/update-count-preference-of-channel.d.cts +3 -5
- package/dist/actions/update-count-preference-of-channel.d.cts.map +1 -1
- package/dist/actions/update-count-preference-of-channel.d.mts +3 -5
- package/dist/actions/update-count-preference-of-channel.d.mts.map +1 -1
- package/dist/actions/update-count-preference-of-channel.mjs +1 -0
- package/dist/actions/update-count-preference-of-channel.mjs.map +1 -1
- package/dist/actions/update-group-channel.cjs +1 -0
- package/dist/actions/update-group-channel.cjs.map +1 -1
- package/dist/actions/update-group-channel.d.cts +3 -14
- package/dist/actions/update-group-channel.d.cts.map +1 -1
- package/dist/actions/update-group-channel.d.mts +3 -14
- package/dist/actions/update-group-channel.d.mts.map +1 -1
- package/dist/actions/update-group-channel.mjs +1 -0
- package/dist/actions/update-group-channel.mjs.map +1 -1
- package/dist/actions/update-message.cjs +1 -0
- package/dist/actions/update-message.cjs.map +1 -1
- package/dist/actions/update-message.d.cts +3 -16
- package/dist/actions/update-message.d.cts.map +1 -1
- package/dist/actions/update-message.d.mts +3 -16
- package/dist/actions/update-message.d.mts.map +1 -1
- package/dist/actions/update-message.mjs +1 -0
- package/dist/actions/update-message.mjs.map +1 -1
- package/dist/actions/update-user.cjs +1 -0
- package/dist/actions/update-user.cjs.map +1 -1
- package/dist/actions/update-user.d.cts +3 -9
- package/dist/actions/update-user.d.cts.map +1 -1
- package/dist/actions/update-user.d.mts +3 -9
- package/dist/actions/update-user.d.mts.map +1 -1
- package/dist/actions/update-user.mjs +1 -0
- package/dist/actions/update-user.mjs.map +1 -1
- package/dist/actions/view-group-channel.cjs +1 -0
- package/dist/actions/view-group-channel.cjs.map +1 -1
- package/dist/actions/view-group-channel.d.cts +3 -8
- package/dist/actions/view-group-channel.d.cts.map +1 -1
- package/dist/actions/view-group-channel.d.mts +3 -8
- package/dist/actions/view-group-channel.d.mts.map +1 -1
- package/dist/actions/view-group-channel.mjs +1 -0
- package/dist/actions/view-group-channel.mjs.map +1 -1
- package/dist/actions/view-message.cjs +1 -0
- package/dist/actions/view-message.cjs.map +1 -1
- package/dist/actions/view-message.d.cts +3 -5
- package/dist/actions/view-message.d.cts.map +1 -1
- package/dist/actions/view-message.d.mts +3 -5
- package/dist/actions/view-message.d.mts.map +1 -1
- package/dist/actions/view-message.mjs +1 -0
- package/dist/actions/view-message.mjs.map +1 -1
- package/dist/actions/view-user.cjs +1 -0
- package/dist/actions/view-user.cjs.map +1 -1
- package/dist/actions/view-user.d.cts +3 -3
- package/dist/actions/view-user.d.cts.map +1 -1
- package/dist/actions/view-user.d.mts +3 -3
- package/dist/actions/view-user.d.mts.map +1 -1
- package/dist/actions/view-user.mjs +1 -0
- package/dist/actions/view-user.mjs.map +1 -1
- package/dist/app.cjs +9 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +8 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +8 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +6 -2
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sendbird } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-number-of-unread-items.d.ts
|
|
@@ -17,11 +19,7 @@ declare const SendbirdGetNumberOfUnreadItemsOutput: z.ZodObject<{
|
|
|
17
19
|
non_super_group_channel_unread_mention_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
20
|
non_super_group_channel_unread_message_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
21
|
}, z.core.$loose>;
|
|
20
|
-
declare const sendbirdGetNumberOfUnreadItems:
|
|
21
|
-
user_id: string;
|
|
22
|
-
item_keys?: string | undefined;
|
|
23
|
-
custom_types?: string | undefined;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
22
|
+
declare const sendbirdGetNumberOfUnreadItems: AppAction<typeof SendbirdGetNumberOfUnreadItemsInput, typeof SendbirdGetNumberOfUnreadItemsOutput, typeof sendbird.credential>;
|
|
25
23
|
//#endregion
|
|
26
24
|
export { sendbirdGetNumberOfUnreadItems };
|
|
27
25
|
//# sourceMappingURL=get-number-of-unread-items.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-number-of-unread-items.d.mts","names":[],"sources":["../../src/actions/get-number-of-unread-items.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-number-of-unread-items.d.mts","names":[],"sources":["../../src/actions/get-number-of-unread-items.ts"],"mappings":";;;;;cAMa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;cAKnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;cAYpC,8BAAA,EAAgC,SAAA,QACpC,mCAAA,SACA,oCAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-number-of-unread-items.mjs","names":[],"sources":["../../src/actions/get-number-of-unread-items.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdGetNumberOfUnreadItemsInput = z.object({\n user_id: z.string().describe(\"Unique ID of the user whose unread item counts are to be retrieved.\"),\n item_keys: z.string().describe(\"Comma-separated list of item keys to retrieve. Options: non_super_group_channel_unread_message_count, super_group_channel_unread_message_count, group_channel_unread_message_count, non_super_group_channel_unread_mention_count, super_group_channel_unread_mention_count, group_channel_unread_mention_count, non_super_group_channel_invitation_count, super_group_channel_invitation_count, group_channel_invitation_count. If not specified, returns all available counts.\").optional(),\n custom_types: z.string().describe(\"Comma-separated list of custom channel types to filter the count by.\").optional(),\n}).describe(\"Request model for retrieving unread item counts for a Sendbird user.\\nRetrieves unread messages, mentions, and invitation counts in group channels.\");\nexport const SendbirdGetNumberOfUnreadItemsOutput = z.object({\n group_channel_invitation_count: z.number().int().describe(\"Total count of pending invitations across all group channels.\").nullable().optional(),\n group_channel_unread_mention_count: z.number().int().describe(\"Total count of unread mentions across all group channels.\").nullable().optional(),\n group_channel_unread_message_count: z.number().int().describe(\"Total count of unread messages across all group channels.\").nullable().optional(),\n super_group_channel_invitation_count: z.number().int().describe(\"Count of pending invitations in super group channels.\").nullable().optional(),\n non_super_group_channel_invitation_count: z.number().int().describe(\"Count of pending invitations in non-super group channels.\").nullable().optional(),\n super_group_channel_unread_mention_count: z.number().int().describe(\"Count of unread mentions in super group channels.\").nullable().optional(),\n super_group_channel_unread_message_count: z.number().int().describe(\"Count of unread messages in super group channels.\").nullable().optional(),\n non_super_group_channel_unread_mention_count: z.number().int().describe(\"Count of unread mentions in non-super group channels.\").nullable().optional(),\n non_super_group_channel_unread_message_count: z.number().int().describe(\"Count of unread messages in non-super group channels.\").nullable().optional(),\n}).passthrough().describe(\"Response model for Sendbird unread item counts.\\nReturns various counts for unread messages, mentions, and invitations\\nacross different channel types.\");\n\nexport const sendbirdGetNumberOfUnreadItems = action(\"SENDBIRD_GET_NUMBER_OF_UNREAD_ITEMS\", {\n slug: \"sendbird-get-number-of-unread-items\",\n name: \"Sendbird Get Unread Item Count\",\n description: \"Tool to retrieve a user's unread item counts including unread messages, mentions, and pending invitations across group channels. Use this to display unread counts in the UI for a specific user.\",\n input: SendbirdGetNumberOfUnreadItemsInput,\n output: SendbirdGetNumberOfUnreadItemsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-number-of-unread-items.mjs","names":[],"sources":["../../src/actions/get-number-of-unread-items.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sendbird } from \"../app\";\n\nexport const SendbirdGetNumberOfUnreadItemsInput = z.object({\n user_id: z.string().describe(\"Unique ID of the user whose unread item counts are to be retrieved.\"),\n item_keys: z.string().describe(\"Comma-separated list of item keys to retrieve. Options: non_super_group_channel_unread_message_count, super_group_channel_unread_message_count, group_channel_unread_message_count, non_super_group_channel_unread_mention_count, super_group_channel_unread_mention_count, group_channel_unread_mention_count, non_super_group_channel_invitation_count, super_group_channel_invitation_count, group_channel_invitation_count. If not specified, returns all available counts.\").optional(),\n custom_types: z.string().describe(\"Comma-separated list of custom channel types to filter the count by.\").optional(),\n}).describe(\"Request model for retrieving unread item counts for a Sendbird user.\\nRetrieves unread messages, mentions, and invitation counts in group channels.\");\nexport const SendbirdGetNumberOfUnreadItemsOutput = z.object({\n group_channel_invitation_count: z.number().int().describe(\"Total count of pending invitations across all group channels.\").nullable().optional(),\n group_channel_unread_mention_count: z.number().int().describe(\"Total count of unread mentions across all group channels.\").nullable().optional(),\n group_channel_unread_message_count: z.number().int().describe(\"Total count of unread messages across all group channels.\").nullable().optional(),\n super_group_channel_invitation_count: z.number().int().describe(\"Count of pending invitations in super group channels.\").nullable().optional(),\n non_super_group_channel_invitation_count: z.number().int().describe(\"Count of pending invitations in non-super group channels.\").nullable().optional(),\n super_group_channel_unread_mention_count: z.number().int().describe(\"Count of unread mentions in super group channels.\").nullable().optional(),\n super_group_channel_unread_message_count: z.number().int().describe(\"Count of unread messages in super group channels.\").nullable().optional(),\n non_super_group_channel_unread_mention_count: z.number().int().describe(\"Count of unread mentions in non-super group channels.\").nullable().optional(),\n non_super_group_channel_unread_message_count: z.number().int().describe(\"Count of unread messages in non-super group channels.\").nullable().optional(),\n}).passthrough().describe(\"Response model for Sendbird unread item counts.\\nReturns various counts for unread messages, mentions, and invitations\\nacross different channel types.\");\n\nexport const sendbirdGetNumberOfUnreadItems: AppAction<\n typeof SendbirdGetNumberOfUnreadItemsInput,\n typeof SendbirdGetNumberOfUnreadItemsOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_GET_NUMBER_OF_UNREAD_ITEMS\", {\n slug: \"sendbird-get-number-of-unread-items\",\n name: \"Sendbird Get Unread Item Count\",\n description: \"Tool to retrieve a user's unread item counts including unread messages, mentions, and pending invitations across group channels. Use this to display unread counts in the UI for a specific user.\",\n input: SendbirdGetNumberOfUnreadItemsInput,\n output: SendbirdGetNumberOfUnreadItemsOutput,\n});\n"],"mappings":";;;AAuBA,MAAa,iCAIT,OAAO,uCAAuC;CAChD,MAAM;CACN,MAAM;CACN,aAAa;CACb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C,CAAC,SAAS;CACvJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yJAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issue-session-token.cjs","names":["z","action"],"sources":["../../src/actions/issue-session-token.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdIssueSessionTokenInput = z.object({\n user_id: z.string().describe(\"The unique ID of the user to issue a session token for.\"),\n expires_at: z.number().int().describe(\"Optional token expiration timestamp in Unix milliseconds. If omitted, the default token lifetime is used.\").optional(),\n}).describe(\"Request model for issuing a session token to a Sendbird user.\");\nexport const SendbirdIssueSessionTokenOutput = z.object({\n token: z.string().describe(\"The session token issued for the user.\").nullable(),\n user_id: z.string().describe(\"The ID of the user the token was issued for.\").nullable().optional(),\n expires_at: z.number().int().describe(\"Expiration timestamp of the session token in Unix milliseconds.\").nullable(),\n}).passthrough().describe(\"Response model for the issued session token.\");\n\nexport const sendbirdIssueSessionToken = action(\"SENDBIRD_ISSUE_SESSION_TOKEN\", {\n slug: \"sendbird-issue-session-token\",\n name: \"Issue Session Token\",\n description: \"Issues a session token for authenticating a Sendbird user. Use this tool when you need to: - Generate a new session token for SDK authentication - Refresh an expiring or expired session token - Provide secure access for a user to connect to Sendbird chat The session token has a default expiration of 7 days if expires_at is not specified.\",\n input: SendbirdIssueSessionTokenInput,\n output: SendbirdIssueSessionTokenOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"issue-session-token.cjs","names":["z","action"],"sources":["../../src/actions/issue-session-token.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sendbird } from \"../app\";\n\nexport const SendbirdIssueSessionTokenInput = z.object({\n user_id: z.string().describe(\"The unique ID of the user to issue a session token for.\"),\n expires_at: z.number().int().describe(\"Optional token expiration timestamp in Unix milliseconds. If omitted, the default token lifetime is used.\").optional(),\n}).describe(\"Request model for issuing a session token to a Sendbird user.\");\nexport const SendbirdIssueSessionTokenOutput = z.object({\n token: z.string().describe(\"The session token issued for the user.\").nullable(),\n user_id: z.string().describe(\"The ID of the user the token was issued for.\").nullable().optional(),\n expires_at: z.number().int().describe(\"Expiration timestamp of the session token in Unix milliseconds.\").nullable(),\n}).passthrough().describe(\"Response model for the issued session token.\");\n\nexport const sendbirdIssueSessionToken: AppAction<\n typeof SendbirdIssueSessionTokenInput,\n typeof SendbirdIssueSessionTokenOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_ISSUE_SESSION_TOKEN\", {\n slug: \"sendbird-issue-session-token\",\n name: \"Issue Session Token\",\n description: \"Issues a session token for authenticating a Sendbird user. Use this tool when you need to: - Generate a new session token for SDK authentication - Refresh an expiring or expired session token - Provide secure access for a user to connect to Sendbird chat The session token has a default expiration of 7 days if expires_at is not specified.\",\n input: SendbirdIssueSessionTokenInput,\n output: SendbirdIssueSessionTokenOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACtF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;AAC9J,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC9E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,4BAITC,eAAAA,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sendbird } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/issue-session-token.d.ts
|
|
@@ -10,10 +12,7 @@ declare const SendbirdIssueSessionTokenOutput: z.ZodObject<{
|
|
|
10
12
|
user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
13
|
expires_at: z.ZodNullable<z.ZodNumber>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const sendbirdIssueSessionToken:
|
|
14
|
-
user_id: string;
|
|
15
|
-
expires_at?: number | undefined;
|
|
16
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
15
|
+
declare const sendbirdIssueSessionToken: AppAction<typeof SendbirdIssueSessionTokenInput, typeof SendbirdIssueSessionTokenOutput, typeof sendbird.credential>;
|
|
17
16
|
//#endregion
|
|
18
17
|
export { sendbirdIssueSessionToken };
|
|
19
18
|
//# sourceMappingURL=issue-session-token.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issue-session-token.d.cts","names":[],"sources":["../../src/actions/issue-session-token.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"issue-session-token.d.cts","names":[],"sources":["../../src/actions/issue-session-token.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;cAI9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAM/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sendbird } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/issue-session-token.d.ts
|
|
@@ -10,10 +12,7 @@ declare const SendbirdIssueSessionTokenOutput: z.ZodObject<{
|
|
|
10
12
|
user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
13
|
expires_at: z.ZodNullable<z.ZodNumber>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const sendbirdIssueSessionToken:
|
|
14
|
-
user_id: string;
|
|
15
|
-
expires_at?: number | undefined;
|
|
16
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
15
|
+
declare const sendbirdIssueSessionToken: AppAction<typeof SendbirdIssueSessionTokenInput, typeof SendbirdIssueSessionTokenOutput, typeof sendbird.credential>;
|
|
17
16
|
//#endregion
|
|
18
17
|
export { sendbirdIssueSessionToken };
|
|
19
18
|
//# sourceMappingURL=issue-session-token.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issue-session-token.d.mts","names":[],"sources":["../../src/actions/issue-session-token.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"issue-session-token.d.mts","names":[],"sources":["../../src/actions/issue-session-token.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;cAI9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAM/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issue-session-token.mjs","names":[],"sources":["../../src/actions/issue-session-token.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdIssueSessionTokenInput = z.object({\n user_id: z.string().describe(\"The unique ID of the user to issue a session token for.\"),\n expires_at: z.number().int().describe(\"Optional token expiration timestamp in Unix milliseconds. If omitted, the default token lifetime is used.\").optional(),\n}).describe(\"Request model for issuing a session token to a Sendbird user.\");\nexport const SendbirdIssueSessionTokenOutput = z.object({\n token: z.string().describe(\"The session token issued for the user.\").nullable(),\n user_id: z.string().describe(\"The ID of the user the token was issued for.\").nullable().optional(),\n expires_at: z.number().int().describe(\"Expiration timestamp of the session token in Unix milliseconds.\").nullable(),\n}).passthrough().describe(\"Response model for the issued session token.\");\n\nexport const sendbirdIssueSessionToken = action(\"SENDBIRD_ISSUE_SESSION_TOKEN\", {\n slug: \"sendbird-issue-session-token\",\n name: \"Issue Session Token\",\n description: \"Issues a session token for authenticating a Sendbird user. Use this tool when you need to: - Generate a new session token for SDK authentication - Refresh an expiring or expired session token - Provide secure access for a user to connect to Sendbird chat The session token has a default expiration of 7 days if expires_at is not specified.\",\n input: SendbirdIssueSessionTokenInput,\n output: SendbirdIssueSessionTokenOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"issue-session-token.mjs","names":[],"sources":["../../src/actions/issue-session-token.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sendbird } from \"../app\";\n\nexport const SendbirdIssueSessionTokenInput = z.object({\n user_id: z.string().describe(\"The unique ID of the user to issue a session token for.\"),\n expires_at: z.number().int().describe(\"Optional token expiration timestamp in Unix milliseconds. If omitted, the default token lifetime is used.\").optional(),\n}).describe(\"Request model for issuing a session token to a Sendbird user.\");\nexport const SendbirdIssueSessionTokenOutput = z.object({\n token: z.string().describe(\"The session token issued for the user.\").nullable(),\n user_id: z.string().describe(\"The ID of the user the token was issued for.\").nullable().optional(),\n expires_at: z.number().int().describe(\"Expiration timestamp of the session token in Unix milliseconds.\").nullable(),\n}).passthrough().describe(\"Response model for the issued session token.\");\n\nexport const sendbirdIssueSessionToken: AppAction<\n typeof SendbirdIssueSessionTokenInput,\n typeof SendbirdIssueSessionTokenOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_ISSUE_SESSION_TOKEN\", {\n slug: \"sendbird-issue-session-token\",\n name: \"Issue Session Token\",\n description: \"Issues a session token for authenticating a Sendbird user. Use this tool when you need to: - Generate a new session token for SDK authentication - Refresh an expiring or expired session token - Provide secure access for a user to connect to Sendbird chat The session token has a default expiration of 7 days if expires_at is not specified.\",\n input: SendbirdIssueSessionTokenInput,\n output: SendbirdIssueSessionTokenOutput,\n});\n"],"mappings":";;;AAgBA,MAAa,4BAIT,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlB4C,EAAE,OAAO;EACrD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;EACtF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CAC9J,CAAC,CAAC,CAAC,SAAS,+DAeH;CACP,QAf6C,EAAE,OAAO;EACtD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EAC9E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leave-group-channels.cjs","names":["z","action"],"sources":["../../src/actions/leave-group-channels.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdLeaveGroupChannelsInput = z.object({\n user_id: z.string().describe(\"Unique ID of the user who will leave group channels.\"),\n custom_type: z.string().describe(\"Custom type to filter which group channels to leave. Only channels with this custom type will be left.\").optional(),\n channel_urls: z.array(z.string()).describe(\"List of group channel URLs to leave. Required unless `should_leave_all` is true or `custom_type` is specified.\").optional(),\n should_leave_all: z.boolean().describe(\"Whether to leave all joined group channels. If true, `channel_urls` is ignored.\").optional(),\n}).describe(\"Request model for leaving one or more group channels for a user.\");\nexport const SendbirdLeaveGroupChannelsOutput = z.object({\n success: z.boolean().default(true).describe(\"Indicates whether the user successfully left the group channels.\").nullable().optional(),\n}).passthrough().describe(\"Response model for leaving group channels.\\nThe Sendbird API returns an empty response body on success.\");\n\nexport const sendbirdLeaveGroupChannels = action(\"SENDBIRD_LEAVE_GROUP_CHANNELS\", {\n slug: \"sendbird-leave-group-channels\",\n name: \"Leave Group Channels\",\n description: \"Tool to leave group channels for a user. Use when you need to make a user exit one or more joined group channels.\",\n input: SendbirdLeaveGroupChannelsInput,\n output: SendbirdLeaveGroupChannelsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"leave-group-channels.cjs","names":["z","action"],"sources":["../../src/actions/leave-group-channels.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sendbird } from \"../app\";\n\nexport const SendbirdLeaveGroupChannelsInput = z.object({\n user_id: z.string().describe(\"Unique ID of the user who will leave group channels.\"),\n custom_type: z.string().describe(\"Custom type to filter which group channels to leave. Only channels with this custom type will be left.\").optional(),\n channel_urls: z.array(z.string()).describe(\"List of group channel URLs to leave. Required unless `should_leave_all` is true or `custom_type` is specified.\").optional(),\n should_leave_all: z.boolean().describe(\"Whether to leave all joined group channels. If true, `channel_urls` is ignored.\").optional(),\n}).describe(\"Request model for leaving one or more group channels for a user.\");\nexport const SendbirdLeaveGroupChannelsOutput = z.object({\n success: z.boolean().default(true).describe(\"Indicates whether the user successfully left the group channels.\").nullable().optional(),\n}).passthrough().describe(\"Response model for leaving group channels.\\nThe Sendbird API returns an empty response body on success.\");\n\nexport const sendbirdLeaveGroupChannels: AppAction<\n typeof SendbirdLeaveGroupChannelsInput,\n typeof SendbirdLeaveGroupChannelsOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_LEAVE_GROUP_CHANNELS\", {\n slug: \"sendbird-leave-group-channels\",\n name: \"Leave Group Channels\",\n description: \"Tool to leave group channels for a user. Use when you need to make a user exit one or more joined group channels.\",\n input: SendbirdLeaveGroupChannelsInput,\n output: SendbirdLeaveGroupChannelsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACnF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CACpJ,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;CACtK,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;AACrI,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACtI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yGAAyG;AAEnI,MAAa,6BAITC,eAAAA,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sendbird } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/leave-group-channels.d.ts
|
|
@@ -10,12 +12,7 @@ declare const SendbirdLeaveGroupChannelsInput: z.ZodObject<{
|
|
|
10
12
|
declare const SendbirdLeaveGroupChannelsOutput: z.ZodObject<{
|
|
11
13
|
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const sendbirdLeaveGroupChannels:
|
|
14
|
-
user_id: string;
|
|
15
|
-
custom_type?: string | undefined;
|
|
16
|
-
channel_urls?: string[] | undefined;
|
|
17
|
-
should_leave_all?: boolean | undefined;
|
|
18
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
15
|
+
declare const sendbirdLeaveGroupChannels: AppAction<typeof SendbirdLeaveGroupChannelsInput, typeof SendbirdLeaveGroupChannelsOutput, typeof sendbird.credential>;
|
|
19
16
|
//#endregion
|
|
20
17
|
export { sendbirdLeaveGroupChannels };
|
|
21
18
|
//# sourceMappingURL=leave-group-channels.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leave-group-channels.d.cts","names":[],"sources":["../../src/actions/leave-group-channels.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"leave-group-channels.d.cts","names":[],"sources":["../../src/actions/leave-group-channels.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;cAM/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sendbird } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/leave-group-channels.d.ts
|
|
@@ -10,12 +12,7 @@ declare const SendbirdLeaveGroupChannelsInput: z.ZodObject<{
|
|
|
10
12
|
declare const SendbirdLeaveGroupChannelsOutput: z.ZodObject<{
|
|
11
13
|
success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const sendbirdLeaveGroupChannels:
|
|
14
|
-
user_id: string;
|
|
15
|
-
custom_type?: string | undefined;
|
|
16
|
-
channel_urls?: string[] | undefined;
|
|
17
|
-
should_leave_all?: boolean | undefined;
|
|
18
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
15
|
+
declare const sendbirdLeaveGroupChannels: AppAction<typeof SendbirdLeaveGroupChannelsInput, typeof SendbirdLeaveGroupChannelsOutput, typeof sendbird.credential>;
|
|
19
16
|
//#endregion
|
|
20
17
|
export { sendbirdLeaveGroupChannels };
|
|
21
18
|
//# sourceMappingURL=leave-group-channels.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leave-group-channels.d.mts","names":[],"sources":["../../src/actions/leave-group-channels.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"leave-group-channels.d.mts","names":[],"sources":["../../src/actions/leave-group-channels.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;cAM/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leave-group-channels.mjs","names":[],"sources":["../../src/actions/leave-group-channels.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdLeaveGroupChannelsInput = z.object({\n user_id: z.string().describe(\"Unique ID of the user who will leave group channels.\"),\n custom_type: z.string().describe(\"Custom type to filter which group channels to leave. Only channels with this custom type will be left.\").optional(),\n channel_urls: z.array(z.string()).describe(\"List of group channel URLs to leave. Required unless `should_leave_all` is true or `custom_type` is specified.\").optional(),\n should_leave_all: z.boolean().describe(\"Whether to leave all joined group channels. If true, `channel_urls` is ignored.\").optional(),\n}).describe(\"Request model for leaving one or more group channels for a user.\");\nexport const SendbirdLeaveGroupChannelsOutput = z.object({\n success: z.boolean().default(true).describe(\"Indicates whether the user successfully left the group channels.\").nullable().optional(),\n}).passthrough().describe(\"Response model for leaving group channels.\\nThe Sendbird API returns an empty response body on success.\");\n\nexport const sendbirdLeaveGroupChannels = action(\"SENDBIRD_LEAVE_GROUP_CHANNELS\", {\n slug: \"sendbird-leave-group-channels\",\n name: \"Leave Group Channels\",\n description: \"Tool to leave group channels for a user. Use when you need to make a user exit one or more joined group channels.\",\n input: SendbirdLeaveGroupChannelsInput,\n output: SendbirdLeaveGroupChannelsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"leave-group-channels.mjs","names":[],"sources":["../../src/actions/leave-group-channels.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sendbird } from \"../app\";\n\nexport const SendbirdLeaveGroupChannelsInput = z.object({\n user_id: z.string().describe(\"Unique ID of the user who will leave group channels.\"),\n custom_type: z.string().describe(\"Custom type to filter which group channels to leave. Only channels with this custom type will be left.\").optional(),\n channel_urls: z.array(z.string()).describe(\"List of group channel URLs to leave. Required unless `should_leave_all` is true or `custom_type` is specified.\").optional(),\n should_leave_all: z.boolean().describe(\"Whether to leave all joined group channels. If true, `channel_urls` is ignored.\").optional(),\n}).describe(\"Request model for leaving one or more group channels for a user.\");\nexport const SendbirdLeaveGroupChannelsOutput = z.object({\n success: z.boolean().default(true).describe(\"Indicates whether the user successfully left the group channels.\").nullable().optional(),\n}).passthrough().describe(\"Response model for leaving group channels.\\nThe Sendbird API returns an empty response body on success.\");\n\nexport const sendbirdLeaveGroupChannels: AppAction<\n typeof SendbirdLeaveGroupChannelsInput,\n typeof SendbirdLeaveGroupChannelsOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_LEAVE_GROUP_CHANNELS\", {\n slug: \"sendbird-leave-group-channels\",\n name: \"Leave Group Channels\",\n description: \"Tool to leave group channels for a user. Use when you need to make a user exit one or more joined group channels.\",\n input: SendbirdLeaveGroupChannelsInput,\n output: SendbirdLeaveGroupChannelsOutput,\n});\n"],"mappings":";;;AAgBA,MAAa,6BAIT,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlB6C,EAAE,OAAO;EACtD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;EACnF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;EACpJ,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;EACtK,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACrI,CAAC,CAAC,CAAC,SAAS,kEAaH;CACP,QAb8C,EAAE,OAAO,EACvD,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACtI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yGAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-banned-members.cjs","names":["z","action"],"sources":["../../src/actions/list-banned-members.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdListBannedMembersInput = z.object({\n limit: z.number().int().describe(\"Number of banned members to return per page (1-100). Default is 10.\").optional(),\n token: z.string().describe(\"Pagination token from previous response; omit for first request.\").optional(),\n channel_url: z.string().describe(\"Unique URL of the group channel to list banned members from.\"),\n}).describe(\"Request parameters for listing banned members in a group channel.\");\nconst SendbirdListBannedMembers_BannedMemberSchema = z.object({\n user_id: z.string().describe(\"User ID of the banned member.\").nullable(),\n nickname: z.string().describe(\"Nickname of the banned user.\").nullable().optional(),\n ban_end_at: z.number().int().describe(\"Unix timestamp in milliseconds when the ban ends.\").nullable(),\n description: z.string().describe(\"Description or reason for the ban.\").nullable().optional(),\n profile_url: z.string().describe(\"Profile image URL of the banned user.\").nullable().optional(),\n ban_start_at: z.number().int().describe(\"Unix timestamp in milliseconds when the ban started.\").nullable(),\n}).passthrough();\nexport const SendbirdListBannedMembersOutput = z.object({\n next: z.string().describe(\"Pagination token for fetching the next page of results.\").nullable().optional(),\n banned_list: z.array(SendbirdListBannedMembers_BannedMemberSchema).describe(\"List of banned member objects in the group channel.\"),\n}).passthrough();\n\nexport const sendbirdListBannedMembers = action(\"SENDBIRD_LIST_BANNED_MEMBERS\", {\n slug: \"sendbird-list-banned-members\",\n name: \"List Banned Members\",\n description: \"Tool to list banned members in a group channel. Use when you need to see which users are banned from a specific group channel.\",\n input: SendbirdListBannedMembersInput,\n output: SendbirdListBannedMembersOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-banned-members.cjs","names":["z","action"],"sources":["../../src/actions/list-banned-members.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sendbird } from \"../app\";\n\nexport const SendbirdListBannedMembersInput = z.object({\n limit: z.number().int().describe(\"Number of banned members to return per page (1-100). Default is 10.\").optional(),\n token: z.string().describe(\"Pagination token from previous response; omit for first request.\").optional(),\n channel_url: z.string().describe(\"Unique URL of the group channel to list banned members from.\"),\n}).describe(\"Request parameters for listing banned members in a group channel.\");\nconst SendbirdListBannedMembers_BannedMemberSchema = z.object({\n user_id: z.string().describe(\"User ID of the banned member.\").nullable(),\n nickname: z.string().describe(\"Nickname of the banned user.\").nullable().optional(),\n ban_end_at: z.number().int().describe(\"Unix timestamp in milliseconds when the ban ends.\").nullable(),\n description: z.string().describe(\"Description or reason for the ban.\").nullable().optional(),\n profile_url: z.string().describe(\"Profile image URL of the banned user.\").nullable().optional(),\n ban_start_at: z.number().int().describe(\"Unix timestamp in milliseconds when the ban started.\").nullable(),\n}).passthrough();\nexport const SendbirdListBannedMembersOutput = z.object({\n next: z.string().describe(\"Pagination token for fetching the next page of results.\").nullable().optional(),\n banned_list: z.array(SendbirdListBannedMembers_BannedMemberSchema).describe(\"List of banned member objects in the group channel.\"),\n}).passthrough();\n\nexport const sendbirdListBannedMembers: AppAction<\n typeof SendbirdListBannedMembersInput,\n typeof SendbirdListBannedMembersOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_LIST_BANNED_MEMBERS\", {\n slug: \"sendbird-list-banned-members\",\n name: \"List Banned Members\",\n description: \"Tool to list banned members in a group channel. Use when you need to see which users are banned from a specific group channel.\",\n input: SendbirdListBannedMembersInput,\n output: SendbirdListBannedMembersOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACjH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CACxG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;AACjG,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACvE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACpG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,aAAaA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,qDAAqD;AACnI,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,4BAITC,eAAAA,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sendbird } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-banned-members.d.ts
|
|
@@ -17,11 +19,7 @@ declare const SendbirdListBannedMembersOutput: z.ZodObject<{
|
|
|
17
19
|
ban_start_at: z.ZodNullable<z.ZodNumber>;
|
|
18
20
|
}, z.core.$loose>>;
|
|
19
21
|
}, z.core.$loose>;
|
|
20
|
-
declare const sendbirdListBannedMembers:
|
|
21
|
-
channel_url: string;
|
|
22
|
-
limit?: number | undefined;
|
|
23
|
-
token?: string | undefined;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
22
|
+
declare const sendbirdListBannedMembers: AppAction<typeof SendbirdListBannedMembersInput, typeof SendbirdListBannedMembersOutput, typeof sendbird.credential>;
|
|
25
23
|
//#endregion
|
|
26
24
|
export { sendbirdListBannedMembers };
|
|
27
25
|
//# sourceMappingURL=list-banned-members.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-banned-members.d.cts","names":[],"sources":["../../src/actions/list-banned-members.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-banned-members.d.cts","names":[],"sources":["../../src/actions/list-banned-members.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAa9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;cAK/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sendbird } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-banned-members.d.ts
|
|
@@ -17,11 +19,7 @@ declare const SendbirdListBannedMembersOutput: z.ZodObject<{
|
|
|
17
19
|
ban_start_at: z.ZodNullable<z.ZodNumber>;
|
|
18
20
|
}, z.core.$loose>>;
|
|
19
21
|
}, z.core.$loose>;
|
|
20
|
-
declare const sendbirdListBannedMembers:
|
|
21
|
-
channel_url: string;
|
|
22
|
-
limit?: number | undefined;
|
|
23
|
-
token?: string | undefined;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
22
|
+
declare const sendbirdListBannedMembers: AppAction<typeof SendbirdListBannedMembersInput, typeof SendbirdListBannedMembersOutput, typeof sendbird.credential>;
|
|
25
23
|
//#endregion
|
|
26
24
|
export { sendbirdListBannedMembers };
|
|
27
25
|
//# sourceMappingURL=list-banned-members.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-banned-members.d.mts","names":[],"sources":["../../src/actions/list-banned-members.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-banned-members.d.mts","names":[],"sources":["../../src/actions/list-banned-members.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAa9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;cAK/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-banned-members.mjs","names":[],"sources":["../../src/actions/list-banned-members.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdListBannedMembersInput = z.object({\n limit: z.number().int().describe(\"Number of banned members to return per page (1-100). Default is 10.\").optional(),\n token: z.string().describe(\"Pagination token from previous response; omit for first request.\").optional(),\n channel_url: z.string().describe(\"Unique URL of the group channel to list banned members from.\"),\n}).describe(\"Request parameters for listing banned members in a group channel.\");\nconst SendbirdListBannedMembers_BannedMemberSchema = z.object({\n user_id: z.string().describe(\"User ID of the banned member.\").nullable(),\n nickname: z.string().describe(\"Nickname of the banned user.\").nullable().optional(),\n ban_end_at: z.number().int().describe(\"Unix timestamp in milliseconds when the ban ends.\").nullable(),\n description: z.string().describe(\"Description or reason for the ban.\").nullable().optional(),\n profile_url: z.string().describe(\"Profile image URL of the banned user.\").nullable().optional(),\n ban_start_at: z.number().int().describe(\"Unix timestamp in milliseconds when the ban started.\").nullable(),\n}).passthrough();\nexport const SendbirdListBannedMembersOutput = z.object({\n next: z.string().describe(\"Pagination token for fetching the next page of results.\").nullable().optional(),\n banned_list: z.array(SendbirdListBannedMembers_BannedMemberSchema).describe(\"List of banned member objects in the group channel.\"),\n}).passthrough();\n\nexport const sendbirdListBannedMembers = action(\"SENDBIRD_LIST_BANNED_MEMBERS\", {\n slug: \"sendbird-list-banned-members\",\n name: \"List Banned Members\",\n description: \"Tool to list banned members in a group channel. Use when you need to see which users are banned from a specific group channel.\",\n input: SendbirdListBannedMembersInput,\n output: SendbirdListBannedMembersOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-banned-members.mjs","names":[],"sources":["../../src/actions/list-banned-members.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sendbird } from \"../app\";\n\nexport const SendbirdListBannedMembersInput = z.object({\n limit: z.number().int().describe(\"Number of banned members to return per page (1-100). Default is 10.\").optional(),\n token: z.string().describe(\"Pagination token from previous response; omit for first request.\").optional(),\n channel_url: z.string().describe(\"Unique URL of the group channel to list banned members from.\"),\n}).describe(\"Request parameters for listing banned members in a group channel.\");\nconst SendbirdListBannedMembers_BannedMemberSchema = z.object({\n user_id: z.string().describe(\"User ID of the banned member.\").nullable(),\n nickname: z.string().describe(\"Nickname of the banned user.\").nullable().optional(),\n ban_end_at: z.number().int().describe(\"Unix timestamp in milliseconds when the ban ends.\").nullable(),\n description: z.string().describe(\"Description or reason for the ban.\").nullable().optional(),\n profile_url: z.string().describe(\"Profile image URL of the banned user.\").nullable().optional(),\n ban_start_at: z.number().int().describe(\"Unix timestamp in milliseconds when the ban started.\").nullable(),\n}).passthrough();\nexport const SendbirdListBannedMembersOutput = z.object({\n next: z.string().describe(\"Pagination token for fetching the next page of results.\").nullable().optional(),\n banned_list: z.array(SendbirdListBannedMembers_BannedMemberSchema).describe(\"List of banned member objects in the group channel.\"),\n}).passthrough();\n\nexport const sendbirdListBannedMembers: AppAction<\n typeof SendbirdListBannedMembersInput,\n typeof SendbirdListBannedMembersOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_LIST_BANNED_MEMBERS\", {\n slug: \"sendbird-list-banned-members\",\n name: \"List Banned Members\",\n description: \"Tool to list banned members in a group channel. Use when you need to see which users are ban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 @@
|
|
|
1
|
-
{"version":3,"file":"list-group-channel-messages.cjs","names":["z","action"],"sources":["../../src/actions/list-group-channel-messages.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdListGroupChannelMessagesInput = z.object({\n include: z.boolean().describe(\"Whether to include the anchor message in the results. Default is false.\").optional(),\n reverse: z.boolean().describe(\"Whether to reverse the order of results. Default is false.\").optional(),\n sender_id: z.string().describe(\"Filter messages by a single sender's user ID.\").optional(),\n message_id: z.number().int().describe(\"Message ID anchor. Use to fetch messages around this message. Required if message_ts is not provided.\").optional(),\n message_ts: z.number().int().describe(\"Timestamp anchor in Unix milliseconds. Use to fetch messages around this time. Required if message_id is not provided.\").optional(),\n next_limit: z.number().int().describe(\"Number of messages to retrieve after the anchor (0-200). Default is 10.\").optional(),\n prev_limit: z.number().int().describe(\"Number of messages to retrieve before the anchor (0-200). Default is 0.\").optional(),\n sender_ids: z.string().describe(\"Filter messages by multiple sender user IDs (comma-separated).\").optional(),\n channel_url: z.string().describe(\"URL-encoded identifier of the group channel.\"),\n custom_types: z.string().describe(\"Filter by custom message types (comma-separated).\").optional(),\n message_type: z.string().describe(\"Filter by message type. Options: MESG (text), FILE (file), ADMM (admin). Can combine with commas.\").optional(),\n operator_filter: z.string().describe(\"Filter by operator status. Options: all, operator, nonoperator.\").optional(),\n include_reactions: z.boolean().describe(\"Whether to include reaction information. Default is false.\").optional(),\n including_removed: z.boolean().describe(\"Whether to include removed messages. Default is false.\").optional(),\n include_reply_type: z.string().describe(\"Filter by reply type. Options: all, only_reply_to_channel, none.\").optional(),\n include_thread_info: z.boolean().describe(\"Whether to include thread information. Default is false.\").optional(),\n include_poll_details: z.boolean().describe(\"Whether to include poll details for messages with polls. Default is false.\").optional(),\n with_sorted_meta_array: z.boolean().describe(\"Whether to include sorted metadata arrays. Default is false.\").optional(),\n include_parent_message_info: z.boolean().describe(\"Whether to include parent message information for threaded messages. Default is false.\").optional(),\n}).describe(\"Request model for listing messages in a group channel.\");\nconst SendbirdListGroupChannelMessages_UserSchema = z.object({\n user_id: z.string().describe(\"ID of the user who sent the message.\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata for the user.\").nullable().optional(),\n nickname: z.string().describe(\"Nickname of the user.\").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(\"Timestamp (ms) when the user was last seen.\").nullable().optional(),\n connection_status: z.string().describe(\"Connection status of the user.\").nullable().optional(),\n}).passthrough();\nconst SendbirdListGroupChannelMessages_OGTagSchema = z.object({\n url: z.string().describe(\"Open graph URL.\").nullable().optional(),\n image: z.string().describe(\"Open graph image URL.\").nullable().optional(),\n title: z.string().describe(\"Open graph title.\").nullable().optional(),\n description: z.string().describe(\"Open graph description.\").nullable().optional(),\n}).passthrough();\nconst SendbirdListGroupChannelMessages_MessageReactionSchema = z.object({\n key: z.string().describe(\"Reaction key (emoji).\").nullable(),\n user_ids: z.array(z.string()).describe(\"User IDs who reacted.\"),\n created_at: z.number().int().describe(\"Timestamp (ms) when reaction was created.\").nullable().optional(),\n}).passthrough();\nconst SendbirdListGroupChannelMessages_ThreadInfoSchema = z.object({\n reply_count: z.number().int().describe(\"Number of replies in the thread.\").nullable().optional(),\n most_replies: z.array(z.record(z.string(), z.unknown())).describe(\"Most recent replies in the thread.\").nullable().optional(),\n last_replied_at: z.number().int().describe(\"Timestamp (ms) of latest reply.\").nullable().optional(),\n}).passthrough();\nconst SendbirdListGroupChannelMessages_MessageMetaSchema = z.object({\n key: z.string().describe(\"Metadata key.\").nullable(),\n value: z.string().describe(\"Metadata value.\").nullable(),\n created_at: z.number().int().describe(\"Timestamp (ms) when metadata was created.\").nullable().optional(),\n updated_at: z.number().int().describe(\"Timestamp (ms) when metadata was updated.\").nullable().optional(),\n}).passthrough();\nconst SendbirdListGroupChannelMessages_MessageSchema = z.object({\n data: z.string().describe(\"Custom message data.\").nullable().optional(),\n file: z.record(z.string(), z.unknown()).describe(\"File information for FILE type messages.\").nullable().optional(),\n type: z.string().describe(\"Type of the message (MESG, FILE, ADMM).\").nullable(),\n user: SendbirdListGroupChannelMessages_UserSchema.nullable().optional(),\n og_tag: SendbirdListGroupChannelMessages_OGTagSchema.nullable().optional(),\n silent: z.boolean().describe(\"Whether message is silent.\").nullable().optional(),\n message: z.string().describe(\"Text content of the message.\").nullable().optional(),\n reactions: z.array(SendbirdListGroupChannelMessages_MessageReactionSchema).describe(\"List of reactions.\").nullable().optional(),\n created_at: z.number().int().describe(\"Creation timestamp (ms).\").nullable(),\n is_removed: z.boolean().describe(\"Whether message has been removed.\").nullable().optional(),\n message_id: z.string().describe(\"Unique ID of the message.\").nullable(),\n updated_at: z.number().int().describe(\"Update timestamp (ms).\").nullable().optional(),\n channel_url: z.string().describe(\"URL of the group channel.\").nullable().optional(),\n custom_type: z.string().describe(\"Custom message type.\").nullable().optional(),\n thread_info: SendbirdListGroupChannelMessages_ThreadInfoSchema.nullable().optional(),\n mention_type: z.string().describe(\"Mention type.\").nullable().optional(),\n translations: z.record(z.string(), z.unknown()).describe(\"Translated texts keyed by language.\").nullable().optional(),\n mentioned_users: z.array(SendbirdListGroupChannelMessages_UserSchema).describe(\"Users mentioned in the message.\").nullable().optional(),\n sorted_metaarray: z.array(SendbirdListGroupChannelMessages_MessageMetaSchema).describe(\"Sorted metadata array.\").nullable().optional(),\n parent_message_id: z.number().int().describe(\"Parent message ID if this is a reply.\").nullable().optional(),\n parent_message_info: z.record(z.string(), z.unknown()).describe(\"Parent message details if threaded.\").nullable().optional(),\n}).passthrough();\nexport const SendbirdListGroupChannelMessagesOutput = z.object({\n messages: z.array(SendbirdListGroupChannelMessages_MessageSchema).describe(\"Array of message objects retrieved from the channel.\"),\n}).passthrough();\n\nexport const sendbirdListGroupChannelMessages = action(\"SENDBIRD_LIST_GROUP_CHANNEL_MESSAGES\", {\n slug: \"sendbird-list-group-channel-messages\",\n name: \"Sendbird List Group Channel Messages\",\n description: \"Tool to list (paginate) messages in a group channel when you only know the channel_url. Requires either message_ts (Unix ms timestamp) or message_id as an anchor. Use with SENDBIRD_VIEW_GROUP_CHANNEL (show_read_receipt=true) to fetch unread messages: get last-read timestamp, then call this with message_ts=<last_read>, prev_limit=0, next_limit=<batch_size>, include=false.\",\n input: SendbirdListGroupChannelMessagesInput,\n output: SendbirdListGroupChannelMessagesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAClH,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACrG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACzF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CACxJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;CACzK,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAC1H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAC1H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC3G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC/E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAChG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;CAChJ,iBAAiBA,IAAAA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,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,qBAAqBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7H,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,yCAAyCA,IAAAA,EAAE,OAAO,EAC7D,UAAUA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,sDAAsD,EACnI,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,mCAAmCC,eAAAA,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"list-group-channel-messages.cjs","names":["z","action"],"sources":["../../src/actions/list-group-channel-messages.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sendbird } from \"../app\";\n\nexport const SendbirdListGroupChannelMessagesInput = z.object({\n include: z.boolean().describe(\"Whether to include the anchor message in the results. Default is false.\").optional(),\n reverse: z.boolean().describe(\"Whether to reverse the order of results. Default is false.\").optional(),\n sender_id: z.string().describe(\"Filter messages by a single sender's user ID.\").optional(),\n message_id: z.number().int().describe(\"Message ID anchor. Use to fetch messages around this message. Required if message_ts is not provided.\").optional(),\n message_ts: z.number().int().describe(\"Timestamp anchor in Unix milliseconds. Use to fetch messages around this time. Required if message_id is not provided.\").optional(),\n next_limit: z.number().int().describe(\"Number of messages to retrieve after the anchor (0-200). Default is 10.\").optional(),\n prev_limit: z.number().int().describe(\"Number of messages to retrieve before the anchor (0-200). Default is 0.\").optional(),\n sender_ids: z.string().describe(\"Filter messages by multiple sender user IDs (comma-separated).\").optional(),\n channel_url: z.string().describe(\"URL-encoded identifier of the group channel.\"),\n custom_types: z.string().describe(\"Filter by custom message types (comma-separated).\").optional(),\n message_type: z.string().describe(\"Filter by message type. Options: MESG (text), FILE (file), ADMM (admin). Can combine with commas.\").optional(),\n operator_filter: z.string().describe(\"Filter by operator status. Options: all, operator, nonoperator.\").optional(),\n include_reactions: z.boolean().describe(\"Whether to include reaction information. Default is false.\").optional(),\n including_removed: z.boolean().describe(\"Whether to include removed messages. Default is false.\").optional(),\n include_reply_type: z.string().describe(\"Filter by reply type. Options: all, only_reply_to_channel, none.\").optional(),\n include_thread_info: z.boolean().describe(\"Whether to include thread information. Default is false.\").optional(),\n include_poll_details: z.boolean().describe(\"Whether to include poll details for messages with polls. Default is false.\").optional(),\n with_sorted_meta_array: z.boolean().describe(\"Whether to include sorted metadata arrays. Default is false.\").optional(),\n include_parent_message_info: z.boolean().describe(\"Whether to include parent message information for threaded messages. Default is false.\").optional(),\n}).describe(\"Request model for listing messages in a group channel.\");\nconst SendbirdListGroupChannelMessages_UserSchema = z.object({\n user_id: z.string().describe(\"ID of the user who sent the message.\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata for the user.\").nullable().optional(),\n nickname: z.string().describe(\"Nickname of the user.\").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(\"Timestamp (ms) when the user was last seen.\").nullable().optional(),\n connection_status: z.string().describe(\"Connection status of the user.\").nullable().optional(),\n}).passthrough();\nconst SendbirdListGroupChannelMessages_OGTagSchema = z.object({\n url: z.string().describe(\"Open graph URL.\").nullable().optional(),\n image: z.string().describe(\"Open graph image URL.\").nullable().optional(),\n title: z.string().describe(\"Open graph title.\").nullable().optional(),\n description: z.string().describe(\"Open graph description.\").nullable().optional(),\n}).passthrough();\nconst SendbirdListGroupChannelMessages_MessageReactionSchema = z.object({\n key: z.string().describe(\"Reaction key (emoji).\").nullable(),\n user_ids: z.array(z.string()).describe(\"User IDs who reacted.\"),\n created_at: z.number().int().describe(\"Timestamp (ms) when reaction was created.\").nullable().optional(),\n}).passthrough();\nconst SendbirdListGroupChannelMessages_ThreadInfoSchema = z.object({\n reply_count: z.number().int().describe(\"Number of replies in the thread.\").nullable().optional(),\n most_replies: z.array(z.record(z.string(), z.unknown())).describe(\"Most recent replies in the thread.\").nullable().optional(),\n last_replied_at: z.number().int().describe(\"Timestamp (ms) of latest reply.\").nullable().optional(),\n}).passthrough();\nconst SendbirdListGroupChannelMessages_MessageMetaSchema = z.object({\n key: z.string().describe(\"Metadata key.\").nullable(),\n value: z.string().describe(\"Metadata value.\").nullable(),\n created_at: z.number().int().describe(\"Timestamp (ms) when metadata was created.\").nullable().optional(),\n updated_at: z.number().int().describe(\"Timestamp (ms) when metadata was updated.\").nullable().optional(),\n}).passthrough();\nconst SendbirdListGroupChannelMessages_MessageSchema = z.object({\n data: z.string().describe(\"Custom message data.\").nullable().optional(),\n file: z.record(z.string(), z.unknown()).describe(\"File information for FILE type messages.\").nullable().optional(),\n type: z.string().describe(\"Type of the message (MESG, FILE, ADMM).\").nullable(),\n user: SendbirdListGroupChannelMessages_UserSchema.nullable().optional(),\n og_tag: SendbirdListGroupChannelMessages_OGTagSchema.nullable().optional(),\n silent: z.boolean().describe(\"Whether message is silent.\").nullable().optional(),\n message: z.string().describe(\"Text content of the message.\").nullable().optional(),\n reactions: z.array(SendbirdListGroupChannelMessages_MessageReactionSchema).describe(\"List of reactions.\").nullable().optional(),\n created_at: z.number().int().describe(\"Creation timestamp (ms).\").nullable(),\n is_removed: z.boolean().describe(\"Whether message has been removed.\").nullable().optional(),\n message_id: z.string().describe(\"Unique ID of the message.\").nullable(),\n updated_at: z.number().int().describe(\"Update timestamp (ms).\").nullable().optional(),\n channel_url: z.string().describe(\"URL of the group channel.\").nullable().optional(),\n custom_type: z.string().describe(\"Custom message type.\").nullable().optional(),\n thread_info: SendbirdListGroupChannelMessages_ThreadInfoSchema.nullable().optional(),\n mention_type: z.string().describe(\"Mention type.\").nullable().optional(),\n translations: z.record(z.string(), z.unknown()).describe(\"Translated texts keyed by language.\").nullable().optional(),\n mentioned_users: z.array(SendbirdListGroupChannelMessages_UserSchema).describe(\"Users mentioned in the message.\").nullable().optional(),\n sorted_metaarray: z.array(SendbirdListGroupChannelMessages_MessageMetaSchema).describe(\"Sorted metadata array.\").nullable().optional(),\n parent_message_id: z.number().int().describe(\"Parent message ID if this is a reply.\").nullable().optional(),\n parent_message_info: z.record(z.string(), z.unknown()).describe(\"Parent message details if threaded.\").nullable().optional(),\n}).passthrough();\nexport const SendbirdListGroupChannelMessagesOutput = z.object({\n messages: z.array(SendbirdListGroupChannelMessages_MessageSchema).describe(\"Array of message objects retrieved from the channel.\"),\n}).passthrough();\n\nexport const sendbirdListGroupChannelMessages: AppAction<\n typeof SendbirdListGroupChannelMessagesInput,\n typeof SendbirdListGroupChannelMessagesOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_LIST_GROUP_CHANNEL_MESSAGES\", {\n slug: \"sendbird-list-group-channel-messages\",\n name: \"Sendbird List Group Channel Messages\",\n description: \"Tool to list (paginate) messages in a group channel when you only know the channel_url. Requires either message_ts (Unix ms timestamp) or message_id as an anchor. Use with SENDBIRD_VIEW_GROUP_CHANNEL (show_read_receipt=true) to fetch unread messages: get last-read timestamp, then call this with message_ts=<last_read>, prev_limit=0, next_limit=<batch_size>, include=false.\",\n input: SendbirdListGroupChannelMessagesInput,\n output: SendbirdListGroupChannelMessagesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAClH,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACrG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACzF,YAAYA,IAAAA,EAAE,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
|
|
1
|
+
import { sendbird } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-group-channel-messages.d.ts
|
|
@@ -79,27 +81,7 @@ declare const SendbirdListGroupChannelMessagesOutput: z.ZodObject<{
|
|
|
79
81
|
parent_message_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
80
82
|
}, z.core.$loose>>;
|
|
81
83
|
}, z.core.$loose>;
|
|
82
|
-
declare const sendbirdListGroupChannelMessages:
|
|
83
|
-
channel_url: string;
|
|
84
|
-
include?: boolean | undefined;
|
|
85
|
-
reverse?: boolean | undefined;
|
|
86
|
-
sender_id?: string | undefined;
|
|
87
|
-
message_id?: number | undefined;
|
|
88
|
-
message_ts?: number | undefined;
|
|
89
|
-
next_limit?: number | undefined;
|
|
90
|
-
prev_limit?: number | undefined;
|
|
91
|
-
sender_ids?: string | undefined;
|
|
92
|
-
custom_types?: string | undefined;
|
|
93
|
-
message_type?: string | undefined;
|
|
94
|
-
operator_filter?: string | undefined;
|
|
95
|
-
include_reactions?: boolean | undefined;
|
|
96
|
-
including_removed?: boolean | undefined;
|
|
97
|
-
include_reply_type?: string | undefined;
|
|
98
|
-
include_thread_info?: boolean | undefined;
|
|
99
|
-
include_poll_details?: boolean | undefined;
|
|
100
|
-
with_sorted_meta_array?: boolean | undefined;
|
|
101
|
-
include_parent_message_info?: boolean | undefined;
|
|
102
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
84
|
+
declare const sendbirdListGroupChannelMessages: AppAction<typeof SendbirdListGroupChannelMessagesInput, typeof SendbirdListGroupChannelMessagesOutput, typeof sendbird.credential>;
|
|
103
85
|
//#endregion
|
|
104
86
|
export { sendbirdListGroupChannelMessages };
|
|
105
87
|
//# sourceMappingURL=list-group-channel-messages.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-group-channel-messages.d.cts","names":[],"sources":["../../src/actions/list-group-channel-messages.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-group-channel-messages.d.cts","names":[],"sources":["../../src/actions/list-group-channel-messages.ts"],"mappings":";;;;;cAMa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cA0ErC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAItC,gCAAA,EAAkC,SAAA,QACtC,qCAAA,SACA,sCAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sendbird } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-group-channel-messages.d.ts
|
|
@@ -79,27 +81,7 @@ declare const SendbirdListGroupChannelMessagesOutput: z.ZodObject<{
|
|
|
79
81
|
parent_message_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
80
82
|
}, z.core.$loose>>;
|
|
81
83
|
}, z.core.$loose>;
|
|
82
|
-
declare const sendbirdListGroupChannelMessages:
|
|
83
|
-
channel_url: string;
|
|
84
|
-
include?: boolean | undefined;
|
|
85
|
-
reverse?: boolean | undefined;
|
|
86
|
-
sender_id?: string | undefined;
|
|
87
|
-
message_id?: number | undefined;
|
|
88
|
-
message_ts?: number | undefined;
|
|
89
|
-
next_limit?: number | undefined;
|
|
90
|
-
prev_limit?: number | undefined;
|
|
91
|
-
sender_ids?: string | undefined;
|
|
92
|
-
custom_types?: string | undefined;
|
|
93
|
-
message_type?: string | undefined;
|
|
94
|
-
operator_filter?: string | undefined;
|
|
95
|
-
include_reactions?: boolean | undefined;
|
|
96
|
-
including_removed?: boolean | undefined;
|
|
97
|
-
include_reply_type?: string | undefined;
|
|
98
|
-
include_thread_info?: boolean | undefined;
|
|
99
|
-
include_poll_details?: boolean | undefined;
|
|
100
|
-
with_sorted_meta_array?: boolean | undefined;
|
|
101
|
-
include_parent_message_info?: boolean | undefined;
|
|
102
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
84
|
+
declare const sendbirdListGroupChannelMessages: AppAction<typeof SendbirdListGroupChannelMessagesInput, typeof SendbirdListGroupChannelMessagesOutput, typeof sendbird.credential>;
|
|
103
85
|
//#endregion
|
|
104
86
|
export { sendbirdListGroupChannelMessages };
|
|
105
87
|
//# sourceMappingURL=list-group-channel-messages.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-group-channel-messages.d.mts","names":[],"sources":["../../src/actions/list-group-channel-messages.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-group-channel-messages.d.mts","names":[],"sources":["../../src/actions/list-group-channel-messages.ts"],"mappings":";;;;;cAMa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cA0ErC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAItC,gCAAA,EAAkC,SAAA,QACtC,qCAAA,SACA,sCAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-group-channel-messages.mjs","names":[],"sources":["../../src/actions/list-group-channel-messages.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdListGroupChannelMessagesInput = z.object({\n include: z.boolean().describe(\"Whether to include the anchor message in the results. Default is false.\").optional(),\n reverse: z.boolean().describe(\"Whether to reverse the order of results. Default is false.\").optional(),\n sender_id: z.string().describe(\"Filter messages by a single sender's user ID.\").optional(),\n message_id: z.number().int().describe(\"Message ID anchor. Use to fetch messages around this message. Required if message_ts is not provided.\").optional(),\n message_ts: z.number().int().describe(\"Timestamp anchor in Unix milliseconds. Use to fetch messages around this time. Required if message_id is not provided.\").optional(),\n next_limit: z.number().int().describe(\"Number of messages to retrieve after the anchor (0-200). Default is 10.\").optional(),\n prev_limit: z.number().int().describe(\"Number of messages to retrieve before the anchor (0-200). Default is 0.\").optional(),\n sender_ids: z.string().describe(\"Filter messages by multiple sender user IDs (comma-separated).\").optional(),\n channel_url: z.string().describe(\"URL-encoded identifier of the group channel.\"),\n custom_types: z.string().describe(\"Filter by custom message types (comma-separated).\").optional(),\n message_type: z.string().describe(\"Filter by message type. Options: MESG (text), FILE (file), ADMM (admin). Can combine with commas.\").optional(),\n operator_filter: z.string().describe(\"Filter by operator status. Options: all, operator, nonoperator.\").optional(),\n include_reactions: z.boolean().describe(\"Whether to include reaction information. Default is false.\").optional(),\n including_removed: z.boolean().describe(\"Whether to include removed messages. Default is false.\").optional(),\n include_reply_type: z.string().describe(\"Filter by reply type. Options: all, only_reply_to_channel, none.\").optional(),\n include_thread_info: z.boolean().describe(\"Whether to include thread information. Default is false.\").optional(),\n include_poll_details: z.boolean().describe(\"Whether to include poll details for messages with polls. Default is false.\").optional(),\n with_sorted_meta_array: z.boolean().describe(\"Whether to include sorted metadata arrays. Default is false.\").optional(),\n include_parent_message_info: z.boolean().describe(\"Whether to include parent message information for threaded messages. Default is false.\").optional(),\n}).describe(\"Request model for listing messages in a group channel.\");\nconst SendbirdListGroupChannelMessages_UserSchema = z.object({\n user_id: z.string().describe(\"ID of the user who sent the message.\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata for the user.\").nullable().optional(),\n nickname: z.string().describe(\"Nickname of the user.\").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(\"Timestamp (ms) when the user was last seen.\").nullable().optional(),\n connection_status: z.string().describe(\"Connection status of the user.\").nullable().optional(),\n}).passthrough();\nconst SendbirdListGroupChannelMessages_OGTagSchema = z.object({\n url: z.string().describe(\"Open graph URL.\").nullable().optional(),\n image: z.string().describe(\"Open graph image URL.\").nullable().optional(),\n title: z.string().describe(\"Open graph title.\").nullable().optional(),\n description: z.string().describe(\"Open graph description.\").nullable().optional(),\n}).passthrough();\nconst SendbirdListGroupChannelMessages_MessageReactionSchema = z.object({\n key: z.string().describe(\"Reaction key (emoji).\").nullable(),\n user_ids: z.array(z.string()).describe(\"User IDs who reacted.\"),\n created_at: z.number().int().describe(\"Timestamp (ms) when reaction was created.\").nullable().optional(),\n}).passthrough();\nconst SendbirdListGroupChannelMessages_ThreadInfoSchema = z.object({\n reply_count: z.number().int().describe(\"Number of replies in the thread.\").nullable().optional(),\n most_replies: z.array(z.record(z.string(), z.unknown())).describe(\"Most recent replies in the thread.\").nullable().optional(),\n last_replied_at: z.number().int().describe(\"Timestamp (ms) of latest reply.\").nullable().optional(),\n}).passthrough();\nconst SendbirdListGroupChannelMessages_MessageMetaSchema = z.object({\n key: z.string().describe(\"Metadata key.\").nullable(),\n value: z.string().describe(\"Metadata value.\").nullable(),\n created_at: z.number().int().describe(\"Timestamp (ms) when metadata was created.\").nullable().optional(),\n updated_at: z.number().int().describe(\"Timestamp (ms) when metadata was updated.\").nullable().optional(),\n}).passthrough();\nconst SendbirdListGroupChannelMessages_MessageSchema = z.object({\n data: z.string().describe(\"Custom message data.\").nullable().optional(),\n file: z.record(z.string(), z.unknown()).describe(\"File information for FILE type messages.\").nullable().optional(),\n type: z.string().describe(\"Type of the message (MESG, FILE, ADMM).\").nullable(),\n user: SendbirdListGroupChannelMessages_UserSchema.nullable().optional(),\n og_tag: SendbirdListGroupChannelMessages_OGTagSchema.nullable().optional(),\n silent: z.boolean().describe(\"Whether message is silent.\").nullable().optional(),\n message: z.string().describe(\"Text content of the message.\").nullable().optional(),\n reactions: z.array(SendbirdListGroupChannelMessages_MessageReactionSchema).describe(\"List of reactions.\").nullable().optional(),\n created_at: z.number().int().describe(\"Creation timestamp (ms).\").nullable(),\n is_removed: z.boolean().describe(\"Whether message has been removed.\").nullable().optional(),\n message_id: z.string().describe(\"Unique ID of the message.\").nullable(),\n updated_at: z.number().int().describe(\"Update timestamp (ms).\").nullable().optional(),\n channel_url: z.string().describe(\"URL of the group channel.\").nullable().optional(),\n custom_type: z.string().describe(\"Custom message type.\").nullable().optional(),\n thread_info: SendbirdListGroupChannelMessages_ThreadInfoSchema.nullable().optional(),\n mention_type: z.string().describe(\"Mention type.\").nullable().optional(),\n translations: z.record(z.string(), z.unknown()).describe(\"Translated texts keyed by language.\").nullable().optional(),\n mentioned_users: z.array(SendbirdListGroupChannelMessages_UserSchema).describe(\"Users mentioned in the message.\").nullable().optional(),\n sorted_metaarray: z.array(SendbirdListGroupChannelMessages_MessageMetaSchema).describe(\"Sorted metadata array.\").nullable().optional(),\n parent_message_id: z.number().int().describe(\"Parent message ID if this is a reply.\").nullable().optional(),\n parent_message_info: z.record(z.string(), z.unknown()).describe(\"Parent message details if threaded.\").nullable().optional(),\n}).passthrough();\nexport const SendbirdListGroupChannelMessagesOutput = z.object({\n messages: z.array(SendbirdListGroupChannelMessages_MessageSchema).describe(\"Array of message objects retrieved from the channel.\"),\n}).passthrough();\n\nexport const sendbirdListGroupChannelMessages = action(\"SENDBIRD_LIST_GROUP_CHANNEL_MESSAGES\", {\n slug: \"sendbird-list-group-channel-messages\",\n name: \"Sendbird List Group Channel Messages\",\n description: \"Tool to list (paginate) messages in a group channel when you only know the channel_url. Requires either message_ts (Unix ms timestamp) or message_id as an anchor. Use with SENDBIRD_VIEW_GROUP_CHANNEL (show_read_receipt=true) to fetch unread messages: get last-read timestamp, then call this with message_ts=<last_read>, prev_limit=0, next_limit=<batch_size>, include=false.\",\n input: SendbirdListGroupChannelMessagesInput,\n output: SendbirdListGroupChannelMessagesOutput,\n});\n"],"mappings":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eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,iBAAiB,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,kBAAkB,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,qBAAqB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7H,CAAC,CAAC,CAAC,YAAY;AAKf,MAAa,mCAAmC,OAAO,wCAAwC;CAC7F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToD,EAAE,OAAO,EAC7D,UAAU,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,sDAAsD,EACnI,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"list-group-channel-messages.mjs","names":[],"sources":["../../src/actions/list-group-channel-messages.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sendbird } from \"../app\";\n\nexport const SendbirdListGroupChannelMessagesInput = z.object({\n include: z.boolean().describe(\"Whether to include the anchor message in the results. Default is false.\").optional(),\n reverse: z.boolean().describe(\"Whether to reverse the order of results. Default is false.\").optional(),\n sender_id: z.string().describe(\"Filter messages by a single sender's user ID.\").optional(),\n message_id: z.number().int().describe(\"Message ID anchor. Use to fetch messages around this message. Required if message_ts is not provided.\").optional(),\n message_ts: z.number().int().describe(\"Timestamp anchor in Unix milliseconds. Use to fetch messages around this time. Required if message_id is not provided.\").optional(),\n next_limit: z.number().int().describe(\"Number of messages to retrieve after the anchor (0-200). Default is 10.\").optional(),\n prev_limit: z.number().int().describe(\"Number of messages to retrieve before the anchor (0-200). Default is 0.\").optional(),\n sender_ids: z.string().describe(\"Filter messages by multiple sender user IDs (comma-separated).\").optional(),\n channel_url: z.string().describe(\"URL-encoded identifier of the group channel.\"),\n custom_types: z.string().describe(\"Filter by custom message types (comma-separated).\").optional(),\n message_type: z.string().describe(\"Filter by message type. Options: MESG (text), FILE (file), ADMM (admin). Can combine with commas.\").optional(),\n operator_filter: z.string().describe(\"Filter by operator status. Options: all, operator, nonoperator.\").optional(),\n include_reactions: z.boolean().describe(\"Whether to include reaction information. Default is false.\").optional(),\n including_removed: z.boolean().describe(\"Whether to include removed messages. Default is false.\").optional(),\n include_reply_type: z.string().describe(\"Filter by reply type. Options: all, only_reply_to_channel, none.\").optional(),\n include_thread_info: z.boolean().describe(\"Whether to include thread information. Default is false.\").optional(),\n include_poll_details: z.boolean().describe(\"Whether to include poll details for messages with polls. Default is false.\").optional(),\n with_sorted_meta_array: z.boolean().describe(\"Whether to include sorted metadata arrays. Default is false.\").optional(),\n include_parent_message_info: z.boolean().describe(\"Whether to include parent message information for threaded messages. Default is false.\").optional(),\n}).describe(\"Request model for listing messages in a group channel.\");\nconst SendbirdListGroupChannelMessages_UserSchema = z.object({\n user_id: z.string().describe(\"ID of the user who sent the message.\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Additional metadata for the user.\").nullable().optional(),\n nickname: z.string().describe(\"Nickname of the user.\").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(\"Timestamp (ms) when the user was last seen.\").nullable().optional(),\n connection_status: z.string().describe(\"Connection status of the user.\").nullable().optional(),\n}).passthrough();\nconst SendbirdListGroupChannelMessages_OGTagSchema = z.object({\n url: z.string().describe(\"Open graph URL.\").nullable().optional(),\n image: z.string().describe(\"Open graph image URL.\").nullable().optional(),\n title: z.string().describe(\"Open graph title.\").nullable().optional(),\n description: z.string().describe(\"Open graph description.\").nullable().optional(),\n}).passthrough();\nconst SendbirdListGroupChannelMessages_MessageReactionSchema = z.object({\n key: z.string().describe(\"Reaction key (emoji).\").nullable(),\n user_ids: z.array(z.string()).describe(\"User IDs who reacted.\"),\n created_at: z.number().int().describe(\"Timestamp (ms) when reaction was created.\").nullable().optional(),\n}).passthrough();\nconst SendbirdListGroupChannelMessages_ThreadInfoSchema = z.object({\n reply_count: z.number().int().describe(\"Number of replies in the thread.\").nullable().optional(),\n most_replies: z.array(z.record(z.string(), z.unknown())).describe(\"Most recent replies in the thread.\").nullable().optional(),\n last_replied_at: z.number().int().describe(\"Timestamp (ms) of latest reply.\").nullable().optional(),\n}).passthrough();\nconst SendbirdListGroupChannelMessages_MessageMetaSchema = z.object({\n key: z.string().describe(\"Metadata key.\").nullable(),\n value: z.string().describe(\"Metadata value.\").nullable(),\n created_at: z.number().int().describe(\"Timestamp (ms) when metadata was created.\").nullable().optional(),\n updated_at: z.number().int().describe(\"Timestamp (ms) when metadata was updated.\").nullable().optional(),\n}).passthrough();\nconst SendbirdListGroupChannelMessages_MessageSchema = z.object({\n data: z.string().describe(\"Custom message data.\").nullable().optional(),\n file: z.record(z.string(), z.unknown()).describe(\"File information for FILE type messages.\").nullable().optional(),\n type: z.string().describe(\"Type of the message (MESG, FILE, ADMM).\").nullable(),\n user: SendbirdListGroupChannelMessages_UserSchema.nullable().optional(),\n og_tag: SendbirdListGroupChannelMessages_OGTagSchema.nullable().optional(),\n silent: z.boolean().describe(\"Whether message is silent.\").nullable().optional(),\n message: z.string().describe(\"Text content of the message.\").nullable().optional(),\n reactions: z.array(SendbirdListGroupChannelMessages_MessageReactionSchema).describe(\"List of reactions.\").nullable().optional(),\n created_at: z.number().int().describe(\"Creation timestamp (ms).\").nullable(),\n is_removed: z.boolean().describe(\"Whether message has been removed.\").nullable().optional(),\n message_id: z.string().describe(\"Unique ID of the message.\").nullable(),\n updated_at: z.number().int().describe(\"Update timestamp (ms).\").nullable().optional(),\n channel_url: z.string().describe(\"URL of the group channel.\").nullable().optional(),\n custom_type: z.string().describe(\"Custom message type.\").nullable().optional(),\n thread_info: SendbirdListGroupChannelMessages_ThreadInfoSchema.nullable().optional(),\n mention_type: z.string().describe(\"Mention type.\").nullable().optional(),\n translations: z.record(z.string(), z.unknown()).describe(\"Translated texts keyed by language.\").nullable().optional(),\n mentioned_users: z.array(SendbirdListGroupChannelMessages_UserSchema).describe(\"Users mentioned in the message.\").nullable().optional(),\n sorted_metaarray: z.array(SendbirdListGroupChannelMessages_MessageMetaSchema).describe(\"Sorted metadata array.\").nullable().optional(),\n parent_message_id: z.number().int().describe(\"Parent message ID if this is a reply.\").nullable().optional(),\n parent_message_info: z.record(z.string(), z.unknown()).describe(\"Parent message details if threaded.\").nullable().optional(),\n}).passthrough();\nexport const SendbirdListGroupChannelMessagesOutput = z.object({\n messages: z.array(SendbirdListGroupChannelMessages_MessageSchema).describe(\"Array of message objects retrieved from the channel.\"),\n}).passthrough();\n\nexport const sendbirdListGroupChannelMessages: AppAction<\n typeof SendbirdListGroupChannelMessagesInput,\n typeof SendbirdListGroupChannelMessagesOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_LIST_GROUP_CHANNEL_MESSAGES\", {\n slug: \"sendbird-list-group-channel-messages\",\n name: \"Sendbird List Group Channel Messages\",\n description: \"Tool to list (paginate) messages in a group channel when you only know the channel_url. Requires either message_ts (Unix ms timestamp) or message_id as an anchor. Use with SENDBIRD_VIEW_GROUP_CHANNEL (show_read_receipt=true) to fetch unread messages: get last-read timestamp, then call this with message_ts=<last_read>, prev_limit=0, next_limit=<batch_size>, include=false.\",\n input: SendbirdListGroupChannelMessagesInput,\n output: SendbirdListGroupChannelMessagesOutput,\n});\n"],"mappings":";;;;AAMA,MA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