@doist/twist-sdk 2.6.0 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/types/entities.js +33 -7
- package/dist/cjs/types/requests.js +3 -2
- package/dist/esm/types/entities.js +32 -6
- package/dist/esm/types/requests.js +3 -2
- package/dist/types/clients/comments-client.d.ts +1 -2
- package/dist/types/clients/conversation-messages-client.d.ts +2 -2
- package/dist/types/clients/threads-client.d.ts +2 -4
- package/dist/types/types/entities.d.ts +450 -24
- package/dist/types/types/requests.d.ts +39 -4
- package/package.json +1 -1
|
@@ -11,12 +11,38 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.SearchResultSchema = exports.SEARCH_RESULT_TYPES = exports.UnreadConversationSchema = exports.UnreadThreadSchema = exports.InboxThreadSchema = exports.ConversationMessageSchema = exports.WorkspaceUserSchema = exports.CommentSchema = exports.ConversationSchema = exports.GroupSchema = exports.ThreadSchema = exports.ChannelSchema = exports.WorkspaceSchema = exports.UserSchema = exports.BaseUserSchema = exports.SystemMessageSchema = void 0;
|
|
14
|
+
exports.SearchResultSchema = exports.SEARCH_RESULT_TYPES = exports.UnreadConversationSchema = exports.UnreadThreadSchema = exports.InboxThreadSchema = exports.ConversationMessageSchema = exports.WorkspaceUserSchema = exports.CommentSchema = exports.ConversationSchema = exports.GroupSchema = exports.ThreadSchema = exports.ChannelSchema = exports.WorkspaceSchema = exports.UserSchema = exports.BaseUserSchema = exports.AttachmentSchema = exports.SystemMessageSchema = void 0;
|
|
15
15
|
var zod_1 = require("zod");
|
|
16
16
|
var url_helpers_1 = require("../utils/url-helpers");
|
|
17
17
|
var enums_1 = require("./enums");
|
|
18
18
|
// Reusable schema for system messages that can be either a string or an object
|
|
19
19
|
exports.SystemMessageSchema = zod_1.z.union([zod_1.z.string(), zod_1.z.unknown()]).nullable().optional();
|
|
20
|
+
// Attachment entity from API. Mirrors the canonical backend shape produced by
|
|
21
|
+
// `unify_attachments` / `validate_file_attachment_json` in the Twist backend.
|
|
22
|
+
// Only `attachmentId` and `urlType` are guaranteed; everything else depends on
|
|
23
|
+
// the attachment kind (file vs image vs link preview vs unfurled GIF).
|
|
24
|
+
// Loose: unknown keys from the backend pass through rather than being stripped,
|
|
25
|
+
// so newly-added or off-spec fields stay accessible to callers.
|
|
26
|
+
exports.AttachmentSchema = zod_1.z
|
|
27
|
+
.object({
|
|
28
|
+
attachmentId: zod_1.z.string(),
|
|
29
|
+
urlType: zod_1.z.string(),
|
|
30
|
+
title: zod_1.z.string().nullable().optional(),
|
|
31
|
+
url: zod_1.z.string().nullable().optional(),
|
|
32
|
+
fileName: zod_1.z.string().nullable().optional(),
|
|
33
|
+
fileSize: zod_1.z.number().int().nonnegative().nullable().optional(),
|
|
34
|
+
underlyingType: zod_1.z.string().nullable().optional(),
|
|
35
|
+
description: zod_1.z.string().nullable().optional(),
|
|
36
|
+
image: zod_1.z.string().nullable().optional(),
|
|
37
|
+
imageWidth: zod_1.z.number().int().nonnegative().nullable().optional(),
|
|
38
|
+
imageHeight: zod_1.z.number().int().nonnegative().nullable().optional(),
|
|
39
|
+
duration: zod_1.z.string().nullable().optional(),
|
|
40
|
+
uploadState: zod_1.z.string().nullable().optional(),
|
|
41
|
+
video: zod_1.z.string().nullable().optional(),
|
|
42
|
+
videoType: zod_1.z.string().nullable().optional(),
|
|
43
|
+
videoAutoPlay: zod_1.z.boolean().nullable().optional(),
|
|
44
|
+
})
|
|
45
|
+
.loose();
|
|
20
46
|
// Base user schema with common fields shared between User and WorkspaceUser
|
|
21
47
|
exports.BaseUserSchema = zod_1.z.object({
|
|
22
48
|
id: zod_1.z.number(),
|
|
@@ -118,7 +144,7 @@ exports.ThreadSchema = zod_1.z
|
|
|
118
144
|
channelId: zod_1.z.number(),
|
|
119
145
|
workspaceId: zod_1.z.number(),
|
|
120
146
|
actions: zod_1.z.array(zod_1.z.unknown()).nullable().optional(),
|
|
121
|
-
attachments: zod_1.z.array(
|
|
147
|
+
attachments: zod_1.z.array(exports.AttachmentSchema).nullable().optional(),
|
|
122
148
|
commentCount: zod_1.z.number(),
|
|
123
149
|
closed: zod_1.z.boolean().nullable().optional(),
|
|
124
150
|
directGroupMentions: zod_1.z.array(zod_1.z.number()).nullable().optional(),
|
|
@@ -155,7 +181,7 @@ exports.ThreadSchema = zod_1.z
|
|
|
155
181
|
channelId: zod_1.z.number(),
|
|
156
182
|
posted: zod_1.z.date(),
|
|
157
183
|
systemMessage: exports.SystemMessageSchema,
|
|
158
|
-
attachments: zod_1.z.array(
|
|
184
|
+
attachments: zod_1.z.array(exports.AttachmentSchema).nullable().optional(),
|
|
159
185
|
reactions: zod_1.z.record(zod_1.z.string(), zod_1.z.array(zod_1.z.number())).nullable().optional(),
|
|
160
186
|
actions: zod_1.z.array(zod_1.z.unknown()).nullable().optional(),
|
|
161
187
|
objIndex: zod_1.z.number(),
|
|
@@ -212,7 +238,7 @@ exports.ConversationSchema = zod_1.z
|
|
|
212
238
|
conversationId: zod_1.z.number(),
|
|
213
239
|
posted: zod_1.z.date(),
|
|
214
240
|
systemMessage: exports.SystemMessageSchema,
|
|
215
|
-
attachments: zod_1.z.array(
|
|
241
|
+
attachments: zod_1.z.array(exports.AttachmentSchema).nullable().optional(),
|
|
216
242
|
reactions: zod_1.z.record(zod_1.z.string(), zod_1.z.array(zod_1.z.number())).nullable().optional(),
|
|
217
243
|
actions: zod_1.z.array(zod_1.z.unknown()).nullable().optional(),
|
|
218
244
|
objIndex: zod_1.z.number().nullable().optional(),
|
|
@@ -241,7 +267,7 @@ exports.CommentSchema = zod_1.z
|
|
|
241
267
|
directMentions: zod_1.z.array(zod_1.z.number()).nullable().optional(),
|
|
242
268
|
directGroupMentions: zod_1.z.array(zod_1.z.number()).nullable().optional(),
|
|
243
269
|
systemMessage: exports.SystemMessageSchema,
|
|
244
|
-
attachments: zod_1.z.array(
|
|
270
|
+
attachments: zod_1.z.array(exports.AttachmentSchema).nullable().optional(),
|
|
245
271
|
reactions: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).nullable().optional(),
|
|
246
272
|
objIndex: zod_1.z.number().nullable().optional(),
|
|
247
273
|
// Extended fields that may appear in some API responses (like inbox)
|
|
@@ -280,7 +306,7 @@ exports.ConversationMessageSchema = zod_1.z
|
|
|
280
306
|
conversationId: zod_1.z.number(),
|
|
281
307
|
posted: zod_1.z.date(),
|
|
282
308
|
systemMessage: exports.SystemMessageSchema,
|
|
283
|
-
attachments: zod_1.z.array(
|
|
309
|
+
attachments: zod_1.z.array(exports.AttachmentSchema).nullable().optional(),
|
|
284
310
|
reactions: zod_1.z.record(zod_1.z.string(), zod_1.z.array(zod_1.z.number())).nullable().optional(),
|
|
285
311
|
actions: zod_1.z.array(zod_1.z.unknown()).nullable().optional(),
|
|
286
312
|
objIndex: zod_1.z.number().nullable().optional(),
|
|
@@ -307,7 +333,7 @@ exports.InboxThreadSchema = zod_1.z
|
|
|
307
333
|
channelId: zod_1.z.number(),
|
|
308
334
|
workspaceId: zod_1.z.number(),
|
|
309
335
|
actions: zod_1.z.array(zod_1.z.unknown()).nullable().optional(),
|
|
310
|
-
attachments: zod_1.z.array(
|
|
336
|
+
attachments: zod_1.z.array(exports.AttachmentSchema).nullable().optional(),
|
|
311
337
|
commentCount: zod_1.z.number(),
|
|
312
338
|
directGroupMentions: zod_1.z.array(zod_1.z.number()).nullable().optional(),
|
|
313
339
|
directMentions: zod_1.z.array(zod_1.z.number()).nullable().optional(),
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.THREAD_ACTIONS = exports.ARCHIVE_FILTER_VALUES = exports.AWAY_MODE_TYPES = exports.GetOrCreateConversationArgsSchema = exports.GetConversationsArgsSchema = exports.GetCommentsArgsSchema = exports.GetThreadsArgsSchema = exports.GetChannelsArgsSchema = exports.CreateMessageArgsSchema = exports.CreateConversationArgsSchema = exports.UpdateCommentArgsSchema = exports.CreateCommentArgsSchema = exports.UpdateThreadArgsSchema = exports.CreateThreadArgsSchema = exports.UpdateChannelArgsSchema = exports.CreateChannelArgsSchema = void 0;
|
|
4
4
|
var zod_1 = require("zod");
|
|
5
|
+
var entities_1 = require("./entities");
|
|
5
6
|
var enums_1 = require("./enums");
|
|
6
7
|
exports.CreateChannelArgsSchema = zod_1.z.object({
|
|
7
8
|
workspaceId: zod_1.z.number(),
|
|
@@ -44,7 +45,7 @@ exports.CreateCommentArgsSchema = zod_1.z.object({
|
|
|
44
45
|
threadId: zod_1.z.number(),
|
|
45
46
|
content: zod_1.z.string(),
|
|
46
47
|
tempId: zod_1.z.number().nullable().optional(),
|
|
47
|
-
attachments: zod_1.z.
|
|
48
|
+
attachments: zod_1.z.array(entities_1.AttachmentSchema).nullable().optional(),
|
|
48
49
|
actions: zod_1.z.unknown().nullable().optional(),
|
|
49
50
|
recipients: zod_1.z.array(zod_1.z.number()).nullable().optional(),
|
|
50
51
|
groups: zod_1.z.array(zod_1.z.number()).nullable().optional(),
|
|
@@ -65,7 +66,7 @@ exports.CreateMessageArgsSchema = zod_1.z
|
|
|
65
66
|
conversationId: zod_1.z.number().nullable().optional(),
|
|
66
67
|
threadId: zod_1.z.number().nullable().optional(),
|
|
67
68
|
content: zod_1.z.string(),
|
|
68
|
-
attachments: zod_1.z.array(
|
|
69
|
+
attachments: zod_1.z.array(entities_1.AttachmentSchema).nullable().optional(),
|
|
69
70
|
})
|
|
70
71
|
.refine(function (data) {
|
|
71
72
|
return ((data.conversationId && !data.threadId) || (!data.conversationId && data.threadId));
|
|
@@ -14,6 +14,32 @@ import { getFullTwistURL } from '../utils/url-helpers.js';
|
|
|
14
14
|
import { USER_TYPES, WORKSPACE_PLANS } from './enums.js';
|
|
15
15
|
// Reusable schema for system messages that can be either a string or an object
|
|
16
16
|
export var SystemMessageSchema = z.union([z.string(), z.unknown()]).nullable().optional();
|
|
17
|
+
// Attachment entity from API. Mirrors the canonical backend shape produced by
|
|
18
|
+
// `unify_attachments` / `validate_file_attachment_json` in the Twist backend.
|
|
19
|
+
// Only `attachmentId` and `urlType` are guaranteed; everything else depends on
|
|
20
|
+
// the attachment kind (file vs image vs link preview vs unfurled GIF).
|
|
21
|
+
// Loose: unknown keys from the backend pass through rather than being stripped,
|
|
22
|
+
// so newly-added or off-spec fields stay accessible to callers.
|
|
23
|
+
export var AttachmentSchema = z
|
|
24
|
+
.object({
|
|
25
|
+
attachmentId: z.string(),
|
|
26
|
+
urlType: z.string(),
|
|
27
|
+
title: z.string().nullable().optional(),
|
|
28
|
+
url: z.string().nullable().optional(),
|
|
29
|
+
fileName: z.string().nullable().optional(),
|
|
30
|
+
fileSize: z.number().int().nonnegative().nullable().optional(),
|
|
31
|
+
underlyingType: z.string().nullable().optional(),
|
|
32
|
+
description: z.string().nullable().optional(),
|
|
33
|
+
image: z.string().nullable().optional(),
|
|
34
|
+
imageWidth: z.number().int().nonnegative().nullable().optional(),
|
|
35
|
+
imageHeight: z.number().int().nonnegative().nullable().optional(),
|
|
36
|
+
duration: z.string().nullable().optional(),
|
|
37
|
+
uploadState: z.string().nullable().optional(),
|
|
38
|
+
video: z.string().nullable().optional(),
|
|
39
|
+
videoType: z.string().nullable().optional(),
|
|
40
|
+
videoAutoPlay: z.boolean().nullable().optional(),
|
|
41
|
+
})
|
|
42
|
+
.loose();
|
|
17
43
|
// Base user schema with common fields shared between User and WorkspaceUser
|
|
18
44
|
export var BaseUserSchema = z.object({
|
|
19
45
|
id: z.number(),
|
|
@@ -115,7 +141,7 @@ export var ThreadSchema = z
|
|
|
115
141
|
channelId: z.number(),
|
|
116
142
|
workspaceId: z.number(),
|
|
117
143
|
actions: z.array(z.unknown()).nullable().optional(),
|
|
118
|
-
attachments: z.array(
|
|
144
|
+
attachments: z.array(AttachmentSchema).nullable().optional(),
|
|
119
145
|
commentCount: z.number(),
|
|
120
146
|
closed: z.boolean().nullable().optional(),
|
|
121
147
|
directGroupMentions: z.array(z.number()).nullable().optional(),
|
|
@@ -152,7 +178,7 @@ export var ThreadSchema = z
|
|
|
152
178
|
channelId: z.number(),
|
|
153
179
|
posted: z.date(),
|
|
154
180
|
systemMessage: SystemMessageSchema,
|
|
155
|
-
attachments: z.array(
|
|
181
|
+
attachments: z.array(AttachmentSchema).nullable().optional(),
|
|
156
182
|
reactions: z.record(z.string(), z.array(z.number())).nullable().optional(),
|
|
157
183
|
actions: z.array(z.unknown()).nullable().optional(),
|
|
158
184
|
objIndex: z.number(),
|
|
@@ -209,7 +235,7 @@ export var ConversationSchema = z
|
|
|
209
235
|
conversationId: z.number(),
|
|
210
236
|
posted: z.date(),
|
|
211
237
|
systemMessage: SystemMessageSchema,
|
|
212
|
-
attachments: z.array(
|
|
238
|
+
attachments: z.array(AttachmentSchema).nullable().optional(),
|
|
213
239
|
reactions: z.record(z.string(), z.array(z.number())).nullable().optional(),
|
|
214
240
|
actions: z.array(z.unknown()).nullable().optional(),
|
|
215
241
|
objIndex: z.number().nullable().optional(),
|
|
@@ -238,7 +264,7 @@ export var CommentSchema = z
|
|
|
238
264
|
directMentions: z.array(z.number()).nullable().optional(),
|
|
239
265
|
directGroupMentions: z.array(z.number()).nullable().optional(),
|
|
240
266
|
systemMessage: SystemMessageSchema,
|
|
241
|
-
attachments: z.array(
|
|
267
|
+
attachments: z.array(AttachmentSchema).nullable().optional(),
|
|
242
268
|
reactions: z.record(z.string(), z.unknown()).nullable().optional(),
|
|
243
269
|
objIndex: z.number().nullable().optional(),
|
|
244
270
|
// Extended fields that may appear in some API responses (like inbox)
|
|
@@ -277,7 +303,7 @@ export var ConversationMessageSchema = z
|
|
|
277
303
|
conversationId: z.number(),
|
|
278
304
|
posted: z.date(),
|
|
279
305
|
systemMessage: SystemMessageSchema,
|
|
280
|
-
attachments: z.array(
|
|
306
|
+
attachments: z.array(AttachmentSchema).nullable().optional(),
|
|
281
307
|
reactions: z.record(z.string(), z.array(z.number())).nullable().optional(),
|
|
282
308
|
actions: z.array(z.unknown()).nullable().optional(),
|
|
283
309
|
objIndex: z.number().nullable().optional(),
|
|
@@ -304,7 +330,7 @@ export var InboxThreadSchema = z
|
|
|
304
330
|
channelId: z.number(),
|
|
305
331
|
workspaceId: z.number(),
|
|
306
332
|
actions: z.array(z.unknown()).nullable().optional(),
|
|
307
|
-
attachments: z.array(
|
|
333
|
+
attachments: z.array(AttachmentSchema).nullable().optional(),
|
|
308
334
|
commentCount: z.number(),
|
|
309
335
|
directGroupMentions: z.array(z.number()).nullable().optional(),
|
|
310
336
|
directMentions: z.array(z.number()).nullable().optional(),
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { AttachmentSchema } from './entities.js';
|
|
2
3
|
import { NOTIFY_AUDIENCES } from './enums.js';
|
|
3
4
|
export var CreateChannelArgsSchema = z.object({
|
|
4
5
|
workspaceId: z.number(),
|
|
@@ -41,7 +42,7 @@ export var CreateCommentArgsSchema = z.object({
|
|
|
41
42
|
threadId: z.number(),
|
|
42
43
|
content: z.string(),
|
|
43
44
|
tempId: z.number().nullable().optional(),
|
|
44
|
-
attachments: z.
|
|
45
|
+
attachments: z.array(AttachmentSchema).nullable().optional(),
|
|
45
46
|
actions: z.unknown().nullable().optional(),
|
|
46
47
|
recipients: z.array(z.number()).nullable().optional(),
|
|
47
48
|
groups: z.array(z.number()).nullable().optional(),
|
|
@@ -62,7 +63,7 @@ export var CreateMessageArgsSchema = z
|
|
|
62
63
|
conversationId: z.number().nullable().optional(),
|
|
63
64
|
threadId: z.number().nullable().optional(),
|
|
64
65
|
content: z.string(),
|
|
65
|
-
attachments: z.array(
|
|
66
|
+
attachments: z.array(AttachmentSchema).nullable().optional(),
|
|
66
67
|
})
|
|
67
68
|
.refine(function (data) {
|
|
68
69
|
return ((data.conversationId && !data.threadId) || (!data.conversationId && data.threadId));
|
|
@@ -59,7 +59,7 @@ export declare class CommentsClient extends BaseClient {
|
|
|
59
59
|
* @param args.notifyAudience - Optional broader audience to notify in addition to
|
|
60
60
|
* `recipients` and `groups`. `'channel'` notifies everyone in the channel;
|
|
61
61
|
* `'thread'` notifies everyone who has interacted with the thread.
|
|
62
|
-
* @param args.attachments - Optional array of
|
|
62
|
+
* @param args.attachments - Optional array of {@link Attachment} objects.
|
|
63
63
|
* @param args.sendAsIntegration - Optional flag to send as integration.
|
|
64
64
|
* @param options - Optional configuration. Set `batch: true` to return a descriptor for batch requests.
|
|
65
65
|
* @returns The created comment object.
|
|
@@ -88,7 +88,6 @@ export declare class CommentsClient extends BaseClient {
|
|
|
88
88
|
* @param args.id - The comment ID.
|
|
89
89
|
* @param args.content - Optional new comment content.
|
|
90
90
|
* @param args.recipients - Optional array of user IDs to notify.
|
|
91
|
-
* @param args.attachments - Optional array of attachment objects.
|
|
92
91
|
* @param options - Optional configuration. Set `batch: true` to return a descriptor for batch requests.
|
|
93
92
|
* @returns The updated comment object.
|
|
94
93
|
*/
|
|
@@ -56,7 +56,7 @@ export declare class ConversationMessagesClient extends BaseClient {
|
|
|
56
56
|
* @param args - The arguments for creating a message.
|
|
57
57
|
* @param args.conversationId - The conversation ID.
|
|
58
58
|
* @param args.content - The message content.
|
|
59
|
-
* @param args.attachments - Optional array of
|
|
59
|
+
* @param args.attachments - Optional array of {@link Attachment} objects.
|
|
60
60
|
* @param args.actions - Optional array of action objects.
|
|
61
61
|
* @param options - Optional configuration. Set `batch: true` to return a descriptor for batch requests.
|
|
62
62
|
* @returns The created message object.
|
|
@@ -81,7 +81,7 @@ export declare class ConversationMessagesClient extends BaseClient {
|
|
|
81
81
|
* @param args - The arguments for updating a message.
|
|
82
82
|
* @param args.id - The message ID.
|
|
83
83
|
* @param args.content - The new message content.
|
|
84
|
-
* @param args.attachments - Optional array of
|
|
84
|
+
* @param args.attachments - Optional array of {@link Attachment} objects.
|
|
85
85
|
* @param options - Optional configuration. Set `batch: true` to return a descriptor for batch requests.
|
|
86
86
|
* @returns The updated message object.
|
|
87
87
|
*
|
|
@@ -54,7 +54,6 @@ export declare class ThreadsClient extends BaseClient {
|
|
|
54
54
|
* @param args.title - The thread title.
|
|
55
55
|
* @param args.content - The thread content.
|
|
56
56
|
* @param args.recipients - Optional array of user IDs to notify.
|
|
57
|
-
* @param args.attachments - Optional array of attachment objects.
|
|
58
57
|
* @param args.sendAsIntegration - Optional flag to send as integration.
|
|
59
58
|
* @param options - Optional configuration. Set `batch: true` to return a descriptor for batch requests.
|
|
60
59
|
* @returns The created thread object.
|
|
@@ -82,7 +81,6 @@ export declare class ThreadsClient extends BaseClient {
|
|
|
82
81
|
* @param args.title - Optional new thread title.
|
|
83
82
|
* @param args.content - Optional new thread content.
|
|
84
83
|
* @param args.recipients - Optional array of user IDs to notify.
|
|
85
|
-
* @param args.attachments - Optional array of attachment objects.
|
|
86
84
|
* @param options - Optional configuration. Set `batch: true` to return a descriptor for batch requests.
|
|
87
85
|
* @returns The updated thread object.
|
|
88
86
|
*/
|
|
@@ -328,7 +326,7 @@ export declare class ThreadsClient extends BaseClient {
|
|
|
328
326
|
* @param args.id - The thread ID.
|
|
329
327
|
* @param args.content - The comment content.
|
|
330
328
|
* @param args.tempId - Optional temporary identifier.
|
|
331
|
-
* @param args.attachments - Optional array of
|
|
329
|
+
* @param args.attachments - Optional array of {@link Attachment} objects.
|
|
332
330
|
* @param args.actions - Optional array of action objects.
|
|
333
331
|
* @param args.recipients - Optional array of user IDs to notify directly.
|
|
334
332
|
* @param args.groups - Optional array of custom group IDs to notify.
|
|
@@ -361,7 +359,7 @@ export declare class ThreadsClient extends BaseClient {
|
|
|
361
359
|
* @param args.id - The thread ID.
|
|
362
360
|
* @param args.content - The comment content.
|
|
363
361
|
* @param args.tempId - Optional temporary identifier.
|
|
364
|
-
* @param args.attachments - Optional array of
|
|
362
|
+
* @param args.attachments - Optional array of {@link Attachment} objects.
|
|
365
363
|
* @param args.actions - Optional array of action objects.
|
|
366
364
|
* @param args.recipients - Optional array of user IDs to notify directly.
|
|
367
365
|
* @param args.groups - Optional array of custom group IDs to notify.
|
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const SystemMessageSchema: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
|
|
3
|
+
export declare const AttachmentSchema: z.ZodObject<{
|
|
4
|
+
attachmentId: z.ZodString;
|
|
5
|
+
urlType: z.ZodString;
|
|
6
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
10
|
+
underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
+
imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15
|
+
duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
20
|
+
}, z.core.$loose>;
|
|
21
|
+
export type Attachment = z.infer<typeof AttachmentSchema>;
|
|
3
22
|
export declare const BaseUserSchema: z.ZodObject<{
|
|
4
23
|
id: z.ZodNumber;
|
|
5
24
|
name: z.ZodString;
|
|
@@ -150,7 +169,24 @@ export declare const ThreadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
150
169
|
channelId: z.ZodNumber;
|
|
151
170
|
workspaceId: z.ZodNumber;
|
|
152
171
|
actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
153
|
-
attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.
|
|
172
|
+
attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
173
|
+
attachmentId: z.ZodString;
|
|
174
|
+
urlType: z.ZodString;
|
|
175
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
176
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
177
|
+
fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
178
|
+
fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
179
|
+
underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
180
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
181
|
+
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
182
|
+
imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
183
|
+
imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
184
|
+
duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
185
|
+
uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
186
|
+
video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
187
|
+
videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
188
|
+
videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
189
|
+
}, z.core.$loose>>>>;
|
|
154
190
|
commentCount: z.ZodNumber;
|
|
155
191
|
closed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
156
192
|
directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
@@ -186,7 +222,24 @@ export declare const ThreadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
186
222
|
channelId: z.ZodNumber;
|
|
187
223
|
posted: z.ZodDate;
|
|
188
224
|
systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
|
|
189
|
-
attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.
|
|
225
|
+
attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
226
|
+
attachmentId: z.ZodString;
|
|
227
|
+
urlType: z.ZodString;
|
|
228
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
229
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
230
|
+
fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
231
|
+
fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
232
|
+
underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
233
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
234
|
+
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
235
|
+
imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
236
|
+
imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
237
|
+
duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
238
|
+
uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
239
|
+
video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
240
|
+
videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
241
|
+
videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
242
|
+
}, z.core.$loose>>>>;
|
|
190
243
|
reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>>;
|
|
191
244
|
actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
192
245
|
objIndex: z.ZodNumber;
|
|
@@ -219,7 +272,25 @@ export declare const ThreadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
219
272
|
isArchived: boolean;
|
|
220
273
|
creatorName?: string | null | undefined;
|
|
221
274
|
actions?: unknown[] | null | undefined;
|
|
222
|
-
attachments?:
|
|
275
|
+
attachments?: {
|
|
276
|
+
[x: string]: unknown;
|
|
277
|
+
attachmentId: string;
|
|
278
|
+
urlType: string;
|
|
279
|
+
title?: string | null | undefined;
|
|
280
|
+
url?: string | null | undefined;
|
|
281
|
+
fileName?: string | null | undefined;
|
|
282
|
+
fileSize?: number | null | undefined;
|
|
283
|
+
underlyingType?: string | null | undefined;
|
|
284
|
+
description?: string | null | undefined;
|
|
285
|
+
image?: string | null | undefined;
|
|
286
|
+
imageWidth?: number | null | undefined;
|
|
287
|
+
imageHeight?: number | null | undefined;
|
|
288
|
+
duration?: string | null | undefined;
|
|
289
|
+
uploadState?: string | null | undefined;
|
|
290
|
+
video?: string | null | undefined;
|
|
291
|
+
videoType?: string | null | undefined;
|
|
292
|
+
videoAutoPlay?: boolean | null | undefined;
|
|
293
|
+
}[] | null | undefined;
|
|
223
294
|
closed?: boolean | null | undefined;
|
|
224
295
|
directGroupMentions?: number[] | null | undefined;
|
|
225
296
|
directMentions?: number[] | null | undefined;
|
|
@@ -251,7 +322,25 @@ export declare const ThreadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
251
322
|
version: number;
|
|
252
323
|
workspaceId: number;
|
|
253
324
|
systemMessage?: unknown;
|
|
254
|
-
attachments?:
|
|
325
|
+
attachments?: {
|
|
326
|
+
[x: string]: unknown;
|
|
327
|
+
attachmentId: string;
|
|
328
|
+
urlType: string;
|
|
329
|
+
title?: string | null | undefined;
|
|
330
|
+
url?: string | null | undefined;
|
|
331
|
+
fileName?: string | null | undefined;
|
|
332
|
+
fileSize?: number | null | undefined;
|
|
333
|
+
underlyingType?: string | null | undefined;
|
|
334
|
+
description?: string | null | undefined;
|
|
335
|
+
image?: string | null | undefined;
|
|
336
|
+
imageWidth?: number | null | undefined;
|
|
337
|
+
imageHeight?: number | null | undefined;
|
|
338
|
+
duration?: string | null | undefined;
|
|
339
|
+
uploadState?: string | null | undefined;
|
|
340
|
+
video?: string | null | undefined;
|
|
341
|
+
videoType?: string | null | undefined;
|
|
342
|
+
videoAutoPlay?: boolean | null | undefined;
|
|
343
|
+
}[] | null | undefined;
|
|
255
344
|
reactions?: Record<string, number[]> | null | undefined;
|
|
256
345
|
actions?: unknown[] | null | undefined;
|
|
257
346
|
lastEdited?: Date | null | undefined;
|
|
@@ -279,7 +368,25 @@ export declare const ThreadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
279
368
|
isArchived: boolean;
|
|
280
369
|
creatorName?: string | null | undefined;
|
|
281
370
|
actions?: unknown[] | null | undefined;
|
|
282
|
-
attachments?:
|
|
371
|
+
attachments?: {
|
|
372
|
+
[x: string]: unknown;
|
|
373
|
+
attachmentId: string;
|
|
374
|
+
urlType: string;
|
|
375
|
+
title?: string | null | undefined;
|
|
376
|
+
url?: string | null | undefined;
|
|
377
|
+
fileName?: string | null | undefined;
|
|
378
|
+
fileSize?: number | null | undefined;
|
|
379
|
+
underlyingType?: string | null | undefined;
|
|
380
|
+
description?: string | null | undefined;
|
|
381
|
+
image?: string | null | undefined;
|
|
382
|
+
imageWidth?: number | null | undefined;
|
|
383
|
+
imageHeight?: number | null | undefined;
|
|
384
|
+
duration?: string | null | undefined;
|
|
385
|
+
uploadState?: string | null | undefined;
|
|
386
|
+
video?: string | null | undefined;
|
|
387
|
+
videoType?: string | null | undefined;
|
|
388
|
+
videoAutoPlay?: boolean | null | undefined;
|
|
389
|
+
}[] | null | undefined;
|
|
283
390
|
closed?: boolean | null | undefined;
|
|
284
391
|
directGroupMentions?: number[] | null | undefined;
|
|
285
392
|
directMentions?: number[] | null | undefined;
|
|
@@ -311,7 +418,25 @@ export declare const ThreadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
311
418
|
version: number;
|
|
312
419
|
workspaceId: number;
|
|
313
420
|
systemMessage?: unknown;
|
|
314
|
-
attachments?:
|
|
421
|
+
attachments?: {
|
|
422
|
+
[x: string]: unknown;
|
|
423
|
+
attachmentId: string;
|
|
424
|
+
urlType: string;
|
|
425
|
+
title?: string | null | undefined;
|
|
426
|
+
url?: string | null | undefined;
|
|
427
|
+
fileName?: string | null | undefined;
|
|
428
|
+
fileSize?: number | null | undefined;
|
|
429
|
+
underlyingType?: string | null | undefined;
|
|
430
|
+
description?: string | null | undefined;
|
|
431
|
+
image?: string | null | undefined;
|
|
432
|
+
imageWidth?: number | null | undefined;
|
|
433
|
+
imageHeight?: number | null | undefined;
|
|
434
|
+
duration?: string | null | undefined;
|
|
435
|
+
uploadState?: string | null | undefined;
|
|
436
|
+
video?: string | null | undefined;
|
|
437
|
+
videoType?: string | null | undefined;
|
|
438
|
+
videoAutoPlay?: boolean | null | undefined;
|
|
439
|
+
}[] | null | undefined;
|
|
315
440
|
reactions?: Record<string, number[]> | null | undefined;
|
|
316
441
|
actions?: unknown[] | null | undefined;
|
|
317
442
|
lastEdited?: Date | null | undefined;
|
|
@@ -355,7 +480,24 @@ export declare const ConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
355
480
|
conversationId: z.ZodNumber;
|
|
356
481
|
posted: z.ZodDate;
|
|
357
482
|
systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
|
|
358
|
-
attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.
|
|
483
|
+
attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
484
|
+
attachmentId: z.ZodString;
|
|
485
|
+
urlType: z.ZodString;
|
|
486
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
487
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
488
|
+
fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
489
|
+
fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
490
|
+
underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
491
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
492
|
+
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
493
|
+
imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
494
|
+
imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
495
|
+
duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
496
|
+
uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
497
|
+
video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
498
|
+
videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
499
|
+
videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
500
|
+
}, z.core.$loose>>>>;
|
|
359
501
|
reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>>;
|
|
360
502
|
actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
361
503
|
objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -389,7 +531,25 @@ export declare const ConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
389
531
|
conversationId: number;
|
|
390
532
|
posted: Date;
|
|
391
533
|
systemMessage?: unknown;
|
|
392
|
-
attachments?:
|
|
534
|
+
attachments?: {
|
|
535
|
+
[x: string]: unknown;
|
|
536
|
+
attachmentId: string;
|
|
537
|
+
urlType: string;
|
|
538
|
+
title?: string | null | undefined;
|
|
539
|
+
url?: string | null | undefined;
|
|
540
|
+
fileName?: string | null | undefined;
|
|
541
|
+
fileSize?: number | null | undefined;
|
|
542
|
+
underlyingType?: string | null | undefined;
|
|
543
|
+
description?: string | null | undefined;
|
|
544
|
+
image?: string | null | undefined;
|
|
545
|
+
imageWidth?: number | null | undefined;
|
|
546
|
+
imageHeight?: number | null | undefined;
|
|
547
|
+
duration?: string | null | undefined;
|
|
548
|
+
uploadState?: string | null | undefined;
|
|
549
|
+
video?: string | null | undefined;
|
|
550
|
+
videoType?: string | null | undefined;
|
|
551
|
+
videoAutoPlay?: boolean | null | undefined;
|
|
552
|
+
}[] | null | undefined;
|
|
393
553
|
reactions?: Record<string, number[]> | null | undefined;
|
|
394
554
|
actions?: unknown[] | null | undefined;
|
|
395
555
|
objIndex?: number | null | undefined;
|
|
@@ -422,7 +582,25 @@ export declare const ConversationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
422
582
|
conversationId: number;
|
|
423
583
|
posted: Date;
|
|
424
584
|
systemMessage?: unknown;
|
|
425
|
-
attachments?:
|
|
585
|
+
attachments?: {
|
|
586
|
+
[x: string]: unknown;
|
|
587
|
+
attachmentId: string;
|
|
588
|
+
urlType: string;
|
|
589
|
+
title?: string | null | undefined;
|
|
590
|
+
url?: string | null | undefined;
|
|
591
|
+
fileName?: string | null | undefined;
|
|
592
|
+
fileSize?: number | null | undefined;
|
|
593
|
+
underlyingType?: string | null | undefined;
|
|
594
|
+
description?: string | null | undefined;
|
|
595
|
+
image?: string | null | undefined;
|
|
596
|
+
imageWidth?: number | null | undefined;
|
|
597
|
+
imageHeight?: number | null | undefined;
|
|
598
|
+
duration?: string | null | undefined;
|
|
599
|
+
uploadState?: string | null | undefined;
|
|
600
|
+
video?: string | null | undefined;
|
|
601
|
+
videoType?: string | null | undefined;
|
|
602
|
+
videoAutoPlay?: boolean | null | undefined;
|
|
603
|
+
}[] | null | undefined;
|
|
426
604
|
reactions?: Record<string, number[]> | null | undefined;
|
|
427
605
|
actions?: unknown[] | null | undefined;
|
|
428
606
|
objIndex?: number | null | undefined;
|
|
@@ -447,7 +625,24 @@ export declare const CommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
447
625
|
directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
448
626
|
directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
449
627
|
systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
|
|
450
|
-
attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.
|
|
628
|
+
attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
629
|
+
attachmentId: z.ZodString;
|
|
630
|
+
urlType: z.ZodString;
|
|
631
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
632
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
633
|
+
fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
634
|
+
fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
635
|
+
underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
636
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
637
|
+
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
638
|
+
imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
639
|
+
imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
640
|
+
duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
641
|
+
uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
642
|
+
video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
643
|
+
videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
644
|
+
videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
645
|
+
}, z.core.$loose>>>>;
|
|
451
646
|
reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
452
647
|
objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
453
648
|
creatorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -473,7 +668,25 @@ export declare const CommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
473
668
|
directMentions?: number[] | null | undefined;
|
|
474
669
|
directGroupMentions?: number[] | null | undefined;
|
|
475
670
|
systemMessage?: unknown;
|
|
476
|
-
attachments?:
|
|
671
|
+
attachments?: {
|
|
672
|
+
[x: string]: unknown;
|
|
673
|
+
attachmentId: string;
|
|
674
|
+
urlType: string;
|
|
675
|
+
title?: string | null | undefined;
|
|
676
|
+
url?: string | null | undefined;
|
|
677
|
+
fileName?: string | null | undefined;
|
|
678
|
+
fileSize?: number | null | undefined;
|
|
679
|
+
underlyingType?: string | null | undefined;
|
|
680
|
+
description?: string | null | undefined;
|
|
681
|
+
image?: string | null | undefined;
|
|
682
|
+
imageWidth?: number | null | undefined;
|
|
683
|
+
imageHeight?: number | null | undefined;
|
|
684
|
+
duration?: string | null | undefined;
|
|
685
|
+
uploadState?: string | null | undefined;
|
|
686
|
+
video?: string | null | undefined;
|
|
687
|
+
videoType?: string | null | undefined;
|
|
688
|
+
videoAutoPlay?: boolean | null | undefined;
|
|
689
|
+
}[] | null | undefined;
|
|
477
690
|
reactions?: Record<string, unknown> | null | undefined;
|
|
478
691
|
objIndex?: number | null | undefined;
|
|
479
692
|
creatorName?: string | null | undefined;
|
|
@@ -497,7 +710,25 @@ export declare const CommentSchema: z.ZodPipe<z.ZodObject<{
|
|
|
497
710
|
directMentions?: number[] | null | undefined;
|
|
498
711
|
directGroupMentions?: number[] | null | undefined;
|
|
499
712
|
systemMessage?: unknown;
|
|
500
|
-
attachments?:
|
|
713
|
+
attachments?: {
|
|
714
|
+
[x: string]: unknown;
|
|
715
|
+
attachmentId: string;
|
|
716
|
+
urlType: string;
|
|
717
|
+
title?: string | null | undefined;
|
|
718
|
+
url?: string | null | undefined;
|
|
719
|
+
fileName?: string | null | undefined;
|
|
720
|
+
fileSize?: number | null | undefined;
|
|
721
|
+
underlyingType?: string | null | undefined;
|
|
722
|
+
description?: string | null | undefined;
|
|
723
|
+
image?: string | null | undefined;
|
|
724
|
+
imageWidth?: number | null | undefined;
|
|
725
|
+
imageHeight?: number | null | undefined;
|
|
726
|
+
duration?: string | null | undefined;
|
|
727
|
+
uploadState?: string | null | undefined;
|
|
728
|
+
video?: string | null | undefined;
|
|
729
|
+
videoType?: string | null | undefined;
|
|
730
|
+
videoAutoPlay?: boolean | null | undefined;
|
|
731
|
+
}[] | null | undefined;
|
|
501
732
|
reactions?: Record<string, unknown> | null | undefined;
|
|
502
733
|
objIndex?: number | null | undefined;
|
|
503
734
|
creatorName?: string | null | undefined;
|
|
@@ -554,7 +785,24 @@ export declare const ConversationMessageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
554
785
|
conversationId: z.ZodNumber;
|
|
555
786
|
posted: z.ZodDate;
|
|
556
787
|
systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
|
|
557
|
-
attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.
|
|
788
|
+
attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
789
|
+
attachmentId: z.ZodString;
|
|
790
|
+
urlType: z.ZodString;
|
|
791
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
792
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
793
|
+
fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
794
|
+
fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
795
|
+
underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
796
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
797
|
+
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
798
|
+
imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
799
|
+
imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
800
|
+
duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
801
|
+
uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
802
|
+
video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
803
|
+
videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
804
|
+
videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
805
|
+
}, z.core.$loose>>>>;
|
|
558
806
|
reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>>;
|
|
559
807
|
actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
560
808
|
objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
@@ -573,7 +821,25 @@ export declare const ConversationMessageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
573
821
|
posted: Date;
|
|
574
822
|
workspaceId: number;
|
|
575
823
|
systemMessage?: unknown;
|
|
576
|
-
attachments?:
|
|
824
|
+
attachments?: {
|
|
825
|
+
[x: string]: unknown;
|
|
826
|
+
attachmentId: string;
|
|
827
|
+
urlType: string;
|
|
828
|
+
title?: string | null | undefined;
|
|
829
|
+
url?: string | null | undefined;
|
|
830
|
+
fileName?: string | null | undefined;
|
|
831
|
+
fileSize?: number | null | undefined;
|
|
832
|
+
underlyingType?: string | null | undefined;
|
|
833
|
+
description?: string | null | undefined;
|
|
834
|
+
image?: string | null | undefined;
|
|
835
|
+
imageWidth?: number | null | undefined;
|
|
836
|
+
imageHeight?: number | null | undefined;
|
|
837
|
+
duration?: string | null | undefined;
|
|
838
|
+
uploadState?: string | null | undefined;
|
|
839
|
+
video?: string | null | undefined;
|
|
840
|
+
videoType?: string | null | undefined;
|
|
841
|
+
videoAutoPlay?: boolean | null | undefined;
|
|
842
|
+
}[] | null | undefined;
|
|
577
843
|
reactions?: Record<string, number[]> | null | undefined;
|
|
578
844
|
actions?: unknown[] | null | undefined;
|
|
579
845
|
objIndex?: number | null | undefined;
|
|
@@ -590,7 +856,25 @@ export declare const ConversationMessageSchema: z.ZodPipe<z.ZodObject<{
|
|
|
590
856
|
posted: Date;
|
|
591
857
|
workspaceId: number;
|
|
592
858
|
systemMessage?: unknown;
|
|
593
|
-
attachments?:
|
|
859
|
+
attachments?: {
|
|
860
|
+
[x: string]: unknown;
|
|
861
|
+
attachmentId: string;
|
|
862
|
+
urlType: string;
|
|
863
|
+
title?: string | null | undefined;
|
|
864
|
+
url?: string | null | undefined;
|
|
865
|
+
fileName?: string | null | undefined;
|
|
866
|
+
fileSize?: number | null | undefined;
|
|
867
|
+
underlyingType?: string | null | undefined;
|
|
868
|
+
description?: string | null | undefined;
|
|
869
|
+
image?: string | null | undefined;
|
|
870
|
+
imageWidth?: number | null | undefined;
|
|
871
|
+
imageHeight?: number | null | undefined;
|
|
872
|
+
duration?: string | null | undefined;
|
|
873
|
+
uploadState?: string | null | undefined;
|
|
874
|
+
video?: string | null | undefined;
|
|
875
|
+
videoType?: string | null | undefined;
|
|
876
|
+
videoAutoPlay?: boolean | null | undefined;
|
|
877
|
+
}[] | null | undefined;
|
|
594
878
|
reactions?: Record<string, number[]> | null | undefined;
|
|
595
879
|
actions?: unknown[] | null | undefined;
|
|
596
880
|
objIndex?: number | null | undefined;
|
|
@@ -610,7 +894,24 @@ export declare const InboxThreadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
610
894
|
channelId: z.ZodNumber;
|
|
611
895
|
workspaceId: z.ZodNumber;
|
|
612
896
|
actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
613
|
-
attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.
|
|
897
|
+
attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
898
|
+
attachmentId: z.ZodString;
|
|
899
|
+
urlType: z.ZodString;
|
|
900
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
901
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
902
|
+
fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
903
|
+
fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
904
|
+
underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
905
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
906
|
+
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
907
|
+
imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
908
|
+
imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
909
|
+
duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
910
|
+
uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
911
|
+
video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
912
|
+
videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
913
|
+
videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
914
|
+
}, z.core.$loose>>>>;
|
|
614
915
|
commentCount: z.ZodNumber;
|
|
615
916
|
directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
616
917
|
directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
@@ -648,7 +949,24 @@ export declare const InboxThreadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
648
949
|
directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
649
950
|
directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
650
951
|
systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
|
|
651
|
-
attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.
|
|
952
|
+
attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
953
|
+
attachmentId: z.ZodString;
|
|
954
|
+
urlType: z.ZodString;
|
|
955
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
956
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
957
|
+
fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
958
|
+
fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
959
|
+
underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
960
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
961
|
+
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
962
|
+
imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
963
|
+
imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
964
|
+
duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
965
|
+
uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
966
|
+
video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
967
|
+
videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
968
|
+
videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
969
|
+
}, z.core.$loose>>>>;
|
|
652
970
|
reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
653
971
|
objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
654
972
|
creatorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -674,7 +992,25 @@ export declare const InboxThreadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
674
992
|
directMentions?: number[] | null | undefined;
|
|
675
993
|
directGroupMentions?: number[] | null | undefined;
|
|
676
994
|
systemMessage?: unknown;
|
|
677
|
-
attachments?:
|
|
995
|
+
attachments?: {
|
|
996
|
+
[x: string]: unknown;
|
|
997
|
+
attachmentId: string;
|
|
998
|
+
urlType: string;
|
|
999
|
+
title?: string | null | undefined;
|
|
1000
|
+
url?: string | null | undefined;
|
|
1001
|
+
fileName?: string | null | undefined;
|
|
1002
|
+
fileSize?: number | null | undefined;
|
|
1003
|
+
underlyingType?: string | null | undefined;
|
|
1004
|
+
description?: string | null | undefined;
|
|
1005
|
+
image?: string | null | undefined;
|
|
1006
|
+
imageWidth?: number | null | undefined;
|
|
1007
|
+
imageHeight?: number | null | undefined;
|
|
1008
|
+
duration?: string | null | undefined;
|
|
1009
|
+
uploadState?: string | null | undefined;
|
|
1010
|
+
video?: string | null | undefined;
|
|
1011
|
+
videoType?: string | null | undefined;
|
|
1012
|
+
videoAutoPlay?: boolean | null | undefined;
|
|
1013
|
+
}[] | null | undefined;
|
|
678
1014
|
reactions?: Record<string, unknown> | null | undefined;
|
|
679
1015
|
objIndex?: number | null | undefined;
|
|
680
1016
|
creatorName?: string | null | undefined;
|
|
@@ -698,7 +1034,25 @@ export declare const InboxThreadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
698
1034
|
directMentions?: number[] | null | undefined;
|
|
699
1035
|
directGroupMentions?: number[] | null | undefined;
|
|
700
1036
|
systemMessage?: unknown;
|
|
701
|
-
attachments?:
|
|
1037
|
+
attachments?: {
|
|
1038
|
+
[x: string]: unknown;
|
|
1039
|
+
attachmentId: string;
|
|
1040
|
+
urlType: string;
|
|
1041
|
+
title?: string | null | undefined;
|
|
1042
|
+
url?: string | null | undefined;
|
|
1043
|
+
fileName?: string | null | undefined;
|
|
1044
|
+
fileSize?: number | null | undefined;
|
|
1045
|
+
underlyingType?: string | null | undefined;
|
|
1046
|
+
description?: string | null | undefined;
|
|
1047
|
+
image?: string | null | undefined;
|
|
1048
|
+
imageWidth?: number | null | undefined;
|
|
1049
|
+
imageHeight?: number | null | undefined;
|
|
1050
|
+
duration?: string | null | undefined;
|
|
1051
|
+
uploadState?: string | null | undefined;
|
|
1052
|
+
video?: string | null | undefined;
|
|
1053
|
+
videoType?: string | null | undefined;
|
|
1054
|
+
videoAutoPlay?: boolean | null | undefined;
|
|
1055
|
+
}[] | null | undefined;
|
|
702
1056
|
reactions?: Record<string, unknown> | null | undefined;
|
|
703
1057
|
objIndex?: number | null | undefined;
|
|
704
1058
|
creatorName?: string | null | undefined;
|
|
@@ -732,7 +1086,25 @@ export declare const InboxThreadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
732
1086
|
closed: boolean;
|
|
733
1087
|
creatorName?: string | null | undefined;
|
|
734
1088
|
actions?: unknown[] | null | undefined;
|
|
735
|
-
attachments?:
|
|
1089
|
+
attachments?: {
|
|
1090
|
+
[x: string]: unknown;
|
|
1091
|
+
attachmentId: string;
|
|
1092
|
+
urlType: string;
|
|
1093
|
+
title?: string | null | undefined;
|
|
1094
|
+
url?: string | null | undefined;
|
|
1095
|
+
fileName?: string | null | undefined;
|
|
1096
|
+
fileSize?: number | null | undefined;
|
|
1097
|
+
underlyingType?: string | null | undefined;
|
|
1098
|
+
description?: string | null | undefined;
|
|
1099
|
+
image?: string | null | undefined;
|
|
1100
|
+
imageWidth?: number | null | undefined;
|
|
1101
|
+
imageHeight?: number | null | undefined;
|
|
1102
|
+
duration?: string | null | undefined;
|
|
1103
|
+
uploadState?: string | null | undefined;
|
|
1104
|
+
video?: string | null | undefined;
|
|
1105
|
+
videoType?: string | null | undefined;
|
|
1106
|
+
videoAutoPlay?: boolean | null | undefined;
|
|
1107
|
+
}[] | null | undefined;
|
|
736
1108
|
directGroupMentions?: number[] | null | undefined;
|
|
737
1109
|
directMentions?: number[] | null | undefined;
|
|
738
1110
|
groups?: number[] | null | undefined;
|
|
@@ -762,7 +1134,25 @@ export declare const InboxThreadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
762
1134
|
directMentions?: number[] | null | undefined;
|
|
763
1135
|
directGroupMentions?: number[] | null | undefined;
|
|
764
1136
|
systemMessage?: unknown;
|
|
765
|
-
attachments?:
|
|
1137
|
+
attachments?: {
|
|
1138
|
+
[x: string]: unknown;
|
|
1139
|
+
attachmentId: string;
|
|
1140
|
+
urlType: string;
|
|
1141
|
+
title?: string | null | undefined;
|
|
1142
|
+
url?: string | null | undefined;
|
|
1143
|
+
fileName?: string | null | undefined;
|
|
1144
|
+
fileSize?: number | null | undefined;
|
|
1145
|
+
underlyingType?: string | null | undefined;
|
|
1146
|
+
description?: string | null | undefined;
|
|
1147
|
+
image?: string | null | undefined;
|
|
1148
|
+
imageWidth?: number | null | undefined;
|
|
1149
|
+
imageHeight?: number | null | undefined;
|
|
1150
|
+
duration?: string | null | undefined;
|
|
1151
|
+
uploadState?: string | null | undefined;
|
|
1152
|
+
video?: string | null | undefined;
|
|
1153
|
+
videoType?: string | null | undefined;
|
|
1154
|
+
videoAutoPlay?: boolean | null | undefined;
|
|
1155
|
+
}[] | null | undefined;
|
|
766
1156
|
reactions?: Record<string, unknown> | null | undefined;
|
|
767
1157
|
objIndex?: number | null | undefined;
|
|
768
1158
|
creatorName?: string | null | undefined;
|
|
@@ -795,7 +1185,25 @@ export declare const InboxThreadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
795
1185
|
closed: boolean;
|
|
796
1186
|
creatorName?: string | null | undefined;
|
|
797
1187
|
actions?: unknown[] | null | undefined;
|
|
798
|
-
attachments?:
|
|
1188
|
+
attachments?: {
|
|
1189
|
+
[x: string]: unknown;
|
|
1190
|
+
attachmentId: string;
|
|
1191
|
+
urlType: string;
|
|
1192
|
+
title?: string | null | undefined;
|
|
1193
|
+
url?: string | null | undefined;
|
|
1194
|
+
fileName?: string | null | undefined;
|
|
1195
|
+
fileSize?: number | null | undefined;
|
|
1196
|
+
underlyingType?: string | null | undefined;
|
|
1197
|
+
description?: string | null | undefined;
|
|
1198
|
+
image?: string | null | undefined;
|
|
1199
|
+
imageWidth?: number | null | undefined;
|
|
1200
|
+
imageHeight?: number | null | undefined;
|
|
1201
|
+
duration?: string | null | undefined;
|
|
1202
|
+
uploadState?: string | null | undefined;
|
|
1203
|
+
video?: string | null | undefined;
|
|
1204
|
+
videoType?: string | null | undefined;
|
|
1205
|
+
videoAutoPlay?: boolean | null | undefined;
|
|
1206
|
+
}[] | null | undefined;
|
|
799
1207
|
directGroupMentions?: number[] | null | undefined;
|
|
800
1208
|
directMentions?: number[] | null | undefined;
|
|
801
1209
|
groups?: number[] | null | undefined;
|
|
@@ -825,7 +1233,25 @@ export declare const InboxThreadSchema: z.ZodPipe<z.ZodObject<{
|
|
|
825
1233
|
directMentions?: number[] | null | undefined;
|
|
826
1234
|
directGroupMentions?: number[] | null | undefined;
|
|
827
1235
|
systemMessage?: unknown;
|
|
828
|
-
attachments?:
|
|
1236
|
+
attachments?: {
|
|
1237
|
+
[x: string]: unknown;
|
|
1238
|
+
attachmentId: string;
|
|
1239
|
+
urlType: string;
|
|
1240
|
+
title?: string | null | undefined;
|
|
1241
|
+
url?: string | null | undefined;
|
|
1242
|
+
fileName?: string | null | undefined;
|
|
1243
|
+
fileSize?: number | null | undefined;
|
|
1244
|
+
underlyingType?: string | null | undefined;
|
|
1245
|
+
description?: string | null | undefined;
|
|
1246
|
+
image?: string | null | undefined;
|
|
1247
|
+
imageWidth?: number | null | undefined;
|
|
1248
|
+
imageHeight?: number | null | undefined;
|
|
1249
|
+
duration?: string | null | undefined;
|
|
1250
|
+
uploadState?: string | null | undefined;
|
|
1251
|
+
video?: string | null | undefined;
|
|
1252
|
+
videoType?: string | null | undefined;
|
|
1253
|
+
videoAutoPlay?: boolean | null | undefined;
|
|
1254
|
+
}[] | null | undefined;
|
|
829
1255
|
reactions?: Record<string, unknown> | null | undefined;
|
|
830
1256
|
objIndex?: number | null | undefined;
|
|
831
1257
|
creatorName?: string | null | undefined;
|
|
@@ -860,8 +1286,8 @@ export declare const SearchResultSchema: z.ZodObject<{
|
|
|
860
1286
|
id: z.ZodString;
|
|
861
1287
|
type: z.ZodEnum<{
|
|
862
1288
|
thread: "thread";
|
|
863
|
-
comment: "comment";
|
|
864
1289
|
message: "message";
|
|
1290
|
+
comment: "comment";
|
|
865
1291
|
conversation: "conversation";
|
|
866
1292
|
}>;
|
|
867
1293
|
snippet: z.ZodString;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { type Attachment } from './entities.js';
|
|
2
3
|
export declare const CreateChannelArgsSchema: z.ZodObject<{
|
|
3
4
|
workspaceId: z.ZodNumber;
|
|
4
5
|
name: z.ZodString;
|
|
@@ -44,7 +45,24 @@ export declare const CreateCommentArgsSchema: z.ZodObject<{
|
|
|
44
45
|
threadId: z.ZodNumber;
|
|
45
46
|
content: z.ZodString;
|
|
46
47
|
tempId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
47
|
-
attachments: z.ZodOptional<z.ZodNullable<z.
|
|
48
|
+
attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
49
|
+
attachmentId: z.ZodString;
|
|
50
|
+
urlType: z.ZodString;
|
|
51
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
55
|
+
underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
59
|
+
imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
60
|
+
duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
+
uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
|
+
video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
|
+
videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
+
videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
65
|
+
}, z.core.$loose>>>>;
|
|
48
66
|
actions: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
49
67
|
recipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
50
68
|
groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
@@ -70,7 +88,24 @@ export declare const CreateMessageArgsSchema: z.ZodObject<{
|
|
|
70
88
|
conversationId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
71
89
|
threadId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
72
90
|
content: z.ZodString;
|
|
73
|
-
attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.
|
|
91
|
+
attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
92
|
+
attachmentId: z.ZodString;
|
|
93
|
+
urlType: z.ZodString;
|
|
94
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
96
|
+
fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
97
|
+
fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
98
|
+
underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
99
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
100
|
+
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
101
|
+
imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
102
|
+
imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
103
|
+
duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
104
|
+
uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
105
|
+
video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
106
|
+
videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
107
|
+
videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
108
|
+
}, z.core.$loose>>>>;
|
|
74
109
|
}, z.core.$strip>;
|
|
75
110
|
export type CreateMessageArgs = z.infer<typeof CreateMessageArgsSchema>;
|
|
76
111
|
export declare const GetChannelsArgsSchema: z.ZodObject<{
|
|
@@ -174,13 +209,13 @@ export type GetConversationMessagesArgs = {
|
|
|
174
209
|
export type CreateConversationMessageArgs = {
|
|
175
210
|
conversationId: number;
|
|
176
211
|
content: string;
|
|
177
|
-
attachments?:
|
|
212
|
+
attachments?: Attachment[];
|
|
178
213
|
actions?: unknown[];
|
|
179
214
|
};
|
|
180
215
|
export type UpdateConversationMessageArgs = {
|
|
181
216
|
id: number;
|
|
182
217
|
content: string;
|
|
183
|
-
attachments?:
|
|
218
|
+
attachments?: Attachment[];
|
|
184
219
|
};
|
|
185
220
|
export declare const ARCHIVE_FILTER_VALUES: readonly ["active", "archived", "all"];
|
|
186
221
|
export type ArchiveFilter = (typeof ARCHIVE_FILTER_VALUES)[number];
|