@xpert-ai/contracts 3.22.0 → 3.25.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 (58) hide show
  1. package/index.cjs.js +5296 -368
  2. package/index.esm.js +5185 -369
  3. package/package.json +2 -2
  4. package/src/ai/agent-output-delivery.model.d.ts +10 -10
  5. package/src/ai/agent-runtime.model.d.ts +24 -24
  6. package/src/ai/assistant-model.model.d.ts +8 -0
  7. package/src/ai/assistant-template-dependencies.model.d.ts +1 -1
  8. package/src/ai/chat-group.model.d.ts +7 -3
  9. package/src/ai/index.d.ts +2 -0
  10. package/src/ai/mcp-publication.model.d.ts +20 -0
  11. package/src/ai/model-discovery.model.d.ts +2 -0
  12. package/src/ai/project-pipeline/analytics.d.ts +1685 -0
  13. package/src/ai/project-pipeline/budget.schema.d.ts +78 -0
  14. package/src/ai/project-pipeline/catalog.schema.d.ts +188 -0
  15. package/src/ai/project-pipeline/catalog.validation.d.ts +4 -0
  16. package/src/ai/project-pipeline/commands.schema.d.ts +4381 -0
  17. package/src/ai/project-pipeline/compatibility.d.ts +5 -0
  18. package/src/ai/project-pipeline/compatibility.schema.d.ts +29 -0
  19. package/src/ai/project-pipeline/configuration-form.d.ts +17374 -0
  20. package/src/ai/project-pipeline/configuration.schema.d.ts +3774 -0
  21. package/src/ai/project-pipeline/contribution.schema.d.ts +6721 -0
  22. package/src/ai/project-pipeline/dataflow.validation.d.ts +6 -0
  23. package/src/ai/project-pipeline/definition.schema.d.ts +3808 -0
  24. package/src/ai/project-pipeline/definition.validation.d.ts +7 -0
  25. package/src/ai/project-pipeline/execution-statistics.d.ts +267 -0
  26. package/src/ai/project-pipeline/graph.model.d.ts +89 -0
  27. package/src/ai/project-pipeline/human-wait-statistics.d.ts +70 -0
  28. package/src/ai/project-pipeline/human-wait.schema.d.ts +26 -0
  29. package/src/ai/project-pipeline/index.d.ts +28 -0
  30. package/src/ai/project-pipeline/model-usage-statistics.d.ts +143 -0
  31. package/src/ai/project-pipeline/native-source.schema.d.ts +40 -0
  32. package/src/ai/project-pipeline/node.schema.d.ts +839 -0
  33. package/src/ai/project-pipeline/operation.schema.d.ts +800 -0
  34. package/src/ai/project-pipeline/portfolio.schema.d.ts +3817 -0
  35. package/src/ai/project-pipeline/primitives.schema.d.ts +138 -0
  36. package/src/ai/project-pipeline/projection.schema.d.ts +4715 -0
  37. package/src/ai/project-pipeline/provider-actions.schema.d.ts +2030 -0
  38. package/src/ai/project-pipeline/queue-statistics.d.ts +326 -0
  39. package/src/ai/project-pipeline/resources.schema.d.ts +73 -0
  40. package/src/ai/project-pipeline/runtime.schema.d.ts +934 -0
  41. package/src/ai/project-pipeline/statistics.d.ts +811 -0
  42. package/src/ai/project-task-graph.model.d.ts +18 -2
  43. package/src/ai/project-task-runtime.model.d.ts +924 -924
  44. package/src/ai/provider-credential-validation.model.d.ts +63 -0
  45. package/src/ai/template-installation.model.d.ts +27 -0
  46. package/src/ai/types.d.ts +6 -4
  47. package/src/ai/xpert-project-type.model.d.ts +15 -4
  48. package/src/ai/xpert-project.model.d.ts +9 -2
  49. package/src/ai/xpert.model.d.ts +5 -0
  50. package/src/analytics-query.model.d.ts +180 -0
  51. package/src/artifact-presentation.model.d.ts +28 -0
  52. package/src/artifact.model.d.ts +15 -0
  53. package/src/assistant-sharing.model.d.ts +32 -0
  54. package/src/index.d.ts +4 -0
  55. package/src/plugin-application.d.ts +4 -1
  56. package/src/user-directory.model.d.ts +15 -0
  57. package/src/user-group.model.d.ts +1 -0
  58. package/src/view-extension/model.d.ts +16 -1
