@keystrokehq/sendbird 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-members-group-channel.cjs +1 -0
- package/dist/actions/add-members-group-channel.cjs.map +1 -1
- package/dist/actions/add-members-group-channel.d.cts +3 -20
- package/dist/actions/add-members-group-channel.d.cts.map +1 -1
- package/dist/actions/add-members-group-channel.d.mts +3 -20
- package/dist/actions/add-members-group-channel.d.mts.map +1 -1
- package/dist/actions/add-members-group-channel.mjs +1 -0
- package/dist/actions/add-members-group-channel.mjs.map +1 -1
- package/dist/actions/ban-user-from-group-channel.cjs +1 -0
- package/dist/actions/ban-user-from-group-channel.cjs.map +1 -1
- package/dist/actions/ban-user-from-group-channel.d.cts +3 -21
- package/dist/actions/ban-user-from-group-channel.d.cts.map +1 -1
- package/dist/actions/ban-user-from-group-channel.d.mts +3 -21
- package/dist/actions/ban-user-from-group-channel.d.mts.map +1 -1
- package/dist/actions/ban-user-from-group-channel.mjs +1 -0
- package/dist/actions/ban-user-from-group-channel.mjs.map +1 -1
- package/dist/actions/create-channel.cjs +1 -0
- package/dist/actions/create-channel.cjs.map +1 -1
- package/dist/actions/create-channel.d.cts +3 -34
- package/dist/actions/create-channel.d.cts.map +1 -1
- package/dist/actions/create-channel.d.mts +3 -34
- package/dist/actions/create-channel.d.mts.map +1 -1
- package/dist/actions/create-channel.mjs +1 -0
- package/dist/actions/create-channel.mjs.map +1 -1
- package/dist/actions/create-user.cjs +1 -0
- package/dist/actions/create-user.cjs.map +1 -1
- package/dist/actions/create-user.d.cts +3 -27
- package/dist/actions/create-user.d.cts.map +1 -1
- package/dist/actions/create-user.d.mts +3 -27
- package/dist/actions/create-user.d.mts.map +1 -1
- package/dist/actions/create-user.mjs +1 -0
- package/dist/actions/create-user.mjs.map +1 -1
- package/dist/actions/delete-channel.cjs +1 -0
- package/dist/actions/delete-channel.cjs.map +1 -1
- package/dist/actions/delete-channel.d.cts +3 -17
- package/dist/actions/delete-channel.d.cts.map +1 -1
- package/dist/actions/delete-channel.d.mts +3 -17
- package/dist/actions/delete-channel.d.mts.map +1 -1
- package/dist/actions/delete-channel.mjs +1 -0
- package/dist/actions/delete-channel.mjs.map +1 -1
- package/dist/actions/delete-message.cjs +1 -0
- package/dist/actions/delete-message.cjs.map +1 -1
- package/dist/actions/delete-message.d.cts +3 -18
- package/dist/actions/delete-message.d.cts.map +1 -1
- package/dist/actions/delete-message.d.mts +3 -18
- package/dist/actions/delete-message.d.mts.map +1 -1
- package/dist/actions/delete-message.mjs +1 -0
- package/dist/actions/delete-message.mjs.map +1 -1
- package/dist/actions/delete-user.cjs +1 -0
- package/dist/actions/delete-user.cjs.map +1 -1
- package/dist/actions/delete-user.d.cts +3 -18
- package/dist/actions/delete-user.d.cts.map +1 -1
- package/dist/actions/delete-user.d.mts +3 -18
- package/dist/actions/delete-user.d.mts.map +1 -1
- package/dist/actions/delete-user.mjs +1 -0
- package/dist/actions/delete-user.mjs.map +1 -1
- package/dist/actions/get-count-preference-of-channel.cjs +1 -0
- package/dist/actions/get-count-preference-of-channel.cjs.map +1 -1
- package/dist/actions/get-count-preference-of-channel.d.cts +4 -19
- package/dist/actions/get-count-preference-of-channel.d.cts.map +1 -1
- package/dist/actions/get-count-preference-of-channel.d.mts +4 -19
- package/dist/actions/get-count-preference-of-channel.d.mts.map +1 -1
- package/dist/actions/get-count-preference-of-channel.mjs +1 -0
- package/dist/actions/get-count-preference-of-channel.mjs.map +1 -1
- package/dist/actions/get-number-of-channels-by-join-status.cjs +1 -0
- package/dist/actions/get-number-of-channels-by-join-status.cjs.map +1 -1
- package/dist/actions/get-number-of-channels-by-join-status.d.cts +3 -21
- package/dist/actions/get-number-of-channels-by-join-status.d.cts.map +1 -1
- package/dist/actions/get-number-of-channels-by-join-status.d.mts +3 -21
- package/dist/actions/get-number-of-channels-by-join-status.d.mts.map +1 -1
- package/dist/actions/get-number-of-channels-by-join-status.mjs +1 -0
- package/dist/actions/get-number-of-channels-by-join-status.mjs.map +1 -1
- package/dist/actions/get-number-of-unread-items.cjs +1 -0
- package/dist/actions/get-number-of-unread-items.cjs.map +1 -1
- package/dist/actions/get-number-of-unread-items.d.cts +3 -19
- package/dist/actions/get-number-of-unread-items.d.cts.map +1 -1
- package/dist/actions/get-number-of-unread-items.d.mts +3 -19
- package/dist/actions/get-number-of-unread-items.d.mts.map +1 -1
- package/dist/actions/get-number-of-unread-items.mjs +1 -0
- package/dist/actions/get-number-of-unread-items.mjs.map +1 -1
- package/dist/actions/issue-session-token.cjs +1 -0
- package/dist/actions/issue-session-token.cjs.map +1 -1
- package/dist/actions/issue-session-token.d.cts +3 -18
- package/dist/actions/issue-session-token.d.cts.map +1 -1
- package/dist/actions/issue-session-token.d.mts +3 -18
- package/dist/actions/issue-session-token.d.mts.map +1 -1
- package/dist/actions/issue-session-token.mjs +1 -0
- package/dist/actions/issue-session-token.mjs.map +1 -1
- package/dist/actions/leave-group-channels.cjs +1 -0
- package/dist/actions/leave-group-channels.cjs.map +1 -1
- package/dist/actions/leave-group-channels.d.cts +3 -20
- package/dist/actions/leave-group-channels.d.cts.map +1 -1
- package/dist/actions/leave-group-channels.d.mts +3 -20
- package/dist/actions/leave-group-channels.d.mts.map +1 -1
- package/dist/actions/leave-group-channels.mjs +1 -0
- package/dist/actions/leave-group-channels.mjs.map +1 -1
- package/dist/actions/list-banned-members.cjs +1 -0
- package/dist/actions/list-banned-members.cjs.map +1 -1
- package/dist/actions/list-banned-members.d.cts +3 -19
- package/dist/actions/list-banned-members.d.cts.map +1 -1
- package/dist/actions/list-banned-members.d.mts +3 -19
- package/dist/actions/list-banned-members.d.mts.map +1 -1
- package/dist/actions/list-banned-members.mjs +1 -0
- package/dist/actions/list-banned-members.mjs.map +1 -1
- package/dist/actions/list-group-channel-messages.cjs +1 -0
- package/dist/actions/list-group-channel-messages.cjs.map +1 -1
- package/dist/actions/list-group-channel-messages.d.cts +3 -35
- package/dist/actions/list-group-channel-messages.d.cts.map +1 -1
- package/dist/actions/list-group-channel-messages.d.mts +3 -35
- package/dist/actions/list-group-channel-messages.d.mts.map +1 -1
- package/dist/actions/list-group-channel-messages.mjs +1 -0
- package/dist/actions/list-group-channel-messages.mjs.map +1 -1
- package/dist/actions/list-group-channels.cjs +1 -0
- package/dist/actions/list-group-channels.cjs.map +1 -1
- package/dist/actions/list-group-channels.d.cts +3 -37
- package/dist/actions/list-group-channels.d.cts.map +1 -1
- package/dist/actions/list-group-channels.d.mts +3 -37
- package/dist/actions/list-group-channels.d.mts.map +1 -1
- package/dist/actions/list-group-channels.mjs +1 -0
- package/dist/actions/list-group-channels.mjs.map +1 -1
- package/dist/actions/list-members-group-channel.cjs +1 -0
- package/dist/actions/list-members-group-channel.cjs.map +1 -1
- package/dist/actions/list-members-group-channel.d.cts +3 -25
- package/dist/actions/list-members-group-channel.d.cts.map +1 -1
- package/dist/actions/list-members-group-channel.d.mts +3 -25
- package/dist/actions/list-members-group-channel.d.mts.map +1 -1
- package/dist/actions/list-members-group-channel.mjs +1 -0
- package/dist/actions/list-members-group-channel.mjs.map +1 -1
- package/dist/actions/list-operators-custom-channel-type.cjs +1 -0
- package/dist/actions/list-operators-custom-channel-type.cjs.map +1 -1
- package/dist/actions/list-operators-custom-channel-type.d.cts +3 -19
- package/dist/actions/list-operators-custom-channel-type.d.cts.map +1 -1
- package/dist/actions/list-operators-custom-channel-type.d.mts +3 -19
- package/dist/actions/list-operators-custom-channel-type.d.mts.map +1 -1
- package/dist/actions/list-operators-custom-channel-type.mjs +1 -0
- package/dist/actions/list-operators-custom-channel-type.mjs.map +1 -1
- package/dist/actions/list-operators-group-channel.cjs +1 -0
- package/dist/actions/list-operators-group-channel.cjs.map +1 -1
- package/dist/actions/list-operators-group-channel.d.cts +3 -19
- package/dist/actions/list-operators-group-channel.d.cts.map +1 -1
- package/dist/actions/list-operators-group-channel.d.mts +3 -19
- package/dist/actions/list-operators-group-channel.d.mts.map +1 -1
- package/dist/actions/list-operators-group-channel.mjs +1 -0
- package/dist/actions/list-operators-group-channel.mjs.map +1 -1
- package/dist/actions/list-operators-open-channel.cjs +1 -0
- package/dist/actions/list-operators-open-channel.cjs.map +1 -1
- package/dist/actions/list-operators-open-channel.d.cts +3 -19
- package/dist/actions/list-operators-open-channel.d.cts.map +1 -1
- package/dist/actions/list-operators-open-channel.d.mts +3 -19
- package/dist/actions/list-operators-open-channel.d.mts.map +1 -1
- package/dist/actions/list-operators-open-channel.mjs +1 -0
- package/dist/actions/list-operators-open-channel.mjs.map +1 -1
- package/dist/actions/list-users.cjs +1 -0
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +3 -27
- package/dist/actions/list-users.d.cts.map +1 -1
- package/dist/actions/list-users.d.mts +3 -27
- package/dist/actions/list-users.d.mts.map +1 -1
- package/dist/actions/list-users.mjs +1 -0
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/mark-all-user-messages-as-read.cjs +1 -0
- package/dist/actions/mark-all-user-messages-as-read.cjs.map +1 -1
- package/dist/actions/mark-all-user-messages-as-read.d.cts +3 -17
- package/dist/actions/mark-all-user-messages-as-read.d.cts.map +1 -1
- package/dist/actions/mark-all-user-messages-as-read.d.mts +3 -17
- package/dist/actions/mark-all-user-messages-as-read.d.mts.map +1 -1
- package/dist/actions/mark-all-user-messages-as-read.mjs +1 -0
- package/dist/actions/mark-all-user-messages-as-read.mjs.map +1 -1
- package/dist/actions/mute-user.cjs +1 -0
- package/dist/actions/mute-user.cjs.map +1 -1
- package/dist/actions/mute-user.d.cts +3 -20
- package/dist/actions/mute-user.d.cts.map +1 -1
- package/dist/actions/mute-user.d.mts +3 -20
- package/dist/actions/mute-user.d.mts.map +1 -1
- package/dist/actions/mute-user.mjs +1 -0
- package/dist/actions/mute-user.mjs.map +1 -1
- package/dist/actions/register-operators-custom-channel-type.cjs +1 -0
- package/dist/actions/register-operators-custom-channel-type.cjs.map +1 -1
- package/dist/actions/register-operators-custom-channel-type.d.cts +3 -18
- package/dist/actions/register-operators-custom-channel-type.d.cts.map +1 -1
- package/dist/actions/register-operators-custom-channel-type.d.mts +3 -18
- package/dist/actions/register-operators-custom-channel-type.d.mts.map +1 -1
- package/dist/actions/register-operators-custom-channel-type.mjs +1 -0
- package/dist/actions/register-operators-custom-channel-type.mjs.map +1 -1
- package/dist/actions/register-operators-group-channel.cjs +1 -0
- package/dist/actions/register-operators-group-channel.cjs.map +1 -1
- package/dist/actions/register-operators-group-channel.d.cts +3 -18
- package/dist/actions/register-operators-group-channel.d.cts.map +1 -1
- package/dist/actions/register-operators-group-channel.d.mts +3 -18
- package/dist/actions/register-operators-group-channel.d.mts.map +1 -1
- package/dist/actions/register-operators-group-channel.mjs +1 -0
- package/dist/actions/register-operators-group-channel.mjs.map +1 -1
- package/dist/actions/register-operators-open-channel.cjs +1 -0
- package/dist/actions/register-operators-open-channel.cjs.map +1 -1
- package/dist/actions/register-operators-open-channel.d.cts +3 -18
- package/dist/actions/register-operators-open-channel.d.cts.map +1 -1
- package/dist/actions/register-operators-open-channel.d.mts +3 -18
- package/dist/actions/register-operators-open-channel.d.mts.map +1 -1
- package/dist/actions/register-operators-open-channel.mjs +1 -0
- package/dist/actions/register-operators-open-channel.mjs.map +1 -1
- package/dist/actions/revoke-all-session-tokens.cjs +1 -0
- package/dist/actions/revoke-all-session-tokens.cjs.map +1 -1
- package/dist/actions/revoke-all-session-tokens.d.cts +3 -17
- package/dist/actions/revoke-all-session-tokens.d.cts.map +1 -1
- package/dist/actions/revoke-all-session-tokens.d.mts +3 -17
- package/dist/actions/revoke-all-session-tokens.d.mts.map +1 -1
- package/dist/actions/revoke-all-session-tokens.mjs +1 -0
- package/dist/actions/revoke-all-session-tokens.mjs.map +1 -1
- package/dist/actions/send-message.cjs +1 -0
- package/dist/actions/send-message.cjs.map +1 -1
- package/dist/actions/send-message.d.cts +3 -36
- package/dist/actions/send-message.d.cts.map +1 -1
- package/dist/actions/send-message.d.mts +3 -36
- package/dist/actions/send-message.d.mts.map +1 -1
- package/dist/actions/send-message.mjs +1 -0
- package/dist/actions/send-message.mjs.map +1 -1
- package/dist/actions/unban-user.cjs +1 -0
- package/dist/actions/unban-user.cjs.map +1 -1
- package/dist/actions/unban-user.d.cts +3 -18
- package/dist/actions/unban-user.d.cts.map +1 -1
- package/dist/actions/unban-user.d.mts +3 -18
- package/dist/actions/unban-user.d.mts.map +1 -1
- package/dist/actions/unban-user.mjs +1 -0
- package/dist/actions/unban-user.mjs.map +1 -1
- package/dist/actions/unmute-user.cjs +1 -0
- package/dist/actions/unmute-user.cjs.map +1 -1
- package/dist/actions/unmute-user.d.cts +3 -18
- package/dist/actions/unmute-user.d.cts.map +1 -1
- package/dist/actions/unmute-user.d.mts +3 -18
- package/dist/actions/unmute-user.d.mts.map +1 -1
- package/dist/actions/unmute-user.mjs +1 -0
- package/dist/actions/unmute-user.mjs.map +1 -1
- package/dist/actions/unregister-operators-custom-channel-type.cjs +1 -0
- package/dist/actions/unregister-operators-custom-channel-type.cjs.map +1 -1
- package/dist/actions/unregister-operators-custom-channel-type.d.cts +3 -18
- package/dist/actions/unregister-operators-custom-channel-type.d.cts.map +1 -1
- package/dist/actions/unregister-operators-custom-channel-type.d.mts +3 -18
- package/dist/actions/unregister-operators-custom-channel-type.d.mts.map +1 -1
- package/dist/actions/unregister-operators-custom-channel-type.mjs +1 -0
- package/dist/actions/unregister-operators-custom-channel-type.mjs.map +1 -1
- package/dist/actions/update-count-preference-of-channel.cjs +1 -0
- package/dist/actions/update-count-preference-of-channel.cjs.map +1 -1
- package/dist/actions/update-count-preference-of-channel.d.cts +3 -19
- package/dist/actions/update-count-preference-of-channel.d.cts.map +1 -1
- package/dist/actions/update-count-preference-of-channel.d.mts +3 -19
- package/dist/actions/update-count-preference-of-channel.d.mts.map +1 -1
- package/dist/actions/update-count-preference-of-channel.mjs +1 -0
- package/dist/actions/update-count-preference-of-channel.mjs.map +1 -1
- package/dist/actions/update-group-channel.cjs +1 -0
- package/dist/actions/update-group-channel.cjs.map +1 -1
- package/dist/actions/update-group-channel.d.cts +3 -28
- package/dist/actions/update-group-channel.d.cts.map +1 -1
- package/dist/actions/update-group-channel.d.mts +3 -28
- package/dist/actions/update-group-channel.d.mts.map +1 -1
- package/dist/actions/update-group-channel.mjs +1 -0
- package/dist/actions/update-group-channel.mjs.map +1 -1
- package/dist/actions/update-message.cjs +1 -0
- package/dist/actions/update-message.cjs.map +1 -1
- package/dist/actions/update-message.d.cts +3 -30
- package/dist/actions/update-message.d.cts.map +1 -1
- package/dist/actions/update-message.d.mts +3 -30
- package/dist/actions/update-message.d.mts.map +1 -1
- package/dist/actions/update-message.mjs +1 -0
- package/dist/actions/update-message.mjs.map +1 -1
- package/dist/actions/update-user.cjs +1 -0
- package/dist/actions/update-user.cjs.map +1 -1
- package/dist/actions/update-user.d.cts +3 -23
- package/dist/actions/update-user.d.cts.map +1 -1
- package/dist/actions/update-user.d.mts +3 -23
- package/dist/actions/update-user.d.mts.map +1 -1
- package/dist/actions/update-user.mjs +1 -0
- package/dist/actions/update-user.mjs.map +1 -1
- package/dist/actions/view-group-channel.cjs +1 -0
- package/dist/actions/view-group-channel.cjs.map +1 -1
- package/dist/actions/view-group-channel.d.cts +3 -22
- package/dist/actions/view-group-channel.d.cts.map +1 -1
- package/dist/actions/view-group-channel.d.mts +3 -22
- package/dist/actions/view-group-channel.d.mts.map +1 -1
- package/dist/actions/view-group-channel.mjs +1 -0
- package/dist/actions/view-group-channel.mjs.map +1 -1
- package/dist/actions/view-message.cjs +1 -0
- package/dist/actions/view-message.cjs.map +1 -1
- package/dist/actions/view-message.d.cts +3 -19
- package/dist/actions/view-message.d.cts.map +1 -1
- package/dist/actions/view-message.d.mts +3 -19
- package/dist/actions/view-message.d.mts.map +1 -1
- package/dist/actions/view-message.mjs +1 -0
- package/dist/actions/view-message.mjs.map +1 -1
- package/dist/actions/view-user.cjs +1 -0
- package/dist/actions/view-user.cjs.map +1 -1
- package/dist/actions/view-user.d.cts +3 -17
- package/dist/actions/view-user.d.cts.map +1 -1
- package/dist/actions/view-user.d.mts +3 -17
- package/dist/actions/view-user.d.mts.map +1 -1
- package/dist/actions/view-user.mjs +1 -0
- package/dist/actions/view-user.mjs.map +1 -1
- package/dist/app.cjs +5 -4
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -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/update-message.d.ts
|
|
@@ -41,36 +43,7 @@ declare const SendbirdUpdateMessageOutput: z.ZodObject<{
|
|
|
41
43
|
parent_message_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
42
44
|
apple_critical_alert_options: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
43
45
|
}, z.core.$loose>;
|
|
44
|
-
declare const sendbirdUpdateMessage:
|
|
45
|
-
message_id: string;
|
|
46
|
-
channel_url: string;
|
|
47
|
-
data?: string | undefined;
|
|
48
|
-
content?: string | undefined;
|
|
49
|
-
user_id?: string | undefined;
|
|
50
|
-
dedup_id?: string | undefined;
|
|
51
|
-
is_silent?: boolean | undefined;
|
|
52
|
-
custom_type?: string | undefined;
|
|
53
|
-
mention_type?: string | undefined;
|
|
54
|
-
message_type?: string | undefined;
|
|
55
|
-
apns_bundle_id?: string | undefined;
|
|
56
|
-
sorted_metaarray?: Record<string, unknown>[] | undefined;
|
|
57
|
-
mentioned_user_ids?: string[] | undefined;
|
|
58
|
-
push_notification_delivery_option?: string | undefined;
|
|
59
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
|
|
60
|
-
connectionId: z.ZodString;
|
|
61
|
-
entityId: z.ZodString;
|
|
62
|
-
instanceId: z.ZodString;
|
|
63
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
64
|
-
subdomain: z.ZodString;
|
|
65
|
-
generic_api_key: z.ZodString;
|
|
66
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
|
|
67
|
-
connectionId: z.ZodString;
|
|
68
|
-
entityId: z.ZodString;
|
|
69
|
-
instanceId: z.ZodString;
|
|
70
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
71
|
-
subdomain: z.ZodString;
|
|
72
|
-
generic_api_key: z.ZodString;
|
|
73
|
-
}, z.core.$strip>>]>;
|
|
46
|
+
declare const sendbirdUpdateMessage: AppAction<typeof SendbirdUpdateMessageInput, typeof SendbirdUpdateMessageOutput, typeof sendbird.credential>;
|
|
74
47
|
//#endregion
|
|
75
48
|
export { sendbirdUpdateMessage };
|
|
76
49
|
//# sourceMappingURL=update-message.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-message.d.cts","names":[],"sources":["../../src/actions/update-message.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-message.d.cts","names":[],"sources":["../../src/actions/update-message.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAgB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAyB3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { sendbird } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-message.d.ts
|
|
@@ -41,36 +43,7 @@ declare const SendbirdUpdateMessageOutput: z.ZodObject<{
|
|
|
41
43
|
parent_message_info: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
42
44
|
apple_critical_alert_options: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
43
45
|
}, z.core.$loose>;
|
|
44
|
-
declare const sendbirdUpdateMessage:
|
|
45
|
-
message_id: string;
|
|
46
|
-
channel_url: string;
|
|
47
|
-
data?: string | undefined;
|
|
48
|
-
content?: string | undefined;
|
|
49
|
-
user_id?: string | undefined;
|
|
50
|
-
dedup_id?: string | undefined;
|
|
51
|
-
is_silent?: boolean | undefined;
|
|
52
|
-
custom_type?: string | undefined;
|
|
53
|
-
mention_type?: string | undefined;
|
|
54
|
-
message_type?: string | undefined;
|
|
55
|
-
apns_bundle_id?: string | undefined;
|
|
56
|
-
sorted_metaarray?: Record<string, unknown>[] | undefined;
|
|
57
|
-
mentioned_user_ids?: string[] | undefined;
|
|
58
|
-
push_notification_delivery_option?: string | undefined;
|
|
59
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
|
|
60
|
-
connectionId: z.ZodString;
|
|
61
|
-
entityId: z.ZodString;
|
|
62
|
-
instanceId: z.ZodString;
|
|
63
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
64
|
-
subdomain: z.ZodString;
|
|
65
|
-
generic_api_key: z.ZodString;
|
|
66
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
|
|
67
|
-
connectionId: z.ZodString;
|
|
68
|
-
entityId: z.ZodString;
|
|
69
|
-
instanceId: z.ZodString;
|
|
70
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
71
|
-
subdomain: z.ZodString;
|
|
72
|
-
generic_api_key: z.ZodString;
|
|
73
|
-
}, z.core.$strip>>]>;
|
|
46
|
+
declare const sendbirdUpdateMessage: AppAction<typeof SendbirdUpdateMessageInput, typeof SendbirdUpdateMessageOutput, typeof sendbird.credential>;
|
|
74
47
|
//#endregion
|
|
75
48
|
export { sendbirdUpdateMessage };
|
|
76
49
|
//# sourceMappingURL=update-message.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-message.d.mts","names":[],"sources":["../../src/actions/update-message.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-message.d.mts","names":[],"sources":["../../src/actions/update-message.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAgB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAyB3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-message.mjs","names":[],"sources":["../../src/actions/update-message.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdUpdateMessageInput = z.object({\n data: z.string().describe(\"Additional data for the message as a JSON-encoded string\").optional(),\n content: z.string().describe(\"New text content of the message\").optional(),\n user_id: z.string().describe(\"ID of the user performing the update\").optional(),\n dedup_id: z.string().describe(\"Deduplication ID for the message update\").optional(),\n is_silent: z.boolean().describe(\"Whether the message update should be silent (no push notification)\").optional(),\n message_id: z.string().describe(\"Unique ID of the message to update\"),\n channel_url: z.string().describe(\"URL identifier of the group channel containing the message\"),\n custom_type: z.string().describe(\"Custom type label for the message\").optional(),\n mention_type: z.string().describe(\"Mention type for the message (e.g., 'users' or 'channel')\").optional(),\n message_type: z.string().describe(\"Type of the message (e.g., 'MESG' or 'FILE')\").optional(),\n apns_bundle_id: z.string().describe(\"APNs bundle ID for iOS push notifications\").optional(),\n sorted_metaarray: z.array(z.record(z.string(), z.unknown())).describe(\"Sorted metaarray objects for the message\").optional(),\n mentioned_user_ids: z.array(z.string()).describe(\"List of user IDs to mention in the message\").optional(),\n push_notification_delivery_option: z.string().describe(\"Push notification delivery option ('default', 'suppress')\").optional(),\n}).describe(\"Request schema for updating a Sendbird group channel message.\");\nexport const SendbirdUpdateMessageOutput = z.object({\n data: z.string().describe(\"Additional data in the message\").nullable().optional(),\n file: z.record(z.string(), z.unknown()).describe(\"File object if the message contains a file\").nullable().optional(),\n type: z.string().describe(\"Type of the message\").nullable(),\n user: z.record(z.string(), z.unknown()).describe(\"User object who sent the message\"),\n og_tag: z.record(z.string(), z.unknown()).describe(\"Open Graph tag information for the message\").nullable().optional(),\n content: z.string().describe(\"Content of the message\").nullable().optional(),\n is_silent: z.boolean().describe(\"True if the update was silent\").nullable(),\n reactions: z.array(z.record(z.string(), z.unknown())).describe(\"List of reaction objects on the message\").nullable().optional(),\n created_at: z.number().int().describe(\"Timestamp when the message was created (ms since epoch)\").nullable(),\n message_id: z.string().describe(\"Unique ID of the updated message\").nullable(),\n updated_at: z.number().int().describe(\"Timestamp when the message was last updated (ms since epoch)\").nullable(),\n channel_url: z.string().describe(\"URL of the channel containing the message\").nullable(),\n custom_type: z.string().describe(\"Custom type of the message\").nullable().optional(),\n thread_info: z.record(z.string(), z.unknown()).describe(\"Thread information if part of a thread\").nullable().optional(),\n mention_type: z.string().describe(\"Mention type in the message\").nullable().optional(),\n translations: z.record(z.string(), z.unknown()).describe(\"Translations available for the message\").nullable().optional(),\n mentioned_users: z.array(z.record(z.string(), z.unknown())).describe(\"List of mentioned user objects\").nullable().optional(),\n sorted_metaarray: z.array(z.record(z.string(), z.unknown())).describe(\"Sorted metaarray objects for the message\").nullable().optional(),\n parent_message_id: z.number().int().describe(\"ID of the parent message if this is a reply\").nullable().optional(),\n is_reply_to_channel: z.boolean().describe(\"True if message is a direct reply to channel\").nullable().optional(),\n parent_message_info: z.record(z.string(), z.unknown()).describe(\"Parent message data if this is a reply\").nullable().optional(),\n apple_critical_alert_options: z.record(z.string(), z.unknown()).describe(\"Apple critical alert options for the message\").nullable().optional(),\n}).passthrough().describe(\"Response schema for an updated Sendbird group channel message.\");\n\nexport const sendbirdUpdateMessage = action(\"SENDBIRD_UPDATE_MESSAGE\", {\n slug: \"sendbird-update-message\",\n name: \"Sendbird Update Message\",\n description: \"Tool to update an existing group channel message in Sendbird. Use after you need to modify content or metadata of a sent message.\",\n input: SendbirdUpdateMessageInput,\n output: SendbirdUpdateMessageOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-message.mjs","names":[],"sources":["../../src/actions/update-message.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 SendbirdUpdateMessageInput = z.object({\n data: z.string().describe(\"Additional data for the message as a JSON-encoded string\").optional(),\n content: z.string().describe(\"New text content of the message\").optional(),\n user_id: z.string().describe(\"ID of the user performing the update\").optional(),\n dedup_id: z.string().describe(\"Deduplication ID for the message update\").optional(),\n is_silent: z.boolean().describe(\"Whether the message update should be silent (no push notification)\").optional(),\n message_id: z.string().describe(\"Unique ID of the message to update\"),\n channel_url: z.string().describe(\"URL identifier of the group channel containing the message\"),\n custom_type: z.string().describe(\"Custom type label for the message\").optional(),\n mention_type: z.string().describe(\"Mention type for the message (e.g., 'users' or 'channel')\").optional(),\n message_type: z.string().describe(\"Type of the message (e.g., 'MESG' or 'FILE')\").optional(),\n apns_bundle_id: z.string().describe(\"APNs bundle ID for iOS push notifications\").optional(),\n sorted_metaarray: z.array(z.record(z.string(), z.unknown())).describe(\"Sorted metaarray objects for the message\").optional(),\n mentioned_user_ids: z.array(z.string()).describe(\"List of user IDs to mention in the message\").optional(),\n push_notification_delivery_option: z.string().describe(\"Push notification delivery option ('default', 'suppress')\").optional(),\n}).describe(\"Request schema for updating a Sendbird group channel message.\");\nexport const SendbirdUpdateMessageOutput = z.object({\n data: z.string().describe(\"Additional data in the message\").nullable().optional(),\n file: z.record(z.string(), z.unknown()).describe(\"File object if the message contains a file\").nullable().optional(),\n type: z.string().describe(\"Type of the message\").nullable(),\n user: z.record(z.string(), z.unknown()).describe(\"User object who sent the message\"),\n og_tag: z.record(z.string(), z.unknown()).describe(\"Open Graph tag information for the message\").nullable().optional(),\n content: z.string().describe(\"Content of the message\").nullable().optional(),\n is_silent: z.boolean().describe(\"True if the update was silent\").nullable(),\n reactions: z.array(z.record(z.string(), z.unknown())).describe(\"List of reaction objects on the message\").nullable().optional(),\n created_at: z.number().int().describe(\"Timestamp when the message was created (ms since epoch)\").nullable(),\n message_id: z.string().describe(\"Unique ID of the updated message\").nullable(),\n updated_at: z.number().int().describe(\"Timestamp when the message was last updated (ms since epoch)\").nullable(),\n channel_url: z.string().describe(\"URL of the channel containing the message\").nullable(),\n custom_type: z.string().describe(\"Custom type of the message\").nullable().optional(),\n thread_info: z.record(z.string(), z.unknown()).describe(\"Thread information if part of a thread\").nullable().optional(),\n mention_type: z.string().describe(\"Mention type in the message\").nullable().optional(),\n translations: z.record(z.string(), z.unknown()).describe(\"Translations available for the message\").nullable().optional(),\n mentioned_users: z.array(z.record(z.string(), z.unknown())).describe(\"List of mentioned user objects\").nullable().optional(),\n sorted_metaarray: z.array(z.record(z.string(), z.unknown())).describe(\"Sorted metaarray objects for the message\").nullable().optional(),\n parent_message_id: z.number().int().describe(\"ID of the parent message if this is a reply\").nullable().optional(),\n is_reply_to_channel: z.boolean().describe(\"True if message is a direct reply to channel\").nullable().optional(),\n parent_message_info: z.record(z.string(), z.unknown()).describe(\"Parent message data if this is a reply\").nullable().optional(),\n apple_critical_alert_options: z.record(z.string(), z.unknown()).describe(\"Apple critical alert options for the message\").nullable().optional(),\n}).passthrough().describe(\"Response schema for an updated Sendbird group channel message.\");\n\nexport const sendbirdUpdateMessage: AppAction<\n typeof SendbirdUpdateMessageInput,\n typeof SendbirdUpdateMessageOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_UPDATE_MESSAGE\", {\n slug: \"sendbird-update-message\",\n name: \"Sendbird Update Message\",\n description: \"Tool to update an existing group channel message in Sendbird. Use after you need to modify content or metadata of a sent message.\",\n input: SendbirdUpdateMessageInput,\n output: SendbirdUpdateMessageOutput,\n});\n"],"mappings":";;;AA+CA,MAAa,wBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjDwC,EAAE,OAAO;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EAC/F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACzE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC9E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAClF,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;EAC/G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EACpE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;EAC7F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC/E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;EACxG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EAC3F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAC1F,kBAAkB,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EAC3H,oBAAoB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S,CAAC,CAAC,SAAS;CAC/I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-user.cjs","names":["z","action"],"sources":["../../src/actions/update-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdUpdateUserInput = z.object({\n user_id: z.string().describe(\"Unique ID of the user to update\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value store for user metadata\").optional(),\n nickname: z.string().describe(\"New display name for the user\").optional(),\n is_active: z.boolean().describe(\"Set to false to deactivate the user account\").optional(),\n profile_url: z.string().describe(\"URL of the new profile image\").optional(),\n issue_access_token: z.boolean().describe(\"Whether to issue a new access token for the user\").optional(),\n preferred_languages: z.array(z.string()).describe(\"List of language tags for localization\").optional(),\n}).describe(\"Request model for updating a Sendbird user.\");\nexport const SendbirdUpdateUserOutput = z.object({\n user_id: z.string().describe(\"Unique ID of the user\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value metadata of the user\").nullable().optional(),\n nickname: z.string().describe(\"Display name of the user\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the user account is active\").nullable().optional(),\n is_online: z.boolean().describe(\"Whether the user is currently online\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp (ms) of when the user was created\").nullable().optional(),\n profile_url: z.string().describe(\"Profile image URL of the user\").nullable().optional(),\n access_token: z.string().describe(\"Access token for the user, returned if issue_access_token was true\").nullable().optional(),\n last_seen_at: z.number().int().describe(\"Unix timestamp (ms) when the user was last seen\").nullable().optional(),\n phone_number: z.string().describe(\"User's phone number if configured\").nullable().optional(),\n discovery_keys: z.array(z.string()).describe(\"Discovery keys for the Discovery feature\").nullable().optional(),\n has_ever_logged_in: z.boolean().describe(\"Whether the user has ever logged in\").nullable().optional(),\n preferred_languages: z.array(z.string()).describe(\"User's preferred language codes\").nullable().optional(),\n require_auth_for_profile_image: z.boolean().describe(\"Whether profile image requires authentication to access\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after updating a Sendbird user.\");\n\nexport const sendbirdUpdateUser = action(\"SENDBIRD_UPDATE_USER\", {\n slug: \"sendbird-update-user\",\n name: \"Update Sendbird User\",\n description: \"Tool to update a user's information. Use when modifying nickname, profile image URL, activation status, or metadata.\",\n input: SendbirdUpdateUserInput,\n output: SendbirdUpdateUserOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-user.cjs","names":["z","action"],"sources":["../../src/actions/update-user.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sendbird } from \"../app\";\n\nexport const SendbirdUpdateUserInput = z.object({\n user_id: z.string().describe(\"Unique ID of the user to update\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value store for user metadata\").optional(),\n nickname: z.string().describe(\"New display name for the user\").optional(),\n is_active: z.boolean().describe(\"Set to false to deactivate the user account\").optional(),\n profile_url: z.string().describe(\"URL of the new profile image\").optional(),\n issue_access_token: z.boolean().describe(\"Whether to issue a new access token for the user\").optional(),\n preferred_languages: z.array(z.string()).describe(\"List of language tags for localization\").optional(),\n}).describe(\"Request model for updating a Sendbird user.\");\nexport const SendbirdUpdateUserOutput = z.object({\n user_id: z.string().describe(\"Unique ID of the user\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value metadata of the user\").nullable().optional(),\n nickname: z.string().describe(\"Display name of the user\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the user account is active\").nullable().optional(),\n is_online: z.boolean().describe(\"Whether the user is currently online\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp (ms) of when the user was created\").nullable().optional(),\n profile_url: z.string().describe(\"Profile image URL of the user\").nullable().optional(),\n access_token: z.string().describe(\"Access token for the user, returned if issue_access_token was true\").nullable().optional(),\n last_seen_at: z.number().int().describe(\"Unix timestamp (ms) when the user was last seen\").nullable().optional(),\n phone_number: z.string().describe(\"User's phone number if configured\").nullable().optional(),\n discovery_keys: z.array(z.string()).describe(\"Discovery keys for the Discovery feature\").nullable().optional(),\n has_ever_logged_in: z.boolean().describe(\"Whether the user has ever logged in\").nullable().optional(),\n preferred_languages: z.array(z.string()).describe(\"User's preferred language codes\").nullable().optional(),\n require_auth_for_profile_image: z.boolean().describe(\"Whether profile image requires authentication to access\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after updating a Sendbird user.\");\n\nexport const sendbirdUpdateUser: AppAction<\n typeof SendbirdUpdateUserInput,\n typeof SendbirdUpdateUserOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_UPDATE_USER\", {\n slug: \"sendbird-update-user\",\n name: \"Update Sendbird User\",\n description: \"Tool to update a user's information. Use when modifying nickname, profile image URL, activation status, or metadata.\",\n input: SendbirdUpdateUserInput,\n output: SendbirdUpdateUserOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC9D,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC1G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxE,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACxF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC1E,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACtG,qBAAqBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wC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CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,qBAAqBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,gCAAgCA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAEnF,MAAa,qBAITC,eAAAA,OAAO,wBAAwB;CACjC,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/update-user.d.ts
|
|
@@ -26,29 +28,7 @@ declare const SendbirdUpdateUserOutput: z.ZodObject<{
|
|
|
26
28
|
preferred_languages: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
27
29
|
require_auth_for_profile_image: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
28
30
|
}, z.core.$loose>;
|
|
29
|
-
declare const sendbirdUpdateUser:
|
|
30
|
-
user_id: string;
|
|
31
|
-
metadata?: Record<string, unknown> | undefined;
|
|
32
|
-
nickname?: string | undefined;
|
|
33
|
-
is_active?: boolean | undefined;
|
|
34
|
-
profile_url?: string | undefined;
|
|
35
|
-
issue_access_token?: boolean | undefined;
|
|
36
|
-
preferred_languages?: string[] | undefined;
|
|
37
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
|
|
38
|
-
connectionId: z.ZodString;
|
|
39
|
-
entityId: z.ZodString;
|
|
40
|
-
instanceId: z.ZodString;
|
|
41
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
-
subdomain: z.ZodString;
|
|
43
|
-
generic_api_key: z.ZodString;
|
|
44
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
|
|
45
|
-
connectionId: z.ZodString;
|
|
46
|
-
entityId: z.ZodString;
|
|
47
|
-
instanceId: z.ZodString;
|
|
48
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
49
|
-
subdomain: z.ZodString;
|
|
50
|
-
generic_api_key: z.ZodString;
|
|
51
|
-
}, z.core.$strip>>]>;
|
|
31
|
+
declare const sendbirdUpdateUser: AppAction<typeof SendbirdUpdateUserInput, typeof SendbirdUpdateUserOutput, typeof sendbird.credential>;
|
|
52
32
|
//#endregion
|
|
53
33
|
export { sendbirdUpdateUser };
|
|
54
34
|
//# sourceMappingURL=update-user.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-user.d.cts","names":[],"sources":["../../src/actions/update-user.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-user.d.cts","names":[],"sources":["../../src/actions/update-user.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;cASvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAiBxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,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/update-user.d.ts
|
|
@@ -26,29 +28,7 @@ declare const SendbirdUpdateUserOutput: z.ZodObject<{
|
|
|
26
28
|
preferred_languages: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
27
29
|
require_auth_for_profile_image: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
28
30
|
}, z.core.$loose>;
|
|
29
|
-
declare const sendbirdUpdateUser:
|
|
30
|
-
user_id: string;
|
|
31
|
-
metadata?: Record<string, unknown> | undefined;
|
|
32
|
-
nickname?: string | undefined;
|
|
33
|
-
is_active?: boolean | undefined;
|
|
34
|
-
profile_url?: string | undefined;
|
|
35
|
-
issue_access_token?: boolean | undefined;
|
|
36
|
-
preferred_languages?: string[] | undefined;
|
|
37
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
|
|
38
|
-
connectionId: z.ZodString;
|
|
39
|
-
entityId: z.ZodString;
|
|
40
|
-
instanceId: z.ZodString;
|
|
41
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
-
subdomain: z.ZodString;
|
|
43
|
-
generic_api_key: z.ZodString;
|
|
44
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
|
|
45
|
-
connectionId: z.ZodString;
|
|
46
|
-
entityId: z.ZodString;
|
|
47
|
-
instanceId: z.ZodString;
|
|
48
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
49
|
-
subdomain: z.ZodString;
|
|
50
|
-
generic_api_key: z.ZodString;
|
|
51
|
-
}, z.core.$strip>>]>;
|
|
31
|
+
declare const sendbirdUpdateUser: AppAction<typeof SendbirdUpdateUserInput, typeof SendbirdUpdateUserOutput, typeof sendbird.credential>;
|
|
52
32
|
//#endregion
|
|
53
33
|
export { sendbirdUpdateUser };
|
|
54
34
|
//# sourceMappingURL=update-user.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-user.d.mts","names":[],"sources":["../../src/actions/update-user.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-user.d.mts","names":[],"sources":["../../src/actions/update-user.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;cASvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;cAiBxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-user.mjs","names":[],"sources":["../../src/actions/update-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdUpdateUserInput = z.object({\n user_id: z.string().describe(\"Unique ID of the user to update\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value store for user metadata\").optional(),\n nickname: z.string().describe(\"New display name for the user\").optional(),\n is_active: z.boolean().describe(\"Set to false to deactivate the user account\").optional(),\n profile_url: z.string().describe(\"URL of the new profile image\").optional(),\n issue_access_token: z.boolean().describe(\"Whether to issue a new access token for the user\").optional(),\n preferred_languages: z.array(z.string()).describe(\"List of language tags for localization\").optional(),\n}).describe(\"Request model for updating a Sendbird user.\");\nexport const SendbirdUpdateUserOutput = z.object({\n user_id: z.string().describe(\"Unique ID of the user\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value metadata of the user\").nullable().optional(),\n nickname: z.string().describe(\"Display name of the user\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the user account is active\").nullable().optional(),\n is_online: z.boolean().describe(\"Whether the user is currently online\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp (ms) of when the user was created\").nullable().optional(),\n profile_url: z.string().describe(\"Profile image URL of the user\").nullable().optional(),\n access_token: z.string().describe(\"Access token for the user, returned if issue_access_token was true\").nullable().optional(),\n last_seen_at: z.number().int().describe(\"Unix timestamp (ms) when the user was last seen\").nullable().optional(),\n phone_number: z.string().describe(\"User's phone number if configured\").nullable().optional(),\n discovery_keys: z.array(z.string()).describe(\"Discovery keys for the Discovery feature\").nullable().optional(),\n has_ever_logged_in: z.boolean().describe(\"Whether the user has ever logged in\").nullable().optional(),\n preferred_languages: z.array(z.string()).describe(\"User's preferred language codes\").nullable().optional(),\n require_auth_for_profile_image: z.boolean().describe(\"Whether profile image requires authentication to access\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after updating a Sendbird user.\");\n\nexport const sendbirdUpdateUser = action(\"SENDBIRD_UPDATE_USER\", {\n slug: \"sendbird-update-user\",\n name: \"Update Sendbird User\",\n description: \"Tool to update a user's information. Use when modifying nickname, profile image URL, activation status, or metadata.\",\n input: SendbirdUpdateUserInput,\n output: SendbirdUpdateUserOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-user.mjs","names":[],"sources":["../../src/actions/update-user.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sendbird } from \"../app\";\n\nexport const SendbirdUpdateUserInput = z.object({\n user_id: z.string().describe(\"Unique ID of the user to update\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value store for user metadata\").optional(),\n nickname: z.string().describe(\"New display name for the user\").optional(),\n is_active: z.boolean().describe(\"Set to false to deactivate the user account\").optional(),\n profile_url: z.string().describe(\"URL of the new profile image\").optional(),\n issue_access_token: z.boolean().describe(\"Whether to issue a new access token for the user\").optional(),\n preferred_languages: z.array(z.string()).describe(\"List of language tags for localization\").optional(),\n}).describe(\"Request model for updating a Sendbird user.\");\nexport const SendbirdUpdateUserOutput = z.object({\n user_id: z.string().describe(\"Unique ID of the user\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value metadata of the user\").nullable().optional(),\n nickname: z.string().describe(\"Display name of the user\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the user account is active\").nullable().optional(),\n is_online: z.boolean().describe(\"Whether the user is currently online\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp (ms) of when the user was created\").nullable().optional(),\n profile_url: z.string().describe(\"Profile image URL of the user\").nullable().optional(),\n access_token: z.string().describe(\"Access token for the user, returned if issue_access_token was true\").nullable().optional(),\n last_seen_at: z.number().int().describe(\"Unix timestamp (ms) when the user was last seen\").nullable().optional(),\n phone_number: z.string().describe(\"User's phone number if configured\").nullable().optional(),\n discovery_keys: z.array(z.string()).describe(\"Discovery keys for the Discovery feature\").nullable().optional(),\n has_ever_logged_in: z.boolean().describe(\"Whether the user has ever logged in\").nullable().optional(),\n preferred_languages: z.array(z.string()).describe(\"User's preferred language codes\").nullable().optional(),\n require_auth_for_profile_image: z.boolean().describe(\"Whether profile image requires authentication to access\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after updating a Sendbird user.\");\n\nexport const sendbirdUpdateUser: AppAction<\n typeof SendbirdUpdateUserInput,\n typeof SendbirdUpdateUserOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_UPDATE_USER\", {\n slug: \"sendbird-update-user\",\n name: \"Update Sendbird User\",\n description: \"Tool to update a user's information. Use when modifying nickname, profile image URL, activation status, or metadata.\",\n input: SendbirdUpdateUserInput,\n output: SendbirdUpdateUserOutput,\n});\n"],"mappings":";;;AAgCA,MAAa,qBAIT,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlCqC,EAAE,OAAO;EAC9C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;EAC9D,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EAC1G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACxE,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACxF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EAC1E,oBAAoB,EAAE,QAAQ,CAAC,C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EAC7G,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,qBAAqB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,gCAAgC,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-group-channel.cjs","names":["z","action"],"sources":["../../src/actions/view-group-channel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdViewGroupChannelInput = z.object({\n channel_url: z.string().describe(\"URL-encoded identifier of the group channel to retrieve.\"),\n show_member: z.boolean().default(false).describe(\"Whether to include the channel's member list in the response.\").optional(),\n show_metadata: z.boolean().default(false).describe(\"Whether to include channel metadata in the response.\").optional(),\n show_read_receipt: z.boolean().default(false).describe(\"Whether to include read receipt information in the response.\").optional(),\n show_migration_info: z.boolean().default(false).describe(\"Whether to include migration information in the response.\").optional(),\n show_delivery_receipt: z.boolean().default(false).describe(\"Whether to include delivery receipt information in the response.\").optional(),\n});\nconst SendbirdViewGroupChannel_MemberSchema = z.object({\n role: z.string().describe(\"Role of the member in the channel (operator or member).\").nullable().optional(),\n user_id: z.string().describe(\"User ID of the channel member.\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata for the member.\").nullable().optional(),\n nickname: z.string().describe(\"Nickname of the channel member.\").nullable().optional(),\n joined_at: z.number().int().describe(\"Timestamp when the member joined the channel.\").nullable().optional(),\n profile_url: z.string().describe(\"Profile image URL of the channel member.\").nullable().optional(),\n last_seen_at: z.number().int().describe(\"Timestamp when the member was last seen.\").nullable().optional(),\n connection_status: z.string().describe(\"Connection status of the member.\").nullable().optional(),\n preferred_languages: z.array(z.string()).describe(\"Preferred languages of the member.\").nullable().optional(),\n}).passthrough();\nexport const SendbirdViewGroupChannelOutput = z.object({\n data: z.string().describe(\"Custom data of the channel.\").nullable().optional(),\n name: z.string().describe(\"Name of the channel.\").nullable().optional(),\n freeze: z.boolean().describe(\"Whether the channel is frozen. In a frozen channel, normal members can't send messages.\").nullable().optional(),\n members: z.array(SendbirdViewGroupChannel_MemberSchema).describe(\"List of members if show_member=true.\").nullable().optional(),\n is_super: z.boolean().describe(\"Whether the channel is a super group.\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Channel metadata if show_metadata=true.\").nullable().optional(),\n cover_url: z.string().describe(\"Cover image URL of the channel.\").nullable().optional(),\n is_public: z.boolean().describe(\"Whether the channel is public.\").nullable(),\n created_at: z.number().int().describe(\"Timestamp (Unix, milliseconds) when the channel was created.\").nullable().optional(),\n channel_url: z.string().describe(\"URL of the group channel.\").nullable(),\n custom_type: z.string().describe(\"Custom type of the channel.\").nullable().optional(),\n is_distinct: z.boolean().describe(\"Whether the channel is distinct.\").nullable(),\n is_broadcast: z.boolean().describe(\"Whether the channel is a broadcast channel.\").nullable(),\n is_ephemeral: z.boolean().describe(\"Whether the channel is ephemeral.\").nullable().optional(),\n last_message: z.record(z.string(), z.unknown()).describe(\"The last message in the channel if available.\").nullable().optional(),\n member_count: z.number().int().describe(\"Total number of members in the channel.\").nullable().optional(),\n read_receipt: z.record(z.string(), z.unknown()).describe(\"Read receipt mapping (user_id to timestamp) if requested.\").nullable().optional(),\n migration_info: z.record(z.string(), z.unknown()).describe(\"Migration information if show_migration_info=true.\").nullable().optional(),\n is_discoverable: z.boolean().describe(\"Whether the channel is discoverable in search.\").nullable().optional(),\n delivery_receipt: z.record(z.string(), z.unknown()).describe(\"Delivery receipt mapping (user_id to count) if requested.\").nullable().optional(),\n max_length_message: z.number().int().describe(\"Maximum allowed message length in the channel.\").nullable().optional(),\n joined_member_count: z.number().int().describe(\"Number of members who have joined the channel.\").nullable().optional(),\n unread_message_count: z.number().int().describe(\"Number of unread messages in the channel.\").nullable().optional(),\n is_access_code_required: z.boolean().describe(\"Whether access code is required to join.\").nullable().optional(),\n}).passthrough();\n\nexport const sendbirdViewGroupChannel = action(\"SENDBIRD_VIEW_GROUP_CHANNEL\", {\n slug: \"sendbird-view-group-channel\",\n name: \"Sendbird View Group Channel\",\n description: \"Tool to view information about a specific group channel. Use when you need channel details after confirming the channel_url.\",\n input: SendbirdViewGroupChannelInput,\n output: SendbirdViewGroupChannelOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"view-group-channel.cjs","names":["z","action"],"sources":["../../src/actions/view-group-channel.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sendbird } from \"../app\";\n\nexport const SendbirdViewGroupChannelInput = z.object({\n channel_url: z.string().describe(\"URL-encoded identifier of the group channel to retrieve.\"),\n show_member: z.boolean().default(false).describe(\"Whether to include the channel's member list in the response.\").optional(),\n show_metadata: z.boolean().default(false).describe(\"Whether to include channel metadata in the response.\").optional(),\n show_read_receipt: z.boolean().default(false).describe(\"Whether to include read receipt information in the response.\").optional(),\n show_migration_info: z.boolean().default(false).describe(\"Whether to include migration information in the response.\").optional(),\n show_delivery_receipt: z.boolean().default(false).describe(\"Whether to include delivery receipt information in the response.\").optional(),\n});\nconst SendbirdViewGroupChannel_MemberSchema = z.object({\n role: z.string().describe(\"Role of the member in the channel (operator or member).\").nullable().optional(),\n user_id: z.string().describe(\"User ID of the channel member.\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata for the member.\").nullable().optional(),\n nickname: z.string().describe(\"Nickname of the channel member.\").nullable().optional(),\n joined_at: z.number().int().describe(\"Timestamp when the member joined the channel.\").nullable().optional(),\n profile_url: z.string().describe(\"Profile image URL of the channel member.\").nullable().optional(),\n last_seen_at: z.number().int().describe(\"Timestamp when the member was last seen.\").nullable().optional(),\n connection_status: z.string().describe(\"Connection status of the member.\").nullable().optional(),\n preferred_languages: z.array(z.string()).describe(\"Preferred languages of the member.\").nullable().optional(),\n}).passthrough();\nexport const SendbirdViewGroupChannelOutput = z.object({\n data: z.string().describe(\"Custom data of the channel.\").nullable().optional(),\n name: z.string().describe(\"Name of the channel.\").nullable().optional(),\n freeze: z.boolean().describe(\"Whether the channel is frozen. In a frozen channel, normal members can't send messages.\").nullable().optional(),\n members: z.array(SendbirdViewGroupChannel_MemberSchema).describe(\"List of members if show_member=true.\").nullable().optional(),\n is_super: z.boolean().describe(\"Whether the channel is a super group.\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Channel metadata if show_metadata=true.\").nullable().optional(),\n cover_url: z.string().describe(\"Cover image URL of the channel.\").nullable().optional(),\n is_public: z.boolean().describe(\"Whether the channel is public.\").nullable(),\n created_at: z.number().int().describe(\"Timestamp (Unix, milliseconds) when the channel was created.\").nullable().optional(),\n channel_url: z.string().describe(\"URL of the group channel.\").nullable(),\n custom_type: z.string().describe(\"Custom type of the channel.\").nullable().optional(),\n is_distinct: z.boolean().describe(\"Whether the channel is distinct.\").nullable(),\n is_broadcast: z.boolean().describe(\"Whether the channel is a broadcast channel.\").nullable(),\n is_ephemeral: z.boolean().describe(\"Whether the channel is ephemeral.\").nullable().optional(),\n last_message: z.record(z.string(), z.unknown()).describe(\"The last message in the channel if available.\").nullable().optional(),\n member_count: z.number().int().describe(\"Total number of members in the channel.\").nullable().optional(),\n read_receipt: z.record(z.string(), z.unknown()).describe(\"Read receipt mapping (user_id to timestamp) if requested.\").nullable().optional(),\n migration_info: z.record(z.string(), z.unknown()).describe(\"Migration information if show_migration_info=true.\").nullable().optional(),\n is_discoverable: z.boolean().describe(\"Whether the channel is discoverable in search.\").nullable().optional(),\n delivery_receipt: z.record(z.string(), z.unknown()).describe(\"Delivery receipt mapping (user_id to count) if requested.\").nullable().optional(),\n max_length_message: z.number().int().describe(\"Maximum allowed message length in the channel.\").nullable().optional(),\n joined_member_count: z.number().int().describe(\"Number of members who have joined the channel.\").nullable().optional(),\n unread_message_count: z.number().int().describe(\"Number of unread messages in the channel.\").nullable().optional(),\n is_access_code_required: z.boolean().describe(\"Whether access code is required to join.\").nullable().optional(),\n}).passthrough();\n\nexport const sendbirdViewGroupChannel: AppAction<\n typeof SendbirdViewGroupChannelInput,\n typeof SendbirdViewGroupChannelOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_VIEW_GROUP_CHANNEL\", {\n slug: \"sendbird-view-group-channel\",\n name: \"Sendbird View Group Channel\",\n description: \"Tool to view information about a specific group channel. Use when you need channel details after confirming the channel_url.\",\n input: SendbirdViewGroupChannelInput,\n output: SendbirdViewGroupChannelOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CAC3F,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3H,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACpH,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CAChI,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC/H,uBAAuBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;AAC1I,CAAC;AACD,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC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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/view-group-channel.d.ts
|
|
@@ -45,28 +47,7 @@ declare const SendbirdViewGroupChannelOutput: z.ZodObject<{
|
|
|
45
47
|
unread_message_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
46
48
|
is_access_code_required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
47
49
|
}, z.core.$loose>;
|
|
48
|
-
declare const sendbirdViewGroupChannel:
|
|
49
|
-
channel_url: string;
|
|
50
|
-
show_member?: boolean | undefined;
|
|
51
|
-
show_metadata?: boolean | undefined;
|
|
52
|
-
show_read_receipt?: boolean | undefined;
|
|
53
|
-
show_migration_info?: boolean | undefined;
|
|
54
|
-
show_delivery_receipt?: boolean | undefined;
|
|
55
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
|
|
56
|
-
connectionId: z.ZodString;
|
|
57
|
-
entityId: z.ZodString;
|
|
58
|
-
instanceId: z.ZodString;
|
|
59
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
60
|
-
subdomain: z.ZodString;
|
|
61
|
-
generic_api_key: z.ZodString;
|
|
62
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
|
|
63
|
-
connectionId: z.ZodString;
|
|
64
|
-
entityId: z.ZodString;
|
|
65
|
-
instanceId: z.ZodString;
|
|
66
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
67
|
-
subdomain: z.ZodString;
|
|
68
|
-
generic_api_key: z.ZodString;
|
|
69
|
-
}, z.core.$strip>>]>;
|
|
50
|
+
declare const sendbirdViewGroupChannel: AppAction<typeof SendbirdViewGroupChannelInput, typeof SendbirdViewGroupChannelOutput, typeof sendbird.credential>;
|
|
70
51
|
//#endregion
|
|
71
52
|
export { sendbirdViewGroupChannel };
|
|
72
53
|
//# sourceMappingURL=view-group-channel.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-group-channel.d.cts","names":[],"sources":["../../src/actions/view-group-channel.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"view-group-channel.d.cts","names":[],"sources":["../../src/actions/view-group-channel.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;cAmB7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2B9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,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/view-group-channel.d.ts
|
|
@@ -45,28 +47,7 @@ declare const SendbirdViewGroupChannelOutput: z.ZodObject<{
|
|
|
45
47
|
unread_message_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
46
48
|
is_access_code_required: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
47
49
|
}, z.core.$loose>;
|
|
48
|
-
declare const sendbirdViewGroupChannel:
|
|
49
|
-
channel_url: string;
|
|
50
|
-
show_member?: boolean | undefined;
|
|
51
|
-
show_metadata?: boolean | undefined;
|
|
52
|
-
show_read_receipt?: boolean | undefined;
|
|
53
|
-
show_migration_info?: boolean | undefined;
|
|
54
|
-
show_delivery_receipt?: boolean | undefined;
|
|
55
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
|
|
56
|
-
connectionId: z.ZodString;
|
|
57
|
-
entityId: z.ZodString;
|
|
58
|
-
instanceId: z.ZodString;
|
|
59
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
60
|
-
subdomain: z.ZodString;
|
|
61
|
-
generic_api_key: z.ZodString;
|
|
62
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
|
|
63
|
-
connectionId: z.ZodString;
|
|
64
|
-
entityId: z.ZodString;
|
|
65
|
-
instanceId: z.ZodString;
|
|
66
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
67
|
-
subdomain: z.ZodString;
|
|
68
|
-
generic_api_key: z.ZodString;
|
|
69
|
-
}, z.core.$strip>>]>;
|
|
50
|
+
declare const sendbirdViewGroupChannel: AppAction<typeof SendbirdViewGroupChannelInput, typeof SendbirdViewGroupChannelOutput, typeof sendbird.credential>;
|
|
70
51
|
//#endregion
|
|
71
52
|
export { sendbirdViewGroupChannel };
|
|
72
53
|
//# sourceMappingURL=view-group-channel.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-group-channel.d.mts","names":[],"sources":["../../src/actions/view-group-channel.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"view-group-channel.d.mts","names":[],"sources":["../../src/actions/view-group-channel.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;cAmB7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2B9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,QAAA,CAAS,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-group-channel.mjs","names":[],"sources":["../../src/actions/view-group-channel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdViewGroupChannelInput = z.object({\n channel_url: z.string().describe(\"URL-encoded identifier of the group channel to retrieve.\"),\n show_member: z.boolean().default(false).describe(\"Whether to include the channel's member list in the response.\").optional(),\n show_metadata: z.boolean().default(false).describe(\"Whether to include channel metadata in the response.\").optional(),\n show_read_receipt: z.boolean().default(false).describe(\"Whether to include read receipt information in the response.\").optional(),\n show_migration_info: z.boolean().default(false).describe(\"Whether to include migration information in the response.\").optional(),\n show_delivery_receipt: z.boolean().default(false).describe(\"Whether to include delivery receipt information in the response.\").optional(),\n});\nconst SendbirdViewGroupChannel_MemberSchema = z.object({\n role: z.string().describe(\"Role of the member in the channel (operator or member).\").nullable().optional(),\n user_id: z.string().describe(\"User ID of the channel member.\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata for the member.\").nullable().optional(),\n nickname: z.string().describe(\"Nickname of the channel member.\").nullable().optional(),\n joined_at: z.number().int().describe(\"Timestamp when the member joined the channel.\").nullable().optional(),\n profile_url: z.string().describe(\"Profile image URL of the channel member.\").nullable().optional(),\n last_seen_at: z.number().int().describe(\"Timestamp when the member was last seen.\").nullable().optional(),\n connection_status: z.string().describe(\"Connection status of the member.\").nullable().optional(),\n preferred_languages: z.array(z.string()).describe(\"Preferred languages of the member.\").nullable().optional(),\n}).passthrough();\nexport const SendbirdViewGroupChannelOutput = z.object({\n data: z.string().describe(\"Custom data of the channel.\").nullable().optional(),\n name: z.string().describe(\"Name of the channel.\").nullable().optional(),\n freeze: z.boolean().describe(\"Whether the channel is frozen. In a frozen channel, normal members can't send messages.\").nullable().optional(),\n members: z.array(SendbirdViewGroupChannel_MemberSchema).describe(\"List of members if show_member=true.\").nullable().optional(),\n is_super: z.boolean().describe(\"Whether the channel is a super group.\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Channel metadata if show_metadata=true.\").nullable().optional(),\n cover_url: z.string().describe(\"Cover image URL of the channel.\").nullable().optional(),\n is_public: z.boolean().describe(\"Whether the channel is public.\").nullable(),\n created_at: z.number().int().describe(\"Timestamp (Unix, milliseconds) when the channel was created.\").nullable().optional(),\n channel_url: z.string().describe(\"URL of the group channel.\").nullable(),\n custom_type: z.string().describe(\"Custom type of the channel.\").nullable().optional(),\n is_distinct: z.boolean().describe(\"Whether the channel is distinct.\").nullable(),\n is_broadcast: z.boolean().describe(\"Whether the channel is a broadcast channel.\").nullable(),\n is_ephemeral: z.boolean().describe(\"Whether the channel is ephemeral.\").nullable().optional(),\n last_message: z.record(z.string(), z.unknown()).describe(\"The last message in the channel if available.\").nullable().optional(),\n member_count: z.number().int().describe(\"Total number of members in the channel.\").nullable().optional(),\n read_receipt: z.record(z.string(), z.unknown()).describe(\"Read receipt mapping (user_id to timestamp) if requested.\").nullable().optional(),\n migration_info: z.record(z.string(), z.unknown()).describe(\"Migration information if show_migration_info=true.\").nullable().optional(),\n is_discoverable: z.boolean().describe(\"Whether the channel is discoverable in search.\").nullable().optional(),\n delivery_receipt: z.record(z.string(), z.unknown()).describe(\"Delivery receipt mapping (user_id to count) if requested.\").nullable().optional(),\n max_length_message: z.number().int().describe(\"Maximum allowed message length in the channel.\").nullable().optional(),\n joined_member_count: z.number().int().describe(\"Number of members who have joined the channel.\").nullable().optional(),\n unread_message_count: z.number().int().describe(\"Number of unread messages in the channel.\").nullable().optional(),\n is_access_code_required: z.boolean().describe(\"Whether access code is required to join.\").nullable().optional(),\n}).passthrough();\n\nexport const sendbirdViewGroupChannel = action(\"SENDBIRD_VIEW_GROUP_CHANNEL\", {\n slug: \"sendbird-view-group-channel\",\n name: \"Sendbird View Group Channel\",\n description: \"Tool to view information about a specific group channel. Use when you need channel details after confirming the channel_url.\",\n input: SendbirdViewGroupChannelInput,\n output: SendbirdViewGroupChannelOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"view-group-channel.mjs","names":[],"sources":["../../src/actions/view-group-channel.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sendbird } from \"../app\";\n\nexport const SendbirdViewGroupChannelInput = z.object({\n channel_url: z.string().describe(\"URL-encoded identifier of the group channel to retrieve.\"),\n show_member: z.boolean().default(false).describe(\"Whether to include the channel's member list in the response.\").optional(),\n show_metadata: z.boolean().default(false).describe(\"Whether to include channel metadata in the response.\").optional(),\n show_read_receipt: z.boolean().default(false).describe(\"Whether to include read receipt information in the response.\").optional(),\n show_migration_info: z.boolean().default(false).describe(\"Whether to include migration information in the response.\").optional(),\n show_delivery_receipt: z.boolean().default(false).describe(\"Whether to include delivery receipt information in the response.\").optional(),\n});\nconst SendbirdViewGroupChannel_MemberSchema = z.object({\n role: z.string().describe(\"Role of the member in the channel (operator or member).\").nullable().optional(),\n user_id: z.string().describe(\"User ID of the channel member.\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata for the member.\").nullable().optional(),\n nickname: z.string().describe(\"Nickname of the channel member.\").nullable().optional(),\n joined_at: z.number().int().describe(\"Timestamp when the member joined the channel.\").nullable().optional(),\n profile_url: z.string().describe(\"Profile image URL of the channel member.\").nullable().optional(),\n last_seen_at: z.number().int().describe(\"Timestamp when the member was last seen.\").nullable().optional(),\n connection_status: z.string().describe(\"Connection status of the member.\").nullable().optional(),\n preferred_languages: z.array(z.string()).describe(\"Preferred languages of the member.\").nullable().optional(),\n}).passthrough();\nexport const SendbirdViewGroupChannelOutput = z.object({\n data: z.string().describe(\"Custom data of the channel.\").nullable().optional(),\n name: z.string().describe(\"Name of the channel.\").nullable().optional(),\n freeze: z.boolean().describe(\"Whether the channel is frozen. In a frozen channel, normal members can't send messages.\").nullable().optional(),\n members: z.array(SendbirdViewGroupChannel_MemberSchema).describe(\"List of members if show_member=true.\").nullable().optional(),\n is_super: z.boolean().describe(\"Whether the channel is a super group.\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Channel metadata if show_metadata=true.\").nullable().optional(),\n cover_url: z.string().describe(\"Cover image URL of the channel.\").nullable().optional(),\n is_public: z.boolean().describe(\"Whether the channel is public.\").nullable(),\n created_at: z.number().int().describe(\"Timestamp (Unix, milliseconds) when the channel was created.\").nullable().optional(),\n channel_url: z.string().describe(\"URL of the group channel.\").nullable(),\n custom_type: z.string().describe(\"Custom type of the channel.\").nullable().optional(),\n is_distinct: z.boolean().describe(\"Whether the channel is distinct.\").nullable(),\n is_broadcast: z.boolean().describe(\"Whether the channel is a broadcast channel.\").nullable(),\n is_ephemeral: z.boolean().describe(\"Whether the channel is ephemeral.\").nullable().optional(),\n last_message: z.record(z.string(), z.unknown()).describe(\"The last message in the channel if available.\").nullable().optional(),\n member_count: z.number().int().describe(\"Total number of members in the channel.\").nullable().optional(),\n read_receipt: z.record(z.string(), z.unknown()).describe(\"Read receipt mapping (user_id to timestamp) if requested.\").nullable().optional(),\n migration_info: z.record(z.string(), z.unknown()).describe(\"Migration information if show_migration_info=true.\").nullable().optional(),\n is_discoverable: z.boolean().describe(\"Whether the channel is discoverable in search.\").nullable().optional(),\n delivery_receipt: z.record(z.string(), z.unknown()).describe(\"Delivery receipt mapping (user_id to count) if requested.\").nullable().optional(),\n max_length_message: z.number().int().describe(\"Maximum allowed message length in the channel.\").nullable().optional(),\n joined_member_count: z.number().int().describe(\"Number of members who have joined the channel.\").nullable().optional(),\n unread_message_count: z.number().int().describe(\"Number of unread messages in the channel.\").nullable().optional(),\n is_access_code_required: z.boolean().describe(\"Whether access code is required to join.\").nullable().optional(),\n}).passthrough();\n\nexport const sendbirdViewGroupChannel: AppAction<\n typeof SendbirdViewGroupChannelInput,\n typeof SendbirdViewGroupChannelOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_VIEW_GROUP_CHANNEL\", {\n slug: \"sendbird-view-group-channel\",\n name: \"Sendbird View Group Channel\",\n description: \"Tool to view information about a specific group channel. Use when you need channel details after confirming the channel_url.\",\n input: SendbirdViewGroupChannelInput,\n output: SendbirdViewGroupChannelOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgC,EAAE,OAAO;CACpD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CAC3F,aAAa,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2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,yBAAyB,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-message.cjs","names":["z","action"],"sources":["../../src/actions/view-message.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdViewMessageInput = z.object({\n message_id: z.number().int().describe(\"Unique ID of the message.\"),\n channel_url: z.string().describe(\"URL-encoded identifier of the group channel.\"),\n with_sorted_metaarray: z.boolean().describe(\"Whether to include sorted_metaarray arrays in the response.\").optional(),\n}).describe(\"Request model for viewing a specific Sendbird message.\");\nconst SendbirdViewMessage_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 SendbirdViewMessage_OGTagSchema = z.object({\n url: z.string().describe(\"Open graph URL.\").nullable(),\n title: z.string().describe(\"Open graph title.\").nullable().optional(),\n description: z.string().describe(\"Open graph description.\").nullable().optional(),\n}).passthrough();\nconst SendbirdViewMessage_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(),\n}).passthrough();\nconst SendbirdViewMessage_ThreadInfoSchema = z.object({\n reply_count: z.number().int().describe(\"Number of replies in the thread.\").nullable(),\n reply_timestamp: z.number().int().describe(\"Timestamp (ms) of latest reply.\").nullable(),\n most_recent_message: z.record(z.string(), z.unknown()).describe(\"Most recent message in thread as simple JSON object.\").nullable().optional(),\n}).passthrough();\nconst SendbirdViewMessage_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(),\n updated_at: z.number().int().describe(\"Timestamp (ms) when metadata was updated.\").nullable(),\n}).passthrough();\nexport const SendbirdViewMessageOutput = z.object({\n data: z.string().describe(\"Custom message data.\").nullable().optional(),\n type: z.string().describe(\"Type of the message (MESG, FILE, ADMIN).\").nullable(),\n user: SendbirdViewMessage_UserSchema.nullable(),\n og_tag: SendbirdViewMessage_OGTagSchema.nullable().optional(),\n message: z.string().describe(\"Text content of the message.\").nullable().optional(),\n reactions: z.array(SendbirdViewMessage_MessageReactionSchema).describe(\"List of reactions.\").nullable().optional(),\n created_at: z.number().int().describe(\"Creation timestamp (ms).\").nullable(),\n message_id: z.string().describe(\"Unique ID of the message.\").nullable(),\n updated_at: z.number().int().describe(\"Update timestamp (ms).\").nullable(),\n channel_url: z.string().describe(\"URL of the group channel.\").nullable(),\n custom_type: z.string().describe(\"Custom message type.\").nullable().optional(),\n thread_info: SendbirdViewMessage_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 parent_message: z.record(z.string(), z.unknown()).describe(\"Parent message details if threaded.\").nullable().optional(),\n mentioned_users: z.array(SendbirdViewMessage_UserSchema).describe(\"Users mentioned in the message.\").nullable().optional(),\n sorted_metaarray: z.array(SendbirdViewMessage_MessageMetaSchema).describe(\"Sorted metadata array.\").nullable().optional(),\n}).passthrough();\n\nexport const sendbirdViewMessage = action(\"SENDBIRD_VIEW_MESSAGE\", {\n slug: \"sendbird-view-message\",\n name: \"Sendbird View Message\",\n description: \"Tool to view a specific message in a group channel. Use after confirming channel_url and message_id.\",\n input: SendbirdViewMessageInput,\n output: SendbirdViewMessageOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"view-message.cjs","names":["z","action"],"sources":["../../src/actions/view-message.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 SendbirdViewMessageInput = z.object({\n message_id: z.number().int().describe(\"Unique ID of the message.\"),\n channel_url: z.string().describe(\"URL-encoded identifier of the group channel.\"),\n with_sorted_metaarray: z.boolean().describe(\"Whether to include sorted_metaarray arrays in the response.\").optional(),\n}).describe(\"Request model for viewing a specific Sendbird message.\");\nconst SendbirdViewMessage_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 SendbirdViewMessage_OGTagSchema = z.object({\n url: z.string().describe(\"Open graph URL.\").nullable(),\n title: z.string().describe(\"Open graph title.\").nullable().optional(),\n description: z.string().describe(\"Open graph description.\").nullable().optional(),\n}).passthrough();\nconst SendbirdViewMessage_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(),\n}).passthrough();\nconst SendbirdViewMessage_ThreadInfoSchema = z.object({\n reply_count: z.number().int().describe(\"Number of replies in the thread.\").nullable(),\n reply_timestamp: z.number().int().describe(\"Timestamp (ms) of latest reply.\").nullable(),\n most_recent_message: z.record(z.string(), z.unknown()).describe(\"Most recent message in thread as simple JSON object.\").nullable().optional(),\n}).passthrough();\nconst SendbirdViewMessage_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(),\n updated_at: z.number().int().describe(\"Timestamp (ms) when metadata was updated.\").nullable(),\n}).passthrough();\nexport const SendbirdViewMessageOutput = z.object({\n data: z.string().describe(\"Custom message data.\").nullable().optional(),\n type: z.string().describe(\"Type of the message (MESG, FILE, ADMIN).\").nullable(),\n user: SendbirdViewMessage_UserSchema.nullable(),\n og_tag: SendbirdViewMessage_OGTagSchema.nullable().optional(),\n message: z.string().describe(\"Text content of the message.\").nullable().optional(),\n reactions: z.array(SendbirdViewMessage_MessageReactionSchema).describe(\"List of reactions.\").nullable().optional(),\n created_at: z.number().int().describe(\"Creation timestamp (ms).\").nullable(),\n message_id: z.string().describe(\"Unique ID of the message.\").nullable(),\n updated_at: z.number().int().describe(\"Update timestamp (ms).\").nullable(),\n channel_url: z.string().describe(\"URL of the group channel.\").nullable(),\n custom_type: z.string().describe(\"Custom message type.\").nullable().optional(),\n thread_info: SendbirdViewMessage_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 parent_message: z.record(z.string(), z.unknown()).describe(\"Parent message details if threaded.\").nullable().optional(),\n mentioned_users: z.array(SendbirdViewMessage_UserSchema).describe(\"Users mentioned in the message.\").nullable().optional(),\n sorted_metaarray: z.array(SendbirdViewMessage_MessageMetaSchema).describe(\"Sorted metadata array.\").nullable().optional(),\n}).passthrough();\n\nexport const sendbirdViewMessage: AppAction<\n typeof SendbirdViewMessageInput,\n typeof SendbirdViewMessageOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_VIEW_MESSAGE\", {\n slug: \"sendbird-view-message\",\n name: \"Sendbird View Message\",\n description: \"Tool to view a specific message in a group channel. Use after confirming channel_url and message_id.\",\n input: SendbirdViewMessageInput,\n output: SendbirdViewMessageOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B;CACjE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC/E,uBAAuBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,iCAAiCA,IAAAA,EAAE,OAAO;CAC9C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC9E,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,kCAAkCA,IAAAA,EAAE,OAAO;CAC/C,KAAKA,IAAAA,EAAE,OAAO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,SAAS,CAAC,CAAC,SAAS;CACvE,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,gBAAgBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,iBAAiBA,IAAAA,EAAE,MAAM,8BAA8B,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,kBAAkBA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,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/view-message.d.ts
|
|
@@ -56,25 +58,7 @@ declare const SendbirdViewMessageOutput: z.ZodObject<{
|
|
|
56
58
|
updated_at: z.ZodNullable<z.ZodNumber>;
|
|
57
59
|
}, z.core.$loose>>>>;
|
|
58
60
|
}, z.core.$loose>;
|
|
59
|
-
declare const sendbirdViewMessage:
|
|
60
|
-
message_id: number;
|
|
61
|
-
channel_url: string;
|
|
62
|
-
with_sorted_metaarray?: boolean | undefined;
|
|
63
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
|
|
64
|
-
connectionId: z.ZodString;
|
|
65
|
-
entityId: z.ZodString;
|
|
66
|
-
instanceId: z.ZodString;
|
|
67
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
68
|
-
subdomain: z.ZodString;
|
|
69
|
-
generic_api_key: z.ZodString;
|
|
70
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
|
|
71
|
-
connectionId: z.ZodString;
|
|
72
|
-
entityId: z.ZodString;
|
|
73
|
-
instanceId: z.ZodString;
|
|
74
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
75
|
-
subdomain: z.ZodString;
|
|
76
|
-
generic_api_key: z.ZodString;
|
|
77
|
-
}, z.core.$strip>>]>;
|
|
61
|
+
declare const sendbirdViewMessage: AppAction<typeof SendbirdViewMessageInput, typeof SendbirdViewMessageOutput, typeof sendbird.credential>;
|
|
78
62
|
//#endregion
|
|
79
63
|
export { sendbirdViewMessage };
|
|
80
64
|
//# sourceMappingURL=view-message.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-message.d.cts","names":[],"sources":["../../src/actions/view-message.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"view-message.d.cts","names":[],"sources":["../../src/actions/view-message.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;cAkCxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoBzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,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/view-message.d.ts
|
|
@@ -56,25 +58,7 @@ declare const SendbirdViewMessageOutput: z.ZodObject<{
|
|
|
56
58
|
updated_at: z.ZodNullable<z.ZodNumber>;
|
|
57
59
|
}, z.core.$loose>>>>;
|
|
58
60
|
}, z.core.$loose>;
|
|
59
|
-
declare const sendbirdViewMessage:
|
|
60
|
-
message_id: number;
|
|
61
|
-
channel_url: string;
|
|
62
|
-
with_sorted_metaarray?: boolean | undefined;
|
|
63
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
|
|
64
|
-
connectionId: z.ZodString;
|
|
65
|
-
entityId: z.ZodString;
|
|
66
|
-
instanceId: z.ZodString;
|
|
67
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
68
|
-
subdomain: z.ZodString;
|
|
69
|
-
generic_api_key: z.ZodString;
|
|
70
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
|
|
71
|
-
connectionId: z.ZodString;
|
|
72
|
-
entityId: z.ZodString;
|
|
73
|
-
instanceId: z.ZodString;
|
|
74
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
75
|
-
subdomain: z.ZodString;
|
|
76
|
-
generic_api_key: z.ZodString;
|
|
77
|
-
}, z.core.$strip>>]>;
|
|
61
|
+
declare const sendbirdViewMessage: AppAction<typeof SendbirdViewMessageInput, typeof SendbirdViewMessageOutput, typeof sendbird.credential>;
|
|
78
62
|
//#endregion
|
|
79
63
|
export { sendbirdViewMessage };
|
|
80
64
|
//# sourceMappingURL=view-message.d.mts.map
|