@xpert-ai/contracts 3.29.0 → 3.30.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.
Files changed (40) hide show
  1. package/index.cjs.js +2691 -1499
  2. package/index.esm.js +3771 -2629
  3. package/package.json +2 -2
  4. package/src/ai/ai-model.model.d.ts +9 -0
  5. package/src/ai/chat-activity.model.d.ts +6 -0
  6. package/src/ai/chat.model.d.ts +7 -2
  7. package/src/ai/conversation-trail.model.d.ts +417 -0
  8. package/src/ai/copilot-model.model.d.ts +3 -0
  9. package/src/ai/copilot-provider.model.d.ts +2 -0
  10. package/src/ai/copilot.model.d.ts +7 -4
  11. package/src/ai/default-model-role.d.ts +41 -0
  12. package/src/ai/execution-activity.model.d.ts +12 -0
  13. package/src/ai/execution-observability.model.d.ts +12 -12
  14. package/src/ai/index.d.ts +3 -0
  15. package/src/ai/membership.model.d.ts +2 -0
  16. package/src/ai/model-discovery.model.d.ts +1 -0
  17. package/src/ai/model-execution-parameters.model.d.ts +14 -14
  18. package/src/ai/model-gateway.model.d.ts +9 -1
  19. package/src/ai/model-management.model.d.ts +358 -0
  20. package/src/ai/model-replacement.model.d.ts +291 -0
  21. package/src/ai/role-permissions.d.ts +59 -2
  22. package/src/ai/thread-activity.model.d.ts +1 -0
  23. package/src/ai/xpert-tool.model.d.ts +4 -3
  24. package/src/ai/xpert-toolset.model.d.ts +4 -3
  25. package/src/ai/xpert.model.d.ts +21 -5
  26. package/src/analytics-definition.model.d.ts +2 -0
  27. package/src/app-platform.d.ts +666 -0
  28. package/src/artifact.model.d.ts +1 -1
  29. package/src/index.d.ts +4 -0
  30. package/src/integration-sharing.model.d.ts +12 -0
  31. package/src/integration.model.d.ts +2 -0
  32. package/src/plugin-application.d.ts +13 -0
  33. package/src/plugin.d.ts +7 -0
  34. package/src/role-permission-modules.d.ts +13 -1
  35. package/src/role-permission.model.d.ts +1 -0
  36. package/src/role.model.d.ts +19 -0
  37. package/src/types.d.ts +1 -0
  38. package/src/user-notification.schema.d.ts +721 -0
  39. package/src/user.model.d.ts +2 -0
  40. package/src/view-extension/model.d.ts +5 -0