@@ -0,0 +1,63 @@
1
+ import { z } from 'zod';
2
+ import { AiModelTypeEnum } from '../agent/ai-model';
3
+ import type { DiscoveredModel } from './model-discovery.model';
4
+ export declare const providerCredentialValidationTargetSchema: z.ZodObject<{
5
+ modelType: z.ZodNativeEnum<typeof AiModelTypeEnum>;
6
+ model: z.ZodString;
7
+ }, "strict", z.ZodTypeAny, {
8
+ modelType?: AiModelTypeEnum;
9
+ model?: string;
10
+ }, {
11
+ modelType?: AiModelTypeEnum;
12
+ model?: string;
13
+ }>;
14
+ export type ProviderCredentialValidationTarget = z.infer<typeof providerCredentialValidationTargetSchema>;
15
+ export declare const providerCredentialCheckSchema: z.ZodObject<{
16
+ credentials: z.ZodRecord<z.ZodString, z.ZodUnknown>;
17
+ validationTarget: z.ZodOptional<z.ZodObject<{
18
+ modelType: z.ZodNativeEnum<typeof AiModelTypeEnum>;
19
+ model: z.ZodString;
20
+ }, "strict", z.ZodTypeAny, {
21
+ modelType?: AiModelTypeEnum;
22
+ model?: string;
23
+ }, {
24
+ modelType?: AiModelTypeEnum;
25
+ model?: string;
26
+ }>>;
27
+ }, "strict", z.ZodTypeAny, {
28
+ credentials?: Record<string, unknown>;
29
+ validationTarget?: {
30
+ modelType?: AiModelTypeEnum;
31
+ model?: string;
32
+ };
33
+ }, {
34
+ credentials?: Record<string, unknown>;
35
+ validationTarget?: {
36
+ modelType?: AiModelTypeEnum;
37
+ model?: string;
38
+ };
39
+ }>;
40
+ export type ProviderCredentialCheckInput = z.infer<typeof providerCredentialCheckSchema>;
41
+ /** Providers opt in when credential checks require a user-selected inference target. */
42
+ export interface ProviderCredentialValidationPolicy {
43
+ mode: 'model';
44
+ modelTypes: AiModelTypeEnum[];
45
+ }
46
+ export type ProviderCredentialValidationCapabilities = {
47
+ method: 'discovery';
48
+ } | {
49
+ method: 'model';
50
+ modelTypes: AiModelTypeEnum[];
51
+ models: ProviderCredentialValidationTarget[];
52
+ } | {
53
+ method: 'provider';
54
+ };
55
+ export type ProviderCredentialValidationResult = {
56
+ method: 'discovery';
57
+ models: DiscoveredModel[];
58
+ } | {
59
+ method: 'model';
60
+ target: ProviderCredentialValidationTarget;
61
+ } | {
62
+ method: 'provider';
63
+ };
@@ -44,9 +44,21 @@ export interface TemplateInstallation {
44
44
  createdAt: string;
45
45
  updatedAt: string;
46
46
  }
