@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,666 @@
1
+ import { z } from 'zod/v3';
2
+ import { AiModelTypeEnum } from './agent/ai-model';
3
+ export declare const appPlatformAppSchema: z.ZodEffects<z.ZodObject<{
4
+ key: z.ZodString;
5
+ appRef: z.ZodObject<{
6
+ pluginName: z.ZodString;
7
+ appName: z.ZodString;
8
+ }, "strict", z.ZodTypeAny, {
9
+ pluginName?: string;
10
+ appName?: string;
11
+ }, {
12
+ pluginName?: string;
13
+ appName?: string;
14
+ }>;
15
+ required: z.ZodBoolean;
16
+ enabled: z.ZodDefault<z.ZodBoolean>;
17
+ configurationRef: z.ZodString;
18
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
19
+ }, "strict", z.ZodTypeAny, {
20
+ enabled?: boolean;
21
+ required?: boolean;
22
+ key?: string;
23
+ appRef?: {
24
+ pluginName?: string;
25
+ appName?: string;
26
+ };
27
+ configurationRef?: string;
28
+ dependsOn?: string[];
29
+ }, {
30
+ enabled?: boolean;
31
+ required?: boolean;
32
+ key?: string;
33
+ appRef?: {
34
+ pluginName?: string;
35
+ appName?: string;
36
+ };
37
+ configurationRef?: string;
38
+ dependsOn?: string[];
39
+ }>, {
40
+ key: string;
41
+ required: boolean;
42
+ configurationRef: string;
43
+ dependsOn: string[];
44
+ enabled: boolean;
45
+ appRef: {
46
+ pluginName: string;
47
+ appName: string;
48
+ };
49
+ }, {
50
+ enabled?: boolean;
51
+ required?: boolean;
52
+ key?: string;
53
+ appRef?: {
54
+ pluginName?: string;
55
+ appName?: string;
56
+ };
57
+ configurationRef?: string;
58
+ dependsOn?: string[];
59
+ }>;
60
+ /** Portable product composition. Credentials and database identities never belong here. */
61
+ export declare const appPlatformDefinitionSchema: z.ZodEffects<z.ZodObject<{
62
+ schemaVersion: z.ZodLiteral<1>;
63
+ key: z.ZodString;
64
+ version: z.ZodNumber;
65
+ branding: z.ZodObject<{
66
+ name: z.ZodString;
67
+ description: z.ZodOptional<z.ZodString>;
68
+ logo: z.ZodOptional<z.ZodString>;
69
+ }, "strict", z.ZodTypeAny, {
70
+ name?: string;
71
+ description?: string;
72
+ logo?: string;
73
+ }, {
74
+ name?: string;
75
+ description?: string;
76
+ logo?: string;
77
+ }>;
78
+ registration: z.ZodObject<{
79
+ role: z.ZodLiteral<"APP_USER">;
80
+ organization: z.ZodLiteral<"per-account">;
81
+ }, "strict", z.ZodTypeAny, {
82
+ organization?: "per-account";
83
+ role?: "APP_USER";
84
+ }, {
85
+ organization?: "per-account";
86
+ role?: "APP_USER";
87
+ }>;
88
+ apps: z.ZodArray<z.ZodEffects<z.ZodObject<{
89
+ key: z.ZodString;
90
+ appRef: z.ZodObject<{
91
+ pluginName: z.ZodString;
92
+ appName: z.ZodString;
93
+ }, "strict", z.ZodTypeAny, {
94
+ pluginName?: string;
95
+ appName?: string;
96
+ }, {
97
+ pluginName?: string;
98
+ appName?: string;
99
+ }>;
100
+ required: z.ZodBoolean;
101
+ enabled: z.ZodDefault<z.ZodBoolean>;
102
+ configurationRef: z.ZodString;
103
+ dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
104
+ }, "strict", z.ZodTypeAny, {
105
+ enabled?: boolean;
106
+ required?: boolean;
107
+ key?: string;
108
+ appRef?: {
109
+ pluginName?: string;
110
+ appName?: string;
111
+ };
112
+ configurationRef?: string;
113
+ dependsOn?: string[];
114
+ }, {
115
+ enabled?: boolean;
116
+ required?: boolean;
117
+ key?: string;
118
+ appRef?: {
119
+ pluginName?: string;
120
+ appName?: string;
121
+ };
122
+ configurationRef?: string;
123
+ dependsOn?: string[];
124
+ }>, {
125
+ key: string;
126
+ required: boolean;
127
+ configurationRef: string;
128
+ dependsOn: string[];
129
+ enabled: boolean;
130
+ appRef: {
131
+ pluginName: string;
132
+ appName: string;
133
+ };
134
+ }, {
135
+ enabled?: boolean;
136
+ required?: boolean;
137
+ key?: string;
138
+ appRef?: {
139
+ pluginName?: string;
140
+ appName?: string;
141
+ };
142
+ configurationRef?: string;
143
+ dependsOn?: string[];
144
+ }>, "many">;
145
+ bindings: z.ZodDefault<z.ZodArray<z.ZodObject<{
146
+ type: z.ZodLiteral<"knowledgebase">;
147
+ from: z.ZodObject<{
148
+ app: z.ZodString;
149
+ resource: z.ZodString;
150
+ }, "strict", z.ZodTypeAny, {
151
+ resource?: string;
152
+ app?: string;
153
+ }, {
154
+ resource?: string;
155
+ app?: string;
156
+ }>;
157
+ to: z.ZodObject<{
158
+ app: z.ZodString;
159
+ resource: z.ZodString;
160
+ }, "strict", z.ZodTypeAny, {
161
+ resource?: string;
162
+ app?: string;
163
+ }, {
164
+ resource?: string;
165
+ app?: string;
166
+ }>;
167
+ }, "strict", z.ZodTypeAny, {
168
+ type?: "knowledgebase";
169
+ from?: {
170
+ resource?: string;
171
+ app?: string;
172
+ };
173
+ to?: {
174
+ resource?: string;
175
+ app?: string;
176
+ };
177
+ }, {
178
+ type?: "knowledgebase";
179
+ from?: {
180
+ resource?: string;
181
+ app?: string;
182
+ };
183
+ to?: {
184
+ resource?: string;
185
+ app?: string;
186
+ };
187
+ }>, "many">>;
188
+ experience: z.ZodObject<{
189
+ home: z.ZodString;
190
+ navigation: z.ZodArray<z.ZodString, "many">;
191
+ }, "strict", z.ZodTypeAny, {
192
+ navigation?: string[];
193
+ home?: string;
194
+ }, {
195
+ navigation?: string[];
196
+ home?: string;
197
+ }>;
198
+ entitlements: z.ZodObject<{
199
+ defaultPlanRef: z.ZodString;
200
+ }, "strict", z.ZodTypeAny, {
201
+ defaultPlanRef?: string;
202
+ }, {
203
+ defaultPlanRef?: string;
204
+ }>;
205
+ }, "strict", z.ZodTypeAny, {
206
+ version?: number;
207
+ key?: string;
208
+ schemaVersion?: 1;
209
+ apps?: {
210
+ key: string;
211
+ required: boolean;
212
+ configurationRef: string;
213
+ dependsOn: string[];
214
+ enabled: boolean;
215
+ appRef: {
216
+ pluginName: string;
217
+ appName: string;
218
+ };
219
+ }[];
220
+ branding?: {
221
+ name?: string;
222
+ description?: string;
223
+ logo?: string;
224
+ };
225
+ registration?: {
226
+ organization?: "per-account";
227
+ role?: "APP_USER";
228
+ };
229
+ bindings?: {
230
+ type?: "knowledgebase";
231
+ from?: {
232
+ resource?: string;
233
+ app?: string;
234
+ };
235
+ to?: {
236
+ resource?: string;
237
+ app?: string;
238
+ };
239
+ }[];
240
+ experience?: {
241
+ navigation?: string[];
242
+ home?: string;
243
+ };
244
+ entitlements?: {
245
+ defaultPlanRef?: string;
246
+ };
247
+ }, {
248
+ version?: number;
249
+ key?: string;
250
+ schemaVersion?: 1;
251
+ apps?: {
252
+ enabled?: boolean;
253
+ required?: boolean;
254
+ key?: string;
255
+ appRef?: {
256
+ pluginName?: string;
257
+ appName?: string;
258
+ };
259
+ configurationRef?: string;
260
+ dependsOn?: string[];
261
+ }[];
262
+ branding?: {
263
+ name?: string;
264
+ description?: string;
265
+ logo?: string;
266
+ };
267
+ registration?: {
268
+ organization?: "per-account";
269
+ role?: "APP_USER";
270
+ };
271
+ bindings?: {
272
+ type?: "knowledgebase";
273
+ from?: {
274
+ resource?: string;
275
+ app?: string;
276
+ };
277
+ to?: {
278
+ resource?: string;
279
+ app?: string;
280
+ };
281
+ }[];
282
+ experience?: {
283
+ navigation?: string[];
284
+ home?: string;
285
+ };
286
+ entitlements?: {
287
+ defaultPlanRef?: string;
288
+ };
289
+ }>, {
290
+ version?: number;
291
+ key?: string;
292
+ schemaVersion?: 1;
293
+ apps?: {
294
+ key: string;
295
+ required: boolean;
296
+ configurationRef: string;
297
+ dependsOn: string[];
298
+ enabled: boolean;
299
+ appRef: {
300
+ pluginName: string;
301
+ appName: string;
302
+ };
303
+ }[];
304
+ branding?: {
305
+ name?: string;
306
+ description?: string;
307
+ logo?: string;
308
+ };
309
+ registration?: {
310
+ organization?: "per-account";
311
+ role?: "APP_USER";
312
+ };
313
+ bindings?: {
314
+ type?: "knowledgebase";
315
+ from?: {
316
+ resource?: string;
317
+ app?: string;
318
+ };
319
+ to?: {
320
+ resource?: string;
321
+ app?: string;
322
+ };
323
+ }[];
324
+ experience?: {
325
+ navigation?: string[];
326
+ home?: string;
327
+ };
328
+ entitlements?: {
329
+ defaultPlanRef?: string;
330
+ };
331
+ }, {
332
+ version?: number;
333
+ key?: string;
334
+ schemaVersion?: 1;
335
+ apps?: {
336
+ enabled?: boolean;
337
+ required?: boolean;
338
+ key?: string;
339
+ appRef?: {
340
+ pluginName?: string;
341
+ appName?: string;
342
+ };
343
+ configurationRef?: string;
344
+ dependsOn?: string[];
345
+ }[];
346
+ branding?: {
347
+ name?: string;
348
+ description?: string;
349
+ logo?: string;
350
+ };
351
+ registration?: {
352
+ organization?: "per-account";
353
+ role?: "APP_USER";
354
+ };
355
+ bindings?: {
356
+ type?: "knowledgebase";
357
+ from?: {
358
+ resource?: string;
359
+ app?: string;
360
+ };
361
+ to?: {
362
+ resource?: string;
363
+ app?: string;
364
+ };
365
+ }[];
366
+ experience?: {
367
+ navigation?: string[];
368
+ home?: string;
369
+ };
370
+ entitlements?: {
371
+ defaultPlanRef?: string;
372
+ };
373
+ }>;
374
+ export type AppPlatformDefinition = z.output<typeof appPlatformDefinitionSchema>;
375
+ export type AppPlatformApp = z.output<typeof appPlatformAppSchema>;
376
+ export declare const appPlatformEnvironmentSchema: z.ZodObject<{
377
+ schemaVersion: z.ZodLiteral<1>;
378
+ configurations: z.ZodRecord<z.ZodString, z.ZodObject<{
379
+ primary: z.ZodObject<{
380
+ provider: z.ZodString;
381
+ model: z.ZodString;
382
+ role: z.ZodOptional<z.ZodEnum<["primary", "secondary", "embedding", "reasoning"]>>;
383
+ }, "strict", z.ZodTypeAny, {
384
+ role?: "primary" | "secondary" | "reasoning" | "embedding";
385
+ model?: string;
386
+ provider?: string;
387
+ }, {
388
+ role?: "primary" | "secondary" | "reasoning" | "embedding";
389
+ model?: string;
390
+ provider?: string;
391
+ }>;
392
+ embedding: z.ZodOptional<z.ZodObject<{
393
+ provider: z.ZodString;
394
+ model: z.ZodString;
395
+ role: z.ZodOptional<z.ZodEnum<["primary", "secondary", "embedding", "reasoning"]>>;
396
+ }, "strict", z.ZodTypeAny, {
397
+ role?: "primary" | "secondary" | "reasoning" | "embedding";
398
+ model?: string;
399
+ provider?: string;
400
+ }, {
401
+ role?: "primary" | "secondary" | "reasoning" | "embedding";
402
+ model?: string;
403
+ provider?: string;
404
+ }>>;
405
+ vision: z.ZodOptional<z.ZodObject<{
406
+ provider: z.ZodString;
407
+ model: z.ZodString;
408
+ role: z.ZodOptional<z.ZodEnum<["primary", "secondary", "embedding", "reasoning"]>>;
409
+ }, "strict", z.ZodTypeAny, {
410
+ role?: "primary" | "secondary" | "reasoning" | "embedding";
411
+ model?: string;
412
+ provider?: string;
413
+ }, {
414
+ role?: "primary" | "secondary" | "reasoning" | "embedding";
415
+ model?: string;
416
+ provider?: string;
417
+ }>>;
418
+ speechToText: z.ZodOptional<z.ZodObject<{
419
+ provider: z.ZodString;
420
+ model: z.ZodString;
421
+ role: z.ZodOptional<z.ZodEnum<["primary", "secondary", "embedding", "reasoning"]>>;
422
+ }, "strict", z.ZodTypeAny, {
423
+ role?: "primary" | "secondary" | "reasoning" | "embedding";
424
+ model?: string;
425
+ provider?: string;
426
+ }, {
427
+ role?: "primary" | "secondary" | "reasoning" | "embedding";
428
+ model?: string;
429
+ provider?: string;
430
+ }>>;
431
+ auxiliaryModels: z.ZodDefault<z.ZodArray<z.ZodObject<{
432
+ provider: z.ZodString;
433
+ model: z.ZodString;
434
+ role: z.ZodOptional<z.ZodEnum<["primary", "secondary", "embedding", "reasoning"]>>;
435
+ } & {
436
+ modelType: z.ZodNativeEnum<typeof AiModelTypeEnum>;
437
+ }, "strict", z.ZodTypeAny, {
438
+ role?: "primary" | "secondary" | "reasoning" | "embedding";
439
+ modelType?: AiModelTypeEnum;
440
+ model?: string;
441
+ provider?: string;
442
+ }, {
443
+ role?: "primary" | "secondary" | "reasoning" | "embedding";
444
+ modelType?: AiModelTypeEnum;
445
+ model?: string;
446
+ provider?: string;
447
+ }>, "many">>;
448
+ tools: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodObject<{
449
+ provider: z.ZodString;
450
+ sourceName: z.ZodString;
451
+ }, "strict", z.ZodTypeAny, {
452
+ provider?: string;
453
+ sourceName?: string;
454
+ }, {
455
+ provider?: string;
456
+ sourceName?: string;
457
+ }>, "many">>, {
458
+ provider?: string;
459
+ sourceName?: string;
460
+ }[], {
461
+ provider?: string;
462
+ sourceName?: string;
463
+ }[]>;
464
+ }, "strict", z.ZodTypeAny, {
465
+ primary?: {
466
+ role?: "primary" | "secondary" | "reasoning" | "embedding";
467
+ model?: string;
468
+ provider?: string;
469
+ };
470
+ embedding?: {
471
+ role?: "primary" | "secondary" | "reasoning" | "embedding";
472
+ model?: string;
473
+ provider?: string;
474
+ };
475
+ tools?: {
476
+ provider?: string;
477
+ sourceName?: string;
478
+ }[];
479
+ vision?: {
480
+ role?: "primary" | "secondary" | "reasoning" | "embedding";
481
+ model?: string;
482
+ provider?: string;
483
+ };
484
+ speechToText?: {
485
+ role?: "primary" | "secondary" | "reasoning" | "embedding";
486
+ model?: string;
487
+ provider?: string;
488
+ };
489
+ auxiliaryModels?: {
490
+ role?: "primary" | "secondary" | "reasoning" | "embedding";
491
+ modelType?: AiModelTypeEnum;
492
+ model?: string;
493
+ provider?: string;
494
+ }[];
495
+ }, {
496
+ primary?: {
497
+ role?: "primary" | "secondary" | "reasoning" | "embedding";
498
+ model?: string;
499
+ provider?: string;
500
+ };
501
+ embedding?: {
502
+ role?: "primary" | "secondary" | "reasoning" | "embedding";
503
+ model?: string;
504
+ provider?: string;
505
+ };
506
+ tools?: {
507
+ provider?: string;
508
+ sourceName?: string;
509
+ }[];
510
+ vision?: {
511
+ role?: "primary" | "secondary" | "reasoning" | "embedding";
512
+ model?: string;
513
+ provider?: string;
514
+ };
515
+ speechToText?: {
516
+ role?: "primary" | "secondary" | "reasoning" | "embedding";
517
+ model?: string;
518
+ provider?: string;
519
+ };
520
+ auxiliaryModels?: {
521
+ role?: "primary" | "secondary" | "reasoning" | "embedding";
522
+ modelType?: AiModelTypeEnum;
523
+ model?: string;
524
+ provider?: string;
525
+ }[];
526
+ }>>;
527
+ plans: z.ZodRecord<z.ZodString, z.ZodObject<{
528
+ trialDays: z.ZodNumber;
529
+ creditLimit: z.ZodNumber;
530
+ maxProjects: z.ZodNumber;
531
+ maxUploadBytes: z.ZodNumber;
532
+ maxStorageBytes: z.ZodDefault<z.ZodNumber>;
533
+ maxTemporaryBytes: z.ZodDefault<z.ZodNumber>;
534
+ maxConcurrentRuns: z.ZodNumber;
535
+ }, "strict", z.ZodTypeAny, {
536
+ trialDays?: number;
537
+ creditLimit?: number;
538
+ maxProjects?: number;
539
+ maxUploadBytes?: number;
540
+ maxStorageBytes?: number;
541
+ maxTemporaryBytes?: number;
542
+ maxConcurrentRuns?: number;
543
+ }, {
544
+ trialDays?: number;
545
+ creditLimit?: number;
546
+ maxProjects?: number;
547
+ maxUploadBytes?: number;
548
+ maxStorageBytes?: number;
549
+ maxTemporaryBytes?: number;
550
+ maxConcurrentRuns?: number;
551
+ }>>;
552
+ }, "strict", z.ZodTypeAny, {
553
+ schemaVersion?: 1;
554
+ configurations?: Record<string, {
555
+ primary?: {
556
+ role?: "primary" | "secondary" | "reasoning" | "embedding";
557
+ model?: string;
558
+ provider?: string;
559
+ };
560
+ embedding?: {
561
+ role?: "primary" | "secondary" | "reasoning" | "embedding";
562
+ model?: string;
563
+ provider?: string;
564
+ };
565
+ tools?: {
566
+ provider?: string;
567
+ sourceName?: string;
568
+ }[];
569
+ vision?: {
570
+ role?: "primary" | "secondary" | "reasoning" | "embedding";
571
+ model?: string;
572
+ provider?: string;
573
+ };
574
+ speechToText?: {
575
+ role?: "primary" | "secondary" | "reasoning" | "embedding";
576
+ model?: string;
577
+ provider?: string;
578
+ };
579
+ auxiliaryModels?: {
580
+ role?: "primary" | "secondary" | "reasoning" | "embedding";
581
+ modelType?: AiModelTypeEnum;
582
+ model?: string;
583
+ provider?: string;
584
+ }[];
585
+ }>;
586
+ plans?: Record<string, {
587
+ trialDays?: number;
588
+ creditLimit?: number;
589
+ maxProjects?: number;
590
+ maxUploadBytes?: number;
591
+ maxStorageBytes?: number;
592
+ maxTemporaryBytes?: number;
593
+ maxConcurrentRuns?: number;
594
+ }>;
595
+ }, {
596
+ schemaVersion?: 1;
597
+ configurations?: Record<string, {
598
+ primary?: {
599
+ role?: "primary" | "secondary" | "reasoning" | "embedding";
600
+ model?: string;
601
+ provider?: string;
602
+ };
603
+ embedding?: {
604
+ role?: "primary" | "secondary" | "reasoning" | "embedding";
605
+ model?: string;
606
+ provider?: string;
607
+ };
608
+ tools?: {
609
+ provider?: string;
610
+ sourceName?: string;
611
+ }[];
612
+ vision?: {
613
+ role?: "primary" | "secondary" | "reasoning" | "embedding";
614
+ model?: string;
615
+ provider?: string;
616
+ };
617
+ speechToText?: {
618
+ role?: "primary" | "secondary" | "reasoning" | "embedding";
619
+ model?: string;
620
+ provider?: string;
621
+ };
622
+ auxiliaryModels?: {
623
+ role?: "primary" | "secondary" | "reasoning" | "embedding";
624
+ modelType?: AiModelTypeEnum;
625
+ model?: string;
626
+ provider?: string;
627
+ }[];
628
+ }>;
629
+ plans?: Record<string, {
630
+ trialDays?: number;
631
+ creditLimit?: number;
632
+ maxProjects?: number;
633
+ maxUploadBytes?: number;
634
+ maxStorageBytes?: number;
635
+ maxTemporaryBytes?: number;
636
+ maxConcurrentRuns?: number;
637
+ }>;
638
+ }>;
639
+ export type AppPlatformEnvironment = z.output<typeof appPlatformEnvironmentSchema>;
640
+ export interface AppPlatformConfiguration {
641
+ definition: AppPlatformDefinition;
642
+ environment: AppPlatformEnvironment;
643
+ digest: string;
644
+ }
645
+ export declare function appPlatformAppOrder(definition: AppPlatformDefinition): AppPlatformApp[];
646
+ export interface AppPlatformStatus {
647
+ mode: 'managed-apps';
648
+ branding: AppPlatformDefinition['branding'];
649
+ platformKey: string;
650
+ version: number;
651
+ organizationId: string;
652
+ home: string;
653
+ ready: boolean;
654
+ apps: Array<{
655
+ key: string;
656
+ required: boolean;
657
+ status: 'pending' | 'initializing' | 'ready' | 'failed' | 'blocked' | 'disabled';
658
+ errorCode?: string;
659
+ entries: Array<{
660
+ key: string;
661
+ id: string;
662
+ slug?: string;
663
+ title: string;
664
+ }>;
665
+ }>;
666
+ }
@@ -34,7 +34,7 @@ export type ArtifactLinkDisposition = 'inline' | 'attachment';
34
34
  /** HTML safety profile applied when serving interactive or strict single-file HTML. */