@@ -0,0 +1,721 @@
1
+ import { z } from 'zod/v3';
2
+ export declare const notificationClientSchema: z.ZodEnum<["web", "desktop"]>;
3
+ export type NotificationClient = z.infer<typeof notificationClientSchema>;
4
+ export declare const announcementActionSchema: z.ZodObject<{
5
+ type: z.ZodLiteral<"link">;
6
+ label: z.ZodString;
7
+ url: z.ZodEffects<z.ZodString, string, string>;
8
+ }, "strict", z.ZodTypeAny, {
9
+ label?: string;
10
+ type?: "link";
11
+ url?: string;
12
+ }, {
13
+ label?: string;
14
+ type?: "link";
15
+ url?: string;
16
+ }>;
17
+ export declare const announcementContentSchema: z.ZodObject<{
18
+ title: z.ZodString;
19
+ body: z.ZodString;
20
+ category: z.ZodDefault<z.ZodEnum<["general", "maintenance", "model_retirement"]>>;
21
+ severity: z.ZodDefault<z.ZodEnum<["info", "important"]>>;
22
+ clients: z.ZodEffects<z.ZodArray<z.ZodEnum<["web", "desktop"]>, "many">, ("desktop" | "web")[], ("desktop" | "web")[]>;
23
+ startsAt: z.ZodString;
24
+ expiresAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
25
+ action: z.ZodDefault<z.ZodNullable<z.ZodObject<{
26
+ type: z.ZodLiteral<"link">;
27
+ label: z.ZodString;
28
+ url: z.ZodEffects<z.ZodString, string, string>;
29
+ }, "strict", z.ZodTypeAny, {
30
+ label?: string;
31
+ type?: "link";
32
+ url?: string;
33
+ }, {
34
+ label?: string;
35
+ type?: "link";
36
+ url?: string;
37
+ }>>>;
38
+ }, "strict", z.ZodTypeAny, {
39
+ category?: "general" | "maintenance" | "model_retirement";
40
+ title?: string;
41
+ expiresAt?: string;
42
+ action?: {
43
+ label?: string;
44
+ type?: "link";
45
+ url?: string;
46
+ };
47
+ body?: string;
48
+ severity?: "info" | "important";
49
+ clients?: ("desktop" | "web")[];
50
+ startsAt?: string;
51
+ }, {
52
+ category?: "general" | "maintenance" | "model_retirement";
53
+ title?: string;
54
+ expiresAt?: string;
55
+ action?: {
56
+ label?: string;
57
+ type?: "link";
58
+ url?: string;
59
+ };
60
+ body?: string;
61
+ severity?: "info" | "important";
62
+ clients?: ("desktop" | "web")[];
63
+ startsAt?: string;
64
+ }>;
65
+ export declare const createAnnouncementSchema: z.ZodEffects<z.ZodObject<{
66
+ title: z.ZodString;
67
+ body: z.ZodString;
68
+ category: z.ZodDefault<z.ZodEnum<["general", "maintenance", "model_retirement"]>>;
69
+ severity: z.ZodDefault<z.ZodEnum<["info", "important"]>>;
70
+ clients: z.ZodEffects<z.ZodArray<z.ZodEnum<["web", "desktop"]>, "many">, ("desktop" | "web")[], ("desktop" | "web")[]>;
71
+ startsAt: z.ZodString;
72
+ expiresAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
73
+ action: z.ZodDefault<z.ZodNullable<z.ZodObject<{
74
+ type: z.ZodLiteral<"link">;
75
+ label: z.ZodString;
76
+ url: z.ZodEffects<z.ZodString, string, string>;
77
+ }, "strict", z.ZodTypeAny, {
78
+ label?: string;
79
+ type?: "link";
80
+ url?: string;
81
+ }, {
82
+ label?: string;
83
+ type?: "link";
84
+ url?: string;
85
+ }>>>;
86
+ }, "strict", z.ZodTypeAny, {
87
+ category?: "general" | "maintenance" | "model_retirement";
88
+ title?: string;
89
+ expiresAt?: string;
90
+ action?: {
91
+ label?: string;
92
+ type?: "link";
93
+ url?: string;
94
+ };
95
+ body?: string;
96
+ severity?: "info" | "important";
97
+ clients?: ("desktop" | "web")[];
98
+ startsAt?: string;
99
+ }, {
100
+ category?: "general" | "maintenance" | "model_retirement";
101
+ title?: string;
102
+ expiresAt?: string;
103
+ action?: {
104
+ label?: string;
105
+ type?: "link";
106
+ url?: string;
107
+ };
108
+ body?: string;
109
+ severity?: "info" | "important";
110
+ clients?: ("desktop" | "web")[];
111
+ startsAt?: string;
112
+ }>, {
113
+ category?: "general" | "maintenance" | "model_retirement";
114
+ title?: string;
115
+ expiresAt?: string;
116
+ action?: {
117
+ label?: string;
118
+ type?: "link";
119
+ url?: string;
120
+ };
121
+ body?: string;
122
+ severity?: "info" | "important";
123
+ clients?: ("desktop" | "web")[];
124
+ startsAt?: string;
125
+ }, {
126
+ category?: "general" | "maintenance" | "model_retirement";
127
+ title?: string;
128
+ expiresAt?: string;
129
+ action?: {
130
+ label?: string;
131
+ type?: "link";
132
+ url?: string;
133
+ };
134
+ body?: string;
135
+ severity?: "info" | "important";
136
+ clients?: ("desktop" | "web")[];
137
+ startsAt?: string;
138
+ }>;
139
+ export declare const updateAnnouncementSchema: z.ZodEffects<z.ZodObject<{
140
+ title: z.ZodString;
141
+ body: z.ZodString;
142
+ category: z.ZodDefault<z.ZodEnum<["general", "maintenance", "model_retirement"]>>;
143
+ severity: z.ZodDefault<z.ZodEnum<["info", "important"]>>;
144
+ clients: z.ZodEffects<z.ZodArray<z.ZodEnum<["web", "desktop"]>, "many">, ("desktop" | "web")[], ("desktop" | "web")[]>;
145
+ startsAt: z.ZodString;
146
+ expiresAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
147
+ action: z.ZodDefault<z.ZodNullable<z.ZodObject<{
148
+ type: z.ZodLiteral<"link">;
149
+ label: z.ZodString;
150
+ url: z.ZodEffects<z.ZodString, string, string>;
151
+ }, "strict", z.ZodTypeAny, {
152
+ label?: string;
153
+ type?: "link";
154
+ url?: string;
155
+ }, {
156
+ label?: string;
157
+ type?: "link";
158
+ url?: string;
159
+ }>>>;
160
+ } & {
161
+ revision: z.ZodNumber;
162
+ }, "strict", z.ZodTypeAny, {
163
+ category?: "general" | "maintenance" | "model_retirement";
164
+ revision?: number;
165
+ title?: string;
166
+ expiresAt?: string;
167
+ action?: {
168
+ label?: string;
169
+ type?: "link";
170
+ url?: string;
171
+ };
172
+ body?: string;
173
+ severity?: "info" | "important";
174
+ clients?: ("desktop" | "web")[];
175
+ startsAt?: string;
176
+ }, {
177
+ category?: "general" | "maintenance" | "model_retirement";
178
+ revision?: number;
179
+ title?: string;
180
+ expiresAt?: string;
181
+ action?: {
182
+ label?: string;
183
+ type?: "link";
184
+ url?: string;
185
+ };
186
+ body?: string;
187
+ severity?: "info" | "important";
188
+ clients?: ("desktop" | "web")[];
189
+ startsAt?: string;
190
+ }>, {
191
+ category?: "general" | "maintenance" | "model_retirement";
192
+ revision?: number;
193
+ title?: string;
194
+ expiresAt?: string;
195
+ action?: {
196
+ label?: string;
197
+ type?: "link";
198
+ url?: string;
199
+ };
200
+ body?: string;
201
+ severity?: "info" | "important";
202
+ clients?: ("desktop" | "web")[];
203
+ startsAt?: string;
204
+ }, {
205
+ category?: "general" | "maintenance" | "model_retirement";
206
+ revision?: number;
207
+ title?: string;
208
+ expiresAt?: string;
209
+ action?: {
210
+ label?: string;
211
+ type?: "link";
212
+ url?: string;
213
+ };
214
+ body?: string;
215
+ severity?: "info" | "important";
216
+ clients?: ("desktop" | "web")[];
217
+ startsAt?: string;
218
+ }>;
219
+ export declare const announcementRevisionSchema: z.ZodObject<{
220
+ revision: z.ZodNumber;
221
+ }, "strict", z.ZodTypeAny, {
222
+ revision?: number;
223
+ }, {
224
+ revision?: number;
225
+ }>;
226
+ export declare const announcementSchema: z.ZodObject<{
227
+ title: z.ZodString;
228
+ body: z.ZodString;
229
+ category: z.ZodDefault<z.ZodEnum<["general", "maintenance", "model_retirement"]>>;
230
+ severity: z.ZodDefault<z.ZodEnum<["info", "important"]>>;
231
+ clients: z.ZodEffects<z.ZodArray<z.ZodEnum<["web", "desktop"]>, "many">, ("desktop" | "web")[], ("desktop" | "web")[]>;
232
+ startsAt: z.ZodString;
233
+ expiresAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
234
+ action: z.ZodDefault<z.ZodNullable<z.ZodObject<{
235
+ type: z.ZodLiteral<"link">;
236
+ label: z.ZodString;
237
+ url: z.ZodEffects<z.ZodString, string, string>;
238
+ }, "strict", z.ZodTypeAny, {
239
+ label?: string;
240
+ type?: "link";
241
+ url?: string;
242
+ }, {
243
+ label?: string;
244
+ type?: "link";
245
+ url?: string;
246
+ }>>>;
247
+ } & {
248
+ id: z.ZodString;
249
+ status: z.ZodEnum<["draft", "published", "withdrawn"]>;
250
+ revision: z.ZodNumber;
251
+ createdAt: z.ZodString;
252
+ dismissedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
253
+ }, "strict", z.ZodTypeAny, {
254
+ status?: "withdrawn" | "draft" | "published";
255
+ id?: string;
256
+ category?: "general" | "maintenance" | "model_retirement";
257
+ createdAt?: string;
258
+ revision?: number;
259
+ title?: string;
260
+ expiresAt?: string;
261
+ action?: {
262
+ label?: string;
263
+ type?: "link";
264
+ url?: string;
265
+ };
266
+ body?: string;
267
+ severity?: "info" | "important";
268
+ clients?: ("desktop" | "web")[];
269
+ startsAt?: string;
270
+ dismissedAt?: string;
271
+ }, {
272
+ status?: "withdrawn" | "draft" | "published";
273
+ id?: string;
274
+ category?: "general" | "maintenance" | "model_retirement";
275
+ createdAt?: string;
276
+ revision?: number;
277
+ title?: string;
278
+ expiresAt?: string;
279
+ action?: {
280
+ label?: string;
281
+ type?: "link";
282
+ url?: string;
283
+ };
284
+ body?: string;
285
+ severity?: "info" | "important";
286
+ clients?: ("desktop" | "web")[];
287
+ startsAt?: string;
288
+ dismissedAt?: string;
289
+ }>;
290
+ export type AnnouncementInput = z.output<typeof createAnnouncementSchema>;
291
+ export type Announcement = Omit<Required<z.output<typeof announcementSchema>>, 'action'> & {
292
+ action: Required<z.output<typeof announcementActionSchema>> | null;
293
+ };
294
+ export declare const notificationSourceSchema: z.ZodObject<{
295
+ type: z.ZodLiteral<"scheduled_task">;
296
+ taskId: z.ZodString;
297
+ executionId: z.ZodString;
298
+ assistantId: z.ZodString;
299
+ conversationId: z.ZodString;
300
+ }, "strict", z.ZodTypeAny, {
301
+ type?: "scheduled_task";
302
+ conversationId?: string;
303
+ executionId?: string;
304
+ taskId?: string;
305
+ assistantId?: string;
306
+ }, {
307
+ type?: "scheduled_task";
308
+ conversationId?: string;
309
+ executionId?: string;
310
+ taskId?: string;
311
+ assistantId?: string;
312
+ }>;
313
+ export declare const userNotificationSchema: z.ZodObject<{
314
+ id: z.ZodString;
315
+ kind: z.ZodLiteral<"agent.completed">;
316
+ source: z.ZodObject<{
317
+ type: z.ZodLiteral<"scheduled_task">;
318
+ taskId: z.ZodString;
319
+ executionId: z.ZodString;
320
+ assistantId: z.ZodString;
321
+ conversationId: z.ZodString;
322
+ }, "strict", z.ZodTypeAny, {
323
+ type?: "scheduled_task";
324
+ conversationId?: string;
325
+ executionId?: string;
326
+ taskId?: string;
327
+ assistantId?: string;
328
+ }, {
329
+ type?: "scheduled_task";
330
+ conversationId?: string;
331
+ executionId?: string;
332
+ taskId?: string;
333
+ assistantId?: string;
334
+ }>;
335
+ createdAt: z.ZodString;
336
+ readAt: z.ZodNullable<z.ZodString>;
337
+ action: z.ZodObject<{
338
+ type: z.ZodLiteral<"open_conversation">;
339
+ assistantId: z.ZodString;
340
+ conversationId: z.ZodString;
341
+ threadId: z.ZodNullable<z.ZodString>;
342
+ }, "strict", z.ZodTypeAny, {
343
+ type?: "open_conversation";
344
+ conversationId?: string;
345
+ threadId?: string;
346
+ assistantId?: string;
347
+ }, {
348
+ type?: "open_conversation";
349
+ conversationId?: string;
350
+ threadId?: string;
351
+ assistantId?: string;
352
+ }>;
353
+ }, "strict", z.ZodTypeAny, {
354
+ id?: string;
355
+ kind?: "agent.completed";
356
+ createdAt?: string;
357
+ source?: {
358
+ type?: "scheduled_task";
359
+ conversationId?: string;
360
+ executionId?: string;
361
+ taskId?: string;
362
+ assistantId?: string;
363
+ };
364
+ action?: {
365
+ type?: "open_conversation";
366
+ conversationId?: string;
367
+ threadId?: string;
368
+ assistantId?: string;
369
+ };
370
+ readAt?: string;
371
+ }, {
372
+ id?: string;
373
+ kind?: "agent.completed";
374
+ createdAt?: string;
375
+ source?: {
376
+ type?: "scheduled_task";
377
+ conversationId?: string;
378
+ executionId?: string;
379
+ taskId?: string;
380
+ assistantId?: string;
381
+ };
382
+ action?: {
383
+ type?: "open_conversation";
384
+ conversationId?: string;
385
+ threadId?: string;
386
+ assistantId?: string;
387
+ };
388
+ readAt?: string;
389
+ }>;
390
+ export type UserNotification = Omit<Required<z.output<typeof userNotificationSchema>>, 'source' | 'action'> & {
391
+ source: Required<z.output<typeof notificationSourceSchema>>;
392
+ action: Required<NonNullable<z.output<typeof userNotificationSchema>['action']>>;
393
+ };
394
+ export declare const notificationSnapshotSchema: z.ZodObject<{
395
+ supported: z.ZodLiteral<true>;
396
+ version: z.ZodString;
397
+ announcements: z.ZodArray<z.ZodObject<{
398
+ title: z.ZodString;
399
+ body: z.ZodString;
400
+ category: z.ZodDefault<z.ZodEnum<["general", "maintenance", "model_retirement"]>>;
401
+ severity: z.ZodDefault<z.ZodEnum<["info", "important"]>>;
402
+ clients: z.ZodEffects<z.ZodArray<z.ZodEnum<["web", "desktop"]>, "many">, ("desktop" | "web")[], ("desktop" | "web")[]>;
403
+ startsAt: z.ZodString;
404
+ expiresAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
405
+ action: z.ZodDefault<z.ZodNullable<z.ZodObject<{
406
+ type: z.ZodLiteral<"link">;
407
+ label: z.ZodString;
408
+ url: z.ZodEffects<z.ZodString, string, string>;
409
+ }, "strict", z.ZodTypeAny, {
410
+ label?: string;
411
+ type?: "link";
412
+ url?: string;
413
+ }, {
414
+ label?: string;
415
+ type?: "link";
416
+ url?: string;
417
+ }>>>;
418
+ } & {
419
+ id: z.ZodString;
420
+ status: z.ZodEnum<["draft", "published", "withdrawn"]>;
421
+ revision: z.ZodNumber;
422
+ createdAt: z.ZodString;
423
+ dismissedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
424
+ }, "strict", z.ZodTypeAny, {
425
+ status?: "withdrawn" | "draft" | "published";
426
+ id?: string;
427
+ category?: "general" | "maintenance" | "model_retirement";
428
+ createdAt?: string;
429
+ revision?: number;
430
+ title?: string;
431
+ expiresAt?: string;
432
+ action?: {
433
+ label?: string;
434
+ type?: "link";
435
+ url?: string;
436
+ };
437
+ body?: string;
438
+ severity?: "info" | "important";
439
+ clients?: ("desktop" | "web")[];
440
+ startsAt?: string;
441
+ dismissedAt?: string;
442
+ }, {
443
+ status?: "withdrawn" | "draft" | "published";
444
+ id?: string;
445
+ category?: "general" | "maintenance" | "model_retirement";
446
+ createdAt?: string;
447
+ revision?: number;
448
+ title?: string;
449
+ expiresAt?: string;
450
+ action?: {
451
+ label?: string;
452
+ type?: "link";
453
+ url?: string;
454
+ };
455
+ body?: string;
456
+ severity?: "info" | "important";
457
+ clients?: ("desktop" | "web")[];
458
+ startsAt?: string;
459
+ dismissedAt?: string;
460
+ }>, "many">;
461
+ notifications: z.ZodArray<z.ZodObject<{
462
+ id: z.ZodString;
463
+ kind: z.ZodLiteral<"agent.completed">;
464
+ source: z.ZodObject<{
465
+ type: z.ZodLiteral<"scheduled_task">;
466
+ taskId: z.ZodString;
467
+ executionId: z.ZodString;
468
+ assistantId: z.ZodString;
469
+ conversationId: z.ZodString;
470
+ }, "strict", z.ZodTypeAny, {
471
+ type?: "scheduled_task";
472
+ conversationId?: string;
473
+ executionId?: string;
474
+ taskId?: string;
475
+ assistantId?: string;
476
+ }, {
477
+ type?: "scheduled_task";
478
+ conversationId?: string;
479
+ executionId?: string;
480
+ taskId?: string;
481
+ assistantId?: string;
482
+ }>;
483
+ createdAt: z.ZodString;
484
+ readAt: z.ZodNullable<z.ZodString>;
485
+ action: z.ZodObject<{
486
+ type: z.ZodLiteral<"open_conversation">;
487
+ assistantId: z.ZodString;
488
+ conversationId: z.ZodString;
489
+ threadId: z.ZodNullable<z.ZodString>;
490
+ }, "strict", z.ZodTypeAny, {
491
+ type?: "open_conversation";
492
+ conversationId?: string;
493
+ threadId?: string;
494
+ assistantId?: string;
495
+ }, {
496
+ type?: "open_conversation";
497
+ conversationId?: string;
498
+ threadId?: string;
499
+ assistantId?: string;
500
+ }>;
501
+ }, "strict", z.ZodTypeAny, {
502
+ id?: string;
503
+ kind?: "agent.completed";
504
+ createdAt?: string;
505
+ source?: {
506
+ type?: "scheduled_task";
507
+ conversationId?: string;
508
+ executionId?: string;
509
+ taskId?: string;
510
+ assistantId?: string;
511
+ };
512
+ action?: {
513
+ type?: "open_conversation";
514
+ conversationId?: string;
515
+ threadId?: string;
516
+ assistantId?: string;
517
+ };
518
+ readAt?: string;
519
+ }, {
520
+ id?: string;
521
+ kind?: "agent.completed";
522
+ createdAt?: string;
523
+ source?: {
524
+ type?: "scheduled_task";
525
+ conversationId?: string;
526
+ executionId?: string;
527
+ taskId?: string;
528
+ assistantId?: string;
529
+ };
530
+ action?: {
531
+ type?: "open_conversation";
532
+ conversationId?: string;
533
+ threadId?: string;
534
+ assistantId?: string;
535
+ };
536
+ readAt?: string;
537
+ }>, "many">;
538
+ hasMoreAnnouncements: z.ZodBoolean;
539
+ hasMoreNotifications: z.ZodBoolean;
540
+ }, "strict", z.ZodTypeAny, {
541
+ version?: string;
542
+ supported?: true;
543
+ announcements?: {
544
+ status?: "withdrawn" | "draft" | "published";
545
+ id?: string;
546
+ category?: "general" | "maintenance" | "model_retirement";
547
+ createdAt?: string;
548
+ revision?: number;
549
+ title?: string;
550
+ expiresAt?: string;
551
+ action?: {
552
+ label?: string;
553
+ type?: "link";
554
+ url?: string;
555
+ };
556
+ body?: string;
557
+ severity?: "info" | "important";
558
+ clients?: ("desktop" | "web")[];
559
+ startsAt?: string;
560
+ dismissedAt?: string;
561
+ }[];
562
+ notifications?: {
563
+ id?: string;
564
+ kind?: "agent.completed";
565
+ createdAt?: string;
566
+ source?: {
567
+ type?: "scheduled_task";
568
+ conversationId?: string;
569
+ executionId?: string;
570
+ taskId?: string;
571
+ assistantId?: string;
572
+ };
573
+ action?: {
574
+ type?: "open_conversation";
575
+ conversationId?: string;
576
+ threadId?: string;
577
+ assistantId?: string;
578
+ };
579
+ readAt?: string;
580
+ }[];
581
+ hasMoreAnnouncements?: boolean;
582
+ hasMoreNotifications?: boolean;
583
+ }, {
584
+ version?: string;
585
+ supported?: true;
586
+ announcements?: {
587
+ status?: "withdrawn" | "draft" | "published";
588
+ id?: string;
589
+ category?: "general" | "maintenance" | "model_retirement";
590
+ createdAt?: string;
591
+ revision?: number;
592
+ title?: string;
593
+ expiresAt?: string;
594
+ action?: {
595
+ label?: string;
596
+ type?: "link";
597
+ url?: string;
598
+ };
599
+ body?: string;
600
+ severity?: "info" | "important";
601
+ clients?: ("desktop" | "web")[];
602
+ startsAt?: string;
603
+ dismissedAt?: string;
604
+ }[];
605
+ notifications?: {
606
+ id?: string;
607
+ kind?: "agent.completed";
608
+ createdAt?: string;
609
+ source?: {
610
+ type?: "scheduled_task";
611
+ conversationId?: string;
612
+ executionId?: string;
613
+ taskId?: string;
614
+ assistantId?: string;
615
+ };
616
+ action?: {
617
+ type?: "open_conversation";
618
+ conversationId?: string;
619
+ threadId?: string;
620
+ assistantId?: string;
621
+ };
622
+ readAt?: string;
623
+ }[];
624
+ hasMoreAnnouncements?: boolean;
625
+ hasMoreNotifications?: boolean;
626
+ }>;
627
+ export type NotificationSnapshot = Omit<Required<z.output<typeof notificationSnapshotSchema>>, 'announcements' | 'notifications'> & {
628
+ announcements: Announcement[];
629
+ notifications: UserNotification[];
630
+ };
631
+ export declare const notificationChangeSchema: z.ZodObject<{
632
+ schemaVersion: z.ZodLiteral<1>;
633
+ type: z.ZodLiteral<"sync.required">;
634
+ eventId: z.ZodString;
635
+ }, "strict", z.ZodTypeAny, {
636
+ type?: "sync.required";
637
+ schemaVersion?: 1;
638
+ eventId?: string;
639
+ }, {
640
+ type?: "sync.required";
641
+ schemaVersion?: 1;
642
+ eventId?: string;
643
+ }>;
644
+ export declare const notificationOutboxPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
645
+ type: z.ZodLiteral<"changed">;
646
+ }, "strict", z.ZodTypeAny, {
647
+ type?: "changed";
648
+ }, {
649
+ type?: "changed";
650
+ }>, z.ZodObject<{
651
+ type: z.ZodLiteral<"announcement.scheduled">;
652
+ announcementId: z.ZodString;
653
+ revision: z.ZodNumber;
654
+ phase: z.ZodEnum<["start", "expiry"]>;
655
+ }, "strict", z.ZodTypeAny, {
656
+ type?: "announcement.scheduled";
657
+ revision?: number;
658
+ phase?: "start" | "expiry";
659
+ announcementId?: string;
660
+ }, {
661
+ type?: "announcement.scheduled";
662
+ revision?: number;
663
+ phase?: "start" | "expiry";
664
+ announcementId?: string;
665
+ }>, z.ZodObject<{
666
+ type: z.ZodLiteral<"agent.completed">;
667
+ source: z.ZodObject<{
668
+ type: z.ZodLiteral<"scheduled_task">;
669
+ taskId: z.ZodString;
670
+ executionId: z.ZodString;
671
+ assistantId: z.ZodString;
672
+ conversationId: z.ZodString;
673
+ }, "strict", z.ZodTypeAny, {
674
+ type?: "scheduled_task";
675
+ conversationId?: string;
676
+ executionId?: string;
677
+ taskId?: string;
678
+ assistantId?: string;
679
+ }, {
680
+ type?: "scheduled_task";
681
+ conversationId?: string;
682
+ executionId?: string;
683
+ taskId?: string;
684
+ assistantId?: string;
685
+ }>;
686
+ }, "strict", z.ZodTypeAny, {
687
+ type?: "agent.completed";
688
+ source?: {
689
+ type?: "scheduled_task";
690
+ conversationId?: string;
691
+ executionId?: string;
692
+ taskId?: string;
693
+ assistantId?: string;
694
+ };
695
+ }, {
696
+ type?: "agent.completed";
697
+ source?: {
698
+ type?: "scheduled_task";
699
+ conversationId?: string;
700
+ executionId?: string;
701
+ taskId?: string;
702
+ assistantId?: string;
703
+ };
704
+ }>]>;
705
+ export type NotificationOutboxPayload = z.output<typeof notificationOutboxPayloadSchema>;
706
+ export type NotificationDeliveryState = 'pending' | 'accepted' | 'delivered' | 'failed' | 'unknown' | 'cancelled';
707
+ export type NotificationDestination = {
708
+ type: 'in_app';
709
+ tenantId: string;
710
+ userId: string;
711
+ } | {
712
+ type: 'external_identity';
713
+ tenantId: string;
714
+ userId: string;
715
+ integrationId: string;
716
+ bindingId: string;
717
+ bindingRevision: number;
718
+ };
719
+ export declare function parseAnnouncement(value: unknown): Announcement;
720
+ export declare function parseUserNotification(value: unknown): UserNotification;
721
+ export declare function parseNotificationSnapshot(value: unknown): NotificationSnapshot;