@xpert-ai/contracts 3.34.0 → 3.35.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xpert-ai/contracts",
3
- "version": "3.34.0",
3
+ "version": "3.35.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.20.3",
24
+ "@xpert-ai/chatkit-types": "~0.21.0",
25
25
  "zod-to-json-schema": "^3.25.2"
26
26
  },
27
27
  "peerDependencies": {
@@ -323,6 +323,7 @@ export declare const trailGraphSchema: z.ZodObject<{
323
323
  toolCallId?: string;
324
324
  }[];
325
325
  threadId?: string;
326
+ coverage?: ("historical" | "record_limit" | "missing_identity" | "no_execution" | "timing_unavailable" | "activity_unavailable")[];
326
327
  messageId?: string;
327
328
  lanes?: {
328
329
  status?: "idle" | "error" | "unknown" | "success" | "interrupted" | "running" | "pending" | "waiting" | "cancelling";
@@ -343,7 +344,6 @@ export declare const trailGraphSchema: z.ZodObject<{
343
344
  spawnStepId?: string;
344
345
  elapsedMs?: number;
345
346
  }[];
346
- coverage?: ("historical" | "record_limit" | "missing_identity" | "no_execution" | "timing_unavailable" | "activity_unavailable")[];
347
347
  layer?: "execution" | "conversation";
348
348
  episodes?: {
349
349
  id?: string;
@@ -381,6 +381,7 @@ export declare const trailGraphSchema: z.ZodObject<{
381
381
  toolCallId?: string;
382
382
  }[];
383
383
  threadId?: string;
384
+ coverage?: ("historical" | "record_limit" | "missing_identity" | "no_execution" | "timing_unavailable" | "activity_unavailable")[];
384
385
  messageId?: string;
385
386
  lanes?: {
386
387
  status?: "idle" | "error" | "unknown" | "success" | "interrupted" | "running" | "pending" | "waiting" | "cancelling";
@@ -401,7 +402,6 @@ export declare const trailGraphSchema: z.ZodObject<{
401
402
  spawnStepId?: string;
402
403
  elapsedMs?: number;
403
404
  }[];
404
- coverage?: ("historical" | "record_limit" | "missing_identity" | "no_execution" | "timing_unavailable" | "activity_unavailable")[];
405
405
  layer?: "execution" | "conversation";
406
406
  episodes?: {
407
407
  id?: string;
@@ -66,8 +66,8 @@ export declare const executionControlEvidenceSchema: z.ZodDiscriminatedUnion<"so
66
66
  };
67
67
  source: "unavailable";
68
68
  version: 1;
69
- state: "unknown";
70
69
  reason: "unregistered" | "unconfirmed" | "unsupported";
70
+ state: "unknown";
71
71
  observedAt: string;
72
72
  }, {
73
73
  subject: {
@@ -79,8 +79,8 @@ export declare const executionControlEvidenceSchema: z.ZodDiscriminatedUnion<"so
79
79
  };
80
80
  source: "unavailable";
81
81
  version: 1;
82
- state: "unknown";
83
82
  reason: "unregistered" | "unconfirmed" | "unsupported";
83
+ state: "unknown";
84
84
  observedAt: string;
85
85
  }>, z.ZodObject<{
86
86
  source: z.ZodLiteral<"platform">;
@@ -315,9 +315,9 @@ export declare const executionControlEvidenceSchema: z.ZodDiscriminatedUnion<"so
315
315
  outcome: "failed" | "cancelled";
316
316
  source: "host_admission";
317
317
  version: 1;
318
+ reason: "not_started";
318
319
  scope: "operation";
319
320
  state: "settled";
320
- reason: "not_started";
321
321
  observedAt: string;
322
322
  }, {
323
323
  subject: {
@@ -327,9 +327,9 @@ export declare const executionControlEvidenceSchema: z.ZodDiscriminatedUnion<"so
327
327
  outcome: "failed" | "cancelled";
328
328
  source: "host_admission";
329
329
  version: 1;
330
+ reason: "not_started";
330
331
  scope: "operation";
331
332
  state: "settled";
332
- reason: "not_started";
333
333
  observedAt: string;
334
334
  }>]>;
335
335
  export type ExecutionControlEvidence = z.output<typeof executionControlEvidenceSchema>;
package/src/ai/index.d.ts CHANGED
@@ -76,6 +76,8 @@ export * from './xpert-workflow-task.prompt';
76
76
  export * from './xpert-tool-mcp.model';
77
77
  export * from './xpert-project.model';
78
78
  export * from './xpert-project-type.model';
79
+ export * from './project-type-configuration.model';
80
+ export * from './project-configuration-view.model';
79
81
  export * from './environment.model';
80
82
  export * from './knowledgebase-task.model';
81
83
  export * from './knowledge-pipeline';
@@ -94,6 +94,8 @@ export type ModelExecutionPolicy = {
94
94
  /** Explicit, limited Chat Completions translations; never advertised as native support. */
95
95
  chatBridgeProtocols?: Array<'openai_responses' | 'anthropic_messages'>;
96
96
  limits: ModelExecutionLimits;
97
+ /** Default for new executions without a host override; limits.maxDurationSeconds remains the ceiling. */
98
+ defaultDurationSeconds?: number;
97
99
  /** Background Coding and Computer Codex launches; evidence-only reviews remain restricted. */
98
100
  cliPermissions?: {
99
101
  defaultMode: CliPermissionMode;
@@ -0,0 +1,77 @@
1
+ import { z } from 'zod/v3';
2
+ export declare const PROJECT_CONFIGURATION_PROVIDER = "platform.project-configuration";
3
+ export declare const PROJECT_CONFIGURATION_VIEW = "platform.project-configuration__configuration";
4
+ export declare const projectConfigurationSectionSchema: z.ZodEnum<["type", "experts", "members", "skills", "connectors", "automations", "delete"]>;
5
+ export type ProjectConfigurationSection = z.infer<typeof projectConfigurationSectionSchema>;
6
+ export declare const PROJECT_CONFIGURATION_ACTION_HANDLERS: {
7
+ readonly type: "editors";
8
+ readonly 'type-save': "editors";
9
+ readonly experts: "editors";
10
+ readonly 'expert-add': "editors";
11
+ readonly 'expert-remove': "editors";
12
+ readonly members: "editors";
13
+ readonly 'member-add': "editors";
14
+ readonly 'member-role': "editors";
15
+ readonly 'member-remove': "editors";
16
+ readonly 'member-owner': "editors";
17
+ readonly 'member-invite': "editors";
18
+ readonly 'invitation-revoke': "editors";
19
+ readonly 'skill-catalog': "editors";
20
+ readonly 'skill-install': "editors";
21
+ readonly 'skill-toggle': "editors";
22
+ readonly 'skill-remove': "editors";
23
+ readonly connectors: "connectors";
24
+ readonly 'connector-add': "connectors";
25
+ readonly 'connector-remove': "connectors";
26
+ readonly 'connector-connect': "connectors";
27
+ readonly 'connector-status': "connectors";
28
+ readonly 'connector-cancel': "connectors";
29
+ readonly automations: "automations";
30
+ readonly 'automation-save': "automations";
31
+ readonly 'automation-options': "automations";
32
+ readonly 'automation-pause': "automations";
33
+ readonly 'automation-resume': "automations";
34
+ readonly 'automation-delete': "automations";
35
+ readonly 'automation-propose': "automations";
36
+ readonly 'automation-accept': "automations";
37
+ readonly 'automation-connectors': "automations";
38
+ readonly delete: "editors";
39
+ };
40
+ export type ProjectConfigurationAction = keyof typeof PROJECT_CONFIGURATION_ACTION_HANDLERS;
41
+ export declare const projectConfigurationActionSchema: z.ZodType<"type" | "connectors" | "experts" | "members" | "delete" | "automations" | "type-save" | "expert-add" | "expert-remove" | "member-add" | "member-role" | "member-remove" | "member-owner" | "member-invite" | "invitation-revoke" | "skill-catalog" | "skill-install" | "skill-toggle" | "skill-remove" | "connector-add" | "connector-remove" | "connector-connect" | "connector-status" | "connector-cancel" | "automation-save" | "automation-options" | "automation-pause" | "automation-resume" | "automation-delete" | "automation-propose" | "automation-accept" | "automation-connectors", z.ZodTypeDef, "type" | "connectors" | "experts" | "members" | "delete" | "automations" | "type-save" | "expert-add" | "expert-remove" | "member-add" | "member-role" | "member-remove" | "member-owner" | "member-invite" | "invitation-revoke" | "skill-catalog" | "skill-install" | "skill-toggle" | "skill-remove" | "connector-add" | "connector-remove" | "connector-connect" | "connector-status" | "connector-cancel" | "automation-save" | "automation-options" | "automation-pause" | "automation-resume" | "automation-delete" | "automation-propose" | "automation-accept" | "automation-connectors">;
42
+ export declare const PROJECT_CONFIGURATION_ACTIONS: ("type" | "connectors" | "experts" | "members" | "delete" | "automations" | "type-save" | "expert-add" | "expert-remove" | "member-add" | "member-role" | "member-remove" | "member-owner" | "member-invite" | "invitation-revoke" | "skill-catalog" | "skill-install" | "skill-toggle" | "skill-remove" | "connector-add" | "connector-remove" | "connector-connect" | "connector-status" | "connector-cancel" | "automation-save" | "automation-options" | "automation-pause" | "automation-resume" | "automation-delete" | "automation-propose" | "automation-accept" | "automation-connectors")[];
43
+ /** Compact public projection; credentials and authoring Assistant graphs never enter the iframe. */
44
+ export interface ProjectConfigurationOverview {
45
+ projectId: string;
46
+ name: string;
47
+ userId: string;
48
+ canEdit: boolean;
49
+ canManage: boolean;
50
+ isOwner: boolean;
51
+ applicationManaged: boolean;
52
+ instruction: string;
53
+ effectiveMaxDurationSeconds: number;
54
+ tenantMaxDurationSeconds: number;
55
+ experts: {
56
+ id: string;
57
+ name: string;
58
+ }[];
59
+ members: {
60
+ id: string;
61
+ name: string;
62
+ role: 'owner' | 'manager' | 'editor' | 'member';
63
+ }[];
64
+ skills: {
65
+ id: string;
66
+ name: string;
67
+ description?: string;
68
+ enabled: boolean;
69
+ }[];
70
+ automations: {
71
+ id: string;
72
+ name: string;
73
+ schedule: string;
74
+ status: string;
75
+ }[];
76
+ automationTotal: number;
77
+ }
@@ -22,6 +22,44 @@ export declare const projectPipelineNativeModelBudgetSchema: z.ZodEffects<z.ZodO
22
22
  reservationTokens: number;
23
23
  }>;
24
24
  export type ProjectPipelineNativeModelBudget = z.output<typeof projectPipelineNativeModelBudgetSchema>;
25
+ /** Human management command. maxTokens is the new total ceiling, not an additional allowance. */
26
+ export declare const projectPipelineModelBudgetIncreaseSchema: z.ZodObject<{
27
+ instanceId: z.ZodString;
28
+ requestId: z.ZodString;
29
+ expectedRevision: z.ZodNumber;
30
+ maxTokens: z.ZodNumber;
31
+ reason: z.ZodString;
32
+ }, "strict", z.ZodTypeAny, {
33
+ maxTokens: number;
34
+ instanceId: string;
35
+ requestId: string;
36
+ expectedRevision: number;
37
+ reason: string;
38
+ }, {
39
+ maxTokens: number;
40
+ instanceId: string;
41
+ requestId: string;
42
+ expectedRevision: number;
43
+ reason: string;
44
+ }>;
45
+ export type ProjectPipelineModelBudgetIncrease = z.output<typeof projectPipelineModelBudgetIncreaseSchema>;
46
+ export declare const projectPipelineModelBudgetIncreaseRecordSchema: z.ZodObject<{
47
+ requestId: z.ZodString;
48
+ previousMaxTokens: z.ZodNumber;
49
+ maxTokens: z.ZodNumber;
50
+ reason: z.ZodString;
51
+ }, "strict", z.ZodTypeAny, {
52
+ maxTokens: number;
53
+ requestId: string;
54
+ reason: string;
55
+ previousMaxTokens: number;
56
+ }, {
57
+ maxTokens: number;
58
+ requestId: string;
59
+ reason: string;
60
+ previousMaxTokens: number;
61
+ }>;
62
+ export type ProjectPipelineModelBudgetIncreaseRecord = z.output<typeof projectPipelineModelBudgetIncreaseRecordSchema>;
25
63
  export declare const projectPipelineNativeModelBudgetStatusSchema: z.ZodObject<{
26
64
  scope: z.ZodLiteral<"instance_native_llm">;
27
65
  policy: z.ZodEffects<z.ZodObject<{
@@ -4405,6 +4405,7 @@ export declare const projectPipelineDecisionSchema: z.ZodObject<{
4405
4405
  }, "strict", z.ZodTypeAny, {
4406
4406
  outcome: string;
4407
4407
  requestId: string;
4408
+ expectedRevision: number;
4408
4409
  inputDigest: string;
4409
4410
  generation: number;
4410
4411
  evidence: {
@@ -4416,10 +4417,10 @@ export declare const projectPipelineDecisionSchema: z.ZodObject<{
4416
4417
  producerOperationId?: string | undefined;
4417
4418
  }[];
4418
4419
  attentionId: string;
4419
- expectedRevision: number;
4420
4420
  }, {
4421
4421
  outcome: string;
4422
4422
  requestId: string;
4423
+ expectedRevision: number;
4423
4424
  inputDigest: string;
4424
4425
  generation: number;
4425
4426
  evidence: {
@@ -4431,7 +4432,6 @@ export declare const projectPipelineDecisionSchema: z.ZodObject<{
4431
4432
  producerOperationId?: string | undefined;
4432
4433
  }[];
4433
4434
  attentionId: string;
4434
- expectedRevision: number;
4435
4435
  }>;
4436
4436
  export type ProjectPipelineDecision = z.output<typeof projectPipelineDecisionSchema>;
4437
4437
  export declare const projectPipelineNextRoundSchema: z.ZodObject<{
@@ -4439,12 +4439,12 @@ export declare const projectPipelineNextRoundSchema: z.ZodObject<{
4439
4439
  requestId: z.ZodString;
4440
4440
  expectedRevision: z.ZodNumber;
4441
4441
  }, "strict", z.ZodTypeAny, {
4442
- requestId: string;
4443
4442
  instanceId: string;
4443
+ requestId: string;
4444
4444
  expectedRevision: number;
4445
4445
  }, {
4446
- requestId: string;
4447
4446
  instanceId: string;
4447
+ requestId: string;
4448
4448
  expectedRevision: number;
4449
4449
  }>;
4450
4450
  export type ProjectPipelineNextRound = z.output<typeof projectPipelineNextRoundSchema>;
@@ -4453,12 +4453,12 @@ export declare const projectPipelineCancelSchema: z.ZodObject<{
4453
4453
  requestId: z.ZodString;
4454
4454
  expectedRevision: z.ZodNumber;
4455
4455
  }, "strict", z.ZodTypeAny, {
4456
- requestId: string;
4457
4456
  instanceId: string;
4457
+ requestId: string;
4458
4458
  expectedRevision: number;
4459
4459
  }, {
4460
- requestId: string;
4461
4460
  instanceId: string;
4461
+ requestId: string;
4462
4462
  expectedRevision: number;
4463
4463
  }>;
4464
4464
  export type ProjectPipelineCancel = z.output<typeof projectPipelineCancelSchema>;
@@ -4471,18 +4471,18 @@ export declare const projectPipelineRetrySchema: z.ZodObject<{
4471
4471
  generation: z.ZodNumber;
4472
4472
  }, "strict", z.ZodTypeAny, {
4473
4473
  operationId: string;
4474
- requestId: string;
4475
4474
  instanceId: string;
4475
+ requestId: string;
4476
+ expectedRevision: number;
4476
4477
  inputDigest: string;
4477
4478
  generation: number;
4478
- expectedRevision: number;
4479
4479
  }, {
4480
4480
  operationId: string;
4481
- requestId: string;
4482
4481
  instanceId: string;
4482
+ requestId: string;
4483
+ expectedRevision: number;
4483
4484
  inputDigest: string;
4484
4485
  generation: number;
4485
- expectedRevision: number;
4486
4486
  }>;
4487
4487
  export type ProjectPipelineRetry = z.output<typeof projectPipelineRetrySchema>;
4488
4488
  export interface ProjectPipelineStartReceipt {
@@ -1406,9 +1406,9 @@ export declare const projectPipelineCatalogConfigureSchema: z.ZodObject<{
1406
1406
  }>>;
1407
1407
  parameters: z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodType<import("./primitives.schema").ProjectPipelineJsonValue, z.ZodTypeDef, import("./primitives.schema").ProjectPipelineJsonValue>>;
1408
1408
  }, "strict", z.ZodTypeAny, {
1409
+ requestId: string;
1409
1410
  templateRef: string;
1410
1411
  parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
1411
- requestId: string;
1412
1412
  contributionKey: string;
1413
1413
  assistants: Record<string, string>;
1414
1414
  nativeModelBudget?: {
@@ -1421,9 +1421,9 @@ export declare const projectPipelineCatalogConfigureSchema: z.ZodObject<{
1421
1421
  bindingId: string;
1422
1422
  }> | undefined;
1423
1423
  }, {
1424
+ requestId: string;
1424
1425
  templateRef: string;
1425
1426
  parameters: Record<string, import("./primitives.schema").ProjectPipelineJsonValue>;
1426
- requestId: string;
1427
1427
  contributionKey: string;
1428
1428
  assistants: Record<string, string>;
1429
1429
  nativeModelBudget?: {
@@ -28,3 +28,4 @@ export * from './compatibility';
28
28
  export * from './budget.schema';
29
29
  export * from './native-source.schema';
30
30
  export * from './contribution.schema';
31
+ export * from './plugin-deployment.schema';
@@ -92,11 +92,11 @@ export declare const pipelineModelUsageFactSchema: z.ZodObject<{
92
92
  priceAmount: z.ZodNullable<z.ZodNumber>;
93
93
  }, "strip", z.ZodTypeAny, {
94
94
  provider: string;
95
+ requestId: string;
95
96
  totalTokens: number | null;
96
97
  model: string;
97
98
  originExecutionId: string;
98
99
  providerScopeId: string;
99
- requestId: string;
100
100
  metricKey: string;
101
101
  revision: number;
102
102
  promptTokens: number | null;
@@ -106,11 +106,11 @@ export declare const pipelineModelUsageFactSchema: z.ZodObject<{
106
106
  priceAmount: number | null;
107
107
  }, {
108
108
  provider: string;
109
+ requestId: string;
109
110
  totalTokens: number | null;
110
111
  model: string;
111
112
  originExecutionId: string;
112
113
  providerScopeId: string;
113
- requestId: string;
114
114
  metricKey: string;
115
115
  revision: number;
116
116
  promptTokens: number | null;