@xpert-ai/contracts 3.28.0 → 3.29.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/src/ai/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './conversation-share.model';
1
2
  export declare const STATE_VARIABLE_HUMAN = "human";
2
3
  export * from './prompt-workflow-capabilities.model';
3
4
  export { ChatMessageEventTypeEnum, ChatMessageStepCategory, ChatMessageTypeEnum } from './ai.model';
@@ -126,3 +127,4 @@ export * from './assistant-template-overview.model';
126
127
  export * from './run-display-snapshot.model';
127
128
  export * from './execution-control.model';
128
129
  export * from './execution-control-evidence.schema';
130
+ export * from './execution-observability.model';
@@ -89,7 +89,7 @@ export type ModelExecutionPolicy = {
89
89
  /** @deprecated Compatibility field, always true; no longer a tenant opt-in switch. */
90
90
  enabled: true;
91
91
  gatewayBaseUrl: string;
92
- /** Separately gated until each native protocol has passed real-model acceptance. */
92
+ /** Defaults to native Responses; explicit lists (including []) override it. Native Messages remains opt-in. */
93
93
  nativeProtocols?: Array<'openai_responses' | 'anthropic_messages'>;
94
94
  /** Explicit, limited Chat Completions translations; never advertised as native support. */
95
95
  chatBridgeProtocols?: Array<'openai_responses' | 'anthropic_messages'>;
@@ -20,9 +20,28 @@ export interface ArtifactPresentation {
20
20
  };
21
21
  data: object;
22
22
  operations: string[];
23
+ expiresAt?: string | null;
23
24
  }
24
25
  export interface ArtifactPresentationQuery {
25
26
  target: ArtifactPresentationTarget;
26
27
  operation: string;
27
28
  input: object;
28
29
  }
30
+ /** Authenticated Project reference viewing does not create or consume a public share. */
31
+ export type ArtifactLibraryContent = {
32
+ kind: 'conversation';
33
+ snapshot: import('./ai/conversation-share.model').ConversationShareSnapshot;
34
+ } | {
35
+ kind: 'presentation';
36
+ presentation: ArtifactPresentation;
37
+ } | {
38
+ kind: 'file';
39
+ fileName: string;
40
+ mimeType: string;
41
+ canDownload: boolean;
42
+ };
43
+ export interface ArtifactLibraryView {
44
+ title: string;
45
+ revision: number;
46
+ content: ArtifactLibraryContent;
47
+ }
@@ -1,4 +1,5 @@
1
1
  import { IBasePerTenantAndOrganizationEntityModel } from './base-entity.model';
2
+ import type { I18nObject } from './i18n.model';
2
3
  /**
3
4
  * Access policies supported by platform-managed Artifact links.
4
5
  *
@@ -14,6 +15,18 @@ export type ArtifactVersionStatus = 'active' | 'deleted';
14
15
  export type ArtifactLinkStatus = 'active' | 'revoked' | 'expired';
15
16
  /** Artifact rendering/download family used by viewers and security policy. */
16
17
  export type ArtifactKind = 'html' | 'markdown' | 'pdf' | 'pptx' | 'image' | 'file' | 'site' | 'presentation';
18
+ export type ArtifactTypeReference = {
19
+ pluginName: string;
20
+ resourceType: string;
21
+ };
22
+ /** Display metadata from the registered type; never inferred from the Artifact's filename or title. */
23
+ export type ArtifactTypeDescriptor = ArtifactTypeReference & {
24
+ title?: I18nObject;
25
+ };
26
+ /** Host-selected installation scope is persisted so a missing type cannot silently fall back. */
27
+ export type ArtifactTypeBinding = ArtifactTypeReference & {
28
+ scopeKey: string;
29
+ };
17
30
  /** Whether an Artifact link follows the latest version or pins one immutable version. */
18
31
  export type ArtifactLinkVersionMode = 'latest' | 'version';
19
32
  /** Browser presentation hint for Artifact responses. */
@@ -55,6 +68,7 @@ export interface IArtifactWorkspaceFileReference {
55
68
  * this record owns source identity, scope, title, and current-version pointer.
56
69
  */
57
70
  export interface IArtifact extends IBasePerTenantAndOrganizationEntityModel {
71
+ typeBinding?: ArtifactTypeBinding | null;
58
72
  /** Optional resource authorization provider; authorizes the existing resourceId in addition to link access. */
59
73
  authorizationProviderKey?: string | null;
60
74
  pluginName: string;
@@ -1,4 +1,5 @@
1
1
  import type { I18nObject } from './i18n.model';
2
+ import type { ArtifactTypeDescriptor } from './artifact.model';
2
3
  export type ContentAction = 'rename' | 'move' | 'trash' | 'restore' | 'duplicate';
3
4
  export type ContentSourceLocation = {
4
5
  kind: 'file';
@@ -43,6 +44,12 @@ export interface ContentTypeImplementation {
43
44
  defaultEditorKey: string;
44
45
  }
45
46
  export interface ContentResourceSnapshot extends ContentModelIdentity {
47
+ /** Read-only published content; opening still requires current Project and source authorization. */
48
+ presentation?: {
49
+ kind: 'artifact';
50
+ referenceId: string;
51
+ type?: ArtifactTypeDescriptor;
52
+ };
46
53
  /** Opt in only when all Project readers may read the source even without this provider.
47
54
  * Resources with additional native ACLs must omit this field and fail closed offline. */
48
55
  offlineAccess?: 'project';
@@ -1,3 +1,4 @@
1
+ import type { XpertProjectTypeRef } from '../ai/xpert-project-type.model';
1
2
  import type { PluginApplicationScope } from '../plugin-application';
2
3
  import type { I18nObject, IconDefinition } from '../types';
3
4
  import type { JsonSchemaObjectType } from '../ai/types';
@@ -148,6 +149,8 @@ export interface XpertViewActivation {
148
149
  requiredFeatures?: string[];
149
150
  }
150
151
  export interface XpertWorkbenchViewOptions {
152
+ /** Project type required by this View. UI recovery hint only; providers still enforce access. */
153
+ projectType?: XpertProjectTypeRef;
151
154
  /**
152
155
  * @deprecated Use the manifest's `visible` field for visibility and `openMode`
153
156
  * for initial tab behavior. Retained for compatibility; false hides the view.