@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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xpert-ai/contracts",
3
- "version": "3.22.0",
3
+ "version": "3.25.0",
4
4
  "license": "AGPL-3.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@octokit/types": "13.10.0",
23
23
  "@types/json-schema": "^7.0.15",
24
- "@xpert-ai/chatkit-types": "0.15.0",
24
+ "@xpert-ai/chatkit-types": "~0.16.0",
25
25
  "zod-to-json-schema": "^3.25.2"
26
26
  },
27
27
  "peerDependencies": {
@@ -6,26 +6,26 @@ export declare const agentResultPathSchema: z.ZodEffects<z.ZodString, string, st
6
6
  export declare const agentOutputDeliverySchema: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
7
7
  mode: z.ZodLiteral<"none">;
8
8
  }, "strict", z.ZodTypeAny, {
9
- mode?: "none";
9
+ mode: "none";
10
10
  }, {
11
- mode?: "none";
11
+ mode: "none";
12
12
  }>, z.ZodObject<{
13
13
  mode: z.ZodLiteral<"files">;
14
14
  paths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">>;
15
15
  }, "strict", z.ZodTypeAny, {
16
- mode?: "files";
17
- paths?: string[];
16
+ mode: "files";
17
+ paths?: string[] | undefined;
18
18
  }, {
19
- mode?: "files";
20
- paths?: string[];
19
+ mode: "files";
20
+ paths?: string[] | undefined;
21
21
  }>, z.ZodObject<{
22
22
  mode: z.ZodLiteral<"archive">;
23
23
  paths: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, "many">>;
24
24
  }, "strict", z.ZodTypeAny, {
25
- mode?: "archive";
26
- paths?: string[];
25
+ mode: "archive";
26
+ paths?: string[] | undefined;
27
27
  }, {
28
- mode?: "archive";
29
- paths?: string[];
28
+ mode: "archive";
29
+ paths?: string[] | undefined;
30
30
  }>]>;
31
31
  export type AgentOutputDelivery = z.output<typeof agentOutputDeliverySchema>;
@@ -17,37 +17,37 @@ export declare const agentRuntimeProgressSchema: z.ZodObject<{
17
17
  completed: z.ZodNumber;
18
18
  total: z.ZodNumber;
19
19
  }, "strict", z.ZodTypeAny, {
20
- completed?: number;
21
- total?: number;
20
+ completed: number;
21
+ total: number;
22
22
  }, {
23
- completed?: number;
24
- total?: number;
23
+ completed: number;
24
+ total: number;
25
25
  }>, {
26
- completed?: number;
27
- total?: number;
26
+ completed: number;
27
+ total: number;
28
28
  }, {
29
- completed?: number;
30
- total?: number;
29
+ completed: number;
30
+ total: number;
31
31
  }>>;
32
32
  }, "strict", z.ZodTypeAny, {
33
- source?: "executor" | "host";
34
- startedAt?: string;
35
- summary?: string;
33
+ source: "executor" | "host";
34
+ observedAt: string;
35
+ startedAt?: string | undefined;
36
+ summary?: string | undefined;
37
+ phase?: string | undefined;
36
38
  steps?: {
37
- completed?: number;
38
- total?: number;
39
- };
40
- observedAt?: string;
41
- phase?: string;
39
+ completed: number;
40
+ total: number;
41
+ } | undefined;
42
42
  }, {
43
- source?: "executor" | "host";
44
- startedAt?: string;
45
- summary?: string;
43
+ source: "executor" | "host";
44
+ observedAt: string;
45
+ startedAt?: string | undefined;
46
+ summary?: string | undefined;
47
+ phase?: string | undefined;
46
48
  steps?: {
47
- completed?: number;
48
- total?: number;
49
- };
50
- observedAt?: string;
51
- phase?: string;
49
+ completed: number;
50
+ total: number;
51
+ } | undefined;
52
52
  }>;
53
53
  export type AgentRuntimeProgress = z.output<typeof agentRuntimeProgressSchema>;
