@xpert-ai/contracts 3.36.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/index.cjs.js +818 -450
- package/index.esm.js +806 -451
- package/package.json +2 -2
- package/src/ai/agent-runtime.model.d.ts +2 -2
- package/src/ai/assistant-template-manifest.model.d.ts +328 -328
- package/src/ai/assistant-template-setup.model.d.ts +8 -8
- package/src/ai/chat-activity.model.d.ts +5 -0
- package/src/ai/chat.model.d.ts +2 -0
- package/src/ai/conversation-trail.model.d.ts +66 -66
- package/src/ai/execution-activity.model.d.ts +10 -10
- package/src/ai/execution-control-evidence.schema.d.ts +30 -30
- package/src/ai/execution-observability.model.d.ts +96 -96
- package/src/ai/mcp-execution-control.schema.d.ts +2 -2
- package/src/ai/model-replacement.model.d.ts +6 -6
- package/src/ai/project-pipeline/analytics.d.ts +154 -154
- package/src/ai/project-pipeline/budget.schema.d.ts +4 -4
- package/src/ai/project-pipeline/commands.schema.d.ts +68 -68
- package/src/ai/project-pipeline/configuration-declaration.schema.d.ts +3815 -0
- package/src/ai/project-pipeline/configuration-form.d.ts +215 -215
- package/src/ai/project-pipeline/configuration.schema.d.ts +50 -50
- package/src/ai/project-pipeline/contribution.schema.d.ts +173 -70
- package/src/ai/project-pipeline/definition.schema.d.ts +50 -50
- package/src/ai/project-pipeline/execution-statistics.d.ts +18 -18
- package/src/ai/project-pipeline/graph.model.d.ts +2 -2
- package/src/ai/project-pipeline/index.d.ts +1 -0
- package/src/ai/project-pipeline/model-usage-statistics.d.ts +2 -2
- package/src/ai/project-pipeline/node.schema.d.ts +2 -2
- package/src/ai/project-pipeline/operation.schema.d.ts +344 -344
- package/src/ai/project-pipeline/portfolio.schema.d.ts +348 -348
- package/src/ai/project-pipeline/primitives.schema.d.ts +4 -4
- package/src/ai/project-pipeline/projection.schema.d.ts +260 -260
- package/src/ai/project-pipeline/provider-actions.schema.d.ts +28 -28
- package/src/ai/project-pipeline/queue-statistics.d.ts +24 -24
- package/src/ai/project-pipeline/runtime.schema.d.ts +50 -50
- package/src/ai/project-pipeline/statistics.d.ts +74 -74
- package/src/ai/project-task-runtime.model.d.ts +23 -23
- package/src/ai/sandbox-execution-control.schema.d.ts +6 -6
- package/src/ai/template-installation.model.d.ts +16 -16
- package/src/ai/template-lifecycle.model.d.ts +2 -2
- package/src/ai/thread-control-view.schema.d.ts +4 -4
- package/src/ai/xpert-agent-execution.model.d.ts +29 -0
- package/src/ai/xpert-tool.model.d.ts +12 -0
- package/src/{agent-event.model.d.ts → always-on/agent-event.model.d.ts} +37 -4
- package/src/{agent-event.schema.d.ts → always-on/agent-event.schema.d.ts} +19 -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/analytics-diagnostic.d.ts +4 -4
- package/src/app-platform.d.ts +18 -18
- package/src/artifacts/artifact.model.d.ts +2 -0
- package/src/content/content-resource.model.d.ts +2 -1
- package/src/icon-definition.schema.d.ts +6 -10
- package/src/index.d.ts +1 -1
- package/src/secret-token.model.d.ts +4 -4
- package/src/user-notification.schema.d.ts +1290 -479
|
@@ -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 {};
|
|
@@ -11,8 +11,8 @@ export declare const analyticsDiagnosticSchema: z.ZodEffects<z.ZodObject<{
|
|
|
11
11
|
auditRef: z.ZodOptional<z.ZodString>;
|
|
12
12
|
}, "strict", z.ZodTypeAny, {
|
|
13
13
|
code?: string;
|
|
14
|
-
message?: string;
|
|
15
14
|
version?: 1;
|
|
15
|
+
message?: string;
|
|
16
16
|
stage?: "validation" | "source" | "execution" | "request" | "result" | "dependency" | "authorization";
|
|
17
17
|
schema?: "xpert.analytics.diagnostic";
|
|
18
18
|
retryable?: boolean;
|
|
@@ -20,8 +20,8 @@ export declare const analyticsDiagnosticSchema: z.ZodEffects<z.ZodObject<{
|
|
|
20
20
|
auditRef?: string;
|
|
21
21
|
}, {
|
|
22
22
|
code?: string;
|
|
23
|
-
message?: string;
|
|
24
23
|
version?: 1;
|
|
24
|
+
message?: string;
|
|
25
25
|
stage?: "validation" | "source" | "execution" | "request" | "result" | "dependency" | "authorization";
|
|
26
26
|
schema?: "xpert.analytics.diagnostic";
|
|
27
27
|
retryable?: boolean;
|
|
@@ -29,8 +29,8 @@ export declare const analyticsDiagnosticSchema: z.ZodEffects<z.ZodObject<{
|
|
|
29
29
|
auditRef?: string;
|
|
30
30
|
}>, {
|
|
31
31
|
code?: string;
|
|
32
|
-
message?: string;
|
|
33
32
|
version?: 1;
|
|
33
|
+
message?: string;
|
|
34
34
|
stage?: "validation" | "source" | "execution" | "request" | "result" | "dependency" | "authorization";
|
|
35
35
|
schema?: "xpert.analytics.diagnostic";
|
|
36
36
|
retryable?: boolean;
|
|
@@ -38,8 +38,8 @@ export declare const analyticsDiagnosticSchema: z.ZodEffects<z.ZodObject<{
|
|
|
38
38
|
auditRef?: string;
|
|
39
39
|
}, {
|
|
40
40
|
code?: string;
|
|
41
|
-
message?: string;
|
|
42
41
|
version?: 1;
|
|
42
|
+
message?: string;
|
|
43
43
|
stage?: "validation" | "source" | "execution" | "request" | "result" | "dependency" | "authorization";
|
|
44
44
|
schema?: "xpert.analytics.diagnostic";
|
|
45
45
|
retryable?: boolean;
|
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;
|
|
@@ -79,11 +79,11 @@ export declare const appPlatformDefinitionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
79
79
|
role: z.ZodLiteral<"APP_USER">;
|
|
80
80
|
organization: z.ZodLiteral<"per-account">;
|
|
81
81
|
}, "strict", z.ZodTypeAny, {
|
|
82
|
-
role?: "APP_USER";
|
|
83
82
|
organization?: "per-account";
|
|
84
|
-
}, {
|
|
85
83
|
role?: "APP_USER";
|
|
84
|
+
}, {
|
|
86
85
|
organization?: "per-account";
|
|
86
|
+
role?: "APP_USER";
|
|
87
87
|
}>;
|
|
88
88
|
apps: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
89
89
|
key: z.ZodString;
|
|
@@ -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;
|
|
@@ -203,9 +203,9 @@ export declare const appPlatformDefinitionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
203
203
|
defaultPlanRef?: string;
|
|
204
204
|
}>;
|
|
205
205
|
}, "strict", z.ZodTypeAny, {
|
|
206
|
+
version?: number;
|
|
206
207
|
key?: string;
|
|
207
208
|
schemaVersion?: 1;
|
|
208
|
-
version?: number;
|
|
209
209
|
apps?: {
|
|
210
210
|
key: string;
|
|
211
211
|
required: boolean;
|
|
@@ -234,8 +234,8 @@ export declare const appPlatformDefinitionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
234
234
|
logo?: string;
|
|
235
235
|
};
|
|
236
236
|
registration?: {
|
|
237
|
-
role?: "APP_USER";
|
|
238
237
|
organization?: "per-account";
|
|
238
|
+
role?: "APP_USER";
|
|
239
239
|
};
|
|
240
240
|
experience?: {
|
|
241
241
|
navigation?: string[];
|
|
@@ -245,13 +245,13 @@ export declare const appPlatformDefinitionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
245
245
|
defaultPlanRef?: string;
|
|
246
246
|
};
|
|
247
247
|
}, {
|
|
248
|
+
version?: number;
|
|
248
249
|
key?: string;
|
|
249
250
|
schemaVersion?: 1;
|
|
250
|
-
version?: number;
|
|
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;
|
|
@@ -276,8 +276,8 @@ export declare const appPlatformDefinitionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
276
276
|
logo?: string;
|
|
277
277
|
};
|
|
278
278
|
registration?: {
|
|
279
|
-
role?: "APP_USER";
|
|
280
279
|
organization?: "per-account";
|
|
280
|
+
role?: "APP_USER";
|
|
281
281
|
};
|
|
282
282
|
experience?: {
|
|
283
283
|
navigation?: string[];
|
|
@@ -287,9 +287,9 @@ export declare const appPlatformDefinitionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
287
287
|
defaultPlanRef?: string;
|
|
288
288
|
};
|
|
289
289
|
}>, {
|
|
290
|
+
version?: number;
|
|
290
291
|
key?: string;
|
|
291
292
|
schemaVersion?: 1;
|
|
292
|
-
version?: number;
|
|
293
293
|
apps?: {
|
|
294
294
|
key: string;
|
|
295
295
|
required: boolean;
|
|
@@ -318,8 +318,8 @@ export declare const appPlatformDefinitionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
318
318
|
logo?: string;
|
|
319
319
|
};
|
|
320
320
|
registration?: {
|
|
321
|
-
role?: "APP_USER";
|
|
322
321
|
organization?: "per-account";
|
|
322
|
+
role?: "APP_USER";
|
|
323
323
|
};
|
|
324
324
|
experience?: {
|
|
325
325
|
navigation?: string[];
|
|
@@ -329,13 +329,13 @@ export declare const appPlatformDefinitionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
329
329
|
defaultPlanRef?: string;
|
|
330
330
|
};
|
|
331
331
|
}, {
|
|
332
|
+
version?: number;
|
|
332
333
|
key?: string;
|
|
333
334
|
schemaVersion?: 1;
|
|
334
|
-
version?: number;
|
|
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;
|
|
@@ -360,8 +360,8 @@ export declare const appPlatformDefinitionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
360
360
|
logo?: string;
|
|
361
361
|
};
|
|
362
362
|
registration?: {
|
|
363
|
-
role?: "APP_USER";
|
|
364
363
|
organization?: "per-account";
|
|
364
|
+
role?: "APP_USER";
|
|
365
365
|
};
|
|
366
366
|
experience?: {
|
|
367
367
|
navigation?: string[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IBasePerTenantAndOrganizationEntityModel } from '../base-entity.model';
|
|
2
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,5 @@
|
|
|
1
1
|
import type { I18nObject } from '../i18n.model';
|
|
2
|
-
import type { ArtifactTypeDescriptor } from '../artifacts/artifact.model';
|
|
2
|
+
import type { ArtifactKind, ArtifactTypeDescriptor } from '../artifacts/artifact.model';
|
|
3
3
|
import type { IconDefinition } from '../types';
|
|
4
4
|
export type ContentAction = 'rename' | 'move' | 'trash' | 'restore' | 'duplicate';
|
|
5
5
|
export type ContentSourceLocation = {
|
|
@@ -52,6 +52,7 @@ 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. */
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod/v3';
|
|
2
|
-
|
|
2
|
+
import type { IconDefinition } from './types';
|
|
3
|
+
/** Public presentation metadata only. Renderers retain their own sandbox and URL policies.
|
|
4
|
+
* Explicit output keeps required fields when contracts build without strictNullChecks,
|
|
5
|
+
* while retaining the object schema's composition methods for existing consumers. */
|
|
3
6
|
export declare const iconDefinitionSchema: z.ZodObject<{
|
|
4
7
|
type: z.ZodEnum<["image", "svg", "font", "emoji", "lottie"]>;
|
|
5
8
|
value: z.ZodString;
|
|
@@ -7,18 +10,11 @@ export declare const iconDefinitionSchema: z.ZodObject<{
|
|
|
7
10
|
size: z.ZodOptional<z.ZodNumber>;
|
|
8
11
|
alt: z.ZodOptional<z.ZodString>;
|
|
9
12
|
style: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
10
|
-
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
value?: string;
|
|
12
|
-
type?: "image" | "svg" | "font" | "emoji" | "lottie";
|
|
13
|
+
}, "strip", z.ZodTypeAny, IconDefinition, {
|
|
13
14
|
size?: number;
|
|
14
15
|
color?: string;
|
|
15
|
-
alt?: string;
|
|
16
|
-
style?: Record<string, string>;
|
|
17
|
-
}, {
|
|
18
|
-
value?: string;
|
|
19
16
|
type?: "image" | "svg" | "font" | "emoji" | "lottie";
|
|
20
|
-
|
|
21
|
-
color?: string;
|
|
17
|
+
value?: string;
|
|
22
18
|
alt?: string;
|
|
23
19
|
style?: Record<string, string>;
|
|
24
20
|
}>;
|
package/src/index.d.ts
CHANGED
|
@@ -17,22 +17,22 @@ export declare const clientSecretGrantSourceSchema: z.ZodDiscriminatedUnion<"kin
|
|
|
17
17
|
kind: z.ZodLiteral<"project">;
|
|
18
18
|
projectId: z.ZodString;
|
|
19
19
|
}, "strict", z.ZodTypeAny, {
|
|
20
|
-
kind?: "project";
|
|
21
20
|
projectId?: string;
|
|
22
|
-
}, {
|
|
23
21
|
kind?: "project";
|
|
22
|
+
}, {
|
|
24
23
|
projectId?: string;
|
|
24
|
+
kind?: "project";
|
|
25
25
|
}>, z.ZodObject<{
|
|
26
26
|
kind: z.ZodLiteral<"conversation">;
|
|
27
27
|
conversationId: z.ZodString;
|
|
28
28
|
requesterXpertId: z.ZodString;
|
|
29
29
|
}, "strict", z.ZodTypeAny, {
|
|
30
|
-
kind?: "conversation";
|
|
31
30
|
conversationId?: string;
|
|
31
|
+
kind?: "conversation";
|
|
32
32
|
requesterXpertId?: string;
|
|
33
33
|
}, {
|
|
34
|
-
kind?: "conversation";
|
|
35
34
|
conversationId?: string;
|
|
35
|
+
kind?: "conversation";
|
|
36
36
|
requesterXpertId?: string;
|
|
37
37
|
}>]>;
|
|
38
38
|
export type TClientSecretGrantSource = z.infer<typeof clientSecretGrantSourceSchema>;
|