@keystrokehq/sendbird 0.1.0 → 0.1.3
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 +3 -3
- package/dist/actions/add-members-group-channel.cjs.map +1 -1
- package/dist/actions/add-members-group-channel.d.cts +28 -3
- package/dist/actions/add-members-group-channel.d.cts.map +1 -1
- package/dist/actions/add-members-group-channel.d.mts +28 -3
- package/dist/actions/add-members-group-channel.d.mts.map +1 -1
- package/dist/actions/add-members-group-channel.mjs +3 -3
- package/dist/actions/add-members-group-channel.mjs.map +1 -1
- package/dist/actions/ban-user-from-group-channel.cjs +3 -3
- package/dist/actions/ban-user-from-group-channel.cjs.map +1 -1
- package/dist/actions/ban-user-from-group-channel.d.cts +25 -3
- package/dist/actions/ban-user-from-group-channel.d.cts.map +1 -1
- package/dist/actions/ban-user-from-group-channel.d.mts +25 -3
- package/dist/actions/ban-user-from-group-channel.d.mts.map +1 -1
- package/dist/actions/ban-user-from-group-channel.mjs +3 -3
- package/dist/actions/ban-user-from-group-channel.mjs.map +1 -1
- package/dist/actions/create-channel.cjs +23 -23
- package/dist/actions/create-channel.cjs.map +1 -1
- package/dist/actions/create-channel.d.cts +90 -3
- package/dist/actions/create-channel.d.cts.map +1 -1
- package/dist/actions/create-channel.d.mts +90 -3
- package/dist/actions/create-channel.d.mts.map +1 -1
- package/dist/actions/create-channel.mjs +23 -23
- package/dist/actions/create-channel.mjs.map +1 -1
- package/dist/actions/create-user.cjs +5 -5
- package/dist/actions/create-user.cjs.map +1 -1
- package/dist/actions/create-user.d.cts +40 -3
- package/dist/actions/create-user.d.cts.map +1 -1
- package/dist/actions/create-user.d.mts +40 -3
- package/dist/actions/create-user.d.mts.map +1 -1
- package/dist/actions/create-user.mjs +5 -5
- package/dist/actions/create-user.mjs.map +1 -1
- package/dist/actions/delete-channel.cjs +1 -1
- package/dist/actions/delete-channel.cjs.map +1 -1
- package/dist/actions/delete-channel.d.cts +9 -3
- package/dist/actions/delete-channel.d.cts.map +1 -1
- package/dist/actions/delete-channel.d.mts +9 -3
- package/dist/actions/delete-channel.d.mts.map +1 -1
- package/dist/actions/delete-channel.mjs +1 -1
- package/dist/actions/delete-channel.mjs.map +1 -1
- package/dist/actions/delete-message.cjs +1 -1
- package/dist/actions/delete-message.cjs.map +1 -1
- package/dist/actions/delete-message.d.cts +11 -3
- package/dist/actions/delete-message.d.cts.map +1 -1
- package/dist/actions/delete-message.d.mts +11 -3
- package/dist/actions/delete-message.d.mts.map +1 -1
- package/dist/actions/delete-message.mjs +1 -1
- package/dist/actions/delete-message.mjs.map +1 -1
- package/dist/actions/delete-user.cjs +1 -1
- package/dist/actions/delete-user.cjs.map +1 -1
- package/dist/actions/delete-user.d.cts +9 -3
- package/dist/actions/delete-user.d.cts.map +1 -1
- package/dist/actions/delete-user.d.mts +9 -3
- package/dist/actions/delete-user.d.mts.map +1 -1
- package/dist/actions/delete-user.mjs +1 -1
- package/dist/actions/delete-user.mjs.map +1 -1
- package/dist/actions/get-count-preference-of-channel.cjs +3 -3
- package/dist/actions/get-count-preference-of-channel.cjs.map +1 -1
- package/dist/actions/get-count-preference-of-channel.d.cts +16 -3
- package/dist/actions/get-count-preference-of-channel.d.cts.map +1 -1
- package/dist/actions/get-count-preference-of-channel.d.mts +16 -3
- package/dist/actions/get-count-preference-of-channel.d.mts.map +1 -1
- package/dist/actions/get-count-preference-of-channel.mjs +3 -3
- package/dist/actions/get-count-preference-of-channel.mjs.map +1 -1
- package/dist/actions/get-number-of-channels-by-join-status.cjs +2 -2
- 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 +33 -3
- 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 +33 -3
- 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 +2 -2
- package/dist/actions/get-number-of-channels-by-join-status.mjs.map +1 -1
- package/dist/actions/get-number-of-unread-items.cjs +1 -1
- package/dist/actions/get-number-of-unread-items.cjs.map +1 -1
- package/dist/actions/get-number-of-unread-items.d.cts +21 -3
- package/dist/actions/get-number-of-unread-items.d.cts.map +1 -1
- package/dist/actions/get-number-of-unread-items.d.mts +21 -3
- package/dist/actions/get-number-of-unread-items.d.mts.map +1 -1
- package/dist/actions/get-number-of-unread-items.mjs +1 -1
- package/dist/actions/get-number-of-unread-items.mjs.map +1 -1
- package/dist/actions/issue-session-token.cjs +3 -3
- package/dist/actions/issue-session-token.cjs.map +1 -1
- package/dist/actions/issue-session-token.d.cts +13 -3
- package/dist/actions/issue-session-token.d.cts.map +1 -1
- package/dist/actions/issue-session-token.d.mts +13 -3
- package/dist/actions/issue-session-token.d.mts.map +1 -1
- package/dist/actions/issue-session-token.mjs +3 -3
- package/dist/actions/issue-session-token.mjs.map +1 -1
- package/dist/actions/leave-group-channels.cjs +1 -1
- package/dist/actions/leave-group-channels.cjs.map +1 -1
- package/dist/actions/leave-group-channels.d.cts +15 -3
- package/dist/actions/leave-group-channels.d.cts.map +1 -1
- package/dist/actions/leave-group-channels.d.mts +15 -3
- package/dist/actions/leave-group-channels.d.mts.map +1 -1
- package/dist/actions/leave-group-channels.mjs +1 -1
- package/dist/actions/leave-group-channels.mjs.map +1 -1
- package/dist/actions/list-banned-members.cjs +5 -5
- package/dist/actions/list-banned-members.cjs.map +1 -1
- package/dist/actions/list-banned-members.d.cts +21 -3
- package/dist/actions/list-banned-members.d.cts.map +1 -1
- package/dist/actions/list-banned-members.d.mts +21 -3
- package/dist/actions/list-banned-members.d.mts.map +1 -1
- package/dist/actions/list-banned-members.mjs +5 -5
- package/dist/actions/list-banned-members.mjs.map +1 -1
- package/dist/actions/list-group-channel-messages.cjs +16 -16
- package/dist/actions/list-group-channel-messages.cjs.map +1 -1
- package/dist/actions/list-group-channel-messages.d.cts +99 -3
- package/dist/actions/list-group-channel-messages.d.cts.map +1 -1
- package/dist/actions/list-group-channel-messages.d.mts +99 -3
- package/dist/actions/list-group-channel-messages.d.mts.map +1 -1
- package/dist/actions/list-group-channel-messages.mjs +16 -16
- package/dist/actions/list-group-channel-messages.mjs.map +1 -1
- package/dist/actions/list-group-channels.cjs +12 -12
- package/dist/actions/list-group-channels.cjs.map +1 -1
- package/dist/actions/list-group-channels.d.cts +117 -3
- package/dist/actions/list-group-channels.d.cts.map +1 -1
- package/dist/actions/list-group-channels.d.mts +117 -3
- package/dist/actions/list-group-channels.d.mts.map +1 -1
- package/dist/actions/list-group-channels.mjs +12 -12
- package/dist/actions/list-group-channels.mjs.map +1 -1
- package/dist/actions/list-members-group-channel.cjs +8 -8
- package/dist/actions/list-members-group-channel.cjs.map +1 -1
- package/dist/actions/list-members-group-channel.d.cts +52 -3
- package/dist/actions/list-members-group-channel.d.cts.map +1 -1
- package/dist/actions/list-members-group-channel.d.mts +52 -3
- package/dist/actions/list-members-group-channel.d.mts.map +1 -1
- package/dist/actions/list-members-group-channel.mjs +8 -8
- package/dist/actions/list-members-group-channel.mjs.map +1 -1
- package/dist/actions/list-operators-custom-channel-type.cjs +4 -4
- package/dist/actions/list-operators-custom-channel-type.cjs.map +1 -1
- package/dist/actions/list-operators-custom-channel-type.d.cts +19 -3
- package/dist/actions/list-operators-custom-channel-type.d.cts.map +1 -1
- package/dist/actions/list-operators-custom-channel-type.d.mts +19 -3
- package/dist/actions/list-operators-custom-channel-type.d.mts.map +1 -1
- package/dist/actions/list-operators-custom-channel-type.mjs +4 -4
- package/dist/actions/list-operators-custom-channel-type.mjs.map +1 -1
- package/dist/actions/list-operators-group-channel.cjs +3 -3
- package/dist/actions/list-operators-group-channel.cjs.map +1 -1
- package/dist/actions/list-operators-group-channel.d.cts +18 -3
- package/dist/actions/list-operators-group-channel.d.cts.map +1 -1
- package/dist/actions/list-operators-group-channel.d.mts +18 -3
- package/dist/actions/list-operators-group-channel.d.mts.map +1 -1
- package/dist/actions/list-operators-group-channel.mjs +3 -3
- package/dist/actions/list-operators-group-channel.mjs.map +1 -1
- package/dist/actions/list-operators-open-channel.cjs +4 -4
- package/dist/actions/list-operators-open-channel.cjs.map +1 -1
- package/dist/actions/list-operators-open-channel.d.cts +19 -3
- package/dist/actions/list-operators-open-channel.d.cts.map +1 -1
- package/dist/actions/list-operators-open-channel.d.mts +19 -3
- package/dist/actions/list-operators-open-channel.d.mts.map +1 -1
- package/dist/actions/list-operators-open-channel.mjs +4 -4
- package/dist/actions/list-operators-open-channel.mjs.map +1 -1
- package/dist/actions/list-users.cjs +4 -4
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +48 -3
- package/dist/actions/list-users.d.cts.map +1 -1
- package/dist/actions/list-users.d.mts +48 -3
- package/dist/actions/list-users.d.mts.map +1 -1
- package/dist/actions/list-users.mjs +4 -4
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/mark-all-user-messages-as-read.cjs +1 -1
- package/dist/actions/mark-all-user-messages-as-read.cjs.map +1 -1
- package/dist/actions/mark-all-user-messages-as-read.d.cts +9 -3
- package/dist/actions/mark-all-user-messages-as-read.d.cts.map +1 -1
- package/dist/actions/mark-all-user-messages-as-read.d.mts +9 -3
- package/dist/actions/mark-all-user-messages-as-read.d.mts.map +1 -1
- package/dist/actions/mark-all-user-messages-as-read.mjs +1 -1
- package/dist/actions/mark-all-user-messages-as-read.mjs.map +1 -1
- package/dist/actions/mute-user.cjs +1 -1
- package/dist/actions/mute-user.cjs.map +1 -1
- package/dist/actions/mute-user.d.cts +13 -3
- package/dist/actions/mute-user.d.cts.map +1 -1
- package/dist/actions/mute-user.d.mts +13 -3
- package/dist/actions/mute-user.d.mts.map +1 -1
- package/dist/actions/mute-user.mjs +1 -1
- package/dist/actions/mute-user.mjs.map +1 -1
- package/dist/actions/register-operators-custom-channel-type.cjs +4 -4
- package/dist/actions/register-operators-custom-channel-type.cjs.map +1 -1
- package/dist/actions/register-operators-custom-channel-type.d.cts +16 -3
- package/dist/actions/register-operators-custom-channel-type.d.cts.map +1 -1
- package/dist/actions/register-operators-custom-channel-type.d.mts +16 -3
- package/dist/actions/register-operators-custom-channel-type.d.mts.map +1 -1
- package/dist/actions/register-operators-custom-channel-type.mjs +4 -4
- package/dist/actions/register-operators-custom-channel-type.mjs.map +1 -1
- package/dist/actions/register-operators-group-channel.cjs +4 -4
- package/dist/actions/register-operators-group-channel.cjs.map +1 -1
- package/dist/actions/register-operators-group-channel.d.cts +17 -3
- package/dist/actions/register-operators-group-channel.d.cts.map +1 -1
- package/dist/actions/register-operators-group-channel.d.mts +17 -3
- package/dist/actions/register-operators-group-channel.d.mts.map +1 -1
- package/dist/actions/register-operators-group-channel.mjs +4 -4
- package/dist/actions/register-operators-group-channel.mjs.map +1 -1
- package/dist/actions/register-operators-open-channel.cjs +3 -3
- package/dist/actions/register-operators-open-channel.cjs.map +1 -1
- package/dist/actions/register-operators-open-channel.d.cts +16 -3
- package/dist/actions/register-operators-open-channel.d.cts.map +1 -1
- package/dist/actions/register-operators-open-channel.d.mts +16 -3
- package/dist/actions/register-operators-open-channel.d.mts.map +1 -1
- package/dist/actions/register-operators-open-channel.mjs +3 -3
- package/dist/actions/register-operators-open-channel.mjs.map +1 -1
- package/dist/actions/revoke-all-session-tokens.cjs +1 -1
- package/dist/actions/revoke-all-session-tokens.cjs.map +1 -1
- package/dist/actions/revoke-all-session-tokens.d.cts +10 -3
- package/dist/actions/revoke-all-session-tokens.d.cts.map +1 -1
- package/dist/actions/revoke-all-session-tokens.d.mts +10 -3
- package/dist/actions/revoke-all-session-tokens.d.mts.map +1 -1
- package/dist/actions/revoke-all-session-tokens.mjs +1 -1
- package/dist/actions/revoke-all-session-tokens.mjs.map +1 -1
- package/dist/actions/send-message.cjs +14 -14
- package/dist/actions/send-message.cjs.map +1 -1
- package/dist/actions/send-message.d.cts +90 -3
- package/dist/actions/send-message.d.cts.map +1 -1
- package/dist/actions/send-message.d.mts +90 -3
- package/dist/actions/send-message.d.mts.map +1 -1
- package/dist/actions/send-message.mjs +14 -14
- package/dist/actions/send-message.mjs.map +1 -1
- package/dist/actions/unban-user.cjs +1 -1
- package/dist/actions/unban-user.cjs.map +1 -1
- package/dist/actions/unban-user.d.cts +9 -3
- package/dist/actions/unban-user.d.cts.map +1 -1
- package/dist/actions/unban-user.d.mts +9 -3
- package/dist/actions/unban-user.d.mts.map +1 -1
- package/dist/actions/unban-user.mjs +1 -1
- package/dist/actions/unban-user.mjs.map +1 -1
- package/dist/actions/unmute-user.cjs +1 -1
- package/dist/actions/unmute-user.cjs.map +1 -1
- package/dist/actions/unmute-user.d.cts +16 -3
- package/dist/actions/unmute-user.d.cts.map +1 -1
- package/dist/actions/unmute-user.d.mts +16 -3
- package/dist/actions/unmute-user.d.mts.map +1 -1
- package/dist/actions/unmute-user.mjs +1 -1
- package/dist/actions/unmute-user.mjs.map +1 -1
- package/dist/actions/unregister-operators-custom-channel-type.cjs +3 -3
- package/dist/actions/unregister-operators-custom-channel-type.cjs.map +1 -1
- package/dist/actions/unregister-operators-custom-channel-type.d.cts +14 -3
- package/dist/actions/unregister-operators-custom-channel-type.d.cts.map +1 -1
- package/dist/actions/unregister-operators-custom-channel-type.d.mts +14 -3
- package/dist/actions/unregister-operators-custom-channel-type.d.mts.map +1 -1
- package/dist/actions/unregister-operators-custom-channel-type.mjs +3 -3
- package/dist/actions/unregister-operators-custom-channel-type.mjs.map +1 -1
- package/dist/actions/update-count-preference-of-channel.cjs +3 -3
- package/dist/actions/update-count-preference-of-channel.cjs.map +1 -1
- package/dist/actions/update-count-preference-of-channel.d.cts +19 -3
- package/dist/actions/update-count-preference-of-channel.d.cts.map +1 -1
- package/dist/actions/update-count-preference-of-channel.d.mts +19 -3
- package/dist/actions/update-count-preference-of-channel.d.mts.map +1 -1
- package/dist/actions/update-count-preference-of-channel.mjs +3 -3
- package/dist/actions/update-count-preference-of-channel.mjs.map +1 -1
- package/dist/actions/update-group-channel.cjs +5 -5
- package/dist/actions/update-group-channel.cjs.map +1 -1
- package/dist/actions/update-group-channel.d.cts +45 -3
- package/dist/actions/update-group-channel.d.cts.map +1 -1
- package/dist/actions/update-group-channel.d.mts +45 -3
- package/dist/actions/update-group-channel.d.mts.map +1 -1
- package/dist/actions/update-group-channel.mjs +5 -5
- package/dist/actions/update-group-channel.mjs.map +1 -1
- package/dist/actions/update-message.cjs +6 -6
- package/dist/actions/update-message.cjs.map +1 -1
- package/dist/actions/update-message.d.cts +56 -3
- package/dist/actions/update-message.d.cts.map +1 -1
- package/dist/actions/update-message.d.mts +56 -3
- package/dist/actions/update-message.d.mts.map +1 -1
- package/dist/actions/update-message.mjs +6 -6
- package/dist/actions/update-message.mjs.map +1 -1
- package/dist/actions/update-user.cjs +2 -2
- package/dist/actions/update-user.cjs.map +1 -1
- package/dist/actions/update-user.d.cts +34 -3
- package/dist/actions/update-user.d.cts.map +1 -1
- package/dist/actions/update-user.d.mts +34 -3
- package/dist/actions/update-user.d.mts.map +1 -1
- package/dist/actions/update-user.mjs +2 -2
- package/dist/actions/update-user.mjs.map +1 -1
- package/dist/actions/view-group-channel.cjs +12 -12
- package/dist/actions/view-group-channel.cjs.map +1 -1
- package/dist/actions/view-group-channel.d.cts +52 -3
- package/dist/actions/view-group-channel.d.cts.map +1 -1
- package/dist/actions/view-group-channel.d.mts +52 -3
- package/dist/actions/view-group-channel.d.mts.map +1 -1
- package/dist/actions/view-group-channel.mjs +12 -12
- package/dist/actions/view-group-channel.mjs.map +1 -1
- package/dist/actions/view-message.cjs +23 -23
- package/dist/actions/view-message.cjs.map +1 -1
- package/dist/actions/view-message.d.cts +60 -3
- package/dist/actions/view-message.d.cts.map +1 -1
- package/dist/actions/view-message.d.mts +60 -3
- package/dist/actions/view-message.d.mts.map +1 -1
- package/dist/actions/view-message.mjs +23 -23
- package/dist/actions/view-message.mjs.map +1 -1
- package/dist/actions/view-user.cjs +2 -2
- package/dist/actions/view-user.cjs.map +1 -1
- package/dist/actions/view-user.d.cts +22 -3
- package/dist/actions/view-user.d.cts.map +1 -1
- package/dist/actions/view-user.d.mts +22 -3
- package/dist/actions/view-user.d.mts.map +1 -1
- package/dist/actions/view-user.mjs +2 -2
- package/dist/actions/view-user.mjs.map +1 -1
- package/dist/catalog.cjs +13 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +12 -0
- package/dist/catalog.d.mts +12 -0
- package/dist/catalog.mjs +13 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,96 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-channel.d.ts
|
|
4
|
-
declare const SendbirdCreateChannelInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SendbirdCreateChannelInput: z.ZodObject<{
|
|
5
|
+
data: z.ZodOptional<z.ZodString>;
|
|
6
|
+
name: z.ZodOptional<z.ZodString>;
|
|
7
|
+
strict: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
is_super: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
user_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
10
|
+
cover_url: z.ZodOptional<z.ZodString>;
|
|
11
|
+
is_public: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
cover_file: z.ZodOptional<z.ZodString>;
|
|
13
|
+
access_code: z.ZodOptional<z.ZodString>;
|
|
14
|
+
channel_url: z.ZodOptional<z.ZodString>;
|
|
15
|
+
custom_type: z.ZodOptional<z.ZodString>;
|
|
16
|
+
is_distinct: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
is_ephemeral: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
operator_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
19
|
+
custom_fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
20
|
+
is_discoverable: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
+
is_chat_notification: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
message_survival_seconds: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
declare const SendbirdCreateChannelOutput: z.ZodObject<{
|
|
25
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
freeze: z.ZodNullable<z.ZodBoolean>;
|
|
28
|
+
members: z.ZodArray<z.ZodObject<{
|
|
29
|
+
state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
has_pin: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
31
|
+
user_id: z.ZodNullable<z.ZodString>;
|
|
32
|
+
nickname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
profile_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
last_seen_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
35
|
+
connection_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
36
|
+
pin_timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
37
|
+
}, z.core.$loose>>;
|
|
38
|
+
is_super: z.ZodNullable<z.ZodBoolean>;
|
|
39
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
40
|
+
cover_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
is_public: z.ZodNullable<z.ZodBoolean>;
|
|
42
|
+
operators: z.ZodArray<z.ZodObject<{
|
|
43
|
+
state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
has_pin: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
45
|
+
user_id: z.ZodNullable<z.ZodString>;
|
|
46
|
+
nickname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
profile_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
last_seen_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
49
|
+
connection_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
50
|
+
pin_timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
51
|
+
}, z.core.$loose>>;
|
|
52
|
+
created_at: z.ZodNullable<z.ZodNumber>;
|
|
53
|
+
channel_url: z.ZodNullable<z.ZodString>;
|
|
54
|
+
custom_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
+
is_distinct: z.ZodNullable<z.ZodBoolean>;
|
|
56
|
+
is_broadcast: z.ZodNullable<z.ZodBoolean>;
|
|
57
|
+
is_ephemeral: z.ZodNullable<z.ZodBoolean>;
|
|
58
|
+
last_message: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
59
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
+
created_at: z.ZodNullable<z.ZodNumber>;
|
|
62
|
+
message_id: z.ZodNullable<z.ZodString>;
|
|
63
|
+
updated_at: z.ZodNullable<z.ZodNumber>;
|
|
64
|
+
custom_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
+
message_type: z.ZodNullable<z.ZodString>;
|
|
66
|
+
}, z.core.$loose>>>;
|
|
67
|
+
member_count: z.ZodNullable<z.ZodNumber>;
|
|
68
|
+
read_receipt: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
69
|
+
is_discoverable: z.ZodNullable<z.ZodBoolean>;
|
|
70
|
+
delivery_receipt: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
71
|
+
joined_member_count: z.ZodNullable<z.ZodNumber>;
|
|
72
|
+
unread_message_count: z.ZodNullable<z.ZodNumber>;
|
|
73
|
+
}, z.core.$loose>;
|
|
74
|
+
declare const sendbirdCreateChannel: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
75
|
+
data?: string | undefined;
|
|
76
|
+
name?: string | undefined;
|
|
77
|
+
strict?: boolean | undefined;
|
|
78
|
+
is_super?: boolean | undefined;
|
|
79
|
+
user_ids?: string[] | undefined;
|
|
80
|
+
cover_url?: string | undefined;
|
|
81
|
+
is_public?: boolean | undefined;
|
|
82
|
+
cover_file?: string | undefined;
|
|
83
|
+
access_code?: string | undefined;
|
|
84
|
+
channel_url?: string | undefined;
|
|
85
|
+
custom_type?: string | undefined;
|
|
86
|
+
is_distinct?: boolean | undefined;
|
|
87
|
+
is_ephemeral?: boolean | undefined;
|
|
88
|
+
operator_ids?: string[] | undefined;
|
|
89
|
+
custom_fields?: Record<string, unknown> | undefined;
|
|
90
|
+
is_discoverable?: boolean | undefined;
|
|
91
|
+
is_chat_notification?: boolean | undefined;
|
|
92
|
+
message_survival_seconds?: number | undefined;
|
|
93
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
94
|
//#endregion
|
|
8
95
|
export { sendbirdCreateChannel };
|
|
9
96
|
//# sourceMappingURL=create-channel.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-channel.d.cts","names":[],"sources":["../../src/actions/create-channel.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"create-channel.d.cts","names":[],"sources":["../../src/actions/create-channel.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAuC1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyB3B,qBAAA,gCAAqB,wBAAA;;;;;;;;;;;;;;;kBAMhC,MAAA"}
|
|
@@ -1,9 +1,96 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-channel.d.ts
|
|
4
|
-
declare const SendbirdCreateChannelInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SendbirdCreateChannelInput: z.ZodObject<{
|
|
5
|
+
data: z.ZodOptional<z.ZodString>;
|
|
6
|
+
name: z.ZodOptional<z.ZodString>;
|
|
7
|
+
strict: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
is_super: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
user_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
10
|
+
cover_url: z.ZodOptional<z.ZodString>;
|
|
11
|
+
is_public: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
cover_file: z.ZodOptional<z.ZodString>;
|
|
13
|
+
access_code: z.ZodOptional<z.ZodString>;
|
|
14
|
+
channel_url: z.ZodOptional<z.ZodString>;
|
|
15
|
+
custom_type: z.ZodOptional<z.ZodString>;
|
|
16
|
+
is_distinct: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
is_ephemeral: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
operator_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
19
|
+
custom_fields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
20
|
+
is_discoverable: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
+
is_chat_notification: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
message_survival_seconds: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
declare const SendbirdCreateChannelOutput: z.ZodObject<{
|
|
25
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
freeze: z.ZodNullable<z.ZodBoolean>;
|
|
28
|
+
members: z.ZodArray<z.ZodObject<{
|
|
29
|
+
state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
has_pin: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
31
|
+
user_id: z.ZodNullable<z.ZodString>;
|
|
32
|
+
nickname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
+
profile_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
last_seen_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
35
|
+
connection_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
36
|
+
pin_timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
37
|
+
}, z.core.$loose>>;
|
|
38
|
+
is_super: z.ZodNullable<z.ZodBoolean>;
|
|
39
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
40
|
+
cover_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
is_public: z.ZodNullable<z.ZodBoolean>;
|
|
42
|
+
operators: z.ZodArray<z.ZodObject<{
|
|
43
|
+
state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
has_pin: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
45
|
+
user_id: z.ZodNullable<z.ZodString>;
|
|
46
|
+
nickname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
profile_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
last_seen_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
49
|
+
connection_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
50
|
+
pin_timestamp: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
51
|
+
}, z.core.$loose>>;
|
|
52
|
+
created_at: z.ZodNullable<z.ZodNumber>;
|
|
53
|
+
channel_url: z.ZodNullable<z.ZodString>;
|
|
54
|
+
custom_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
+
is_distinct: z.ZodNullable<z.ZodBoolean>;
|
|
56
|
+
is_broadcast: z.ZodNullable<z.ZodBoolean>;
|
|
57
|
+
is_ephemeral: z.ZodNullable<z.ZodBoolean>;
|
|
58
|
+
last_message: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
59
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
|
+
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
+
created_at: z.ZodNullable<z.ZodNumber>;
|
|
62
|
+
message_id: z.ZodNullable<z.ZodString>;
|
|
63
|
+
updated_at: z.ZodNullable<z.ZodNumber>;
|
|
64
|
+
custom_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
+
message_type: z.ZodNullable<z.ZodString>;
|
|
66
|
+
}, z.core.$loose>>>;
|
|
67
|
+
member_count: z.ZodNullable<z.ZodNumber>;
|
|
68
|
+
read_receipt: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
69
|
+
is_discoverable: z.ZodNullable<z.ZodBoolean>;
|
|
70
|
+
delivery_receipt: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
71
|
+
joined_member_count: z.ZodNullable<z.ZodNumber>;
|
|
72
|
+
unread_message_count: z.ZodNullable<z.ZodNumber>;
|
|
73
|
+
}, z.core.$loose>;
|
|
74
|
+
declare const sendbirdCreateChannel: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
75
|
+
data?: string | undefined;
|
|
76
|
+
name?: string | undefined;
|
|
77
|
+
strict?: boolean | undefined;
|
|
78
|
+
is_super?: boolean | undefined;
|
|
79
|
+
user_ids?: string[] | undefined;
|
|
80
|
+
cover_url?: string | undefined;
|
|
81
|
+
is_public?: boolean | undefined;
|
|
82
|
+
cover_file?: string | undefined;
|
|
83
|
+
access_code?: string | undefined;
|
|
84
|
+
channel_url?: string | undefined;
|
|
85
|
+
custom_type?: string | undefined;
|
|
86
|
+
is_distinct?: boolean | undefined;
|
|
87
|
+
is_ephemeral?: boolean | undefined;
|
|
88
|
+
operator_ids?: string[] | undefined;
|
|
89
|
+
custom_fields?: Record<string, unknown> | undefined;
|
|
90
|
+
is_discoverable?: boolean | undefined;
|
|
91
|
+
is_chat_notification?: boolean | undefined;
|
|
92
|
+
message_survival_seconds?: number | undefined;
|
|
93
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
94
|
//#endregion
|
|
8
95
|
export { sendbirdCreateChannel };
|
|
9
96
|
//# sourceMappingURL=create-channel.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-channel.d.mts","names":[],"sources":["../../src/actions/create-channel.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"create-channel.d.mts","names":[],"sources":["../../src/actions/create-channel.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAuC1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyB3B,qBAAA,gCAAqB,wBAAA;;;;;;;;;;;;;;;kBAMhC,MAAA"}
|
|
@@ -24,22 +24,22 @@ const SendbirdCreateChannelInput = z.object({
|
|
|
24
24
|
const SendbirdCreateChannel_MemberSchema = z.object({
|
|
25
25
|
state: z.string().describe("Member state (joined, invited, etc.)").nullable().optional(),
|
|
26
26
|
has_pin: z.boolean().describe("Whether member has pinned the channel").nullable().optional(),
|
|
27
|
-
user_id: z.string().describe("Member user ID"),
|
|
27
|
+
user_id: z.string().describe("Member user ID").nullable(),
|
|
28
28
|
nickname: z.string().describe("Member nickname").nullable().optional(),
|
|
29
29
|
profile_url: z.string().describe("Member profile image URL").nullable().optional(),
|
|
30
30
|
last_seen_at: z.number().int().describe("Timestamp when member was last active (ms)").nullable().optional(),
|
|
31
31
|
connection_id: z.number().int().describe("Member connection ID").nullable().optional(),
|
|
32
32
|
pin_timestamp: z.number().int().describe("Timestamp when channel was pinned (ms)").nullable().optional()
|
|
33
|
-
});
|
|
33
|
+
}).passthrough();
|
|
34
34
|
const SendbirdCreateChannel_LastMessageSchema = z.object({
|
|
35
35
|
data: z.string().describe("Data payload of the last message").nullable().optional(),
|
|
36
36
|
message: z.string().describe("Content of the last message if text-based").nullable().optional(),
|
|
37
|
-
created_at: z.number().int().describe("Timestamp when the last message was created (ms)"),
|
|
38
|
-
message_id: z.string().describe("ID of the last message"),
|
|
39
|
-
updated_at: z.number().int().describe("Timestamp when the last message was last updated (ms)"),
|
|
37
|
+
created_at: z.number().int().describe("Timestamp when the last message was created (ms)").nullable(),
|
|
38
|
+
message_id: z.string().describe("ID of the last message").nullable(),
|
|
39
|
+
updated_at: z.number().int().describe("Timestamp when the last message was last updated (ms)").nullable(),
|
|
40
40
|
custom_type: z.string().describe("Custom type of the last message").nullable().optional(),
|
|
41
|
-
message_type: z.string().describe("Type of the last message (MESG, FILE, ADMM)")
|
|
42
|
-
});
|
|
41
|
+
message_type: z.string().describe("Type of the last message (MESG, FILE, ADMM)").nullable()
|
|
42
|
+
}).passthrough();
|
|
43
43
|
const sendbirdCreateChannel = action("SENDBIRD_CREATE_CHANNEL", {
|
|
44
44
|
slug: "sendbird-create-channel",
|
|
45
45
|
name: "Create Group Channel",
|
|
@@ -48,27 +48,27 @@ const sendbirdCreateChannel = action("SENDBIRD_CREATE_CHANNEL", {
|
|
|
48
48
|
output: z.object({
|
|
49
49
|
data: z.string().describe("Custom data of the channel").nullable().optional(),
|
|
50
50
|
name: z.string().describe("Name of the channel").nullable().optional(),
|
|
51
|
-
freeze: z.boolean().describe("Whether the channel is frozen"),
|
|
51
|
+
freeze: z.boolean().describe("Whether the channel is frozen").nullable(),
|
|
52
52
|
members: z.array(SendbirdCreateChannel_MemberSchema).describe("List of channel members"),
|
|
53
|
-
is_super: z.boolean().describe("Whether the channel is a supergroup channel"),
|
|
54
|
-
metadata: z.
|
|
53
|
+
is_super: z.boolean().describe("Whether the channel is a supergroup channel").nullable(),
|
|
54
|
+
metadata: z.record(z.string(), z.unknown()).describe("Channel metadata key-value pairs").nullable().optional(),
|
|
55
55
|
cover_url: z.string().describe("Cover image URL of the channel").nullable().optional(),
|
|
56
|
-
is_public: z.boolean().describe("Whether the channel is public"),
|
|
56
|
+
is_public: z.boolean().describe("Whether the channel is public").nullable(),
|
|
57
57
|
operators: z.array(SendbirdCreateChannel_MemberSchema).describe("List of channel operators"),
|
|
58
|
-
created_at: z.number().int().describe("Timestamp when the channel was created (ms)"),
|
|
59
|
-
channel_url: z.string().describe("Unique URL of the group channel"),
|
|
58
|
+
created_at: z.number().int().describe("Timestamp when the channel was created (ms)").nullable(),
|
|
59
|
+
channel_url: z.string().describe("Unique URL of the group channel").nullable(),
|
|
60
60
|
custom_type: z.string().describe("Custom type identifier of the channel").nullable().optional(),
|
|
61
|
-
is_distinct: z.boolean().describe("Whether the channel is distinct"),
|
|
62
|
-
is_broadcast: z.boolean().describe("Whether the channel is broadcast type"),
|
|
63
|
-
is_ephemeral: z.boolean().describe("Whether the channel is ephemeral"),
|
|
61
|
+
is_distinct: z.boolean().describe("Whether the channel is distinct").nullable(),
|
|
62
|
+
is_broadcast: z.boolean().describe("Whether the channel is broadcast type").nullable(),
|
|
63
|
+
is_ephemeral: z.boolean().describe("Whether the channel is ephemeral").nullable(),
|
|
64
64
|
last_message: SendbirdCreateChannel_LastMessageSchema.nullable().optional(),
|
|
65
|
-
member_count: z.number().int().describe("Number of members in the channel"),
|
|
66
|
-
read_receipt: z.
|
|
67
|
-
is_discoverable: z.boolean().describe("Whether the channel is discoverable in search"),
|
|
68
|
-
delivery_receipt: z.
|
|
69
|
-
joined_member_count: z.number().int().describe("Number of joined members in the channel"),
|
|
70
|
-
unread_message_count: z.number().int().describe("Count of unread messages for the user")
|
|
71
|
-
}).describe("Response model for creating a Sendbird group channel.")
|
|
65
|
+
member_count: z.number().int().describe("Number of members in the channel").nullable(),
|
|
66
|
+
read_receipt: z.record(z.string(), z.unknown()).describe("Read receipt per user mapping").nullable().optional(),
|
|
67
|
+
is_discoverable: z.boolean().describe("Whether the channel is discoverable in search").nullable(),
|
|
68
|
+
delivery_receipt: z.record(z.string(), z.unknown()).describe("Delivery receipt per user mapping").nullable().optional(),
|
|
69
|
+
joined_member_count: z.number().int().describe("Number of joined members in the channel").nullable(),
|
|
70
|
+
unread_message_count: z.number().int().describe("Count of unread messages for the user").nullable()
|
|
71
|
+
}).passthrough().describe("Response model for creating a Sendbird group channel.")
|
|
72
72
|
});
|
|
73
73
|
//#endregion
|
|
74
74
|
export { sendbirdCreateChannel };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-channel.mjs","names":[],"sources":["../../src/actions/create-channel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdCreateChannelInput: z.ZodTypeAny = z.object({\n data: z.string().describe(\"Custom data for the channel\").optional(),\n name: z.string().describe(\"Name of the channel\").optional(),\n strict: z.boolean().describe(\"True for strict creation; fails if channel exists\").optional(),\n is_super: z.boolean().describe(\"True to create a supergroup channel\").optional(),\n user_ids: z.array(z.string()).describe(\"List of user IDs to invite to the channel (max 100)\").optional(),\n cover_url: z.string().describe(\"URL of the channel cover image\").optional(),\n is_public: z.boolean().describe(\"True to create a public channel\").optional(),\n cover_file: z.string().describe(\"Binary content of the cover image for multipart upload\").optional(),\n access_code: z.string().describe(\"Access code for private channels\").optional(),\n channel_url: z.string().describe(\"Custom URL of the channel; autogenerated if omitted\").optional(),\n custom_type: z.string().describe(\"Custom type identifier for the channel\").optional(),\n is_distinct: z.boolean().describe(\"True to create a distinct channel\").optional(),\n is_ephemeral: z.boolean().describe(\"True to create an ephemeral channel\").optional(),\n operator_ids: z.array(z.string()).describe(\"List of user IDs to assign as operators\").optional(),\n custom_fields: z.record(z.string(), z.unknown()).describe(\"Custom fields object\").optional(),\n is_discoverable: z.boolean().describe(\"True to list the channel in search results\").optional(),\n is_chat_notification: z.boolean().describe(\"True to send system notifications for channel events\").optional(),\n message_survival_seconds: z.number().int().describe(\"Message retention period in seconds\").optional(),\n}).describe(\"Request model for creating a new Sendbird group channel.\");\nconst SendbirdCreateChannel_MemberSchema: z.ZodTypeAny = z.object({\n state: z.string().describe(\"Member state (joined, invited, etc.)\").nullable().optional(),\n has_pin: z.boolean().describe(\"Whether member has pinned the channel\").nullable().optional(),\n user_id: z.string().describe(\"Member user ID\"),\n nickname: z.string().describe(\"Member nickname\").nullable().optional(),\n profile_url: z.string().describe(\"Member profile image URL\").nullable().optional(),\n last_seen_at: z.number().int().describe(\"Timestamp when member was last active (ms)\").nullable().optional(),\n connection_id: z.number().int().describe(\"Member connection ID\").nullable().optional(),\n pin_timestamp: z.number().int().describe(\"Timestamp when channel was pinned (ms)\").nullable().optional(),\n});\nconst SendbirdCreateChannel_LastMessageSchema: z.ZodTypeAny = z.object({\n data: z.string().describe(\"Data payload of the last message\").nullable().optional(),\n message: z.string().describe(\"Content of the last message if text-based\").nullable().optional(),\n created_at: z.number().int().describe(\"Timestamp when the last message was created (ms)\"),\n message_id: z.string().describe(\"ID of the last message\"),\n updated_at: z.number().int().describe(\"Timestamp when the last message was last updated (ms)\"),\n custom_type: z.string().describe(\"Custom type of the last message\").nullable().optional(),\n message_type: z.string().describe(\"Type of the last message (MESG, FILE, ADMM)\"),\n});\nexport const SendbirdCreateChannelOutput: z.ZodTypeAny = 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\"),\n members: z.array(SendbirdCreateChannel_MemberSchema).describe(\"List of channel members\"),\n is_super: z.boolean().describe(\"Whether the channel is a supergroup channel\"),\n metadata: z.object({}).describe(\"Channel metadata key-value pairs\").nullable().optional(),\n cover_url: z.string().describe(\"Cover image URL of the channel\").nullable().optional(),\n is_public: z.boolean().describe(\"Whether the channel is public\"),\n operators: z.array(SendbirdCreateChannel_MemberSchema).describe(\"List of channel operators\"),\n created_at: z.number().int().describe(\"Timestamp when the channel was created (ms)\"),\n channel_url: z.string().describe(\"Unique URL of the group channel\"),\n custom_type: z.string().describe(\"Custom type identifier of the channel\").nullable().optional(),\n is_distinct: z.boolean().describe(\"Whether the channel is distinct\"),\n is_broadcast: z.boolean().describe(\"Whether the channel is broadcast type\"),\n is_ephemeral: z.boolean().describe(\"Whether the channel is ephemeral\"),\n last_message: SendbirdCreateChannel_LastMessageSchema.nullable().optional(),\n member_count: z.number().int().describe(\"Number of members in the channel\"),\n read_receipt: z.object({}).describe(\"Read receipt per user mapping\").nullable().optional(),\n is_discoverable: z.boolean().describe(\"Whether the channel is discoverable in search\"),\n delivery_receipt: z.object({}).describe(\"Delivery receipt per user mapping\").nullable().optional(),\n joined_member_count: z.number().int().describe(\"Number of joined members in the channel\"),\n unread_message_count: z.number().int().describe(\"Count of unread messages for the user\"),\n}).describe(\"Response model for creating a Sendbird group channel.\");\n\nexport const sendbirdCreateChannel = action(\"SENDBIRD_CREATE_CHANNEL\", {\n slug: \"sendbird-create-channel\",\n name: \"Create Group Channel\",\n description: \"Tool to create a new group channel. Use when you need to start a conversation with specific users. Execute after specifying users and optional settings.\",\n input: SendbirdCreateChannelInput,\n output: SendbirdCreateChannelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC3F,UAAU,EAAE,QAAQ,CA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AAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C;EACrF,kBAAkB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;EACxF,sBAAsB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC;CACzF,CAAC,CAAC,CAAC,SAAS,uDAOF;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-channel.mjs","names":[],"sources":["../../src/actions/create-channel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdCreateChannelInput = z.object({\n data: z.string().describe(\"Custom data for the channel\").optional(),\n name: z.string().describe(\"Name of the channel\").optional(),\n strict: z.boolean().describe(\"True for strict creation; fails if channel exists\").optional(),\n is_super: z.boolean().describe(\"True to create a supergroup channel\").optional(),\n user_ids: z.array(z.string()).describe(\"List of user IDs to invite to the channel (max 100)\").optional(),\n cover_url: z.string().describe(\"URL of the channel cover image\").optional(),\n is_public: z.boolean().describe(\"True to create a public channel\").optional(),\n cover_file: z.string().describe(\"Binary content of the cover image for multipart upload\").optional(),\n access_code: z.string().describe(\"Access code for private channels\").optional(),\n channel_url: z.string().describe(\"Custom URL of the channel; autogenerated if omitted\").optional(),\n custom_type: z.string().describe(\"Custom type identifier for the channel\").optional(),\n is_distinct: z.boolean().describe(\"True to create a distinct channel\").optional(),\n is_ephemeral: z.boolean().describe(\"True to create an ephemeral channel\").optional(),\n operator_ids: z.array(z.string()).describe(\"List of user IDs to assign as operators\").optional(),\n custom_fields: z.record(z.string(), z.unknown()).describe(\"Custom fields object\").optional(),\n is_discoverable: z.boolean().describe(\"True to list the channel in search results\").optional(),\n is_chat_notification: z.boolean().describe(\"True to send system notifications for channel events\").optional(),\n message_survival_seconds: z.number().int().describe(\"Message retention period in seconds\").optional(),\n}).describe(\"Request model for creating a new Sendbird group channel.\");\nconst SendbirdCreateChannel_MemberSchema = z.object({\n state: z.string().describe(\"Member state (joined, invited, etc.)\").nullable().optional(),\n has_pin: z.boolean().describe(\"Whether member has pinned the channel\").nullable().optional(),\n user_id: z.string().describe(\"Member user ID\").nullable(),\n nickname: z.string().describe(\"Member nickname\").nullable().optional(),\n profile_url: z.string().describe(\"Member profile image URL\").nullable().optional(),\n last_seen_at: z.number().int().describe(\"Timestamp when member was last active (ms)\").nullable().optional(),\n connection_id: z.number().int().describe(\"Member connection ID\").nullable().optional(),\n pin_timestamp: z.number().int().describe(\"Timestamp when channel was pinned (ms)\").nullable().optional(),\n}).passthrough();\nconst SendbirdCreateChannel_LastMessageSchema = z.object({\n data: z.string().describe(\"Data payload of the last message\").nullable().optional(),\n message: z.string().describe(\"Content of the last message if text-based\").nullable().optional(),\n created_at: z.number().int().describe(\"Timestamp when the last message was created (ms)\").nullable(),\n message_id: z.string().describe(\"ID of the last message\").nullable(),\n updated_at: z.number().int().describe(\"Timestamp when the last message was last updated (ms)\").nullable(),\n custom_type: z.string().describe(\"Custom type of the last message\").nullable().optional(),\n message_type: z.string().describe(\"Type of the last message (MESG, FILE, ADMM)\").nullable(),\n}).passthrough();\nexport const SendbirdCreateChannelOutput = z.object({\n data: z.string().describe(\"Custom data of the channel\").nullable().optional(),\n name: z.string().describe(\"Name of the channel\").nullable().optional(),\n freeze: z.boolean().describe(\"Whether the channel is frozen\").nullable(),\n members: z.array(SendbirdCreateChannel_MemberSchema).describe(\"List of channel members\"),\n is_super: z.boolean().describe(\"Whether the channel is a supergroup channel\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Channel metadata key-value pairs\").nullable().optional(),\n cover_url: z.string().describe(\"Cover image URL of the channel\").nullable().optional(),\n is_public: z.boolean().describe(\"Whether the channel is public\").nullable(),\n operators: z.array(SendbirdCreateChannel_MemberSchema).describe(\"List of channel operators\"),\n created_at: z.number().int().describe(\"Timestamp when the channel was created (ms)\").nullable(),\n channel_url: z.string().describe(\"Unique URL of the group channel\").nullable(),\n custom_type: z.string().describe(\"Custom type identifier of the channel\").nullable().optional(),\n is_distinct: z.boolean().describe(\"Whether the channel is distinct\").nullable(),\n is_broadcast: z.boolean().describe(\"Whether the channel is broadcast type\").nullable(),\n is_ephemeral: z.boolean().describe(\"Whether the channel is ephemeral\").nullable(),\n last_message: SendbirdCreateChannel_LastMessageSchema.nullable().optional(),\n member_count: z.number().int().describe(\"Number of members in the channel\").nullable(),\n read_receipt: z.record(z.string(), z.unknown()).describe(\"Read receipt per user mapping\").nullable().optional(),\n is_discoverable: z.boolean().describe(\"Whether the channel is discoverable in search\").nullable(),\n delivery_receipt: z.record(z.string(), z.unknown()).describe(\"Delivery receipt per user mapping\").nullable().optional(),\n joined_member_count: z.number().int().describe(\"Number of joined members in the channel\").nullable(),\n unread_message_count: z.number().int().describe(\"Count of unread messages for the user\").nullable(),\n}).passthrough().describe(\"Response model for creating a Sendbird group channel.\");\n\nexport const sendbirdCreateChannel = action(\"SENDBIRD_CREATE_CHANNEL\", {\n slug: \"sendbird-create-channel\",\n name: \"Create Group Channel\",\n description: \"Tool to create a new group channel. Use when you need to start a conversation with specific users. Execute after specifying users and optional settings.\",\n input: SendbirdCreateChannelInput,\n output: SendbirdCreateChannelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC3F,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAA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,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EACrF,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAChF,cAAc,wCAAwC,SAAS,CAAC,CAAC,SAAS;EAC1E,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EACrF,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAChG,kBAAkB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtH,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EACnG,sBAAsB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAOhB;AACV,CAAC"}
|
|
@@ -3,7 +3,7 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/create-user.ts
|
|
4
4
|
const SendbirdCreateUserInput = zod.z.object({
|
|
5
5
|
user_id: zod.z.string().describe("Unique identifier for the new user. Must be unique across the application. Can contain alphanumeric characters, underscores, and hyphens."),
|
|
6
|
-
metadata: zod.z.
|
|
6
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom key-value pairs to store additional user data. Keys and values must be strings.").optional(),
|
|
7
7
|
nickname: zod.z.string().describe("Display name shown to other users in channels. If not provided, may default to user_id.").optional(),
|
|
8
8
|
is_active: zod.z.boolean().default(true).describe("If true, the user is active and can send/receive messages. Inactive users cannot participate in channels.").optional(),
|
|
9
9
|
profile_url: zod.z.string().describe("URL of the user's profile image. Must be a valid HTTP/HTTPS URL.").optional(),
|
|
@@ -15,10 +15,10 @@ const SendbirdCreateUserInput = zod.z.object({
|
|
|
15
15
|
preferred_languages: zod.z.array(zod.z.string()).describe("List of ISO 639-1 language codes indicating user's preferred languages for push notifications.").optional()
|
|
16
16
|
}).describe("Request model for creating a new Sendbird user.");
|
|
17
17
|
const SendbirdCreateUserOutput = zod.z.object({
|
|
18
|
-
user_id: zod.z.string().describe("The unique identifier of the created user"),
|
|
19
|
-
metadata: zod.z.
|
|
18
|
+
user_id: zod.z.string().describe("The unique identifier of the created user").nullable(),
|
|
19
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom key-value pairs stored with the user").nullable().optional(),
|
|
20
20
|
nickname: zod.z.string().describe("The display name of the user").nullable().optional(),
|
|
21
|
-
is_active: zod.z.boolean().describe("Whether the user is currently active in the system"),
|
|
21
|
+
is_active: zod.z.boolean().describe("Whether the user is currently active in the system").nullable(),
|
|
22
22
|
created_at: zod.z.number().int().describe("Unix timestamp (in milliseconds) when the user was created").nullable().optional(),
|
|
23
23
|
profile_url: zod.z.string().describe("URL of the user's profile image").nullable().optional(),
|
|
24
24
|
access_token: zod.z.string().describe("Access token for client-side authentication. Only returned if issue_access_token was set to true.").nullable().optional(),
|
|
@@ -27,7 +27,7 @@ const SendbirdCreateUserOutput = zod.z.object({
|
|
|
27
27
|
discovery_keys: zod.z.array(zod.z.string()).describe("List of discovery keys associated with the user").nullable().optional(),
|
|
28
28
|
has_ever_logged_in: zod.z.boolean().describe("Whether the user has ever logged in to the application").nullable().optional(),
|
|
29
29
|
preferred_languages: zod.z.array(zod.z.string()).describe("User's preferred language codes for push notifications").nullable().optional()
|
|
30
|
-
}).describe("Response model after successfully creating a new Sendbird user.");
|
|
30
|
+
}).passthrough().describe("Response model after successfully creating a new Sendbird user.");
|
|
31
31
|
const sendbirdCreateUser = require_action.action("SENDBIRD_CREATE_USER", {
|
|
32
32
|
slug: "sendbird-create-user",
|
|
33
33
|
name: "Create Sendbird User",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-user.cjs","names":["z","action"],"sources":["../../src/actions/create-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdCreateUserInput
|
|
1
|
+
{"version":3,"file":"create-user.cjs","names":["z","action"],"sources":["../../src/actions/create-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdCreateUserInput = z.object({\n user_id: z.string().describe(\"Unique identifier for the new user. Must be unique across the application. Can contain alphanumeric characters, underscores, and hyphens.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs to store additional user data. Keys and values must be strings.\").optional(),\n nickname: z.string().describe(\"Display name shown to other users in channels. If not provided, may default to user_id.\").optional(),\n is_active: z.boolean().default(true).describe(\"If true, the user is active and can send/receive messages. Inactive users cannot participate in channels.\").optional(),\n profile_url: z.string().describe(\"URL of the user's profile image. Must be a valid HTTP/HTTPS URL.\").optional(),\n phone_number: z.string().describe(\"User's phone number in E.164 format (e.g., +15551234567). Used for user discovery if enabled.\").optional(),\n profile_file: z.string().describe(\"Binary content of the user's profile image for multipart upload. Use this instead of profile_url when uploading an image file directly.\").optional(),\n discovery_keys: z.array(z.string()).describe(\"List of unique keys used to find this user through the discovery feature (e.g., email addresses, phone numbers).\").optional(),\n has_ever_logged_in: z.boolean().default(false).describe(\"Internal flag indicating if the user has ever logged in. Typically managed by the system.\").optional(),\n issue_access_token: z.boolean().default(false).describe(\"If true, generates and returns an access token for the user that can be used for client-side authentication.\").optional(),\n preferred_languages: z.array(z.string()).describe(\"List of ISO 639-1 language codes indicating user's preferred languages for push notifications.\").optional(),\n}).describe(\"Request model for creating a new Sendbird user.\");\nexport const SendbirdCreateUserOutput = z.object({\n user_id: z.string().describe(\"The unique identifier of the created user\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs stored with the user\").nullable().optional(),\n nickname: z.string().describe(\"The display name of the user\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the user is currently active in the system\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp (in milliseconds) when the user was created\").nullable().optional(),\n profile_url: z.string().describe(\"URL of the user's profile image\").nullable().optional(),\n access_token: z.string().describe(\"Access token for client-side authentication. Only returned if issue_access_token was set to true.\").nullable().optional(),\n last_seen_at: z.number().int().describe(\"Unix timestamp (in milliseconds) of the user's last activity. May be 0 for newly created users.\").nullable().optional(),\n phone_number: z.string().describe(\"User's phone number in E.164 format\").nullable().optional(),\n discovery_keys: z.array(z.string()).describe(\"List of discovery keys associated with the user\").nullable().optional(),\n has_ever_logged_in: z.boolean().describe(\"Whether the user has ever logged in to the application\").nullable().optional(),\n preferred_languages: z.array(z.string()).describe(\"User's preferred language codes for push notifications\").nullable().optional(),\n}).passthrough().describe(\"Response model after successfully creating a new Sendbird user.\");\n\nexport const sendbirdCreateUser = action(\"SENDBIRD_CREATE_USER\", {\n slug: \"sendbird-create-user\",\n name: \"Create Sendbird User\",\n description: \"Creates a new user in Sendbird. Use this to register user accounts before they can join channels or send messages. The user_id must be unique across the application.\",\n input: SendbirdCreateUserInput,\n output: SendbirdCreateUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I;CACxK,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACxJ,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CAClI,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,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AAC,IAAI,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3J,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/J,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,qBAAqBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAAiE;AAE3F,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,46 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-user.d.ts
|
|
4
|
-
declare const SendbirdCreateUserInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SendbirdCreateUserInput: z.ZodObject<{
|
|
5
|
+
user_id: z.ZodString;
|
|
6
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7
|
+
nickname: z.ZodOptional<z.ZodString>;
|
|
8
|
+
is_active: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
9
|
+
profile_url: z.ZodOptional<z.ZodString>;
|
|
10
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
11
|
+
profile_file: z.ZodOptional<z.ZodString>;
|
|
12
|
+
discovery_keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
13
|
+
has_ever_logged_in: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
14
|
+
issue_access_token: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
15
|
+
preferred_languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
declare const SendbirdCreateUserOutput: z.ZodObject<{
|
|
18
|
+
user_id: z.ZodNullable<z.ZodString>;
|
|
19
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
20
|
+
nickname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
is_active: z.ZodNullable<z.ZodBoolean>;
|
|
22
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
profile_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
access_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
last_seen_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
+
phone_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
discovery_keys: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
28
|
+
has_ever_logged_in: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
29
|
+
preferred_languages: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
30
|
+
}, z.core.$loose>;
|
|
31
|
+
declare const sendbirdCreateUser: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
32
|
+
user_id: string;
|
|
33
|
+
metadata?: Record<string, unknown> | undefined;
|
|
34
|
+
nickname?: string | undefined;
|
|
35
|
+
is_active?: boolean | undefined;
|
|
36
|
+
profile_url?: string | undefined;
|
|
37
|
+
phone_number?: string | undefined;
|
|
38
|
+
profile_file?: string | undefined;
|
|
39
|
+
discovery_keys?: string[] | undefined;
|
|
40
|
+
has_ever_logged_in?: boolean | undefined;
|
|
41
|
+
issue_access_token?: boolean | undefined;
|
|
42
|
+
preferred_languages?: string[] | undefined;
|
|
43
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
44
|
//#endregion
|
|
8
45
|
export { sendbirdCreateUser };
|
|
9
46
|
//# sourceMappingURL=create-user.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-user.d.cts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"create-user.d.cts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAavB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAexB,kBAAA,gCAAkB,wBAAA;;aAM7B,MAAA"}
|
|
@@ -1,9 +1,46 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-user.d.ts
|
|
4
|
-
declare const SendbirdCreateUserInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SendbirdCreateUserInput: z.ZodObject<{
|
|
5
|
+
user_id: z.ZodString;
|
|
6
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7
|
+
nickname: z.ZodOptional<z.ZodString>;
|
|
8
|
+
is_active: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
9
|
+
profile_url: z.ZodOptional<z.ZodString>;
|
|
10
|
+
phone_number: z.ZodOptional<z.ZodString>;
|
|
11
|
+
profile_file: z.ZodOptional<z.ZodString>;
|
|
12
|
+
discovery_keys: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
13
|
+
has_ever_logged_in: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
14
|
+
issue_access_token: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
15
|
+
preferred_languages: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
declare const SendbirdCreateUserOutput: z.ZodObject<{
|
|
18
|
+
user_id: z.ZodNullable<z.ZodString>;
|
|
19
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
20
|
+
nickname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
is_active: z.ZodNullable<z.ZodBoolean>;
|
|
22
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
profile_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
access_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
last_seen_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
+
phone_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
discovery_keys: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
28
|
+
has_ever_logged_in: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
29
|
+
preferred_languages: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
30
|
+
}, z.core.$loose>;
|
|
31
|
+
declare const sendbirdCreateUser: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
32
|
+
user_id: string;
|
|
33
|
+
metadata?: Record<string, unknown> | undefined;
|
|
34
|
+
nickname?: string | undefined;
|
|
35
|
+
is_active?: boolean | undefined;
|
|
36
|
+
profile_url?: string | undefined;
|
|
37
|
+
phone_number?: string | undefined;
|
|
38
|
+
profile_file?: string | undefined;
|
|
39
|
+
discovery_keys?: string[] | undefined;
|
|
40
|
+
has_ever_logged_in?: boolean | undefined;
|
|
41
|
+
issue_access_token?: boolean | undefined;
|
|
42
|
+
preferred_languages?: string[] | undefined;
|
|
43
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
44
|
//#endregion
|
|
8
45
|
export { sendbirdCreateUser };
|
|
9
46
|
//# sourceMappingURL=create-user.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-user.d.mts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"create-user.d.mts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAavB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAexB,kBAAA,gCAAkB,wBAAA;;aAM7B,MAAA"}
|
|
@@ -6,7 +6,7 @@ const sendbirdCreateUser = action("SENDBIRD_CREATE_USER", {
|
|
|
6
6
|
description: "Creates a new user in Sendbird. Use this to register user accounts before they can join channels or send messages. The user_id must be unique across the application.",
|
|
7
7
|
input: z.object({
|
|
8
8
|
user_id: z.string().describe("Unique identifier for the new user. Must be unique across the application. Can contain alphanumeric characters, underscores, and hyphens."),
|
|
9
|
-
metadata: z.
|
|
9
|
+
metadata: z.record(z.string(), z.unknown()).describe("Custom key-value pairs to store additional user data. Keys and values must be strings.").optional(),
|
|
10
10
|
nickname: z.string().describe("Display name shown to other users in channels. If not provided, may default to user_id.").optional(),
|
|
11
11
|
is_active: z.boolean().default(true).describe("If true, the user is active and can send/receive messages. Inactive users cannot participate in channels.").optional(),
|
|
12
12
|
profile_url: z.string().describe("URL of the user's profile image. Must be a valid HTTP/HTTPS URL.").optional(),
|
|
@@ -18,10 +18,10 @@ const sendbirdCreateUser = action("SENDBIRD_CREATE_USER", {
|
|
|
18
18
|
preferred_languages: z.array(z.string()).describe("List of ISO 639-1 language codes indicating user's preferred languages for push notifications.").optional()
|
|
19
19
|
}).describe("Request model for creating a new Sendbird user."),
|
|
20
20
|
output: z.object({
|
|
21
|
-
user_id: z.string().describe("The unique identifier of the created user"),
|
|
22
|
-
metadata: z.
|
|
21
|
+
user_id: z.string().describe("The unique identifier of the created user").nullable(),
|
|
22
|
+
metadata: z.record(z.string(), z.unknown()).describe("Custom key-value pairs stored with the user").nullable().optional(),
|
|
23
23
|
nickname: z.string().describe("The display name of the user").nullable().optional(),
|
|
24
|
-
is_active: z.boolean().describe("Whether the user is currently active in the system"),
|
|
24
|
+
is_active: z.boolean().describe("Whether the user is currently active in the system").nullable(),
|
|
25
25
|
created_at: z.number().int().describe("Unix timestamp (in milliseconds) when the user was created").nullable().optional(),
|
|
26
26
|
profile_url: z.string().describe("URL of the user's profile image").nullable().optional(),
|
|
27
27
|
access_token: z.string().describe("Access token for client-side authentication. Only returned if issue_access_token was set to true.").nullable().optional(),
|
|
@@ -30,7 +30,7 @@ const sendbirdCreateUser = action("SENDBIRD_CREATE_USER", {
|
|
|
30
30
|
discovery_keys: z.array(z.string()).describe("List of discovery keys associated with the user").nullable().optional(),
|
|
31
31
|
has_ever_logged_in: z.boolean().describe("Whether the user has ever logged in to the application").nullable().optional(),
|
|
32
32
|
preferred_languages: z.array(z.string()).describe("User's preferred language codes for push notifications").nullable().optional()
|
|
33
|
-
}).describe("Response model after successfully creating a new Sendbird user.")
|
|
33
|
+
}).passthrough().describe("Response model after successfully creating a new Sendbird user.")
|
|
34
34
|
});
|
|
35
35
|
//#endregion
|
|
36
36
|
export { sendbirdCreateUser };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-user.mjs","names":[],"sources":["../../src/actions/create-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdCreateUserInput
|
|
1
|
+
{"version":3,"file":"create-user.mjs","names":[],"sources":["../../src/actions/create-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdCreateUserInput = z.object({\n user_id: z.string().describe(\"Unique identifier for the new user. Must be unique across the application. Can contain alphanumeric characters, underscores, and hyphens.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs to store additional user data. Keys and values must be strings.\").optional(),\n nickname: z.string().describe(\"Display name shown to other users in channels. If not provided, may default to user_id.\").optional(),\n is_active: z.boolean().default(true).describe(\"If true, the user is active and can send/receive messages. Inactive users cannot participate in channels.\").optional(),\n profile_url: z.string().describe(\"URL of the user's profile image. Must be a valid HTTP/HTTPS URL.\").optional(),\n phone_number: z.string().describe(\"User's phone number in E.164 format (e.g., +15551234567). Used for user discovery if enabled.\").optional(),\n profile_file: z.string().describe(\"Binary content of the user's profile image for multipart upload. Use this instead of profile_url when uploading an image file directly.\").optional(),\n discovery_keys: z.array(z.string()).describe(\"List of unique keys used to find this user through the discovery feature (e.g., email addresses, phone numbers).\").optional(),\n has_ever_logged_in: z.boolean().default(false).describe(\"Internal flag indicating if the user has ever logged in. Typically managed by the system.\").optional(),\n issue_access_token: z.boolean().default(false).describe(\"If true, generates and returns an access token for the user that can be used for client-side authentication.\").optional(),\n preferred_languages: z.array(z.string()).describe(\"List of ISO 639-1 language codes indicating user's preferred languages for push notifications.\").optional(),\n}).describe(\"Request model for creating a new Sendbird user.\");\nexport const SendbirdCreateUserOutput = z.object({\n user_id: z.string().describe(\"The unique identifier of the created user\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs stored with the user\").nullable().optional(),\n nickname: z.string().describe(\"The display name of the user\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the user is currently active in the system\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp (in milliseconds) when the user was created\").nullable().optional(),\n profile_url: z.string().describe(\"URL of the user's profile image\").nullable().optional(),\n access_token: z.string().describe(\"Access token for client-side authentication. Only returned if issue_access_token was set to true.\").nullable().optional(),\n last_seen_at: z.number().int().describe(\"Unix timestamp (in milliseconds) of the user's last activity. May be 0 for newly created users.\").nullable().optional(),\n phone_number: z.string().describe(\"User's phone number in E.164 format\").nullable().optional(),\n discovery_keys: z.array(z.string()).describe(\"List of discovery keys associated with the user\").nullable().optional(),\n has_ever_logged_in: z.boolean().describe(\"Whether the user has ever logged in to the application\").nullable().optional(),\n preferred_languages: z.array(z.string()).describe(\"User's preferred language codes for push notifications\").nullable().optional(),\n}).passthrough().describe(\"Response model after successfully creating a new Sendbird user.\");\n\nexport const sendbirdCreateUser = action(\"SENDBIRD_CREATE_USER\", {\n slug: \"sendbird-create-user\",\n name: \"Create Sendbird User\",\n description: \"Creates a new user in Sendbird. Use this to register user accounts before they can join channels or send messages. The user_id must be unique across the application.\",\n input: SendbirdCreateUserInput,\n output: SendbirdCreateUserOutput,\n});\n"],"mappings":";;AAgCA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhCqC,EAAE,OAAO;EAC9C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I;EACxK,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;EACxJ,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;EAClI,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;EACpK,aAAa,EAAE,OAAO,CAAC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AC,CAAC,SAAS;EAC3J,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/J,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpH,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,qBAAqB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAOhB;AACV,CAAC"}
|
|
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/delete-channel.ts
|
|
4
4
|
const SendbirdDeleteChannelInput = zod.z.object({ channel_url: zod.z.string().describe("The unique URL identifier of the group channel to delete. This is the channel's unique ID, typically in format like 'sendbird_group_channel_123456' or a custom URL set during channel creation.") }).describe("Request model for deleting a Sendbird group channel.");
|
|
5
|
-
const SendbirdDeleteChannelOutput = zod.z.object({ success: zod.z.boolean().describe("True if the channel was successfully deleted. The deletion is permanent and cannot be undone.") }).describe("Response model for deletion of a group channel.");
|
|
5
|
+
const SendbirdDeleteChannelOutput = zod.z.object({ success: zod.z.boolean().describe("True if the channel was successfully deleted. The deletion is permanent and cannot be undone.").nullable() }).passthrough().describe("Response model for deletion of a group channel.");
|
|
6
6
|
const sendbirdDeleteChannel = require_action.action("SENDBIRD_DELETE_CHANNEL", {
|
|
7
7
|
slug: "sendbird-delete-channel",
|
|
8
8
|
name: "Delete Group Channel",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-channel.cjs","names":["z","action"],"sources":["../../src/actions/delete-channel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdDeleteChannelInput
|
|
1
|
+
{"version":3,"file":"delete-channel.cjs","names":["z","action"],"sources":["../../src/actions/delete-channel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdDeleteChannelInput = z.object({\n channel_url: z.string().describe(\"The unique URL identifier of the group channel to delete. This is the channel's unique ID, typically in format like 'sendbird_group_channel_123456' or a custom URL set during channel creation.\"),\n}).describe(\"Request model for deleting a Sendbird group channel.\");\nexport const SendbirdDeleteChannelOutput = z.object({\n success: z.boolean().describe(\"True if the channel was successfully deleted. The deletion is permanent and cannot be undone.\").nullable(),\n}).passthrough().describe(\"Response model for deletion of a group channel.\");\n\nexport const sendbirdDeleteChannel = action(\"SENDBIRD_DELETE_CHANNEL\", {\n slug: \"sendbird-delete-channel\",\n name: \"Delete Group Channel\",\n description: \"Permanently deletes a Sendbird group channel. Use this tool when you need to remove a group channel and all its associated data (messages, members, etc.). WARNING: This action is irreversible. Requires the channel_url identifier of the channel to delete.\",\n input: SendbirdDeleteChannelInput,\n output: SendbirdDeleteChannelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kMAAkM,EACrO,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS,EAC1I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|