@@ -21,6 +21,14 @@ export type TAssistantModelsResponse = {
21
21
  export type TAssistantModelPreferenceInput = {
22
22
  model_id: string | null;
23
23
  };
24
+ /** HTTP 400 admission/preference error; clients refresh choices without bypassing model access. */
25
+ export type TAssistantModelSelectionError = {
26
+ statusCode: 400;
27
+ error: 'Bad Request';
28
+ code: 'ASSISTANT_MODEL_NOT_ALLOWED' | 'ASSISTANT_MODEL_UNAVAILABLE';
29
+ modelId: string;
30
+ message: string;
31
+ };
24
32
  export type TAssistantPrimaryModelSelectionSource = 'explicit' | 'preference' | 'default' | 'retry' | 'fallback';
25
33
  export type TAssistantPrimaryModelSelection = {
26
34
  id: string;
@@ -37,7 +37,7 @@ export interface AssistantTemplateToolsetDependency {
37
37
  instanceName?: string;
38
38
  }
39
39
  export interface AssistantTemplateDependencies {
40
- /** Exact compatible versions; the active version is pinned at installation. */
40
+ /** Explicit exact runtime requirements. Omit for dependencies that support compatible upgrades. */
41
41
  versions?: {
42
42
  pluginName: PluginName;
43
43
  version: string;
@@ -13,15 +13,19 @@ import type { TAvatar } from '../types';
13
13
  * routes back to its sender; `message` publishes information without waking addressed Assistants.
14
14
  */
15
15
  export type ChatGroupIntent = 'request' | 'reply' | 'message';
16
- /** Per-recipient delivery progress, not a read receipt or the overall Assistant run status. */
16
+ /** Per-recipient delivery progress, independent of the overall Assistant run status. */
17
17
  export type ChatGroupDeliveryStatus =
18
18
  /** Accepted for delivery; dispatch may still be pending. */
19
19
  'pending'
20
- /** Starting an Assistant run for this message. */
20
+ /** Runtime reserved; acceptance of this specific input has not yet been confirmed. */
21
21
  | 'starting'
22
22
  /** Submitted to an active run through the existing steer/follow-up mechanism. */
23
23
  | 'steering'
24
- /** Consumed by the runtime; does not by itself mean a reply has been published. */
24
+ /**
25
+ * Consumed by the runtime; an Assistant delivery linked to an execution can display this as "read".
26
+ * Non-waking deliveries also use this terminal state, without asserting that a human has read them.
27
+ * Does not mean a reply has been published or the run has finished.
28
+ */
25
29
  | 'consumed'
26
30
  /** Delivery cannot proceed under the current authorization or runtime state. */
27
31
  | 'blocked'
package/src/ai/index.d.ts CHANGED
@@ -14,6 +14,7 @@ export * from './assistant-model.model';
14
14
  export * from './assistant-user-preference.model';
15
15
  export * from './ai-model.model';
16
16
  export * from './model-discovery.model';
17
+ export * from './provider-credential-validation.model';
17
18
  export * from './ai.model';
18
19
  export * from './chat-event.model';
19
20
  export { createResourceCardContent, isResourceCardContent, parseResourceCard, parseResourceCardContent, resourceCardId, upsertResourceCardContent } from './resource-card';
@@ -104,6 +105,7 @@ export * from './model-execution.model';
104
105
  export * from './agent-runtime.model';
105
106
  export * from './assistant-task-context.model';
106
107
  export * from './project-task-runtime.model';
108
+ export * from './project-pipeline';
107
109
  export * from './realtime-voice.model';
108
110
  export * from './chat-group.model';
109
111
  export * from './chat-group-entity.model';
@@ -2,6 +2,26 @@ import type { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.mo
2
2
  import type { JSONValue } from '../core.model';
3
3
  import type { McpApiKeySubjectType } from './mcp-auth.model';
4
4
  import type { McpCapabilityDescriptor, McpCapabilityType } from './mcp-capability.model';
5
+ import type { I18nObject } from '../types';
6
+ import type { JsonSchemaObjectType } from './types';
7
+ export interface McpPublicationPluginSource {
8
+ toolsetId: string;
9
+ name: string;
10
+ provider: string;
11
+ pluginName: string;
12
+ }
13
+ /** A configuration tab edits the existing bound source; it never creates a toolset. */
14
+ export interface McpPublicationConfigurationTab extends McpPublicationPluginSource {
15
+ title: I18nObject;
16
+ schema: JsonSchemaObjectType;
17
+ canEdit: boolean;
18
+ }
19
+ /** Opaque form placeholder. Array secrets append a source reference; clients must return it unchanged. */
20
+ export declare const MCP_CONFIGURATION_SECRET_MASK = "__xpert_mcp_secret_unchanged__";
21
+ export interface McpPublicationConfiguration {
22
+ values: Record<string, JSONValue>;
23
+ revision: string;
24
+ }
5
25
  export declare const MCP_PROTOCOL_VERSION: "2026-07-28";
6
26
  export declare const MCP_TASK_EXTENSION_ID: "io.modelcontextprotocol/tasks";
7
27
  export declare const MCP_HTTP_CORS_REQUEST_HEADERS: readonly ["MCP-Protocol-Version", "Mcp-Session-Id", "Mcp-Method", "Mcp-Name", "Traceparent", "Tracestate", "Baggage", "X-Request-Id"];
@@ -100,6 +100,8 @@ export declare function isDiscoverableModelType(value: unknown): value is Discov
100
100
  export declare function readModelConfiguration(properties?: {
101
101
  model_configuration?: unknown;
102
102
  } | null): ModelConfiguration | undefined;
103
+ /** Legacy fallback only; explicit model_configuration.features remains authoritative. */
104
+ export declare function legacyModelFeatures(properties?: Record<string, unknown> | null): ModelFeature[];
103
105
  export interface DiscoveredModel {
104
106
  /** Exact ID returned by the upstream discovery endpoint. */
105
107
  model: string;