@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
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AgentOutputItem } from './always-on/agent-output.model';
|
|
1
2
|
import { z } from 'zod/v3';
|
|
2
3
|
export declare const notificationClientSchema: z.ZodEnum<["web", "desktop"]>;
|
|
3
4
|
export type NotificationClient = z.infer<typeof notificationClientSchema>;
|
|
@@ -6,20 +7,20 @@ export declare const announcementActionSchema: z.ZodObject<{
|
|
|
6
7
|
label: z.ZodString;
|
|
7
8
|
url: z.ZodEffects<z.ZodString, string, string>;
|
|
8
9
|
}, "strict", z.ZodTypeAny, {
|
|
9
|
-
type
|
|
10
|
-
label
|
|
11
|
-
url
|
|
10
|
+
type: "link";
|
|
11
|
+
label: string;
|
|
12
|
+
url: string;
|
|
12
13
|
}, {
|
|
13
|
-
type
|
|
14
|
-
label
|
|
15
|
-
url
|
|
14
|
+
type: "link";
|
|
15
|
+
label: string;
|
|
16
|
+
url: string;
|
|
16
17
|
}>;
|
|
17
18
|
export declare const announcementContentSchema: z.ZodObject<{
|
|
18
19
|
title: z.ZodString;
|
|
19
20
|
body: z.ZodString;
|
|
20
21
|
category: z.ZodDefault<z.ZodEnum<["general", "maintenance", "model_retirement"]>>;
|
|
21
22
|
severity: z.ZodDefault<z.ZodEnum<["info", "important"]>>;
|
|
22
|
-
clients: z.ZodEffects<z.ZodArray<z.ZodEnum<["web", "desktop"]>, "many">, ("
|
|
23
|
+
clients: z.ZodEffects<z.ZodArray<z.ZodEnum<["web", "desktop"]>, "many">, ("web" | "desktop")[], ("web" | "desktop")[]>;
|
|
23
24
|
startsAt: z.ZodString;
|
|
24
25
|
expiresAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
25
26
|
action: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
@@ -27,47 +28,47 @@ export declare const announcementContentSchema: z.ZodObject<{
|
|
|
27
28
|
label: z.ZodString;
|
|
28
29
|
url: z.ZodEffects<z.ZodString, string, string>;
|
|
29
30
|
}, "strict", z.ZodTypeAny, {
|
|
30
|
-
type
|
|
31
|
-
label
|
|
32
|
-
url
|
|
31
|
+
type: "link";
|
|
32
|
+
label: string;
|
|
33
|
+
url: string;
|
|
33
34
|
}, {
|
|
34
|
-
type
|
|
35
|
-
label
|
|
36
|
-
url
|
|
35
|
+
type: "link";
|
|
36
|
+
label: string;
|
|
37
|
+
url: string;
|
|
37
38
|
}>>>;
|
|
38
39
|
}, "strict", z.ZodTypeAny, {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
40
|
+
title: string;
|
|
41
|
+
body: string;
|
|
42
|
+
category: "general" | "maintenance" | "model_retirement";
|
|
43
|
+
severity: "info" | "important";
|
|
44
|
+
clients: ("web" | "desktop")[];
|
|
45
|
+
startsAt: string;
|
|
46
|
+
expiresAt: string | null;
|
|
47
|
+
action: {
|
|
48
|
+
type: "link";
|
|
49
|
+
label: string;
|
|
50
|
+
url: string;
|
|
51
|
+
} | null;
|
|
51
52
|
}, {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
title: string;
|
|
54
|
+
body: string;
|
|
55
|
+
clients: ("web" | "desktop")[];
|
|
56
|
+
startsAt: string;
|
|
57
|
+
category?: "general" | "maintenance" | "model_retirement" | undefined;
|
|
58
|
+
severity?: "info" | "important" | undefined;
|
|
59
|
+
expiresAt?: string | null | undefined;
|
|
55
60
|
action?: {
|
|
56
|
-
type
|
|
57
|
-
label
|
|
58
|
-
url
|
|
59
|
-
};
|
|
60
|
-
body?: string;
|
|
61
|
-
severity?: "info" | "important";
|
|
62
|
-
clients?: ("desktop" | "web")[];
|
|
63
|
-
startsAt?: string;
|
|
61
|
+
type: "link";
|
|
62
|
+
label: string;
|
|
63
|
+
url: string;
|
|
64
|
+
} | null | undefined;
|
|
64
65
|
}>;
|
|
65
66
|
export declare const createAnnouncementSchema: z.ZodEffects<z.ZodObject<{
|
|
66
67
|
title: z.ZodString;
|
|
67
68
|
body: z.ZodString;
|
|
68
69
|
category: z.ZodDefault<z.ZodEnum<["general", "maintenance", "model_retirement"]>>;
|
|
69
70
|
severity: z.ZodDefault<z.ZodEnum<["info", "important"]>>;
|
|
70
|
-
clients: z.ZodEffects<z.ZodArray<z.ZodEnum<["web", "desktop"]>, "many">, ("
|
|
71
|
+
clients: z.ZodEffects<z.ZodArray<z.ZodEnum<["web", "desktop"]>, "many">, ("web" | "desktop")[], ("web" | "desktop")[]>;
|
|
71
72
|
startsAt: z.ZodString;
|
|
72
73
|
expiresAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
73
74
|
action: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
@@ -75,73 +76,73 @@ export declare const createAnnouncementSchema: z.ZodEffects<z.ZodObject<{
|
|
|
75
76
|
label: z.ZodString;
|
|
76
77
|
url: z.ZodEffects<z.ZodString, string, string>;
|
|
77
78
|
}, "strict", z.ZodTypeAny, {
|
|
78
|
-
type
|
|
79
|
-
label
|
|
80
|
-
url
|
|
79
|
+
type: "link";
|
|
80
|
+
label: string;
|
|
81
|
+
url: string;
|
|
81
82
|
}, {
|
|
82
|
-
type
|
|
83
|
-
label
|
|
84
|
-
url
|
|
83
|
+
type: "link";
|
|
84
|
+
label: string;
|
|
85
|
+
url: string;
|
|
85
86
|
}>>>;
|
|
86
87
|
}, "strict", z.ZodTypeAny, {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
88
|
+
title: string;
|
|
89
|
+
body: string;
|
|
90
|
+
category: "general" | "maintenance" | "model_retirement";
|
|
91
|
+
severity: "info" | "important";
|
|
92
|
+
clients: ("web" | "desktop")[];
|
|
93
|
+
startsAt: string;
|
|
94
|
+
expiresAt: string | null;
|
|
95
|
+
action: {
|
|
96
|
+
type: "link";
|
|
97
|
+
label: string;
|
|
98
|
+
url: string;
|
|
99
|
+
} | null;
|
|
99
100
|
}, {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
title: string;
|
|
102
|
+
body: string;
|
|
103
|
+
clients: ("web" | "desktop")[];
|
|
104
|
+
startsAt: string;
|
|
105
|
+
category?: "general" | "maintenance" | "model_retirement" | undefined;
|
|
106
|
+
severity?: "info" | "important" | undefined;
|
|
107
|
+
expiresAt?: string | null | undefined;
|
|
103
108
|
action?: {
|
|
104
|
-
type
|
|
105
|
-
label
|
|
106
|
-
url
|
|
107
|
-
};
|
|
108
|
-
body?: string;
|
|
109
|
-
severity?: "info" | "important";
|
|
110
|
-
clients?: ("desktop" | "web")[];
|
|
111
|
-
startsAt?: string;
|
|
109
|
+
type: "link";
|
|
110
|
+
label: string;
|
|
111
|
+
url: string;
|
|
112
|
+
} | null | undefined;
|
|
112
113
|
}>, {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
114
|
+
title: string;
|
|
115
|
+
body: string;
|
|
116
|
+
category: "general" | "maintenance" | "model_retirement";
|
|
117
|
+
severity: "info" | "important";
|
|
118
|
+
clients: ("web" | "desktop")[];
|
|
119
|
+
startsAt: string;
|
|
120
|
+
expiresAt: string | null;
|
|
121
|
+
action: {
|
|
122
|
+
type: "link";
|
|
123
|
+
label: string;
|
|
124
|
+
url: string;
|
|
125
|
+
} | null;
|
|
125
126
|
}, {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
title: string;
|
|
128
|
+
body: string;
|
|
129
|
+
clients: ("web" | "desktop")[];
|
|
130
|
+
startsAt: string;
|
|
131
|
+
category?: "general" | "maintenance" | "model_retirement" | undefined;
|
|
132
|
+
severity?: "info" | "important" | undefined;
|
|
133
|
+
expiresAt?: string | null | undefined;
|
|
129
134
|
action?: {
|
|
130
|
-
type
|
|
131
|
-
label
|
|
132
|
-
url
|
|
133
|
-
};
|
|
134
|
-
body?: string;
|
|
135
|
-
severity?: "info" | "important";
|
|
136
|
-
clients?: ("desktop" | "web")[];
|
|
137
|
-
startsAt?: string;
|
|
135
|
+
type: "link";
|
|
136
|
+
label: string;
|
|
137
|
+
url: string;
|
|
138
|
+
} | null | undefined;
|
|
138
139
|
}>;
|
|
139
140
|
export declare const updateAnnouncementSchema: z.ZodEffects<z.ZodObject<{
|
|
140
141
|
title: z.ZodString;
|
|
141
142
|
body: z.ZodString;
|
|
142
143
|
category: z.ZodDefault<z.ZodEnum<["general", "maintenance", "model_retirement"]>>;
|
|
143
144
|
severity: z.ZodDefault<z.ZodEnum<["info", "important"]>>;
|
|
144
|
-
clients: z.ZodEffects<z.ZodArray<z.ZodEnum<["web", "desktop"]>, "many">, ("
|
|
145
|
+
clients: z.ZodEffects<z.ZodArray<z.ZodEnum<["web", "desktop"]>, "many">, ("web" | "desktop")[], ("web" | "desktop")[]>;
|
|
145
146
|
startsAt: z.ZodString;
|
|
146
147
|
expiresAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
147
148
|
action: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
@@ -149,86 +150,86 @@ export declare const updateAnnouncementSchema: z.ZodEffects<z.ZodObject<{
|
|
|
149
150
|
label: z.ZodString;
|
|
150
151
|
url: z.ZodEffects<z.ZodString, string, string>;
|
|
151
152
|
}, "strict", z.ZodTypeAny, {
|
|
152
|
-
type
|
|
153
|
-
label
|
|
154
|
-
url
|
|
153
|
+
type: "link";
|
|
154
|
+
label: string;
|
|
155
|
+
url: string;
|
|
155
156
|
}, {
|
|
156
|
-
type
|
|
157
|
-
label
|
|
158
|
-
url
|
|
157
|
+
type: "link";
|
|
158
|
+
label: string;
|
|
159
|
+
url: string;
|
|
159
160
|
}>>>;
|
|
160
161
|
} & {
|
|
161
162
|
revision: z.ZodNumber;
|
|
162
163
|
}, "strict", z.ZodTypeAny, {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
164
|
+
revision: number;
|
|
165
|
+
title: string;
|
|
166
|
+
body: string;
|
|
167
|
+
category: "general" | "maintenance" | "model_retirement";
|
|
168
|
+
severity: "info" | "important";
|
|
169
|
+
clients: ("web" | "desktop")[];
|
|
170
|
+
startsAt: string;
|
|
171
|
+
expiresAt: string | null;
|
|
172
|
+
action: {
|
|
173
|
+
type: "link";
|
|
174
|
+
label: string;
|
|
175
|
+
url: string;
|
|
176
|
+
} | null;
|
|
176
177
|
}, {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
178
|
+
revision: number;
|
|
179
|
+
title: string;
|
|
180
|
+
body: string;
|
|
181
|
+
clients: ("web" | "desktop")[];
|
|
182
|
+
startsAt: string;
|
|
183
|
+
category?: "general" | "maintenance" | "model_retirement" | undefined;
|
|
184
|
+
severity?: "info" | "important" | undefined;
|
|
185
|
+
expiresAt?: string | null | undefined;
|
|
181
186
|
action?: {
|
|
182
|
-
type
|
|
183
|
-
label
|
|
184
|
-
url
|
|
185
|
-
};
|
|
186
|
-
body?: string;
|
|
187
|
-
severity?: "info" | "important";
|
|
188
|
-
clients?: ("desktop" | "web")[];
|
|
189
|
-
startsAt?: string;
|
|
187
|
+
type: "link";
|
|
188
|
+
label: string;
|
|
189
|
+
url: string;
|
|
190
|
+
} | null | undefined;
|
|
190
191
|
}>, {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
192
|
+
revision: number;
|
|
193
|
+
title: string;
|
|
194
|
+
body: string;
|
|
195
|
+
category: "general" | "maintenance" | "model_retirement";
|
|
196
|
+
severity: "info" | "important";
|
|
197
|
+
clients: ("web" | "desktop")[];
|
|
198
|
+
startsAt: string;
|
|
199
|
+
expiresAt: string | null;
|
|
200
|
+
action: {
|
|
201
|
+
type: "link";
|
|
202
|
+
label: string;
|
|
203
|
+
url: string;
|
|
204
|
+
} | null;
|
|
204
205
|
}, {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
206
|
+
revision: number;
|
|
207
|
+
title: string;
|
|
208
|
+
body: string;
|
|
209
|
+
clients: ("web" | "desktop")[];
|
|
210
|
+
startsAt: string;
|
|
211
|
+
category?: "general" | "maintenance" | "model_retirement" | undefined;
|
|
212
|
+
severity?: "info" | "important" | undefined;
|
|
213
|
+
expiresAt?: string | null | undefined;
|
|
209
214
|
action?: {
|
|
210
|
-
type
|
|
211
|
-
label
|
|
212
|
-
url
|
|
213
|
-
};
|
|
214
|
-
body?: string;
|
|
215
|
-
severity?: "info" | "important";
|
|
216
|
-
clients?: ("desktop" | "web")[];
|
|
217
|
-
startsAt?: string;
|
|
215
|
+
type: "link";
|
|
216
|
+
label: string;
|
|
217
|
+
url: string;
|
|
218
|
+
} | null | undefined;
|
|
218
219
|
}>;
|
|
219
220
|
export declare const announcementRevisionSchema: z.ZodObject<{
|
|
220
221
|
revision: z.ZodNumber;
|
|
221
222
|
}, "strict", z.ZodTypeAny, {
|
|
222
|
-
revision
|
|
223
|
+
revision: number;
|
|
223
224
|
}, {
|
|
224
|
-
revision
|
|
225
|
+
revision: number;
|
|
225
226
|
}>;
|
|
226
227
|
export declare const announcementSchema: z.ZodObject<{
|
|
227
228
|
title: z.ZodString;
|
|
228
229
|
body: z.ZodString;
|
|
229
230
|
category: z.ZodDefault<z.ZodEnum<["general", "maintenance", "model_retirement"]>>;
|
|
230
231
|
severity: z.ZodDefault<z.ZodEnum<["info", "important"]>>;
|
|
231
|
-
clients: z.ZodEffects<z.ZodArray<z.ZodEnum<["web", "desktop"]>, "many">, ("
|
|
232
|
+
clients: z.ZodEffects<z.ZodArray<z.ZodEnum<["web", "desktop"]>, "many">, ("web" | "desktop")[], ("web" | "desktop")[]>;
|
|
232
233
|
startsAt: z.ZodString;
|
|
233
234
|
expiresAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
234
235
|
action: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
@@ -236,13 +237,13 @@ export declare const announcementSchema: z.ZodObject<{
|
|
|
236
237
|
label: z.ZodString;
|
|
237
238
|
url: z.ZodEffects<z.ZodString, string, string>;
|
|
238
239
|
}, "strict", z.ZodTypeAny, {
|
|
239
|
-
type
|
|
240
|
-
label
|
|
241
|
-
url
|
|
240
|
+
type: "link";
|
|
241
|
+
label: string;
|
|
242
|
+
url: string;
|
|
242
243
|
}, {
|
|
243
|
-
type
|
|
244
|
-
label
|
|
245
|
-
url
|
|
244
|
+
type: "link";
|
|
245
|
+
label: string;
|
|
246
|
+
url: string;
|
|
246
247
|
}>>>;
|
|
247
248
|
} & {
|
|
248
249
|
id: z.ZodString;
|
|
@@ -251,41 +252,41 @@ export declare const announcementSchema: z.ZodObject<{
|
|
|
251
252
|
createdAt: z.ZodString;
|
|
252
253
|
dismissedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
253
254
|
}, "strict", z.ZodTypeAny, {
|
|
254
|
-
status
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
dismissedAt
|
|
255
|
+
status: "draft" | "published" | "withdrawn";
|
|
256
|
+
revision: number;
|
|
257
|
+
title: string;
|
|
258
|
+
body: string;
|
|
259
|
+
category: "general" | "maintenance" | "model_retirement";
|
|
260
|
+
severity: "info" | "important";
|
|
261
|
+
clients: ("web" | "desktop")[];
|
|
262
|
+
startsAt: string;
|
|
263
|
+
expiresAt: string | null;
|
|
264
|
+
action: {
|
|
265
|
+
type: "link";
|
|
266
|
+
label: string;
|
|
267
|
+
url: string;
|
|
268
|
+
} | null;
|
|
269
|
+
id: string;
|
|
270
|
+
createdAt: string;
|
|
271
|
+
dismissedAt: string | null;
|
|
271
272
|
}, {
|
|
272
|
-
status
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
273
|
+
status: "draft" | "published" | "withdrawn";
|
|
274
|
+
revision: number;
|
|
275
|
+
title: string;
|
|
276
|
+
body: string;
|
|
277
|
+
clients: ("web" | "desktop")[];
|
|
278
|
+
startsAt: string;
|
|
279
|
+
id: string;
|
|
280
|
+
createdAt: string;
|
|
281
|
+
category?: "general" | "maintenance" | "model_retirement" | undefined;
|
|
282
|
+
severity?: "info" | "important" | undefined;
|
|
283
|
+
expiresAt?: string | null | undefined;
|
|
279
284
|
action?: {
|
|
280
|
-
type
|
|
281
|
-
label
|
|
282
|
-
url
|
|
283
|
-
};
|
|
284
|
-
|
|
285
|
-
severity?: "info" | "important";
|
|
286
|
-
clients?: ("desktop" | "web")[];
|
|
287
|
-
startsAt?: string;
|
|
288
|
-
dismissedAt?: string;
|
|
285
|
+
type: "link";
|
|
286
|
+
label: string;
|
|
287
|
+
url: string;
|
|
288
|
+
} | null | undefined;
|
|
289
|
+
dismissedAt?: string | null | undefined;
|
|
289
290
|
}>;
|
|
290
291
|
export type AnnouncementInput = z.output<typeof createAnnouncementSchema>;
|
|
291
292
|
export type Announcement = Omit<Required<z.output<typeof announcementSchema>>, 'action'> & {
|
|
@@ -298,17 +299,17 @@ export declare const notificationSourceSchema: z.ZodObject<{
|
|
|
298
299
|
assistantId: z.ZodString;
|
|
299
300
|
conversationId: z.ZodString;
|
|
300
301
|
}, "strict", z.ZodTypeAny, {
|
|
301
|
-
type
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
302
|
+
type: "scheduled_task";
|
|
303
|
+
assistantId: string;
|
|
304
|
+
taskId: string;
|
|
305
|
+
executionId: string;
|
|
306
|
+
conversationId: string;
|
|
306
307
|
}, {
|
|
307
|
-
type
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
308
|
+
type: "scheduled_task";
|
|
309
|
+
assistantId: string;
|
|
310
|
+
taskId: string;
|
|
311
|
+
executionId: string;
|
|
312
|
+
conversationId: string;
|
|
312
313
|
}>;
|
|
313
314
|
export declare const scheduledNotificationOriginSchema: z.ZodObject<{
|
|
314
315
|
type: z.ZodLiteral<"scheduled_task">;
|
|
@@ -319,21 +320,39 @@ export declare const scheduledNotificationOriginSchema: z.ZodObject<{
|
|
|
319
320
|
} & {
|
|
320
321
|
threadId: z.ZodOptional<z.ZodString>;
|
|
321
322
|
}, "strict", z.ZodTypeAny, {
|
|
322
|
-
type
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
323
|
+
type: "scheduled_task";
|
|
324
|
+
assistantId: string;
|
|
325
|
+
taskId: string;
|
|
326
|
+
executionId: string;
|
|
327
|
+
conversationId: string;
|
|
328
|
+
threadId?: string | undefined;
|
|
329
|
+
}, {
|
|
330
|
+
type: "scheduled_task";
|
|
331
|
+
assistantId: string;
|
|
332
|
+
taskId: string;
|
|
333
|
+
executionId: string;
|
|
334
|
+
conversationId: string;
|
|
335
|
+
threadId?: string | undefined;
|
|
336
|
+
}>;
|
|
337
|
+
export declare const notificationThreadIdSchema: z.ZodString;
|
|
338
|
+
export declare const openConversationActionSchema: z.ZodObject<{
|
|
339
|
+
type: z.ZodLiteral<"open_conversation">;
|
|
340
|
+
assistantId: z.ZodString;
|
|
341
|
+
conversationId: z.ZodString;
|
|
342
|
+
threadId: z.ZodNullable<z.ZodString>;
|
|
343
|
+
}, "strict", z.ZodTypeAny, {
|
|
344
|
+
type: "open_conversation";
|
|
345
|
+
assistantId: string;
|
|
346
|
+
conversationId: string;
|
|
347
|
+
threadId: string | null;
|
|
328
348
|
}, {
|
|
329
|
-
type
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
threadId?: string;
|
|
334
|
-
assistantId?: string;
|
|
349
|
+
type: "open_conversation";
|
|
350
|
+
assistantId: string;
|
|
351
|
+
conversationId: string;
|
|
352
|
+
threadId: string | null;
|
|
335
353
|
}>;
|
|
336
|
-
export
|
|
354
|
+
export type OpenConversationAction = Required<z.output<typeof openConversationActionSchema>>;
|
|
355
|
+
declare const taskNotificationSchema: z.ZodObject<{
|
|
337
356
|
id: z.ZodString;
|
|
338
357
|
kind: z.ZodLiteral<"agent.completed">;
|
|
339
358
|
source: z.ZodObject<{
|
|
@@ -343,17 +362,17 @@ export declare const userNotificationSchema: z.ZodObject<{
|
|
|
343
362
|
assistantId: z.ZodString;
|
|
344
363
|
conversationId: z.ZodString;
|
|
345
364
|
}, "strict", z.ZodTypeAny, {
|
|
346
|
-
type
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
365
|
+
type: "scheduled_task";
|
|
366
|
+
assistantId: string;
|
|
367
|
+
taskId: string;
|
|
368
|
+
executionId: string;
|
|
369
|
+
conversationId: string;
|
|
351
370
|
}, {
|
|
352
|
-
type
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
371
|
+
type: "scheduled_task";
|
|
372
|
+
assistantId: string;
|
|
373
|
+
taskId: string;
|
|
374
|
+
executionId: string;
|
|
375
|
+
conversationId: string;
|
|
357
376
|
}>;
|
|
358
377
|
createdAt: z.ZodString;
|
|
359
378
|
readAt: z.ZodNullable<z.ZodString>;
|
|
@@ -363,57 +382,453 @@ export declare const userNotificationSchema: z.ZodObject<{
|
|
|
363
382
|
conversationId: z.ZodString;
|
|
364
383
|
threadId: z.ZodNullable<z.ZodString>;
|
|
365
384
|
}, "strict", z.ZodTypeAny, {
|
|
366
|
-
type
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
385
|
+
type: "open_conversation";
|
|
386
|
+
assistantId: string;
|
|
387
|
+
conversationId: string;
|
|
388
|
+
threadId: string | null;
|
|
370
389
|
}, {
|
|
371
|
-
type
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
390
|
+
type: "open_conversation";
|
|
391
|
+
assistantId: string;
|
|
392
|
+
conversationId: string;
|
|
393
|
+
threadId: string | null;
|
|
375
394
|
}>;
|
|
376
395
|
}, "strict", z.ZodTypeAny, {
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
conversationId
|
|
382
|
-
|
|
383
|
-
taskId?: string;
|
|
384
|
-
assistantId?: string;
|
|
396
|
+
kind: "agent.completed";
|
|
397
|
+
action: {
|
|
398
|
+
type: "open_conversation";
|
|
399
|
+
assistantId: string;
|
|
400
|
+
conversationId: string;
|
|
401
|
+
threadId: string | null;
|
|
385
402
|
};
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
403
|
+
id: string;
|
|
404
|
+
createdAt: string;
|
|
405
|
+
source: {
|
|
406
|
+
type: "scheduled_task";
|
|
407
|
+
assistantId: string;
|
|
408
|
+
taskId: string;
|
|
409
|
+
executionId: string;
|
|
410
|
+
conversationId: string;
|
|
392
411
|
};
|
|
393
|
-
readAt
|
|
412
|
+
readAt: string | null;
|
|
394
413
|
}, {
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
conversationId
|
|
400
|
-
|
|
401
|
-
taskId?: string;
|
|
402
|
-
assistantId?: string;
|
|
414
|
+
kind: "agent.completed";
|
|
415
|
+
action: {
|
|
416
|
+
type: "open_conversation";
|
|
417
|
+
assistantId: string;
|
|
418
|
+
conversationId: string;
|
|
419
|
+
threadId: string | null;
|
|
403
420
|
};
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
421
|
+
id: string;
|
|
422
|
+
createdAt: string;
|
|
423
|
+
source: {
|
|
424
|
+
type: "scheduled_task";
|
|
425
|
+
assistantId: string;
|
|
426
|
+
taskId: string;
|
|
427
|
+
executionId: string;
|
|
428
|
+
conversationId: string;
|
|
410
429
|
};
|
|
411
|
-
readAt
|
|
430
|
+
readAt: string | null;
|
|
412
431
|
}>;
|
|
413
|
-
|
|
432
|
+
type TaskNotification = Omit<Required<z.output<typeof taskNotificationSchema>>, 'source' | 'action'> & {
|
|
414
433
|
source: Required<z.output<typeof notificationSourceSchema>>;
|
|
415
434
|
action: Required<NonNullable<z.output<typeof userNotificationSchema>['action']>>;
|
|
416
435
|
};
|
|
436
|
+
export declare const agentOutputOriginSchema: z.ZodObject<{
|
|
437
|
+
type: z.ZodLiteral<"agent_output">;
|
|
438
|
+
deliveryId: z.ZodString;
|
|
439
|
+
}, "strict", z.ZodTypeAny, {
|
|
440
|
+
type: "agent_output";
|
|
441
|
+
deliveryId: string;
|
|
442
|
+
}, {
|
|
443
|
+
type: "agent_output";
|
|
444
|
+
deliveryId: string;
|
|
445
|
+
}>;
|
|
446
|
+
export declare const userNotificationSchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
447
|
+
id: z.ZodString;
|
|
448
|
+
kind: z.ZodLiteral<"agent.completed">;
|
|
449
|
+
source: z.ZodObject<{
|
|
450
|
+
type: z.ZodLiteral<"scheduled_task">;
|
|
451
|
+
taskId: z.ZodString;
|
|
452
|
+
executionId: z.ZodString;
|
|
453
|
+
assistantId: z.ZodString;
|
|
454
|
+
conversationId: z.ZodString;
|
|
455
|
+
}, "strict", z.ZodTypeAny, {
|
|
456
|
+
type: "scheduled_task";
|
|
457
|
+
assistantId: string;
|
|
458
|
+
taskId: string;
|
|
459
|
+
executionId: string;
|
|
460
|
+
conversationId: string;
|
|
461
|
+
}, {
|
|
462
|
+
type: "scheduled_task";
|
|
463
|
+
assistantId: string;
|
|
464
|
+
taskId: string;
|
|
465
|
+
executionId: string;
|
|
466
|
+
conversationId: string;
|
|
467
|
+
}>;
|
|
468
|
+
createdAt: z.ZodString;
|
|
469
|
+
readAt: z.ZodNullable<z.ZodString>;
|
|
470
|
+
action: z.ZodObject<{
|
|
471
|
+
type: z.ZodLiteral<"open_conversation">;
|
|
472
|
+
assistantId: z.ZodString;
|
|
473
|
+
conversationId: z.ZodString;
|
|
474
|
+
threadId: z.ZodNullable<z.ZodString>;
|
|
475
|
+
}, "strict", z.ZodTypeAny, {
|
|
476
|
+
type: "open_conversation";
|
|
477
|
+
assistantId: string;
|
|
478
|
+
conversationId: string;
|
|
479
|
+
threadId: string | null;
|
|
480
|
+
}, {
|
|
481
|
+
type: "open_conversation";
|
|
482
|
+
assistantId: string;
|
|
483
|
+
conversationId: string;
|
|
484
|
+
threadId: string | null;
|
|
485
|
+
}>;
|
|
486
|
+
}, "strict", z.ZodTypeAny, {
|
|
487
|
+
kind: "agent.completed";
|
|
488
|
+
action: {
|
|
489
|
+
type: "open_conversation";
|
|
490
|
+
assistantId: string;
|
|
491
|
+
conversationId: string;
|
|
492
|
+
threadId: string | null;
|
|
493
|
+
};
|
|
494
|
+
id: string;
|
|
495
|
+
createdAt: string;
|
|
496
|
+
source: {
|
|
497
|
+
type: "scheduled_task";
|
|
498
|
+
assistantId: string;
|
|
499
|
+
taskId: string;
|
|
500
|
+
executionId: string;
|
|
501
|
+
conversationId: string;
|
|
502
|
+
};
|
|
503
|
+
readAt: string | null;
|
|
504
|
+
}, {
|
|
505
|
+
kind: "agent.completed";
|
|
506
|
+
action: {
|
|
507
|
+
type: "open_conversation";
|
|
508
|
+
assistantId: string;
|
|
509
|
+
conversationId: string;
|
|
510
|
+
threadId: string | null;
|
|
511
|
+
};
|
|
512
|
+
id: string;
|
|
513
|
+
createdAt: string;
|
|
514
|
+
source: {
|
|
515
|
+
type: "scheduled_task";
|
|
516
|
+
assistantId: string;
|
|
517
|
+
taskId: string;
|
|
518
|
+
executionId: string;
|
|
519
|
+
conversationId: string;
|
|
520
|
+
};
|
|
521
|
+
readAt: string | null;
|
|
522
|
+
}>, z.ZodObject<{
|
|
523
|
+
id: z.ZodString;
|
|
524
|
+
createdAt: z.ZodString;
|
|
525
|
+
readAt: z.ZodNullable<z.ZodString>;
|
|
526
|
+
} & {
|
|
527
|
+
kind: z.ZodLiteral<"agent.output">;
|
|
528
|
+
source: z.ZodObject<{
|
|
529
|
+
type: z.ZodLiteral<"agent_output">;
|
|
530
|
+
deliveryId: z.ZodString;
|
|
531
|
+
}, "strict", z.ZodTypeAny, {
|
|
532
|
+
type: "agent_output";
|
|
533
|
+
deliveryId: string;
|
|
534
|
+
}, {
|
|
535
|
+
type: "agent_output";
|
|
536
|
+
deliveryId: string;
|
|
537
|
+
}>;
|
|
538
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
539
|
+
id: z.ZodString;
|
|
540
|
+
title: z.ZodString;
|
|
541
|
+
action: z.ZodNullable<z.ZodObject<{
|
|
542
|
+
type: z.ZodLiteral<"open_conversation">;
|
|
543
|
+
assistantId: z.ZodString;
|
|
544
|
+
conversationId: z.ZodString;
|
|
545
|
+
threadId: z.ZodNullable<z.ZodString>;
|
|
546
|
+
}, "strict", z.ZodTypeAny, {
|
|
547
|
+
type: "open_conversation";
|
|
548
|
+
assistantId: string;
|
|
549
|
+
conversationId: string;
|
|
550
|
+
threadId: string | null;
|
|
551
|
+
}, {
|
|
552
|
+
type: "open_conversation";
|
|
553
|
+
assistantId: string;
|
|
554
|
+
conversationId: string;
|
|
555
|
+
threadId: string | null;
|
|
556
|
+
}>>;
|
|
557
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
558
|
+
label: z.ZodObject<{
|
|
559
|
+
en_US: z.ZodString;
|
|
560
|
+
zh_Hans: z.ZodString;
|
|
561
|
+
}, "strict", z.ZodTypeAny, {
|
|
562
|
+
en_US: string;
|
|
563
|
+
zh_Hans: string;
|
|
564
|
+
}, {
|
|
565
|
+
en_US: string;
|
|
566
|
+
zh_Hans: string;
|
|
567
|
+
}>;
|
|
568
|
+
value: z.ZodString;
|
|
569
|
+
}, "strict", z.ZodTypeAny, {
|
|
570
|
+
value: string;
|
|
571
|
+
label: {
|
|
572
|
+
en_US: string;
|
|
573
|
+
zh_Hans: string;
|
|
574
|
+
};
|
|
575
|
+
}, {
|
|
576
|
+
value: string;
|
|
577
|
+
label: {
|
|
578
|
+
en_US: string;
|
|
579
|
+
zh_Hans: string;
|
|
580
|
+
};
|
|
581
|
+
}>, "many">>;
|
|
582
|
+
workbench: z.ZodOptional<z.ZodObject<{
|
|
583
|
+
state: z.ZodEnum<["pending", "handled"]>;
|
|
584
|
+
title: z.ZodObject<{
|
|
585
|
+
en_US: z.ZodString;
|
|
586
|
+
zh_Hans: z.ZodString;
|
|
587
|
+
}, "strict", z.ZodTypeAny, {
|
|
588
|
+
en_US: string;
|
|
589
|
+
zh_Hans: string;
|
|
590
|
+
}, {
|
|
591
|
+
en_US: string;
|
|
592
|
+
zh_Hans: string;
|
|
593
|
+
}>;
|
|
594
|
+
openLabel: z.ZodObject<{
|
|
595
|
+
en_US: z.ZodString;
|
|
596
|
+
zh_Hans: z.ZodString;
|
|
597
|
+
}, "strict", z.ZodTypeAny, {
|
|
598
|
+
en_US: string;
|
|
599
|
+
zh_Hans: string;
|
|
600
|
+
}, {
|
|
601
|
+
en_US: string;
|
|
602
|
+
zh_Hans: string;
|
|
603
|
+
}>;
|
|
604
|
+
viewKey: z.ZodString;
|
|
605
|
+
selectionId: z.ZodString;
|
|
606
|
+
} & {
|
|
607
|
+
assistantId: z.ZodString;
|
|
608
|
+
organizationId: z.ZodString;
|
|
609
|
+
projectId: z.ZodNullable<z.ZodString>;
|
|
610
|
+
}, "strict", z.ZodTypeAny, {
|
|
611
|
+
state: "handled" | "pending";
|
|
612
|
+
title: {
|
|
613
|
+
en_US: string;
|
|
614
|
+
zh_Hans: string;
|
|
615
|
+
};
|
|
616
|
+
openLabel: {
|
|
617
|
+
en_US: string;
|
|
618
|
+
zh_Hans: string;
|
|
619
|
+
};
|
|
620
|
+
viewKey: string;
|
|
621
|
+
selectionId: string;
|
|
622
|
+
assistantId: string;
|
|
623
|
+
organizationId: string;
|
|
624
|
+
projectId: string | null;
|
|
625
|
+
}, {
|
|
626
|
+
state: "handled" | "pending";
|
|
627
|
+
title: {
|
|
628
|
+
en_US: string;
|
|
629
|
+
zh_Hans: string;
|
|
630
|
+
};
|
|
631
|
+
openLabel: {
|
|
632
|
+
en_US: string;
|
|
633
|
+
zh_Hans: string;
|
|
634
|
+
};
|
|
635
|
+
viewKey: string;
|
|
636
|
+
selectionId: string;
|
|
637
|
+
assistantId: string;
|
|
638
|
+
organizationId: string;
|
|
639
|
+
projectId: string | null;
|
|
640
|
+
}>>;
|
|
641
|
+
}, "strict", z.ZodTypeAny, {
|
|
642
|
+
title: string;
|
|
643
|
+
action: {
|
|
644
|
+
type: "open_conversation";
|
|
645
|
+
assistantId: string;
|
|
646
|
+
conversationId: string;
|
|
647
|
+
threadId: string | null;
|
|
648
|
+
} | null;
|
|
649
|
+
id: string;
|
|
650
|
+
fields?: {
|
|
651
|
+
value: string;
|
|
652
|
+
label: {
|
|
653
|
+
en_US: string;
|
|
654
|
+
zh_Hans: string;
|
|
655
|
+
};
|
|
656
|
+
}[] | undefined;
|
|
657
|
+
workbench?: {
|
|
658
|
+
state: "handled" | "pending";
|
|
659
|
+
title: {
|
|
660
|
+
en_US: string;
|
|
661
|
+
zh_Hans: string;
|
|
662
|
+
};
|
|
663
|
+
openLabel: {
|
|
664
|
+
en_US: string;
|
|
665
|
+
zh_Hans: string;
|
|
666
|
+
};
|
|
667
|
+
viewKey: string;
|
|
668
|
+
selectionId: string;
|
|
669
|
+
assistantId: string;
|
|
670
|
+
organizationId: string;
|
|
671
|
+
projectId: string | null;
|
|
672
|
+
} | undefined;
|
|
673
|
+
}, {
|
|
674
|
+
title: string;
|
|
675
|
+
action: {
|
|
676
|
+
type: "open_conversation";
|
|
677
|
+
assistantId: string;
|
|
678
|
+
conversationId: string;
|
|
679
|
+
threadId: string | null;
|
|
680
|
+
} | null;
|
|
681
|
+
id: string;
|
|
682
|
+
fields?: {
|
|
683
|
+
value: string;
|
|
684
|
+
label: {
|
|
685
|
+
en_US: string;
|
|
686
|
+
zh_Hans: string;
|
|
687
|
+
};
|
|
688
|
+
}[] | undefined;
|
|
689
|
+
workbench?: {
|
|
690
|
+
state: "handled" | "pending";
|
|
691
|
+
title: {
|
|
692
|
+
en_US: string;
|
|
693
|
+
zh_Hans: string;
|
|
694
|
+
};
|
|
695
|
+
openLabel: {
|
|
696
|
+
en_US: string;
|
|
697
|
+
zh_Hans: string;
|
|
698
|
+
};
|
|
699
|
+
viewKey: string;
|
|
700
|
+
selectionId: string;
|
|
701
|
+
assistantId: string;
|
|
702
|
+
organizationId: string;
|
|
703
|
+
projectId: string | null;
|
|
704
|
+
} | undefined;
|
|
705
|
+
}>, "many">>;
|
|
706
|
+
titles: z.ZodArray<z.ZodString, "many">;
|
|
707
|
+
action: z.ZodNullable<z.ZodObject<{
|
|
708
|
+
type: z.ZodLiteral<"open_conversation">;
|
|
709
|
+
assistantId: z.ZodString;
|
|
710
|
+
conversationId: z.ZodString;
|
|
711
|
+
threadId: z.ZodNullable<z.ZodString>;
|
|
712
|
+
}, "strict", z.ZodTypeAny, {
|
|
713
|
+
type: "open_conversation";
|
|
714
|
+
assistantId: string;
|
|
715
|
+
conversationId: string;
|
|
716
|
+
threadId: string | null;
|
|
717
|
+
}, {
|
|
718
|
+
type: "open_conversation";
|
|
719
|
+
assistantId: string;
|
|
720
|
+
conversationId: string;
|
|
721
|
+
threadId: string | null;
|
|
722
|
+
}>>;
|
|
723
|
+
}, "strict", z.ZodTypeAny, {
|
|
724
|
+
kind: "agent.output";
|
|
725
|
+
action: {
|
|
726
|
+
type: "open_conversation";
|
|
727
|
+
assistantId: string;
|
|
728
|
+
conversationId: string;
|
|
729
|
+
threadId: string | null;
|
|
730
|
+
} | null;
|
|
731
|
+
id: string;
|
|
732
|
+
createdAt: string;
|
|
733
|
+
source: {
|
|
734
|
+
type: "agent_output";
|
|
735
|
+
deliveryId: string;
|
|
736
|
+
};
|
|
737
|
+
readAt: string | null;
|
|
738
|
+
titles: string[];
|
|
739
|
+
items?: {
|
|
740
|
+
title: string;
|
|
741
|
+
action: {
|
|
742
|
+
type: "open_conversation";
|
|
743
|
+
assistantId: string;
|
|
744
|
+
conversationId: string;
|
|
745
|
+
threadId: string | null;
|
|
746
|
+
} | null;
|
|
747
|
+
id: string;
|
|
748
|
+
fields?: {
|
|
749
|
+
value: string;
|
|
750
|
+
label: {
|
|
751
|
+
en_US: string;
|
|
752
|
+
zh_Hans: string;
|
|
753
|
+
};
|
|
754
|
+
}[] | undefined;
|
|
755
|
+
workbench?: {
|
|
756
|
+
state: "handled" | "pending";
|
|
757
|
+
title: {
|
|
758
|
+
en_US: string;
|
|
759
|
+
zh_Hans: string;
|
|
760
|
+
};
|
|
761
|
+
openLabel: {
|
|
762
|
+
en_US: string;
|
|
763
|
+
zh_Hans: string;
|
|
764
|
+
};
|
|
765
|
+
viewKey: string;
|
|
766
|
+
selectionId: string;
|
|
767
|
+
assistantId: string;
|
|
768
|
+
organizationId: string;
|
|
769
|
+
projectId: string | null;
|
|
770
|
+
} | undefined;
|
|
771
|
+
}[] | undefined;
|
|
772
|
+
}, {
|
|
773
|
+
kind: "agent.output";
|
|
774
|
+
action: {
|
|
775
|
+
type: "open_conversation";
|
|
776
|
+
assistantId: string;
|
|
777
|
+
conversationId: string;
|
|
778
|
+
threadId: string | null;
|
|
779
|
+
} | null;
|
|
780
|
+
id: string;
|
|
781
|
+
createdAt: string;
|
|
782
|
+
source: {
|
|
783
|
+
type: "agent_output";
|
|
784
|
+
deliveryId: string;
|
|
785
|
+
};
|
|
786
|
+
readAt: string | null;
|
|
787
|
+
titles: string[];
|
|
788
|
+
items?: {
|
|
789
|
+
title: string;
|
|
790
|
+
action: {
|
|
791
|
+
type: "open_conversation";
|
|
792
|
+
assistantId: string;
|
|
793
|
+
conversationId: string;
|
|
794
|
+
threadId: string | null;
|
|
795
|
+
} | null;
|
|
796
|
+
id: string;
|
|
797
|
+
fields?: {
|
|
798
|
+
value: string;
|
|
799
|
+
label: {
|
|
800
|
+
en_US: string;
|
|
801
|
+
zh_Hans: string;
|
|
802
|
+
};
|
|
803
|
+
}[] | undefined;
|
|
804
|
+
workbench?: {
|
|
805
|
+
state: "handled" | "pending";
|
|
806
|
+
title: {
|
|
807
|
+
en_US: string;
|
|
808
|
+
zh_Hans: string;
|
|
809
|
+
};
|
|
810
|
+
openLabel: {
|
|
811
|
+
en_US: string;
|
|
812
|
+
zh_Hans: string;
|
|
813
|
+
};
|
|
814
|
+
viewKey: string;
|
|
815
|
+
selectionId: string;
|
|
816
|
+
assistantId: string;
|
|
817
|
+
organizationId: string;
|
|
818
|
+
projectId: string | null;
|
|
819
|
+
} | undefined;
|
|
820
|
+
}[] | undefined;
|
|
821
|
+
}>]>;
|
|
822
|
+
export type UserNotification = TaskNotification | {
|
|
823
|
+
id: string;
|
|
824
|
+
kind: 'agent.output';
|
|
825
|
+
createdAt: string;
|
|
826
|
+
readAt: string | null;
|
|
827
|
+
source: Required<z.output<typeof agentOutputOriginSchema>>;
|
|
828
|
+
items?: AgentOutputItem[];
|
|
829
|
+
titles: string[];
|
|
830
|
+
action: OpenConversationAction | null;
|
|
831
|
+
};
|
|
417
832
|
export declare const notificationSnapshotSchema: z.ZodObject<{
|
|
418
833
|
supported: z.ZodLiteral<true>;
|
|
419
834
|
version: z.ZodString;
|
|
@@ -422,7 +837,7 @@ export declare const notificationSnapshotSchema: z.ZodObject<{
|
|
|
422
837
|
body: z.ZodString;
|
|
423
838
|
category: z.ZodDefault<z.ZodEnum<["general", "maintenance", "model_retirement"]>>;
|
|
424
839
|
severity: z.ZodDefault<z.ZodEnum<["info", "important"]>>;
|
|
425
|
-
clients: z.ZodEffects<z.ZodArray<z.ZodEnum<["web", "desktop"]>, "many">, ("
|
|
840
|
+
clients: z.ZodEffects<z.ZodArray<z.ZodEnum<["web", "desktop"]>, "many">, ("web" | "desktop")[], ("web" | "desktop")[]>;
|
|
426
841
|
startsAt: z.ZodString;
|
|
427
842
|
expiresAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
428
843
|
action: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
@@ -430,13 +845,13 @@ export declare const notificationSnapshotSchema: z.ZodObject<{
|
|
|
430
845
|
label: z.ZodString;
|
|
431
846
|
url: z.ZodEffects<z.ZodString, string, string>;
|
|
432
847
|
}, "strict", z.ZodTypeAny, {
|
|
433
|
-
type
|
|
434
|
-
label
|
|
435
|
-
url
|
|
848
|
+
type: "link";
|
|
849
|
+
label: string;
|
|
850
|
+
url: string;
|
|
436
851
|
}, {
|
|
437
|
-
type
|
|
438
|
-
label
|
|
439
|
-
url
|
|
852
|
+
type: "link";
|
|
853
|
+
label: string;
|
|
854
|
+
url: string;
|
|
440
855
|
}>>>;
|
|
441
856
|
} & {
|
|
442
857
|
id: z.ZodString;
|
|
@@ -445,43 +860,43 @@ export declare const notificationSnapshotSchema: z.ZodObject<{
|
|
|
445
860
|
createdAt: z.ZodString;
|
|
446
861
|
dismissedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
447
862
|
}, "strict", z.ZodTypeAny, {
|
|
448
|
-
status
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
dismissedAt
|
|
863
|
+
status: "draft" | "published" | "withdrawn";
|
|
864
|
+
revision: number;
|
|
865
|
+
title: string;
|
|
866
|
+
body: string;
|
|
867
|
+
category: "general" | "maintenance" | "model_retirement";
|
|
868
|
+
severity: "info" | "important";
|
|
869
|
+
clients: ("web" | "desktop")[];
|
|
870
|
+
startsAt: string;
|
|
871
|
+
expiresAt: string | null;
|
|
872
|
+
action: {
|
|
873
|
+
type: "link";
|
|
874
|
+
label: string;
|
|
875
|
+
url: string;
|
|
876
|
+
} | null;
|
|
877
|
+
id: string;
|
|
878
|
+
createdAt: string;
|
|
879
|
+
dismissedAt: string | null;
|
|
465
880
|
}, {
|
|
466
|
-
status
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
881
|
+
status: "draft" | "published" | "withdrawn";
|
|
882
|
+
revision: number;
|
|
883
|
+
title: string;
|
|
884
|
+
body: string;
|
|
885
|
+
clients: ("web" | "desktop")[];
|
|
886
|
+
startsAt: string;
|
|
887
|
+
id: string;
|
|
888
|
+
createdAt: string;
|
|
889
|
+
category?: "general" | "maintenance" | "model_retirement" | undefined;
|
|
890
|
+
severity?: "info" | "important" | undefined;
|
|
891
|
+
expiresAt?: string | null | undefined;
|
|
473
892
|
action?: {
|
|
474
|
-
type
|
|
475
|
-
label
|
|
476
|
-
url
|
|
477
|
-
};
|
|
478
|
-
|
|
479
|
-
severity?: "info" | "important";
|
|
480
|
-
clients?: ("desktop" | "web")[];
|
|
481
|
-
startsAt?: string;
|
|
482
|
-
dismissedAt?: string;
|
|
893
|
+
type: "link";
|
|
894
|
+
label: string;
|
|
895
|
+
url: string;
|
|
896
|
+
} | null | undefined;
|
|
897
|
+
dismissedAt?: string | null | undefined;
|
|
483
898
|
}>, "many">;
|
|
484
|
-
notifications: z.ZodArray<z.ZodObject<{
|
|
899
|
+
notifications: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
485
900
|
id: z.ZodString;
|
|
486
901
|
kind: z.ZodLiteral<"agent.completed">;
|
|
487
902
|
source: z.ZodObject<{
|
|
@@ -491,17 +906,17 @@ export declare const notificationSnapshotSchema: z.ZodObject<{
|
|
|
491
906
|
assistantId: z.ZodString;
|
|
492
907
|
conversationId: z.ZodString;
|
|
493
908
|
}, "strict", z.ZodTypeAny, {
|
|
494
|
-
type
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
909
|
+
type: "scheduled_task";
|
|
910
|
+
assistantId: string;
|
|
911
|
+
taskId: string;
|
|
912
|
+
executionId: string;
|
|
913
|
+
conversationId: string;
|
|
499
914
|
}, {
|
|
500
|
-
type
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
915
|
+
type: "scheduled_task";
|
|
916
|
+
assistantId: string;
|
|
917
|
+
taskId: string;
|
|
918
|
+
executionId: string;
|
|
919
|
+
conversationId: string;
|
|
505
920
|
}>;
|
|
506
921
|
createdAt: z.ZodString;
|
|
507
922
|
readAt: z.ZodNullable<z.ZodString>;
|
|
@@ -511,141 +926,538 @@ export declare const notificationSnapshotSchema: z.ZodObject<{
|
|
|
511
926
|
conversationId: z.ZodString;
|
|
512
927
|
threadId: z.ZodNullable<z.ZodString>;
|
|
513
928
|
}, "strict", z.ZodTypeAny, {
|
|
514
|
-
type
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
929
|
+
type: "open_conversation";
|
|
930
|
+
assistantId: string;
|
|
931
|
+
conversationId: string;
|
|
932
|
+
threadId: string | null;
|
|
518
933
|
}, {
|
|
519
|
-
type
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
934
|
+
type: "open_conversation";
|
|
935
|
+
assistantId: string;
|
|
936
|
+
conversationId: string;
|
|
937
|
+
threadId: string | null;
|
|
523
938
|
}>;
|
|
524
939
|
}, "strict", z.ZodTypeAny, {
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
conversationId
|
|
530
|
-
|
|
531
|
-
taskId?: string;
|
|
532
|
-
assistantId?: string;
|
|
940
|
+
kind: "agent.completed";
|
|
941
|
+
action: {
|
|
942
|
+
type: "open_conversation";
|
|
943
|
+
assistantId: string;
|
|
944
|
+
conversationId: string;
|
|
945
|
+
threadId: string | null;
|
|
533
946
|
};
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
947
|
+
id: string;
|
|
948
|
+
createdAt: string;
|
|
949
|
+
source: {
|
|
950
|
+
type: "scheduled_task";
|
|
951
|
+
assistantId: string;
|
|
952
|
+
taskId: string;
|
|
953
|
+
executionId: string;
|
|
954
|
+
conversationId: string;
|
|
540
955
|
};
|
|
541
|
-
readAt
|
|
956
|
+
readAt: string | null;
|
|
542
957
|
}, {
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
conversationId
|
|
548
|
-
|
|
549
|
-
taskId?: string;
|
|
550
|
-
assistantId?: string;
|
|
958
|
+
kind: "agent.completed";
|
|
959
|
+
action: {
|
|
960
|
+
type: "open_conversation";
|
|
961
|
+
assistantId: string;
|
|
962
|
+
conversationId: string;
|
|
963
|
+
threadId: string | null;
|
|
551
964
|
};
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
965
|
+
id: string;
|
|
966
|
+
createdAt: string;
|
|
967
|
+
source: {
|
|
968
|
+
type: "scheduled_task";
|
|
969
|
+
assistantId: string;
|
|
970
|
+
taskId: string;
|
|
971
|
+
executionId: string;
|
|
972
|
+
conversationId: string;
|
|
558
973
|
};
|
|
559
|
-
readAt
|
|
560
|
-
}>,
|
|
974
|
+
readAt: string | null;
|
|
975
|
+
}>, z.ZodObject<{
|
|
976
|
+
id: z.ZodString;
|
|
977
|
+
createdAt: z.ZodString;
|
|
978
|
+
readAt: z.ZodNullable<z.ZodString>;
|
|
979
|
+
} & {
|
|
980
|
+
kind: z.ZodLiteral<"agent.output">;
|
|
981
|
+
source: z.ZodObject<{
|
|
982
|
+
type: z.ZodLiteral<"agent_output">;
|
|
983
|
+
deliveryId: z.ZodString;
|
|
984
|
+
}, "strict", z.ZodTypeAny, {
|
|
985
|
+
type: "agent_output";
|
|
986
|
+
deliveryId: string;
|
|
987
|
+
}, {
|
|
988
|
+
type: "agent_output";
|
|
989
|
+
deliveryId: string;
|
|
990
|
+
}>;
|
|
991
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
992
|
+
id: z.ZodString;
|
|
993
|
+
title: z.ZodString;
|
|
994
|
+
action: z.ZodNullable<z.ZodObject<{
|
|
995
|
+
type: z.ZodLiteral<"open_conversation">;
|
|
996
|
+
assistantId: z.ZodString;
|
|
997
|
+
conversationId: z.ZodString;
|
|
998
|
+
threadId: z.ZodNullable<z.ZodString>;
|
|
999
|
+
}, "strict", z.ZodTypeAny, {
|
|
1000
|
+
type: "open_conversation";
|
|
1001
|
+
assistantId: string;
|
|
1002
|
+
conversationId: string;
|
|
1003
|
+
threadId: string | null;
|
|
1004
|
+
}, {
|
|
1005
|
+
type: "open_conversation";
|
|
1006
|
+
assistantId: string;
|
|
1007
|
+
conversationId: string;
|
|
1008
|
+
threadId: string | null;
|
|
1009
|
+
}>>;
|
|
1010
|
+
fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1011
|
+
label: z.ZodObject<{
|
|
1012
|
+
en_US: z.ZodString;
|
|
1013
|
+
zh_Hans: z.ZodString;
|
|
1014
|
+
}, "strict", z.ZodTypeAny, {
|
|
1015
|
+
en_US: string;
|
|
1016
|
+
zh_Hans: string;
|
|
1017
|
+
}, {
|
|
1018
|
+
en_US: string;
|
|
1019
|
+
zh_Hans: string;
|
|
1020
|
+
}>;
|
|
1021
|
+
value: z.ZodString;
|
|
1022
|
+
}, "strict", z.ZodTypeAny, {
|
|
1023
|
+
value: string;
|
|
1024
|
+
label: {
|
|
1025
|
+
en_US: string;
|
|
1026
|
+
zh_Hans: string;
|
|
1027
|
+
};
|
|
1028
|
+
}, {
|
|
1029
|
+
value: string;
|
|
1030
|
+
label: {
|
|
1031
|
+
en_US: string;
|
|
1032
|
+
zh_Hans: string;
|
|
1033
|
+
};
|
|
1034
|
+
}>, "many">>;
|
|
1035
|
+
workbench: z.ZodOptional<z.ZodObject<{
|
|
1036
|
+
state: z.ZodEnum<["pending", "handled"]>;
|
|
1037
|
+
title: z.ZodObject<{
|
|
1038
|
+
en_US: z.ZodString;
|
|
1039
|
+
zh_Hans: z.ZodString;
|
|
1040
|
+
}, "strict", z.ZodTypeAny, {
|
|
1041
|
+
en_US: string;
|
|
1042
|
+
zh_Hans: string;
|
|
1043
|
+
}, {
|
|
1044
|
+
en_US: string;
|
|
1045
|
+
zh_Hans: string;
|
|
1046
|
+
}>;
|
|
1047
|
+
openLabel: z.ZodObject<{
|
|
1048
|
+
en_US: z.ZodString;
|
|
1049
|
+
zh_Hans: z.ZodString;
|
|
1050
|
+
}, "strict", z.ZodTypeAny, {
|
|
1051
|
+
en_US: string;
|
|
1052
|
+
zh_Hans: string;
|
|
1053
|
+
}, {
|
|
1054
|
+
en_US: string;
|
|
1055
|
+
zh_Hans: string;
|
|
1056
|
+
}>;
|
|
1057
|
+
viewKey: z.ZodString;
|
|
1058
|
+
selectionId: z.ZodString;
|
|
1059
|
+
} & {
|
|
1060
|
+
assistantId: z.ZodString;
|
|
1061
|
+
organizationId: z.ZodString;
|
|
1062
|
+
projectId: z.ZodNullable<z.ZodString>;
|
|
1063
|
+
}, "strict", z.ZodTypeAny, {
|
|
1064
|
+
state: "handled" | "pending";
|
|
1065
|
+
title: {
|
|
1066
|
+
en_US: string;
|
|
1067
|
+
zh_Hans: string;
|
|
1068
|
+
};
|
|
1069
|
+
openLabel: {
|
|
1070
|
+
en_US: string;
|
|
1071
|
+
zh_Hans: string;
|
|
1072
|
+
};
|
|
1073
|
+
viewKey: string;
|
|
1074
|
+
selectionId: string;
|
|
1075
|
+
assistantId: string;
|
|
1076
|
+
organizationId: string;
|
|
1077
|
+
projectId: string | null;
|
|
1078
|
+
}, {
|
|
1079
|
+
state: "handled" | "pending";
|
|
1080
|
+
title: {
|
|
1081
|
+
en_US: string;
|
|
1082
|
+
zh_Hans: string;
|
|
1083
|
+
};
|
|
1084
|
+
openLabel: {
|
|
1085
|
+
en_US: string;
|
|
1086
|
+
zh_Hans: string;
|
|
1087
|
+
};
|
|
1088
|
+
viewKey: string;
|
|
1089
|
+
selectionId: string;
|
|
1090
|
+
assistantId: string;
|
|
1091
|
+
organizationId: string;
|
|
1092
|
+
projectId: string | null;
|
|
1093
|
+
}>>;
|
|
1094
|
+
}, "strict", z.ZodTypeAny, {
|
|
1095
|
+
title: string;
|
|
1096
|
+
action: {
|
|
1097
|
+
type: "open_conversation";
|
|
1098
|
+
assistantId: string;
|
|
1099
|
+
conversationId: string;
|
|
1100
|
+
threadId: string | null;
|
|
1101
|
+
} | null;
|
|
1102
|
+
id: string;
|
|
1103
|
+
fields?: {
|
|
1104
|
+
value: string;
|
|
1105
|
+
label: {
|
|
1106
|
+
en_US: string;
|
|
1107
|
+
zh_Hans: string;
|
|
1108
|
+
};
|
|
1109
|
+
}[] | undefined;
|
|
1110
|
+
workbench?: {
|
|
1111
|
+
state: "handled" | "pending";
|
|
1112
|
+
title: {
|
|
1113
|
+
en_US: string;
|
|
1114
|
+
zh_Hans: string;
|
|
1115
|
+
};
|
|
1116
|
+
openLabel: {
|
|
1117
|
+
en_US: string;
|
|
1118
|
+
zh_Hans: string;
|
|
1119
|
+
};
|
|
1120
|
+
viewKey: string;
|
|
1121
|
+
selectionId: string;
|
|
1122
|
+
assistantId: string;
|
|
1123
|
+
organizationId: string;
|
|
1124
|
+
projectId: string | null;
|
|
1125
|
+
} | undefined;
|
|
1126
|
+
}, {
|
|
1127
|
+
title: string;
|
|
1128
|
+
action: {
|
|
1129
|
+
type: "open_conversation";
|
|
1130
|
+
assistantId: string;
|
|
1131
|
+
conversationId: string;
|
|
1132
|
+
threadId: string | null;
|
|
1133
|
+
} | null;
|
|
1134
|
+
id: string;
|
|
1135
|
+
fields?: {
|
|
1136
|
+
value: string;
|
|
1137
|
+
label: {
|
|
1138
|
+
en_US: string;
|
|
1139
|
+
zh_Hans: string;
|
|
1140
|
+
};
|
|
1141
|
+
}[] | undefined;
|
|
1142
|
+
workbench?: {
|
|
1143
|
+
state: "handled" | "pending";
|
|
1144
|
+
title: {
|
|
1145
|
+
en_US: string;
|
|
1146
|
+
zh_Hans: string;
|
|
1147
|
+
};
|
|
1148
|
+
openLabel: {
|
|
1149
|
+
en_US: string;
|
|
1150
|
+
zh_Hans: string;
|
|
1151
|
+
};
|
|
1152
|
+
viewKey: string;
|
|
1153
|
+
selectionId: string;
|
|
1154
|
+
assistantId: string;
|
|
1155
|
+
organizationId: string;
|
|
1156
|
+
projectId: string | null;
|
|
1157
|
+
} | undefined;
|
|
1158
|
+
}>, "many">>;
|
|
1159
|
+
titles: z.ZodArray<z.ZodString, "many">;
|
|
1160
|
+
action: z.ZodNullable<z.ZodObject<{
|
|
1161
|
+
type: z.ZodLiteral<"open_conversation">;
|
|
1162
|
+
assistantId: z.ZodString;
|
|
1163
|
+
conversationId: z.ZodString;
|
|
1164
|
+
threadId: z.ZodNullable<z.ZodString>;
|
|
1165
|
+
}, "strict", z.ZodTypeAny, {
|
|
1166
|
+
type: "open_conversation";
|
|
1167
|
+
assistantId: string;
|
|
1168
|
+
conversationId: string;
|
|
1169
|
+
threadId: string | null;
|
|
1170
|
+
}, {
|
|
1171
|
+
type: "open_conversation";
|
|
1172
|
+
assistantId: string;
|
|
1173
|
+
conversationId: string;
|
|
1174
|
+
threadId: string | null;
|
|
1175
|
+
}>>;
|
|
1176
|
+
}, "strict", z.ZodTypeAny, {
|
|
1177
|
+
kind: "agent.output";
|
|
1178
|
+
action: {
|
|
1179
|
+
type: "open_conversation";
|
|
1180
|
+
assistantId: string;
|
|
1181
|
+
conversationId: string;
|
|
1182
|
+
threadId: string | null;
|
|
1183
|
+
} | null;
|
|
1184
|
+
id: string;
|
|
1185
|
+
createdAt: string;
|
|
1186
|
+
source: {
|
|
1187
|
+
type: "agent_output";
|
|
1188
|
+
deliveryId: string;
|
|
1189
|
+
};
|
|
1190
|
+
readAt: string | null;
|
|
1191
|
+
titles: string[];
|
|
1192
|
+
items?: {
|
|
1193
|
+
title: string;
|
|
1194
|
+
action: {
|
|
1195
|
+
type: "open_conversation";
|
|
1196
|
+
assistantId: string;
|
|
1197
|
+
conversationId: string;
|
|
1198
|
+
threadId: string | null;
|
|
1199
|
+
} | null;
|
|
1200
|
+
id: string;
|
|
1201
|
+
fields?: {
|
|
1202
|
+
value: string;
|
|
1203
|
+
label: {
|
|
1204
|
+
en_US: string;
|
|
1205
|
+
zh_Hans: string;
|
|
1206
|
+
};
|
|
1207
|
+
}[] | undefined;
|
|
1208
|
+
workbench?: {
|
|
1209
|
+
state: "handled" | "pending";
|
|
1210
|
+
title: {
|
|
1211
|
+
en_US: string;
|
|
1212
|
+
zh_Hans: string;
|
|
1213
|
+
};
|
|
1214
|
+
openLabel: {
|
|
1215
|
+
en_US: string;
|
|
1216
|
+
zh_Hans: string;
|
|
1217
|
+
};
|
|
1218
|
+
viewKey: string;
|
|
1219
|
+
selectionId: string;
|
|
1220
|
+
assistantId: string;
|
|
1221
|
+
organizationId: string;
|
|
1222
|
+
projectId: string | null;
|
|
1223
|
+
} | undefined;
|
|
1224
|
+
}[] | undefined;
|
|
1225
|
+
}, {
|
|
1226
|
+
kind: "agent.output";
|
|
1227
|
+
action: {
|
|
1228
|
+
type: "open_conversation";
|
|
1229
|
+
assistantId: string;
|
|
1230
|
+
conversationId: string;
|
|
1231
|
+
threadId: string | null;
|
|
1232
|
+
} | null;
|
|
1233
|
+
id: string;
|
|
1234
|
+
createdAt: string;
|
|
1235
|
+
source: {
|
|
1236
|
+
type: "agent_output";
|
|
1237
|
+
deliveryId: string;
|
|
1238
|
+
};
|
|
1239
|
+
readAt: string | null;
|
|
1240
|
+
titles: string[];
|
|
1241
|
+
items?: {
|
|
1242
|
+
title: string;
|
|
1243
|
+
action: {
|
|
1244
|
+
type: "open_conversation";
|
|
1245
|
+
assistantId: string;
|
|
1246
|
+
conversationId: string;
|
|
1247
|
+
threadId: string | null;
|
|
1248
|
+
} | null;
|
|
1249
|
+
id: string;
|
|
1250
|
+
fields?: {
|
|
1251
|
+
value: string;
|
|
1252
|
+
label: {
|
|
1253
|
+
en_US: string;
|
|
1254
|
+
zh_Hans: string;
|
|
1255
|
+
};
|
|
1256
|
+
}[] | undefined;
|
|
1257
|
+
workbench?: {
|
|
1258
|
+
state: "handled" | "pending";
|
|
1259
|
+
title: {
|
|
1260
|
+
en_US: string;
|
|
1261
|
+
zh_Hans: string;
|
|
1262
|
+
};
|
|
1263
|
+
openLabel: {
|
|
1264
|
+
en_US: string;
|
|
1265
|
+
zh_Hans: string;
|
|
1266
|
+
};
|
|
1267
|
+
viewKey: string;
|
|
1268
|
+
selectionId: string;
|
|
1269
|
+
assistantId: string;
|
|
1270
|
+
organizationId: string;
|
|
1271
|
+
projectId: string | null;
|
|
1272
|
+
} | undefined;
|
|
1273
|
+
}[] | undefined;
|
|
1274
|
+
}>]>, "many">;
|
|
561
1275
|
hasMoreAnnouncements: z.ZodBoolean;
|
|
562
1276
|
hasMoreNotifications: z.ZodBoolean;
|
|
563
1277
|
}, "strict", z.ZodTypeAny, {
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
announcements
|
|
567
|
-
status
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
dismissedAt
|
|
1278
|
+
supported: true;
|
|
1279
|
+
version: string;
|
|
1280
|
+
announcements: {
|
|
1281
|
+
status: "draft" | "published" | "withdrawn";
|
|
1282
|
+
revision: number;
|
|
1283
|
+
title: string;
|
|
1284
|
+
body: string;
|
|
1285
|
+
category: "general" | "maintenance" | "model_retirement";
|
|
1286
|
+
severity: "info" | "important";
|
|
1287
|
+
clients: ("web" | "desktop")[];
|
|
1288
|
+
startsAt: string;
|
|
1289
|
+
expiresAt: string | null;
|
|
1290
|
+
action: {
|
|
1291
|
+
type: "link";
|
|
1292
|
+
label: string;
|
|
1293
|
+
url: string;
|
|
1294
|
+
} | null;
|
|
1295
|
+
id: string;
|
|
1296
|
+
createdAt: string;
|
|
1297
|
+
dismissedAt: string | null;
|
|
584
1298
|
}[];
|
|
585
|
-
notifications
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
conversationId
|
|
591
|
-
|
|
592
|
-
taskId?: string;
|
|
593
|
-
assistantId?: string;
|
|
1299
|
+
notifications: ({
|
|
1300
|
+
kind: "agent.completed";
|
|
1301
|
+
action: {
|
|
1302
|
+
type: "open_conversation";
|
|
1303
|
+
assistantId: string;
|
|
1304
|
+
conversationId: string;
|
|
1305
|
+
threadId: string | null;
|
|
594
1306
|
};
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
1307
|
+
id: string;
|
|
1308
|
+
createdAt: string;
|
|
1309
|
+
source: {
|
|
1310
|
+
type: "scheduled_task";
|
|
1311
|
+
assistantId: string;
|
|
1312
|
+
taskId: string;
|
|
1313
|
+
executionId: string;
|
|
1314
|
+
conversationId: string;
|
|
601
1315
|
};
|
|
602
|
-
readAt
|
|
603
|
-
}
|
|
604
|
-
|
|
605
|
-
|
|
1316
|
+
readAt: string | null;
|
|
1317
|
+
} | {
|
|
1318
|
+
kind: "agent.output";
|
|
1319
|
+
action: {
|
|
1320
|
+
type: "open_conversation";
|
|
1321
|
+
assistantId: string;
|
|
1322
|
+
conversationId: string;
|
|
1323
|
+
threadId: string | null;
|
|
1324
|
+
} | null;
|
|
1325
|
+
id: string;
|
|
1326
|
+
createdAt: string;
|
|
1327
|
+
source: {
|
|
1328
|
+
type: "agent_output";
|
|
1329
|
+
deliveryId: string;
|
|
1330
|
+
};
|
|
1331
|
+
readAt: string | null;
|
|
1332
|
+
titles: string[];
|
|
1333
|
+
items?: {
|
|
1334
|
+
title: string;
|
|
1335
|
+
action: {
|
|
1336
|
+
type: "open_conversation";
|
|
1337
|
+
assistantId: string;
|
|
1338
|
+
conversationId: string;
|
|
1339
|
+
threadId: string | null;
|
|
1340
|
+
} | null;
|
|
1341
|
+
id: string;
|
|
1342
|
+
fields?: {
|
|
1343
|
+
value: string;
|
|
1344
|
+
label: {
|
|
1345
|
+
en_US: string;
|
|
1346
|
+
zh_Hans: string;
|
|
1347
|
+
};
|
|
1348
|
+
}[] | undefined;
|
|
1349
|
+
workbench?: {
|
|
1350
|
+
state: "handled" | "pending";
|
|
1351
|
+
title: {
|
|
1352
|
+
en_US: string;
|
|
1353
|
+
zh_Hans: string;
|
|
1354
|
+
};
|
|
1355
|
+
openLabel: {
|
|
1356
|
+
en_US: string;
|
|
1357
|
+
zh_Hans: string;
|
|
1358
|
+
};
|
|
1359
|
+
viewKey: string;
|
|
1360
|
+
selectionId: string;
|
|
1361
|
+
assistantId: string;
|
|
1362
|
+
organizationId: string;
|
|
1363
|
+
projectId: string | null;
|
|
1364
|
+
} | undefined;
|
|
1365
|
+
}[] | undefined;
|
|
1366
|
+
})[];
|
|
1367
|
+
hasMoreAnnouncements: boolean;
|
|
1368
|
+
hasMoreNotifications: boolean;
|
|
606
1369
|
}, {
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
announcements
|
|
610
|
-
status
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
1370
|
+
supported: true;
|
|
1371
|
+
version: string;
|
|
1372
|
+
announcements: {
|
|
1373
|
+
status: "draft" | "published" | "withdrawn";
|
|
1374
|
+
revision: number;
|
|
1375
|
+
title: string;
|
|
1376
|
+
body: string;
|
|
1377
|
+
clients: ("web" | "desktop")[];
|
|
1378
|
+
startsAt: string;
|
|
1379
|
+
id: string;
|
|
1380
|
+
createdAt: string;
|
|
1381
|
+
category?: "general" | "maintenance" | "model_retirement" | undefined;
|
|
1382
|
+
severity?: "info" | "important" | undefined;
|
|
1383
|
+
expiresAt?: string | null | undefined;
|
|
617
1384
|
action?: {
|
|
618
|
-
type
|
|
619
|
-
label
|
|
620
|
-
url
|
|
621
|
-
};
|
|
622
|
-
|
|
623
|
-
severity?: "info" | "important";
|
|
624
|
-
clients?: ("desktop" | "web")[];
|
|
625
|
-
startsAt?: string;
|
|
626
|
-
dismissedAt?: string;
|
|
1385
|
+
type: "link";
|
|
1386
|
+
label: string;
|
|
1387
|
+
url: string;
|
|
1388
|
+
} | null | undefined;
|
|
1389
|
+
dismissedAt?: string | null | undefined;
|
|
627
1390
|
}[];
|
|
628
|
-
notifications
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
conversationId
|
|
634
|
-
|
|
635
|
-
taskId?: string;
|
|
636
|
-
assistantId?: string;
|
|
1391
|
+
notifications: ({
|
|
1392
|
+
kind: "agent.completed";
|
|
1393
|
+
action: {
|
|
1394
|
+
type: "open_conversation";
|
|
1395
|
+
assistantId: string;
|
|
1396
|
+
conversationId: string;
|
|
1397
|
+
threadId: string | null;
|
|
637
1398
|
};
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
1399
|
+
id: string;
|
|
1400
|
+
createdAt: string;
|
|
1401
|
+
source: {
|
|
1402
|
+
type: "scheduled_task";
|
|
1403
|
+
assistantId: string;
|
|
1404
|
+
taskId: string;
|
|
1405
|
+
executionId: string;
|
|
1406
|
+
conversationId: string;
|
|
644
1407
|
};
|
|
645
|
-
readAt
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
|
|
1408
|
+
readAt: string | null;
|
|
1409
|
+
} | {
|
|
1410
|
+
kind: "agent.output";
|
|
1411
|
+
action: {
|
|
1412
|
+
type: "open_conversation";
|
|
1413
|
+
assistantId: string;
|
|
1414
|
+
conversationId: string;
|
|
1415
|
+
threadId: string | null;
|
|
1416
|
+
} | null;
|
|
1417
|
+
id: string;
|
|
1418
|
+
createdAt: string;
|
|
1419
|
+
source: {
|
|
1420
|
+
type: "agent_output";
|
|
1421
|
+
deliveryId: string;
|
|
1422
|
+
};
|
|
1423
|
+
readAt: string | null;
|
|
1424
|
+
titles: string[];
|
|
1425
|
+
items?: {
|
|
1426
|
+
title: string;
|
|
1427
|
+
action: {
|
|
1428
|
+
type: "open_conversation";
|
|
1429
|
+
assistantId: string;
|
|
1430
|
+
conversationId: string;
|
|
1431
|
+
threadId: string | null;
|
|
1432
|
+
} | null;
|
|
1433
|
+
id: string;
|
|
1434
|
+
fields?: {
|
|
1435
|
+
value: string;
|
|
1436
|
+
label: {
|
|
1437
|
+
en_US: string;
|
|
1438
|
+
zh_Hans: string;
|
|
1439
|
+
};
|
|
1440
|
+
}[] | undefined;
|
|
1441
|
+
workbench?: {
|
|
1442
|
+
state: "handled" | "pending";
|
|
1443
|
+
title: {
|
|
1444
|
+
en_US: string;
|
|
1445
|
+
zh_Hans: string;
|
|
1446
|
+
};
|
|
1447
|
+
openLabel: {
|
|
1448
|
+
en_US: string;
|
|
1449
|
+
zh_Hans: string;
|
|
1450
|
+
};
|
|
1451
|
+
viewKey: string;
|
|
1452
|
+
selectionId: string;
|
|
1453
|
+
assistantId: string;
|
|
1454
|
+
organizationId: string;
|
|
1455
|
+
projectId: string | null;
|
|
1456
|
+
} | undefined;
|
|
1457
|
+
}[] | undefined;
|
|
1458
|
+
})[];
|
|
1459
|
+
hasMoreAnnouncements: boolean;
|
|
1460
|
+
hasMoreNotifications: boolean;
|
|
649
1461
|
}>;
|
|
650
1462
|
export type NotificationSnapshot = Omit<Required<z.output<typeof notificationSnapshotSchema>>, 'announcements' | 'notifications'> & {
|
|
651
1463
|
announcements: Announcement[];
|
|
@@ -656,35 +1468,44 @@ export declare const notificationChangeSchema: z.ZodObject<{
|
|
|
656
1468
|
type: z.ZodLiteral<"sync.required">;
|
|
657
1469
|
eventId: z.ZodString;
|
|
658
1470
|
}, "strict", z.ZodTypeAny, {
|
|
659
|
-
type
|
|
660
|
-
schemaVersion
|
|
661
|
-
eventId
|
|
1471
|
+
type: "sync.required";
|
|
1472
|
+
schemaVersion: 1;
|
|
1473
|
+
eventId: string;
|
|
662
1474
|
}, {
|
|
663
|
-
type
|
|
664
|
-
schemaVersion
|
|
665
|
-
eventId
|
|
1475
|
+
type: "sync.required";
|
|
1476
|
+
schemaVersion: 1;
|
|
1477
|
+
eventId: string;
|
|
666
1478
|
}>;
|
|
667
1479
|
export declare const notificationOutboxPayloadSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
668
1480
|
type: z.ZodLiteral<"changed">;
|
|
669
1481
|
}, "strict", z.ZodTypeAny, {
|
|
670
|
-
type
|
|
1482
|
+
type: "changed";
|
|
1483
|
+
}, {
|
|
1484
|
+
type: "changed";
|
|
1485
|
+
}>, z.ZodObject<{
|
|
1486
|
+
type: z.ZodLiteral<"agent.output.dispatch">;
|
|
1487
|
+
deliveryId: z.ZodString;
|
|
1488
|
+
}, "strict", z.ZodTypeAny, {
|
|
1489
|
+
type: "agent.output.dispatch";
|
|
1490
|
+
deliveryId: string;
|
|
671
1491
|
}, {
|
|
672
|
-
type
|
|
1492
|
+
type: "agent.output.dispatch";
|
|
1493
|
+
deliveryId: string;
|
|
673
1494
|
}>, z.ZodObject<{
|
|
674
1495
|
type: z.ZodLiteral<"announcement.scheduled">;
|
|
675
1496
|
announcementId: z.ZodString;
|
|
676
1497
|
revision: z.ZodNumber;
|
|
677
1498
|
phase: z.ZodEnum<["start", "expiry"]>;
|
|
678
1499
|
}, "strict", z.ZodTypeAny, {
|
|
679
|
-
type
|
|
680
|
-
revision
|
|
681
|
-
|
|
682
|
-
|
|
1500
|
+
type: "announcement.scheduled";
|
|
1501
|
+
revision: number;
|
|
1502
|
+
announcementId: string;
|
|
1503
|
+
phase: "start" | "expiry";
|
|
683
1504
|
}, {
|
|
684
|
-
type
|
|
685
|
-
revision
|
|
686
|
-
|
|
687
|
-
|
|
1505
|
+
type: "announcement.scheduled";
|
|
1506
|
+
revision: number;
|
|
1507
|
+
announcementId: string;
|
|
1508
|
+
phase: "start" | "expiry";
|
|
688
1509
|
}>, z.ZodObject<{
|
|
689
1510
|
type: z.ZodLiteral<"agent.completed">;
|
|
690
1511
|
source: z.ZodObject<{
|
|
@@ -696,42 +1517,48 @@ export declare const notificationOutboxPayloadSchema: z.ZodDiscriminatedUnion<"t
|
|
|
696
1517
|
} & {
|
|
697
1518
|
threadId: z.ZodOptional<z.ZodString>;
|
|
698
1519
|
}, "strict", z.ZodTypeAny, {
|
|
699
|
-
type
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
1520
|
+
type: "scheduled_task";
|
|
1521
|
+
assistantId: string;
|
|
1522
|
+
taskId: string;
|
|
1523
|
+
executionId: string;
|
|
1524
|
+
conversationId: string;
|
|
1525
|
+
threadId?: string | undefined;
|
|
705
1526
|
}, {
|
|
706
|
-
type
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
1527
|
+
type: "scheduled_task";
|
|
1528
|
+
assistantId: string;
|
|
1529
|
+
taskId: string;
|
|
1530
|
+
executionId: string;
|
|
1531
|
+
conversationId: string;
|
|
1532
|
+
threadId?: string | undefined;
|
|
712
1533
|
}>;
|
|
713
1534
|
}, "strict", z.ZodTypeAny, {
|
|
714
|
-
type
|
|
715
|
-
source
|
|
716
|
-
type
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
1535
|
+
type: "agent.completed";
|
|
1536
|
+
source: {
|
|
1537
|
+
type: "scheduled_task";
|
|
1538
|
+
assistantId: string;
|
|
1539
|
+
taskId: string;
|
|
1540
|
+
executionId: string;
|
|
1541
|
+
conversationId: string;
|
|
1542
|
+
threadId?: string | undefined;
|
|
722
1543
|
};
|
|
723
1544
|
}, {
|
|
724
|
-
type
|
|
725
|
-
source
|
|
726
|
-
type
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
1545
|
+
type: "agent.completed";
|
|
1546
|
+
source: {
|
|
1547
|
+
type: "scheduled_task";
|
|
1548
|
+
assistantId: string;
|
|
1549
|
+
taskId: string;
|
|
1550
|
+
executionId: string;
|
|
1551
|
+
conversationId: string;
|
|
1552
|
+
threadId?: string | undefined;
|
|
732
1553
|
};
|
|
733
1554
|
}>]>;
|
|
1555
|
+
/** Durable worker instructions. An output dispatch points to a delivery whose contents are revalidated at send time. */
|
|
734
1556
|
export type NotificationOutboxPayload = z.output<typeof notificationOutboxPayloadSchema>;
|
|
1557
|
+
/**
|
|
1558
|
+
* Per-channel outcome. Feishu acceptance requires a provider message ID. In-app delivery means
|
|
1559
|
+
* the notification was persisted. An unknown external outcome must be reconciled before resending.
|
|
1560
|
+
* Reading is recorded separately on the user's notification.
|
|
1561
|
+
*/
|
|
735
1562
|
export type NotificationDeliveryState = 'pending' | 'accepted' | 'delivered' | 'failed' | 'unknown' | 'cancelled';
|
|
736
1563
|
export type NotificationDestination = {
|
|
737
1564
|
type: 'in_app';
|
|
@@ -746,5 +1573,7 @@ export type NotificationDestination = {
|
|
|
746
1573
|
bindingRevision: number;
|
|
747
1574
|
};
|
|
748
1575
|
export declare function parseAnnouncement(value: unknown): Announcement;
|
|
1576
|
+
export declare function parseOpenConversationAction(value: unknown): OpenConversationAction;
|
|
749
1577
|
export declare function parseUserNotification(value: unknown): UserNotification;
|
|
750
1578
|
export declare function parseNotificationSnapshot(value: unknown): NotificationSnapshot;
|
|
1579
|
+
export {};
|