@xpert-ai/contracts 3.35.0 → 3.37.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/context-event.cjs.default.js +1 -0
- package/context-event.cjs.js +26 -0
- package/context-event.cjs.mjs +2 -0
- package/context-event.d.ts +1 -0
- package/context-event.esm.js +24 -0
- package/index.cjs.default.js +1 -0
- package/index.cjs.js +1165 -805
- package/index.cjs.mjs +2 -0
- package/index.esm.js +1140 -801
- package/package.json +18 -2
- package/src/agent-plugin.d.ts +4 -29
- package/src/ai/agent-output-delivery.model.d.ts +22 -1
- package/src/ai/agent-runtime.model.d.ts +4 -4
- package/src/ai/assistant-capability.model.d.ts +0 -1
- package/src/ai/assistant-template-manifest.model.d.ts +272 -308
- package/src/ai/assistant-template-overview.model.d.ts +0 -4
- package/src/ai/assistant-template.model.d.ts +0 -4
- package/src/ai/bosi.model.d.ts +1 -1
- package/src/ai/chat-activity.model.d.ts +13 -0
- package/src/ai/chat-message.model.d.ts +0 -11
- package/src/ai/chat.model.d.ts +3 -0
- package/src/ai/cli-execution.model.d.ts +88 -0
- package/src/ai/conversation-trail.model.d.ts +274 -274
- package/src/ai/copilot-store.model.d.ts +0 -13
- package/src/ai/evolution/entities.d.ts +164 -0
- package/src/ai/evolution/evaluation.d.ts +7 -0
- package/src/ai/evolution/execution-review.d.ts +68 -0
- package/src/ai/evolution/index.d.ts +2 -0
- package/src/ai/evolution/provider.d.ts +1 -0
- package/src/ai/evolution/target.d.ts +5 -0
- package/src/ai/execution-activity.model.d.ts +362 -362
- package/src/ai/execution-control-evidence.schema.d.ts +26 -26
- package/src/ai/execution-observability.model.d.ts +160 -160
- package/src/ai/execution-source.model.d.ts +45 -0
- package/src/ai/index.d.ts +2 -0
- package/src/ai/middleware.model.d.ts +1 -0
- package/src/ai/model-execution.model.d.ts +5 -108
- package/src/ai/model-replacement.model.d.ts +12 -12
- package/src/ai/project-configuration-view.model.d.ts +1 -0
- package/src/ai/project-pipeline/analytics.d.ts +288 -288
- package/src/ai/project-pipeline/budget.schema.d.ts +4 -4
- package/src/ai/project-pipeline/commands.schema.d.ts +519 -476
- package/src/ai/project-pipeline/configuration-declaration.schema.d.ts +3815 -0
- package/src/ai/project-pipeline/configuration-form.d.ts +1903 -1759
- package/src/ai/project-pipeline/configuration.schema.d.ts +425 -388
- package/src/ai/project-pipeline/contribution.schema.d.ts +764 -612
- package/src/ai/project-pipeline/definition.schema.d.ts +382 -338
- package/src/ai/project-pipeline/execution-statistics.d.ts +30 -30
- package/src/ai/project-pipeline/graph.model.d.ts +7 -2
- package/src/ai/project-pipeline/human-wait-statistics.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 -6
- package/src/ai/project-pipeline/node.schema.d.ts +57 -44
- package/src/ai/project-pipeline/operation.schema.d.ts +378 -378
- package/src/ai/project-pipeline/plugin-deployment.schema.d.ts +6 -6
- package/src/ai/project-pipeline/portfolio.schema.d.ts +684 -684
- package/src/ai/project-pipeline/primitives.schema.d.ts +4 -4
- package/src/ai/project-pipeline/projection.schema.d.ts +674 -637
- package/src/ai/project-pipeline/provider-actions.schema.d.ts +120 -120
- package/src/ai/project-pipeline/queue-statistics.d.ts +34 -34
- package/src/ai/project-pipeline/runtime.schema.d.ts +89 -89
- package/src/ai/project-pipeline/statistics.d.ts +142 -142
- package/src/ai/project-task-runtime.model.d.ts +265 -789
- package/src/ai/sandbox-execution-control.schema.d.ts +6 -6
- package/src/ai/template-installation.model.d.ts +13 -13
- package/src/ai/template-lifecycle.model.d.ts +4 -4
- package/src/ai/xpert-agent-execution.model.d.ts +33 -0
- package/src/ai/xpert-project.model.d.ts +2 -1
- package/src/ai/xpert-tool.model.d.ts +12 -0
- package/src/ai/xpert.model.d.ts +0 -34
- package/src/ai/xpert.utils.d.ts +0 -1
- package/src/always-on/agent-event.model.d.ts +121 -0
- package/src/always-on/agent-event.schema.d.ts +139 -0
- package/src/always-on/agent-output-reference.schema.d.ts +27 -0
- package/src/always-on/agent-output.model.d.ts +411 -0
- package/src/always-on/human-decision.model.d.ts +204 -0
- package/src/always-on/index.d.ts +3 -0
- package/src/always-on/output-workbench.schema.d.ts +154 -0
- package/src/analytics/analysis-evidence.model.d.ts +29 -0
- package/src/analytics/analytics-certification.model.d.ts +17 -0
- package/src/{analytics-definition.model.d.ts → analytics/analytics-definition.model.d.ts} +1 -1
- package/src/{analytics-diagnostic.d.ts → analytics/analytics-diagnostic.d.ts} +8 -8
- package/src/{analytics-query.model.d.ts → analytics/analytics-query.model.d.ts} +9 -1
- package/src/analytics/index.d.ts +7 -0
- package/src/{resource-analysis.model.d.ts → analytics/resource-analysis.model.d.ts} +6 -1
- package/src/app-platform.d.ts +14 -14
- package/src/{artifact-group-reference.model.d.ts → artifacts/artifact-group-reference.model.d.ts} +1 -1
- package/src/{artifact-presentation.model.d.ts → artifacts/artifact-presentation.model.d.ts} +1 -1
- package/src/{artifact-use-grant-command.d.ts → artifacts/artifact-use-grant-command.d.ts} +1 -1
- package/src/{artifact-use-grant.model.d.ts → artifacts/artifact-use-grant.model.d.ts} +2 -2
- package/src/{artifact.model.d.ts → artifacts/artifact.model.d.ts} +4 -2
- package/src/artifacts/index.d.ts +5 -0
- package/src/collaboration.model.d.ts +31 -11
- package/src/{content-document.model.d.ts → content/content-document.model.d.ts} +2 -0
- package/src/{content-resource.model.d.ts → content/content-resource.model.d.ts} +7 -3
- package/src/content/content-transfer.model.d.ts +21 -0
- package/src/content/index.d.ts +4 -0
- package/src/execution-control-admission.schema.d.ts +2 -2
- package/src/icon-definition.schema.d.ts +6 -10
- package/src/index.d.ts +5 -14
- package/src/secret-token.model.d.ts +4 -4
- package/src/user-notification.schema.d.ts +1300 -471
- package/src/view-extension/client-commands.d.ts +24 -0
- /package/src/{analytics-source.model.d.ts → analytics/analytics-source.model.d.ts} +0 -0
- /package/src/{content-reference.model.d.ts → content/content-reference.model.d.ts} +0 -0
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { z } from 'zod/v3';
|
|
2
|
+
export declare const outputFieldSchema: z.ZodObject<{
|
|
3
|
+
label: z.ZodObject<{
|
|
4
|
+
en_US: z.ZodString;
|
|
5
|
+
zh_Hans: z.ZodString;
|
|
6
|
+
}, "strict", z.ZodTypeAny, {
|
|
7
|
+
en_US: string;
|
|
8
|
+
zh_Hans: string;
|
|
9
|
+
}, {
|
|
10
|
+
en_US: string;
|
|
11
|
+
zh_Hans: string;
|
|
12
|
+
}>;
|
|
13
|
+
value: z.ZodString;
|
|
14
|
+
}, "strict", z.ZodTypeAny, {
|
|
15
|
+
value: string;
|
|
16
|
+
label: {
|
|
17
|
+
en_US: string;
|
|
18
|
+
zh_Hans: string;
|
|
19
|
+
};
|
|
20
|
+
}, {
|
|
21
|
+
value: string;
|
|
22
|
+
label: {
|
|
23
|
+
en_US: string;
|
|
24
|
+
zh_Hans: string;
|
|
25
|
+
};
|
|
26
|
+
}>;
|
|
27
|
+
/** A source-owned business item and its location in an Assistant workbench. Handling is independent of notification read state. */
|
|
28
|
+
export declare const outputWorkbenchSchema: z.ZodObject<{
|
|
29
|
+
state: z.ZodEnum<["pending", "handled"]>;
|
|
30
|
+
title: z.ZodObject<{
|
|
31
|
+
en_US: z.ZodString;
|
|
32
|
+
zh_Hans: z.ZodString;
|
|
33
|
+
}, "strict", z.ZodTypeAny, {
|
|
34
|
+
en_US: string;
|
|
35
|
+
zh_Hans: string;
|
|
36
|
+
}, {
|
|
37
|
+
en_US: string;
|
|
38
|
+
zh_Hans: string;
|
|
39
|
+
}>;
|
|
40
|
+
openLabel: z.ZodObject<{
|
|
41
|
+
en_US: z.ZodString;
|
|
42
|
+
zh_Hans: z.ZodString;
|
|
43
|
+
}, "strict", z.ZodTypeAny, {
|
|
44
|
+
en_US: string;
|
|
45
|
+
zh_Hans: string;
|
|
46
|
+
}, {
|
|
47
|
+
en_US: string;
|
|
48
|
+
zh_Hans: string;
|
|
49
|
+
}>;
|
|
50
|
+
viewKey: z.ZodString;
|
|
51
|
+
selectionId: z.ZodString;
|
|
52
|
+
}, "strict", z.ZodTypeAny, {
|
|
53
|
+
state: "handled" | "pending";
|
|
54
|
+
title: {
|
|
55
|
+
en_US: string;
|
|
56
|
+
zh_Hans: string;
|
|
57
|
+
};
|
|
58
|
+
openLabel: {
|
|
59
|
+
en_US: string;
|
|
60
|
+
zh_Hans: string;
|
|
61
|
+
};
|
|
62
|
+
viewKey: string;
|
|
63
|
+
selectionId: string;
|
|
64
|
+
}, {
|
|
65
|
+
state: "handled" | "pending";
|
|
66
|
+
title: {
|
|
67
|
+
en_US: string;
|
|
68
|
+
zh_Hans: string;
|
|
69
|
+
};
|
|
70
|
+
openLabel: {
|
|
71
|
+
en_US: string;
|
|
72
|
+
zh_Hans: string;
|
|
73
|
+
};
|
|
74
|
+
viewKey: string;
|
|
75
|
+
selectionId: string;
|
|
76
|
+
}>;
|
|
77
|
+
type Label = {
|
|
78
|
+
en_US: string;
|
|
79
|
+
zh_Hans: string;
|
|
80
|
+
};
|
|
81
|
+
/** The source identifies the workbench record, its localized action and current business state. */
|
|
82
|
+
export interface OutputWorkbench {
|
|
83
|
+
state: 'pending' | 'handled';
|
|
84
|
+
title: Label;
|
|
85
|
+
openLabel: Label;
|
|
86
|
+
viewKey: string;
|
|
87
|
+
selectionId: string;
|
|
88
|
+
}
|
|
89
|
+
/** The platform supplies the authorized host scope for this result. */
|
|
90
|
+
export type OutputWorkbenchTarget = OutputWorkbench & {
|
|
91
|
+
assistantId: string;
|
|
92
|
+
organizationId: string;
|
|
93
|
+
projectId: string | null;
|
|
94
|
+
};
|
|
95
|
+
export declare const outputWorkbenchTargetSchema: z.ZodObject<{
|
|
96
|
+
state: z.ZodEnum<["pending", "handled"]>;
|
|
97
|
+
title: z.ZodObject<{
|
|
98
|
+
en_US: z.ZodString;
|
|
99
|
+
zh_Hans: z.ZodString;
|
|
100
|
+
}, "strict", z.ZodTypeAny, {
|
|
101
|
+
en_US: string;
|
|
102
|
+
zh_Hans: string;
|
|
103
|
+
}, {
|
|
104
|
+
en_US: string;
|
|
105
|
+
zh_Hans: string;
|
|
106
|
+
}>;
|
|
107
|
+
openLabel: z.ZodObject<{
|
|
108
|
+
en_US: z.ZodString;
|
|
109
|
+
zh_Hans: z.ZodString;
|
|
110
|
+
}, "strict", z.ZodTypeAny, {
|
|
111
|
+
en_US: string;
|
|
112
|
+
zh_Hans: string;
|
|
113
|
+
}, {
|
|
114
|
+
en_US: string;
|
|
115
|
+
zh_Hans: string;
|
|
116
|
+
}>;
|
|
117
|
+
viewKey: z.ZodString;
|
|
118
|
+
selectionId: z.ZodString;
|
|
119
|
+
} & {
|
|
120
|
+
assistantId: z.ZodString;
|
|
121
|
+
organizationId: z.ZodString;
|
|
122
|
+
projectId: z.ZodNullable<z.ZodString>;
|
|
123
|
+
}, "strict", z.ZodTypeAny, {
|
|
124
|
+
state: "handled" | "pending";
|
|
125
|
+
title: {
|
|
126
|
+
en_US: string;
|
|
127
|
+
zh_Hans: string;
|
|
128
|
+
};
|
|
129
|
+
openLabel: {
|
|
130
|
+
en_US: string;
|
|
131
|
+
zh_Hans: string;
|
|
132
|
+
};
|
|
133
|
+
viewKey: string;
|
|
134
|
+
selectionId: string;
|
|
135
|
+
assistantId: string;
|
|
136
|
+
organizationId: string;
|
|
137
|
+
projectId: string | null;
|
|
138
|
+
}, {
|
|
139
|
+
state: "handled" | "pending";
|
|
140
|
+
title: {
|
|
141
|
+
en_US: string;
|
|
142
|
+
zh_Hans: string;
|
|
143
|
+
};
|
|
144
|
+
openLabel: {
|
|
145
|
+
en_US: string;
|
|
146
|
+
zh_Hans: string;
|
|
147
|
+
};
|
|
148
|
+
viewKey: string;
|
|
149
|
+
selectionId: string;
|
|
150
|
+
assistantId: string;
|
|
151
|
+
organizationId: string;
|
|
152
|
+
projectId: string | null;
|
|
153
|
+
}>;
|
|
154
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { AnalyticalDataset, AnalyticsValue } from './analytics-query.model';
|
|
2
|
+
/** Immutable query evidence. Certification and freshness describe capture time, never current authority.
|
|
3
|
+
* Readers must reauthorize the source; this document contains no query payload or credentials. */
|
|
4
|
+
export interface AnalysisEvidenceSnapshot {
|
|
5
|
+
schema: 'xpert.analysis-evidence@1';
|
|
6
|
+
id: string;
|
|
7
|
+
title: string;
|
|
8
|
+
capturedAt: string;
|
|
9
|
+
source: {
|
|
10
|
+
artifactId: string;
|
|
11
|
+
versionId: string;
|
|
12
|
+
projectId: string;
|
|
13
|
+
};
|
|
14
|
+
controls: Record<string, AnalyticsValue>;
|
|
15
|
+
/** A bounded, exact copy of normalized results, including units, completeness and source proofs. */
|
|
16
|
+
datasets: AnalyticalDataset[];
|
|
17
|
+
/** Facts cite exact cells. Interpretation is explicitly separate from observed data. */
|
|
18
|
+
statements: Array<{
|
|
19
|
+
kind: 'fact' | 'inference' | 'unverified';
|
|
20
|
+
text: string;
|
|
21
|
+
citations: Array<{
|
|
22
|
+
datasetId: string;
|
|
23
|
+
row: number;
|
|
24
|
+
field: string;
|
|
25
|
+
}>;
|
|
26
|
+
}>;
|
|
27
|
+
/** SHA-256 of the canonical snapshot excluding this field. Not a permission token. */
|
|
28
|
+
sha256: string;
|
|
29
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** Source-issued business approval checked for this execution, never a promise of future validity. */
|
|
2
|
+
export type AnalyticsCertification = {
|
|
3
|
+
kind: 'business_metric';
|
|
4
|
+
subjectId: string;
|
|
5
|
+
verifiedAt: string;
|
|
6
|
+
} & ({
|
|
7
|
+
status: 'legacy_unverified';
|
|
8
|
+
} | {
|
|
9
|
+
status: 'verified';
|
|
10
|
+
definitionHash: string;
|
|
11
|
+
dependency: {
|
|
12
|
+
id: string;
|
|
13
|
+
version: number;
|
|
14
|
+
};
|
|
15
|
+
certifiedBy: string;
|
|
16
|
+
certifiedAt: string;
|
|
17
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AnalyticsProviderDescriptor } from './analytics-query.model';
|
|
2
|
-
import type { JSONValue } from '
|
|
2
|
+
import type { JSONValue } from '../core.model';
|
|
3
3
|
/** Configuration is owned by a provider; bindings contain only immutable source identities. */
|
|
4
4
|
export type AnalyticsConfigurationEntry = {
|
|
5
5
|
kind: 'definition';
|
|
@@ -10,38 +10,38 @@ export declare const analyticsDiagnosticSchema: z.ZodEffects<z.ZodObject<{
|
|
|
10
10
|
upstreamExecutionId: z.ZodOptional<z.ZodString>;
|
|
11
11
|
auditRef: z.ZodOptional<z.ZodString>;
|
|
12
12
|
}, "strict", z.ZodTypeAny, {
|
|
13
|
-
version?: 1;
|
|
14
13
|
code?: string;
|
|
14
|
+
version?: 1;
|
|
15
15
|
message?: string;
|
|
16
|
+
stage?: "validation" | "source" | "execution" | "request" | "result" | "dependency" | "authorization";
|
|
16
17
|
schema?: "xpert.analytics.diagnostic";
|
|
17
|
-
stage?: "validation" | "request" | "source" | "authorization" | "execution" | "result" | "dependency";
|
|
18
18
|
retryable?: boolean;
|
|
19
19
|
upstreamExecutionId?: string;
|
|
20
20
|
auditRef?: string;
|
|
21
21
|
}, {
|
|
22
|
-
version?: 1;
|
|
23
22
|
code?: string;
|
|
23
|
+
version?: 1;
|
|
24
24
|
message?: string;
|
|
25
|
+
stage?: "validation" | "source" | "execution" | "request" | "result" | "dependency" | "authorization";
|
|
25
26
|
schema?: "xpert.analytics.diagnostic";
|
|
26
|
-
stage?: "validation" | "request" | "source" | "authorization" | "execution" | "result" | "dependency";
|
|
27
27
|
retryable?: boolean;
|
|
28
28
|
upstreamExecutionId?: string;
|
|
29
29
|
auditRef?: string;
|
|
30
30
|
}>, {
|
|
31
|
-
version?: 1;
|
|
32
31
|
code?: string;
|
|
32
|
+
version?: 1;
|
|
33
33
|
message?: string;
|
|
34
|
+
stage?: "validation" | "source" | "execution" | "request" | "result" | "dependency" | "authorization";
|
|
34
35
|
schema?: "xpert.analytics.diagnostic";
|
|
35
|
-
stage?: "validation" | "request" | "source" | "authorization" | "execution" | "result" | "dependency";
|
|
36
36
|
retryable?: boolean;
|
|
37
37
|
upstreamExecutionId?: string;
|
|
38
38
|
auditRef?: string;
|
|
39
39
|
}, {
|
|
40
|
-
version?: 1;
|
|
41
40
|
code?: string;
|
|
41
|
+
version?: 1;
|
|
42
42
|
message?: string;
|
|
43
|
+
stage?: "validation" | "source" | "execution" | "request" | "result" | "dependency" | "authorization";
|
|
43
44
|
schema?: "xpert.analytics.diagnostic";
|
|
44
|
-
stage?: "validation" | "request" | "source" | "authorization" | "execution" | "result" | "dependency";
|
|
45
45
|
retryable?: boolean;
|
|
46
46
|
upstreamExecutionId?: string;
|
|
47
47
|
auditRef?: string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { AnalyticsSourceRef } from './analytics-source.model';
|
|
2
|
-
import type { JSONValue } from '
|
|
2
|
+
import type { JSONValue } from '../core.model';
|
|
3
|
+
import type { AnalyticsCertification } from './analytics-certification.model';
|
|
3
4
|
/** JSON-safe scalar shared by cells and controls; nested objects/arrays are not dataset cells. */
|
|
4
5
|
export type AnalyticsValue = string | number | boolean | null;
|
|
5
6
|
/** int64/decimal use exact strings; date uses YYYY-MM-DD; timestamp includes a timezone. */
|
|
@@ -69,6 +70,11 @@ export interface AnalyticsQueryRequest {
|
|
|
69
70
|
binding: AnalyticsBinding;
|
|
70
71
|
/** Values keyed by controlId; undeclared keys are rejected and absent keys resolve through defaults. */
|
|
71
72
|
controls: Record<string, AnalyticsValue>;
|
|
73
|
+
/** Opt-in reuse, only when the Provider independently reauthorizes the exact query and source revision. */
|
|
74
|
+
cache?: {
|
|
75
|
+
maxAgeMs: number;
|
|
76
|
+
forceRefresh?: boolean;
|
|
77
|
+
};
|
|
72
78
|
}
|
|
73
79
|
/** Canonical, provider-independent result; consumers must inspect completeness before presenting totals. */
|
|
74
80
|
export interface AnalyticalDataset {
|
|
@@ -110,6 +116,8 @@ export interface AnalyticalDataset {
|
|
|
110
116
|
upstreamExecutionId?: string;
|
|
111
117
|
/** Reference to governed audit evidence; do not embed secrets or full logs here. */
|
|
112
118
|
auditRef?: string;
|
|
119
|
+
/** Business certification checked by the source for this query; absence means no certification claim. */
|
|
120
|
+
certification?: AnalyticsCertification;
|
|
113
121
|
};
|
|
114
122
|
}
|
|
115
123
|
/** Public discovery metadata. Advertising a capability does not authorize its execution. */
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './analytics-query.model';
|
|
2
|
+
export * from './analytics-source.model';
|
|
3
|
+
export * from './analytics-definition.model';
|
|
4
|
+
export * from './analytics-diagnostic';
|
|
5
|
+
export * from './analytics-certification.model';
|
|
6
|
+
export * from './analysis-evidence.model';
|
|
7
|
+
export * from './resource-analysis.model';
|
|
@@ -2,10 +2,13 @@ import type { AnalyticalDataset, AnalyticsField, AnalyticsParameter, AnalyticsVa
|
|
|
2
2
|
/**
|
|
3
3
|
* Explicit consent to disclose bounded query results to every member of the receiving group.
|
|
4
4
|
* The source manager proposes this scope and the group owner independently accepts it.
|
|
5
|
-
*
|
|
5
|
+
* Existing grants use the requesting human's upstream permissions. Explicit delegated_results grants
|
|
6
|
+
* restore the issuing human's current identity per query and disclose only the accepted result scope.
|
|
6
7
|
* Omit the policy entirely for view-only access; an empty dataset list is not a wildcard grant.
|
|
7
8
|
*/
|
|
8
9
|
export interface ResourceAnalysisPolicy {
|
|
10
|
+
/** Omission preserves viewer permissions; delegation requires explicit source and audience consent. */
|
|
11
|
+
execution?: 'viewer_permissions' | 'delegated_results';
|
|
9
12
|
/**
|
|
10
13
|
* bindings permits declared parameter values and field projection over published binding results.
|
|
11
14
|
* explore additionally permits query filters, grouping, aggregation and sorting within the same approved datasets.
|
|
@@ -20,6 +23,8 @@ export interface ResourceAnalysisPolicy {
|
|
|
20
23
|
fields: string[];
|
|
21
24
|
/** Immutable AND predicates on allowed fields, applied before aggregation and disclosure to the Agent. */
|
|
22
25
|
filters: ResourceAnalysisFilter[];
|
|
26
|
+
/** Delegated queries may vary only these controls within these values; other controls retain published defaults. */
|
|
27
|
+
controlValues?: Record<string, AnalyticsValue[]>;
|
|
23
28
|
}>;
|
|
24
29
|
/**
|
|
25
30
|
* Allows returning dataset rows without further aggregation. These may already be aggregated by the binding.
|
package/src/app-platform.d.ts
CHANGED
|
@@ -17,9 +17,9 @@ export declare const appPlatformAppSchema: z.ZodEffects<z.ZodObject<{
|
|
|
17
17
|
configurationRef: z.ZodString;
|
|
18
18
|
dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
19
19
|
}, "strict", z.ZodTypeAny, {
|
|
20
|
-
key?: string;
|
|
21
20
|
enabled?: boolean;
|
|
22
21
|
required?: boolean;
|
|
22
|
+
key?: string;
|
|
23
23
|
appRef?: {
|
|
24
24
|
pluginName?: string;
|
|
25
25
|
appName?: string;
|
|
@@ -27,9 +27,9 @@ export declare const appPlatformAppSchema: z.ZodEffects<z.ZodObject<{
|
|
|
27
27
|
configurationRef?: string;
|
|
28
28
|
dependsOn?: string[];
|
|
29
29
|
}, {
|
|
30
|
-
key?: string;
|
|
31
30
|
enabled?: boolean;
|
|
32
31
|
required?: boolean;
|
|
32
|
+
key?: string;
|
|
33
33
|
appRef?: {
|
|
34
34
|
pluginName?: string;
|
|
35
35
|
appName?: string;
|
|
@@ -47,9 +47,9 @@ export declare const appPlatformAppSchema: z.ZodEffects<z.ZodObject<{
|
|
|
47
47
|
appName: string;
|
|
48
48
|
};
|
|
49
49
|
}, {
|
|
50
|
-
key?: string;
|
|
51
50
|
enabled?: boolean;
|
|
52
51
|
required?: boolean;
|
|
52
|
+
key?: string;
|
|
53
53
|
appRef?: {
|
|
54
54
|
pluginName?: string;
|
|
55
55
|
appName?: string;
|
|
@@ -67,12 +67,12 @@ export declare const appPlatformDefinitionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
67
67
|
description: z.ZodOptional<z.ZodString>;
|
|
68
68
|
logo: z.ZodOptional<z.ZodString>;
|
|
69
69
|
}, "strict", z.ZodTypeAny, {
|
|
70
|
-
name?: string;
|
|
71
70
|
description?: string;
|
|
71
|
+
name?: string;
|
|
72
72
|
logo?: string;
|
|
73
73
|
}, {
|
|
74
|
-
name?: string;
|
|
75
74
|
description?: string;
|
|
75
|
+
name?: string;
|
|
76
76
|
logo?: string;
|
|
77
77
|
}>;
|
|
78
78
|
registration: z.ZodObject<{
|
|
@@ -102,9 +102,9 @@ export declare const appPlatformDefinitionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
102
102
|
configurationRef: z.ZodString;
|
|
103
103
|
dependsOn: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
104
104
|
}, "strict", z.ZodTypeAny, {
|
|
105
|
-
key?: string;
|
|
106
105
|
enabled?: boolean;
|
|
107
106
|
required?: boolean;
|
|
107
|
+
key?: string;
|
|
108
108
|
appRef?: {
|
|
109
109
|
pluginName?: string;
|
|
110
110
|
appName?: string;
|
|
@@ -112,9 +112,9 @@ export declare const appPlatformDefinitionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
112
112
|
configurationRef?: string;
|
|
113
113
|
dependsOn?: string[];
|
|
114
114
|
}, {
|
|
115
|
-
key?: string;
|
|
116
115
|
enabled?: boolean;
|
|
117
116
|
required?: boolean;
|
|
117
|
+
key?: string;
|
|
118
118
|
appRef?: {
|
|
119
119
|
pluginName?: string;
|
|
120
120
|
appName?: string;
|
|
@@ -132,9 +132,9 @@ export declare const appPlatformDefinitionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
132
132
|
appName: string;
|
|
133
133
|
};
|
|
134
134
|
}, {
|
|
135
|
-
key?: string;
|
|
136
135
|
enabled?: boolean;
|
|
137
136
|
required?: boolean;
|
|
137
|
+
key?: string;
|
|
138
138
|
appRef?: {
|
|
139
139
|
pluginName?: string;
|
|
140
140
|
appName?: string;
|
|
@@ -229,8 +229,8 @@ export declare const appPlatformDefinitionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
229
229
|
};
|
|
230
230
|
}[];
|
|
231
231
|
branding?: {
|
|
232
|
-
name?: string;
|
|
233
232
|
description?: string;
|
|
233
|
+
name?: string;
|
|
234
234
|
logo?: string;
|
|
235
235
|
};
|
|
236
236
|
registration?: {
|
|
@@ -249,9 +249,9 @@ export declare const appPlatformDefinitionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
249
249
|
key?: string;
|
|
250
250
|
schemaVersion?: 1;
|
|
251
251
|
apps?: {
|
|
252
|
-
key?: string;
|
|
253
252
|
enabled?: boolean;
|
|
254
253
|
required?: boolean;
|
|
254
|
+
key?: string;
|
|
255
255
|
appRef?: {
|
|
256
256
|
pluginName?: string;
|
|
257
257
|
appName?: string;
|
|
@@ -271,8 +271,8 @@ export declare const appPlatformDefinitionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
271
271
|
};
|
|
272
272
|
}[];
|
|
273
273
|
branding?: {
|
|
274
|
-
name?: string;
|
|
275
274
|
description?: string;
|
|
275
|
+
name?: string;
|
|
276
276
|
logo?: string;
|
|
277
277
|
};
|
|
278
278
|
registration?: {
|
|
@@ -313,8 +313,8 @@ export declare const appPlatformDefinitionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
313
313
|
};
|
|
314
314
|
}[];
|
|
315
315
|
branding?: {
|
|
316
|
-
name?: string;
|
|
317
316
|
description?: string;
|
|
317
|
+
name?: string;
|
|
318
318
|
logo?: string;
|
|
319
319
|
};
|
|
320
320
|
registration?: {
|
|
@@ -333,9 +333,9 @@ export declare const appPlatformDefinitionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
333
333
|
key?: string;
|
|
334
334
|
schemaVersion?: 1;
|
|
335
335
|
apps?: {
|
|
336
|
-
key?: string;
|
|
337
336
|
enabled?: boolean;
|
|
338
337
|
required?: boolean;
|
|
338
|
+
key?: string;
|
|
339
339
|
appRef?: {
|
|
340
340
|
pluginName?: string;
|
|
341
341
|
appName?: string;
|
|
@@ -355,8 +355,8 @@ export declare const appPlatformDefinitionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
355
355
|
};
|
|
356
356
|
}[];
|
|
357
357
|
branding?: {
|
|
358
|
-
name?: string;
|
|
359
358
|
description?: string;
|
|
359
|
+
name?: string;
|
|
360
360
|
logo?: string;
|
|
361
361
|
};
|
|
362
362
|
registration?: {
|
package/src/{artifact-group-reference.model.d.ts → artifacts/artifact-group-reference.model.d.ts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ArtifactLibraryView } from './artifact-presentation.model';
|
|
2
2
|
import type { IArtifactUseGrant } from './artifact-use-grant.model';
|
|
3
|
-
import type { ResourceAnalysisPolicy } from '
|
|
3
|
+
import type { ResourceAnalysisPolicy } from '../analytics/resource-analysis.model';
|
|
4
4
|
/**
|
|
5
5
|
* Client-safe grant projection used by source-management and group acceptance APIs.
|
|
6
6
|
* Contains no source file handles or credentials. It is display/concurrency metadata, not an access token.
|
|
@@ -30,7 +30,7 @@ export interface ArtifactPresentationQuery {
|
|
|
30
30
|
/** Authenticated Project reference viewing does not create or consume a public share. */
|
|
31
31
|
export type ArtifactLibraryContent = {
|
|
32
32
|
kind: 'conversation';
|
|
33
|
-
snapshot: import('
|
|
33
|
+
snapshot: import('../ai/conversation-share.model').ConversationShareSnapshot;
|
|
34
34
|
} | {
|
|
35
35
|
kind: 'presentation';
|
|
36
36
|
presentation: ArtifactPresentation;
|
|
@@ -40,7 +40,7 @@ export type ArtifactUseGrantAuthoringRequest = {
|
|
|
40
40
|
/** Whole-day duration, validated by the authoring adapter before computing expiresAt. */
|
|
41
41
|
days: number;
|
|
42
42
|
/** Explicit proposed analysis scope; omission offers view-only use. */
|
|
43
|
-
analysis?: import('
|
|
43
|
+
analysis?: import('../analytics/resource-analysis.model').ResourceAnalysisPolicy;
|
|
44
44
|
}
|
|
45
45
|
/** Published version whose datasets and sharing eligibility should be described. */
|
|
46
46
|
| {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IBasePerTenantAndOrganizationEntityModel } from '
|
|
2
|
-
import type { ResourceAnalysisPolicy } from '
|
|
1
|
+
import type { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.model';
|
|
2
|
+
import type { ResourceAnalysisPolicy } from '../analytics/resource-analysis.model';
|
|
3
3
|
/**
|
|
4
4
|
* Persisted consent to use one published Artifact version in another group's Project in the same organization.
|
|
5
5
|
* The source manager offers it; the receiving group owner accepts it. Every use rechecks current access.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { IBasePerTenantAndOrganizationEntityModel } from '
|
|
2
|
-
import type { I18nObject } from '
|
|
1
|
+
import { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.model';
|
|
2
|
+
import type { I18nObject } from '../i18n.model';
|
|
3
|
+
import type { IconDefinition } from '../types';
|
|
3
4
|
/**
|
|
4
5
|
* Access policies supported by platform-managed Artifact links.
|
|
5
6
|
*
|
|
@@ -22,6 +23,7 @@ export type ArtifactTypeReference = {
|
|
|
22
23
|
/** Display metadata from the registered type; never inferred from the Artifact's filename or title. */
|
|
23
24
|
export type ArtifactTypeDescriptor = ArtifactTypeReference & {
|
|
24
25
|
title?: I18nObject;
|
|
26
|
+
icon?: IconDefinition;
|
|
25
27
|
};
|
|
26
28
|
/** Host-selected installation scope is persisted so a missing type cannot silently fall back. */
|
|
27
29
|
export type ArtifactTypeBinding = ArtifactTypeReference & {
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { IBasePerTenantAndOrganizationEntityModel } from './base-entity.model';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Selects who owns authoritative content, not a generic merge algorithm.
|
|
4
|
+
* `yjs`: the platform persists/merges CRDT state and the plugin materializes it.
|
|
5
|
+
* `operations`: the domain service commits its own operations; the platform provides
|
|
6
|
+
* authorized sessions, presence and revision invalidation, without accepting content edits.
|
|
7
|
+
*/
|
|
8
|
+
export type CollaborationEngine = 'yjs' | 'operations';
|
|
3
9
|
export type CollaborationDocumentStatus = 'active' | 'archived' | 'deleted';
|
|
4
10
|
export type CollaborationMaterializationStatus = 'ready' | 'pending' | 'failed';
|
|
5
11
|
export type CollaborationActorType = 'user' | 'agent' | 'system';
|
|
@@ -36,9 +42,19 @@ export interface ICollaborationFocus {
|
|
|
36
42
|
elementId?: string | null;
|
|
37
43
|
fieldKey?: string | null;
|
|
38
44
|
}
|
|
39
|
-
/** A text range expressed as Yjs relative positions,
|
|
45
|
+
/** A text range expressed as Yjs relative positions, selected element ids, or a cell range. */
|
|
40
46
|
export interface ICollaborationSelection {
|
|
41
|
-
kind: 'text' | 'elements';
|
|
47
|
+
kind: 'text' | 'elements' | 'cells';
|
|
48
|
+
/** Zero-based, bounded range for operation-backed spreadsheet presence. */
|
|
49
|
+
cells?: {
|
|
50
|
+
sheetId: string;
|
|
51
|
+
startRow: number;
|
|
52
|
+
endRow: number;
|
|
53
|
+
startColumn: number;
|
|
54
|
+
endColumn: number;
|
|
55
|
+
/** Canonical revision whose coordinates this range uses. Absent means unversioned. */
|
|
56
|
+
baseRevision?: number;
|
|
57
|
+
} | null;
|
|
42
58
|
fieldKey?: string | null;
|
|
43
59
|
elementIds?: string[] | null;
|
|
44
60
|
anchorRelativeBase64?: string | null;
|
|
@@ -63,8 +79,9 @@ export interface ICollaborationPresence extends ICollaborationActor {
|
|
|
63
79
|
updatedAt: number;
|
|
64
80
|
}
|
|
65
81
|
/**
|
|
66
|
-
*
|
|
67
|
-
*
|
|
82
|
+
* Platform registration and lifecycle metadata for one collaboration resource.
|
|
83
|
+
* Only `yjs` stores authoritative content here. For `operations`, content and the
|
|
84
|
+
* current revision remain in the domain service; CRDT fields are compatibility placeholders.
|
|
68
85
|
*/
|
|
69
86
|
export interface ICollaborationDocument extends IBasePerTenantAndOrganizationEntityModel {
|
|
70
87
|
/** Provider registered by a plugin, such as `presentation-studio.deck`. */
|
|
@@ -72,18 +89,20 @@ export interface ICollaborationDocument extends IBasePerTenantAndOrganizationEnt
|
|
|
72
89
|
/** Stable business-resource id understood by the provider. */
|
|
73
90
|
resourceId: string;
|
|
74
91
|
engine: CollaborationEngine;
|
|
75
|
-
/**
|
|
92
|
+
/** Provider schema version used to fence sessions; not the platform database schema. */
|
|
76
93
|
schemaVersion: number;
|
|
77
94
|
status: CollaborationDocumentStatus;
|
|
78
|
-
/** Complete Yjs state encoded as a base64 update
|
|
95
|
+
/** Complete Yjs state encoded as a base64 update; empty for `operations`. */
|
|
79
96
|
stateBase64: string;
|
|
80
|
-
/**
|
|
97
|
+
/** Yjs state vector corresponding to `stateBase64`; empty for `operations`. */
|
|
81
98
|
stateVectorBase64: string;
|
|
82
|
-
/**
|
|
99
|
+
/** Yjs update sequence. For `operations`, initialization metadata only; never the live domain revision. */
|
|
83
100
|
sequenceNumber: number;
|
|
101
|
+
/** Accepted Yjs updates; remains zero for `operations`. */
|
|
84
102
|
updateCount: number;
|
|
85
|
-
/** Highest sequence
|
|
103
|
+
/** Highest materialized Yjs sequence; unused by the `operations` content pipeline. */
|
|
86
104
|
materializedSequence: number;
|
|
105
|
+
/** Yjs projection health; `operations` starts ready and has no platform projection. */
|
|
87
106
|
materializationStatus: CollaborationMaterializationStatus;
|
|
88
107
|
lastMaterializationError?: string | null;
|
|
89
108
|
workspaceId?: string | null;
|
|
@@ -99,7 +118,8 @@ export interface ICollaborationUpdate extends IBasePerTenantAndOrganizationEntit
|
|
|
99
118
|
/** Sequence assigned while the document row is locked. */
|
|
100
119
|
sequenceNumber: number;
|
|
101
120
|
updateBase64: string;
|
|
102
|
-
/** SHA-256
|
|
121
|
+
/** SHA-256 deduplication key, unique per document. Ordinary updates hash decoded bytes;
|
|
122
|
+
* schema migrations prefix them with `platform:schema-migration:<targetSchemaVersion>:`. */
|
|
103
123
|
updateHash: string;
|
|
104
124
|
origin?: string | null;
|
|
105
125
|
actorType?: CollaborationActorType | null;
|
|
@@ -99,6 +99,8 @@ export interface TextContentEditorRegistration extends ContentEditorMetadata {
|
|
|
99
99
|
export interface FileContentEditorRegistration extends ContentEditorMetadata {
|
|
100
100
|
kind: 'file';
|
|
101
101
|
concurrency: 'versioned';
|
|
102
|
+
/** Explicit model identity for catalogued files. Owners retain file identity, ACL and CAS writes. */
|
|
103
|
+
resourceType?: import('./content-resource.model').ContentTypeImplementation & import('./content-resource.model').ContentModelIdentity;
|
|
102
104
|
}
|
|
103
105
|
export type ContentEditorRegistration = TextContentEditorRegistration | FileContentEditorRegistration | import('./content-resource.model').ResourceContentEditorRegistration;
|
|
104
106
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { I18nObject } from '
|
|
2
|
-
import type { ArtifactTypeDescriptor } from '
|
|
3
|
-
import type { IconDefinition } from '
|
|
1
|
+
import type { I18nObject } from '../i18n.model';
|
|
2
|
+
import type { ArtifactKind, ArtifactTypeDescriptor } from '../artifacts/artifact.model';
|
|
3
|
+
import type { IconDefinition } from '../types';
|
|
4
4
|
export type ContentAction = 'rename' | 'move' | 'trash' | 'restore' | 'duplicate';
|
|
5
5
|
export type ContentSourceLocation = {
|
|
6
6
|
kind: 'file';
|
|
@@ -52,10 +52,14 @@ export interface ContentResourceSnapshot extends ContentModelIdentity {
|
|
|
52
52
|
kind: 'artifact';
|
|
53
53
|
referenceId: string;
|
|
54
54
|
type?: ArtifactTypeDescriptor;
|
|
55
|
+
artifactKind?: ArtifactKind;
|
|
55
56
|
};
|
|
56
57
|
/** Opt in only when all Project readers may read the source even without this provider.
|
|
57
58
|
* Resources with additional native ACLs must omit this field and fail closed offline. */
|
|
58
59
|
offlineAccess?: 'project';
|
|
60
|
+
/** Provider owns persistence for these source/contained paths. Ordinary Workspace
|
|
61
|
+
* writes are rejected; provider Runtime capabilities retain their authorized writer. */
|
|
62
|
+
writeOwnership?: 'provider';
|
|
59
63
|
sourceSync?: {
|
|
60
64
|
status: 'synced' | 'pending' | 'failed';
|
|
61
65
|
revision?: string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { AnalysisEvidenceSnapshot } from '../analytics/analysis-evidence.model';
|
|
2
|
+
import type { ContentSearchProjection } from './content-resource.model';
|
|
3
|
+
/** A fixed, bounded projection obtained by the host from an authorized source.
|
|
4
|
+
* It creates a new editable resource; it never grants source access or implies synchronization. */
|
|
5
|
+
export interface ContentTextTransferSnapshot {
|
|
6
|
+
schema: 'xpert.content-transfer@1';
|
|
7
|
+
source: {
|
|
8
|
+
providerKey: string;
|
|
9
|
+
resourceId: string;
|
|
10
|
+
revision: string;
|
|
11
|
+
title: string;
|
|
12
|
+
};
|
|
13
|
+
sections: ContentSearchProjection['sections'];
|
|
14
|
+
}
|
|
15
|
+
/** Trusted producer output consumed by native Office and Motion adapters. */
|
|
16
|
+
export interface ContentAnalysisTransferSnapshot {
|
|
17
|
+
schema: 'xpert.content-analysis-transfer@1';
|
|
18
|
+
source: ContentTextTransferSnapshot['source'];
|
|
19
|
+
evidence: AnalysisEvidenceSnapshot;
|
|
20
|
+
}
|
|
21
|
+
export type ContentTransferSnapshot = ContentTextTransferSnapshot | ContentAnalysisTransferSnapshot;
|