@xpert-ai/contracts 3.33.1 → 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/index.cjs.js +545 -168
- package/index.esm.js +517 -169
- package/package.json +2 -2
- package/src/ai/ai.model.d.ts +1 -1
- package/src/ai/chat-group-entity.model.d.ts +1 -1
- package/src/ai/chat-group.model.d.ts +116 -3
- package/src/ai/conversation-trail.model.d.ts +2 -2
- package/src/ai/evolution/baseline.d.ts +12 -0
- package/src/ai/evolution/candidate.d.ts +20 -0
- package/src/ai/evolution/capability-version.d.ts +12 -0
- package/src/ai/evolution/change.d.ts +40 -2
- package/src/ai/evolution/evaluation.d.ts +26 -0
- package/src/ai/evolution/example.d.ts +5 -0
- package/src/ai/evolution/experience.d.ts +3 -0
- package/src/ai/evolution/governance.d.ts +29 -3
- package/src/ai/evolution/index.d.ts +1 -0
- package/src/ai/evolution/learning-event.d.ts +13 -0
- package/src/ai/evolution/learning-review.d.ts +61 -0
- package/src/ai/evolution/persistence.d.ts +7 -2
- package/src/ai/evolution/provider.d.ts +38 -0
- package/src/ai/evolution/release.d.ts +24 -6
- package/src/ai/evolution/runtime.d.ts +19 -0
- package/src/ai/evolution/strategy.d.ts +10 -0
- package/src/ai/evolution/target.d.ts +34 -6
- package/src/ai/execution-control-evidence.schema.d.ts +46 -4
- package/src/ai/index.d.ts +4 -0
- package/src/ai/model-execution.model.d.ts +2 -0
- package/src/ai/project-configuration-view.model.d.ts +77 -0
- package/src/ai/project-pipeline/analytics.d.ts +5 -33
- package/src/ai/project-pipeline/budget.schema.d.ts +38 -0
- package/src/ai/project-pipeline/commands.schema.d.ts +10 -10
- package/src/ai/project-pipeline/configuration-form.d.ts +2 -2
- package/src/ai/project-pipeline/index.d.ts +1 -0
- package/src/ai/project-pipeline/model-usage-statistics.d.ts +6 -26
- package/src/ai/project-pipeline/operation.schema.d.ts +370 -40
- package/src/ai/project-pipeline/plugin-deployment.schema.d.ts +152 -0
- package/src/ai/project-pipeline/portfolio.schema.d.ts +14 -86
- package/src/ai/project-pipeline/provider-actions.schema.d.ts +12 -12
- package/src/ai/project-pipeline/runtime.schema.d.ts +2 -2
- package/src/ai/project-pipeline/statistics.d.ts +5 -33
- package/src/ai/project-task-runtime.model.d.ts +1329 -78
- package/src/ai/project-type-configuration.model.d.ts +48 -0
- package/src/ai/xpert-agent-execution.model.d.ts +16 -2
- package/src/ai/xpert-project-type.model.d.ts +3 -0
- package/src/ai/xpert-project.model.d.ts +3 -1
- package/src/ai/xpert-task.model.d.ts +16 -0
- package/src/ai/xpert.model.d.ts +2 -0
- package/src/app-platform.d.ts +36 -36
- package/src/artifact-group-reference.model.d.ts +71 -0
- package/src/artifact-use-grant-command.d.ts +54 -0
- package/src/artifact-use-grant.model.d.ts +62 -0
- package/src/content-resource.model.d.ts +3 -0
- package/src/conversation-resource.model.d.ts +63 -0
- package/src/desktop-shell.model.d.ts +13 -1
- package/src/icon-definition.schema.d.ts +24 -0
- package/src/index.d.ts +6 -0
- package/src/plugin-management.d.ts +13 -0
- package/src/plugin.d.ts +2 -0
- package/src/resource-analysis.model.d.ts +140 -0
- package/src/runtime-control.d.ts +6 -0
- package/src/types.d.ts +1 -2
- package/src/user-notification.schema.d.ts +29 -0
- package/src/user.model.d.ts +11 -0
- package/src/view-extension/client-commands.d.ts +176 -0
- package/src/view-extension/context-event.d.ts +66 -0
- package/src/view-extension/index.d.ts +2 -0
- package/src/view-extension/model.d.ts +2 -158
- package/src/view-extension/workbench-open.d.ts +17 -2
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { LearningEvent, LearningEventInput } from './learning-event';
|
|
2
2
|
import { CapabilityVersion, CapabilityVersionBundle } from './capability-version';
|
|
3
3
|
import { EvolutionChannel, EvolutionExecutionMode, EvolutionScope } from './target';
|
|
4
|
+
/** Outcome of one target decision, attributable to the execution, version bundle and channel that produced it. */
|
|
4
5
|
export interface EvolutionRuntimeObservationInput {
|
|
5
6
|
observationId?: string;
|
|
6
7
|
targetId: string;
|
|
@@ -10,6 +11,8 @@ export interface EvolutionRuntimeObservationInput {
|
|
|
10
11
|
deploymentId?: string;
|
|
11
12
|
subjectKey: string;
|
|
12
13
|
channel: EvolutionChannel;
|
|
14
|
+
/** Production baseline outcome on the same input. Omit when unknown; false means an observed failure. */
|
|
15
|
+
baselineSuccess?: boolean;
|
|
13
16
|
success: boolean;
|
|
14
17
|
severeError: boolean;
|
|
15
18
|
latencyMs: number;
|
|
@@ -17,26 +20,32 @@ export interface EvolutionRuntimeObservationInput {
|
|
|
17
20
|
correctionRequired?: boolean;
|
|
18
21
|
observedAt: string;
|
|
19
22
|
}
|
|
23
|
+
/** Recorded decision outcome; creation time is distinct from the time the outcome was observed. */
|
|
20
24
|
export interface EvolutionRuntimeObservation extends EvolutionRuntimeObservationInput {
|
|
21
25
|
observationId: string;
|
|
22
26
|
createdAt: string;
|
|
23
27
|
}
|
|
28
|
+
/** Selects versions for one execution in its trusted tenant and resource scope. */
|
|
24
29
|
export interface ResolveCapabilityExecutionPlanRequest {
|
|
25
30
|
tenantId: string;
|
|
26
31
|
organizationId?: string | null;
|
|
27
32
|
scope: EvolutionScope;
|
|
28
33
|
targetIds: string[];
|
|
34
|
+
/** Stable cohort identity within a deployment; distinct from the ID of an individual execution. */
|
|
29
35
|
subjectKey: string;
|
|
30
36
|
executionId: string;
|
|
31
37
|
}
|
|
38
|
+
/** Version and channel selected for one target; a deployment ID attributes the assignment to a rollout. */
|
|
32
39
|
export interface CapabilityExecutionAssignment {
|
|
33
40
|
targetId: string;
|
|
34
41
|
channel: EvolutionChannel;
|
|
35
42
|
versionId: string;
|
|
36
43
|
deploymentId?: string;
|
|
44
|
+
/** Present for an explicit test assignment, distinct from ordinary canary allocation. */
|
|
37
45
|
selectionReason?: 'manual_test_override';
|
|
38
46
|
manualTestOverrideId?: string;
|
|
39
47
|
}
|
|
48
|
+
/** Audit record binding a consumed single-use canary assignment to its target and deployment. */
|
|
40
49
|
export interface CapabilityExecutionManualTestOverride {
|
|
41
50
|
overrideId: string;
|
|
42
51
|
releasePackageId: string;
|
|
@@ -44,35 +53,45 @@ export interface CapabilityExecutionManualTestOverride {
|
|
|
44
53
|
targetId: string;
|
|
45
54
|
consumedAt: string;
|
|
46
55
|
}
|
|
56
|
+
/** Pins the versions for one execution. Only the primary assignments determine the served decision. */
|
|
47
57
|
export interface CapabilityExecutionPlan {
|
|
48
58
|
executionId: string;
|
|
59
|
+
/** Mode of the overall plan; a particular target's channel is given by its own assignment. */
|
|
49
60
|
executionMode: EvolutionExecutionMode;
|
|
50
61
|
subjectKey: string;
|
|
62
|
+
/** Version bindings for the primary assignments, including any selected canary versions. */
|
|
51
63
|
bundle: CapabilityVersionBundle;
|
|
52
64
|
assignments: CapabilityExecutionAssignment[];
|
|
53
65
|
/** Explicit audit marker; never present for normal deterministic Canary routing. */
|
|
54
66
|
manualTestOverrides?: CapabilityExecutionManualTestOverride[];
|
|
67
|
+
/** Separate bindings for observation only; shadow results must not change the served decision. */
|
|
55
68
|
shadowBundle?: CapabilityVersionBundle;
|
|
56
69
|
shadowAssignments?: CapabilityExecutionAssignment[];
|
|
57
70
|
resolvedAt: string;
|
|
58
71
|
}
|
|
72
|
+
/** Plugin-facing contract for scoped evidence, runtime version resolution and observed outcomes. */
|
|
59
73
|
export interface EvolutionRuntimeApi {
|
|
74
|
+
/** Records evidence under its idempotency key; accepting evidence does not change the active version. */
|
|
60
75
|
ingestLearningEvent(input: {
|
|
61
76
|
tenantId: string;
|
|
62
77
|
organizationId?: string | null;
|
|
63
78
|
event: LearningEventInput;
|
|
64
79
|
}): Promise<LearningEvent>;
|
|
80
|
+
/** Resolves the primary and optional shadow bindings for the specified execution. */
|
|
65
81
|
resolveExecutionPlan(request: ResolveCapabilityExecutionPlanRequest): Promise<CapabilityExecutionPlan>;
|
|
82
|
+
/** Returns the recorded bindings by bundle ID, independent of later pointer changes. */
|
|
66
83
|
getCapabilityBundle(input: {
|
|
67
84
|
tenantId: string;
|
|
68
85
|
organizationId?: string | null;
|
|
69
86
|
bundleId: string;
|
|
70
87
|
}): Promise<CapabilityVersionBundle>;
|
|
88
|
+
/** Returns the immutable version and artifact reference identified by version ID within the supplied identity. */
|
|
71
89
|
getCapabilityVersion(input: {
|
|
72
90
|
tenantId: string;
|
|
73
91
|
organizationId?: string | null;
|
|
74
92
|
versionId: string;
|
|
75
93
|
}): Promise<CapabilityVersion>;
|
|
94
|
+
/** Attributes an observed outcome to the execution and bundle that produced it. */
|
|
76
95
|
recordRuntimeObservation(input: {
|
|
77
96
|
tenantId: string;
|
|
78
97
|
organizationId?: string | null;
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import type { I18nText } from '../../i18n.model';
|
|
2
2
|
import type { EvolutionEvidenceRef } from './change';
|
|
3
3
|
import type { EvolutionRiskLevel } from './target';
|
|
4
|
+
/** Origin of a change request; it does not by itself choose the evaluation or publication path. */
|
|
4
5
|
export type EvolutionInputKind = 'learning_events' | 'business_evidence' | 'manual';
|
|
6
|
+
/** Distinct governance stages, including whether a published change has taken effect. */
|
|
5
7
|
export type EvolutionStageKey = 'learning' | 'candidate' | 'evaluation' | 'approval' | 'publication' | 'effect';
|
|
8
|
+
/** Progress of a stage; not_applicable is distinct from a stage that ran and passed. */
|
|
6
9
|
export type EvolutionStageStatus = 'pending' | 'running' | 'passed' | 'failed' | 'not_applicable';
|
|
10
|
+
/** Named assessment of the candidate; required checks specify the evidence needed for coverage. */
|
|
7
11
|
export interface EvolutionEvaluationStep {
|
|
12
|
+
/** Stable identity within the strategy, including for dataset bindings. */
|
|
8
13
|
key: string;
|
|
9
14
|
kind: 'target_checks' | 'golden_replay';
|
|
10
15
|
requiredChecks: Array<{
|
|
@@ -19,6 +24,7 @@ export interface EvolutionStrategy {
|
|
|
19
24
|
version: string;
|
|
20
25
|
label: I18nText;
|
|
21
26
|
inputs: EvolutionInputKind[];
|
|
27
|
+
/** Evidence eligibility requirements, distinct from whether an evaluation is required. */
|
|
22
28
|
learning: {
|
|
23
29
|
mode: 'none';
|
|
24
30
|
} | {
|
|
@@ -34,18 +40,22 @@ export interface EvolutionStrategy {
|
|
|
34
40
|
};
|
|
35
41
|
evaluations: EvolutionEvaluationStep[];
|
|
36
42
|
approval: 'human';
|
|
43
|
+
/** Distinguishes how a version is published from how it takes effect: by activation or by explicit adoption. */
|
|
37
44
|
publication: {
|
|
38
45
|
mode: 'staged_rollout' | 'version_write';
|
|
39
46
|
effect: 'activation' | 'explicit_adoption';
|
|
40
47
|
};
|
|
41
48
|
}
|
|
49
|
+
/** Strategy, provider version and risk level frozen for a particular change. */
|
|
42
50
|
export interface EvolutionStrategySnapshot {
|
|
43
51
|
definition: EvolutionStrategy;
|
|
44
52
|
riskLevel: EvolutionRiskLevel;
|
|
53
|
+
/** Fingerprint of the frozen strategy snapshot used to bind evaluations and approvals. */
|
|
45
54
|
hash: string;
|
|
46
55
|
providerKey: string;
|
|
47
56
|
providerVersion: string;
|
|
48
57
|
}
|
|
58
|
+
/** Outcome of a strategy stage with references to any runs supporting that outcome. */
|
|
49
59
|
export interface EvolutionStageRecord {
|
|
50
60
|
key: EvolutionStageKey;
|
|
51
61
|
status: EvolutionStageStatus;
|
|
@@ -1,32 +1,42 @@
|
|
|
1
1
|
import type { I18nText } from '../../i18n.model';
|
|
2
|
+
/** Provider-defined family of targets; the target ID identifies a particular target. */
|
|
2
3
|
export type EvolutionTargetType = string;
|
|
4
|
+
/** Resource boundary within which a target's versions may take effect. */
|
|
3
5
|
export type EvolutionScopeType = 'tenant' | 'organization' | 'workspace' | 'project';
|
|
6
|
+
/** Distinguishes offline replay from executions serving or observing live decisions. */
|
|
4
7
|
export type EvolutionExecutionMode = 'production' | 'replay' | 'shadow' | 'canary';
|
|
8
|
+
/** Role of a deployed version: normal traffic, a served canary cohort, or observation only. */
|
|
5
9
|
export type EvolutionChannel = 'production' | 'shadow' | 'canary';
|
|
10
|
+
/** Governance risk tier of a target or change, independent of its measured accuracy. */
|
|
6
11
|
export type EvolutionRiskLevel = 'R1' | 'R2' | 'R3' | 'R4';
|
|
7
|
-
/**
|
|
12
|
+
/** Additional provider-defined dimensions of scope identity; equality includes the complete map. */
|
|
8
13
|
export interface EvolutionScopeDimensions {
|
|
9
14
|
[key: string]: string | undefined;
|
|
10
15
|
}
|
|
16
|
+
/** Identifies the resource boundary to which evidence, candidates and version assignments belong. */
|
|
11
17
|
export interface EvolutionScope {
|
|
12
18
|
type: EvolutionScopeType;
|
|
13
19
|
key: string;
|
|
14
20
|
dimensions?: EvolutionScopeDimensions;
|
|
15
21
|
}
|
|
22
|
+
/** Identity responsible for an operation; an audit attribution, not a permission grant. */
|
|
16
23
|
export interface EvolutionActor {
|
|
17
24
|
actorId: string;
|
|
18
25
|
actorType: 'human' | 'agent' | 'system';
|
|
19
26
|
actorRole?: string;
|
|
20
27
|
}
|
|
28
|
+
/** Identity and resource scope of a provider operation. Domain input must not override this context. */
|
|
21
29
|
export interface EvolutionProviderContext {
|
|
22
30
|
tenantId: string;
|
|
23
31
|
organizationId?: string | null;
|
|
24
32
|
targetId: string;
|
|
25
33
|
scope: EvolutionScope;
|
|
34
|
+
/** Groups related work for tracing even when no Agent execution is involved. */
|
|
26
35
|
correlationId: string;
|
|
27
36
|
executionId?: string;
|
|
28
37
|
actor: EvolutionActor;
|
|
29
38
|
}
|
|
39
|
+
/** Declares which evolution operations a target supports; support does not authorize an actor to perform them. */
|
|
30
40
|
export interface EvolutionTargetCapabilities {
|
|
31
41
|
candidateBuild: boolean;
|
|
32
42
|
replay: boolean;
|
|
@@ -35,7 +45,9 @@ export interface EvolutionTargetCapabilities {
|
|
|
35
45
|
install: boolean;
|
|
36
46
|
rollback: boolean;
|
|
37
47
|
}
|
|
48
|
+
/** Value category of a provider-defined change field; a select value is an option key. */
|
|
38
49
|
export type EvolutionCandidateChangeFieldType = 'string' | 'number' | 'boolean' | 'string_array' | 'select';
|
|
50
|
+
/** Names and constrains one entry in the target's change set; its key has provider-defined meaning. */
|
|
39
51
|
export interface EvolutionCandidateChangeFieldDescriptor {
|
|
40
52
|
key: string;
|
|
41
53
|
label: I18nText;
|
|
@@ -49,38 +61,54 @@ export interface EvolutionCandidateChangeFieldDescriptor {
|
|
|
49
61
|
value: string;
|
|
50
62
|
}>;
|
|
51
63
|
}
|
|
52
|
-
/**
|
|
53
|
-
* Optional, provider-owned description used by the platform to render a
|
|
54
|
-
* domain-neutral Candidate Change Set editor. The platform never interprets
|
|
55
|
-
* the field keys or embeds domain rules of its own.
|
|
56
|
-
*/
|
|
64
|
+
/** Provider-owned description of candidate inputs. The provider owns the meaning and validation of the field keys. */
|
|
57
65
|
export interface EvolutionCandidateFormDescriptor {
|
|
58
66
|
description?: I18nText;
|
|
59
67
|
fields: EvolutionCandidateChangeFieldDescriptor[];
|
|
60
68
|
}
|
|
69
|
+
/** Declares a target's identity, compatible artifact format and supported evolution strategies. */
|
|
61
70
|
export interface EvolutionTargetDescriptor {
|
|
62
71
|
strategies: import('./strategy').EvolutionStrategy[];
|
|
63
72
|
category?: {
|
|
64
73
|
key: string;
|
|
65
74
|
label: I18nText;
|
|
66
75
|
};
|
|
76
|
+
/** Stable identity shared by the target's evidence, versions and releases. */
|
|
67
77
|
targetId: string;
|
|
68
78
|
targetType: EvolutionTargetType;
|
|
69
79
|
displayName: string;
|
|
80
|
+
/** Provider-owned localized name of the same registered capability. */
|
|
81
|
+
label?: I18nText;
|
|
82
|
+
/** Registration key of the implementation responsible for this target. */
|
|
70
83
|
providerKey: string;
|
|
84
|
+
/** Version of the provider implementation, independent of any capability version it produces. */
|
|
71
85
|
providerVersion: string;
|
|
86
|
+
/** Version of the artifact format declared by the provider. */
|
|
72
87
|
artifactSchemaVersion: string;
|
|
73
88
|
supportedScopes: EvolutionScopeType[];
|
|
74
89
|
riskLevel: EvolutionRiskLevel;
|
|
75
90
|
metricSetId: string;
|
|
76
91
|
relatedTargetIds?: string[];
|
|
92
|
+
/** Provider vocabulary for feedback emitted by this target, including previously recorded events. */
|
|
93
|
+
feedbackVocabulary?: {
|
|
94
|
+
/** Stable reason codes that denote a correction to a prediction. */
|
|
95
|
+
correctionReasons: string[];
|
|
96
|
+
/** Localized labels for exact scalar prediction and outcome values. */
|
|
97
|
+
values?: Record<string, I18nText>;
|
|
98
|
+
/** Localized labels for provider-owned reason codes. */
|
|
99
|
+
reasons?: Record<string, I18nText>;
|
|
100
|
+
};
|
|
77
101
|
candidateForm?: EvolutionCandidateFormDescriptor;
|
|
78
102
|
capabilities: EvolutionTargetCapabilities;
|
|
79
103
|
status: 'active' | 'disabled' | 'provider_unavailable';
|
|
80
104
|
}
|
|
105
|
+
/** Identifies a provider-defined artifact by its content and schema, independent of how it is stored. */
|
|
81
106
|
export interface EvolutionArtifactRef {
|
|
107
|
+
/** Provider-defined content location or inline representation. */
|
|
82
108
|
uri: string;
|
|
109
|
+
/** Identity of the artifact content; a different payload must not be substituted under the same hash. */
|
|
83
110
|
hash: string;
|
|
111
|
+
/** Format of this payload, independent of the provider and capability versions. */
|
|
84
112
|
schemaVersion: string;
|
|
85
113
|
mediaType: 'application/json';
|
|
86
114
|
}
|
|
@@ -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">;
|
|
@@ -247,6 +247,48 @@ export declare const executionControlEvidenceSchema: z.ZodDiscriminatedUnion<"so
|
|
|
247
247
|
version: 1;
|
|
248
248
|
generation: string;
|
|
249
249
|
} | undefined;
|
|
250
|
+
}>, z.ZodObject<{
|
|
251
|
+
source: z.ZodLiteral<"native_graph">;
|
|
252
|
+
subject: z.ZodObject<{
|
|
253
|
+
kind: z.ZodLiteral<"invocation">;
|
|
254
|
+
id: z.ZodString;
|
|
255
|
+
}, "strict", z.ZodTypeAny, {
|
|
256
|
+
kind: "invocation";
|
|
257
|
+
id: string;
|
|
258
|
+
}, {
|
|
259
|
+
kind: "invocation";
|
|
260
|
+
id: string;
|
|
261
|
+
}>;
|
|
262
|
+
scope: z.ZodLiteral<"operation">;
|
|
263
|
+
state: z.ZodLiteral<"settled">;
|
|
264
|
+
outcome: z.ZodLiteral<"cancelled">;
|
|
265
|
+
executionId: z.ZodString;
|
|
266
|
+
version: z.ZodLiteral<1>;
|
|
267
|
+
observedAt: z.ZodString;
|
|
268
|
+
}, "strict", z.ZodTypeAny, {
|
|
269
|
+
subject: {
|
|
270
|
+
kind: "invocation";
|
|
271
|
+
id: string;
|
|
272
|
+
};
|
|
273
|
+
outcome: "cancelled";
|
|
274
|
+
source: "native_graph";
|
|
275
|
+
version: 1;
|
|
276
|
+
scope: "operation";
|
|
277
|
+
state: "settled";
|
|
278
|
+
observedAt: string;
|
|
279
|
+
executionId: string;
|
|
280
|
+
}, {
|
|
281
|
+
subject: {
|
|
282
|
+
kind: "invocation";
|
|
283
|
+
id: string;
|
|
284
|
+
};
|
|
285
|
+
outcome: "cancelled";
|
|
286
|
+
source: "native_graph";
|
|
287
|
+
version: 1;
|
|
288
|
+
scope: "operation";
|
|
289
|
+
state: "settled";
|
|
290
|
+
observedAt: string;
|
|
291
|
+
executionId: string;
|
|
250
292
|
}>, z.ZodObject<{
|
|
251
293
|
source: z.ZodLiteral<"host_admission">;
|
|
252
294
|
subject: z.ZodObject<{
|
|
@@ -273,9 +315,9 @@ export declare const executionControlEvidenceSchema: z.ZodDiscriminatedUnion<"so
|
|
|
273
315
|
outcome: "failed" | "cancelled";
|
|
274
316
|
source: "host_admission";
|
|
275
317
|
version: 1;
|
|
318
|
+
reason: "not_started";
|
|
276
319
|
scope: "operation";
|
|
277
320
|
state: "settled";
|
|
278
|
-
reason: "not_started";
|
|
279
321
|
observedAt: string;
|
|
280
322
|
}, {
|
|
281
323
|
subject: {
|
|
@@ -285,9 +327,9 @@ export declare const executionControlEvidenceSchema: z.ZodDiscriminatedUnion<"so
|
|
|
285
327
|
outcome: "failed" | "cancelled";
|
|
286
328
|
source: "host_admission";
|
|
287
329
|
version: 1;
|
|
330
|
+
reason: "not_started";
|
|
288
331
|
scope: "operation";
|
|
289
332
|
state: "settled";
|
|
290
|
-
reason: "not_started";
|
|
291
333
|
observedAt: string;
|
|
292
334
|
}>]>;
|
|
293
335
|
export type ExecutionControlEvidence = z.output<typeof executionControlEvidenceSchema>;
|
package/src/ai/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export { createResourceCardContent, isResourceCardContent, parseResourceCard, pa
|
|
|
22
22
|
export type { ConversationResourceCard, ResourceCardImage, ResourceCardOpenTarget, ResourceCardScalar, TMessageContentResourceCard } from './resource-card';
|
|
23
23
|
export * from './thread-goal.model';
|
|
24
24
|
export * from './chat.model';
|
|
25
|
+
export type { IChatConversationUnreadXpertSummary } from './chat-activity.model';
|
|
25
26
|
export * from './chat-recovery.model';
|
|
26
27
|
export * from './chat-message.model';
|
|
27
28
|
export * from './chat-task-summary.model';
|
|
@@ -75,6 +76,8 @@ export * from './xpert-workflow-task.prompt';
|
|
|
75
76
|
export * from './xpert-tool-mcp.model';
|
|
76
77
|
export * from './xpert-project.model';
|
|
77
78
|
export * from './xpert-project-type.model';
|
|
79
|
+
export * from './project-type-configuration.model';
|
|
80
|
+
export * from './project-configuration-view.model';
|
|
78
81
|
export * from './environment.model';
|
|
79
82
|
export * from './knowledgebase-task.model';
|
|
80
83
|
export * from './knowledge-pipeline';
|
|
@@ -113,6 +116,7 @@ export * from './assistant-task-context.model';
|
|
|
113
116
|
export * from './project-task-runtime.model';
|
|
114
117
|
export * from './project-pipeline';
|
|
115
118
|
export * from './realtime-voice.model';
|
|
119
|
+
export type { VoiceServerControl } from './realtime-voice.transport';
|
|
116
120
|
export * from './chat-group.model';
|
|
117
121
|
export * from './chat-group-entity.model';
|
|
118
122
|
export * from './conversation-entry.model';
|
|
@@ -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
|
+
}
|
|
@@ -732,19 +732,7 @@ export declare const projectPipelineAnalyticsSchema: z.ZodObject<{
|
|
|
732
732
|
outputTokens: z.ZodNullable<z.ZodNumber>;
|
|
733
733
|
totalTokens: z.ZodNullable<z.ZodNumber>;
|
|
734
734
|
unpricedCalls: z.ZodNumber;
|
|
735
|
-
|
|
736
|
-
currency: z.ZodString;
|
|
737
|
-
amount: z.ZodNumber;
|
|
738
|
-
calls: z.ZodNumber;
|
|
739
|
-
}, "strict", z.ZodTypeAny, {
|
|
740
|
-
calls: number;
|
|
741
|
-
currency: string;
|
|
742
|
-
amount: number;
|
|
743
|
-
}, {
|
|
744
|
-
calls: number;
|
|
745
|
-
currency: string;
|
|
746
|
-
amount: number;
|
|
747
|
-
}>, "many">;
|
|
735
|
+
chargedPoints: z.ZodNullable<z.ZodNumber>;
|
|
748
736
|
byModel: z.ZodArray<z.ZodObject<{
|
|
749
737
|
provider: z.ZodString;
|
|
750
738
|
model: z.ZodString;
|
|
@@ -778,11 +766,7 @@ export declare const projectPipelineAnalyticsSchema: z.ZodObject<{
|
|
|
778
766
|
outputTokens: number | null;
|
|
779
767
|
totalTokens: number | null;
|
|
780
768
|
unpricedCalls: number;
|
|
781
|
-
|
|
782
|
-
calls: number;
|
|
783
|
-
currency: string;
|
|
784
|
-
amount: number;
|
|
785
|
-
}[];
|
|
769
|
+
chargedPoints: number | null;
|
|
786
770
|
byModel: {
|
|
787
771
|
provider: string;
|
|
788
772
|
calls: number;
|
|
@@ -802,11 +786,7 @@ export declare const projectPipelineAnalyticsSchema: z.ZodObject<{
|
|
|
802
786
|
outputTokens: number | null;
|
|
803
787
|
totalTokens: number | null;
|
|
804
788
|
unpricedCalls: number;
|
|
805
|
-
|
|
806
|
-
calls: number;
|
|
807
|
-
currency: string;
|
|
808
|
-
amount: number;
|
|
809
|
-
}[];
|
|
789
|
+
chargedPoints: number | null;
|
|
810
790
|
byModel: {
|
|
811
791
|
provider: string;
|
|
812
792
|
calls: number;
|
|
@@ -1340,11 +1320,7 @@ export declare const projectPipelineAnalyticsSchema: z.ZodObject<{
|
|
|
1340
1320
|
outputTokens: number | null;
|
|
1341
1321
|
totalTokens: number | null;
|
|
1342
1322
|
unpricedCalls: number;
|
|
1343
|
-
|
|
1344
|
-
calls: number;
|
|
1345
|
-
currency: string;
|
|
1346
|
-
amount: number;
|
|
1347
|
-
}[];
|
|
1323
|
+
chargedPoints: number | null;
|
|
1348
1324
|
byModel: {
|
|
1349
1325
|
provider: string;
|
|
1350
1326
|
calls: number;
|
|
@@ -1576,11 +1552,7 @@ export declare const projectPipelineAnalyticsSchema: z.ZodObject<{
|
|
|
1576
1552
|
outputTokens: number | null;
|
|
1577
1553
|
totalTokens: number | null;
|
|
1578
1554
|
unpricedCalls: number;
|
|
1579
|
-
|
|
1580
|
-
calls: number;
|
|
1581
|
-
currency: string;
|
|
1582
|
-
amount: number;
|
|
1583
|
-
}[];
|
|
1555
|
+
chargedPoints: number | null;
|
|
1584
1556
|
byModel: {
|
|
1585
1557
|
provider: string;
|
|
1586
1558
|
calls: number;
|
|
@@ -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 {
|