35
35
  export type ArtifactSafeHtmlProfile = 'strict' | 'interactive';
36
36
  /** Audited events emitted by Artifact open/download/management flows. */
37
- export type ArtifactAccessEvent = 'access' | 'download' | 'denied' | 'revoked' | 'expired' | 'archived' | 'deleted';
37
+ export type ArtifactAccessEvent = 'access' | 'download' | 'denied' | 'revoked' | 'expired' | 'archived' | 'deleted' | 'type_repaired';
38
38
  /**
39
39
  * Persistable reference to a Workspace Files object.
40
40
  *
package/src/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './task-control.model';
2
+ export * from './app-platform';
2
3
  export * from './execution-control-admission.schema';
3
4
  export * from './types';
4
5
  export * from './ai/sandbox-execution-control.schema';
@@ -50,6 +51,7 @@ export * from './analytics-query.model';
50
51
  export * from './analytics-source.model';
51
52
  export * from './data-source-type.model';
52
53
  export * from './integration.model';
54
+ export * from './integration-sharing.model';
53
55
  export * from './invite.model';
54
56
  export * from './organization-projects.model';
55
57
  export * from './password-reset.model';
@@ -75,6 +77,7 @@ export type { RuntimeResourceKind, AgentPluginRole, RuntimeResourceCatalogPurpos
75
77
  export * from './desktop-shell.model';
76
78
  export * from './ai/agent-output-delivery.model';
77
79
  export * from './ai/execution-activity.model';
80
+ export * from './ai/conversation-trail.model';
78
81
  export * from './setup-plugins';
79
82
  export * from './default-agent-plugins';
80
83
  export * from './content-document.model';
@@ -90,3 +93,4 @@ export * from './ai/thread-control-view.schema';
90
93
  export * from './ai/thread-control-projection.model';
91
94
  export * from './ai/mcp-operation.model';
92
95
  export * from './ai/mcp-task.schema';
96
+ export * from './user-notification.schema';
@@ -0,0 +1,12 @@
1
+ /** Consumption never grants access to integration credentials or management. */
2
+ export type IntegrationUsage = 'configuration' | 'invoke' | 'bind';
3
+ export type IntegrationSharingPolicy = {
4
+ visibility: 'private' | 'all-organizations' | 'selected-organizations';
5
+ organizationIds: string[];
6
+ usages: IntegrationUsage[];
7
+ };
8
+ /** Supplied by an authenticated request or a host-authorized, persisted runtime binding. */
9
+ export interface IntegrationUsageScope {
10
+ tenantId: string;
11
+ organizationId: string | null;
12
+ }