@lynkoria/contracts 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +5 -2
- package/dist/catalog.d.ts +40 -0
- package/dist/catalog.js +370 -0
- package/dist/errors.d.ts +31 -0
- package/dist/errors.js +35 -0
- package/dist/events.d.ts +118 -0
- package/dist/events.js +32 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +7 -0
- package/dist/schemas.d.ts +1457 -0
- package/dist/schemas.js +732 -0
- package/package.json +41 -3
|
@@ -0,0 +1,1457 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Opaque product identifiers (user, device, tenant, product call/conversation ids).
|
|
4
|
+
* Colons are excluded because Lynkoria builds namespaced identities with `:` separators.
|
|
5
|
+
*/
|
|
6
|
+
export declare const ProductId: z.ZodString;
|
|
7
|
+
export declare const Uuid: z.ZodUUID;
|
|
8
|
+
export declare const TenantId: z.ZodDefault<z.ZodString>;
|
|
9
|
+
export declare const ProjectFeatures: z.ZodObject<{
|
|
10
|
+
calls: z.ZodDefault<z.ZodBoolean>;
|
|
11
|
+
livestream: z.ZodDefault<z.ZodBoolean>;
|
|
12
|
+
messaging: z.ZodDefault<z.ZodBoolean>;
|
|
13
|
+
presence: z.ZodDefault<z.ZodBoolean>;
|
|
14
|
+
attachments: z.ZodDefault<z.ZodBoolean>;
|
|
15
|
+
singleDeviceCalls: z.ZodDefault<z.ZodBoolean>;
|
|
16
|
+
push: z.ZodDefault<z.ZodBoolean>;
|
|
17
|
+
recording: z.ZodDefault<z.ZodBoolean>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export type ProjectFeatures = z.infer<typeof ProjectFeatures>;
|
|
20
|
+
export declare const ProjectLimits: z.ZodObject<{
|
|
21
|
+
maxRoomSize: z.ZodDefault<z.ZodNumber>;
|
|
22
|
+
maxConcurrentRooms: z.ZodDefault<z.ZodNumber>;
|
|
23
|
+
tokensPerMinute: z.ZodDefault<z.ZodNumber>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export type ProjectLimits = z.infer<typeof ProjectLimits>;
|
|
26
|
+
/** Per project environment messaging policy (plan §9.7). */
|
|
27
|
+
export declare const ProductMessagingPolicy: z.ZodObject<{
|
|
28
|
+
allowDms: z.ZodDefault<z.ZodBoolean>;
|
|
29
|
+
allowGroups: z.ZodDefault<z.ZodBoolean>;
|
|
30
|
+
allowAttachments: z.ZodDefault<z.ZodBoolean>;
|
|
31
|
+
allowThreads: z.ZodDefault<z.ZodBoolean>;
|
|
32
|
+
allowReactions: z.ZodDefault<z.ZodBoolean>;
|
|
33
|
+
maxAttachmentBytes: z.ZodDefault<z.ZodNumber>;
|
|
34
|
+
allowedAttachmentTypes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
35
|
+
retentionDays: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export type ProductMessagingPolicy = z.infer<typeof ProductMessagingPolicy>;
|
|
38
|
+
export declare const CallType: z.ZodEnum<{
|
|
39
|
+
group: "group";
|
|
40
|
+
livestream: "livestream";
|
|
41
|
+
one_to_one: "one_to_one";
|
|
42
|
+
}>;
|
|
43
|
+
export type CallType = z.infer<typeof CallType>;
|
|
44
|
+
export declare const CallStatus: z.ZodEnum<{
|
|
45
|
+
active: "active";
|
|
46
|
+
ended: "ended";
|
|
47
|
+
}>;
|
|
48
|
+
export declare const ParticipantRole: z.ZodEnum<{
|
|
49
|
+
host: "host";
|
|
50
|
+
participant: "participant";
|
|
51
|
+
speaker: "speaker";
|
|
52
|
+
viewer: "viewer";
|
|
53
|
+
}>;
|
|
54
|
+
export type ParticipantRole = z.infer<typeof ParticipantRole>;
|
|
55
|
+
export declare const CreateCallRequest: z.ZodObject<{
|
|
56
|
+
productCallId: z.ZodString;
|
|
57
|
+
tenantId: z.ZodDefault<z.ZodString>;
|
|
58
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
59
|
+
group: "group";
|
|
60
|
+
livestream: "livestream";
|
|
61
|
+
one_to_one: "one_to_one";
|
|
62
|
+
}>>;
|
|
63
|
+
maxParticipants: z.ZodOptional<z.ZodNumber>;
|
|
64
|
+
emptyTimeoutSec: z.ZodDefault<z.ZodNumber>;
|
|
65
|
+
departureTimeoutSec: z.ZodDefault<z.ZodNumber>;
|
|
66
|
+
e2ee: z.ZodDefault<z.ZodBoolean>;
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
export type CreateCallRequest = z.input<typeof CreateCallRequest>;
|
|
69
|
+
export declare const Call: z.ZodObject<{
|
|
70
|
+
id: z.ZodUUID;
|
|
71
|
+
productCallId: z.ZodString;
|
|
72
|
+
tenantId: z.ZodString;
|
|
73
|
+
type: z.ZodEnum<{
|
|
74
|
+
group: "group";
|
|
75
|
+
livestream: "livestream";
|
|
76
|
+
one_to_one: "one_to_one";
|
|
77
|
+
}>;
|
|
78
|
+
roomName: z.ZodString;
|
|
79
|
+
status: z.ZodEnum<{
|
|
80
|
+
active: "active";
|
|
81
|
+
ended: "ended";
|
|
82
|
+
}>;
|
|
83
|
+
maxParticipants: z.ZodNumber;
|
|
84
|
+
e2ee: z.ZodBoolean;
|
|
85
|
+
createdAt: z.ZodString;
|
|
86
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
export type Call = z.infer<typeof Call>;
|
|
89
|
+
export declare const JoinTokenRequest: z.ZodObject<{
|
|
90
|
+
userId: z.ZodString;
|
|
91
|
+
deviceId: z.ZodString;
|
|
92
|
+
displayName: z.ZodString;
|
|
93
|
+
role: z.ZodDefault<z.ZodEnum<{
|
|
94
|
+
host: "host";
|
|
95
|
+
participant: "participant";
|
|
96
|
+
speaker: "speaker";
|
|
97
|
+
viewer: "viewer";
|
|
98
|
+
}>>;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
export type JoinTokenRequest = z.input<typeof JoinTokenRequest>;
|
|
101
|
+
export declare const JoinTokenResponse: z.ZodObject<{
|
|
102
|
+
url: z.ZodString;
|
|
103
|
+
token: z.ZodString;
|
|
104
|
+
identity: z.ZodString;
|
|
105
|
+
expiresAt: z.ZodString;
|
|
106
|
+
}, z.core.$strip>;
|
|
107
|
+
export type JoinTokenResponse = z.infer<typeof JoinTokenResponse>;
|
|
108
|
+
export declare const UpdatePermissionsRequest: z.ZodObject<{
|
|
109
|
+
role: z.ZodEnum<{
|
|
110
|
+
host: "host";
|
|
111
|
+
participant: "participant";
|
|
112
|
+
speaker: "speaker";
|
|
113
|
+
viewer: "viewer";
|
|
114
|
+
}>;
|
|
115
|
+
}, z.core.$strip>;
|
|
116
|
+
export type UpdatePermissionsRequest = z.infer<typeof UpdatePermissionsRequest>;
|
|
117
|
+
export declare const CallSignalType: z.ZodEnum<{
|
|
118
|
+
accepted: "accepted";
|
|
119
|
+
declined: "declined";
|
|
120
|
+
ended: "ended";
|
|
121
|
+
invited: "invited";
|
|
122
|
+
ringing: "ringing";
|
|
123
|
+
}>;
|
|
124
|
+
export type CallSignalType = z.infer<typeof CallSignalType>;
|
|
125
|
+
/** Incoming-call signaling to foreground devices (plan §14.4). Push for background devices stays product-owned. */
|
|
126
|
+
export declare const CallSignalRequest: z.ZodObject<{
|
|
127
|
+
type: z.ZodEnum<{
|
|
128
|
+
accepted: "accepted";
|
|
129
|
+
declined: "declined";
|
|
130
|
+
ended: "ended";
|
|
131
|
+
invited: "invited";
|
|
132
|
+
ringing: "ringing";
|
|
133
|
+
}>;
|
|
134
|
+
toUserIds: z.ZodArray<z.ZodString>;
|
|
135
|
+
fromUserId: z.ZodOptional<z.ZodString>;
|
|
136
|
+
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
137
|
+
}, z.core.$strip>;
|
|
138
|
+
export type CallSignalRequest = z.input<typeof CallSignalRequest>;
|
|
139
|
+
export declare const MessagingTokenRequest: z.ZodObject<{
|
|
140
|
+
userId: z.ZodString;
|
|
141
|
+
deviceId: z.ZodString;
|
|
142
|
+
tenantId: z.ZodDefault<z.ZodString>;
|
|
143
|
+
}, z.core.$strip>;
|
|
144
|
+
export type MessagingTokenRequest = z.input<typeof MessagingTokenRequest>;
|
|
145
|
+
export declare const MessagingTokenResponse: z.ZodObject<{
|
|
146
|
+
token: z.ZodString;
|
|
147
|
+
expiresAt: z.ZodString;
|
|
148
|
+
}, z.core.$strip>;
|
|
149
|
+
export type MessagingTokenResponse = z.infer<typeof MessagingTokenResponse>;
|
|
150
|
+
export declare const ConversationType: z.ZodEnum<{
|
|
151
|
+
channel: "channel";
|
|
152
|
+
dm: "dm";
|
|
153
|
+
group: "group";
|
|
154
|
+
session: "session";
|
|
155
|
+
}>;
|
|
156
|
+
export type ConversationType = z.infer<typeof ConversationType>;
|
|
157
|
+
export declare const CreateConversationRequest: z.ZodObject<{
|
|
158
|
+
tenantId: z.ZodDefault<z.ZodString>;
|
|
159
|
+
type: z.ZodEnum<{
|
|
160
|
+
channel: "channel";
|
|
161
|
+
dm: "dm";
|
|
162
|
+
group: "group";
|
|
163
|
+
session: "session";
|
|
164
|
+
}>;
|
|
165
|
+
productConversationId: z.ZodOptional<z.ZodString>;
|
|
166
|
+
title: z.ZodOptional<z.ZodString>;
|
|
167
|
+
memberIds: z.ZodArray<z.ZodString>;
|
|
168
|
+
}, z.core.$strip>;
|
|
169
|
+
export type CreateConversationRequest = z.input<typeof CreateConversationRequest>;
|
|
170
|
+
export declare const MembersRequest: z.ZodObject<{
|
|
171
|
+
userIds: z.ZodArray<z.ZodString>;
|
|
172
|
+
}, z.core.$strip>;
|
|
173
|
+
export type MembersRequest = z.infer<typeof MembersRequest>;
|
|
174
|
+
export declare const Conversation: z.ZodObject<{
|
|
175
|
+
id: z.ZodUUID;
|
|
176
|
+
tenantId: z.ZodString;
|
|
177
|
+
type: z.ZodEnum<{
|
|
178
|
+
channel: "channel";
|
|
179
|
+
dm: "dm";
|
|
180
|
+
group: "group";
|
|
181
|
+
session: "session";
|
|
182
|
+
}>;
|
|
183
|
+
productConversationId: z.ZodNullable<z.ZodString>;
|
|
184
|
+
title: z.ZodNullable<z.ZodString>;
|
|
185
|
+
lastSeq: z.ZodNumber;
|
|
186
|
+
lastMessageAt: z.ZodNullable<z.ZodString>;
|
|
187
|
+
createdAt: z.ZodString;
|
|
188
|
+
readSeq: z.ZodOptional<z.ZodNumber>;
|
|
189
|
+
}, z.core.$strip>;
|
|
190
|
+
export type Conversation = z.infer<typeof Conversation>;
|
|
191
|
+
export declare const ConversationList: z.ZodObject<{
|
|
192
|
+
items: z.ZodArray<z.ZodObject<{
|
|
193
|
+
id: z.ZodUUID;
|
|
194
|
+
tenantId: z.ZodString;
|
|
195
|
+
type: z.ZodEnum<{
|
|
196
|
+
channel: "channel";
|
|
197
|
+
dm: "dm";
|
|
198
|
+
group: "group";
|
|
199
|
+
session: "session";
|
|
200
|
+
}>;
|
|
201
|
+
productConversationId: z.ZodNullable<z.ZodString>;
|
|
202
|
+
title: z.ZodNullable<z.ZodString>;
|
|
203
|
+
lastSeq: z.ZodNumber;
|
|
204
|
+
lastMessageAt: z.ZodNullable<z.ZodString>;
|
|
205
|
+
createdAt: z.ZodString;
|
|
206
|
+
readSeq: z.ZodOptional<z.ZodNumber>;
|
|
207
|
+
}, z.core.$strip>>;
|
|
208
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
209
|
+
}, z.core.$strip>;
|
|
210
|
+
export type ConversationList = z.infer<typeof ConversationList>;
|
|
211
|
+
export declare const AttachmentStatus: z.ZodEnum<{
|
|
212
|
+
pending: "pending";
|
|
213
|
+
ready: "ready";
|
|
214
|
+
rejected: "rejected";
|
|
215
|
+
}>;
|
|
216
|
+
/** Malware-scan state. When scanning is enabled a file is `ready` only after a `clean` verdict. */
|
|
217
|
+
export declare const AttachmentScanStatus: z.ZodEnum<{
|
|
218
|
+
clean: "clean";
|
|
219
|
+
failed: "failed";
|
|
220
|
+
infected: "infected";
|
|
221
|
+
not_scanned: "not_scanned";
|
|
222
|
+
pending: "pending";
|
|
223
|
+
rejected: "rejected";
|
|
224
|
+
}>;
|
|
225
|
+
export declare const Attachment: z.ZodObject<{
|
|
226
|
+
id: z.ZodUUID;
|
|
227
|
+
fileName: z.ZodString;
|
|
228
|
+
mediaType: z.ZodString;
|
|
229
|
+
size: z.ZodNumber;
|
|
230
|
+
status: z.ZodEnum<{
|
|
231
|
+
pending: "pending";
|
|
232
|
+
ready: "ready";
|
|
233
|
+
rejected: "rejected";
|
|
234
|
+
}>;
|
|
235
|
+
scanStatus: z.ZodOptional<z.ZodEnum<{
|
|
236
|
+
clean: "clean";
|
|
237
|
+
failed: "failed";
|
|
238
|
+
infected: "infected";
|
|
239
|
+
not_scanned: "not_scanned";
|
|
240
|
+
pending: "pending";
|
|
241
|
+
rejected: "rejected";
|
|
242
|
+
}>>;
|
|
243
|
+
}, z.core.$strip>;
|
|
244
|
+
export type Attachment = z.infer<typeof Attachment>;
|
|
245
|
+
export declare const SendMessageRequest: z.ZodObject<{
|
|
246
|
+
clientMessageId: z.ZodString;
|
|
247
|
+
text: z.ZodDefault<z.ZodString>;
|
|
248
|
+
attachmentIds: z.ZodDefault<z.ZodArray<z.ZodUUID>>;
|
|
249
|
+
parentMessageId: z.ZodOptional<z.ZodUUID>;
|
|
250
|
+
}, z.core.$strip>;
|
|
251
|
+
export type SendMessageRequest = z.input<typeof SendMessageRequest>;
|
|
252
|
+
export declare const EditMessageRequest: z.ZodObject<{
|
|
253
|
+
text: z.ZodString;
|
|
254
|
+
}, z.core.$strip>;
|
|
255
|
+
export type EditMessageRequest = z.infer<typeof EditMessageRequest>;
|
|
256
|
+
export declare const ReadRequest: z.ZodObject<{
|
|
257
|
+
seq: z.ZodNumber;
|
|
258
|
+
}, z.core.$strip>;
|
|
259
|
+
export type ReadRequest = z.infer<typeof ReadRequest>;
|
|
260
|
+
export declare const ReactionRequest: z.ZodObject<{
|
|
261
|
+
emoji: z.ZodString;
|
|
262
|
+
}, z.core.$strip>;
|
|
263
|
+
export type ReactionRequest = z.infer<typeof ReactionRequest>;
|
|
264
|
+
export declare const Reaction: z.ZodObject<{
|
|
265
|
+
userId: z.ZodString;
|
|
266
|
+
emoji: z.ZodString;
|
|
267
|
+
}, z.core.$strip>;
|
|
268
|
+
export type Reaction = z.infer<typeof Reaction>;
|
|
269
|
+
export declare const Message: z.ZodObject<{
|
|
270
|
+
id: z.ZodUUID;
|
|
271
|
+
conversationId: z.ZodUUID;
|
|
272
|
+
seq: z.ZodNumber;
|
|
273
|
+
senderId: z.ZodString;
|
|
274
|
+
clientMessageId: z.ZodString;
|
|
275
|
+
kind: z.ZodEnum<{
|
|
276
|
+
system: "system";
|
|
277
|
+
text: "text";
|
|
278
|
+
}>;
|
|
279
|
+
body: z.ZodNullable<z.ZodString>;
|
|
280
|
+
attachments: z.ZodArray<z.ZodObject<{
|
|
281
|
+
id: z.ZodUUID;
|
|
282
|
+
fileName: z.ZodString;
|
|
283
|
+
mediaType: z.ZodString;
|
|
284
|
+
size: z.ZodNumber;
|
|
285
|
+
status: z.ZodEnum<{
|
|
286
|
+
pending: "pending";
|
|
287
|
+
ready: "ready";
|
|
288
|
+
rejected: "rejected";
|
|
289
|
+
}>;
|
|
290
|
+
scanStatus: z.ZodOptional<z.ZodEnum<{
|
|
291
|
+
clean: "clean";
|
|
292
|
+
failed: "failed";
|
|
293
|
+
infected: "infected";
|
|
294
|
+
not_scanned: "not_scanned";
|
|
295
|
+
pending: "pending";
|
|
296
|
+
rejected: "rejected";
|
|
297
|
+
}>>;
|
|
298
|
+
}, z.core.$strip>>;
|
|
299
|
+
reactions: z.ZodArray<z.ZodObject<{
|
|
300
|
+
userId: z.ZodString;
|
|
301
|
+
emoji: z.ZodString;
|
|
302
|
+
}, z.core.$strip>>;
|
|
303
|
+
parentMessageId: z.ZodNullable<z.ZodString>;
|
|
304
|
+
createdAt: z.ZodString;
|
|
305
|
+
editedAt: z.ZodNullable<z.ZodString>;
|
|
306
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
307
|
+
}, z.core.$strip>;
|
|
308
|
+
export type Message = z.infer<typeof Message>;
|
|
309
|
+
export declare const ConversationEventType: z.ZodEnum<{
|
|
310
|
+
"message.created": "message.created";
|
|
311
|
+
"message.deleted": "message.deleted";
|
|
312
|
+
"message.updated": "message.updated";
|
|
313
|
+
"reaction.added": "reaction.added";
|
|
314
|
+
"reaction.removed": "reaction.removed";
|
|
315
|
+
}>;
|
|
316
|
+
export type ConversationEventType = z.infer<typeof ConversationEventType>;
|
|
317
|
+
/**
|
|
318
|
+
* Every change to a conversation allocates the next conversation sequence number.
|
|
319
|
+
* Clients track the last seq they applied and resync with `after_seq` on gaps or reconnect.
|
|
320
|
+
*/
|
|
321
|
+
export declare const ConversationEvent: z.ZodObject<{
|
|
322
|
+
conversationId: z.ZodUUID;
|
|
323
|
+
seq: z.ZodNumber;
|
|
324
|
+
type: z.ZodEnum<{
|
|
325
|
+
"message.created": "message.created";
|
|
326
|
+
"message.deleted": "message.deleted";
|
|
327
|
+
"message.updated": "message.updated";
|
|
328
|
+
"reaction.added": "reaction.added";
|
|
329
|
+
"reaction.removed": "reaction.removed";
|
|
330
|
+
}>;
|
|
331
|
+
message: z.ZodObject<{
|
|
332
|
+
id: z.ZodUUID;
|
|
333
|
+
conversationId: z.ZodUUID;
|
|
334
|
+
seq: z.ZodNumber;
|
|
335
|
+
senderId: z.ZodString;
|
|
336
|
+
clientMessageId: z.ZodString;
|
|
337
|
+
kind: z.ZodEnum<{
|
|
338
|
+
system: "system";
|
|
339
|
+
text: "text";
|
|
340
|
+
}>;
|
|
341
|
+
body: z.ZodNullable<z.ZodString>;
|
|
342
|
+
attachments: z.ZodArray<z.ZodObject<{
|
|
343
|
+
id: z.ZodUUID;
|
|
344
|
+
fileName: z.ZodString;
|
|
345
|
+
mediaType: z.ZodString;
|
|
346
|
+
size: z.ZodNumber;
|
|
347
|
+
status: z.ZodEnum<{
|
|
348
|
+
pending: "pending";
|
|
349
|
+
ready: "ready";
|
|
350
|
+
rejected: "rejected";
|
|
351
|
+
}>;
|
|
352
|
+
scanStatus: z.ZodOptional<z.ZodEnum<{
|
|
353
|
+
clean: "clean";
|
|
354
|
+
failed: "failed";
|
|
355
|
+
infected: "infected";
|
|
356
|
+
not_scanned: "not_scanned";
|
|
357
|
+
pending: "pending";
|
|
358
|
+
rejected: "rejected";
|
|
359
|
+
}>>;
|
|
360
|
+
}, z.core.$strip>>;
|
|
361
|
+
reactions: z.ZodArray<z.ZodObject<{
|
|
362
|
+
userId: z.ZodString;
|
|
363
|
+
emoji: z.ZodString;
|
|
364
|
+
}, z.core.$strip>>;
|
|
365
|
+
parentMessageId: z.ZodNullable<z.ZodString>;
|
|
366
|
+
createdAt: z.ZodString;
|
|
367
|
+
editedAt: z.ZodNullable<z.ZodString>;
|
|
368
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
369
|
+
}, z.core.$strip>;
|
|
370
|
+
reaction: z.ZodNullable<z.ZodObject<{
|
|
371
|
+
userId: z.ZodString;
|
|
372
|
+
emoji: z.ZodString;
|
|
373
|
+
}, z.core.$strip>>;
|
|
374
|
+
createdAt: z.ZodString;
|
|
375
|
+
}, z.core.$strip>;
|
|
376
|
+
export type ConversationEvent = z.infer<typeof ConversationEvent>;
|
|
377
|
+
export declare const ConversationEventPage: z.ZodObject<{
|
|
378
|
+
items: z.ZodArray<z.ZodObject<{
|
|
379
|
+
conversationId: z.ZodUUID;
|
|
380
|
+
seq: z.ZodNumber;
|
|
381
|
+
type: z.ZodEnum<{
|
|
382
|
+
"message.created": "message.created";
|
|
383
|
+
"message.deleted": "message.deleted";
|
|
384
|
+
"message.updated": "message.updated";
|
|
385
|
+
"reaction.added": "reaction.added";
|
|
386
|
+
"reaction.removed": "reaction.removed";
|
|
387
|
+
}>;
|
|
388
|
+
message: z.ZodObject<{
|
|
389
|
+
id: z.ZodUUID;
|
|
390
|
+
conversationId: z.ZodUUID;
|
|
391
|
+
seq: z.ZodNumber;
|
|
392
|
+
senderId: z.ZodString;
|
|
393
|
+
clientMessageId: z.ZodString;
|
|
394
|
+
kind: z.ZodEnum<{
|
|
395
|
+
system: "system";
|
|
396
|
+
text: "text";
|
|
397
|
+
}>;
|
|
398
|
+
body: z.ZodNullable<z.ZodString>;
|
|
399
|
+
attachments: z.ZodArray<z.ZodObject<{
|
|
400
|
+
id: z.ZodUUID;
|
|
401
|
+
fileName: z.ZodString;
|
|
402
|
+
mediaType: z.ZodString;
|
|
403
|
+
size: z.ZodNumber;
|
|
404
|
+
status: z.ZodEnum<{
|
|
405
|
+
pending: "pending";
|
|
406
|
+
ready: "ready";
|
|
407
|
+
rejected: "rejected";
|
|
408
|
+
}>;
|
|
409
|
+
scanStatus: z.ZodOptional<z.ZodEnum<{
|
|
410
|
+
clean: "clean";
|
|
411
|
+
failed: "failed";
|
|
412
|
+
infected: "infected";
|
|
413
|
+
not_scanned: "not_scanned";
|
|
414
|
+
pending: "pending";
|
|
415
|
+
rejected: "rejected";
|
|
416
|
+
}>>;
|
|
417
|
+
}, z.core.$strip>>;
|
|
418
|
+
reactions: z.ZodArray<z.ZodObject<{
|
|
419
|
+
userId: z.ZodString;
|
|
420
|
+
emoji: z.ZodString;
|
|
421
|
+
}, z.core.$strip>>;
|
|
422
|
+
parentMessageId: z.ZodNullable<z.ZodString>;
|
|
423
|
+
createdAt: z.ZodString;
|
|
424
|
+
editedAt: z.ZodNullable<z.ZodString>;
|
|
425
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
426
|
+
}, z.core.$strip>;
|
|
427
|
+
reaction: z.ZodNullable<z.ZodObject<{
|
|
428
|
+
userId: z.ZodString;
|
|
429
|
+
emoji: z.ZodString;
|
|
430
|
+
}, z.core.$strip>>;
|
|
431
|
+
createdAt: z.ZodString;
|
|
432
|
+
}, z.core.$strip>>;
|
|
433
|
+
lastSeq: z.ZodNumber;
|
|
434
|
+
hasMore: z.ZodBoolean;
|
|
435
|
+
}, z.core.$strip>;
|
|
436
|
+
export type ConversationEventPage = z.infer<typeof ConversationEventPage>;
|
|
437
|
+
export declare const SendMessageResponse: z.ZodObject<{
|
|
438
|
+
message: z.ZodObject<{
|
|
439
|
+
id: z.ZodUUID;
|
|
440
|
+
conversationId: z.ZodUUID;
|
|
441
|
+
seq: z.ZodNumber;
|
|
442
|
+
senderId: z.ZodString;
|
|
443
|
+
clientMessageId: z.ZodString;
|
|
444
|
+
kind: z.ZodEnum<{
|
|
445
|
+
system: "system";
|
|
446
|
+
text: "text";
|
|
447
|
+
}>;
|
|
448
|
+
body: z.ZodNullable<z.ZodString>;
|
|
449
|
+
attachments: z.ZodArray<z.ZodObject<{
|
|
450
|
+
id: z.ZodUUID;
|
|
451
|
+
fileName: z.ZodString;
|
|
452
|
+
mediaType: z.ZodString;
|
|
453
|
+
size: z.ZodNumber;
|
|
454
|
+
status: z.ZodEnum<{
|
|
455
|
+
pending: "pending";
|
|
456
|
+
ready: "ready";
|
|
457
|
+
rejected: "rejected";
|
|
458
|
+
}>;
|
|
459
|
+
scanStatus: z.ZodOptional<z.ZodEnum<{
|
|
460
|
+
clean: "clean";
|
|
461
|
+
failed: "failed";
|
|
462
|
+
infected: "infected";
|
|
463
|
+
not_scanned: "not_scanned";
|
|
464
|
+
pending: "pending";
|
|
465
|
+
rejected: "rejected";
|
|
466
|
+
}>>;
|
|
467
|
+
}, z.core.$strip>>;
|
|
468
|
+
reactions: z.ZodArray<z.ZodObject<{
|
|
469
|
+
userId: z.ZodString;
|
|
470
|
+
emoji: z.ZodString;
|
|
471
|
+
}, z.core.$strip>>;
|
|
472
|
+
parentMessageId: z.ZodNullable<z.ZodString>;
|
|
473
|
+
createdAt: z.ZodString;
|
|
474
|
+
editedAt: z.ZodNullable<z.ZodString>;
|
|
475
|
+
deletedAt: z.ZodNullable<z.ZodString>;
|
|
476
|
+
}, z.core.$strip>;
|
|
477
|
+
created: z.ZodBoolean;
|
|
478
|
+
status: z.ZodLiteral<"sent">;
|
|
479
|
+
}, z.core.$strip>;
|
|
480
|
+
export type SendMessageResponse = z.infer<typeof SendMessageResponse>;
|
|
481
|
+
export declare const UploadIntentRequest: z.ZodObject<{
|
|
482
|
+
conversationId: z.ZodUUID;
|
|
483
|
+
fileName: z.ZodString;
|
|
484
|
+
size: z.ZodNumber;
|
|
485
|
+
mediaType: z.ZodString;
|
|
486
|
+
}, z.core.$strip>;
|
|
487
|
+
export type UploadIntentRequest = z.infer<typeof UploadIntentRequest>;
|
|
488
|
+
export declare const UploadIntentResponse: z.ZodObject<{
|
|
489
|
+
attachment: z.ZodObject<{
|
|
490
|
+
id: z.ZodUUID;
|
|
491
|
+
fileName: z.ZodString;
|
|
492
|
+
mediaType: z.ZodString;
|
|
493
|
+
size: z.ZodNumber;
|
|
494
|
+
status: z.ZodEnum<{
|
|
495
|
+
pending: "pending";
|
|
496
|
+
ready: "ready";
|
|
497
|
+
rejected: "rejected";
|
|
498
|
+
}>;
|
|
499
|
+
scanStatus: z.ZodOptional<z.ZodEnum<{
|
|
500
|
+
clean: "clean";
|
|
501
|
+
failed: "failed";
|
|
502
|
+
infected: "infected";
|
|
503
|
+
not_scanned: "not_scanned";
|
|
504
|
+
pending: "pending";
|
|
505
|
+
rejected: "rejected";
|
|
506
|
+
}>>;
|
|
507
|
+
}, z.core.$strip>;
|
|
508
|
+
uploadUrl: z.ZodString;
|
|
509
|
+
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
510
|
+
expiresAt: z.ZodString;
|
|
511
|
+
}, z.core.$strip>;
|
|
512
|
+
export type UploadIntentResponse = z.infer<typeof UploadIntentResponse>;
|
|
513
|
+
export declare const DownloadUrlResponse: z.ZodObject<{
|
|
514
|
+
url: z.ZodString;
|
|
515
|
+
expiresAt: z.ZodString;
|
|
516
|
+
}, z.core.$strip>;
|
|
517
|
+
export type DownloadUrlResponse = z.infer<typeof DownloadUrlResponse>;
|
|
518
|
+
export declare const ConnectivityStatus: z.ZodEnum<{
|
|
519
|
+
offline: "offline";
|
|
520
|
+
online: "online";
|
|
521
|
+
}>;
|
|
522
|
+
export declare const ManualStatus: z.ZodEnum<{
|
|
523
|
+
available: "available";
|
|
524
|
+
away: "away";
|
|
525
|
+
busy: "busy";
|
|
526
|
+
dnd: "dnd";
|
|
527
|
+
invisible: "invisible";
|
|
528
|
+
}>;
|
|
529
|
+
export type ManualStatus = z.infer<typeof ManualStatus>;
|
|
530
|
+
export declare const PresenceStatus: z.ZodEnum<{
|
|
531
|
+
away: "away";
|
|
532
|
+
busy: "busy";
|
|
533
|
+
dnd: "dnd";
|
|
534
|
+
offline: "offline";
|
|
535
|
+
online: "online";
|
|
536
|
+
}>;
|
|
537
|
+
export type PresenceStatus = z.infer<typeof PresenceStatus>;
|
|
538
|
+
export declare const Presence: z.ZodObject<{
|
|
539
|
+
userId: z.ZodString;
|
|
540
|
+
status: z.ZodEnum<{
|
|
541
|
+
away: "away";
|
|
542
|
+
busy: "busy";
|
|
543
|
+
dnd: "dnd";
|
|
544
|
+
offline: "offline";
|
|
545
|
+
online: "online";
|
|
546
|
+
}>;
|
|
547
|
+
lastSeenAt: z.ZodNullable<z.ZodString>;
|
|
548
|
+
}, z.core.$strip>;
|
|
549
|
+
export type Presence = z.infer<typeof Presence>;
|
|
550
|
+
export declare const ConsoleRole: z.ZodEnum<{
|
|
551
|
+
admin: "admin";
|
|
552
|
+
auditor: "auditor";
|
|
553
|
+
developer: "developer";
|
|
554
|
+
owner: "owner";
|
|
555
|
+
}>;
|
|
556
|
+
export type ConsoleRole = z.infer<typeof ConsoleRole>;
|
|
557
|
+
export declare const EnvironmentName: z.ZodEnum<{
|
|
558
|
+
production: "production";
|
|
559
|
+
staging: "staging";
|
|
560
|
+
}>;
|
|
561
|
+
export type EnvironmentName = z.infer<typeof EnvironmentName>;
|
|
562
|
+
export declare const ServiceScope: z.ZodEnum<{
|
|
563
|
+
"calls:write": "calls:write";
|
|
564
|
+
"messaging:write": "messaging:write";
|
|
565
|
+
"users:write": "users:write";
|
|
566
|
+
}>;
|
|
567
|
+
export type ServiceScope = z.infer<typeof ServiceScope>;
|
|
568
|
+
export declare const CreateProjectRequest: z.ZodObject<{
|
|
569
|
+
slug: z.ZodString;
|
|
570
|
+
name: z.ZodString;
|
|
571
|
+
}, z.core.$strip>;
|
|
572
|
+
export type CreateProjectRequest = z.infer<typeof CreateProjectRequest>;
|
|
573
|
+
export declare const PatchProjectRequest: z.ZodObject<{
|
|
574
|
+
name: z.ZodOptional<z.ZodString>;
|
|
575
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
576
|
+
active: "active";
|
|
577
|
+
disabled: "disabled";
|
|
578
|
+
}>>;
|
|
579
|
+
}, z.core.$strip>;
|
|
580
|
+
export type PatchProjectRequest = z.infer<typeof PatchProjectRequest>;
|
|
581
|
+
export declare const CreateEnvironmentRequest: z.ZodObject<{
|
|
582
|
+
environment: z.ZodEnum<{
|
|
583
|
+
production: "production";
|
|
584
|
+
staging: "staging";
|
|
585
|
+
}>;
|
|
586
|
+
allowedOrigins: z.ZodDefault<z.ZodArray<z.ZodURL>>;
|
|
587
|
+
webhookUrl: z.ZodDefault<z.ZodNullable<z.ZodURL>>;
|
|
588
|
+
livekitKeyRef: z.ZodString;
|
|
589
|
+
pushCredentialRef: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
590
|
+
features: z.ZodPrefault<z.ZodObject<{
|
|
591
|
+
calls: z.ZodDefault<z.ZodBoolean>;
|
|
592
|
+
livestream: z.ZodDefault<z.ZodBoolean>;
|
|
593
|
+
messaging: z.ZodDefault<z.ZodBoolean>;
|
|
594
|
+
presence: z.ZodDefault<z.ZodBoolean>;
|
|
595
|
+
attachments: z.ZodDefault<z.ZodBoolean>;
|
|
596
|
+
singleDeviceCalls: z.ZodDefault<z.ZodBoolean>;
|
|
597
|
+
push: z.ZodDefault<z.ZodBoolean>;
|
|
598
|
+
recording: z.ZodDefault<z.ZodBoolean>;
|
|
599
|
+
}, z.core.$strip>>;
|
|
600
|
+
limits: z.ZodPrefault<z.ZodObject<{
|
|
601
|
+
maxRoomSize: z.ZodDefault<z.ZodNumber>;
|
|
602
|
+
maxConcurrentRooms: z.ZodDefault<z.ZodNumber>;
|
|
603
|
+
tokensPerMinute: z.ZodDefault<z.ZodNumber>;
|
|
604
|
+
}, z.core.$strip>>;
|
|
605
|
+
messagingPolicy: z.ZodPrefault<z.ZodObject<{
|
|
606
|
+
allowDms: z.ZodDefault<z.ZodBoolean>;
|
|
607
|
+
allowGroups: z.ZodDefault<z.ZodBoolean>;
|
|
608
|
+
allowAttachments: z.ZodDefault<z.ZodBoolean>;
|
|
609
|
+
allowThreads: z.ZodDefault<z.ZodBoolean>;
|
|
610
|
+
allowReactions: z.ZodDefault<z.ZodBoolean>;
|
|
611
|
+
maxAttachmentBytes: z.ZodDefault<z.ZodNumber>;
|
|
612
|
+
allowedAttachmentTypes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
613
|
+
retentionDays: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
614
|
+
}, z.core.$strip>>;
|
|
615
|
+
}, z.core.$strip>;
|
|
616
|
+
export type CreateEnvironmentRequest = z.input<typeof CreateEnvironmentRequest>;
|
|
617
|
+
export declare const PatchEnvironmentRequest: z.ZodObject<{
|
|
618
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
619
|
+
active: "active";
|
|
620
|
+
disabled: "disabled";
|
|
621
|
+
}>>;
|
|
622
|
+
allowedOrigins: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
623
|
+
webhookUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
624
|
+
livekitKeyRef: z.ZodOptional<z.ZodString>;
|
|
625
|
+
pushCredentialRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
626
|
+
features: z.ZodOptional<z.ZodObject<{
|
|
627
|
+
calls: z.ZodOptional<z.ZodBoolean>;
|
|
628
|
+
livestream: z.ZodOptional<z.ZodBoolean>;
|
|
629
|
+
messaging: z.ZodOptional<z.ZodBoolean>;
|
|
630
|
+
presence: z.ZodOptional<z.ZodBoolean>;
|
|
631
|
+
attachments: z.ZodOptional<z.ZodBoolean>;
|
|
632
|
+
singleDeviceCalls: z.ZodOptional<z.ZodBoolean>;
|
|
633
|
+
push: z.ZodOptional<z.ZodBoolean>;
|
|
634
|
+
recording: z.ZodOptional<z.ZodBoolean>;
|
|
635
|
+
}, z.core.$strip>>;
|
|
636
|
+
limits: z.ZodOptional<z.ZodObject<{
|
|
637
|
+
maxRoomSize: z.ZodOptional<z.ZodNumber>;
|
|
638
|
+
maxConcurrentRooms: z.ZodOptional<z.ZodNumber>;
|
|
639
|
+
tokensPerMinute: z.ZodOptional<z.ZodNumber>;
|
|
640
|
+
}, z.core.$strip>>;
|
|
641
|
+
messagingPolicy: z.ZodOptional<z.ZodObject<{
|
|
642
|
+
allowDms: z.ZodOptional<z.ZodBoolean>;
|
|
643
|
+
allowGroups: z.ZodOptional<z.ZodBoolean>;
|
|
644
|
+
allowAttachments: z.ZodOptional<z.ZodBoolean>;
|
|
645
|
+
allowThreads: z.ZodOptional<z.ZodBoolean>;
|
|
646
|
+
allowReactions: z.ZodOptional<z.ZodBoolean>;
|
|
647
|
+
maxAttachmentBytes: z.ZodOptional<z.ZodNumber>;
|
|
648
|
+
allowedAttachmentTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
649
|
+
retentionDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
650
|
+
}, z.core.$strip>>;
|
|
651
|
+
}, z.core.$strip>;
|
|
652
|
+
export type PatchEnvironmentRequest = z.infer<typeof PatchEnvironmentRequest>;
|
|
653
|
+
export declare const CreateKeyRequest: z.ZodObject<{
|
|
654
|
+
environmentId: z.ZodUUID;
|
|
655
|
+
displayName: z.ZodString;
|
|
656
|
+
scopes: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
657
|
+
"calls:write": "calls:write";
|
|
658
|
+
"messaging:write": "messaging:write";
|
|
659
|
+
"users:write": "users:write";
|
|
660
|
+
}>>>;
|
|
661
|
+
expiresAt: z.ZodDefault<z.ZodNullable<z.ZodISODateTime>>;
|
|
662
|
+
}, z.core.$strip>;
|
|
663
|
+
export type CreateKeyRequest = z.input<typeof CreateKeyRequest>;
|
|
664
|
+
export declare const GrantRoleRequest: z.ZodObject<{
|
|
665
|
+
email: z.ZodPipe<z.ZodEmail, z.ZodTransform<string, string>>;
|
|
666
|
+
role: z.ZodEnum<{
|
|
667
|
+
admin: "admin";
|
|
668
|
+
auditor: "auditor";
|
|
669
|
+
developer: "developer";
|
|
670
|
+
owner: "owner";
|
|
671
|
+
}>;
|
|
672
|
+
projectId: z.ZodDefault<z.ZodNullable<z.ZodUUID>>;
|
|
673
|
+
}, z.core.$strip>;
|
|
674
|
+
export type GrantRoleRequest = z.input<typeof GrantRoleRequest>;
|
|
675
|
+
export declare const UsageQuery: z.ZodObject<{
|
|
676
|
+
env: z.ZodOptional<z.ZodUUID>;
|
|
677
|
+
from: z.ZodOptional<z.ZodISODate>;
|
|
678
|
+
to: z.ZodOptional<z.ZodISODate>;
|
|
679
|
+
}, z.core.$strip>;
|
|
680
|
+
export declare const Environment: z.ZodObject<{
|
|
681
|
+
id: z.ZodUUID;
|
|
682
|
+
projectId: z.ZodUUID;
|
|
683
|
+
environment: z.ZodEnum<{
|
|
684
|
+
production: "production";
|
|
685
|
+
staging: "staging";
|
|
686
|
+
}>;
|
|
687
|
+
status: z.ZodEnum<{
|
|
688
|
+
active: "active";
|
|
689
|
+
disabled: "disabled";
|
|
690
|
+
}>;
|
|
691
|
+
allowedOrigins: z.ZodArray<z.ZodString>;
|
|
692
|
+
webhookUrl: z.ZodNullable<z.ZodString>;
|
|
693
|
+
webhookSecretConfigured: z.ZodBoolean;
|
|
694
|
+
livekitKeyRef: z.ZodString;
|
|
695
|
+
pushCredentialRef: z.ZodNullable<z.ZodString>;
|
|
696
|
+
features: z.ZodObject<{
|
|
697
|
+
calls: z.ZodDefault<z.ZodBoolean>;
|
|
698
|
+
livestream: z.ZodDefault<z.ZodBoolean>;
|
|
699
|
+
messaging: z.ZodDefault<z.ZodBoolean>;
|
|
700
|
+
presence: z.ZodDefault<z.ZodBoolean>;
|
|
701
|
+
attachments: z.ZodDefault<z.ZodBoolean>;
|
|
702
|
+
singleDeviceCalls: z.ZodDefault<z.ZodBoolean>;
|
|
703
|
+
push: z.ZodDefault<z.ZodBoolean>;
|
|
704
|
+
recording: z.ZodDefault<z.ZodBoolean>;
|
|
705
|
+
}, z.core.$strip>;
|
|
706
|
+
limits: z.ZodObject<{
|
|
707
|
+
maxRoomSize: z.ZodDefault<z.ZodNumber>;
|
|
708
|
+
maxConcurrentRooms: z.ZodDefault<z.ZodNumber>;
|
|
709
|
+
tokensPerMinute: z.ZodDefault<z.ZodNumber>;
|
|
710
|
+
}, z.core.$strip>;
|
|
711
|
+
messagingPolicy: z.ZodObject<{
|
|
712
|
+
allowDms: z.ZodDefault<z.ZodBoolean>;
|
|
713
|
+
allowGroups: z.ZodDefault<z.ZodBoolean>;
|
|
714
|
+
allowAttachments: z.ZodDefault<z.ZodBoolean>;
|
|
715
|
+
allowThreads: z.ZodDefault<z.ZodBoolean>;
|
|
716
|
+
allowReactions: z.ZodDefault<z.ZodBoolean>;
|
|
717
|
+
maxAttachmentBytes: z.ZodDefault<z.ZodNumber>;
|
|
718
|
+
allowedAttachmentTypes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
719
|
+
retentionDays: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
720
|
+
}, z.core.$strip>;
|
|
721
|
+
createdAt: z.ZodString;
|
|
722
|
+
updatedAt: z.ZodString;
|
|
723
|
+
}, z.core.$strip>;
|
|
724
|
+
export type Environment = z.infer<typeof Environment>;
|
|
725
|
+
export declare const Project: z.ZodObject<{
|
|
726
|
+
id: z.ZodUUID;
|
|
727
|
+
slug: z.ZodString;
|
|
728
|
+
name: z.ZodString;
|
|
729
|
+
status: z.ZodEnum<{
|
|
730
|
+
active: "active";
|
|
731
|
+
disabled: "disabled";
|
|
732
|
+
}>;
|
|
733
|
+
createdAt: z.ZodString;
|
|
734
|
+
environments: z.ZodArray<z.ZodObject<{
|
|
735
|
+
id: z.ZodUUID;
|
|
736
|
+
projectId: z.ZodUUID;
|
|
737
|
+
environment: z.ZodEnum<{
|
|
738
|
+
production: "production";
|
|
739
|
+
staging: "staging";
|
|
740
|
+
}>;
|
|
741
|
+
status: z.ZodEnum<{
|
|
742
|
+
active: "active";
|
|
743
|
+
disabled: "disabled";
|
|
744
|
+
}>;
|
|
745
|
+
allowedOrigins: z.ZodArray<z.ZodString>;
|
|
746
|
+
webhookUrl: z.ZodNullable<z.ZodString>;
|
|
747
|
+
webhookSecretConfigured: z.ZodBoolean;
|
|
748
|
+
livekitKeyRef: z.ZodString;
|
|
749
|
+
pushCredentialRef: z.ZodNullable<z.ZodString>;
|
|
750
|
+
features: z.ZodObject<{
|
|
751
|
+
calls: z.ZodDefault<z.ZodBoolean>;
|
|
752
|
+
livestream: z.ZodDefault<z.ZodBoolean>;
|
|
753
|
+
messaging: z.ZodDefault<z.ZodBoolean>;
|
|
754
|
+
presence: z.ZodDefault<z.ZodBoolean>;
|
|
755
|
+
attachments: z.ZodDefault<z.ZodBoolean>;
|
|
756
|
+
singleDeviceCalls: z.ZodDefault<z.ZodBoolean>;
|
|
757
|
+
push: z.ZodDefault<z.ZodBoolean>;
|
|
758
|
+
recording: z.ZodDefault<z.ZodBoolean>;
|
|
759
|
+
}, z.core.$strip>;
|
|
760
|
+
limits: z.ZodObject<{
|
|
761
|
+
maxRoomSize: z.ZodDefault<z.ZodNumber>;
|
|
762
|
+
maxConcurrentRooms: z.ZodDefault<z.ZodNumber>;
|
|
763
|
+
tokensPerMinute: z.ZodDefault<z.ZodNumber>;
|
|
764
|
+
}, z.core.$strip>;
|
|
765
|
+
messagingPolicy: z.ZodObject<{
|
|
766
|
+
allowDms: z.ZodDefault<z.ZodBoolean>;
|
|
767
|
+
allowGroups: z.ZodDefault<z.ZodBoolean>;
|
|
768
|
+
allowAttachments: z.ZodDefault<z.ZodBoolean>;
|
|
769
|
+
allowThreads: z.ZodDefault<z.ZodBoolean>;
|
|
770
|
+
allowReactions: z.ZodDefault<z.ZodBoolean>;
|
|
771
|
+
maxAttachmentBytes: z.ZodDefault<z.ZodNumber>;
|
|
772
|
+
allowedAttachmentTypes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
773
|
+
retentionDays: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
774
|
+
}, z.core.$strip>;
|
|
775
|
+
createdAt: z.ZodString;
|
|
776
|
+
updatedAt: z.ZodString;
|
|
777
|
+
}, z.core.$strip>>;
|
|
778
|
+
}, z.core.$strip>;
|
|
779
|
+
export type Project = z.infer<typeof Project>;
|
|
780
|
+
/** Service key metadata. The secret itself is never returned after creation. */
|
|
781
|
+
export declare const ServiceKey: z.ZodObject<{
|
|
782
|
+
id: z.ZodString;
|
|
783
|
+
environmentId: z.ZodUUID;
|
|
784
|
+
mode: z.ZodEnum<{
|
|
785
|
+
live: "live";
|
|
786
|
+
test: "test";
|
|
787
|
+
}>;
|
|
788
|
+
displayName: z.ZodString;
|
|
789
|
+
prefix: z.ZodString;
|
|
790
|
+
suffix: z.ZodString;
|
|
791
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
792
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
793
|
+
revokedAt: z.ZodNullable<z.ZodString>;
|
|
794
|
+
lastUsedAt: z.ZodNullable<z.ZodString>;
|
|
795
|
+
createdBy: z.ZodString;
|
|
796
|
+
createdAt: z.ZodString;
|
|
797
|
+
}, z.core.$strip>;
|
|
798
|
+
export type ServiceKey = z.infer<typeof ServiceKey>;
|
|
799
|
+
export declare const CreatedServiceKey: z.ZodObject<{
|
|
800
|
+
key: z.ZodObject<{
|
|
801
|
+
id: z.ZodString;
|
|
802
|
+
environmentId: z.ZodUUID;
|
|
803
|
+
mode: z.ZodEnum<{
|
|
804
|
+
live: "live";
|
|
805
|
+
test: "test";
|
|
806
|
+
}>;
|
|
807
|
+
displayName: z.ZodString;
|
|
808
|
+
prefix: z.ZodString;
|
|
809
|
+
suffix: z.ZodString;
|
|
810
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
811
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
812
|
+
revokedAt: z.ZodNullable<z.ZodString>;
|
|
813
|
+
lastUsedAt: z.ZodNullable<z.ZodString>;
|
|
814
|
+
createdBy: z.ZodString;
|
|
815
|
+
createdAt: z.ZodString;
|
|
816
|
+
}, z.core.$strip>;
|
|
817
|
+
secret: z.ZodString;
|
|
818
|
+
}, z.core.$strip>;
|
|
819
|
+
export type CreatedServiceKey = z.infer<typeof CreatedServiceKey>;
|
|
820
|
+
export declare const WebhookSecret: z.ZodObject<{
|
|
821
|
+
secret: z.ZodString;
|
|
822
|
+
version: z.ZodNumber;
|
|
823
|
+
}, z.core.$strip>;
|
|
824
|
+
export type WebhookSecret = z.infer<typeof WebhookSecret>;
|
|
825
|
+
export declare const UsageRow: z.ZodObject<{
|
|
826
|
+
environmentId: z.ZodUUID;
|
|
827
|
+
date: z.ZodString;
|
|
828
|
+
callCount: z.ZodNumber;
|
|
829
|
+
participantMinutes: z.ZodNumber;
|
|
830
|
+
peakParticipants: z.ZodNumber;
|
|
831
|
+
apiRequests: z.ZodNumber;
|
|
832
|
+
apiErrors: z.ZodNumber;
|
|
833
|
+
tokensIssued: z.ZodNumber;
|
|
834
|
+
messagesSent: z.ZodNumber;
|
|
835
|
+
}, z.core.$strip>;
|
|
836
|
+
export type UsageRow = z.infer<typeof UsageRow>;
|
|
837
|
+
export declare const AuditEvent: z.ZodObject<{
|
|
838
|
+
id: z.ZodUUID;
|
|
839
|
+
actor: z.ZodString;
|
|
840
|
+
projectId: z.ZodNullable<z.ZodString>;
|
|
841
|
+
action: z.ZodString;
|
|
842
|
+
targetType: z.ZodString;
|
|
843
|
+
targetId: z.ZodNullable<z.ZodString>;
|
|
844
|
+
ip: z.ZodNullable<z.ZodString>;
|
|
845
|
+
userAgent: z.ZodNullable<z.ZodString>;
|
|
846
|
+
requestId: z.ZodNullable<z.ZodString>;
|
|
847
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
848
|
+
createdAt: z.ZodString;
|
|
849
|
+
}, z.core.$strip>;
|
|
850
|
+
export type AuditEvent = z.infer<typeof AuditEvent>;
|
|
851
|
+
export declare const AuditPage: z.ZodObject<{
|
|
852
|
+
items: z.ZodArray<z.ZodObject<{
|
|
853
|
+
id: z.ZodUUID;
|
|
854
|
+
actor: z.ZodString;
|
|
855
|
+
projectId: z.ZodNullable<z.ZodString>;
|
|
856
|
+
action: z.ZodString;
|
|
857
|
+
targetType: z.ZodString;
|
|
858
|
+
targetId: z.ZodNullable<z.ZodString>;
|
|
859
|
+
ip: z.ZodNullable<z.ZodString>;
|
|
860
|
+
userAgent: z.ZodNullable<z.ZodString>;
|
|
861
|
+
requestId: z.ZodNullable<z.ZodString>;
|
|
862
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
863
|
+
createdAt: z.ZodString;
|
|
864
|
+
}, z.core.$strip>>;
|
|
865
|
+
nextBefore: z.ZodNullable<z.ZodString>;
|
|
866
|
+
}, z.core.$strip>;
|
|
867
|
+
export type AuditPage = z.infer<typeof AuditPage>;
|
|
868
|
+
export declare const RoleGrant: z.ZodObject<{
|
|
869
|
+
id: z.ZodUUID;
|
|
870
|
+
email: z.ZodString;
|
|
871
|
+
role: z.ZodEnum<{
|
|
872
|
+
admin: "admin";
|
|
873
|
+
auditor: "auditor";
|
|
874
|
+
developer: "developer";
|
|
875
|
+
owner: "owner";
|
|
876
|
+
}>;
|
|
877
|
+
projectId: z.ZodNullable<z.ZodString>;
|
|
878
|
+
createdAt: z.ZodString;
|
|
879
|
+
lastActivityAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
880
|
+
}, z.core.$strip>;
|
|
881
|
+
export type RoleGrant = z.infer<typeof RoleGrant>;
|
|
882
|
+
export declare const AdminMe: z.ZodObject<{
|
|
883
|
+
email: z.ZodString;
|
|
884
|
+
roles: z.ZodArray<z.ZodObject<{
|
|
885
|
+
role: z.ZodEnum<{
|
|
886
|
+
admin: "admin";
|
|
887
|
+
auditor: "auditor";
|
|
888
|
+
developer: "developer";
|
|
889
|
+
owner: "owner";
|
|
890
|
+
}>;
|
|
891
|
+
projectId: z.ZodNullable<z.ZodString>;
|
|
892
|
+
}, z.core.$strip>>;
|
|
893
|
+
}, z.core.$strip>;
|
|
894
|
+
export type AdminMe = z.infer<typeof AdminMe>;
|
|
895
|
+
/** One of the signed-in console user's own sessions. `id` identifies it for revocation only. */
|
|
896
|
+
export declare const ConsoleSession: z.ZodObject<{
|
|
897
|
+
id: z.ZodString;
|
|
898
|
+
current: z.ZodBoolean;
|
|
899
|
+
createdAt: z.ZodString;
|
|
900
|
+
lastSeenAt: z.ZodString;
|
|
901
|
+
expiresAt: z.ZodString;
|
|
902
|
+
ip: z.ZodNullable<z.ZodString>;
|
|
903
|
+
userAgent: z.ZodNullable<z.ZodString>;
|
|
904
|
+
}, z.core.$strip>;
|
|
905
|
+
export type ConsoleSession = z.infer<typeof ConsoleSession>;
|
|
906
|
+
export declare const AuditQuery: z.ZodObject<{
|
|
907
|
+
projectId: z.ZodOptional<z.ZodUUID>;
|
|
908
|
+
action: z.ZodOptional<z.ZodString>;
|
|
909
|
+
actor: z.ZodOptional<z.ZodString>;
|
|
910
|
+
from: z.ZodOptional<z.ZodISODateTime>;
|
|
911
|
+
to: z.ZodOptional<z.ZodISODateTime>;
|
|
912
|
+
before: z.ZodOptional<z.ZodString>;
|
|
913
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
914
|
+
}, z.core.$strip>;
|
|
915
|
+
export declare const AdminCall: z.ZodObject<{
|
|
916
|
+
id: z.ZodUUID;
|
|
917
|
+
environmentId: z.ZodUUID;
|
|
918
|
+
tenantId: z.ZodString;
|
|
919
|
+
productCallId: z.ZodString;
|
|
920
|
+
type: z.ZodEnum<{
|
|
921
|
+
group: "group";
|
|
922
|
+
livestream: "livestream";
|
|
923
|
+
one_to_one: "one_to_one";
|
|
924
|
+
}>;
|
|
925
|
+
status: z.ZodEnum<{
|
|
926
|
+
active: "active";
|
|
927
|
+
ended: "ended";
|
|
928
|
+
}>;
|
|
929
|
+
maxParticipants: z.ZodNumber;
|
|
930
|
+
e2ee: z.ZodBoolean;
|
|
931
|
+
startedAt: z.ZodString;
|
|
932
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
933
|
+
durationSeconds: z.ZodNumber;
|
|
934
|
+
connected: z.ZodNumber;
|
|
935
|
+
participantSessions: z.ZodNumber;
|
|
936
|
+
stale: z.ZodBoolean;
|
|
937
|
+
}, z.core.$strip>;
|
|
938
|
+
export type AdminCall = z.infer<typeof AdminCall>;
|
|
939
|
+
export declare const AdminCallQuery: z.ZodObject<{
|
|
940
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
941
|
+
active: "active";
|
|
942
|
+
all: "all";
|
|
943
|
+
ended: "ended";
|
|
944
|
+
}>>;
|
|
945
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
946
|
+
group: "group";
|
|
947
|
+
livestream: "livestream";
|
|
948
|
+
one_to_one: "one_to_one";
|
|
949
|
+
}>>;
|
|
950
|
+
env: z.ZodOptional<z.ZodUUID>;
|
|
951
|
+
q: z.ZodOptional<z.ZodString>;
|
|
952
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
953
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
954
|
+
}, z.core.$strip>;
|
|
955
|
+
export declare const AdminCallPage: z.ZodObject<{
|
|
956
|
+
items: z.ZodArray<z.ZodObject<{
|
|
957
|
+
id: z.ZodUUID;
|
|
958
|
+
environmentId: z.ZodUUID;
|
|
959
|
+
tenantId: z.ZodString;
|
|
960
|
+
productCallId: z.ZodString;
|
|
961
|
+
type: z.ZodEnum<{
|
|
962
|
+
group: "group";
|
|
963
|
+
livestream: "livestream";
|
|
964
|
+
one_to_one: "one_to_one";
|
|
965
|
+
}>;
|
|
966
|
+
status: z.ZodEnum<{
|
|
967
|
+
active: "active";
|
|
968
|
+
ended: "ended";
|
|
969
|
+
}>;
|
|
970
|
+
maxParticipants: z.ZodNumber;
|
|
971
|
+
e2ee: z.ZodBoolean;
|
|
972
|
+
startedAt: z.ZodString;
|
|
973
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
974
|
+
durationSeconds: z.ZodNumber;
|
|
975
|
+
connected: z.ZodNumber;
|
|
976
|
+
participantSessions: z.ZodNumber;
|
|
977
|
+
stale: z.ZodBoolean;
|
|
978
|
+
}, z.core.$strip>>;
|
|
979
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
980
|
+
}, z.core.$strip>;
|
|
981
|
+
export type AdminCallPage = z.infer<typeof AdminCallPage>;
|
|
982
|
+
export declare const AdminParticipant: z.ZodObject<{
|
|
983
|
+
identity: z.ZodString;
|
|
984
|
+
userId: z.ZodString;
|
|
985
|
+
deviceId: z.ZodString;
|
|
986
|
+
joinedAt: z.ZodString;
|
|
987
|
+
leftAt: z.ZodNullable<z.ZodString>;
|
|
988
|
+
durationSeconds: z.ZodNumber;
|
|
989
|
+
}, z.core.$strip>;
|
|
990
|
+
export type AdminParticipant = z.infer<typeof AdminParticipant>;
|
|
991
|
+
export declare const AdminCallDetail: z.ZodObject<{
|
|
992
|
+
call: z.ZodObject<{
|
|
993
|
+
id: z.ZodUUID;
|
|
994
|
+
environmentId: z.ZodUUID;
|
|
995
|
+
tenantId: z.ZodString;
|
|
996
|
+
productCallId: z.ZodString;
|
|
997
|
+
type: z.ZodEnum<{
|
|
998
|
+
group: "group";
|
|
999
|
+
livestream: "livestream";
|
|
1000
|
+
one_to_one: "one_to_one";
|
|
1001
|
+
}>;
|
|
1002
|
+
status: z.ZodEnum<{
|
|
1003
|
+
active: "active";
|
|
1004
|
+
ended: "ended";
|
|
1005
|
+
}>;
|
|
1006
|
+
maxParticipants: z.ZodNumber;
|
|
1007
|
+
e2ee: z.ZodBoolean;
|
|
1008
|
+
startedAt: z.ZodString;
|
|
1009
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
1010
|
+
durationSeconds: z.ZodNumber;
|
|
1011
|
+
connected: z.ZodNumber;
|
|
1012
|
+
participantSessions: z.ZodNumber;
|
|
1013
|
+
stale: z.ZodBoolean;
|
|
1014
|
+
}, z.core.$strip>;
|
|
1015
|
+
participants: z.ZodArray<z.ZodObject<{
|
|
1016
|
+
identity: z.ZodString;
|
|
1017
|
+
userId: z.ZodString;
|
|
1018
|
+
deviceId: z.ZodString;
|
|
1019
|
+
joinedAt: z.ZodString;
|
|
1020
|
+
leftAt: z.ZodNullable<z.ZodString>;
|
|
1021
|
+
durationSeconds: z.ZodNumber;
|
|
1022
|
+
}, z.core.$strip>>;
|
|
1023
|
+
participantTotal: z.ZodNumber;
|
|
1024
|
+
}, z.core.$strip>;
|
|
1025
|
+
export type AdminCallDetail = z.infer<typeof AdminCallDetail>;
|
|
1026
|
+
export declare const EnvironmentLive: z.ZodObject<{
|
|
1027
|
+
environmentId: z.ZodUUID;
|
|
1028
|
+
environment: z.ZodEnum<{
|
|
1029
|
+
production: "production";
|
|
1030
|
+
staging: "staging";
|
|
1031
|
+
}>;
|
|
1032
|
+
activeCalls: z.ZodObject<{
|
|
1033
|
+
total: z.ZodNumber;
|
|
1034
|
+
one_to_one: z.ZodNumber;
|
|
1035
|
+
group: z.ZodNumber;
|
|
1036
|
+
livestream: z.ZodNumber;
|
|
1037
|
+
}, z.core.$strip>;
|
|
1038
|
+
connectedParticipants: z.ZodNumber;
|
|
1039
|
+
livestreamAudience: z.ZodNumber;
|
|
1040
|
+
staleCalls: z.ZodNumber;
|
|
1041
|
+
limits: z.ZodObject<{
|
|
1042
|
+
maxRoomSize: z.ZodDefault<z.ZodNumber>;
|
|
1043
|
+
maxConcurrentRooms: z.ZodDefault<z.ZodNumber>;
|
|
1044
|
+
tokensPerMinute: z.ZodDefault<z.ZodNumber>;
|
|
1045
|
+
}, z.core.$strip>;
|
|
1046
|
+
webhooks: z.ZodObject<{
|
|
1047
|
+
pending: z.ZodNumber;
|
|
1048
|
+
dead: z.ZodNumber;
|
|
1049
|
+
oldestPendingAt: z.ZodNullable<z.ZodString>;
|
|
1050
|
+
}, z.core.$strip>;
|
|
1051
|
+
}, z.core.$strip>;
|
|
1052
|
+
export type EnvironmentLive = z.infer<typeof EnvironmentLive>;
|
|
1053
|
+
export declare const ProjectLive: z.ZodObject<{
|
|
1054
|
+
generatedAt: z.ZodString;
|
|
1055
|
+
environments: z.ZodArray<z.ZodObject<{
|
|
1056
|
+
environmentId: z.ZodUUID;
|
|
1057
|
+
environment: z.ZodEnum<{
|
|
1058
|
+
production: "production";
|
|
1059
|
+
staging: "staging";
|
|
1060
|
+
}>;
|
|
1061
|
+
activeCalls: z.ZodObject<{
|
|
1062
|
+
total: z.ZodNumber;
|
|
1063
|
+
one_to_one: z.ZodNumber;
|
|
1064
|
+
group: z.ZodNumber;
|
|
1065
|
+
livestream: z.ZodNumber;
|
|
1066
|
+
}, z.core.$strip>;
|
|
1067
|
+
connectedParticipants: z.ZodNumber;
|
|
1068
|
+
livestreamAudience: z.ZodNumber;
|
|
1069
|
+
staleCalls: z.ZodNumber;
|
|
1070
|
+
limits: z.ZodObject<{
|
|
1071
|
+
maxRoomSize: z.ZodDefault<z.ZodNumber>;
|
|
1072
|
+
maxConcurrentRooms: z.ZodDefault<z.ZodNumber>;
|
|
1073
|
+
tokensPerMinute: z.ZodDefault<z.ZodNumber>;
|
|
1074
|
+
}, z.core.$strip>;
|
|
1075
|
+
webhooks: z.ZodObject<{
|
|
1076
|
+
pending: z.ZodNumber;
|
|
1077
|
+
dead: z.ZodNumber;
|
|
1078
|
+
oldestPendingAt: z.ZodNullable<z.ZodString>;
|
|
1079
|
+
}, z.core.$strip>;
|
|
1080
|
+
}, z.core.$strip>>;
|
|
1081
|
+
}, z.core.$strip>;
|
|
1082
|
+
export type ProjectLive = z.infer<typeof ProjectLive>;
|
|
1083
|
+
export declare const UsageCounts: z.ZodObject<{
|
|
1084
|
+
callCount: z.ZodNumber;
|
|
1085
|
+
participantMinutes: z.ZodNumber;
|
|
1086
|
+
peakParticipants: z.ZodNumber;
|
|
1087
|
+
messagesSent: z.ZodNumber;
|
|
1088
|
+
tokensIssued: z.ZodNumber;
|
|
1089
|
+
apiRequests: z.ZodNumber;
|
|
1090
|
+
apiErrors: z.ZodNumber;
|
|
1091
|
+
}, z.core.$strip>;
|
|
1092
|
+
export type UsageCounts = z.infer<typeof UsageCounts>;
|
|
1093
|
+
export declare const UsageSeriesQuery: z.ZodObject<{
|
|
1094
|
+
bucket: z.ZodDefault<z.ZodEnum<{
|
|
1095
|
+
day: "day";
|
|
1096
|
+
hour: "hour";
|
|
1097
|
+
}>>;
|
|
1098
|
+
from: z.ZodString;
|
|
1099
|
+
to: z.ZodString;
|
|
1100
|
+
project: z.ZodOptional<z.ZodUUID>;
|
|
1101
|
+
env: z.ZodOptional<z.ZodUUID>;
|
|
1102
|
+
}, z.core.$strip>;
|
|
1103
|
+
export declare const UsageSeries: z.ZodObject<{
|
|
1104
|
+
bucket: z.ZodEnum<{
|
|
1105
|
+
day: "day";
|
|
1106
|
+
hour: "hour";
|
|
1107
|
+
}>;
|
|
1108
|
+
from: z.ZodString;
|
|
1109
|
+
to: z.ZodString;
|
|
1110
|
+
since: z.ZodNullable<z.ZodString>;
|
|
1111
|
+
points: z.ZodArray<z.ZodObject<{
|
|
1112
|
+
callCount: z.ZodNumber;
|
|
1113
|
+
participantMinutes: z.ZodNumber;
|
|
1114
|
+
peakParticipants: z.ZodNumber;
|
|
1115
|
+
messagesSent: z.ZodNumber;
|
|
1116
|
+
tokensIssued: z.ZodNumber;
|
|
1117
|
+
apiRequests: z.ZodNumber;
|
|
1118
|
+
apiErrors: z.ZodNumber;
|
|
1119
|
+
bucket: z.ZodString;
|
|
1120
|
+
}, z.core.$strip>>;
|
|
1121
|
+
totals: z.ZodObject<{
|
|
1122
|
+
callCount: z.ZodNumber;
|
|
1123
|
+
participantMinutes: z.ZodNumber;
|
|
1124
|
+
peakParticipants: z.ZodNumber;
|
|
1125
|
+
messagesSent: z.ZodNumber;
|
|
1126
|
+
tokensIssued: z.ZodNumber;
|
|
1127
|
+
apiRequests: z.ZodNumber;
|
|
1128
|
+
apiErrors: z.ZodNumber;
|
|
1129
|
+
}, z.core.$strip>;
|
|
1130
|
+
byProject: z.ZodArray<z.ZodObject<{
|
|
1131
|
+
callCount: z.ZodNumber;
|
|
1132
|
+
participantMinutes: z.ZodNumber;
|
|
1133
|
+
peakParticipants: z.ZodNumber;
|
|
1134
|
+
messagesSent: z.ZodNumber;
|
|
1135
|
+
tokensIssued: z.ZodNumber;
|
|
1136
|
+
apiRequests: z.ZodNumber;
|
|
1137
|
+
apiErrors: z.ZodNumber;
|
|
1138
|
+
projectId: z.ZodUUID;
|
|
1139
|
+
}, z.core.$strip>>;
|
|
1140
|
+
}, z.core.$strip>;
|
|
1141
|
+
export type UsageSeries = z.infer<typeof UsageSeries>;
|
|
1142
|
+
export declare const OrganizationLive: z.ZodObject<{
|
|
1143
|
+
generatedAt: z.ZodString;
|
|
1144
|
+
projects: z.ZodArray<z.ZodObject<{
|
|
1145
|
+
projectId: z.ZodUUID;
|
|
1146
|
+
activeCalls: z.ZodNumber;
|
|
1147
|
+
livestreams: z.ZodNumber;
|
|
1148
|
+
connectedParticipants: z.ZodNumber;
|
|
1149
|
+
livestreamAudience: z.ZodNumber;
|
|
1150
|
+
staleCalls: z.ZodNumber;
|
|
1151
|
+
webhooksPending: z.ZodNumber;
|
|
1152
|
+
webhooksDead: z.ZodNumber;
|
|
1153
|
+
}, z.core.$strip>>;
|
|
1154
|
+
}, z.core.$strip>;
|
|
1155
|
+
export type OrganizationLive = z.infer<typeof OrganizationLive>;
|
|
1156
|
+
export declare const WebhookDelivery: z.ZodObject<{
|
|
1157
|
+
id: z.ZodUUID;
|
|
1158
|
+
environmentId: z.ZodUUID;
|
|
1159
|
+
type: z.ZodString;
|
|
1160
|
+
attempts: z.ZodNumber;
|
|
1161
|
+
lastError: z.ZodNullable<z.ZodString>;
|
|
1162
|
+
createdAt: z.ZodString;
|
|
1163
|
+
availableAt: z.ZodString;
|
|
1164
|
+
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
1165
|
+
deadAt: z.ZodNullable<z.ZodString>;
|
|
1166
|
+
}, z.core.$strip>;
|
|
1167
|
+
export type WebhookDelivery = z.infer<typeof WebhookDelivery>;
|
|
1168
|
+
export declare const WebhookEventPage: z.ZodObject<{
|
|
1169
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1170
|
+
id: z.ZodUUID;
|
|
1171
|
+
environmentId: z.ZodUUID;
|
|
1172
|
+
type: z.ZodString;
|
|
1173
|
+
attempts: z.ZodNumber;
|
|
1174
|
+
lastError: z.ZodNullable<z.ZodString>;
|
|
1175
|
+
createdAt: z.ZodString;
|
|
1176
|
+
availableAt: z.ZodString;
|
|
1177
|
+
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
1178
|
+
deadAt: z.ZodNullable<z.ZodString>;
|
|
1179
|
+
}, z.core.$strip>>;
|
|
1180
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
1181
|
+
}, z.core.$strip>;
|
|
1182
|
+
export type WebhookEventPage = z.infer<typeof WebhookEventPage>;
|
|
1183
|
+
export declare const PushPlatform: z.ZodEnum<{
|
|
1184
|
+
android: "android";
|
|
1185
|
+
ios: "ios";
|
|
1186
|
+
}>;
|
|
1187
|
+
/** `fcm` (Android), `apns` (iOS alerts) and `apns_voip` (iOS PushKit, incoming calls only). */
|
|
1188
|
+
export declare const PushProvider: z.ZodEnum<{
|
|
1189
|
+
apns: "apns";
|
|
1190
|
+
apns_voip: "apns_voip";
|
|
1191
|
+
fcm: "fcm";
|
|
1192
|
+
}>;
|
|
1193
|
+
export type PushProvider = z.infer<typeof PushProvider>;
|
|
1194
|
+
export declare const RegisterDeviceRequest: z.ZodObject<{
|
|
1195
|
+
platform: z.ZodEnum<{
|
|
1196
|
+
android: "android";
|
|
1197
|
+
ios: "ios";
|
|
1198
|
+
}>;
|
|
1199
|
+
provider: z.ZodEnum<{
|
|
1200
|
+
apns: "apns";
|
|
1201
|
+
apns_voip: "apns_voip";
|
|
1202
|
+
fcm: "fcm";
|
|
1203
|
+
}>;
|
|
1204
|
+
token: z.ZodString;
|
|
1205
|
+
appId: z.ZodString;
|
|
1206
|
+
apnsEnvironment: z.ZodOptional<z.ZodEnum<{
|
|
1207
|
+
production: "production";
|
|
1208
|
+
sandbox: "sandbox";
|
|
1209
|
+
}>>;
|
|
1210
|
+
}, z.core.$strip>;
|
|
1211
|
+
export type RegisterDeviceRequest = z.infer<typeof RegisterDeviceRequest>;
|
|
1212
|
+
export declare const PushDevice: z.ZodObject<{
|
|
1213
|
+
id: z.ZodUUID;
|
|
1214
|
+
deviceId: z.ZodString;
|
|
1215
|
+
platform: z.ZodEnum<{
|
|
1216
|
+
android: "android";
|
|
1217
|
+
ios: "ios";
|
|
1218
|
+
}>;
|
|
1219
|
+
provider: z.ZodEnum<{
|
|
1220
|
+
apns: "apns";
|
|
1221
|
+
apns_voip: "apns_voip";
|
|
1222
|
+
fcm: "fcm";
|
|
1223
|
+
}>;
|
|
1224
|
+
appId: z.ZodString;
|
|
1225
|
+
updatedAt: z.ZodString;
|
|
1226
|
+
}, z.core.$strip>;
|
|
1227
|
+
export type PushDevice = z.infer<typeof PushDevice>;
|
|
1228
|
+
export declare const NotificationPreferences: z.ZodObject<{
|
|
1229
|
+
calls: z.ZodBoolean;
|
|
1230
|
+
messages: z.ZodBoolean;
|
|
1231
|
+
}, z.core.$strip>;
|
|
1232
|
+
export type NotificationPreferences = z.infer<typeof NotificationPreferences>;
|
|
1233
|
+
/** Product-initiated notification (service key). Call pushes are sent automatically by call signals. */
|
|
1234
|
+
export declare const SendNotificationRequest: z.ZodObject<{
|
|
1235
|
+
tenantId: z.ZodDefault<z.ZodString>;
|
|
1236
|
+
userIds: z.ZodArray<z.ZodString>;
|
|
1237
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
1238
|
+
custom: "custom";
|
|
1239
|
+
message: "message";
|
|
1240
|
+
}>>;
|
|
1241
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1242
|
+
body: z.ZodOptional<z.ZodString>;
|
|
1243
|
+
data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1244
|
+
collapseKey: z.ZodOptional<z.ZodString>;
|
|
1245
|
+
ttlSeconds: z.ZodDefault<z.ZodNumber>;
|
|
1246
|
+
}, z.core.$strip>;
|
|
1247
|
+
export type SendNotificationRequest = z.input<typeof SendNotificationRequest>;
|
|
1248
|
+
export declare const SendNotificationResponse: z.ZodObject<{
|
|
1249
|
+
queued: z.ZodNumber;
|
|
1250
|
+
}, z.core.$strip>;
|
|
1251
|
+
export type SendNotificationResponse = z.infer<typeof SendNotificationResponse>;
|
|
1252
|
+
export declare const RecordingKind: z.ZodEnum<{
|
|
1253
|
+
audio_only: "audio_only";
|
|
1254
|
+
participant: "participant";
|
|
1255
|
+
room_composite: "room_composite";
|
|
1256
|
+
}>;
|
|
1257
|
+
export declare const RecordingOutput: z.ZodEnum<{
|
|
1258
|
+
hls: "hls";
|
|
1259
|
+
mp4: "mp4";
|
|
1260
|
+
ogg: "ogg";
|
|
1261
|
+
}>;
|
|
1262
|
+
export declare const StartRecordingRequest: z.ZodObject<{
|
|
1263
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
1264
|
+
audio_only: "audio_only";
|
|
1265
|
+
participant: "participant";
|
|
1266
|
+
room_composite: "room_composite";
|
|
1267
|
+
}>>;
|
|
1268
|
+
participantIdentity: z.ZodOptional<z.ZodString>;
|
|
1269
|
+
outputs: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
1270
|
+
hls: "hls";
|
|
1271
|
+
mp4: "mp4";
|
|
1272
|
+
ogg: "ogg";
|
|
1273
|
+
}>>>;
|
|
1274
|
+
rtmpUrls: z.ZodDefault<z.ZodArray<z.ZodURL>>;
|
|
1275
|
+
layout: z.ZodDefault<z.ZodEnum<{
|
|
1276
|
+
grid: "grid";
|
|
1277
|
+
"single-speaker": "single-speaker";
|
|
1278
|
+
speaker: "speaker";
|
|
1279
|
+
}>>;
|
|
1280
|
+
}, z.core.$strip>;
|
|
1281
|
+
export type StartRecordingRequest = z.input<typeof StartRecordingRequest>;
|
|
1282
|
+
export declare const RecordingStatus: z.ZodEnum<{
|
|
1283
|
+
aborted: "aborted";
|
|
1284
|
+
active: "active";
|
|
1285
|
+
complete: "complete";
|
|
1286
|
+
deleted: "deleted";
|
|
1287
|
+
ending: "ending";
|
|
1288
|
+
failed: "failed";
|
|
1289
|
+
starting: "starting";
|
|
1290
|
+
}>;
|
|
1291
|
+
export declare const RecordingFile: z.ZodObject<{
|
|
1292
|
+
name: z.ZodString;
|
|
1293
|
+
size: z.ZodNullable<z.ZodNumber>;
|
|
1294
|
+
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
1295
|
+
}, z.core.$strip>;
|
|
1296
|
+
export declare const Recording: z.ZodObject<{
|
|
1297
|
+
id: z.ZodUUID;
|
|
1298
|
+
callId: z.ZodUUID;
|
|
1299
|
+
kind: z.ZodEnum<{
|
|
1300
|
+
audio_only: "audio_only";
|
|
1301
|
+
participant: "participant";
|
|
1302
|
+
room_composite: "room_composite";
|
|
1303
|
+
}>;
|
|
1304
|
+
outputs: z.ZodArray<z.ZodString>;
|
|
1305
|
+
status: z.ZodEnum<{
|
|
1306
|
+
aborted: "aborted";
|
|
1307
|
+
active: "active";
|
|
1308
|
+
complete: "complete";
|
|
1309
|
+
deleted: "deleted";
|
|
1310
|
+
ending: "ending";
|
|
1311
|
+
failed: "failed";
|
|
1312
|
+
starting: "starting";
|
|
1313
|
+
}>;
|
|
1314
|
+
files: z.ZodArray<z.ZodObject<{
|
|
1315
|
+
name: z.ZodString;
|
|
1316
|
+
size: z.ZodNullable<z.ZodNumber>;
|
|
1317
|
+
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
1318
|
+
}, z.core.$strip>>;
|
|
1319
|
+
error: z.ZodNullable<z.ZodString>;
|
|
1320
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
1321
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
1322
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
1323
|
+
createdAt: z.ZodString;
|
|
1324
|
+
}, z.core.$strip>;
|
|
1325
|
+
export type Recording = z.infer<typeof Recording>;
|
|
1326
|
+
export declare const RecordingList: z.ZodObject<{
|
|
1327
|
+
recordings: z.ZodArray<z.ZodObject<{
|
|
1328
|
+
id: z.ZodUUID;
|
|
1329
|
+
callId: z.ZodUUID;
|
|
1330
|
+
kind: z.ZodEnum<{
|
|
1331
|
+
audio_only: "audio_only";
|
|
1332
|
+
participant: "participant";
|
|
1333
|
+
room_composite: "room_composite";
|
|
1334
|
+
}>;
|
|
1335
|
+
outputs: z.ZodArray<z.ZodString>;
|
|
1336
|
+
status: z.ZodEnum<{
|
|
1337
|
+
aborted: "aborted";
|
|
1338
|
+
active: "active";
|
|
1339
|
+
complete: "complete";
|
|
1340
|
+
deleted: "deleted";
|
|
1341
|
+
ending: "ending";
|
|
1342
|
+
failed: "failed";
|
|
1343
|
+
starting: "starting";
|
|
1344
|
+
}>;
|
|
1345
|
+
files: z.ZodArray<z.ZodObject<{
|
|
1346
|
+
name: z.ZodString;
|
|
1347
|
+
size: z.ZodNullable<z.ZodNumber>;
|
|
1348
|
+
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
1349
|
+
}, z.core.$strip>>;
|
|
1350
|
+
error: z.ZodNullable<z.ZodString>;
|
|
1351
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
1352
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
1353
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
1354
|
+
createdAt: z.ZodString;
|
|
1355
|
+
}, z.core.$strip>>;
|
|
1356
|
+
}, z.core.$strip>;
|
|
1357
|
+
export declare const RecordingDownload: z.ZodObject<{
|
|
1358
|
+
url: z.ZodString;
|
|
1359
|
+
expiresAt: z.ZodString;
|
|
1360
|
+
}, z.core.$strip>;
|
|
1361
|
+
export type RecordingDownload = z.infer<typeof RecordingDownload>;
|
|
1362
|
+
export declare const PushDeliveryView: z.ZodObject<{
|
|
1363
|
+
id: z.ZodUUID;
|
|
1364
|
+
environmentId: z.ZodUUID;
|
|
1365
|
+
provider: z.ZodEnum<{
|
|
1366
|
+
apns: "apns";
|
|
1367
|
+
apns_voip: "apns_voip";
|
|
1368
|
+
fcm: "fcm";
|
|
1369
|
+
}>;
|
|
1370
|
+
kind: z.ZodString;
|
|
1371
|
+
status: z.ZodEnum<{
|
|
1372
|
+
dead: "dead";
|
|
1373
|
+
failed: "failed";
|
|
1374
|
+
pending: "pending";
|
|
1375
|
+
sent: "sent";
|
|
1376
|
+
}>;
|
|
1377
|
+
attempts: z.ZodNumber;
|
|
1378
|
+
lastError: z.ZodNullable<z.ZodString>;
|
|
1379
|
+
createdAt: z.ZodString;
|
|
1380
|
+
sentAt: z.ZodNullable<z.ZodString>;
|
|
1381
|
+
}, z.core.$strip>;
|
|
1382
|
+
export declare const ScanSummary: z.ZodObject<{
|
|
1383
|
+
counts: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
1384
|
+
recent: z.ZodArray<z.ZodObject<{
|
|
1385
|
+
id: z.ZodUUID;
|
|
1386
|
+
environmentId: z.ZodUUID;
|
|
1387
|
+
scanStatus: z.ZodString;
|
|
1388
|
+
detectedType: z.ZodNullable<z.ZodString>;
|
|
1389
|
+
scanDetail: z.ZodNullable<z.ZodString>;
|
|
1390
|
+
size: z.ZodNumber;
|
|
1391
|
+
scannedAt: z.ZodNullable<z.ZodString>;
|
|
1392
|
+
}, z.core.$strip>>;
|
|
1393
|
+
}, z.core.$strip>;
|
|
1394
|
+
export declare const OpsOverview: z.ZodObject<{
|
|
1395
|
+
pushDeliveries: z.ZodArray<z.ZodObject<{
|
|
1396
|
+
id: z.ZodUUID;
|
|
1397
|
+
environmentId: z.ZodUUID;
|
|
1398
|
+
provider: z.ZodEnum<{
|
|
1399
|
+
apns: "apns";
|
|
1400
|
+
apns_voip: "apns_voip";
|
|
1401
|
+
fcm: "fcm";
|
|
1402
|
+
}>;
|
|
1403
|
+
kind: z.ZodString;
|
|
1404
|
+
status: z.ZodEnum<{
|
|
1405
|
+
dead: "dead";
|
|
1406
|
+
failed: "failed";
|
|
1407
|
+
pending: "pending";
|
|
1408
|
+
sent: "sent";
|
|
1409
|
+
}>;
|
|
1410
|
+
attempts: z.ZodNumber;
|
|
1411
|
+
lastError: z.ZodNullable<z.ZodString>;
|
|
1412
|
+
createdAt: z.ZodString;
|
|
1413
|
+
sentAt: z.ZodNullable<z.ZodString>;
|
|
1414
|
+
}, z.core.$strip>>;
|
|
1415
|
+
recordings: z.ZodArray<z.ZodObject<{
|
|
1416
|
+
id: z.ZodUUID;
|
|
1417
|
+
callId: z.ZodUUID;
|
|
1418
|
+
kind: z.ZodEnum<{
|
|
1419
|
+
audio_only: "audio_only";
|
|
1420
|
+
participant: "participant";
|
|
1421
|
+
room_composite: "room_composite";
|
|
1422
|
+
}>;
|
|
1423
|
+
outputs: z.ZodArray<z.ZodString>;
|
|
1424
|
+
status: z.ZodEnum<{
|
|
1425
|
+
aborted: "aborted";
|
|
1426
|
+
active: "active";
|
|
1427
|
+
complete: "complete";
|
|
1428
|
+
deleted: "deleted";
|
|
1429
|
+
ending: "ending";
|
|
1430
|
+
failed: "failed";
|
|
1431
|
+
starting: "starting";
|
|
1432
|
+
}>;
|
|
1433
|
+
files: z.ZodArray<z.ZodObject<{
|
|
1434
|
+
name: z.ZodString;
|
|
1435
|
+
size: z.ZodNullable<z.ZodNumber>;
|
|
1436
|
+
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
1437
|
+
}, z.core.$strip>>;
|
|
1438
|
+
error: z.ZodNullable<z.ZodString>;
|
|
1439
|
+
startedAt: z.ZodNullable<z.ZodString>;
|
|
1440
|
+
endedAt: z.ZodNullable<z.ZodString>;
|
|
1441
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
1442
|
+
createdAt: z.ZodString;
|
|
1443
|
+
}, z.core.$strip>>;
|
|
1444
|
+
scans: z.ZodObject<{
|
|
1445
|
+
counts: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
1446
|
+
recent: z.ZodArray<z.ZodObject<{
|
|
1447
|
+
id: z.ZodUUID;
|
|
1448
|
+
environmentId: z.ZodUUID;
|
|
1449
|
+
scanStatus: z.ZodString;
|
|
1450
|
+
detectedType: z.ZodNullable<z.ZodString>;
|
|
1451
|
+
scanDetail: z.ZodNullable<z.ZodString>;
|
|
1452
|
+
size: z.ZodNumber;
|
|
1453
|
+
scannedAt: z.ZodNullable<z.ZodString>;
|
|
1454
|
+
}, z.core.$strip>>;
|
|
1455
|
+
}, z.core.$strip>;
|
|
1456
|
+
}, z.core.$strip>;
|
|
1457
|
+
export type OpsOverview = z.infer<typeof OpsOverview>;
|