47
+ export declare const templateDependencyVersionsSchema: z.ZodArray<z.ZodObject<{
48
+ pluginName: z.ZodString;
49
+ version: z.ZodString;
50
+ }, "strict", z.ZodTypeAny, {
51
+ version?: string;
52
+ pluginName?: string;
53
+ }, {
54
+ version?: string;
55
+ pluginName?: string;
56
+ }>, "many">;
47
57
  export declare const templateDependencyLocksSchema: z.ZodArray<z.ZodObject<{
48
58
  pluginName: z.ZodString;
49
59
  version: z.ZodString;
60
+ /** Explicit template requirement, distinct from the automatically recorded installation version. */
61
+ requiredVersion: z.ZodOptional<z.ZodString>;
50
62
  source: z.ZodOptional<z.ZodObject<{
51
63
  kind: z.ZodLiteral<"agent-plugin">;
52
64
  name: z.ZodString;
@@ -104,6 +116,7 @@ export declare const templateDependencyLocksSchema: z.ZodArray<z.ZodObject<{
104
116
  bindingVersion?: string;
105
117
  };
106
118
  pluginName?: string;
119
+ requiredVersion?: string;
107
120
  providers?: {
108
121
  key?: string;
109
122
  kind?: "middleware" | "toolset" | "sandbox";
@@ -123,9 +136,23 @@ export declare const templateDependencyLocksSchema: z.ZodArray<z.ZodObject<{
123
136
  bindingVersion?: string;
124
137
  };
125
138
  pluginName?: string;
139
+ requiredVersion?: string;
126
140
  providers?: {
127
141
  key?: string;
128
142
  kind?: "middleware" | "toolset" | "sandbox";
129
143
  }[];
130
144
  }>, "many">;
131
145
  export type TemplateDependencyLock = z.output<typeof templateDependencyLocksSchema>[number];
146
+ /** Advisory drift in an available runtime dependency; never a compatibility guarantee. */
147
+ export interface TemplateDependencyUpdate {
148
+ pluginName: string;
149
+ installedVersion: string;
150
+ currentVersion: string;
151
+ changedComponents: {
152
+ type: TemplateDependencyLock['components'][number]['type'];
153
+ key: string;
154
+ }[];
155
+ }
156
+ export interface TemplateRuntimeDependencyReport {
157
+ updates: TemplateDependencyUpdate[];
158
+ }
package/src/ai/types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { JsonSchema7TypeUnion } from "zod-to-json-schema";
2
- import { I18nObject, TSelectOption } from "../types";
3
- import { TXpertAttachmentType, XpertParameterTypeEnum } from "./xpert.model";
1
+ import { JsonSchema7TypeUnion } from 'zod-to-json-schema';
2
+ import { I18nObject, TSelectOption } from '../types';
3
+ import { TXpertAttachmentType, XpertParameterTypeEnum } from './xpert.model';
4
4
  export type TErrorHandling = {
5
5
  type?: null | 'defaultValue' | 'failBranch';
6
6
  defaultValue?: {
@@ -115,7 +115,9 @@ type JsonSchema7Meta = {
115
115
  'x-ui'?: JsonSchemaUIExtensions;
116
116
  };
117
117
  export type JsonSchemaObjectType = {
118
- type: "object";
118
+ type: 'object';
119
+ /** Display title for a configuration form, including a plugin MCP configuration tab. */
120
+ title?: I18nObject;
119
121
  properties: Record<string, JsonSchema7Type>;
120
122
  additionalProperties?: boolean | JsonSchema7Type;
121
123
  required?: string[];
@@ -1,14 +1,26 @@
1
1
  import type { I18nObject, IconDefinition } from '../types';
2
+ import type { XpertViewScalar } from '../view-extension/model';
3
+ export interface XpertProjectViewSelection {
4
+ viewKey: string;
5
+ selectionId?: string;
6
+ parameters?: Record<string, XpertViewScalar | XpertViewScalar[]>;
7
+ }
2
8
  /** Stable identity, independent of installation ids, labels and plugin versions. */
3
9
  export interface XpertProjectTypeRef {
4
10
  applicationKey: string;
5
11
  projectTypeKey: string;
6
12
  }
7
13
  export declare const GENERAL_PROJECT_TYPE: XpertProjectTypeRef;
14
+ /** Business-task capacity owned by the Project type's dispatcher, never the Agent runtime. */
15
+ export interface XpertProjectTaskConcurrency {
16
+ maxConcurrentTasks: number;
17
+ }
8
18
  export interface XpertProjectTypeDefinition {
9
19
  key: string;
10
20
  title: string | I18nObject;
11
21
  icon?: IconDefinition;
22
+ /** Entity-backed applications enforce this policy in their business preparation/claim services. */
23
+ taskConcurrency?: XpertProjectTaskConcurrency;
12
24
  /** Entity types delegate creation and lifecycle to their registered provider. */
13
25
  binding: {
14
26
  kind: 'project';
@@ -22,6 +34,7 @@ export interface XpertProjectTypeSummary extends XpertProjectTypeRef {
22
34
  title: string | I18nObject;
23
35
  icon?: IconDefinition;
24
36
  binding: XpertProjectTypeDefinition['binding'];
37
+ taskConcurrency?: XpertProjectTaskConcurrency;
25
38
  available: boolean;
26
39
  }
27
40
  export interface XpertProjectClassification {
@@ -42,14 +55,12 @@ export type XpertProjectEntry = {
42
55
  kind: 'project';
43
56
  projectId?: string;
44
57
  projectType: XpertProjectTypeRef;
45
- } | {
58
+ } | ({
46
59
  kind: 'assistant';
47
60
  xpertId: string;
48
61
  slug: string;
49
62
  projectId?: string;
50
- viewKey: string;
51
- selectionId?: string;
52
- };
63
+ } & XpertProjectViewSelection);
53
64
  export interface XpertProjectTypeCatalog {
54
65
  items: XpertProjectTypeSummary[];
55
66
  defaultProjectType?: XpertProjectTypeRef;
@@ -221,6 +221,9 @@ export interface IBasePerXpertProjectEntityModel extends IBasePerTenantAndOrgani
221
221
  project?: IXpertProject;
222
222
  }
223
223
  export interface IXpertProjectTask extends IBasePerXpertProjectEntityModel {
224
+ controlKind?: 'ordinary' | 'provider' | 'pipeline';
225
+ pipelineInstanceId?: string | null;
226
+ pipelineDisposition?: 'active' | 'removed' | 'excluded' | 'superseded' | null;
224
227
  decisions?: ProjectTaskDecision[];
225
228
  /** Measured completion percentage (0–100); null/omitted means unknown. */
226
229
  progress?: number | null;
@@ -279,10 +282,14 @@ export interface IXpertProjectTaskExecution extends IBasePerXpertProjectEntityMo
279
282
  /** Observed runtime status, independent from the business task acceptance status. */
280
283
  runtimeStartedAt?: string | null;
281
284
  runtimeCompletedAt?: string | null;
282
- /** Authorized Invocation presentation, not persisted task state. */
285
+ /** Authorized runtime presentation, not persisted task state. */
283
286
  runtimeProvider?: string;
284
287
  runtimeToolId?: string;
285
- runtimeStatus?: 'running' | 'success' | 'error' | 'pending' | 'timeout' | 'interrupted' | 'unknown';
288
+ /** Exact registered handler from a persisted Pipeline service operation. */
289
+ runtimeServiceRef?: string;
290
+ /** Classified from the exact persisted managed Pipeline operation, never from task attempt count. */
291
+ pipelineAttemptKind?: 'initial' | 'technical_retry';
292
+ runtimeStatus?: 'running' | 'success' | 'error' | 'pending' | 'timeout' | 'interrupted' | 'unknown' | 'queued' | 'succeeded' | 'failed' | 'cancelled';
286
293
  sourceKey?: string | null;
287
294
  taskId: string;
288
295
  conversationId?: string;
@@ -305,6 +305,11 @@ export type TXpertDataXpertOptions = {
305
305
  [key: string]: unknown;
306
306
  };
307
307
  export type TXpertOptions = {
308
+ /** Server-owned activation checkpoint; excluded from reusable template exports/imports. */
309
+ pendingPublication?: {
310
+ version: string;
311
+ previousGraph?: TXpertGraph;
312
+ };
308
313
  operationPolicy?: import('./assistant-template-setup.model').AssistantOperationPolicy;
309
314
  templateDefinition?: import('./assistant-template.model').AssistantTemplateMetadata;
310
315
  templateDependencyLocks?: import('./template-installation.model').TemplateDependencyLock[];
@@ -0,0 +1,180 @@
1
+ import type { JSONValue } from './core.model';
2
+ /** JSON-safe scalar shared by cells and controls; nested objects/arrays are not dataset cells. */
3
+ export type AnalyticsValue = string | number | boolean | null;
4
+ /** int64/decimal use exact strings; date uses YYYY-MM-DD; timestamp includes a timezone. */
5
+ export type AnalyticsLogicalType = 'string' | 'boolean' | 'int64' | 'float64' | 'decimal' | 'date' | 'timestamp';
6
+ /** Maps one provider column to a stable, typed field consumed by renderers. */
7
+ export interface AnalyticsField {
8
+ /** Dataset row key and chart-binding identifier; never derived from the display label. */
9
+ id: string;
10
+ /** Exact provider column key used when semanticRef is absent. */
11
+ sourceField: string;
12
+ label: string;
13
+ logicalType: AnalyticsLogicalType;
14
+ /** Allows null cells, not missing row keys. */
15
+ nullable: boolean;
16
+ /** Declared business role; does not implicitly aggregate or convert values. */
17
+ role: 'dimension' | 'measure' | 'time' | 'identifier';
18
+ /** Exact provider semantic identifier; takes precedence over sourceField and must match one column. */
19
+ semanticRef?: string;
20
+ /** Authored unit such as CNY; metadata only, with no automatic scaling or conversion. */
21
+ unit?: string;
22
+ }
23
+ /** Output projection shared by native SQL, ontology, file and other provider implementations. */
24
+ export interface AnalyticsOutputContract {
25
+ /** Renderer-facing identifier, independent of native table/resource names. */
26
+ datasetId: string;
27
+ fields: AnalyticsField[];
28
+ /** Composite key of field IDs, unique within returned rows; [] leaves grain unspecified. */
29
+ grain: string[];
30
+ }
31
+ /** Maps a UI control to a validated provider parameter without rewriting the native payload. */
32
+ export interface AnalyticsParameter {
33
+ /** Key passed to the provider's resolved parameters object. */
34
+ name: string;
35
+ /** Key read from request.controls; multiple parameters may consume the same control. */
36
+ controlId: string;
37
+ /** Scalar parameter type; date is a valid YYYY-MM-DD string. */
38
+ type: 'string' | 'number' | 'boolean' | 'date';
39
+ /** Rejects missing/null values after defaults; unresolved optional parameters become null. */
40
+ required: boolean;
41
+ /** Used only when the control key is absent; an explicit null does not select this default. */
42
+ defaultValue?: AnalyticsValue;
43
+ /** Optional allowlist for non-null values; does not grant access to source data. */
44
+ allowedValues?: AnalyticsValue[];
45
+ }
46
+ /**
47
+ * Serializable query declaration. The host owns scope/limits; the provider owns native syntax.
48
+ * Renderers consume the normalized Dataset, never execute payload or handle source credentials.
49
+ */
50
+ export interface AnalyticsBinding {
51
+ /** Version of this shared envelope, separate from the provider operation's contractVersion. */
52
+ schemaVersion: 1;
53
+ /** Binding identity used for lookup and result provenance. */
54
+ id: string;
55
+ /** Platform DataSource ID; access is rechecked for the current actor on each execution. */
56
+ dataSourceId: string;
57
+ /** Registered provider descriptor ID, not a display name or database engine switch. */
58
+ providerId: string;
59
+ /** Must match a read-only operation advertised by the provider. */
60
+ operation: string;
61
+ /** Provider-owned operation version; incompatible payload semantics require a new version. */
62
+ contractVersion: number;
63
+ /** Provider-defined JSON, e.g. a native query or resource reference; exclude credentials and actor scope. */
64
+ payload: JSONValue;
65
+ parameters: AnalyticsParameter[];
66
+ output: AnalyticsOutputContract;
67
+ }
68
+ /** Public query input; tenant, organization and user identity come from trusted host context. */
69
+ export interface AnalyticsQueryRequest {
70
+ binding: AnalyticsBinding;
71
+ /** Values keyed by controlId; undeclared keys are rejected and absent keys resolve through defaults. */
72
+ controls: Record<string, AnalyticsValue>;
73
+ }
74
+ /** Canonical, provider-independent result; consumers must inspect completeness before presenting totals. */
75
+ export interface AnalyticalDataset {
76
+ schema: 'xpert.analytics.dataset/v1';
77
+ datasetId: string;
78
+ /** Preserved even when rows is empty, so renderers can retain bindings and labels. */
79
+ fields: AnalyticsField[];
80
+ /** Keys are AnalyticsField.id, not native column names; precise numbers remain strings. */
81
+ rows: Array<Record<string, AnalyticsValue>>;
82
+ /** Declared output grain, validated for uniqueness when nonempty. */
83
+ grain: string[];
84
+ completeness: {
85
+ /** Number of rows in this response; must equal rows.length. */
86
+ returnedRows: number;
87
+ /** Optional source count, qualified by totalAccuracy; absence never means zero. */
88
+ totalRows?: number;
89
+ totalAccuracy: 'exact' | 'estimated' | 'unknown';
90
+ /** What the response represents; page/sample/top_n must not be presented as the complete query. */
91
+ scope: 'full_query_result' | 'page' | 'sample' | 'top_n';
92
+ /** Omitted rows due to a limit; cannot be true with full_query_result. */
93
+ truncated: boolean;
94
+ };
95
+ freshness: {
96
+ /** Host timestamp when the result was normalized, not the source's business-data timestamp. */
97
+ executedAt: string;
98
+ /** Provider timestamp for fetching source data; must not be replaced with page render time. */
99
+ sourceFetchedAt: string;
100
+ /** Optional source-reported snapshot/watermark time; omit when unknown. */
101
+ dataAsOf?: string;
102
+ };
103
+ provenance: {
104
+ /** Host-generated execution identity, distinct from the reusable Binding ID. */
105
+ executionId: string;
106
+ bindingId: string;
107
+ providerId: string;
108
+ /** Opaque source/definition revision; not an authorization token or cache permission. */
109
+ sourceVersion?: string;
110
+ /** Source-system execution identity, when the provider delegates execution. */
111
+ upstreamExecutionId?: string;
112
+ /** Reference to governed audit evidence; do not embed secrets or full logs here. */
113
+ auditRef?: string;
114
+ };
115
+ }
116
+ /** Public discovery metadata. Advertising a capability does not authorize its execution. */
117
+ export interface AnalyticsProviderDescriptor {
118
+ /** Stable registration ID used by Binding.providerId. */
119
+ id: string;
120
+ name: string;
121
+ /** Exact platform DataSource.type identifiers supported by this provider. */
122
+ dataSourceTypes: string[];
123
+ /** Supported operation/version pairs; providers must enforce read-only behavior at the source. */
124
+ operations: Array<{
125
+ name: string;
126
+ contractVersion: number;
127
+ readOnly: true;
128
+ }>;
129
+ /** Declares a provider-wide collaboration constraint; does not grant source or file access. */
130
+ sharing?: {
131
+ mode: 'viewer_permissions' | 'owner_only';
132
+ reasonCode?: string;
133
+ };
134
+ /** Optional new source type and configuration schema, never connection values; omit for existing types. */
135
+ connectionType?: {
136
+ type: string;
137
+ name: string;
138
+ configuration: Record<string, JSONValue>;
139
+ };
140
+ }
141
+ /** Discoverable source and available providers for the current actor; contains no connection options. */
142
+ export interface AnalyticsSourceSummary {
143
+ id: string;
144
+ name: string;
145
+ type: string;
146
+ providers: AnalyticsProviderDescriptor[];
147
+ }
148
+ /** Read-only catalog navigation; continuation data is provider-owned and never grants authorization. */
149
+ export interface AnalyticsDiscoveryRequest {
150
+ dataSourceId: string;
151
+ providerId: string;
152
+ /** Initial provider request or a returned inspectRequest/nextRequest, forwarded without interpretation. */
153
+ request: JSONValue;
154
+ }
155
+ /** Bounded discovery page plus the native query contract needed by an Agent or query builder. */
156
+ export interface AnalyticsDiscoveryResult {
157
+ schemaVersion: 1;
158
+ items: Array<{
159
+ /** Provider-local resource identity; need not be a platform entity UUID. */
160
+ id: string;
161
+ name: string;
162
+ /** Explicit navigation distinction; consumers must not infer it from names or metadata. */
163
+ kind: 'collection' | 'dataset';
164
+ description?: string;
165
+ /** Request for inspecting this item using the same source/provider; not a token or executable query. */
166
+ inspectRequest?: JSONValue;
167
+ /** Provider-owned metadata, e.g. authored field descriptions, units or ontology definitions. */
168
+ metadata: JSONValue;
169
+ }>;
170
+ /** Request for the next discovery page; omission means no continuation is offered. */
171
+ nextRequest?: JSONValue;
172
+ /** Describes Binding.payload; actual queries still require provider validation and authorization. */
173
+ queryContract: {
174
+ operation: string;
175
+ contractVersion: number;
176
+ payloadSchema: JSONValue;
177
+ /** Native syntax and business-semantic guidance; does not replace payloadSchema validation. */
178
+ instructions: string;
179
+ };
180
+ }
@@ -0,0 +1,28 @@
1
+ /** Host-owned opening avoids inheriting a remote component's iframe sandbox. */
2
+ export declare const ARTIFACT_PRESENTATION_OPEN_COMMAND = "artifact.presentation.open";
3
+ export interface ArtifactPresentationOpenRequest {
4
+ url: string;
5
+ }
6
+ /** A viewer always operates on one published, immutable version. Drafts are not share targets. */
7
+ export interface ArtifactPresentationTarget {
8
+ artifactId: string;
9
+ versionId: string;
10
+ }
11
+ /** Platform-owned envelope; data is parsed by the registered presentation provider. */
12
+ export interface ArtifactPresentation {
13
+ schemaVersion: 1;
14
+ target: ArtifactPresentationTarget;
15
+ title: string;
16
+ versionNumber: number;
17
+ readOnly: true;
18
+ entry: {
19
+ html: string;
20
+ };
21
+ data: object;
22
+ operations: string[];
23
+ }
24
+ export interface ArtifactPresentationQuery {
25
+ target: ArtifactPresentationTarget;
26
+ operation: string;
27
+ input: object;
28
+ }
@@ -98,6 +98,21 @@ export interface IArtifactVersion extends IBasePerTenantAndOrganizationEntityMod
98
98
  userId?: string | null;
99
99
  metadata?: Record<string, unknown> | null;
100
100
  }
101
+ /** Persisted mutable working copy, separate from immutable Artifact versions. */
102
+ export interface IArtifactDraft extends IBasePerTenantAndOrganizationEntityModel {
103
+ artifactId: string;
104
+ revision: number;
105
+ baseVersionId: string | null;
106
+ publishedRevision: number | null;
107
+ publishedVersionId: string | null;
108
+ content: {
109
+ workspaceFileRef: IArtifactWorkspaceFileReference;
110
+ mimeType: string;
111
+ title?: string | null;
112
+ sha256?: string | null;
113
+ metadata?: Record<string, unknown> | null;
114
+ };
115
+ }
101
116
  /**
102
117
  * Access entrypoint for an Artifact.
103
118
  *
@@ -0,0 +1,32 @@
1
+ import { IUser } from './user.model';
2
+ export type AssistantSharingUser = Pick<IUser, 'id' | 'firstName' | 'lastName' | 'email' | 'username' | 'imageUrl'>;
3
+ export type AssistantSharingGroup = {
4
+ id: string;
5
+ name: string;
6
+ description?: string | null;
7
+ };
8
+ export type AssistantSharingCapabilities = {
9
+ canViewAccess: boolean;
10
+ canManageAccess: boolean;
11
+ canUseGroups: boolean;
12
+ canManageGroups: boolean;
13
+ };
14
+ export type AssistantSharingState = {
15
+ capabilities: AssistantSharingCapabilities;
16
+ organization: {
17
+ id: string;
18
+ name: string;
19
+ };
20
+ users: AssistantSharingUser[];
21
+ groups: AssistantSharingGroup[];
22
+ groupRevision: string;
23
+ inherited: {
24
+ creator?: AssistantSharingUser;
25
+ workspace?: {
26
+ id: string;
27
+ name: string;
28
+ organizationShared: boolean;
29
+ memberCount: number;
30
+ };
31
+ };
32
+ };
package/src/index.d.ts CHANGED
@@ -39,9 +39,11 @@ export * from './user-organization.model';
39
39
  export * from './user-group.model';
40
40
  export * from './user-me-context.model';
41
41
  export * from './user.model';
42
+ export * from './user-directory.model';
42
43
  export * from './custom-smtp.model';
43
44
  export * from './date-picker.model';
44
45
  export * from './data-source.model';
46
+ export * from './analytics-query.model';
45
47
  export * from './data-source-type.model';
46
48
  export * from './integration.model';
47
49
  export * from './invite.model';
@@ -72,3 +74,5 @@ export * from './ai/execution-activity.model';
72
74
  export * from './setup-plugins';
73
75
  export * from './default-agent-plugins';
74
76
  export * from './agent-plugin-maintenance';
77
+ export * from './assistant-sharing.model';
78
+ export * from './artifact-presentation.model';
@@ -57,6 +57,7 @@ export interface PluginMarketplaceAppModelRequirements {
57
57
  primary?: boolean;
58
58
  embedding?: boolean;
59
59
  vision?: boolean;
60
+ speechToText?: boolean;
60
61
  embeddingLabel?: string | I18nObject;
61
62
  visionLabel?: string | I18nObject;
62
63
  }
@@ -216,9 +217,10 @@ export interface PluginApplicationPreflight {
216
217
  supported: boolean;
217
218
  scope: PluginApplicationScope;
218
219
  canInitialize: boolean;
219
- reason?: 'organization_scope_required' | 'role_required' | 'scope_not_supported' | 'primary_model_required' | 'embedding_model_required' | 'vision_model_required' | 'toolset_provider_required' | 'toolset_configuration_required';
220
+ reason?: 'organization_scope_required' | 'role_required' | 'scope_not_supported' | 'primary_model_required' | 'embedding_model_required' | 'vision_model_required' | 'speech_to_text_model_required' | 'toolset_provider_required' | 'toolset_configuration_required';
220
221
  embeddingModels: PluginApplicationModelOption[];
221
222
  visionModels: PluginApplicationModelOption[];
223
+ speechToTextModels?: PluginApplicationModelOption[];
222
224
  /** Organization Embedding-role default when it is present in embeddingModels. */
223
225
  defaultEmbeddingModelId?: string | null;
224
226
  /** Organization Primary-role default when it is vision-capable and present in visionModels. */
@@ -250,6 +252,7 @@ export interface PluginApplicationInitializeInput {
250
252
  appName: string;
251
253
  embeddingModelId?: string;
252
254
  visionModelId?: string;
255
+ speechToTextModelId?: string;
253
256
  toolsets?: PluginApplicationToolsetSelection[];
254
257
  operationId: string;
255
258
  }
@@ -0,0 +1,15 @@
1
+ import type { IOrganization } from './organization.model';
2
+ import type { IUser, UserType } from './user.model';
3
+ export type UserDirectoryStatus = 'all' | 'active' | 'disabled';
4
+ export interface IUserDirectoryQuery {
5
+ take?: number;
6
+ skip?: number;
7
+ search?: string;
8
+ types?: UserType[];
9
+ roles?: string[];
10
+ status?: UserDirectoryStatus;
11
+ organizationIds?: string[];
12
+ }
13
+ export interface IUserDirectoryItem extends IUser {
14
+ displayOrganizations: IOrganization[];
15
+ }
@@ -1,6 +1,7 @@
1
1
  import { IBasePerTenantAndOrganizationEntityModel } from './base-entity.model';
2
2
  import { IUser } from './user.model';
3
3
  export declare enum UserGroupManagedByEnum {
4
+ XPERT_SHARING = "xpert-sharing",
4
5
  XPERT_MARKETPLACE = "xpert-marketplace"
5
6
  }
6
7
  export declare enum UserGroupManagedEntityTypeEnum {
@@ -349,6 +349,10 @@ export declare const WORKBENCH_ASSISTANT_EXECUTION_TARGET = "assistant.execution
349
349
  /** Opens the current Assistant inside a Project-scoped workbench route. */
350
350
  export declare const WORKBENCH_ASSISTANT_PROJECT_TARGET = "assistant.project";
351
351
  export declare const WORKBENCH_EXTENSION_VIEW_TARGET = "workbench.view";
352
+ /** Resolve the Project's application entry through its registered type and current access checks. */
353
+ export declare const WORKBENCH_PROJECT_APPLICATION_TARGET = "project.application";
354
+ /** Open full Project pipeline management in the configured platform. */
355
+ export declare const WORKBENCH_PROJECT_PIPELINES_TARGET = "project.pipelines";
352
356
  export declare const XPERT_REMOTE_COMPONENT_INVOKE_CLIENT_COMMAND_MESSAGE_TYPE = "invokeClientCommand";
353
357
  export interface WorkbenchOpenFileEvidenceBox {
354
358
  x: number;
@@ -386,7 +390,7 @@ export interface WorkbenchOpenFile {
386
390
  previewUrl?: string;
387
391
  evidence?: WorkbenchOpenFileEvidence;
388
392
  }
389
- export type WorkbenchNavigationOpenTarget = typeof WORKBENCH_AGENT_EVOLUTION_TARGET | typeof WORKBENCH_AGENT_EVOLUTION_CHANGE_TARGET | typeof WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET | typeof WORKBENCH_ASSISTANT_CONVERSATION_TARGET | typeof WORKBENCH_ASSISTANT_EXECUTION_TARGET | typeof WORKBENCH_ASSISTANT_PROJECT_TARGET | typeof WORKBENCH_EXTENSION_VIEW_TARGET;
393
+ export type WorkbenchNavigationOpenTarget = typeof WORKBENCH_AGENT_EVOLUTION_TARGET | typeof WORKBENCH_AGENT_EVOLUTION_CHANGE_TARGET | typeof WORKBENCH_KNOWLEDGEBASE_DOCUMENTS_TARGET | typeof WORKBENCH_ASSISTANT_CONVERSATION_TARGET | typeof WORKBENCH_ASSISTANT_EXECUTION_TARGET | typeof WORKBENCH_ASSISTANT_PROJECT_TARGET | typeof WORKBENCH_EXTENSION_VIEW_TARGET | typeof WORKBENCH_PROJECT_APPLICATION_TARGET | typeof WORKBENCH_PROJECT_PIPELINES_TARGET;
390
394
  export interface WorkbenchNavigationOpenPayload {
391
395
  target: WorkbenchNavigationOpenTarget;
392
396
  targetId?: string;
@@ -410,6 +414,11 @@ export interface WorkbenchNavigationOpenPayload {
410
414
  xpertId?: string;
411
415
  /** Platform Chat Project selected for Project-scoped Assistant navigation. */
412
416
  projectId?: string;
417
+ /** Untrusted identity hint; Project application entry reauthorizes the current persisted node. */
418
+ pipelineNodeId?: string;
419
+ /** Read-only Project pipeline return focus, rechecked when the graph is read. */
420
+ pipelineInstanceId?: string;
421
+ pipelineRoundId?: string;
413
422
  viewKey?: string;
414
423
  selectionId?: string;
415
424
  parameters?: Record<string, XpertViewScalar | XpertViewScalar[]>;
@@ -547,6 +556,12 @@ export interface XpertRemoteViewContextChangedEvent extends XpertRemoteViewHostE
547
556
  runtimeScope: Required<XpertViewRuntimeScopeInput>;
548
557
  };
549
558
  }
559
+ /** Credential-free activation signal from the top-level shell to its embedded views. */
560
+ export interface XpertHostLifecycleMessage {
561
+ channel: 'xpertai.host_lifecycle';
562
+ protocolVersion: 1;
563
+ type: 'activated';
564
+ }
550
565
  /**
551
566
  * Host-internal event message. `hostType` and `hostId` are routing fields and
552
567
  * must be stripped before forwarding to remote components.