@xpert-ai/contracts 3.35.0 → 3.36.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 (97) hide show
  1. package/context-event.cjs.default.js +1 -0
  2. package/context-event.cjs.js +26 -0
  3. package/context-event.cjs.mjs +2 -0
  4. package/context-event.d.ts +1 -0
  5. package/context-event.esm.js +24 -0
  6. package/index.cjs.default.js +1 -0
  7. package/index.cjs.js +291 -299
  8. package/index.cjs.mjs +2 -0
  9. package/index.esm.js +280 -296
  10. package/package.json +18 -2
  11. package/src/agent-event.model.d.ts +88 -0
  12. package/src/agent-event.schema.d.ts +120 -0
  13. package/src/agent-plugin.d.ts +4 -29
  14. package/src/ai/agent-output-delivery.model.d.ts +22 -1
  15. package/src/ai/agent-runtime.model.d.ts +4 -4
  16. package/src/ai/assistant-capability.model.d.ts +0 -1
  17. package/src/ai/assistant-template-manifest.model.d.ts +316 -352
  18. package/src/ai/assistant-template-overview.model.d.ts +0 -4
  19. package/src/ai/assistant-template-setup.model.d.ts +8 -8
  20. package/src/ai/assistant-template.model.d.ts +0 -4
  21. package/src/ai/bosi.model.d.ts +1 -1
  22. package/src/ai/chat-activity.model.d.ts +8 -0
  23. package/src/ai/chat-message.model.d.ts +0 -11
  24. package/src/ai/chat.model.d.ts +1 -0
  25. package/src/ai/cli-execution.model.d.ts +88 -0
  26. package/src/ai/conversation-trail.model.d.ts +274 -274
  27. package/src/ai/copilot-store.model.d.ts +0 -13
  28. package/src/ai/evolution/entities.d.ts +164 -0
  29. package/src/ai/evolution/evaluation.d.ts +7 -0
  30. package/src/ai/evolution/execution-review.d.ts +68 -0
  31. package/src/ai/evolution/index.d.ts +2 -0
  32. package/src/ai/evolution/provider.d.ts +1 -0
  33. package/src/ai/evolution/target.d.ts +5 -0
  34. package/src/ai/execution-activity.model.d.ts +362 -362
  35. package/src/ai/execution-control-evidence.schema.d.ts +18 -18
  36. package/src/ai/execution-observability.model.d.ts +196 -196
  37. package/src/ai/execution-source.model.d.ts +45 -0
  38. package/src/ai/index.d.ts +2 -0
  39. package/src/ai/mcp-execution-control.schema.d.ts +2 -2
  40. package/src/ai/middleware.model.d.ts +1 -0
  41. package/src/ai/model-execution.model.d.ts +5 -108
  42. package/src/ai/model-replacement.model.d.ts +18 -18
  43. package/src/ai/project-configuration-view.model.d.ts +1 -0
  44. package/src/ai/project-pipeline/analytics.d.ts +192 -192
  45. package/src/ai/project-pipeline/commands.schema.d.ts +533 -490
  46. package/src/ai/project-pipeline/configuration-form.d.ts +1976 -1832
  47. package/src/ai/project-pipeline/configuration.schema.d.ts +450 -413
  48. package/src/ai/project-pipeline/contribution.schema.d.ts +688 -639
  49. package/src/ai/project-pipeline/definition.schema.d.ts +400 -356
  50. package/src/ai/project-pipeline/execution-statistics.d.ts +18 -18
  51. package/src/ai/project-pipeline/graph.model.d.ts +5 -0
  52. package/src/ai/project-pipeline/human-wait-statistics.d.ts +2 -2
  53. package/src/ai/project-pipeline/model-usage-statistics.d.ts +4 -4
  54. package/src/ai/project-pipeline/node.schema.d.ts +57 -44
  55. package/src/ai/project-pipeline/operation.schema.d.ts +298 -298
  56. package/src/ai/project-pipeline/plugin-deployment.schema.d.ts +6 -6
  57. package/src/ai/project-pipeline/portfolio.schema.d.ts +468 -468
  58. package/src/ai/project-pipeline/primitives.schema.d.ts +6 -6
  59. package/src/ai/project-pipeline/projection.schema.d.ts +609 -572
  60. package/src/ai/project-pipeline/provider-actions.schema.d.ts +100 -100
  61. package/src/ai/project-pipeline/queue-statistics.d.ts +10 -10
  62. package/src/ai/project-pipeline/runtime.schema.d.ts +60 -60
  63. package/src/ai/project-pipeline/statistics.d.ts +100 -100
  64. package/src/ai/project-task-runtime.model.d.ts +256 -780
  65. package/src/ai/sandbox-execution-control.schema.d.ts +6 -6
  66. package/src/ai/template-installation.model.d.ts +18 -18
  67. package/src/ai/template-lifecycle.model.d.ts +6 -6
  68. package/src/ai/thread-control-view.schema.d.ts +4 -4
  69. package/src/ai/xpert-agent-execution.model.d.ts +4 -0
  70. package/src/ai/xpert-project.model.d.ts +2 -1
  71. package/src/ai/xpert.model.d.ts +0 -34
  72. package/src/ai/xpert.utils.d.ts +0 -1
  73. package/src/analytics/analysis-evidence.model.d.ts +29 -0
  74. package/src/analytics/analytics-certification.model.d.ts +17 -0
  75. package/src/{analytics-definition.model.d.ts → analytics/analytics-definition.model.d.ts} +1 -1
  76. package/src/{analytics-diagnostic.d.ts → analytics/analytics-diagnostic.d.ts} +8 -8
  77. package/src/{analytics-query.model.d.ts → analytics/analytics-query.model.d.ts} +9 -1
  78. package/src/analytics/index.d.ts +7 -0
  79. package/src/{resource-analysis.model.d.ts → analytics/resource-analysis.model.d.ts} +6 -1
  80. package/src/app-platform.d.ts +16 -16
  81. package/src/{artifact-group-reference.model.d.ts → artifacts/artifact-group-reference.model.d.ts} +1 -1
  82. package/src/{artifact-presentation.model.d.ts → artifacts/artifact-presentation.model.d.ts} +1 -1
  83. package/src/{artifact-use-grant-command.d.ts → artifacts/artifact-use-grant-command.d.ts} +1 -1
  84. package/src/{artifact-use-grant.model.d.ts → artifacts/artifact-use-grant.model.d.ts} +2 -2
  85. package/src/{artifact.model.d.ts → artifacts/artifact.model.d.ts} +2 -2
  86. package/src/artifacts/index.d.ts +5 -0
  87. package/src/collaboration.model.d.ts +31 -11
  88. package/src/{content-document.model.d.ts → content/content-document.model.d.ts} +2 -0
  89. package/src/{content-resource.model.d.ts → content/content-resource.model.d.ts} +6 -3
  90. package/src/content/content-transfer.model.d.ts +21 -0
  91. package/src/content/index.d.ts +4 -0
  92. package/src/execution-control-admission.schema.d.ts +2 -2
  93. package/src/index.d.ts +5 -14
  94. package/src/user-notification.schema.d.ts +46 -28
  95. package/src/view-extension/client-commands.d.ts +24 -0
  96. /package/src/{analytics-source.model.d.ts → analytics/analytics-source.model.d.ts} +0 -0
  97. /package/src/{content-reference.model.d.ts → content/content-reference.model.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
- import { IBasePerTenantAndOrganizationEntityModel } from './base-entity.model';
2
- import type { I18nObject } from './i18n.model';
1
+ import { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.model';
2
+ import type { I18nObject } from '../i18n.model';
3
3
  /**
4
4
  * Access policies supported by platform-managed Artifact links.
5
5
  *
@@ -0,0 +1,5 @@
1
+ export * from './artifact.model';
2
+ export * from './artifact-use-grant.model';
3
+ export * from './artifact-use-grant-command';
4
+ export * from './artifact-group-reference.model';
5
+ export * from './artifact-presentation.model';
@@ -1,5 +1,11 @@
1
1
  import { IBasePerTenantAndOrganizationEntityModel } from './base-entity.model';
2
- export type CollaborationEngine = 'yjs';
2
+ /**
3
+ * Selects who owns authoritative content, not a generic merge algorithm.
4
+ * `yjs`: the platform persists/merges CRDT state and the plugin materializes it.
5
+ * `operations`: the domain service commits its own operations; the platform provides
6
+ * authorized sessions, presence and revision invalidation, without accepting content edits.
7
+ */
8
+ export type CollaborationEngine = 'yjs' | 'operations';
3
9
  export type CollaborationDocumentStatus = 'active' | 'archived' | 'deleted';
4
10
  export type CollaborationMaterializationStatus = 'ready' | 'pending' | 'failed';
5
11
  export type CollaborationActorType = 'user' | 'agent' | 'system';
@@ -36,9 +42,19 @@ export interface ICollaborationFocus {
36
42
  elementId?: string | null;
37
43
  fieldKey?: string | null;
38
44
  }
39
- /** A text range expressed as Yjs relative positions, or a set of selected element ids. */
45
+ /** A text range expressed as Yjs relative positions, selected element ids, or a cell range. */
40
46
  export interface ICollaborationSelection {
41
- kind: 'text' | 'elements';
47
+ kind: 'text' | 'elements' | 'cells';
48
+ /** Zero-based, bounded range for operation-backed spreadsheet presence. */
49
+ cells?: {
50
+ sheetId: string;
51
+ startRow: number;
52
+ endRow: number;
53
+ startColumn: number;
54
+ endColumn: number;
55
+ /** Canonical revision whose coordinates this range uses. Absent means unversioned. */
56
+ baseRevision?: number;
57
+ } | null;
42
58
  fieldKey?: string | null;
43
59
  elementIds?: string[] | null;
44
60
  anchorRelativeBase64?: string | null;
@@ -63,8 +79,9 @@ export interface ICollaborationPresence extends ICollaborationActor {
63
79
  updatedAt: number;
64
80
  }
65
81
  /**
66
- * Authoritative, platform-managed state of one plugin collaboration resource.
67
- * Plugin business entities are materialized projections of this Yjs state.
82
+ * Platform registration and lifecycle metadata for one collaboration resource.
83
+ * Only `yjs` stores authoritative content here. For `operations`, content and the
84
+ * current revision remain in the domain service; CRDT fields are compatibility placeholders.
68
85
  */
69
86
  export interface ICollaborationDocument extends IBasePerTenantAndOrganizationEntityModel {
70
87
  /** Provider registered by a plugin, such as `presentation-studio.deck`. */
@@ -72,18 +89,20 @@ export interface ICollaborationDocument extends IBasePerTenantAndOrganizationEnt
72
89
  /** Stable business-resource id understood by the provider. */
73
90
  resourceId: string;
74
91
  engine: CollaborationEngine;
75
- /** Version of the plugin-owned Yjs schema, not the platform database schema. */
92
+ /** Provider schema version used to fence sessions; not the platform database schema. */
76
93
  schemaVersion: number;
77
94
  status: CollaborationDocumentStatus;
78
- /** Complete Yjs state encoded as a base64 update. */
95
+ /** Complete Yjs state encoded as a base64 update; empty for `operations`. */
79
96
  stateBase64: string;
80
- /** State vector corresponding exactly to `stateBase64`. */
97
+ /** Yjs state vector corresponding to `stateBase64`; empty for `operations`. */
81
98
  stateVectorBase64: string;
82
- /** Monotonic platform sequence incremented once for each unique accepted update. */
99
+ /** Yjs update sequence. For `operations`, initialization metadata only; never the live domain revision. */
83
100
  sequenceNumber: number;
101
+ /** Accepted Yjs updates; remains zero for `operations`. */
84
102
  updateCount: number;
85
- /** Highest sequence successfully projected into the plugin business entity. */
103
+ /** Highest materialized Yjs sequence; unused by the `operations` content pipeline. */
86
104
  materializedSequence: number;
105
+ /** Yjs projection health; `operations` starts ready and has no platform projection. */
87
106
  materializationStatus: CollaborationMaterializationStatus;
88
107
  lastMaterializationError?: string | null;
89
108
  workspaceId?: string | null;
@@ -99,7 +118,8 @@ export interface ICollaborationUpdate extends IBasePerTenantAndOrganizationEntit
99
118
  /** Sequence assigned while the document row is locked. */
100
119
  sequenceNumber: number;
101
120
  updateBase64: string;
102
- /** SHA-256 of the decoded update bytes; unique per document. */
121
+ /** SHA-256 deduplication key, unique per document. Ordinary updates hash decoded bytes;
122
+ * schema migrations prefix them with `platform:schema-migration:<targetSchemaVersion>:`. */
103
123
  updateHash: string;
104
124
  origin?: string | null;
105
125
  actorType?: CollaborationActorType | null;
@@ -99,6 +99,8 @@ export interface TextContentEditorRegistration extends ContentEditorMetadata {
99
99
  export interface FileContentEditorRegistration extends ContentEditorMetadata {
100
100
  kind: 'file';
101
101
  concurrency: 'versioned';
102
+ /** Explicit model identity for catalogued files. Owners retain file identity, ACL and CAS writes. */
103
+ resourceType?: import('./content-resource.model').ContentTypeImplementation & import('./content-resource.model').ContentModelIdentity;
102
104
  }
103
105
  export type ContentEditorRegistration = TextContentEditorRegistration | FileContentEditorRegistration | import('./content-resource.model').ResourceContentEditorRegistration;
104
106
  /**
@@ -1,6 +1,6 @@
1
- import type { I18nObject } from './i18n.model';
2
- import type { ArtifactTypeDescriptor } from './artifact.model';
3
- import type { IconDefinition } from './types';
1
+ import type { I18nObject } from '../i18n.model';
2
+ import type { ArtifactTypeDescriptor } from '../artifacts/artifact.model';
3
+ import type { IconDefinition } from '../types';
4
4
  export type ContentAction = 'rename' | 'move' | 'trash' | 'restore' | 'duplicate';
5
5
  export type ContentSourceLocation = {
6
6
  kind: 'file';
@@ -56,6 +56,9 @@ export interface ContentResourceSnapshot extends ContentModelIdentity {
56
56
  /** Opt in only when all Project readers may read the source even without this provider.
57
57
  * Resources with additional native ACLs must omit this field and fail closed offline. */
58
58
  offlineAccess?: 'project';
59
+ /** Provider owns persistence for these source/contained paths. Ordinary Workspace
60
+ * writes are rejected; provider Runtime capabilities retain their authorized writer. */
61
+ writeOwnership?: 'provider';
59
62
  sourceSync?: {
60
63
  status: 'synced' | 'pending' | 'failed';
61
64
  revision?: string;
@@ -0,0 +1,21 @@
1
+ import type { AnalysisEvidenceSnapshot } from '../analytics/analysis-evidence.model';
2
+ import type { ContentSearchProjection } from './content-resource.model';
3
+ /** A fixed, bounded projection obtained by the host from an authorized source.
4
+ * It creates a new editable resource; it never grants source access or implies synchronization. */
5
+ export interface ContentTextTransferSnapshot {
6
+ schema: 'xpert.content-transfer@1';
7
+ source: {
8
+ providerKey: string;
9
+ resourceId: string;
10
+ revision: string;
11
+ title: string;
12
+ };
13
+ sections: ContentSearchProjection['sections'];
14
+ }
15
+ /** Trusted producer output consumed by native Office and Motion adapters. */
16
+ export interface ContentAnalysisTransferSnapshot {
17
+ schema: 'xpert.content-analysis-transfer@1';
18
+ source: ContentTextTransferSnapshot['source'];
19
+ evidence: AnalysisEvidenceSnapshot;
20
+ }
21
+ export type ContentTransferSnapshot = ContentTextTransferSnapshot | ContentAnalysisTransferSnapshot;
@@ -0,0 +1,4 @@
1
+ export * from './content-document.model';
2
+ export * from './content-reference.model';
3
+ export * from './content-resource.model';
4
+ export * from './content-transfer.model';
@@ -76,8 +76,8 @@ export declare const executionControlCapabilitiesSchema: z.ZodObject<{
76
76
  controlContract?: string;
77
77
  }>, "many">;
78
78
  }, "strict", z.ZodTypeAny, {
79
- version?: 1;
80
79
  validUntil?: number;
80
+ version?: 1;
81
81
  protocols?: {
82
82
  taskControl?: 2;
83
83
  managedQueue?: 3;
@@ -96,8 +96,8 @@ export declare const executionControlCapabilitiesSchema: z.ZodObject<{
96
96
  controlContract?: string;
97
97
  }[];
98
98
  }, {
99
- version?: 1;
100
99
  validUntil?: number;
100
+ version?: 1;
101
101
  protocols?: {
102
102
  taskControl?: 2;
103
103
  managedQueue?: 3;
package/src/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './agent-event.model';
1
2
  export * from './task-control.model';
2
3
  export * from './app-platform';
3
4
  export * from './execution-control-admission.schema';
@@ -47,8 +48,7 @@ export * from './user-directory.model';
47
48
  export * from './custom-smtp.model';
48
49
  export * from './date-picker.model';
49
50
  export * from './data-source.model';
50
- export * from './analytics-query.model';
51
- export * from './analytics-source.model';
51
+ export * from './analytics';
52
52
  export * from './data-source-type.model';
53
53
  export * from './integration.model';
54
54
  export * from './integration-sharing.model';
@@ -64,11 +64,7 @@ export * from './ai/index';
64
64
  export * from './agent/index';
65
65
  export * from './api-key.model';
66
66
  export * from './personal-api-key.model';
67
- export * from './artifact.model';
68
- export * from './artifact-use-grant.model';
69
- export * from './artifact-use-grant-command';
70
- export * from './artifact-group-reference.model';
71
- export * from './resource-analysis.model';
67
+ export * from './artifacts';
72
68
  export * from './business-area.model';
73
69
  export * from './collaboration.model';
74
70
  export * from './schedule';
@@ -77,22 +73,17 @@ export * from './plain-object.model';
77
73
  export * from './plugin';
78
74
  export * from './view-extension';
79
75
  export * from './runtime-control';
80
- export type { RuntimeResourceKind, AgentPluginRole, RuntimeResourceCatalogPurpose, RuntimeResourceStatus, RuntimeResourceReference, TemplateAgentSource, RuntimeResourcesSelection, AgentPluginDiagnostic, AgentPluginStorageErrorCode, RuntimeResourceCatalogItem, RuntimeResourceView, RuntimeResourceCatalog, AgentPluginXpertExtension, AgentPluginCommand, AgentPluginCommandPresentation, RuntimeResourceCommand, RuntimeResourceSkillReference, AgentPluginConnectorAuth, AgentPluginConnectorBinding, RuntimeResourceDefinition, RuntimeResourceBindingInput, WorkspaceAgentPlugin, WorkspaceAgentPluginOptions, WorkspaceAgentPluginAddInput, WorkspaceAgentPluginAddResult, InstalledAgentPlugin } from './agent-plugin';
76
+ export type { RuntimeResourceKind, AgentPluginRole, RuntimeResourceCatalogPurpose, RuntimeResourceStatus, RuntimeResourceReference, TemplateAgentSource, RuntimeResourcesSelection, AgentPluginDiagnostic, AgentPluginStorageErrorCode, RuntimeResourceCatalogItem, RuntimeResourceView, RuntimeResourceCatalog, AgentPluginXpertExtension, AgentPluginCommand, AgentPluginCommandPresentation, RuntimeResourceCommand, RuntimeResourceSkillReference, AgentPluginConnectorAuth, AgentPluginConnectorBinding, RuntimeResourceDefinition, RuntimeResourceBindingInput, InstalledAgentPlugin } from './agent-plugin';
81
77
  export * from './desktop-shell.model';
82
78
  export * from './ai/agent-output-delivery.model';
83
79
  export * from './ai/execution-activity.model';
84
80
  export * from './ai/conversation-trail.model';
85
81
  export * from './setup-plugins';
86
82
  export * from './default-agent-plugins';
87
- export * from './content-document.model';
88
- export * from './content-reference.model';
83
+ export * from './content';
89
84
  export * from './agent-plugin-maintenance';
90
85
  export * from './assistant-sharing.model';
91
- export * from './artifact-presentation.model';
92
- export * from './analytics-definition.model';
93
- export * from './analytics-diagnostic';
94
86
  export * from './data-retention.model';
95
- export * from './content-resource.model';
96
87
  export * from './ai/mcp-execution-control.schema';
97
88
  export * from './ai/thread-control-view.schema';
98
89
  export * from './ai/thread-control-projection.model';
@@ -160,8 +160,8 @@ export declare const updateAnnouncementSchema: z.ZodEffects<z.ZodObject<{
160
160
  } & {
161
161
  revision: z.ZodNumber;
162
162
  }, "strict", z.ZodTypeAny, {
163
- category?: "general" | "maintenance" | "model_retirement";
164
163
  revision?: number;
164
+ category?: "general" | "maintenance" | "model_retirement";
165
165
  title?: string;
166
166
  expiresAt?: string;
167
167
  action?: {
@@ -174,8 +174,8 @@ export declare const updateAnnouncementSchema: z.ZodEffects<z.ZodObject<{
174
174
  clients?: ("desktop" | "web")[];
175
175
  startsAt?: string;
176
176
  }, {
177
- category?: "general" | "maintenance" | "model_retirement";
178
177
  revision?: number;
178
+ category?: "general" | "maintenance" | "model_retirement";
179
179
  title?: string;
180
180
  expiresAt?: string;
181
181
  action?: {
@@ -188,8 +188,8 @@ export declare const updateAnnouncementSchema: z.ZodEffects<z.ZodObject<{
188
188
  clients?: ("desktop" | "web")[];
189
189
  startsAt?: string;
190
190
  }>, {
191
- category?: "general" | "maintenance" | "model_retirement";
192
191
  revision?: number;
192
+ category?: "general" | "maintenance" | "model_retirement";
193
193
  title?: string;
194
194
  expiresAt?: string;
195
195
  action?: {
@@ -202,8 +202,8 @@ export declare const updateAnnouncementSchema: z.ZodEffects<z.ZodObject<{
202
202
  clients?: ("desktop" | "web")[];
203
203
  startsAt?: string;
204
204
  }, {
205
- category?: "general" | "maintenance" | "model_retirement";
206
205
  revision?: number;
206
+ category?: "general" | "maintenance" | "model_retirement";
207
207
  title?: string;
208
208
  expiresAt?: string;
209
209
  action?: {
@@ -252,10 +252,10 @@ export declare const announcementSchema: z.ZodObject<{
252
252
  dismissedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
253
253
  }, "strict", z.ZodTypeAny, {
254
254
  status?: "withdrawn" | "draft" | "published";
255
- id?: string;
255
+ revision?: number;
256
256
  category?: "general" | "maintenance" | "model_retirement";
257
+ id?: string;
257
258
  createdAt?: string;
258
- revision?: number;
259
259
  title?: string;
260
260
  expiresAt?: string;
261
261
  action?: {
@@ -270,10 +270,10 @@ export declare const announcementSchema: z.ZodObject<{
270
270
  dismissedAt?: string;
271
271
  }, {
272
272
  status?: "withdrawn" | "draft" | "published";
273
- id?: string;
273
+ revision?: number;
274
274
  category?: "general" | "maintenance" | "model_retirement";
275
+ id?: string;
275
276
  createdAt?: string;
276
- revision?: number;
277
277
  title?: string;
278
278
  expiresAt?: string;
279
279
  action?: {
@@ -333,6 +333,23 @@ export declare const scheduledNotificationOriginSchema: z.ZodObject<{
333
333
  threadId?: string;
334
334
  assistantId?: string;
335
335
  }>;
336
+ export declare const openConversationActionSchema: z.ZodObject<{
337
+ type: z.ZodLiteral<"open_conversation">;
338
+ assistantId: z.ZodString;
339
+ conversationId: z.ZodString;
340
+ threadId: z.ZodNullable<z.ZodString>;
341
+ }, "strict", z.ZodTypeAny, {
342
+ type?: "open_conversation";
343
+ conversationId?: string;
344
+ threadId?: string;
345
+ assistantId?: string;
346
+ }, {
347
+ type?: "open_conversation";
348
+ conversationId?: string;
349
+ threadId?: string;
350
+ assistantId?: string;
351
+ }>;
352
+ export type OpenConversationAction = Required<z.output<typeof openConversationActionSchema>>;
336
353
  export declare const userNotificationSchema: z.ZodObject<{
337
354
  id: z.ZodString;
338
355
  kind: z.ZodLiteral<"agent.completed">;
@@ -374,8 +391,9 @@ export declare const userNotificationSchema: z.ZodObject<{
374
391
  assistantId?: string;
375
392
  }>;
376
393
  }, "strict", z.ZodTypeAny, {
377
- id?: string;
378
394
  kind?: "agent.completed";
395
+ id?: string;
396
+ createdAt?: string;
379
397
  source?: {
380
398
  type?: "scheduled_task";
381
399
  conversationId?: string;
@@ -383,7 +401,6 @@ export declare const userNotificationSchema: z.ZodObject<{
383
401
  taskId?: string;
384
402
  assistantId?: string;
385
403
  };
386
- createdAt?: string;
387
404
  action?: {
388
405
  type?: "open_conversation";
389
406
  conversationId?: string;
@@ -392,8 +409,9 @@ export declare const userNotificationSchema: z.ZodObject<{
392
409
  };
393
410
  readAt?: string;
394
411
  }, {
395
- id?: string;
396
412
  kind?: "agent.completed";
413
+ id?: string;
414
+ createdAt?: string;
397
415
  source?: {
398
416
  type?: "scheduled_task";
399
417
  conversationId?: string;
@@ -401,7 +419,6 @@ export declare const userNotificationSchema: z.ZodObject<{
401
419
  taskId?: string;
402
420
  assistantId?: string;
403
421
  };
404
- createdAt?: string;
405
422
  action?: {
406
423
  type?: "open_conversation";
407
424
  conversationId?: string;
@@ -446,10 +463,10 @@ export declare const notificationSnapshotSchema: z.ZodObject<{
446
463
  dismissedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
447
464
  }, "strict", z.ZodTypeAny, {
448
465
  status?: "withdrawn" | "draft" | "published";
449
- id?: string;
466
+ revision?: number;
450
467
  category?: "general" | "maintenance" | "model_retirement";
468
+ id?: string;
451
469
  createdAt?: string;
452
- revision?: number;
453
470
  title?: string;
454
471
  expiresAt?: string;
455
472
  action?: {
@@ -464,10 +481,10 @@ export declare const notificationSnapshotSchema: z.ZodObject<{
464
481
  dismissedAt?: string;
465
482
  }, {
466
483
  status?: "withdrawn" | "draft" | "published";
467
- id?: string;
484
+ revision?: number;
468
485
  category?: "general" | "maintenance" | "model_retirement";
486
+ id?: string;
469
487
  createdAt?: string;
470
- revision?: number;
471
488
  title?: string;
472
489
  expiresAt?: string;
473
490
  action?: {
@@ -522,8 +539,9 @@ export declare const notificationSnapshotSchema: z.ZodObject<{
522
539
  assistantId?: string;
523
540
  }>;
524
541
  }, "strict", z.ZodTypeAny, {
525
- id?: string;
526
542
  kind?: "agent.completed";
543
+ id?: string;
544
+ createdAt?: string;
527
545
  source?: {
528
546
  type?: "scheduled_task";
529
547
  conversationId?: string;
@@ -531,7 +549,6 @@ export declare const notificationSnapshotSchema: z.ZodObject<{
531
549
  taskId?: string;
532
550
  assistantId?: string;
533
551
  };
534
- createdAt?: string;
535
552
  action?: {
536
553
  type?: "open_conversation";
537
554
  conversationId?: string;
@@ -540,8 +557,9 @@ export declare const notificationSnapshotSchema: z.ZodObject<{
540
557
  };
541
558
  readAt?: string;
542
559
  }, {
543
- id?: string;
544
560
  kind?: "agent.completed";
561
+ id?: string;
562
+ createdAt?: string;
545
563
  source?: {
546
564
  type?: "scheduled_task";
547
565
  conversationId?: string;
@@ -549,7 +567,6 @@ export declare const notificationSnapshotSchema: z.ZodObject<{
549
567
  taskId?: string;
550
568
  assistantId?: string;
551
569
  };
552
- createdAt?: string;
553
570
  action?: {
554
571
  type?: "open_conversation";
555
572
  conversationId?: string;
@@ -565,10 +582,10 @@ export declare const notificationSnapshotSchema: z.ZodObject<{
565
582
  supported?: true;
566
583
  announcements?: {
567
584
  status?: "withdrawn" | "draft" | "published";
568
- id?: string;
585
+ revision?: number;
569
586
  category?: "general" | "maintenance" | "model_retirement";
587
+ id?: string;
570
588
  createdAt?: string;
571
- revision?: number;
572
589
  title?: string;
573
590
  expiresAt?: string;
574
591
  action?: {
@@ -583,8 +600,9 @@ export declare const notificationSnapshotSchema: z.ZodObject<{
583
600
  dismissedAt?: string;
584
601
  }[];
585
602
  notifications?: {
586
- id?: string;
587
603
  kind?: "agent.completed";
604
+ id?: string;
605
+ createdAt?: string;
588
606
  source?: {
589
607
  type?: "scheduled_task";
590
608
  conversationId?: string;
@@ -592,7 +610,6 @@ export declare const notificationSnapshotSchema: z.ZodObject<{
592
610
  taskId?: string;
593
611
  assistantId?: string;
594
612
  };
595
- createdAt?: string;
596
613
  action?: {
597
614
  type?: "open_conversation";
598
615
  conversationId?: string;
@@ -608,10 +625,10 @@ export declare const notificationSnapshotSchema: z.ZodObject<{
608
625
  supported?: true;
609
626
  announcements?: {
610
627
  status?: "withdrawn" | "draft" | "published";
611
- id?: string;
628
+ revision?: number;
612
629
  category?: "general" | "maintenance" | "model_retirement";
630
+ id?: string;
613
631
  createdAt?: string;
614
- revision?: number;
615
632
  title?: string;
616
633
  expiresAt?: string;
617
634
  action?: {
@@ -626,8 +643,9 @@ export declare const notificationSnapshotSchema: z.ZodObject<{
626
643
  dismissedAt?: string;
627
644
  }[];
628
645
  notifications?: {
629
- id?: string;
630
646
  kind?: "agent.completed";
647
+ id?: string;
648
+ createdAt?: string;
631
649
  source?: {
632
650
  type?: "scheduled_task";
633
651
  conversationId?: string;
@@ -635,7 +653,6 @@ export declare const notificationSnapshotSchema: z.ZodObject<{
635
653
  taskId?: string;
636
654
  assistantId?: string;
637
655
  };
638
- createdAt?: string;
639
656
  action?: {
640
657
  type?: "open_conversation";
641
658
  conversationId?: string;
@@ -746,5 +763,6 @@ export type NotificationDestination = {
746
763
  bindingRevision: number;
747
764
  };
748
765
  export declare function parseAnnouncement(value: unknown): Announcement;
766
+ export declare function parseOpenConversationAction(value: unknown): OpenConversationAction;
749
767
  export declare function parseUserNotification(value: unknown): UserNotification;
750
768
  export declare function parseNotificationSnapshot(value: unknown): NotificationSnapshot;
@@ -174,3 +174,27 @@ export type AssistantComposerReference = {
174
174
  export type AssistantComposerAppendReferencesPayload = {
175
175
  references: AssistantComposerReference[];
176
176
  };
177
+ /** Host-owned browser persistence. Plugins never choose an account/storage namespace. */
178
+ export declare const WORKBENCH_CONTENT_DRAFT_COMMAND = "workbench.content.draft";
179
+ export interface XpertViewLocalDraftBinding {
180
+ resourceId: string;
181
+ scopeKey: string;
182
+ maxBytes: number;
183
+ }
184
+ export type WorkbenchContentDraftRequest = {
185
+ resourceId: string;
186
+ } & ({
187
+ operation: 'list';
188
+ } | {
189
+ operation: 'read';
190
+ draftId: string;
191
+ } | {
192
+ operation: 'write';
193
+ draftId: string;
194
+ expectedRevision: number;
195
+ content: string;
196
+ } | {
197
+ operation: 'delete';
198
+ draftId: string;
199
+ expectedRevision: number;
200
+ });