@itphx/synth-shared 0.10.1 → 0.12.3
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/dist/config/defaults.js +172 -3
- package/dist/config/env-overrides.d.ts +33 -1
- package/dist/config/env-overrides.js +191 -5
- package/dist/config/execution.d.ts +66 -0
- package/dist/config/execution.js +146 -0
- package/dist/config/index.d.ts +4 -0
- package/dist/config/index.js +4 -0
- package/dist/config/loader.js +19 -0
- package/dist/config/proxy.d.ts +415 -0
- package/dist/config/proxy.js +1567 -0
- package/dist/config/resolve.d.ts +67 -0
- package/dist/config/resolve.js +187 -1
- package/dist/config/tls-runtime.d.ts +78 -0
- package/dist/config/tls-runtime.js +356 -0
- package/dist/config/tls.d.ts +215 -0
- package/dist/config/tls.js +394 -0
- package/dist/config/types.d.ts +1571 -2835
- package/dist/config/types.js +717 -58
- package/dist/i18n/index.d.ts +1 -1
- package/dist/i18n/index.js +279 -0
- package/dist/index.d.ts +24 -3
- package/dist/index.js +25 -2
- package/dist/model-metadata.d.ts +10 -0
- package/dist/protocols/index.d.ts +0 -1
- package/dist/schemas/index.d.ts +1014 -2231
- package/dist/schemas/index.js +222 -14
- package/dist/types/analytics.d.ts +113 -0
- package/dist/types/analytics.js +61 -0
- package/dist/types/authority.d.ts +464 -0
- package/dist/types/authority.js +445 -0
- package/dist/types/background.d.ts +96 -0
- package/dist/types/background.js +24 -0
- package/dist/types/bus-events.d.ts +23 -1
- package/dist/types/catalog.d.ts +349 -0
- package/dist/types/catalog.js +393 -0
- package/dist/types/decision.d.ts +28 -337
- package/dist/types/egress.d.ts +114 -0
- package/dist/types/egress.js +68 -0
- package/dist/types/events.d.ts +54 -2
- package/dist/types/external-credentials.d.ts +352 -0
- package/dist/types/external-credentials.js +200 -0
- package/dist/types/fs.d.ts +11 -0
- package/dist/types/fs.js +11 -0
- package/dist/types/hooks.d.ts +50 -9
- package/dist/types/index.d.ts +23 -0
- package/dist/types/index.js +55 -0
- package/dist/types/llm-filters.d.ts +150 -0
- package/dist/types/llm-filters.js +54 -0
- package/dist/types/maintenance.d.ts +39 -0
- package/dist/types/maintenance.js +11 -0
- package/dist/types/mcp.d.ts +101 -5
- package/dist/types/mcp.js +127 -5
- package/dist/types/message.d.ts +45 -1
- package/dist/types/pack.d.ts +1102 -0
- package/dist/types/pack.js +1003 -0
- package/dist/types/permission.d.ts +31 -15
- package/dist/types/permission.js +1 -1
- package/dist/types/pipeline-engine.d.ts +453 -0
- package/dist/types/pipeline-engine.js +440 -0
- package/dist/types/pipeline.d.ts +275 -0
- package/dist/types/pipeline.js +212 -0
- package/dist/types/plugin-audit.d.ts +110 -0
- package/dist/types/plugin-audit.js +185 -0
- package/dist/types/plugin-hybrid.d.ts +85 -0
- package/dist/types/plugin-hybrid.js +68 -0
- package/dist/types/plugin-lock.d.ts +95 -0
- package/dist/types/plugin-lock.js +1 -0
- package/dist/types/plugin-protocol.d.ts +221 -0
- package/dist/types/plugin-protocol.js +322 -0
- package/dist/types/plugin-runtime.d.ts +25 -0
- package/dist/types/plugin-runtime.js +11 -0
- package/dist/types/plugin-scan.d.ts +159 -0
- package/dist/types/plugin-scan.js +166 -0
- package/dist/types/plugin-tools.d.ts +51 -0
- package/dist/types/plugin-tools.js +72 -0
- package/dist/types/project.d.ts +14 -0
- package/dist/types/prompt-blocks.d.ts +102 -0
- package/dist/types/prompt-blocks.js +24 -0
- package/dist/types/prompt.d.ts +47 -4
- package/dist/types/provider.d.ts +11 -0
- package/dist/types/question.d.ts +153 -0
- package/dist/types/question.js +65 -0
- package/dist/types/schedules.d.ts +26 -3
- package/dist/types/semver.d.ts +48 -0
- package/dist/types/semver.js +218 -0
- package/dist/types/service-keys.d.ts +41 -3
- package/dist/types/service-keys.js +44 -2
- package/dist/types/session.d.ts +54 -1
- package/dist/types/steering.d.ts +74 -0
- package/dist/types/steering.js +75 -0
- package/dist/types/tools.d.ts +125 -5
- package/dist/types/tools.js +75 -0
- package/dist/types/trust.d.ts +31 -0
- package/dist/types/trust.js +27 -0
- package/dist/types/webhooks.d.ts +1 -1
- package/dist/types/worktree.d.ts +170 -0
- package/dist/types/worktree.js +101 -0
- package/dist/utils/index.d.ts +46 -1
- package/dist/utils/index.js +145 -12
- package/dist/utils/reasoning.d.ts +16 -0
- package/dist/utils/reasoning.js +37 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,13 +1,77 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { MessageRole, GlobalRole, ProjectRole, StatusMessageType } from '../types/index.js';
|
|
3
|
-
import type { GitRepoConfig, ProjectIconKey, ProjectColorKey } from '../types/index.js';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
import type { GitRepoConfig, ProjectIconKey, ProjectColorKey, SessionParticipantRole } from '../types/index.js';
|
|
4
|
+
/**
|
|
5
|
+
* Экземпляр zod, которым построены **все** схемы этого пакета.
|
|
6
|
+
*
|
|
7
|
+
* В zod 4 `extendZodWithOpenApi` навешивает `.openapi()` на прототип
|
|
8
|
+
* **конкретного** экземпляра модуля (а не глобально). Потребителю, который
|
|
9
|
+
* расширяет zod (публичный OpenAPI в core), нужно расширять ровно тот экземпляр,
|
|
10
|
+
* которым созданы shared-схемы, — иначе у них не будет `.openapi()`.
|
|
11
|
+
*/
|
|
12
|
+
export { z as sharedZod };
|
|
13
|
+
export declare const messageRoleSchema: z.ZodEnum<typeof MessageRole>;
|
|
14
|
+
export declare const globalRoleSchema: z.ZodEnum<typeof GlobalRole>;
|
|
15
|
+
export declare const projectRoleSchema: z.ZodEnum<typeof ProjectRole>;
|
|
16
|
+
export declare const statusMessageTypeSchema: z.ZodEnum<typeof StatusMessageType>;
|
|
8
17
|
/** Zod-схемы канонических ключей иконок/цветов (единые для project и session). */
|
|
9
|
-
export declare const projectIconKeySchema: z.ZodEnum<
|
|
10
|
-
|
|
18
|
+
export declare const projectIconKeySchema: z.ZodEnum<{
|
|
19
|
+
file: "file";
|
|
20
|
+
git: "git";
|
|
21
|
+
chat: "chat";
|
|
22
|
+
image: "image";
|
|
23
|
+
task: "task";
|
|
24
|
+
code: "code";
|
|
25
|
+
terminal: "terminal";
|
|
26
|
+
rocket: "rocket";
|
|
27
|
+
flask: "flask";
|
|
28
|
+
gamepad: "gamepad";
|
|
29
|
+
briefcase: "briefcase";
|
|
30
|
+
home: "home";
|
|
31
|
+
globe: "globe";
|
|
32
|
+
leaf: "leaf";
|
|
33
|
+
shield: "shield";
|
|
34
|
+
palette: "palette";
|
|
35
|
+
server: "server";
|
|
36
|
+
phone: "phone";
|
|
37
|
+
database: "database";
|
|
38
|
+
lightbulb: "lightbulb";
|
|
39
|
+
music: "music";
|
|
40
|
+
camera: "camera";
|
|
41
|
+
book: "book";
|
|
42
|
+
heart: "heart";
|
|
43
|
+
folder: "folder";
|
|
44
|
+
cpu: "cpu";
|
|
45
|
+
"file-code": "file-code";
|
|
46
|
+
docs: "docs";
|
|
47
|
+
todo: "todo";
|
|
48
|
+
bug: "bug";
|
|
49
|
+
robot: "robot";
|
|
50
|
+
brain: "brain";
|
|
51
|
+
repo: "repo";
|
|
52
|
+
test: "test";
|
|
53
|
+
chart: "chart";
|
|
54
|
+
star: "star";
|
|
55
|
+
calendar: "calendar";
|
|
56
|
+
}>;
|
|
57
|
+
export declare const projectColorKeySchema: z.ZodEnum<{
|
|
58
|
+
a1: "a1";
|
|
59
|
+
a2: "a2";
|
|
60
|
+
a3: "a3";
|
|
61
|
+
a4: "a4";
|
|
62
|
+
a5: "a5";
|
|
63
|
+
a6: "a6";
|
|
64
|
+
a7: "a7";
|
|
65
|
+
a8: "a8";
|
|
66
|
+
a9: "a9";
|
|
67
|
+
a10: "a10";
|
|
68
|
+
a11: "a11";
|
|
69
|
+
a12: "a12";
|
|
70
|
+
a13: "a13";
|
|
71
|
+
a14: "a14";
|
|
72
|
+
a15: "a15";
|
|
73
|
+
a16: "a16";
|
|
74
|
+
}>;
|
|
11
75
|
/** true, если значение — канонический ключ иконки (для записи и чтения). */
|
|
12
76
|
export declare function isProjectIconKey(value: unknown): value is ProjectIconKey;
|
|
13
77
|
/** true, если значение — канонический ключ цвета (без алиасов; для записи и чтения). */
|
|
@@ -22,37 +86,65 @@ export declare function normalizeIconKey(value: unknown): ProjectIconKey | undef
|
|
|
22
86
|
* прочее (включая legacy-алиасы) → `undefined`.
|
|
23
87
|
*/
|
|
24
88
|
export declare function normalizeColorKey(value: unknown): ProjectColorKey | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* ADR-106 Ф4: нормализация роли участника сессии. Каноническая роль → как
|
|
91
|
+
* есть; всё прочее — **fail-closed** (`viewer`, только чтение).
|
|
92
|
+
*/
|
|
93
|
+
export declare function normalizeSessionParticipantRole(value: unknown): SessionParticipantRole;
|
|
25
94
|
export declare const tokenUsageSchema: z.ZodObject<{
|
|
26
95
|
inputTokens: z.ZodNumber;
|
|
27
96
|
outputTokens: z.ZodNumber;
|
|
28
97
|
totalTokens: z.ZodNumber;
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
98
|
+
}, z.core.$strip>;
|
|
99
|
+
/**
|
|
100
|
+
* Патч-схема объекта: как `.partial()`, но **без дефолтов**.
|
|
101
|
+
*
|
|
102
|
+
* Для PATCH отсутствующий ключ означает «не менять», а `.partial()` в zod 4
|
|
103
|
+
* протекает дефолтами: `pluginsConfigSchema.partial().parse({})` возвращает
|
|
104
|
+
* объект со всеми значениями по умолчанию, и частичный патч затирает чужие
|
|
105
|
+
* настройки. Поэтому поля берутся из `shape`, у каждого снимается дефолт и
|
|
106
|
+
* навешивается `.optional()`. Набор ключей и правила валидации остаются из
|
|
107
|
+
* исходной схемы (единственный источник правды). `.strict()` вызывается
|
|
108
|
+
* потребителем, если нужен отказ на неизвестный ключ.
|
|
109
|
+
*/
|
|
110
|
+
export declare function patchObjectSchema<S extends z.ZodRawShape>(schema: z.ZodObject<S>): z.ZodObject<{
|
|
111
|
+
[K in keyof S]: z.ZodOptional<S[K]>;
|
|
37
112
|
}>;
|
|
38
113
|
export declare const sessionSettingsSchema: z.ZodObject<{
|
|
39
114
|
provider: z.ZodOptional<z.ZodString>;
|
|
40
115
|
model: z.ZodOptional<z.ZodString>;
|
|
41
|
-
reasoningLevel: z.ZodOptional<z.ZodEnum<
|
|
116
|
+
reasoningLevel: z.ZodOptional<z.ZodEnum<{
|
|
117
|
+
default: "default";
|
|
118
|
+
high: "high";
|
|
119
|
+
medium: "medium";
|
|
120
|
+
low: "low";
|
|
121
|
+
none: "none";
|
|
122
|
+
}>>;
|
|
42
123
|
temperature: z.ZodDefault<z.ZodNumber>;
|
|
43
124
|
maxTokens: z.ZodDefault<z.ZodNumber>;
|
|
44
125
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
45
126
|
debugEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
46
127
|
streamEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
47
128
|
agentRole: z.ZodOptional<z.ZodString>;
|
|
48
|
-
mcpServers: z.ZodOptional<z.ZodArray<z.ZodString
|
|
49
|
-
mcpDisabledServers: z.ZodOptional<z.ZodArray<z.ZodString
|
|
50
|
-
contextOptimization: z.ZodDefault<z.ZodEnum<
|
|
51
|
-
|
|
129
|
+
mcpServers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
130
|
+
mcpDisabledServers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
131
|
+
contextOptimization: z.ZodDefault<z.ZodEnum<{
|
|
132
|
+
none: "none";
|
|
133
|
+
sliding_window: "sliding_window";
|
|
134
|
+
summarization: "summarization";
|
|
135
|
+
sticky_notes: "sticky_notes";
|
|
136
|
+
}>>;
|
|
137
|
+
slidingWindowMode: z.ZodDefault<z.ZodEnum<{
|
|
138
|
+
messages: "messages";
|
|
139
|
+
tokens: "tokens";
|
|
140
|
+
}>>;
|
|
52
141
|
slidingWindowMessageLimit: z.ZodDefault<z.ZodNumber>;
|
|
53
142
|
slidingWindowTokenThreshold: z.ZodDefault<z.ZodNumber>;
|
|
54
143
|
summarizationEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
55
|
-
summarizationTriggerMode: z.ZodDefault<z.ZodEnum<
|
|
144
|
+
summarizationTriggerMode: z.ZodDefault<z.ZodEnum<{
|
|
145
|
+
messages: "messages";
|
|
146
|
+
tokens: "tokens";
|
|
147
|
+
}>>;
|
|
56
148
|
summarizeAfterN: z.ZodDefault<z.ZodNumber>;
|
|
57
149
|
summarizeTokenThreshold: z.ZodDefault<z.ZodNumber>;
|
|
58
150
|
summarizationHeadMessages: z.ZodDefault<z.ZodNumber>;
|
|
@@ -60,95 +152,111 @@ export declare const sessionSettingsSchema: z.ZodObject<{
|
|
|
60
152
|
showInterview: z.ZodDefault<z.ZodBoolean>;
|
|
61
153
|
websocketEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
62
154
|
language: z.ZodOptional<z.ZodString>;
|
|
63
|
-
planMode: z.ZodOptional<z.ZodEnum<
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
155
|
+
planMode: z.ZodOptional<z.ZodEnum<{
|
|
156
|
+
auto: "auto";
|
|
157
|
+
strict: "strict";
|
|
158
|
+
off: "off";
|
|
159
|
+
}>>;
|
|
160
|
+
skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
161
|
+
skillsDisabled: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
67
162
|
decisionFirst: z.ZodOptional<z.ZodBoolean>;
|
|
68
|
-
},
|
|
69
|
-
temperature: number;
|
|
70
|
-
maxTokens: number;
|
|
71
|
-
debugEnabled: boolean;
|
|
72
|
-
streamEnabled: boolean;
|
|
73
|
-
contextOptimization: "none" | "sliding_window" | "summarization" | "sticky_notes";
|
|
74
|
-
slidingWindowMode: "messages" | "tokens";
|
|
75
|
-
slidingWindowMessageLimit: number;
|
|
76
|
-
slidingWindowTokenThreshold: number;
|
|
77
|
-
summarizationEnabled: boolean;
|
|
78
|
-
summarizationTriggerMode: "messages" | "tokens";
|
|
79
|
-
summarizeAfterN: number;
|
|
80
|
-
summarizeTokenThreshold: number;
|
|
81
|
-
summarizationHeadMessages: number;
|
|
82
|
-
summarizationTailMessages: number;
|
|
83
|
-
showInterview: boolean;
|
|
84
|
-
websocketEnabled: boolean;
|
|
85
|
-
provider?: string | undefined;
|
|
86
|
-
model?: string | undefined;
|
|
87
|
-
reasoningLevel?: "high" | "medium" | "low" | "default" | "none" | undefined;
|
|
88
|
-
systemPrompt?: string | undefined;
|
|
89
|
-
agentRole?: string | undefined;
|
|
90
|
-
mcpServers?: string[] | undefined;
|
|
91
|
-
mcpDisabledServers?: string[] | undefined;
|
|
92
|
-
language?: string | undefined;
|
|
93
|
-
planMode?: "auto" | "strict" | "off" | undefined;
|
|
94
|
-
skills?: string[] | undefined;
|
|
95
|
-
skillsDisabled?: string[] | undefined;
|
|
96
|
-
decisionFirst?: boolean | undefined;
|
|
97
|
-
}, {
|
|
98
|
-
provider?: string | undefined;
|
|
99
|
-
model?: string | undefined;
|
|
100
|
-
reasoningLevel?: "high" | "medium" | "low" | "default" | "none" | undefined;
|
|
101
|
-
temperature?: number | undefined;
|
|
102
|
-
maxTokens?: number | undefined;
|
|
103
|
-
systemPrompt?: string | undefined;
|
|
104
|
-
debugEnabled?: boolean | undefined;
|
|
105
|
-
streamEnabled?: boolean | undefined;
|
|
106
|
-
agentRole?: string | undefined;
|
|
107
|
-
mcpServers?: string[] | undefined;
|
|
108
|
-
mcpDisabledServers?: string[] | undefined;
|
|
109
|
-
contextOptimization?: "none" | "sliding_window" | "summarization" | "sticky_notes" | undefined;
|
|
110
|
-
slidingWindowMode?: "messages" | "tokens" | undefined;
|
|
111
|
-
slidingWindowMessageLimit?: number | undefined;
|
|
112
|
-
slidingWindowTokenThreshold?: number | undefined;
|
|
113
|
-
summarizationEnabled?: boolean | undefined;
|
|
114
|
-
summarizationTriggerMode?: "messages" | "tokens" | undefined;
|
|
115
|
-
summarizeAfterN?: number | undefined;
|
|
116
|
-
summarizeTokenThreshold?: number | undefined;
|
|
117
|
-
summarizationHeadMessages?: number | undefined;
|
|
118
|
-
summarizationTailMessages?: number | undefined;
|
|
119
|
-
showInterview?: boolean | undefined;
|
|
120
|
-
websocketEnabled?: boolean | undefined;
|
|
121
|
-
language?: string | undefined;
|
|
122
|
-
planMode?: "auto" | "strict" | "off" | undefined;
|
|
123
|
-
skills?: string[] | undefined;
|
|
124
|
-
skillsDisabled?: string[] | undefined;
|
|
125
|
-
decisionFirst?: boolean | undefined;
|
|
126
|
-
}>;
|
|
163
|
+
}, z.core.$strip>;
|
|
127
164
|
export declare const sessionCreateSchema: z.ZodObject<{
|
|
128
165
|
name: z.ZodOptional<z.ZodString>;
|
|
129
166
|
title: z.ZodOptional<z.ZodString>;
|
|
130
|
-
icon: z.ZodNullable<z.ZodOptional<z.ZodEnum<
|
|
131
|
-
|
|
167
|
+
icon: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
168
|
+
file: "file";
|
|
169
|
+
git: "git";
|
|
170
|
+
chat: "chat";
|
|
171
|
+
image: "image";
|
|
172
|
+
task: "task";
|
|
173
|
+
code: "code";
|
|
174
|
+
terminal: "terminal";
|
|
175
|
+
rocket: "rocket";
|
|
176
|
+
flask: "flask";
|
|
177
|
+
gamepad: "gamepad";
|
|
178
|
+
briefcase: "briefcase";
|
|
179
|
+
home: "home";
|
|
180
|
+
globe: "globe";
|
|
181
|
+
leaf: "leaf";
|
|
182
|
+
shield: "shield";
|
|
183
|
+
palette: "palette";
|
|
184
|
+
server: "server";
|
|
185
|
+
phone: "phone";
|
|
186
|
+
database: "database";
|
|
187
|
+
lightbulb: "lightbulb";
|
|
188
|
+
music: "music";
|
|
189
|
+
camera: "camera";
|
|
190
|
+
book: "book";
|
|
191
|
+
heart: "heart";
|
|
192
|
+
folder: "folder";
|
|
193
|
+
cpu: "cpu";
|
|
194
|
+
"file-code": "file-code";
|
|
195
|
+
docs: "docs";
|
|
196
|
+
todo: "todo";
|
|
197
|
+
bug: "bug";
|
|
198
|
+
robot: "robot";
|
|
199
|
+
brain: "brain";
|
|
200
|
+
repo: "repo";
|
|
201
|
+
test: "test";
|
|
202
|
+
chart: "chart";
|
|
203
|
+
star: "star";
|
|
204
|
+
calendar: "calendar";
|
|
205
|
+
}>>>;
|
|
206
|
+
color: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
207
|
+
a1: "a1";
|
|
208
|
+
a2: "a2";
|
|
209
|
+
a3: "a3";
|
|
210
|
+
a4: "a4";
|
|
211
|
+
a5: "a5";
|
|
212
|
+
a6: "a6";
|
|
213
|
+
a7: "a7";
|
|
214
|
+
a8: "a8";
|
|
215
|
+
a9: "a9";
|
|
216
|
+
a10: "a10";
|
|
217
|
+
a11: "a11";
|
|
218
|
+
a12: "a12";
|
|
219
|
+
a13: "a13";
|
|
220
|
+
a14: "a14";
|
|
221
|
+
a15: "a15";
|
|
222
|
+
a16: "a16";
|
|
223
|
+
}>>>;
|
|
132
224
|
projectId: z.ZodOptional<z.ZodString>;
|
|
133
|
-
engine: z.ZodDefault<z.ZodEnum<["synth", "opencode", "cline"]>>;
|
|
134
225
|
settings: z.ZodOptional<z.ZodObject<{
|
|
135
226
|
provider: z.ZodOptional<z.ZodString>;
|
|
136
227
|
model: z.ZodOptional<z.ZodString>;
|
|
137
|
-
reasoningLevel: z.ZodOptional<z.ZodEnum<
|
|
228
|
+
reasoningLevel: z.ZodOptional<z.ZodEnum<{
|
|
229
|
+
default: "default";
|
|
230
|
+
high: "high";
|
|
231
|
+
medium: "medium";
|
|
232
|
+
low: "low";
|
|
233
|
+
none: "none";
|
|
234
|
+
}>>;
|
|
138
235
|
temperature: z.ZodDefault<z.ZodNumber>;
|
|
139
236
|
maxTokens: z.ZodDefault<z.ZodNumber>;
|
|
140
237
|
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
141
238
|
debugEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
142
239
|
streamEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
143
240
|
agentRole: z.ZodOptional<z.ZodString>;
|
|
144
|
-
mcpServers: z.ZodOptional<z.ZodArray<z.ZodString
|
|
145
|
-
mcpDisabledServers: z.ZodOptional<z.ZodArray<z.ZodString
|
|
146
|
-
contextOptimization: z.ZodDefault<z.ZodEnum<
|
|
147
|
-
|
|
241
|
+
mcpServers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
242
|
+
mcpDisabledServers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
243
|
+
contextOptimization: z.ZodDefault<z.ZodEnum<{
|
|
244
|
+
none: "none";
|
|
245
|
+
sliding_window: "sliding_window";
|
|
246
|
+
summarization: "summarization";
|
|
247
|
+
sticky_notes: "sticky_notes";
|
|
248
|
+
}>>;
|
|
249
|
+
slidingWindowMode: z.ZodDefault<z.ZodEnum<{
|
|
250
|
+
messages: "messages";
|
|
251
|
+
tokens: "tokens";
|
|
252
|
+
}>>;
|
|
148
253
|
slidingWindowMessageLimit: z.ZodDefault<z.ZodNumber>;
|
|
149
254
|
slidingWindowTokenThreshold: z.ZodDefault<z.ZodNumber>;
|
|
150
255
|
summarizationEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
151
|
-
summarizationTriggerMode: z.ZodDefault<z.ZodEnum<
|
|
256
|
+
summarizationTriggerMode: z.ZodDefault<z.ZodEnum<{
|
|
257
|
+
messages: "messages";
|
|
258
|
+
tokens: "tokens";
|
|
259
|
+
}>>;
|
|
152
260
|
summarizeAfterN: z.ZodDefault<z.ZodNumber>;
|
|
153
261
|
summarizeTokenThreshold: z.ZodDefault<z.ZodNumber>;
|
|
154
262
|
summarizationHeadMessages: z.ZodDefault<z.ZodNumber>;
|
|
@@ -156,299 +264,111 @@ export declare const sessionCreateSchema: z.ZodObject<{
|
|
|
156
264
|
showInterview: z.ZodDefault<z.ZodBoolean>;
|
|
157
265
|
websocketEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
158
266
|
language: z.ZodOptional<z.ZodString>;
|
|
159
|
-
planMode: z.ZodOptional<z.ZodEnum<
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
267
|
+
planMode: z.ZodOptional<z.ZodEnum<{
|
|
268
|
+
auto: "auto";
|
|
269
|
+
strict: "strict";
|
|
270
|
+
off: "off";
|
|
271
|
+
}>>;
|
|
272
|
+
skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
273
|
+
skillsDisabled: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
163
274
|
decisionFirst: z.ZodOptional<z.ZodBoolean>;
|
|
164
|
-
},
|
|
165
|
-
|
|
166
|
-
maxTokens: number;
|
|
167
|
-
debugEnabled: boolean;
|
|
168
|
-
streamEnabled: boolean;
|
|
169
|
-
contextOptimization: "none" | "sliding_window" | "summarization" | "sticky_notes";
|
|
170
|
-
slidingWindowMode: "messages" | "tokens";
|
|
171
|
-
slidingWindowMessageLimit: number;
|
|
172
|
-
slidingWindowTokenThreshold: number;
|
|
173
|
-
summarizationEnabled: boolean;
|
|
174
|
-
summarizationTriggerMode: "messages" | "tokens";
|
|
175
|
-
summarizeAfterN: number;
|
|
176
|
-
summarizeTokenThreshold: number;
|
|
177
|
-
summarizationHeadMessages: number;
|
|
178
|
-
summarizationTailMessages: number;
|
|
179
|
-
showInterview: boolean;
|
|
180
|
-
websocketEnabled: boolean;
|
|
181
|
-
provider?: string | undefined;
|
|
182
|
-
model?: string | undefined;
|
|
183
|
-
reasoningLevel?: "high" | "medium" | "low" | "default" | "none" | undefined;
|
|
184
|
-
systemPrompt?: string | undefined;
|
|
185
|
-
agentRole?: string | undefined;
|
|
186
|
-
mcpServers?: string[] | undefined;
|
|
187
|
-
mcpDisabledServers?: string[] | undefined;
|
|
188
|
-
language?: string | undefined;
|
|
189
|
-
planMode?: "auto" | "strict" | "off" | undefined;
|
|
190
|
-
skills?: string[] | undefined;
|
|
191
|
-
skillsDisabled?: string[] | undefined;
|
|
192
|
-
decisionFirst?: boolean | undefined;
|
|
193
|
-
}, {
|
|
194
|
-
provider?: string | undefined;
|
|
195
|
-
model?: string | undefined;
|
|
196
|
-
reasoningLevel?: "high" | "medium" | "low" | "default" | "none" | undefined;
|
|
197
|
-
temperature?: number | undefined;
|
|
198
|
-
maxTokens?: number | undefined;
|
|
199
|
-
systemPrompt?: string | undefined;
|
|
200
|
-
debugEnabled?: boolean | undefined;
|
|
201
|
-
streamEnabled?: boolean | undefined;
|
|
202
|
-
agentRole?: string | undefined;
|
|
203
|
-
mcpServers?: string[] | undefined;
|
|
204
|
-
mcpDisabledServers?: string[] | undefined;
|
|
205
|
-
contextOptimization?: "none" | "sliding_window" | "summarization" | "sticky_notes" | undefined;
|
|
206
|
-
slidingWindowMode?: "messages" | "tokens" | undefined;
|
|
207
|
-
slidingWindowMessageLimit?: number | undefined;
|
|
208
|
-
slidingWindowTokenThreshold?: number | undefined;
|
|
209
|
-
summarizationEnabled?: boolean | undefined;
|
|
210
|
-
summarizationTriggerMode?: "messages" | "tokens" | undefined;
|
|
211
|
-
summarizeAfterN?: number | undefined;
|
|
212
|
-
summarizeTokenThreshold?: number | undefined;
|
|
213
|
-
summarizationHeadMessages?: number | undefined;
|
|
214
|
-
summarizationTailMessages?: number | undefined;
|
|
215
|
-
showInterview?: boolean | undefined;
|
|
216
|
-
websocketEnabled?: boolean | undefined;
|
|
217
|
-
language?: string | undefined;
|
|
218
|
-
planMode?: "auto" | "strict" | "off" | undefined;
|
|
219
|
-
skills?: string[] | undefined;
|
|
220
|
-
skillsDisabled?: string[] | undefined;
|
|
221
|
-
decisionFirst?: boolean | undefined;
|
|
222
|
-
}>>;
|
|
223
|
-
}, "strip", z.ZodTypeAny, {
|
|
224
|
-
engine: "synth" | "opencode" | "cline";
|
|
225
|
-
name?: string | undefined;
|
|
226
|
-
title?: string | undefined;
|
|
227
|
-
icon?: "code" | "chat" | "task" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | null | undefined;
|
|
228
|
-
color?: "a1" | "a2" | "a3" | "a4" | "a5" | "a6" | "a7" | "a8" | "a9" | "a10" | "a11" | "a12" | "a13" | "a14" | "a15" | "a16" | null | undefined;
|
|
229
|
-
projectId?: string | undefined;
|
|
230
|
-
settings?: {
|
|
231
|
-
temperature: number;
|
|
232
|
-
maxTokens: number;
|
|
233
|
-
debugEnabled: boolean;
|
|
234
|
-
streamEnabled: boolean;
|
|
235
|
-
contextOptimization: "none" | "sliding_window" | "summarization" | "sticky_notes";
|
|
236
|
-
slidingWindowMode: "messages" | "tokens";
|
|
237
|
-
slidingWindowMessageLimit: number;
|
|
238
|
-
slidingWindowTokenThreshold: number;
|
|
239
|
-
summarizationEnabled: boolean;
|
|
240
|
-
summarizationTriggerMode: "messages" | "tokens";
|
|
241
|
-
summarizeAfterN: number;
|
|
242
|
-
summarizeTokenThreshold: number;
|
|
243
|
-
summarizationHeadMessages: number;
|
|
244
|
-
summarizationTailMessages: number;
|
|
245
|
-
showInterview: boolean;
|
|
246
|
-
websocketEnabled: boolean;
|
|
247
|
-
provider?: string | undefined;
|
|
248
|
-
model?: string | undefined;
|
|
249
|
-
reasoningLevel?: "high" | "medium" | "low" | "default" | "none" | undefined;
|
|
250
|
-
systemPrompt?: string | undefined;
|
|
251
|
-
agentRole?: string | undefined;
|
|
252
|
-
mcpServers?: string[] | undefined;
|
|
253
|
-
mcpDisabledServers?: string[] | undefined;
|
|
254
|
-
language?: string | undefined;
|
|
255
|
-
planMode?: "auto" | "strict" | "off" | undefined;
|
|
256
|
-
skills?: string[] | undefined;
|
|
257
|
-
skillsDisabled?: string[] | undefined;
|
|
258
|
-
decisionFirst?: boolean | undefined;
|
|
259
|
-
} | undefined;
|
|
260
|
-
}, {
|
|
261
|
-
name?: string | undefined;
|
|
262
|
-
title?: string | undefined;
|
|
263
|
-
icon?: "code" | "chat" | "task" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | null | undefined;
|
|
264
|
-
color?: "a1" | "a2" | "a3" | "a4" | "a5" | "a6" | "a7" | "a8" | "a9" | "a10" | "a11" | "a12" | "a13" | "a14" | "a15" | "a16" | null | undefined;
|
|
265
|
-
projectId?: string | undefined;
|
|
266
|
-
engine?: "synth" | "opencode" | "cline" | undefined;
|
|
267
|
-
settings?: {
|
|
268
|
-
provider?: string | undefined;
|
|
269
|
-
model?: string | undefined;
|
|
270
|
-
reasoningLevel?: "high" | "medium" | "low" | "default" | "none" | undefined;
|
|
271
|
-
temperature?: number | undefined;
|
|
272
|
-
maxTokens?: number | undefined;
|
|
273
|
-
systemPrompt?: string | undefined;
|
|
274
|
-
debugEnabled?: boolean | undefined;
|
|
275
|
-
streamEnabled?: boolean | undefined;
|
|
276
|
-
agentRole?: string | undefined;
|
|
277
|
-
mcpServers?: string[] | undefined;
|
|
278
|
-
mcpDisabledServers?: string[] | undefined;
|
|
279
|
-
contextOptimization?: "none" | "sliding_window" | "summarization" | "sticky_notes" | undefined;
|
|
280
|
-
slidingWindowMode?: "messages" | "tokens" | undefined;
|
|
281
|
-
slidingWindowMessageLimit?: number | undefined;
|
|
282
|
-
slidingWindowTokenThreshold?: number | undefined;
|
|
283
|
-
summarizationEnabled?: boolean | undefined;
|
|
284
|
-
summarizationTriggerMode?: "messages" | "tokens" | undefined;
|
|
285
|
-
summarizeAfterN?: number | undefined;
|
|
286
|
-
summarizeTokenThreshold?: number | undefined;
|
|
287
|
-
summarizationHeadMessages?: number | undefined;
|
|
288
|
-
summarizationTailMessages?: number | undefined;
|
|
289
|
-
showInterview?: boolean | undefined;
|
|
290
|
-
websocketEnabled?: boolean | undefined;
|
|
291
|
-
language?: string | undefined;
|
|
292
|
-
planMode?: "auto" | "strict" | "off" | undefined;
|
|
293
|
-
skills?: string[] | undefined;
|
|
294
|
-
skillsDisabled?: string[] | undefined;
|
|
295
|
-
decisionFirst?: boolean | undefined;
|
|
296
|
-
} | undefined;
|
|
297
|
-
}>;
|
|
275
|
+
}, z.core.$strip>>;
|
|
276
|
+
}, z.core.$strip>;
|
|
298
277
|
export declare const sessionUpdateSchema: z.ZodObject<{
|
|
299
278
|
name: z.ZodOptional<z.ZodString>;
|
|
300
|
-
icon: z.ZodNullable<z.ZodOptional<z.ZodEnum<
|
|
301
|
-
|
|
279
|
+
icon: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
280
|
+
file: "file";
|
|
281
|
+
git: "git";
|
|
282
|
+
chat: "chat";
|
|
283
|
+
image: "image";
|
|
284
|
+
task: "task";
|
|
285
|
+
code: "code";
|
|
286
|
+
terminal: "terminal";
|
|
287
|
+
rocket: "rocket";
|
|
288
|
+
flask: "flask";
|
|
289
|
+
gamepad: "gamepad";
|
|
290
|
+
briefcase: "briefcase";
|
|
291
|
+
home: "home";
|
|
292
|
+
globe: "globe";
|
|
293
|
+
leaf: "leaf";
|
|
294
|
+
shield: "shield";
|
|
295
|
+
palette: "palette";
|
|
296
|
+
server: "server";
|
|
297
|
+
phone: "phone";
|
|
298
|
+
database: "database";
|
|
299
|
+
lightbulb: "lightbulb";
|
|
300
|
+
music: "music";
|
|
301
|
+
camera: "camera";
|
|
302
|
+
book: "book";
|
|
303
|
+
heart: "heart";
|
|
304
|
+
folder: "folder";
|
|
305
|
+
cpu: "cpu";
|
|
306
|
+
"file-code": "file-code";
|
|
307
|
+
docs: "docs";
|
|
308
|
+
todo: "todo";
|
|
309
|
+
bug: "bug";
|
|
310
|
+
robot: "robot";
|
|
311
|
+
brain: "brain";
|
|
312
|
+
repo: "repo";
|
|
313
|
+
test: "test";
|
|
314
|
+
chart: "chart";
|
|
315
|
+
star: "star";
|
|
316
|
+
calendar: "calendar";
|
|
317
|
+
}>>>;
|
|
318
|
+
color: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
319
|
+
a1: "a1";
|
|
320
|
+
a2: "a2";
|
|
321
|
+
a3: "a3";
|
|
322
|
+
a4: "a4";
|
|
323
|
+
a5: "a5";
|
|
324
|
+
a6: "a6";
|
|
325
|
+
a7: "a7";
|
|
326
|
+
a8: "a8";
|
|
327
|
+
a9: "a9";
|
|
328
|
+
a10: "a10";
|
|
329
|
+
a11: "a11";
|
|
330
|
+
a12: "a12";
|
|
331
|
+
a13: "a13";
|
|
332
|
+
a14: "a14";
|
|
333
|
+
a15: "a15";
|
|
334
|
+
a16: "a16";
|
|
335
|
+
}>>>;
|
|
302
336
|
projectId: z.ZodOptional<z.ZodString>;
|
|
303
|
-
engine: z.ZodOptional<z.ZodEnum<["synth", "opencode", "cline"]>>;
|
|
304
337
|
settings: z.ZodOptional<z.ZodObject<{
|
|
305
338
|
provider: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
306
339
|
model: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
307
|
-
reasoningLevel: z.ZodOptional<z.ZodOptional<z.ZodEnum<
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
mcpServers: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
315
|
-
mcpDisabledServers: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
316
|
-
contextOptimization: z.ZodOptional<z.ZodDefault<z.ZodEnum<["none", "sliding_window", "summarization", "sticky_notes"]>>>;
|
|
317
|
-
slidingWindowMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<["messages", "tokens"]>>>;
|
|
318
|
-
slidingWindowMessageLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
319
|
-
slidingWindowTokenThreshold: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
320
|
-
summarizationEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
321
|
-
summarizationTriggerMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<["messages", "tokens"]>>>;
|
|
322
|
-
summarizeAfterN: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
323
|
-
summarizeTokenThreshold: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
324
|
-
summarizationHeadMessages: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
325
|
-
summarizationTailMessages: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
326
|
-
showInterview: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
327
|
-
websocketEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
328
|
-
language: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
329
|
-
planMode: z.ZodOptional<z.ZodOptional<z.ZodEnum<["auto", "strict", "off"]>>>;
|
|
330
|
-
skills: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
331
|
-
skillsDisabled: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
332
|
-
decisionFirst: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
333
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
334
|
-
provider: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
335
|
-
model: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
336
|
-
reasoningLevel: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "none", "low", "medium", "high"]>>>;
|
|
337
|
-
temperature: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
338
|
-
maxTokens: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
339
|
-
systemPrompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
340
|
-
debugEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
341
|
-
streamEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
342
|
-
agentRole: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
343
|
-
mcpServers: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
344
|
-
mcpDisabledServers: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
345
|
-
contextOptimization: z.ZodOptional<z.ZodDefault<z.ZodEnum<["none", "sliding_window", "summarization", "sticky_notes"]>>>;
|
|
346
|
-
slidingWindowMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<["messages", "tokens"]>>>;
|
|
347
|
-
slidingWindowMessageLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
348
|
-
slidingWindowTokenThreshold: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
349
|
-
summarizationEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
350
|
-
summarizationTriggerMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<["messages", "tokens"]>>>;
|
|
351
|
-
summarizeAfterN: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
352
|
-
summarizeTokenThreshold: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
353
|
-
summarizationHeadMessages: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
354
|
-
summarizationTailMessages: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
355
|
-
showInterview: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
356
|
-
websocketEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
357
|
-
language: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
358
|
-
planMode: z.ZodOptional<z.ZodOptional<z.ZodEnum<["auto", "strict", "off"]>>>;
|
|
359
|
-
skills: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
360
|
-
skillsDisabled: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
361
|
-
decisionFirst: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
362
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
363
|
-
provider: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
364
|
-
model: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
365
|
-
reasoningLevel: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "none", "low", "medium", "high"]>>>;
|
|
366
|
-
temperature: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
367
|
-
maxTokens: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
368
|
-
systemPrompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
369
|
-
debugEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
370
|
-
streamEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
371
|
-
agentRole: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
372
|
-
mcpServers: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
373
|
-
mcpDisabledServers: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
374
|
-
contextOptimization: z.ZodOptional<z.ZodDefault<z.ZodEnum<["none", "sliding_window", "summarization", "sticky_notes"]>>>;
|
|
375
|
-
slidingWindowMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<["messages", "tokens"]>>>;
|
|
376
|
-
slidingWindowMessageLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
377
|
-
slidingWindowTokenThreshold: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
378
|
-
summarizationEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
379
|
-
summarizationTriggerMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<["messages", "tokens"]>>>;
|
|
380
|
-
summarizeAfterN: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
381
|
-
summarizeTokenThreshold: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
382
|
-
summarizationHeadMessages: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
383
|
-
summarizationTailMessages: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
384
|
-
showInterview: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
385
|
-
websocketEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
386
|
-
language: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
387
|
-
planMode: z.ZodOptional<z.ZodOptional<z.ZodEnum<["auto", "strict", "off"]>>>;
|
|
388
|
-
skills: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
389
|
-
skillsDisabled: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
390
|
-
decisionFirst: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
391
|
-
}, z.ZodTypeAny, "passthrough">>>;
|
|
392
|
-
}, "strip", z.ZodTypeAny, {
|
|
393
|
-
name?: string | undefined;
|
|
394
|
-
icon?: "code" | "chat" | "task" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | null | undefined;
|
|
395
|
-
color?: "a1" | "a2" | "a3" | "a4" | "a5" | "a6" | "a7" | "a8" | "a9" | "a10" | "a11" | "a12" | "a13" | "a14" | "a15" | "a16" | null | undefined;
|
|
396
|
-
projectId?: string | undefined;
|
|
397
|
-
engine?: "synth" | "opencode" | "cline" | undefined;
|
|
398
|
-
settings?: z.objectOutputType<{
|
|
399
|
-
provider: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
400
|
-
model: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
401
|
-
reasoningLevel: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "none", "low", "medium", "high"]>>>;
|
|
402
|
-
temperature: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
403
|
-
maxTokens: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
404
|
-
systemPrompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
405
|
-
debugEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
406
|
-
streamEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
407
|
-
agentRole: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
408
|
-
mcpServers: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
409
|
-
mcpDisabledServers: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
410
|
-
contextOptimization: z.ZodOptional<z.ZodDefault<z.ZodEnum<["none", "sliding_window", "summarization", "sticky_notes"]>>>;
|
|
411
|
-
slidingWindowMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<["messages", "tokens"]>>>;
|
|
412
|
-
slidingWindowMessageLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
413
|
-
slidingWindowTokenThreshold: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
414
|
-
summarizationEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
415
|
-
summarizationTriggerMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<["messages", "tokens"]>>>;
|
|
416
|
-
summarizeAfterN: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
417
|
-
summarizeTokenThreshold: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
418
|
-
summarizationHeadMessages: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
419
|
-
summarizationTailMessages: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
420
|
-
showInterview: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
421
|
-
websocketEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
422
|
-
language: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
423
|
-
planMode: z.ZodOptional<z.ZodOptional<z.ZodEnum<["auto", "strict", "off"]>>>;
|
|
424
|
-
skills: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
425
|
-
skillsDisabled: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
426
|
-
decisionFirst: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
427
|
-
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
428
|
-
}, {
|
|
429
|
-
name?: string | undefined;
|
|
430
|
-
icon?: "code" | "chat" | "task" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | null | undefined;
|
|
431
|
-
color?: "a1" | "a2" | "a3" | "a4" | "a5" | "a6" | "a7" | "a8" | "a9" | "a10" | "a11" | "a12" | "a13" | "a14" | "a15" | "a16" | null | undefined;
|
|
432
|
-
projectId?: string | undefined;
|
|
433
|
-
engine?: "synth" | "opencode" | "cline" | undefined;
|
|
434
|
-
settings?: z.objectInputType<{
|
|
435
|
-
provider: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
436
|
-
model: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
437
|
-
reasoningLevel: z.ZodOptional<z.ZodOptional<z.ZodEnum<["default", "none", "low", "medium", "high"]>>>;
|
|
340
|
+
reasoningLevel: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
341
|
+
default: "default";
|
|
342
|
+
high: "high";
|
|
343
|
+
medium: "medium";
|
|
344
|
+
low: "low";
|
|
345
|
+
none: "none";
|
|
346
|
+
}>>>;
|
|
438
347
|
temperature: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
439
348
|
maxTokens: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
440
349
|
systemPrompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
441
350
|
debugEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
442
351
|
streamEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
443
352
|
agentRole: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
444
|
-
mcpServers: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString
|
|
445
|
-
mcpDisabledServers: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString
|
|
446
|
-
contextOptimization: z.ZodOptional<z.ZodDefault<z.ZodEnum<
|
|
447
|
-
|
|
353
|
+
mcpServers: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
354
|
+
mcpDisabledServers: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
355
|
+
contextOptimization: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
356
|
+
none: "none";
|
|
357
|
+
sliding_window: "sliding_window";
|
|
358
|
+
summarization: "summarization";
|
|
359
|
+
sticky_notes: "sticky_notes";
|
|
360
|
+
}>>>;
|
|
361
|
+
slidingWindowMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
362
|
+
messages: "messages";
|
|
363
|
+
tokens: "tokens";
|
|
364
|
+
}>>>;
|
|
448
365
|
slidingWindowMessageLimit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
449
366
|
slidingWindowTokenThreshold: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
450
367
|
summarizationEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
451
|
-
summarizationTriggerMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<
|
|
368
|
+
summarizationTriggerMode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
369
|
+
messages: "messages";
|
|
370
|
+
tokens: "tokens";
|
|
371
|
+
}>>>;
|
|
452
372
|
summarizeAfterN: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
453
373
|
summarizeTokenThreshold: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
454
374
|
summarizationHeadMessages: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
@@ -456,12 +376,16 @@ export declare const sessionUpdateSchema: z.ZodObject<{
|
|
|
456
376
|
showInterview: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
457
377
|
websocketEnabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
458
378
|
language: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
459
|
-
planMode: z.ZodOptional<z.ZodOptional<z.ZodEnum<
|
|
460
|
-
|
|
461
|
-
|
|
379
|
+
planMode: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
380
|
+
auto: "auto";
|
|
381
|
+
strict: "strict";
|
|
382
|
+
off: "off";
|
|
383
|
+
}>>>;
|
|
384
|
+
skills: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
385
|
+
skillsDisabled: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
462
386
|
decisionFirst: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
463
|
-
}, z.
|
|
464
|
-
}>;
|
|
387
|
+
}, z.core.$loose>>;
|
|
388
|
+
}, z.core.$strip>;
|
|
465
389
|
/**
|
|
466
390
|
* ADR-076: запись реестра git-репозиториев. `path` обязателен, остальные поля
|
|
467
391
|
* опциональны; старые формы (`string` / `{ path }`) принимаются через
|
|
@@ -471,30 +395,15 @@ export declare const gitRepoConfigSchema: z.ZodObject<{
|
|
|
471
395
|
id: z.ZodOptional<z.ZodString>;
|
|
472
396
|
name: z.ZodOptional<z.ZodString>;
|
|
473
397
|
url: z.ZodOptional<z.ZodString>;
|
|
474
|
-
type: z.ZodOptional<z.ZodEnum<
|
|
398
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
399
|
+
https: "https";
|
|
400
|
+
ssh: "ssh";
|
|
401
|
+
}>>;
|
|
475
402
|
path: z.ZodString;
|
|
476
403
|
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
477
404
|
sshKeyId: z.ZodOptional<z.ZodString>;
|
|
478
405
|
lastFetch: z.ZodOptional<z.ZodString>;
|
|
479
|
-
},
|
|
480
|
-
path: string;
|
|
481
|
-
type?: "https" | "ssh" | undefined;
|
|
482
|
-
name?: string | undefined;
|
|
483
|
-
id?: string | undefined;
|
|
484
|
-
url?: string | undefined;
|
|
485
|
-
defaultBranch?: string | undefined;
|
|
486
|
-
sshKeyId?: string | undefined;
|
|
487
|
-
lastFetch?: string | undefined;
|
|
488
|
-
}, {
|
|
489
|
-
path: string;
|
|
490
|
-
type?: "https" | "ssh" | undefined;
|
|
491
|
-
name?: string | undefined;
|
|
492
|
-
id?: string | undefined;
|
|
493
|
-
url?: string | undefined;
|
|
494
|
-
defaultBranch?: string | undefined;
|
|
495
|
-
sshKeyId?: string | undefined;
|
|
496
|
-
lastFetch?: string | undefined;
|
|
497
|
-
}>;
|
|
406
|
+
}, z.core.$strip>;
|
|
498
407
|
/**
|
|
499
408
|
* ADR-076: нормализация legacy-значения `repos` к `GitRepoConfig`.
|
|
500
409
|
* `string` → `{ path }`; объект → прогон через `gitRepoConfigSchema`
|
|
@@ -504,209 +413,197 @@ export declare function normalizeGitRepoConfig(raw: unknown): GitRepoConfig | nu
|
|
|
504
413
|
export declare const projectCreateSchema: z.ZodObject<{
|
|
505
414
|
name: z.ZodString;
|
|
506
415
|
description: z.ZodDefault<z.ZodString>;
|
|
507
|
-
icon: z.ZodNullable<z.ZodOptional<z.ZodEnum<
|
|
508
|
-
|
|
416
|
+
icon: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
417
|
+
file: "file";
|
|
418
|
+
git: "git";
|
|
419
|
+
chat: "chat";
|
|
420
|
+
image: "image";
|
|
421
|
+
task: "task";
|
|
422
|
+
code: "code";
|
|
423
|
+
terminal: "terminal";
|
|
424
|
+
rocket: "rocket";
|
|
425
|
+
flask: "flask";
|
|
426
|
+
gamepad: "gamepad";
|
|
427
|
+
briefcase: "briefcase";
|
|
428
|
+
home: "home";
|
|
429
|
+
globe: "globe";
|
|
430
|
+
leaf: "leaf";
|
|
431
|
+
shield: "shield";
|
|
432
|
+
palette: "palette";
|
|
433
|
+
server: "server";
|
|
434
|
+
phone: "phone";
|
|
435
|
+
database: "database";
|
|
436
|
+
lightbulb: "lightbulb";
|
|
437
|
+
music: "music";
|
|
438
|
+
camera: "camera";
|
|
439
|
+
book: "book";
|
|
440
|
+
heart: "heart";
|
|
441
|
+
folder: "folder";
|
|
442
|
+
cpu: "cpu";
|
|
443
|
+
"file-code": "file-code";
|
|
444
|
+
docs: "docs";
|
|
445
|
+
todo: "todo";
|
|
446
|
+
bug: "bug";
|
|
447
|
+
robot: "robot";
|
|
448
|
+
brain: "brain";
|
|
449
|
+
repo: "repo";
|
|
450
|
+
test: "test";
|
|
451
|
+
chart: "chart";
|
|
452
|
+
star: "star";
|
|
453
|
+
calendar: "calendar";
|
|
454
|
+
}>>>;
|
|
455
|
+
color: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
456
|
+
a1: "a1";
|
|
457
|
+
a2: "a2";
|
|
458
|
+
a3: "a3";
|
|
459
|
+
a4: "a4";
|
|
460
|
+
a5: "a5";
|
|
461
|
+
a6: "a6";
|
|
462
|
+
a7: "a7";
|
|
463
|
+
a8: "a8";
|
|
464
|
+
a9: "a9";
|
|
465
|
+
a10: "a10";
|
|
466
|
+
a11: "a11";
|
|
467
|
+
a12: "a12";
|
|
468
|
+
a13: "a13";
|
|
469
|
+
a14: "a14";
|
|
470
|
+
a15: "a15";
|
|
471
|
+
a16: "a16";
|
|
472
|
+
}>>>;
|
|
509
473
|
workspace: z.ZodOptional<z.ZodString>;
|
|
510
|
-
repos: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
474
|
+
repos: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
511
475
|
id: z.ZodOptional<z.ZodString>;
|
|
512
476
|
name: z.ZodOptional<z.ZodString>;
|
|
513
477
|
url: z.ZodOptional<z.ZodString>;
|
|
514
|
-
type: z.ZodOptional<z.ZodEnum<
|
|
478
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
479
|
+
https: "https";
|
|
480
|
+
ssh: "ssh";
|
|
481
|
+
}>>;
|
|
515
482
|
path: z.ZodString;
|
|
516
483
|
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
517
484
|
sshKeyId: z.ZodOptional<z.ZodString>;
|
|
518
485
|
lastFetch: z.ZodOptional<z.ZodString>;
|
|
519
|
-
},
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
defaultBranch?: string | undefined;
|
|
526
|
-
sshKeyId?: string | undefined;
|
|
527
|
-
lastFetch?: string | undefined;
|
|
528
|
-
}, {
|
|
529
|
-
path: string;
|
|
530
|
-
type?: "https" | "ssh" | undefined;
|
|
531
|
-
name?: string | undefined;
|
|
532
|
-
id?: string | undefined;
|
|
533
|
-
url?: string | undefined;
|
|
534
|
-
defaultBranch?: string | undefined;
|
|
535
|
-
sshKeyId?: string | undefined;
|
|
536
|
-
lastFetch?: string | undefined;
|
|
537
|
-
}>]>, "many">>;
|
|
538
|
-
}, "strip", z.ZodTypeAny, {
|
|
539
|
-
name: string;
|
|
540
|
-
description: string;
|
|
541
|
-
workspace?: string | undefined;
|
|
542
|
-
icon?: "code" | "chat" | "task" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | null | undefined;
|
|
543
|
-
color?: "a1" | "a2" | "a3" | "a4" | "a5" | "a6" | "a7" | "a8" | "a9" | "a10" | "a11" | "a12" | "a13" | "a14" | "a15" | "a16" | null | undefined;
|
|
544
|
-
repos?: (string | {
|
|
545
|
-
path: string;
|
|
546
|
-
type?: "https" | "ssh" | undefined;
|
|
547
|
-
name?: string | undefined;
|
|
548
|
-
id?: string | undefined;
|
|
549
|
-
url?: string | undefined;
|
|
550
|
-
defaultBranch?: string | undefined;
|
|
551
|
-
sshKeyId?: string | undefined;
|
|
552
|
-
lastFetch?: string | undefined;
|
|
553
|
-
})[] | undefined;
|
|
554
|
-
}, {
|
|
555
|
-
name: string;
|
|
556
|
-
workspace?: string | undefined;
|
|
557
|
-
icon?: "code" | "chat" | "task" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | null | undefined;
|
|
558
|
-
color?: "a1" | "a2" | "a3" | "a4" | "a5" | "a6" | "a7" | "a8" | "a9" | "a10" | "a11" | "a12" | "a13" | "a14" | "a15" | "a16" | null | undefined;
|
|
559
|
-
description?: string | undefined;
|
|
560
|
-
repos?: (string | {
|
|
561
|
-
path: string;
|
|
562
|
-
type?: "https" | "ssh" | undefined;
|
|
563
|
-
name?: string | undefined;
|
|
564
|
-
id?: string | undefined;
|
|
565
|
-
url?: string | undefined;
|
|
566
|
-
defaultBranch?: string | undefined;
|
|
567
|
-
sshKeyId?: string | undefined;
|
|
568
|
-
lastFetch?: string | undefined;
|
|
569
|
-
})[] | undefined;
|
|
570
|
-
}>;
|
|
486
|
+
}, z.core.$strip>]>>>;
|
|
487
|
+
}, z.core.$strip>;
|
|
488
|
+
/** ADR-107: проектная политика памяти (undefined — не менять). */
|
|
489
|
+
export declare const projectMemoryUpdateSchema: z.ZodObject<{
|
|
490
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
491
|
+
}, z.core.$strip>;
|
|
571
492
|
export declare const projectUpdateSchema: z.ZodObject<{
|
|
572
493
|
name: z.ZodOptional<z.ZodString>;
|
|
573
494
|
description: z.ZodOptional<z.ZodString>;
|
|
574
495
|
currentTask: z.ZodOptional<z.ZodString>;
|
|
575
496
|
invariants: z.ZodOptional<z.ZodString>;
|
|
576
|
-
icon: z.ZodNullable<z.ZodOptional<z.ZodEnum<
|
|
577
|
-
|
|
497
|
+
icon: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
498
|
+
file: "file";
|
|
499
|
+
git: "git";
|
|
500
|
+
chat: "chat";
|
|
501
|
+
image: "image";
|
|
502
|
+
task: "task";
|
|
503
|
+
code: "code";
|
|
504
|
+
terminal: "terminal";
|
|
505
|
+
rocket: "rocket";
|
|
506
|
+
flask: "flask";
|
|
507
|
+
gamepad: "gamepad";
|
|
508
|
+
briefcase: "briefcase";
|
|
509
|
+
home: "home";
|
|
510
|
+
globe: "globe";
|
|
511
|
+
leaf: "leaf";
|
|
512
|
+
shield: "shield";
|
|
513
|
+
palette: "palette";
|
|
514
|
+
server: "server";
|
|
515
|
+
phone: "phone";
|
|
516
|
+
database: "database";
|
|
517
|
+
lightbulb: "lightbulb";
|
|
518
|
+
music: "music";
|
|
519
|
+
camera: "camera";
|
|
520
|
+
book: "book";
|
|
521
|
+
heart: "heart";
|
|
522
|
+
folder: "folder";
|
|
523
|
+
cpu: "cpu";
|
|
524
|
+
"file-code": "file-code";
|
|
525
|
+
docs: "docs";
|
|
526
|
+
todo: "todo";
|
|
527
|
+
bug: "bug";
|
|
528
|
+
robot: "robot";
|
|
529
|
+
brain: "brain";
|
|
530
|
+
repo: "repo";
|
|
531
|
+
test: "test";
|
|
532
|
+
chart: "chart";
|
|
533
|
+
star: "star";
|
|
534
|
+
calendar: "calendar";
|
|
535
|
+
}>>>;
|
|
536
|
+
color: z.ZodNullable<z.ZodOptional<z.ZodEnum<{
|
|
537
|
+
a1: "a1";
|
|
538
|
+
a2: "a2";
|
|
539
|
+
a3: "a3";
|
|
540
|
+
a4: "a4";
|
|
541
|
+
a5: "a5";
|
|
542
|
+
a6: "a6";
|
|
543
|
+
a7: "a7";
|
|
544
|
+
a8: "a8";
|
|
545
|
+
a9: "a9";
|
|
546
|
+
a10: "a10";
|
|
547
|
+
a11: "a11";
|
|
548
|
+
a12: "a12";
|
|
549
|
+
a13: "a13";
|
|
550
|
+
a14: "a14";
|
|
551
|
+
a15: "a15";
|
|
552
|
+
a16: "a16";
|
|
553
|
+
}>>>;
|
|
578
554
|
workspace: z.ZodOptional<z.ZodString>;
|
|
579
|
-
repos: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
555
|
+
repos: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
580
556
|
id: z.ZodOptional<z.ZodString>;
|
|
581
557
|
name: z.ZodOptional<z.ZodString>;
|
|
582
558
|
url: z.ZodOptional<z.ZodString>;
|
|
583
|
-
type: z.ZodOptional<z.ZodEnum<
|
|
559
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
560
|
+
https: "https";
|
|
561
|
+
ssh: "ssh";
|
|
562
|
+
}>>;
|
|
584
563
|
path: z.ZodString;
|
|
585
564
|
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
586
565
|
sshKeyId: z.ZodOptional<z.ZodString>;
|
|
587
566
|
lastFetch: z.ZodOptional<z.ZodString>;
|
|
588
|
-
},
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
url?: string | undefined;
|
|
594
|
-
defaultBranch?: string | undefined;
|
|
595
|
-
sshKeyId?: string | undefined;
|
|
596
|
-
lastFetch?: string | undefined;
|
|
597
|
-
}, {
|
|
598
|
-
path: string;
|
|
599
|
-
type?: "https" | "ssh" | undefined;
|
|
600
|
-
name?: string | undefined;
|
|
601
|
-
id?: string | undefined;
|
|
602
|
-
url?: string | undefined;
|
|
603
|
-
defaultBranch?: string | undefined;
|
|
604
|
-
sshKeyId?: string | undefined;
|
|
605
|
-
lastFetch?: string | undefined;
|
|
606
|
-
}>]>, "many">>;
|
|
607
|
-
}, "strip", z.ZodTypeAny, {
|
|
608
|
-
workspace?: string | undefined;
|
|
609
|
-
name?: string | undefined;
|
|
610
|
-
icon?: "code" | "chat" | "task" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | null | undefined;
|
|
611
|
-
color?: "a1" | "a2" | "a3" | "a4" | "a5" | "a6" | "a7" | "a8" | "a9" | "a10" | "a11" | "a12" | "a13" | "a14" | "a15" | "a16" | null | undefined;
|
|
612
|
-
description?: string | undefined;
|
|
613
|
-
repos?: (string | {
|
|
614
|
-
path: string;
|
|
615
|
-
type?: "https" | "ssh" | undefined;
|
|
616
|
-
name?: string | undefined;
|
|
617
|
-
id?: string | undefined;
|
|
618
|
-
url?: string | undefined;
|
|
619
|
-
defaultBranch?: string | undefined;
|
|
620
|
-
sshKeyId?: string | undefined;
|
|
621
|
-
lastFetch?: string | undefined;
|
|
622
|
-
})[] | undefined;
|
|
623
|
-
currentTask?: string | undefined;
|
|
624
|
-
invariants?: string | undefined;
|
|
625
|
-
}, {
|
|
626
|
-
workspace?: string | undefined;
|
|
627
|
-
name?: string | undefined;
|
|
628
|
-
icon?: "code" | "chat" | "task" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | null | undefined;
|
|
629
|
-
color?: "a1" | "a2" | "a3" | "a4" | "a5" | "a6" | "a7" | "a8" | "a9" | "a10" | "a11" | "a12" | "a13" | "a14" | "a15" | "a16" | null | undefined;
|
|
630
|
-
description?: string | undefined;
|
|
631
|
-
repos?: (string | {
|
|
632
|
-
path: string;
|
|
633
|
-
type?: "https" | "ssh" | undefined;
|
|
634
|
-
name?: string | undefined;
|
|
635
|
-
id?: string | undefined;
|
|
636
|
-
url?: string | undefined;
|
|
637
|
-
defaultBranch?: string | undefined;
|
|
638
|
-
sshKeyId?: string | undefined;
|
|
639
|
-
lastFetch?: string | undefined;
|
|
640
|
-
})[] | undefined;
|
|
641
|
-
currentTask?: string | undefined;
|
|
642
|
-
invariants?: string | undefined;
|
|
643
|
-
}>;
|
|
567
|
+
}, z.core.$strip>]>>>;
|
|
568
|
+
memory: z.ZodOptional<z.ZodObject<{
|
|
569
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
570
|
+
}, z.core.$strip>>;
|
|
571
|
+
}, z.core.$strip>;
|
|
644
572
|
/** ADR-076: тело создания SSH-ключа (`POST /api/v2/ssh-keys`). */
|
|
645
573
|
export declare const sshKeyCreateSchema: z.ZodObject<{
|
|
646
574
|
name: z.ZodString;
|
|
647
575
|
type: z.ZodOptional<z.ZodString>;
|
|
648
576
|
privateKey: z.ZodString;
|
|
649
577
|
passphrase: z.ZodOptional<z.ZodString>;
|
|
650
|
-
agentIds: z.ZodOptional<z.ZodArray<z.ZodString
|
|
651
|
-
},
|
|
652
|
-
name: string;
|
|
653
|
-
privateKey: string;
|
|
654
|
-
type?: string | undefined;
|
|
655
|
-
passphrase?: string | undefined;
|
|
656
|
-
agentIds?: string[] | undefined;
|
|
657
|
-
}, {
|
|
658
|
-
name: string;
|
|
659
|
-
privateKey: string;
|
|
660
|
-
type?: string | undefined;
|
|
661
|
-
passphrase?: string | undefined;
|
|
662
|
-
agentIds?: string[] | undefined;
|
|
663
|
-
}>;
|
|
578
|
+
agentIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
579
|
+
}, z.core.$strip>;
|
|
664
580
|
/** ADR-076: тело обновления SSH-ключа (без id/createdAt). */
|
|
665
581
|
export declare const sshKeyUpdateSchema: z.ZodObject<{
|
|
666
582
|
name: z.ZodOptional<z.ZodString>;
|
|
667
583
|
type: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
668
584
|
privateKey: z.ZodOptional<z.ZodString>;
|
|
669
585
|
passphrase: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
670
|
-
agentIds: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString
|
|
671
|
-
},
|
|
672
|
-
type?: string | undefined;
|
|
673
|
-
name?: string | undefined;
|
|
674
|
-
privateKey?: string | undefined;
|
|
675
|
-
passphrase?: string | undefined;
|
|
676
|
-
agentIds?: string[] | undefined;
|
|
677
|
-
}, {
|
|
678
|
-
type?: string | undefined;
|
|
679
|
-
name?: string | undefined;
|
|
680
|
-
privateKey?: string | undefined;
|
|
681
|
-
passphrase?: string | undefined;
|
|
682
|
-
agentIds?: string[] | undefined;
|
|
683
|
-
}>;
|
|
586
|
+
agentIds: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
587
|
+
}, z.core.$strip>;
|
|
684
588
|
/**
|
|
685
589
|
* ADR-071 §2.4: проектный скоуп MCP (ссылки на реестр по имени).
|
|
686
590
|
* PUT-семантика: `undefined` ≠ `[]` — отсутствующее поле сохраняет текущее
|
|
687
591
|
* значение, поэтому `.default([])` здесь недопустим.
|
|
688
592
|
*/
|
|
689
593
|
export declare const projectMcpUpdateSchema: z.ZodObject<{
|
|
690
|
-
enabled: z.ZodOptional<z.ZodArray<z.ZodString
|
|
691
|
-
defaultOn: z.ZodOptional<z.ZodArray<z.ZodString
|
|
692
|
-
},
|
|
693
|
-
enabled?: string[] | undefined;
|
|
694
|
-
defaultOn?: string[] | undefined;
|
|
695
|
-
}, {
|
|
696
|
-
enabled?: string[] | undefined;
|
|
697
|
-
defaultOn?: string[] | undefined;
|
|
698
|
-
}>;
|
|
594
|
+
enabled: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
595
|
+
defaultOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
596
|
+
}, z.core.$strip>;
|
|
699
597
|
/**
|
|
700
598
|
* ADR-075: тело `PUT /api/v2/settings/workspace-policy` — политика для
|
|
701
599
|
* абсолютного workspace вне `workspacesRoot`.
|
|
702
600
|
*/
|
|
703
601
|
export declare const workspacePolicySchema: z.ZodObject<{
|
|
704
|
-
outsideRoot: z.ZodEnum<
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
}
|
|
708
|
-
|
|
709
|
-
}>;
|
|
602
|
+
outsideRoot: z.ZodEnum<{
|
|
603
|
+
deny: "deny";
|
|
604
|
+
confirm: "confirm";
|
|
605
|
+
}>;
|
|
606
|
+
}, z.core.$strip>;
|
|
710
607
|
export type WorkspacePolicyRequest = z.infer<typeof workspacePolicySchema>;
|
|
711
608
|
export declare const promptRequestSchema: z.ZodObject<{
|
|
712
609
|
messageId: z.ZodOptional<z.ZodString>;
|
|
@@ -716,102 +613,44 @@ export declare const promptRequestSchema: z.ZodObject<{
|
|
|
716
613
|
provider: z.ZodOptional<z.ZodString>;
|
|
717
614
|
agent: z.ZodOptional<z.ZodString>;
|
|
718
615
|
system: z.ZodOptional<z.ZodString>;
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
agent?: string | undefined;
|
|
727
|
-
}, {
|
|
728
|
-
content: string;
|
|
729
|
-
system?: string | undefined;
|
|
730
|
-
provider?: string | undefined;
|
|
731
|
-
model?: string | undefined;
|
|
732
|
-
messageId?: string | undefined;
|
|
733
|
-
stream?: boolean | undefined;
|
|
734
|
-
agent?: string | undefined;
|
|
735
|
-
}>;
|
|
616
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
617
|
+
queue: "queue";
|
|
618
|
+
steer: "steer";
|
|
619
|
+
interrupt: "interrupt";
|
|
620
|
+
}>>;
|
|
621
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
622
|
+
}, z.core.$strip>;
|
|
736
623
|
export declare const spaLoginSchema: z.ZodObject<{
|
|
737
624
|
apiKey: z.ZodString;
|
|
738
625
|
username: z.ZodOptional<z.ZodString>;
|
|
739
|
-
},
|
|
740
|
-
apiKey: string;
|
|
741
|
-
username?: string | undefined;
|
|
742
|
-
}, {
|
|
743
|
-
apiKey: string;
|
|
744
|
-
username?: string | undefined;
|
|
745
|
-
}>;
|
|
626
|
+
}, z.core.$strip>;
|
|
746
627
|
export declare const fsListQuerySchema: z.ZodObject<{
|
|
747
628
|
project_id: z.ZodString;
|
|
748
629
|
path: z.ZodDefault<z.ZodString>;
|
|
749
|
-
maxDepth: z.ZodOptional<z.
|
|
750
|
-
includeHidden: z.ZodOptional<z.
|
|
751
|
-
},
|
|
752
|
-
path: string;
|
|
753
|
-
project_id: string;
|
|
754
|
-
maxDepth?: number | undefined;
|
|
755
|
-
includeHidden?: boolean | undefined;
|
|
756
|
-
}, {
|
|
757
|
-
project_id: string;
|
|
758
|
-
path?: string | undefined;
|
|
759
|
-
maxDepth?: number | undefined;
|
|
760
|
-
includeHidden?: boolean | undefined;
|
|
761
|
-
}>;
|
|
630
|
+
maxDepth: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
631
|
+
includeHidden: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
632
|
+
}, z.core.$strip>;
|
|
762
633
|
export declare const fsReadQuerySchema: z.ZodObject<{
|
|
763
634
|
project_id: z.ZodString;
|
|
764
635
|
path: z.ZodString;
|
|
765
|
-
},
|
|
766
|
-
path: string;
|
|
767
|
-
project_id: string;
|
|
768
|
-
}, {
|
|
769
|
-
path: string;
|
|
770
|
-
project_id: string;
|
|
771
|
-
}>;
|
|
636
|
+
}, z.core.$strip>;
|
|
772
637
|
export declare const fsWriteBodySchema: z.ZodObject<{
|
|
773
638
|
projectId: z.ZodString;
|
|
774
639
|
path: z.ZodString;
|
|
775
640
|
content: z.ZodString;
|
|
776
|
-
},
|
|
777
|
-
path: string;
|
|
778
|
-
content: string;
|
|
779
|
-
projectId: string;
|
|
780
|
-
}, {
|
|
781
|
-
path: string;
|
|
782
|
-
content: string;
|
|
783
|
-
projectId: string;
|
|
784
|
-
}>;
|
|
641
|
+
}, z.core.$strip>;
|
|
785
642
|
export declare const fsDeleteQuerySchema: z.ZodObject<{
|
|
786
643
|
project_id: z.ZodString;
|
|
787
644
|
path: z.ZodString;
|
|
788
|
-
},
|
|
789
|
-
path: string;
|
|
790
|
-
project_id: string;
|
|
791
|
-
}, {
|
|
792
|
-
path: string;
|
|
793
|
-
project_id: string;
|
|
794
|
-
}>;
|
|
645
|
+
}, z.core.$strip>;
|
|
795
646
|
export declare const fsMkdirBodySchema: z.ZodObject<{
|
|
796
647
|
projectId: z.ZodString;
|
|
797
648
|
path: z.ZodString;
|
|
798
|
-
},
|
|
799
|
-
path: string;
|
|
800
|
-
projectId: string;
|
|
801
|
-
}, {
|
|
802
|
-
path: string;
|
|
803
|
-
projectId: string;
|
|
804
|
-
}>;
|
|
649
|
+
}, z.core.$strip>;
|
|
805
650
|
export declare const fsDownloadQuerySchema: z.ZodObject<{
|
|
806
651
|
project_id: z.ZodString;
|
|
807
652
|
path: z.ZodString;
|
|
808
|
-
},
|
|
809
|
-
path: string;
|
|
810
|
-
project_id: string;
|
|
811
|
-
}, {
|
|
812
|
-
path: string;
|
|
813
|
-
project_id: string;
|
|
814
|
-
}>;
|
|
653
|
+
}, z.core.$strip>;
|
|
815
654
|
/**
|
|
816
655
|
* ADR-075: запрос навигации по корню workspace (`GET /fs/workspace-root/browse`,
|
|
817
656
|
* `GET /fs/workspace-root`). `includeHidden` принимает строковые `true`/`false`
|
|
@@ -819,52 +658,23 @@ export declare const fsDownloadQuerySchema: z.ZodObject<{
|
|
|
819
658
|
*/
|
|
820
659
|
export declare const fsWorkspaceBrowseQuerySchema: z.ZodObject<{
|
|
821
660
|
path: z.ZodDefault<z.ZodString>;
|
|
822
|
-
includeHidden: z.ZodDefault<z.
|
|
823
|
-
},
|
|
824
|
-
path: string;
|
|
825
|
-
includeHidden: boolean;
|
|
826
|
-
}, {
|
|
827
|
-
path?: string | undefined;
|
|
828
|
-
includeHidden?: unknown;
|
|
829
|
-
}>;
|
|
661
|
+
includeHidden: z.ZodDefault<z.ZodPreprocess<z.ZodOptional<z.ZodBoolean>, unknown>>;
|
|
662
|
+
}, z.core.$strip>;
|
|
830
663
|
/** ADR-075: тело `POST /fs/workspace-root/mkdir` — создание каталога в корне workspace. */
|
|
831
664
|
export declare const fsWorkspaceMkdirBodySchema: z.ZodObject<{
|
|
832
665
|
path: z.ZodString;
|
|
833
|
-
/** `confirm`-политика: явное подтверждение создания каталога вне `workspacesRoot`. */
|
|
834
666
|
confirmOutsideRoot: z.ZodOptional<z.ZodBoolean>;
|
|
835
|
-
},
|
|
836
|
-
path: string;
|
|
837
|
-
confirmOutsideRoot?: boolean | undefined;
|
|
838
|
-
}, {
|
|
839
|
-
path: string;
|
|
840
|
-
confirmOutsideRoot?: boolean | undefined;
|
|
841
|
-
}>;
|
|
667
|
+
}, z.core.$strip>;
|
|
842
668
|
export declare const gitScanBodySchema: z.ZodObject<{
|
|
843
669
|
projectId: z.ZodString;
|
|
844
|
-
},
|
|
845
|
-
projectId: string;
|
|
846
|
-
}, {
|
|
847
|
-
projectId: string;
|
|
848
|
-
}>;
|
|
670
|
+
}, z.core.$strip>;
|
|
849
671
|
export declare const gitInitBodySchema: z.ZodObject<{
|
|
850
672
|
projectId: z.ZodString;
|
|
851
673
|
path: z.ZodString;
|
|
852
674
|
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
853
675
|
name: z.ZodOptional<z.ZodString>;
|
|
854
676
|
sshKeyId: z.ZodOptional<z.ZodString>;
|
|
855
|
-
},
|
|
856
|
-
path: string;
|
|
857
|
-
projectId: string;
|
|
858
|
-
name?: string | undefined;
|
|
859
|
-
defaultBranch?: string | undefined;
|
|
860
|
-
sshKeyId?: string | undefined;
|
|
861
|
-
}, {
|
|
862
|
-
path: string;
|
|
863
|
-
projectId: string;
|
|
864
|
-
name?: string | undefined;
|
|
865
|
-
defaultBranch?: string | undefined;
|
|
866
|
-
sshKeyId?: string | undefined;
|
|
867
|
-
}>;
|
|
677
|
+
}, z.core.$strip>;
|
|
868
678
|
export declare const gitCloneBodySchema: z.ZodObject<{
|
|
869
679
|
projectId: z.ZodString;
|
|
870
680
|
url: z.ZodString;
|
|
@@ -872,21 +682,7 @@ export declare const gitCloneBodySchema: z.ZodObject<{
|
|
|
872
682
|
branch: z.ZodOptional<z.ZodString>;
|
|
873
683
|
name: z.ZodOptional<z.ZodString>;
|
|
874
684
|
sshKeyId: z.ZodOptional<z.ZodString>;
|
|
875
|
-
},
|
|
876
|
-
projectId: string;
|
|
877
|
-
url: string;
|
|
878
|
-
path?: string | undefined;
|
|
879
|
-
name?: string | undefined;
|
|
880
|
-
sshKeyId?: string | undefined;
|
|
881
|
-
branch?: string | undefined;
|
|
882
|
-
}, {
|
|
883
|
-
projectId: string;
|
|
884
|
-
url: string;
|
|
885
|
-
path?: string | undefined;
|
|
886
|
-
name?: string | undefined;
|
|
887
|
-
sshKeyId?: string | undefined;
|
|
888
|
-
branch?: string | undefined;
|
|
889
|
-
}>;
|
|
685
|
+
}, z.core.$strip>;
|
|
890
686
|
/**
|
|
891
687
|
* ADR-076: тело `POST /api/v2/git/repos/register` — upsert записи реестра
|
|
892
688
|
* (идемпотентно по `path`). Используется UI для добавления уже существующего
|
|
@@ -897,104 +693,39 @@ export declare const gitReposRegisterBodySchema: z.ZodObject<{
|
|
|
897
693
|
path: z.ZodString;
|
|
898
694
|
name: z.ZodOptional<z.ZodString>;
|
|
899
695
|
url: z.ZodOptional<z.ZodString>;
|
|
900
|
-
type: z.ZodOptional<z.ZodEnum<
|
|
696
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
697
|
+
https: "https";
|
|
698
|
+
ssh: "ssh";
|
|
699
|
+
}>>;
|
|
901
700
|
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
902
701
|
sshKeyId: z.ZodOptional<z.ZodString>;
|
|
903
|
-
},
|
|
904
|
-
path: string;
|
|
905
|
-
projectId: string;
|
|
906
|
-
type?: "https" | "ssh" | undefined;
|
|
907
|
-
name?: string | undefined;
|
|
908
|
-
url?: string | undefined;
|
|
909
|
-
defaultBranch?: string | undefined;
|
|
910
|
-
sshKeyId?: string | undefined;
|
|
911
|
-
}, {
|
|
912
|
-
path: string;
|
|
913
|
-
projectId: string;
|
|
914
|
-
type?: "https" | "ssh" | undefined;
|
|
915
|
-
name?: string | undefined;
|
|
916
|
-
url?: string | undefined;
|
|
917
|
-
defaultBranch?: string | undefined;
|
|
918
|
-
sshKeyId?: string | undefined;
|
|
919
|
-
}>;
|
|
702
|
+
}, z.core.$strip>;
|
|
920
703
|
/**
|
|
921
704
|
* ADR-076: тело `POST /api/v2/git/repos/remove` — удаление записи реестра;
|
|
922
705
|
* обязателен `id` либо `path`. `deleteLocal` — удалить каталог репозитория.
|
|
923
706
|
*/
|
|
924
|
-
export declare const gitReposRemoveBodySchema: z.
|
|
707
|
+
export declare const gitReposRemoveBodySchema: z.ZodObject<{
|
|
925
708
|
projectId: z.ZodString;
|
|
926
709
|
id: z.ZodOptional<z.ZodString>;
|
|
927
710
|
path: z.ZodOptional<z.ZodString>;
|
|
928
711
|
deleteLocal: z.ZodOptional<z.ZodBoolean>;
|
|
929
|
-
},
|
|
930
|
-
projectId: string;
|
|
931
|
-
path?: string | undefined;
|
|
932
|
-
id?: string | undefined;
|
|
933
|
-
deleteLocal?: boolean | undefined;
|
|
934
|
-
}, {
|
|
935
|
-
projectId: string;
|
|
936
|
-
path?: string | undefined;
|
|
937
|
-
id?: string | undefined;
|
|
938
|
-
deleteLocal?: boolean | undefined;
|
|
939
|
-
}>, {
|
|
940
|
-
projectId: string;
|
|
941
|
-
path?: string | undefined;
|
|
942
|
-
id?: string | undefined;
|
|
943
|
-
deleteLocal?: boolean | undefined;
|
|
944
|
-
}, {
|
|
945
|
-
projectId: string;
|
|
946
|
-
path?: string | undefined;
|
|
947
|
-
id?: string | undefined;
|
|
948
|
-
deleteLocal?: boolean | undefined;
|
|
949
|
-
}>;
|
|
712
|
+
}, z.core.$strip>;
|
|
950
713
|
/** ADR-076: тело `POST /api/v2/git/repos/fetch` — обязателен `id` либо `path`. */
|
|
951
|
-
export declare const gitReposFetchBodySchema: z.
|
|
714
|
+
export declare const gitReposFetchBodySchema: z.ZodObject<{
|
|
952
715
|
projectId: z.ZodString;
|
|
953
716
|
id: z.ZodOptional<z.ZodString>;
|
|
954
717
|
path: z.ZodOptional<z.ZodString>;
|
|
955
|
-
},
|
|
956
|
-
projectId: string;
|
|
957
|
-
path?: string | undefined;
|
|
958
|
-
id?: string | undefined;
|
|
959
|
-
}, {
|
|
960
|
-
projectId: string;
|
|
961
|
-
path?: string | undefined;
|
|
962
|
-
id?: string | undefined;
|
|
963
|
-
}>, {
|
|
964
|
-
projectId: string;
|
|
965
|
-
path?: string | undefined;
|
|
966
|
-
id?: string | undefined;
|
|
967
|
-
}, {
|
|
968
|
-
projectId: string;
|
|
969
|
-
path?: string | undefined;
|
|
970
|
-
id?: string | undefined;
|
|
971
|
-
}>;
|
|
718
|
+
}, z.core.$strip>;
|
|
972
719
|
export declare const gitLogQuerySchema: z.ZodObject<{
|
|
973
720
|
project_id: z.ZodString;
|
|
974
721
|
repo_path: z.ZodDefault<z.ZodString>;
|
|
975
|
-
max_count: z.ZodOptional<z.
|
|
976
|
-
},
|
|
977
|
-
project_id: string;
|
|
978
|
-
repo_path: string;
|
|
979
|
-
max_count?: number | undefined;
|
|
980
|
-
}, {
|
|
981
|
-
project_id: string;
|
|
982
|
-
repo_path?: string | undefined;
|
|
983
|
-
max_count?: number | undefined;
|
|
984
|
-
}>;
|
|
722
|
+
max_count: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
723
|
+
}, z.core.$strip>;
|
|
985
724
|
export declare const gitCommitQuerySchema: z.ZodObject<{
|
|
986
725
|
project_id: z.ZodString;
|
|
987
726
|
repo_path: z.ZodDefault<z.ZodString>;
|
|
988
727
|
hash: z.ZodString;
|
|
989
|
-
},
|
|
990
|
-
project_id: string;
|
|
991
|
-
repo_path: string;
|
|
992
|
-
hash: string;
|
|
993
|
-
}, {
|
|
994
|
-
project_id: string;
|
|
995
|
-
hash: string;
|
|
996
|
-
repo_path?: string | undefined;
|
|
997
|
-
}>;
|
|
728
|
+
}, z.core.$strip>;
|
|
998
729
|
/**
|
|
999
730
|
* ADR-071 §2.6: фабрика схемы `tools.disabled` (единый источник значений
|
|
1000
731
|
* на базе `ToolCapability`).
|
|
@@ -1005,15 +736,11 @@ export declare const gitCommitQuerySchema: z.ZodObject<{
|
|
|
1005
736
|
* (конфиг может опережать версию ядра).
|
|
1006
737
|
*/
|
|
1007
738
|
export declare function createToolsDisabledSchema(strictCapabilities: boolean): z.ZodObject<{
|
|
1008
|
-
capabilities: z.ZodDefault<z.ZodArray<z.
|
|
1009
|
-
|
|
1010
|
-
}
|
|
1011
|
-
tools:
|
|
1012
|
-
|
|
1013
|
-
}, {
|
|
1014
|
-
tools?: string[] | undefined;
|
|
1015
|
-
capabilities?: string[] | undefined;
|
|
1016
|
-
}>;
|
|
739
|
+
capabilities: z.ZodDefault<z.ZodArray<z.ZodString>> | z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
740
|
+
[x: string]: string;
|
|
741
|
+
}>>>;
|
|
742
|
+
tools: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
743
|
+
}, z.core.$strip>;
|
|
1017
744
|
/**
|
|
1018
745
|
* ADR-071 §2.6: тело `PUT /api/v2/settings/tools-disabled`. Неизвестная
|
|
1019
746
|
* capability — ошибка (закрытый набор: опечатка молча ничего не отключит).
|
|
@@ -1021,66 +748,30 @@ export declare function createToolsDisabledSchema(strictCapabilities: boolean):
|
|
|
1021
748
|
* регистрируются лениво); непустые.
|
|
1022
749
|
*/
|
|
1023
750
|
export declare const toolsDisabledSchema: z.ZodObject<{
|
|
1024
|
-
capabilities: z.ZodDefault<z.ZodArray<z.
|
|
1025
|
-
|
|
1026
|
-
}
|
|
1027
|
-
tools:
|
|
1028
|
-
|
|
1029
|
-
}, {
|
|
1030
|
-
tools?: string[] | undefined;
|
|
1031
|
-
capabilities?: string[] | undefined;
|
|
1032
|
-
}>;
|
|
751
|
+
capabilities: z.ZodDefault<z.ZodArray<z.ZodString>> | z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
752
|
+
[x: string]: string;
|
|
753
|
+
}>>>;
|
|
754
|
+
tools: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
755
|
+
}, z.core.$strip>;
|
|
1033
756
|
/**
|
|
1034
757
|
* ADR-071 §2.4: базовый контракт MCP-скоупа сессии (ссылки на реестр по имени).
|
|
1035
758
|
* `undefined` ≠ `[]`: отсутствующее поле сохраняет текущее значение.
|
|
1036
759
|
*/
|
|
1037
|
-
export declare const sessionMcpScopeSchema: z.
|
|
1038
|
-
mcpServers: z.ZodOptional<z.ZodArray<z.ZodString
|
|
1039
|
-
mcpDisabledServers: z.ZodOptional<z.ZodArray<z.ZodString
|
|
1040
|
-
},
|
|
1041
|
-
mcpServers?: string[] | undefined;
|
|
1042
|
-
mcpDisabledServers?: string[] | undefined;
|
|
1043
|
-
}, {
|
|
1044
|
-
mcpServers?: string[] | undefined;
|
|
1045
|
-
mcpDisabledServers?: string[] | undefined;
|
|
1046
|
-
}>, {
|
|
1047
|
-
mcpServers?: string[] | undefined;
|
|
1048
|
-
mcpDisabledServers?: string[] | undefined;
|
|
1049
|
-
}, {
|
|
1050
|
-
mcpServers?: string[] | undefined;
|
|
1051
|
-
mcpDisabledServers?: string[] | undefined;
|
|
1052
|
-
}>;
|
|
760
|
+
export declare const sessionMcpScopeSchema: z.ZodObject<{
|
|
761
|
+
mcpServers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
762
|
+
mcpDisabledServers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
763
|
+
}, z.core.$strip>;
|
|
1053
764
|
/**
|
|
1054
765
|
* ADR-071 §2.4: тело `PUT /api/v2/sessions/:id/mcp`: точечный toggle
|
|
1055
766
|
* (`{ name, enabled }`, в т.ч. opt-out системного сервера) или полная/частичная
|
|
1056
767
|
* замена (`{ mcpServers?, mcpDisabledServers? }`).
|
|
1057
768
|
*/
|
|
1058
|
-
export declare const sessionMcpUpdateSchema: z.
|
|
769
|
+
export declare const sessionMcpUpdateSchema: z.ZodObject<{
|
|
1059
770
|
name: z.ZodOptional<z.ZodString>;
|
|
1060
771
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1061
|
-
mcpServers: z.ZodOptional<z.ZodArray<z.ZodString
|
|
1062
|
-
mcpDisabledServers: z.ZodOptional<z.ZodArray<z.ZodString
|
|
1063
|
-
},
|
|
1064
|
-
mcpServers?: string[] | undefined;
|
|
1065
|
-
mcpDisabledServers?: string[] | undefined;
|
|
1066
|
-
name?: string | undefined;
|
|
1067
|
-
enabled?: boolean | undefined;
|
|
1068
|
-
}, {
|
|
1069
|
-
mcpServers?: string[] | undefined;
|
|
1070
|
-
mcpDisabledServers?: string[] | undefined;
|
|
1071
|
-
name?: string | undefined;
|
|
1072
|
-
enabled?: boolean | undefined;
|
|
1073
|
-
}>, {
|
|
1074
|
-
mcpServers?: string[] | undefined;
|
|
1075
|
-
mcpDisabledServers?: string[] | undefined;
|
|
1076
|
-
name?: string | undefined;
|
|
1077
|
-
enabled?: boolean | undefined;
|
|
1078
|
-
}, {
|
|
1079
|
-
mcpServers?: string[] | undefined;
|
|
1080
|
-
mcpDisabledServers?: string[] | undefined;
|
|
1081
|
-
name?: string | undefined;
|
|
1082
|
-
enabled?: boolean | undefined;
|
|
1083
|
-
}>;
|
|
772
|
+
mcpServers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
773
|
+
mcpDisabledServers: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
774
|
+
}, z.core.$strip>;
|
|
1084
775
|
export type SessionMcpScopeRequest = z.infer<typeof sessionMcpScopeSchema>;
|
|
1085
776
|
export type SessionMcpUpdateRequest = z.infer<typeof sessionMcpUpdateSchema>;
|
|
1086
777
|
export type ProjectMcpUpdateRequest = z.infer<typeof projectMcpUpdateSchema>;
|
|
@@ -1091,6 +782,11 @@ export type ProjectUpdateRequest = z.infer<typeof projectUpdateSchema>;
|
|
|
1091
782
|
export type SSHKeyCreateRequest = z.infer<typeof sshKeyCreateSchema>;
|
|
1092
783
|
export type SSHKeyUpdateRequest = z.infer<typeof sshKeyUpdateSchema>;
|
|
1093
784
|
export type PromptRequest = z.infer<typeof promptRequestSchema>;
|
|
785
|
+
/**
|
|
786
|
+
* Форма ВХОДА схемы промпта: поля с серверным `default` (`stream`, `mode`)
|
|
787
|
+
* необязательны — сервер подставит значение. Для тела запроса SDK.
|
|
788
|
+
*/
|
|
789
|
+
export type PromptRequestInput = z.input<typeof promptRequestSchema>;
|
|
1094
790
|
export type SpaLoginRequest = z.infer<typeof spaLoginSchema>;
|
|
1095
791
|
export type FsListQuery = z.infer<typeof fsListQuerySchema>;
|
|
1096
792
|
export type FsReadQuery = z.infer<typeof fsReadQuerySchema>;
|
|
@@ -1119,64 +815,25 @@ export declare const skillNameSchema: z.ZodString;
|
|
|
1119
815
|
export declare const skillCreateSchema: z.ZodObject<{
|
|
1120
816
|
name: z.ZodString;
|
|
1121
817
|
description: z.ZodString;
|
|
1122
|
-
/** Тело Markdown (без frontmatter). */
|
|
1123
818
|
body: z.ZodOptional<z.ZodString>;
|
|
1124
|
-
/** Дополнительные supporting-файлы (относительный путь → содержимое). */
|
|
1125
819
|
files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1126
|
-
},
|
|
1127
|
-
|
|
1128
|
-
description: string;
|
|
1129
|
-
body?: string | undefined;
|
|
1130
|
-
files?: Record<string, string> | undefined;
|
|
1131
|
-
}, {
|
|
1132
|
-
name: string;
|
|
1133
|
-
description: string;
|
|
1134
|
-
body?: string | undefined;
|
|
1135
|
-
files?: Record<string, string> | undefined;
|
|
1136
|
-
}>;
|
|
1137
|
-
export declare const skillUpdateSchema: z.ZodEffects<z.ZodObject<{
|
|
820
|
+
}, z.core.$strip>;
|
|
821
|
+
export declare const skillUpdateSchema: z.ZodObject<{
|
|
1138
822
|
description: z.ZodOptional<z.ZodString>;
|
|
1139
823
|
body: z.ZodOptional<z.ZodString>;
|
|
1140
|
-
/** Толерантный контейнер (неизвестные ключи сохраняются). */
|
|
1141
824
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1142
|
-
},
|
|
1143
|
-
description?: string | undefined;
|
|
1144
|
-
body?: string | undefined;
|
|
1145
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1146
|
-
}, {
|
|
1147
|
-
description?: string | undefined;
|
|
1148
|
-
body?: string | undefined;
|
|
1149
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1150
|
-
}>, {
|
|
1151
|
-
description?: string | undefined;
|
|
1152
|
-
body?: string | undefined;
|
|
1153
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1154
|
-
}, {
|
|
1155
|
-
description?: string | undefined;
|
|
1156
|
-
body?: string | undefined;
|
|
1157
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1158
|
-
}>;
|
|
825
|
+
}, z.core.$strip>;
|
|
1159
826
|
export declare const skillFileWriteSchema: z.ZodObject<{
|
|
1160
827
|
content: z.ZodString;
|
|
1161
|
-
},
|
|
1162
|
-
content: string;
|
|
1163
|
-
}, {
|
|
1164
|
-
content: string;
|
|
1165
|
-
}>;
|
|
828
|
+
}, z.core.$strip>;
|
|
1166
829
|
/**
|
|
1167
830
|
* ADR-046 §4.5: per-session enable/disable скиллов (по образцу MCP-скоупа).
|
|
1168
831
|
* `undefined` ≠ `[]`: отсутствующее поле сохраняет текущее значение.
|
|
1169
832
|
*/
|
|
1170
833
|
export declare const skillSessionOverrideSchema: z.ZodObject<{
|
|
1171
|
-
skills: z.ZodOptional<z.ZodArray<z.ZodString
|
|
1172
|
-
skillsDisabled: z.ZodOptional<z.ZodArray<z.ZodString
|
|
1173
|
-
},
|
|
1174
|
-
skills?: string[] | undefined;
|
|
1175
|
-
skillsDisabled?: string[] | undefined;
|
|
1176
|
-
}, {
|
|
1177
|
-
skills?: string[] | undefined;
|
|
1178
|
-
skillsDisabled?: string[] | undefined;
|
|
1179
|
-
}>;
|
|
834
|
+
skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
835
|
+
skillsDisabled: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
836
|
+
}, z.core.$strip>;
|
|
1180
837
|
export type SkillCreateRequest = z.infer<typeof skillCreateSchema>;
|
|
1181
838
|
export type SkillUpdateRequest = z.infer<typeof skillUpdateSchema>;
|
|
1182
839
|
export type SkillFileWriteRequest = z.infer<typeof skillFileWriteSchema>;
|
|
@@ -1185,34 +842,16 @@ export type SkillSessionOverrideRequest = z.infer<typeof skillSessionOverrideSch
|
|
|
1185
842
|
export declare const skillBundleSchema: z.ZodObject<{
|
|
1186
843
|
name: z.ZodString;
|
|
1187
844
|
description: z.ZodString;
|
|
1188
|
-
skills: z.ZodArray<z.ZodString
|
|
845
|
+
skills: z.ZodArray<z.ZodString>;
|
|
1189
846
|
instruction: z.ZodOptional<z.ZodString>;
|
|
1190
|
-
},
|
|
1191
|
-
skills: string[];
|
|
1192
|
-
name: string;
|
|
1193
|
-
description: string;
|
|
1194
|
-
instruction?: string | undefined;
|
|
1195
|
-
}, {
|
|
1196
|
-
skills: string[];
|
|
1197
|
-
name: string;
|
|
1198
|
-
description: string;
|
|
1199
|
-
instruction?: string | undefined;
|
|
1200
|
-
}>;
|
|
847
|
+
}, z.core.$strip>;
|
|
1201
848
|
export type SkillBundleRequest = z.infer<typeof skillBundleSchema>;
|
|
1202
849
|
/** ADR-046 §7.4: тело `PUT /api/v2/settings/skills-disabled` (группы/имена). */
|
|
1203
850
|
export declare const skillsDisabledSchema: z.ZodObject<{
|
|
1204
|
-
categories: z.ZodDefault<z.ZodArray<z.ZodString
|
|
1205
|
-
groups: z.ZodDefault<z.ZodArray<z.ZodString
|
|
1206
|
-
skills: z.ZodDefault<z.ZodArray<z.ZodString
|
|
1207
|
-
},
|
|
1208
|
-
skills: string[];
|
|
1209
|
-
categories: string[];
|
|
1210
|
-
groups: string[];
|
|
1211
|
-
}, {
|
|
1212
|
-
skills?: string[] | undefined;
|
|
1213
|
-
categories?: string[] | undefined;
|
|
1214
|
-
groups?: string[] | undefined;
|
|
1215
|
-
}>;
|
|
851
|
+
categories: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
852
|
+
groups: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
853
|
+
skills: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
854
|
+
}, z.core.$strip>;
|
|
1216
855
|
export type SkillsDisabledRequest = z.infer<typeof skillsDisabledSchema>;
|
|
1217
856
|
/**
|
|
1218
857
|
* ADR-046 §4.5: тело `PUT /api/v2/settings/skills` — системные настройки:
|
|
@@ -1222,99 +861,33 @@ export type SkillsDisabledRequest = z.infer<typeof skillsDisabledSchema>;
|
|
|
1222
861
|
*/
|
|
1223
862
|
export declare const skillsSystemSettingsSchema: z.ZodObject<{
|
|
1224
863
|
disabled: z.ZodOptional<z.ZodObject<{
|
|
1225
|
-
categories: z.ZodDefault<z.ZodArray<z.ZodString
|
|
1226
|
-
groups: z.ZodDefault<z.ZodArray<z.ZodString
|
|
1227
|
-
skills: z.ZodDefault<z.ZodArray<z.ZodString
|
|
1228
|
-
},
|
|
1229
|
-
skills: string[];
|
|
1230
|
-
categories: string[];
|
|
1231
|
-
groups: string[];
|
|
1232
|
-
}, {
|
|
1233
|
-
skills?: string[] | undefined;
|
|
1234
|
-
categories?: string[] | undefined;
|
|
1235
|
-
groups?: string[] | undefined;
|
|
1236
|
-
}>>;
|
|
864
|
+
categories: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
865
|
+
groups: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
866
|
+
skills: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
867
|
+
}, z.core.$strip>>;
|
|
1237
868
|
disabledForNewProjects: z.ZodOptional<z.ZodObject<{
|
|
1238
|
-
categories: z.ZodDefault<z.ZodArray<z.ZodString
|
|
1239
|
-
groups: z.ZodDefault<z.ZodArray<z.ZodString
|
|
1240
|
-
skills: z.ZodDefault<z.ZodArray<z.ZodString
|
|
1241
|
-
},
|
|
1242
|
-
skills: string[];
|
|
1243
|
-
categories: string[];
|
|
1244
|
-
groups: string[];
|
|
1245
|
-
}, {
|
|
1246
|
-
skills?: string[] | undefined;
|
|
1247
|
-
categories?: string[] | undefined;
|
|
1248
|
-
groups?: string[] | undefined;
|
|
1249
|
-
}>>;
|
|
869
|
+
categories: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
870
|
+
groups: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
871
|
+
skills: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
872
|
+
}, z.core.$strip>>;
|
|
1250
873
|
policy: z.ZodOptional<z.ZodString>;
|
|
1251
|
-
},
|
|
1252
|
-
disabled?: {
|
|
1253
|
-
skills: string[];
|
|
1254
|
-
categories: string[];
|
|
1255
|
-
groups: string[];
|
|
1256
|
-
} | undefined;
|
|
1257
|
-
disabledForNewProjects?: {
|
|
1258
|
-
skills: string[];
|
|
1259
|
-
categories: string[];
|
|
1260
|
-
groups: string[];
|
|
1261
|
-
} | undefined;
|
|
1262
|
-
policy?: string | undefined;
|
|
1263
|
-
}, {
|
|
1264
|
-
disabled?: {
|
|
1265
|
-
skills?: string[] | undefined;
|
|
1266
|
-
categories?: string[] | undefined;
|
|
1267
|
-
groups?: string[] | undefined;
|
|
1268
|
-
} | undefined;
|
|
1269
|
-
disabledForNewProjects?: {
|
|
1270
|
-
skills?: string[] | undefined;
|
|
1271
|
-
categories?: string[] | undefined;
|
|
1272
|
-
groups?: string[] | undefined;
|
|
1273
|
-
} | undefined;
|
|
1274
|
-
policy?: string | undefined;
|
|
1275
|
-
}>;
|
|
874
|
+
}, z.core.$strip>;
|
|
1276
875
|
export type SkillsSystemSettingsRequest = z.infer<typeof skillsSystemSettingsSchema>;
|
|
1277
876
|
/**
|
|
1278
877
|
* ADR-046 §4.5: тело `PUT /api/v2/sessions/:id/skills`: точечный toggle
|
|
1279
878
|
* (`{ name, enabled }`) или полная/частичная замена (`{ skills?, skillsDisabled? }`).
|
|
1280
879
|
*/
|
|
1281
|
-
export declare const sessionSkillUpdateSchema: z.
|
|
880
|
+
export declare const sessionSkillUpdateSchema: z.ZodObject<{
|
|
1282
881
|
name: z.ZodOptional<z.ZodString>;
|
|
1283
882
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1284
|
-
skills: z.ZodOptional<z.ZodArray<z.ZodString
|
|
1285
|
-
skillsDisabled: z.ZodOptional<z.ZodArray<z.ZodString
|
|
1286
|
-
},
|
|
1287
|
-
skills?: string[] | undefined;
|
|
1288
|
-
skillsDisabled?: string[] | undefined;
|
|
1289
|
-
name?: string | undefined;
|
|
1290
|
-
enabled?: boolean | undefined;
|
|
1291
|
-
}, {
|
|
1292
|
-
skills?: string[] | undefined;
|
|
1293
|
-
skillsDisabled?: string[] | undefined;
|
|
1294
|
-
name?: string | undefined;
|
|
1295
|
-
enabled?: boolean | undefined;
|
|
1296
|
-
}>, {
|
|
1297
|
-
skills?: string[] | undefined;
|
|
1298
|
-
skillsDisabled?: string[] | undefined;
|
|
1299
|
-
name?: string | undefined;
|
|
1300
|
-
enabled?: boolean | undefined;
|
|
1301
|
-
}, {
|
|
1302
|
-
skills?: string[] | undefined;
|
|
1303
|
-
skillsDisabled?: string[] | undefined;
|
|
1304
|
-
name?: string | undefined;
|
|
1305
|
-
enabled?: boolean | undefined;
|
|
1306
|
-
}>;
|
|
883
|
+
skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
884
|
+
skillsDisabled: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
885
|
+
}, z.core.$strip>;
|
|
1307
886
|
/** ADR-046 §4.5: тело `PUT /api/v2/projects/:id/skills`. */
|
|
1308
887
|
export declare const projectSkillUpdateSchema: z.ZodObject<{
|
|
1309
|
-
enabled: z.ZodOptional<z.ZodArray<z.ZodString
|
|
1310
|
-
defaultOn: z.ZodOptional<z.ZodArray<z.ZodString
|
|
1311
|
-
},
|
|
1312
|
-
enabled?: string[] | undefined;
|
|
1313
|
-
defaultOn?: string[] | undefined;
|
|
1314
|
-
}, {
|
|
1315
|
-
enabled?: string[] | undefined;
|
|
1316
|
-
defaultOn?: string[] | undefined;
|
|
1317
|
-
}>;
|
|
888
|
+
enabled: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
889
|
+
defaultOn: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
890
|
+
}, z.core.$strip>;
|
|
1318
891
|
export type SessionSkillUpdateRequest = z.infer<typeof sessionSkillUpdateSchema>;
|
|
1319
892
|
export type ProjectSkillUpdateRequest = z.infer<typeof projectSkillUpdateSchema>;
|
|
1320
893
|
/** ADR-089: схема идентичности отправителя внешнего события. */
|
|
@@ -1322,69 +895,44 @@ export declare const eventIdentitySchema: z.ZodObject<{
|
|
|
1322
895
|
principalId: z.ZodOptional<z.ZodString>;
|
|
1323
896
|
chatKey: z.ZodOptional<z.ZodString>;
|
|
1324
897
|
threadKey: z.ZodOptional<z.ZodString>;
|
|
1325
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodString
|
|
1326
|
-
},
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
898
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
899
|
+
}, z.core.$strip>;
|
|
900
|
+
/**
|
|
901
|
+
* ADR-115 × ADR-089: ссылка на вложение внешнего события.
|
|
902
|
+
*
|
|
903
|
+
* `blobPath` ограничен контуром вложений (`attachments/…`) — через событие нельзя
|
|
904
|
+
* сослаться на произвольный объект blob-хранилища (артефакты, логи, скиллы).
|
|
905
|
+
* `sha256` — 64 hex-символа (content-addressed адрес), `mime`/`size` — непустые.
|
|
906
|
+
*/
|
|
907
|
+
export declare const eventAttachmentRefSchema: z.ZodObject<{
|
|
908
|
+
blobPath: z.ZodString;
|
|
909
|
+
sha256: z.ZodString;
|
|
910
|
+
mime: z.ZodString;
|
|
911
|
+
size: z.ZodNumber;
|
|
912
|
+
name: z.ZodOptional<z.ZodString>;
|
|
913
|
+
}, z.core.$strip>;
|
|
1337
914
|
/** ADR-089: схема нормализованного внешнего события (`payload` не типизируется). */
|
|
1338
915
|
export declare const synthEventSchema: z.ZodObject<{
|
|
1339
916
|
id: z.ZodString;
|
|
1340
917
|
source: z.ZodString;
|
|
1341
918
|
type: z.ZodString;
|
|
1342
919
|
payload: z.ZodUnknown;
|
|
1343
|
-
identity: z.
|
|
920
|
+
identity: z.ZodPrefault<z.ZodObject<{
|
|
1344
921
|
principalId: z.ZodOptional<z.ZodString>;
|
|
1345
922
|
chatKey: z.ZodOptional<z.ZodString>;
|
|
1346
923
|
threadKey: z.ZodOptional<z.ZodString>;
|
|
1347
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodString
|
|
1348
|
-
},
|
|
1349
|
-
principalId?: string | undefined;
|
|
1350
|
-
chatKey?: string | undefined;
|
|
1351
|
-
threadKey?: string | undefined;
|
|
1352
|
-
roles?: string[] | undefined;
|
|
1353
|
-
}, {
|
|
1354
|
-
principalId?: string | undefined;
|
|
1355
|
-
chatKey?: string | undefined;
|
|
1356
|
-
threadKey?: string | undefined;
|
|
1357
|
-
roles?: string[] | undefined;
|
|
1358
|
-
}>>;
|
|
924
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
925
|
+
}, z.core.$strip>>;
|
|
1359
926
|
dedupKey: z.ZodString;
|
|
1360
927
|
ts: z.ZodString;
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
roles?: string[] | undefined;
|
|
1370
|
-
};
|
|
1371
|
-
dedupKey: string;
|
|
1372
|
-
ts: string;
|
|
1373
|
-
payload?: unknown;
|
|
1374
|
-
}, {
|
|
1375
|
-
type: string;
|
|
1376
|
-
id: string;
|
|
1377
|
-
source: string;
|
|
1378
|
-
dedupKey: string;
|
|
1379
|
-
ts: string;
|
|
1380
|
-
payload?: unknown;
|
|
1381
|
-
identity?: {
|
|
1382
|
-
principalId?: string | undefined;
|
|
1383
|
-
chatKey?: string | undefined;
|
|
1384
|
-
threadKey?: string | undefined;
|
|
1385
|
-
roles?: string[] | undefined;
|
|
1386
|
-
} | undefined;
|
|
1387
|
-
}>;
|
|
928
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
929
|
+
blobPath: z.ZodString;
|
|
930
|
+
sha256: z.ZodString;
|
|
931
|
+
mime: z.ZodString;
|
|
932
|
+
size: z.ZodNumber;
|
|
933
|
+
name: z.ZodOptional<z.ZodString>;
|
|
934
|
+
}, z.core.$strip>>>;
|
|
935
|
+
}, z.core.$strip>;
|
|
1388
936
|
/** ADR-089: схема устойчивой привязки внешнего адреса к сессии/шаблону. */
|
|
1389
937
|
export declare const eventBindingSchema: z.ZodObject<{
|
|
1390
938
|
id: z.ZodString;
|
|
@@ -1392,82 +940,102 @@ export declare const eventBindingSchema: z.ZodObject<{
|
|
|
1392
940
|
chatKey: z.ZodOptional<z.ZodString>;
|
|
1393
941
|
threadKey: z.ZodOptional<z.ZodString>;
|
|
1394
942
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
1395
|
-
mode: z.ZodEnum<
|
|
943
|
+
mode: z.ZodEnum<{
|
|
944
|
+
queue: "queue";
|
|
945
|
+
bound: "bound";
|
|
946
|
+
ephemeral: "ephemeral";
|
|
947
|
+
}>;
|
|
1396
948
|
agentTemplate: z.ZodOptional<z.ZodString>;
|
|
1397
949
|
project: z.ZodOptional<z.ZodString>;
|
|
1398
|
-
},
|
|
1399
|
-
mode: "bound" | "ephemeral" | "queue";
|
|
1400
|
-
id: string;
|
|
1401
|
-
source: string;
|
|
1402
|
-
chatKey?: string | undefined;
|
|
1403
|
-
threadKey?: string | undefined;
|
|
1404
|
-
sessionId?: string | undefined;
|
|
1405
|
-
agentTemplate?: string | undefined;
|
|
1406
|
-
project?: string | undefined;
|
|
1407
|
-
}, {
|
|
1408
|
-
mode: "bound" | "ephemeral" | "queue";
|
|
1409
|
-
id: string;
|
|
1410
|
-
source: string;
|
|
1411
|
-
chatKey?: string | undefined;
|
|
1412
|
-
threadKey?: string | undefined;
|
|
1413
|
-
sessionId?: string | undefined;
|
|
1414
|
-
agentTemplate?: string | undefined;
|
|
1415
|
-
project?: string | undefined;
|
|
1416
|
-
}>;
|
|
950
|
+
}, z.core.$strip>;
|
|
1417
951
|
/** ADR-089: схема запроса создания/привязки сессии — единый funnel. */
|
|
1418
952
|
export declare const sessionRequestSchema: z.ZodObject<{
|
|
1419
|
-
initiator: z.ZodEnum<
|
|
1420
|
-
|
|
953
|
+
initiator: z.ZodEnum<{
|
|
954
|
+
user: "user";
|
|
955
|
+
system: "system";
|
|
956
|
+
agent: "agent";
|
|
957
|
+
external: "external";
|
|
958
|
+
}>;
|
|
959
|
+
intent: z.ZodEnum<{
|
|
960
|
+
event: "event";
|
|
961
|
+
explicit: "explicit";
|
|
962
|
+
}>;
|
|
1421
963
|
projectId: z.ZodOptional<z.ZodString>;
|
|
1422
964
|
parentId: z.ZodOptional<z.ZodString>;
|
|
1423
965
|
agentTemplate: z.ZodOptional<z.ZodString>;
|
|
1424
|
-
mode: z.ZodOptional<z.ZodEnum<
|
|
966
|
+
mode: z.ZodOptional<z.ZodEnum<{
|
|
967
|
+
queue: "queue";
|
|
968
|
+
bound: "bound";
|
|
969
|
+
ephemeral: "ephemeral";
|
|
970
|
+
}>>;
|
|
1425
971
|
ttl: z.ZodOptional<z.ZodString>;
|
|
1426
972
|
title: z.ZodOptional<z.ZodString>;
|
|
1427
|
-
icon: z.ZodOptional<z.ZodEnum<
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
973
|
+
icon: z.ZodOptional<z.ZodEnum<{
|
|
974
|
+
file: "file";
|
|
975
|
+
git: "git";
|
|
976
|
+
chat: "chat";
|
|
977
|
+
image: "image";
|
|
978
|
+
task: "task";
|
|
979
|
+
code: "code";
|
|
980
|
+
terminal: "terminal";
|
|
981
|
+
rocket: "rocket";
|
|
982
|
+
flask: "flask";
|
|
983
|
+
gamepad: "gamepad";
|
|
984
|
+
briefcase: "briefcase";
|
|
985
|
+
home: "home";
|
|
986
|
+
globe: "globe";
|
|
987
|
+
leaf: "leaf";
|
|
988
|
+
shield: "shield";
|
|
989
|
+
palette: "palette";
|
|
990
|
+
server: "server";
|
|
991
|
+
phone: "phone";
|
|
992
|
+
database: "database";
|
|
993
|
+
lightbulb: "lightbulb";
|
|
994
|
+
music: "music";
|
|
995
|
+
camera: "camera";
|
|
996
|
+
book: "book";
|
|
997
|
+
heart: "heart";
|
|
998
|
+
folder: "folder";
|
|
999
|
+
cpu: "cpu";
|
|
1000
|
+
"file-code": "file-code";
|
|
1001
|
+
docs: "docs";
|
|
1002
|
+
todo: "todo";
|
|
1003
|
+
bug: "bug";
|
|
1004
|
+
robot: "robot";
|
|
1005
|
+
brain: "brain";
|
|
1006
|
+
repo: "repo";
|
|
1007
|
+
test: "test";
|
|
1008
|
+
chart: "chart";
|
|
1009
|
+
star: "star";
|
|
1010
|
+
calendar: "calendar";
|
|
1011
|
+
}>>;
|
|
1012
|
+
color: z.ZodOptional<z.ZodEnum<{
|
|
1013
|
+
a1: "a1";
|
|
1014
|
+
a2: "a2";
|
|
1015
|
+
a3: "a3";
|
|
1016
|
+
a4: "a4";
|
|
1017
|
+
a5: "a5";
|
|
1018
|
+
a6: "a6";
|
|
1019
|
+
a7: "a7";
|
|
1020
|
+
a8: "a8";
|
|
1021
|
+
a9: "a9";
|
|
1022
|
+
a10: "a10";
|
|
1023
|
+
a11: "a11";
|
|
1024
|
+
a12: "a12";
|
|
1025
|
+
a13: "a13";
|
|
1026
|
+
a14: "a14";
|
|
1027
|
+
a15: "a15";
|
|
1028
|
+
a16: "a16";
|
|
1029
|
+
}>>;
|
|
1030
|
+
sessionOrigin: z.ZodOptional<z.ZodEnum<{
|
|
1031
|
+
user: "user";
|
|
1032
|
+
fork: "fork";
|
|
1033
|
+
subagent: "subagent";
|
|
1034
|
+
}>>;
|
|
1431
1035
|
settings: z.ZodOptional<z.ZodUnknown>;
|
|
1432
1036
|
sourceEventId: z.ZodOptional<z.ZodString>;
|
|
1433
1037
|
dedupKey: z.ZodOptional<z.ZodString>;
|
|
1434
|
-
},
|
|
1435
|
-
initiator: "user" | "system" | "agent" | "external";
|
|
1436
|
-
intent: "explicit" | "event";
|
|
1437
|
-
mode?: "bound" | "ephemeral" | "queue" | undefined;
|
|
1438
|
-
title?: string | undefined;
|
|
1439
|
-
icon?: "code" | "chat" | "task" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | undefined;
|
|
1440
|
-
color?: "a1" | "a2" | "a3" | "a4" | "a5" | "a6" | "a7" | "a8" | "a9" | "a10" | "a11" | "a12" | "a13" | "a14" | "a15" | "a16" | undefined;
|
|
1441
|
-
projectId?: string | undefined;
|
|
1442
|
-
engine?: "synth" | "opencode" | "cline" | undefined;
|
|
1443
|
-
settings?: unknown;
|
|
1444
|
-
dedupKey?: string | undefined;
|
|
1445
|
-
agentTemplate?: string | undefined;
|
|
1446
|
-
parentId?: string | undefined;
|
|
1447
|
-
ttl?: string | undefined;
|
|
1448
|
-
sessionOrigin?: "user" | "fork" | "subagent" | undefined;
|
|
1449
|
-
sourceEventId?: string | undefined;
|
|
1450
|
-
}, {
|
|
1451
|
-
initiator: "user" | "system" | "agent" | "external";
|
|
1452
|
-
intent: "explicit" | "event";
|
|
1453
|
-
mode?: "bound" | "ephemeral" | "queue" | undefined;
|
|
1454
|
-
title?: string | undefined;
|
|
1455
|
-
icon?: "code" | "chat" | "task" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | undefined;
|
|
1456
|
-
color?: "a1" | "a2" | "a3" | "a4" | "a5" | "a6" | "a7" | "a8" | "a9" | "a10" | "a11" | "a12" | "a13" | "a14" | "a15" | "a16" | undefined;
|
|
1457
|
-
projectId?: string | undefined;
|
|
1458
|
-
engine?: "synth" | "opencode" | "cline" | undefined;
|
|
1459
|
-
settings?: unknown;
|
|
1460
|
-
dedupKey?: string | undefined;
|
|
1461
|
-
agentTemplate?: string | undefined;
|
|
1462
|
-
parentId?: string | undefined;
|
|
1463
|
-
ttl?: string | undefined;
|
|
1464
|
-
sessionOrigin?: "user" | "fork" | "subagent" | undefined;
|
|
1465
|
-
sourceEventId?: string | undefined;
|
|
1466
|
-
}>;
|
|
1467
|
-
/**
|
|
1468
|
-
* ADR-089: вход приёма внешнего события (`POST /api/v2/events`). `id`/`dedupKey`/`ts`
|
|
1469
|
-
* нормализуются `EventIngress`, поэтому здесь опциональны.
|
|
1470
|
-
*/
|
|
1038
|
+
}, z.core.$strip>;
|
|
1471
1039
|
export declare const eventIngestSchema: z.ZodObject<{
|
|
1472
1040
|
source: z.ZodString;
|
|
1473
1041
|
type: z.ZodString;
|
|
@@ -1476,45 +1044,18 @@ export declare const eventIngestSchema: z.ZodObject<{
|
|
|
1476
1044
|
principalId: z.ZodOptional<z.ZodString>;
|
|
1477
1045
|
chatKey: z.ZodOptional<z.ZodString>;
|
|
1478
1046
|
threadKey: z.ZodOptional<z.ZodString>;
|
|
1479
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodString
|
|
1480
|
-
},
|
|
1481
|
-
principalId?: string | undefined;
|
|
1482
|
-
chatKey?: string | undefined;
|
|
1483
|
-
threadKey?: string | undefined;
|
|
1484
|
-
roles?: string[] | undefined;
|
|
1485
|
-
}, {
|
|
1486
|
-
principalId?: string | undefined;
|
|
1487
|
-
chatKey?: string | undefined;
|
|
1488
|
-
threadKey?: string | undefined;
|
|
1489
|
-
roles?: string[] | undefined;
|
|
1490
|
-
}>>;
|
|
1047
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1048
|
+
}, z.core.$strip>>;
|
|
1491
1049
|
dedupKey: z.ZodOptional<z.ZodString>;
|
|
1492
1050
|
ts: z.ZodOptional<z.ZodString>;
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
roles?: string[] | undefined;
|
|
1502
|
-
} | undefined;
|
|
1503
|
-
dedupKey?: string | undefined;
|
|
1504
|
-
ts?: string | undefined;
|
|
1505
|
-
}, {
|
|
1506
|
-
type: string;
|
|
1507
|
-
source: string;
|
|
1508
|
-
payload?: unknown;
|
|
1509
|
-
identity?: {
|
|
1510
|
-
principalId?: string | undefined;
|
|
1511
|
-
chatKey?: string | undefined;
|
|
1512
|
-
threadKey?: string | undefined;
|
|
1513
|
-
roles?: string[] | undefined;
|
|
1514
|
-
} | undefined;
|
|
1515
|
-
dedupKey?: string | undefined;
|
|
1516
|
-
ts?: string | undefined;
|
|
1517
|
-
}>;
|
|
1051
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1052
|
+
blobPath: z.ZodString;
|
|
1053
|
+
sha256: z.ZodString;
|
|
1054
|
+
mime: z.ZodString;
|
|
1055
|
+
size: z.ZodNumber;
|
|
1056
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1057
|
+
}, z.core.$strip>>>;
|
|
1058
|
+
}, z.core.$strip>;
|
|
1518
1059
|
export type EventIngestRequest = z.infer<typeof eventIngestSchema>;
|
|
1519
1060
|
/** ADR-089: вход upsert биндинга (`POST /api/v2/events/bindings`) — без `id`. */
|
|
1520
1061
|
export declare const eventBindingInputSchema: z.ZodObject<{
|
|
@@ -1522,26 +1063,14 @@ export declare const eventBindingInputSchema: z.ZodObject<{
|
|
|
1522
1063
|
chatKey: z.ZodOptional<z.ZodString>;
|
|
1523
1064
|
threadKey: z.ZodOptional<z.ZodString>;
|
|
1524
1065
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
1525
|
-
mode: z.ZodEnum<
|
|
1066
|
+
mode: z.ZodEnum<{
|
|
1067
|
+
queue: "queue";
|
|
1068
|
+
bound: "bound";
|
|
1069
|
+
ephemeral: "ephemeral";
|
|
1070
|
+
}>;
|
|
1526
1071
|
agentTemplate: z.ZodOptional<z.ZodString>;
|
|
1527
1072
|
project: z.ZodOptional<z.ZodString>;
|
|
1528
|
-
},
|
|
1529
|
-
mode: "bound" | "ephemeral" | "queue";
|
|
1530
|
-
source: string;
|
|
1531
|
-
chatKey?: string | undefined;
|
|
1532
|
-
threadKey?: string | undefined;
|
|
1533
|
-
sessionId?: string | undefined;
|
|
1534
|
-
agentTemplate?: string | undefined;
|
|
1535
|
-
project?: string | undefined;
|
|
1536
|
-
}, {
|
|
1537
|
-
mode: "bound" | "ephemeral" | "queue";
|
|
1538
|
-
source: string;
|
|
1539
|
-
chatKey?: string | undefined;
|
|
1540
|
-
threadKey?: string | undefined;
|
|
1541
|
-
sessionId?: string | undefined;
|
|
1542
|
-
agentTemplate?: string | undefined;
|
|
1543
|
-
project?: string | undefined;
|
|
1544
|
-
}>;
|
|
1073
|
+
}, z.core.$strip>;
|
|
1545
1074
|
export type EventBindingInputRequest = z.infer<typeof eventBindingInputSchema>;
|
|
1546
1075
|
/**
|
|
1547
1076
|
* ADR-089/ADR-052: метаданные API-ключа привязки для приёма событий.
|
|
@@ -1559,31 +1088,7 @@ export declare const eventBindingApiKeySchema: z.ZodObject<{
|
|
|
1559
1088
|
prefix: z.ZodString;
|
|
1560
1089
|
expiresAt: z.ZodOptional<z.ZodString>;
|
|
1561
1090
|
revokedAt: z.ZodOptional<z.ZodString>;
|
|
1562
|
-
},
|
|
1563
|
-
id: string;
|
|
1564
|
-
bindingId: string;
|
|
1565
|
-
label: string;
|
|
1566
|
-
createdBy: string;
|
|
1567
|
-
createdAt: string;
|
|
1568
|
-
prefix: string;
|
|
1569
|
-
description?: string | undefined;
|
|
1570
|
-
rateLimitPerMinute?: number | undefined;
|
|
1571
|
-
lastUsedAt?: string | undefined;
|
|
1572
|
-
expiresAt?: string | undefined;
|
|
1573
|
-
revokedAt?: string | undefined;
|
|
1574
|
-
}, {
|
|
1575
|
-
id: string;
|
|
1576
|
-
bindingId: string;
|
|
1577
|
-
label: string;
|
|
1578
|
-
createdBy: string;
|
|
1579
|
-
createdAt: string;
|
|
1580
|
-
prefix: string;
|
|
1581
|
-
description?: string | undefined;
|
|
1582
|
-
rateLimitPerMinute?: number | undefined;
|
|
1583
|
-
lastUsedAt?: string | undefined;
|
|
1584
|
-
expiresAt?: string | undefined;
|
|
1585
|
-
revokedAt?: string | undefined;
|
|
1586
|
-
}>;
|
|
1091
|
+
}, z.core.$strip>;
|
|
1587
1092
|
export type EventBindingApiKeyMeta = z.infer<typeof eventBindingApiKeySchema>;
|
|
1588
1093
|
/** ADR-089/ADR-052: тело создания API-ключа привязки — обязательная уникальная `label`. */
|
|
1589
1094
|
export declare const eventBindingApiKeyCreateSchema: z.ZodObject<{
|
|
@@ -1591,17 +1096,7 @@ export declare const eventBindingApiKeyCreateSchema: z.ZodObject<{
|
|
|
1591
1096
|
description: z.ZodOptional<z.ZodString>;
|
|
1592
1097
|
expiresAt: z.ZodOptional<z.ZodString>;
|
|
1593
1098
|
rateLimitPerMinute: z.ZodOptional<z.ZodNumber>;
|
|
1594
|
-
},
|
|
1595
|
-
label: string;
|
|
1596
|
-
description?: string | undefined;
|
|
1597
|
-
rateLimitPerMinute?: number | undefined;
|
|
1598
|
-
expiresAt?: string | undefined;
|
|
1599
|
-
}, {
|
|
1600
|
-
label: string;
|
|
1601
|
-
description?: string | undefined;
|
|
1602
|
-
rateLimitPerMinute?: number | undefined;
|
|
1603
|
-
expiresAt?: string | undefined;
|
|
1604
|
-
}>;
|
|
1099
|
+
}, z.core.$strip>;
|
|
1605
1100
|
export type EventBindingApiKeyCreateRequest = z.infer<typeof eventBindingApiKeyCreateSchema>;
|
|
1606
1101
|
/**
|
|
1607
1102
|
* ADR-089/ADR-052: тело обновления API-ключа привязки. Все поля опциональны;
|
|
@@ -1612,17 +1107,7 @@ export declare const eventBindingApiKeyUpdateSchema: z.ZodObject<{
|
|
|
1612
1107
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1613
1108
|
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1614
1109
|
rateLimitPerMinute: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1615
|
-
},
|
|
1616
|
-
description?: string | null | undefined;
|
|
1617
|
-
label?: string | undefined;
|
|
1618
|
-
rateLimitPerMinute?: number | null | undefined;
|
|
1619
|
-
expiresAt?: string | null | undefined;
|
|
1620
|
-
}, {
|
|
1621
|
-
description?: string | null | undefined;
|
|
1622
|
-
label?: string | undefined;
|
|
1623
|
-
rateLimitPerMinute?: number | null | undefined;
|
|
1624
|
-
expiresAt?: string | null | undefined;
|
|
1625
|
-
}>;
|
|
1110
|
+
}, z.core.$strip>;
|
|
1626
1111
|
export type EventBindingApiKeyUpdateRequest = z.infer<typeof eventBindingApiKeyUpdateSchema>;
|
|
1627
1112
|
/** ADR-089: ответ создания ключа — метаданные + plaintext-секрет (единожды). */
|
|
1628
1113
|
export declare const eventBindingApiKeyCreatedSchema: z.ZodObject<{
|
|
@@ -1637,93 +1122,40 @@ export declare const eventBindingApiKeyCreatedSchema: z.ZodObject<{
|
|
|
1637
1122
|
prefix: z.ZodString;
|
|
1638
1123
|
expiresAt: z.ZodOptional<z.ZodString>;
|
|
1639
1124
|
revokedAt: z.ZodOptional<z.ZodString>;
|
|
1640
|
-
} & {
|
|
1641
1125
|
key: z.ZodString;
|
|
1642
|
-
},
|
|
1643
|
-
id: string;
|
|
1644
|
-
bindingId: string;
|
|
1645
|
-
label: string;
|
|
1646
|
-
createdBy: string;
|
|
1647
|
-
createdAt: string;
|
|
1648
|
-
prefix: string;
|
|
1649
|
-
key: string;
|
|
1650
|
-
description?: string | undefined;
|
|
1651
|
-
rateLimitPerMinute?: number | undefined;
|
|
1652
|
-
lastUsedAt?: string | undefined;
|
|
1653
|
-
expiresAt?: string | undefined;
|
|
1654
|
-
revokedAt?: string | undefined;
|
|
1655
|
-
}, {
|
|
1656
|
-
id: string;
|
|
1657
|
-
bindingId: string;
|
|
1658
|
-
label: string;
|
|
1659
|
-
createdBy: string;
|
|
1660
|
-
createdAt: string;
|
|
1661
|
-
prefix: string;
|
|
1662
|
-
key: string;
|
|
1663
|
-
description?: string | undefined;
|
|
1664
|
-
rateLimitPerMinute?: number | undefined;
|
|
1665
|
-
lastUsedAt?: string | undefined;
|
|
1666
|
-
expiresAt?: string | undefined;
|
|
1667
|
-
revokedAt?: string | undefined;
|
|
1668
|
-
}>;
|
|
1126
|
+
}, z.core.$strip>;
|
|
1669
1127
|
export type EventBindingApiKeyCreatedRequest = z.infer<typeof eventBindingApiKeyCreatedSchema>;
|
|
1670
1128
|
/**
|
|
1671
1129
|
* ADR-089: вход `POST /events` при аутентификации API-ключом привязки. Как
|
|
1672
1130
|
* `eventIngestSchema`, но `source` опционален — источник берётся из привязки.
|
|
1131
|
+
* ADR-115 × ADR-089: правило «вложения требуют `dedupKey`» действует и здесь.
|
|
1673
1132
|
*/
|
|
1674
1133
|
export declare const eventKeyIngestSchema: z.ZodObject<{
|
|
1675
|
-
type: z.ZodString;
|
|
1676
1134
|
source: z.ZodOptional<z.ZodString>;
|
|
1135
|
+
type: z.ZodString;
|
|
1677
1136
|
payload: z.ZodOptional<z.ZodUnknown>;
|
|
1678
1137
|
identity: z.ZodOptional<z.ZodObject<{
|
|
1679
1138
|
principalId: z.ZodOptional<z.ZodString>;
|
|
1680
1139
|
chatKey: z.ZodOptional<z.ZodString>;
|
|
1681
1140
|
threadKey: z.ZodOptional<z.ZodString>;
|
|
1682
|
-
roles: z.ZodOptional<z.ZodArray<z.ZodString
|
|
1683
|
-
},
|
|
1684
|
-
principalId?: string | undefined;
|
|
1685
|
-
chatKey?: string | undefined;
|
|
1686
|
-
threadKey?: string | undefined;
|
|
1687
|
-
roles?: string[] | undefined;
|
|
1688
|
-
}, {
|
|
1689
|
-
principalId?: string | undefined;
|
|
1690
|
-
chatKey?: string | undefined;
|
|
1691
|
-
threadKey?: string | undefined;
|
|
1692
|
-
roles?: string[] | undefined;
|
|
1693
|
-
}>>;
|
|
1141
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1142
|
+
}, z.core.$strip>>;
|
|
1694
1143
|
dedupKey: z.ZodOptional<z.ZodString>;
|
|
1695
1144
|
ts: z.ZodOptional<z.ZodString>;
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
roles?: string[] | undefined;
|
|
1705
|
-
} | undefined;
|
|
1706
|
-
dedupKey?: string | undefined;
|
|
1707
|
-
ts?: string | undefined;
|
|
1708
|
-
}, {
|
|
1709
|
-
type: string;
|
|
1710
|
-
source?: string | undefined;
|
|
1711
|
-
payload?: unknown;
|
|
1712
|
-
identity?: {
|
|
1713
|
-
principalId?: string | undefined;
|
|
1714
|
-
chatKey?: string | undefined;
|
|
1715
|
-
threadKey?: string | undefined;
|
|
1716
|
-
roles?: string[] | undefined;
|
|
1717
|
-
} | undefined;
|
|
1718
|
-
dedupKey?: string | undefined;
|
|
1719
|
-
ts?: string | undefined;
|
|
1720
|
-
}>;
|
|
1145
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1146
|
+
blobPath: z.ZodString;
|
|
1147
|
+
sha256: z.ZodString;
|
|
1148
|
+
mime: z.ZodString;
|
|
1149
|
+
size: z.ZodNumber;
|
|
1150
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1151
|
+
}, z.core.$strip>>>;
|
|
1152
|
+
}, z.core.$strip>;
|
|
1721
1153
|
export type EventKeyIngestRequest = z.infer<typeof eventKeyIngestSchema>;
|
|
1722
1154
|
/**
|
|
1723
1155
|
* ADR-052: каталог скоупов service-key + wildcard-семейства. Глобальный `*` не
|
|
1724
1156
|
* принимается (`isKnownScope`).
|
|
1725
1157
|
*/
|
|
1726
|
-
export declare const serviceScopeSchema: z.
|
|
1158
|
+
export declare const serviceScopeSchema: z.ZodString;
|
|
1727
1159
|
/**
|
|
1728
1160
|
* ADR-052: метаданные service-key (ответы API). Секрет (`key`) и его хеш здесь
|
|
1729
1161
|
* отсутствуют — наружу не отдаются (в списке — `prefix`).
|
|
@@ -1732,9 +1164,9 @@ export declare const serviceApiKeySchema: z.ZodObject<{
|
|
|
1732
1164
|
id: z.ZodString;
|
|
1733
1165
|
label: z.ZodString;
|
|
1734
1166
|
description: z.ZodOptional<z.ZodString>;
|
|
1735
|
-
roles: z.ZodArray<z.
|
|
1736
|
-
scopes: z.ZodArray<z.ZodString
|
|
1737
|
-
allowedProjects: z.ZodOptional<z.ZodArray<z.ZodString
|
|
1167
|
+
roles: z.ZodArray<z.ZodEnum<typeof GlobalRole>>;
|
|
1168
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
1169
|
+
allowedProjects: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1738
1170
|
rateLimitPerMinute: z.ZodOptional<z.ZodNumber>;
|
|
1739
1171
|
expiresAt: z.ZodOptional<z.ZodString>;
|
|
1740
1172
|
revokedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -1742,62 +1174,18 @@ export declare const serviceApiKeySchema: z.ZodObject<{
|
|
|
1742
1174
|
createdAt: z.ZodString;
|
|
1743
1175
|
lastUsedAt: z.ZodOptional<z.ZodString>;
|
|
1744
1176
|
prefix: z.ZodString;
|
|
1745
|
-
},
|
|
1746
|
-
id: string;
|
|
1747
|
-
roles: GlobalRole[];
|
|
1748
|
-
label: string;
|
|
1749
|
-
createdBy: string;
|
|
1750
|
-
createdAt: string;
|
|
1751
|
-
prefix: string;
|
|
1752
|
-
scopes: string[];
|
|
1753
|
-
description?: string | undefined;
|
|
1754
|
-
rateLimitPerMinute?: number | undefined;
|
|
1755
|
-
lastUsedAt?: string | undefined;
|
|
1756
|
-
expiresAt?: string | undefined;
|
|
1757
|
-
revokedAt?: string | undefined;
|
|
1758
|
-
allowedProjects?: string[] | undefined;
|
|
1759
|
-
}, {
|
|
1760
|
-
id: string;
|
|
1761
|
-
roles: GlobalRole[];
|
|
1762
|
-
label: string;
|
|
1763
|
-
createdBy: string;
|
|
1764
|
-
createdAt: string;
|
|
1765
|
-
prefix: string;
|
|
1766
|
-
scopes: string[];
|
|
1767
|
-
description?: string | undefined;
|
|
1768
|
-
rateLimitPerMinute?: number | undefined;
|
|
1769
|
-
lastUsedAt?: string | undefined;
|
|
1770
|
-
expiresAt?: string | undefined;
|
|
1771
|
-
revokedAt?: string | undefined;
|
|
1772
|
-
allowedProjects?: string[] | undefined;
|
|
1773
|
-
}>;
|
|
1177
|
+
}, z.core.$strip>;
|
|
1774
1178
|
export type ServiceApiKeyMeta = z.infer<typeof serviceApiKeySchema>;
|
|
1775
1179
|
/** ADR-052: тело создания service-key. `roles` не заданы — дефолт хранилища. */
|
|
1776
1180
|
export declare const serviceApiKeyCreateSchema: z.ZodObject<{
|
|
1777
1181
|
label: z.ZodString;
|
|
1778
1182
|
description: z.ZodOptional<z.ZodString>;
|
|
1779
|
-
roles: z.ZodOptional<z.ZodArray<z.
|
|
1780
|
-
scopes: z.ZodArray<z.
|
|
1781
|
-
allowedProjects: z.ZodOptional<z.ZodArray<z.ZodString
|
|
1183
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof GlobalRole>>>;
|
|
1184
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
1185
|
+
allowedProjects: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1782
1186
|
rateLimitPerMinute: z.ZodOptional<z.ZodNumber>;
|
|
1783
1187
|
expiresAt: z.ZodOptional<z.ZodString>;
|
|
1784
|
-
},
|
|
1785
|
-
label: string;
|
|
1786
|
-
scopes: string[];
|
|
1787
|
-
description?: string | undefined;
|
|
1788
|
-
roles?: GlobalRole[] | undefined;
|
|
1789
|
-
rateLimitPerMinute?: number | undefined;
|
|
1790
|
-
expiresAt?: string | undefined;
|
|
1791
|
-
allowedProjects?: string[] | undefined;
|
|
1792
|
-
}, {
|
|
1793
|
-
label: string;
|
|
1794
|
-
scopes: string[];
|
|
1795
|
-
description?: string | undefined;
|
|
1796
|
-
roles?: GlobalRole[] | undefined;
|
|
1797
|
-
rateLimitPerMinute?: number | undefined;
|
|
1798
|
-
expiresAt?: string | undefined;
|
|
1799
|
-
allowedProjects?: string[] | undefined;
|
|
1800
|
-
}>;
|
|
1188
|
+
}, z.core.$strip>;
|
|
1801
1189
|
export type ServiceApiKeyCreateRequest = z.infer<typeof serviceApiKeyCreateSchema>;
|
|
1802
1190
|
/**
|
|
1803
1191
|
* ADR-052: тело обновления service-key. Все поля опциональны; `null` для
|
|
@@ -1806,37 +1194,21 @@ export type ServiceApiKeyCreateRequest = z.infer<typeof serviceApiKeyCreateSchem
|
|
|
1806
1194
|
export declare const serviceApiKeyUpdateSchema: z.ZodObject<{
|
|
1807
1195
|
label: z.ZodOptional<z.ZodString>;
|
|
1808
1196
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1809
|
-
roles: z.ZodOptional<z.ZodArray<z.
|
|
1810
|
-
scopes: z.ZodOptional<z.ZodArray<z.
|
|
1811
|
-
allowedProjects: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString
|
|
1197
|
+
roles: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof GlobalRole>>>;
|
|
1198
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1199
|
+
allowedProjects: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1812
1200
|
rateLimitPerMinute: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1813
1201
|
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1814
|
-
},
|
|
1815
|
-
description?: string | null | undefined;
|
|
1816
|
-
roles?: GlobalRole[] | undefined;
|
|
1817
|
-
label?: string | undefined;
|
|
1818
|
-
rateLimitPerMinute?: number | null | undefined;
|
|
1819
|
-
expiresAt?: string | null | undefined;
|
|
1820
|
-
scopes?: string[] | undefined;
|
|
1821
|
-
allowedProjects?: string[] | null | undefined;
|
|
1822
|
-
}, {
|
|
1823
|
-
description?: string | null | undefined;
|
|
1824
|
-
roles?: GlobalRole[] | undefined;
|
|
1825
|
-
label?: string | undefined;
|
|
1826
|
-
rateLimitPerMinute?: number | null | undefined;
|
|
1827
|
-
expiresAt?: string | null | undefined;
|
|
1828
|
-
scopes?: string[] | undefined;
|
|
1829
|
-
allowedProjects?: string[] | null | undefined;
|
|
1830
|
-
}>;
|
|
1202
|
+
}, z.core.$strip>;
|
|
1831
1203
|
export type ServiceApiKeyUpdateRequest = z.infer<typeof serviceApiKeyUpdateSchema>;
|
|
1832
1204
|
/** ADR-052: ответ создания service-key — метаданные + plaintext-секрет (единожды). */
|
|
1833
1205
|
export declare const serviceApiKeyCreatedSchema: z.ZodObject<{
|
|
1834
1206
|
id: z.ZodString;
|
|
1835
1207
|
label: z.ZodString;
|
|
1836
1208
|
description: z.ZodOptional<z.ZodString>;
|
|
1837
|
-
roles: z.ZodArray<z.
|
|
1838
|
-
scopes: z.ZodArray<z.ZodString
|
|
1839
|
-
allowedProjects: z.ZodOptional<z.ZodArray<z.ZodString
|
|
1209
|
+
roles: z.ZodArray<z.ZodEnum<typeof GlobalRole>>;
|
|
1210
|
+
scopes: z.ZodArray<z.ZodString>;
|
|
1211
|
+
allowedProjects: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1840
1212
|
rateLimitPerMinute: z.ZodOptional<z.ZodNumber>;
|
|
1841
1213
|
expiresAt: z.ZodOptional<z.ZodString>;
|
|
1842
1214
|
revokedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -1844,44 +1216,13 @@ export declare const serviceApiKeyCreatedSchema: z.ZodObject<{
|
|
|
1844
1216
|
createdAt: z.ZodString;
|
|
1845
1217
|
lastUsedAt: z.ZodOptional<z.ZodString>;
|
|
1846
1218
|
prefix: z.ZodString;
|
|
1847
|
-
} & {
|
|
1848
1219
|
key: z.ZodString;
|
|
1849
|
-
},
|
|
1850
|
-
id: string;
|
|
1851
|
-
roles: GlobalRole[];
|
|
1852
|
-
label: string;
|
|
1853
|
-
createdBy: string;
|
|
1854
|
-
createdAt: string;
|
|
1855
|
-
prefix: string;
|
|
1856
|
-
key: string;
|
|
1857
|
-
scopes: string[];
|
|
1858
|
-
description?: string | undefined;
|
|
1859
|
-
rateLimitPerMinute?: number | undefined;
|
|
1860
|
-
lastUsedAt?: string | undefined;
|
|
1861
|
-
expiresAt?: string | undefined;
|
|
1862
|
-
revokedAt?: string | undefined;
|
|
1863
|
-
allowedProjects?: string[] | undefined;
|
|
1864
|
-
}, {
|
|
1865
|
-
id: string;
|
|
1866
|
-
roles: GlobalRole[];
|
|
1867
|
-
label: string;
|
|
1868
|
-
createdBy: string;
|
|
1869
|
-
createdAt: string;
|
|
1870
|
-
prefix: string;
|
|
1871
|
-
key: string;
|
|
1872
|
-
scopes: string[];
|
|
1873
|
-
description?: string | undefined;
|
|
1874
|
-
rateLimitPerMinute?: number | undefined;
|
|
1875
|
-
lastUsedAt?: string | undefined;
|
|
1876
|
-
expiresAt?: string | undefined;
|
|
1877
|
-
revokedAt?: string | undefined;
|
|
1878
|
-
allowedProjects?: string[] | undefined;
|
|
1879
|
-
}>;
|
|
1220
|
+
}, z.core.$strip>;
|
|
1880
1221
|
export type ServiceApiKeyCreatedRequest = z.infer<typeof serviceApiKeyCreatedSchema>;
|
|
1881
1222
|
/** ADR-052 (этап II): паттерн события подписки — exact либо `prefix.*`. */
|
|
1882
|
-
export declare const webhookEventPatternSchema: z.
|
|
1223
|
+
export declare const webhookEventPatternSchema: z.ZodString;
|
|
1883
1224
|
/** ADR-052 (этап II): целевой URL — только http/https (SSRF-политика — в core). */
|
|
1884
|
-
export declare const webhookUrlSchema: z.
|
|
1225
|
+
export declare const webhookUrlSchema: z.ZodString;
|
|
1885
1226
|
/**
|
|
1886
1227
|
* ADR-052 (этап II): метаданные подписки (ответы API). Секрет (`secret`) и его
|
|
1887
1228
|
* хеш здесь отсутствуют — наружу не отдаются (в списке — `secretPrefix`).
|
|
@@ -1890,63 +1231,28 @@ export declare const webhookSubscriptionSchema: z.ZodObject<{
|
|
|
1890
1231
|
id: z.ZodString;
|
|
1891
1232
|
label: z.ZodString;
|
|
1892
1233
|
description: z.ZodOptional<z.ZodString>;
|
|
1893
|
-
url: z.
|
|
1894
|
-
events: z.ZodArray<z.
|
|
1234
|
+
url: z.ZodString;
|
|
1235
|
+
events: z.ZodArray<z.ZodString>;
|
|
1895
1236
|
enabled: z.ZodBoolean;
|
|
1896
1237
|
secretPrefix: z.ZodString;
|
|
1897
1238
|
createdBy: z.ZodString;
|
|
1898
1239
|
createdAt: z.ZodString;
|
|
1899
1240
|
lastDeliveryAt: z.ZodOptional<z.ZodString>;
|
|
1900
|
-
lastStatus: z.ZodOptional<z.ZodEnum<
|
|
1241
|
+
lastStatus: z.ZodOptional<z.ZodEnum<{
|
|
1242
|
+
ok: "ok";
|
|
1243
|
+
failed: "failed";
|
|
1244
|
+
}>>;
|
|
1901
1245
|
disabledAt: z.ZodOptional<z.ZodString>;
|
|
1902
|
-
},
|
|
1903
|
-
id: string;
|
|
1904
|
-
url: string;
|
|
1905
|
-
enabled: boolean;
|
|
1906
|
-
label: string;
|
|
1907
|
-
createdBy: string;
|
|
1908
|
-
createdAt: string;
|
|
1909
|
-
events: string[];
|
|
1910
|
-
secretPrefix: string;
|
|
1911
|
-
description?: string | undefined;
|
|
1912
|
-
lastDeliveryAt?: string | undefined;
|
|
1913
|
-
lastStatus?: "ok" | "failed" | undefined;
|
|
1914
|
-
disabledAt?: string | undefined;
|
|
1915
|
-
}, {
|
|
1916
|
-
id: string;
|
|
1917
|
-
url: string;
|
|
1918
|
-
enabled: boolean;
|
|
1919
|
-
label: string;
|
|
1920
|
-
createdBy: string;
|
|
1921
|
-
createdAt: string;
|
|
1922
|
-
events: string[];
|
|
1923
|
-
secretPrefix: string;
|
|
1924
|
-
description?: string | undefined;
|
|
1925
|
-
lastDeliveryAt?: string | undefined;
|
|
1926
|
-
lastStatus?: "ok" | "failed" | undefined;
|
|
1927
|
-
disabledAt?: string | undefined;
|
|
1928
|
-
}>;
|
|
1246
|
+
}, z.core.$strip>;
|
|
1929
1247
|
export type WebhookSubscriptionMeta = z.infer<typeof webhookSubscriptionSchema>;
|
|
1930
1248
|
/** ADR-052 (этап II): тело создания подписки. `enabled` не задан — активна. */
|
|
1931
1249
|
export declare const webhookSubscriptionCreateSchema: z.ZodObject<{
|
|
1932
1250
|
label: z.ZodString;
|
|
1933
1251
|
description: z.ZodOptional<z.ZodString>;
|
|
1934
|
-
url: z.
|
|
1935
|
-
events: z.ZodOptional<z.ZodArray<z.
|
|
1252
|
+
url: z.ZodString;
|
|
1253
|
+
events: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1936
1254
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1937
|
-
},
|
|
1938
|
-
url: string;
|
|
1939
|
-
label: string;
|
|
1940
|
-
description?: string | undefined;
|
|
1941
|
-
enabled?: boolean | undefined;
|
|
1942
|
-
events?: string[] | undefined;
|
|
1943
|
-
}, {
|
|
1944
|
-
url: string;
|
|
1945
|
-
label: string;
|
|
1946
|
-
description?: string | undefined;
|
|
1947
|
-
enabled?: boolean | undefined;
|
|
1948
|
-
events?: string[] | undefined;
|
|
1949
|
-
}>;
|
|
1255
|
+
}, z.core.$strip>;
|
|
1950
1256
|
export type WebhookSubscriptionCreateRequest = z.infer<typeof webhookSubscriptionCreateSchema>;
|
|
1951
1257
|
/**
|
|
1952
1258
|
* ADR-052 (этап II): тело обновления подписки. Все поля опциональны; `null` для
|
|
@@ -1955,187 +1261,109 @@ export type WebhookSubscriptionCreateRequest = z.infer<typeof webhookSubscriptio
|
|
|
1955
1261
|
export declare const webhookSubscriptionUpdateSchema: z.ZodObject<{
|
|
1956
1262
|
label: z.ZodOptional<z.ZodString>;
|
|
1957
1263
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1958
|
-
url: z.ZodOptional<z.
|
|
1959
|
-
events: z.ZodOptional<z.ZodArray<z.
|
|
1264
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1265
|
+
events: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1960
1266
|
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
1961
|
-
},
|
|
1962
|
-
url?: string | undefined;
|
|
1963
|
-
description?: string | null | undefined;
|
|
1964
|
-
enabled?: boolean | undefined;
|
|
1965
|
-
label?: string | undefined;
|
|
1966
|
-
events?: string[] | undefined;
|
|
1967
|
-
}, {
|
|
1968
|
-
url?: string | undefined;
|
|
1969
|
-
description?: string | null | undefined;
|
|
1970
|
-
enabled?: boolean | undefined;
|
|
1971
|
-
label?: string | undefined;
|
|
1972
|
-
events?: string[] | undefined;
|
|
1973
|
-
}>;
|
|
1267
|
+
}, z.core.$strip>;
|
|
1974
1268
|
export type WebhookSubscriptionUpdateRequest = z.infer<typeof webhookSubscriptionUpdateSchema>;
|
|
1975
1269
|
/** ADR-052 (этап II): ответ создания/ротации подписки — метаданные + секрет (единожды). */
|
|
1976
1270
|
export declare const webhookSubscriptionCreatedSchema: z.ZodObject<{
|
|
1977
1271
|
id: z.ZodString;
|
|
1978
1272
|
label: z.ZodString;
|
|
1979
1273
|
description: z.ZodOptional<z.ZodString>;
|
|
1980
|
-
url: z.
|
|
1981
|
-
events: z.ZodArray<z.
|
|
1274
|
+
url: z.ZodString;
|
|
1275
|
+
events: z.ZodArray<z.ZodString>;
|
|
1982
1276
|
enabled: z.ZodBoolean;
|
|
1983
1277
|
secretPrefix: z.ZodString;
|
|
1984
1278
|
createdBy: z.ZodString;
|
|
1985
1279
|
createdAt: z.ZodString;
|
|
1986
1280
|
lastDeliveryAt: z.ZodOptional<z.ZodString>;
|
|
1987
|
-
lastStatus: z.ZodOptional<z.ZodEnum<
|
|
1281
|
+
lastStatus: z.ZodOptional<z.ZodEnum<{
|
|
1282
|
+
ok: "ok";
|
|
1283
|
+
failed: "failed";
|
|
1284
|
+
}>>;
|
|
1988
1285
|
disabledAt: z.ZodOptional<z.ZodString>;
|
|
1989
|
-
} & {
|
|
1990
1286
|
secret: z.ZodString;
|
|
1991
|
-
},
|
|
1992
|
-
id: string;
|
|
1993
|
-
url: string;
|
|
1994
|
-
enabled: boolean;
|
|
1995
|
-
label: string;
|
|
1996
|
-
createdBy: string;
|
|
1997
|
-
createdAt: string;
|
|
1998
|
-
events: string[];
|
|
1999
|
-
secretPrefix: string;
|
|
2000
|
-
secret: string;
|
|
2001
|
-
description?: string | undefined;
|
|
2002
|
-
lastDeliveryAt?: string | undefined;
|
|
2003
|
-
lastStatus?: "ok" | "failed" | undefined;
|
|
2004
|
-
disabledAt?: string | undefined;
|
|
2005
|
-
}, {
|
|
2006
|
-
id: string;
|
|
2007
|
-
url: string;
|
|
2008
|
-
enabled: boolean;
|
|
2009
|
-
label: string;
|
|
2010
|
-
createdBy: string;
|
|
2011
|
-
createdAt: string;
|
|
2012
|
-
events: string[];
|
|
2013
|
-
secretPrefix: string;
|
|
2014
|
-
secret: string;
|
|
2015
|
-
description?: string | undefined;
|
|
2016
|
-
lastDeliveryAt?: string | undefined;
|
|
2017
|
-
lastStatus?: "ok" | "failed" | undefined;
|
|
2018
|
-
disabledAt?: string | undefined;
|
|
2019
|
-
}>;
|
|
1287
|
+
}, z.core.$strip>;
|
|
2020
1288
|
export type WebhookSubscriptionCreatedRequest = z.infer<typeof webhookSubscriptionCreatedSchema>;
|
|
2021
1289
|
/** ADR-052 (этап II): запись журнала доставки. */
|
|
2022
1290
|
export declare const webhookDeliverySchema: z.ZodObject<{
|
|
2023
1291
|
id: z.ZodString;
|
|
2024
1292
|
subscriptionId: z.ZodString;
|
|
2025
1293
|
eventType: z.ZodString;
|
|
2026
|
-
status: z.ZodEnum<
|
|
1294
|
+
status: z.ZodEnum<{
|
|
1295
|
+
pending: "pending";
|
|
1296
|
+
ok: "ok";
|
|
1297
|
+
failed: "failed";
|
|
1298
|
+
}>;
|
|
2027
1299
|
attempts: z.ZodNumber;
|
|
2028
1300
|
responseStatus: z.ZodOptional<z.ZodNumber>;
|
|
2029
1301
|
error: z.ZodOptional<z.ZodString>;
|
|
2030
1302
|
createdAt: z.ZodString;
|
|
2031
1303
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
2032
|
-
},
|
|
2033
|
-
status: "pending" | "ok" | "failed";
|
|
2034
|
-
id: string;
|
|
2035
|
-
createdAt: string;
|
|
2036
|
-
subscriptionId: string;
|
|
2037
|
-
eventType: string;
|
|
2038
|
-
attempts: number;
|
|
2039
|
-
error?: string | undefined;
|
|
2040
|
-
responseStatus?: number | undefined;
|
|
2041
|
-
completedAt?: string | undefined;
|
|
2042
|
-
}, {
|
|
2043
|
-
status: "pending" | "ok" | "failed";
|
|
2044
|
-
id: string;
|
|
2045
|
-
createdAt: string;
|
|
2046
|
-
subscriptionId: string;
|
|
2047
|
-
eventType: string;
|
|
2048
|
-
attempts: number;
|
|
2049
|
-
error?: string | undefined;
|
|
2050
|
-
responseStatus?: number | undefined;
|
|
2051
|
-
completedAt?: string | undefined;
|
|
2052
|
-
}>;
|
|
1304
|
+
}, z.core.$strip>;
|
|
2053
1305
|
export type WebhookDeliveryMeta = z.infer<typeof webhookDeliverySchema>;
|
|
2054
1306
|
/** ADR-051/ADR-089: цель расписания (дискриминированный союз по `mode`). */
|
|
2055
|
-
export declare const scheduleTargetSchema: z.ZodDiscriminatedUnion<
|
|
1307
|
+
export declare const scheduleTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2056
1308
|
mode: z.ZodLiteral<"bound">;
|
|
2057
1309
|
sessionId: z.ZodString;
|
|
2058
|
-
},
|
|
2059
|
-
mode: "bound";
|
|
2060
|
-
sessionId: string;
|
|
2061
|
-
}, {
|
|
2062
|
-
mode: "bound";
|
|
2063
|
-
sessionId: string;
|
|
2064
|
-
}>, z.ZodObject<{
|
|
1310
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2065
1311
|
mode: z.ZodLiteral<"ephemeral">;
|
|
2066
1312
|
agentTemplate: z.ZodOptional<z.ZodString>;
|
|
2067
1313
|
project: z.ZodOptional<z.ZodString>;
|
|
2068
1314
|
ttl: z.ZodOptional<z.ZodString>;
|
|
2069
|
-
},
|
|
2070
|
-
mode: "ephemeral";
|
|
2071
|
-
agentTemplate?: string | undefined;
|
|
2072
|
-
project?: string | undefined;
|
|
2073
|
-
ttl?: string | undefined;
|
|
2074
|
-
}, {
|
|
2075
|
-
mode: "ephemeral";
|
|
2076
|
-
agentTemplate?: string | undefined;
|
|
2077
|
-
project?: string | undefined;
|
|
2078
|
-
ttl?: string | undefined;
|
|
2079
|
-
}>, z.ZodObject<{
|
|
1315
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2080
1316
|
mode: z.ZodLiteral<"queue">;
|
|
2081
1317
|
sessionId: z.ZodString;
|
|
2082
|
-
},
|
|
2083
|
-
mode: "
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
}>]>;
|
|
1318
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1319
|
+
mode: z.ZodLiteral<"pipeline">;
|
|
1320
|
+
projectId: z.ZodString;
|
|
1321
|
+
pipelineId: z.ZodString;
|
|
1322
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
1323
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1324
|
+
}, z.core.$strip>], "mode">;
|
|
1325
|
+
/**
|
|
1326
|
+
* ADR-089: ссылка на шаг пайплайна — «эта сессия — шаг `step` пайплайна `id`».
|
|
1327
|
+
* Допустима только в целях `ephemeral`/`bind` (там, где решение порождает
|
|
1328
|
+
* сессию); в `bound`/`queue` сессия фиксирована — поле там отвергается.
|
|
1329
|
+
*/
|
|
1330
|
+
export declare const pipelineRefSchema: z.ZodObject<{
|
|
1331
|
+
id: z.ZodString;
|
|
1332
|
+
step: z.ZodString;
|
|
1333
|
+
}, z.core.$strip>;
|
|
2089
1334
|
/**
|
|
2090
1335
|
* ADR-089: цель правила маршрутизации — дискриминированный союз по `mode`
|
|
2091
1336
|
* (семантика та же, что у `scheduleTargetSchema`).
|
|
1337
|
+
*
|
|
1338
|
+
* `pipeline` (ссылка на шаг пайплайна) допустим только в `ephemeral`/`bind`;
|
|
1339
|
+
* в `bound`/`queue` сессия фиксирована, поэтому варианты **строгие**
|
|
1340
|
+
* (`.strict()`): лишние поля (в т.ч. `pipeline`) там **отвергаются**, а не
|
|
1341
|
+
* игнорируются — иначе ошибка конфигурации правила проходила бы молча.
|
|
2092
1342
|
*/
|
|
2093
|
-
export declare const eventRouteTargetSchema: z.ZodDiscriminatedUnion<
|
|
1343
|
+
export declare const eventRouteTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2094
1344
|
mode: z.ZodLiteral<"bound">;
|
|
2095
1345
|
sessionId: z.ZodString;
|
|
2096
|
-
},
|
|
2097
|
-
mode: "bound";
|
|
2098
|
-
sessionId: string;
|
|
2099
|
-
}, {
|
|
2100
|
-
mode: "bound";
|
|
2101
|
-
sessionId: string;
|
|
2102
|
-
}>, z.ZodObject<{
|
|
1346
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2103
1347
|
mode: z.ZodLiteral<"ephemeral">;
|
|
2104
1348
|
agentTemplate: z.ZodOptional<z.ZodString>;
|
|
2105
1349
|
project: z.ZodOptional<z.ZodString>;
|
|
2106
1350
|
ttl: z.ZodOptional<z.ZodString>;
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
}, {
|
|
2113
|
-
mode: "ephemeral";
|
|
2114
|
-
agentTemplate?: string | undefined;
|
|
2115
|
-
project?: string | undefined;
|
|
2116
|
-
ttl?: string | undefined;
|
|
2117
|
-
}>, z.ZodObject<{
|
|
1351
|
+
pipeline: z.ZodOptional<z.ZodObject<{
|
|
1352
|
+
id: z.ZodString;
|
|
1353
|
+
step: z.ZodString;
|
|
1354
|
+
}, z.core.$strip>>;
|
|
1355
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2118
1356
|
mode: z.ZodLiteral<"queue">;
|
|
2119
1357
|
sessionId: z.ZodString;
|
|
2120
|
-
},
|
|
2121
|
-
mode: "queue";
|
|
2122
|
-
sessionId: string;
|
|
2123
|
-
}, {
|
|
2124
|
-
mode: "queue";
|
|
2125
|
-
sessionId: string;
|
|
2126
|
-
}>, z.ZodObject<{
|
|
1358
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2127
1359
|
mode: z.ZodLiteral<"bind">;
|
|
2128
1360
|
agentTemplate: z.ZodOptional<z.ZodString>;
|
|
2129
1361
|
project: z.ZodOptional<z.ZodString>;
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
},
|
|
2135
|
-
mode: "bind";
|
|
2136
|
-
agentTemplate?: string | undefined;
|
|
2137
|
-
project?: string | undefined;
|
|
2138
|
-
}>]>;
|
|
1362
|
+
pipeline: z.ZodOptional<z.ZodObject<{
|
|
1363
|
+
id: z.ZodString;
|
|
1364
|
+
step: z.ZodString;
|
|
1365
|
+
}, z.core.$strip>>;
|
|
1366
|
+
}, z.core.$strip>], "mode">;
|
|
2139
1367
|
/** ADR-089: условие срабатывания правила (AND по заполненным полям). */
|
|
2140
1368
|
export declare const eventRouteMatchSchema: z.ZodObject<{
|
|
2141
1369
|
source: z.ZodOptional<z.ZodString>;
|
|
@@ -2144,24 +1372,8 @@ export declare const eventRouteMatchSchema: z.ZodObject<{
|
|
|
2144
1372
|
threadKey: z.ZodOptional<z.ZodString>;
|
|
2145
1373
|
principalId: z.ZodOptional<z.ZodString>;
|
|
2146
1374
|
label: z.ZodOptional<z.ZodString>;
|
|
2147
|
-
keywords: z.ZodOptional<z.ZodArray<z.ZodString
|
|
2148
|
-
},
|
|
2149
|
-
type?: string | undefined;
|
|
2150
|
-
principalId?: string | undefined;
|
|
2151
|
-
chatKey?: string | undefined;
|
|
2152
|
-
threadKey?: string | undefined;
|
|
2153
|
-
source?: string | undefined;
|
|
2154
|
-
label?: string | undefined;
|
|
2155
|
-
keywords?: string[] | undefined;
|
|
2156
|
-
}, {
|
|
2157
|
-
type?: string | undefined;
|
|
2158
|
-
principalId?: string | undefined;
|
|
2159
|
-
chatKey?: string | undefined;
|
|
2160
|
-
threadKey?: string | undefined;
|
|
2161
|
-
source?: string | undefined;
|
|
2162
|
-
label?: string | undefined;
|
|
2163
|
-
keywords?: string[] | undefined;
|
|
2164
|
-
}>;
|
|
1375
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1376
|
+
}, z.core.$strip>;
|
|
2165
1377
|
/** ADR-089: полная сущность правила маршрутизации событий (ответы API). */
|
|
2166
1378
|
export declare const eventRouteRuleSchema: z.ZodObject<{
|
|
2167
1379
|
id: z.ZodString;
|
|
@@ -2175,131 +1387,33 @@ export declare const eventRouteRuleSchema: z.ZodObject<{
|
|
|
2175
1387
|
threadKey: z.ZodOptional<z.ZodString>;
|
|
2176
1388
|
principalId: z.ZodOptional<z.ZodString>;
|
|
2177
1389
|
label: z.ZodOptional<z.ZodString>;
|
|
2178
|
-
keywords: z.ZodOptional<z.ZodArray<z.ZodString
|
|
2179
|
-
},
|
|
2180
|
-
|
|
2181
|
-
principalId?: string | undefined;
|
|
2182
|
-
chatKey?: string | undefined;
|
|
2183
|
-
threadKey?: string | undefined;
|
|
2184
|
-
source?: string | undefined;
|
|
2185
|
-
label?: string | undefined;
|
|
2186
|
-
keywords?: string[] | undefined;
|
|
2187
|
-
}, {
|
|
2188
|
-
type?: string | undefined;
|
|
2189
|
-
principalId?: string | undefined;
|
|
2190
|
-
chatKey?: string | undefined;
|
|
2191
|
-
threadKey?: string | undefined;
|
|
2192
|
-
source?: string | undefined;
|
|
2193
|
-
label?: string | undefined;
|
|
2194
|
-
keywords?: string[] | undefined;
|
|
2195
|
-
}>;
|
|
2196
|
-
target: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
1390
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1391
|
+
}, z.core.$strip>;
|
|
1392
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2197
1393
|
mode: z.ZodLiteral<"bound">;
|
|
2198
1394
|
sessionId: z.ZodString;
|
|
2199
|
-
},
|
|
2200
|
-
mode: "bound";
|
|
2201
|
-
sessionId: string;
|
|
2202
|
-
}, {
|
|
2203
|
-
mode: "bound";
|
|
2204
|
-
sessionId: string;
|
|
2205
|
-
}>, z.ZodObject<{
|
|
1395
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2206
1396
|
mode: z.ZodLiteral<"ephemeral">;
|
|
2207
1397
|
agentTemplate: z.ZodOptional<z.ZodString>;
|
|
2208
1398
|
project: z.ZodOptional<z.ZodString>;
|
|
2209
1399
|
ttl: z.ZodOptional<z.ZodString>;
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
}, {
|
|
2216
|
-
mode: "ephemeral";
|
|
2217
|
-
agentTemplate?: string | undefined;
|
|
2218
|
-
project?: string | undefined;
|
|
2219
|
-
ttl?: string | undefined;
|
|
2220
|
-
}>, z.ZodObject<{
|
|
1400
|
+
pipeline: z.ZodOptional<z.ZodObject<{
|
|
1401
|
+
id: z.ZodString;
|
|
1402
|
+
step: z.ZodString;
|
|
1403
|
+
}, z.core.$strip>>;
|
|
1404
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2221
1405
|
mode: z.ZodLiteral<"queue">;
|
|
2222
1406
|
sessionId: z.ZodString;
|
|
2223
|
-
},
|
|
2224
|
-
mode: "queue";
|
|
2225
|
-
sessionId: string;
|
|
2226
|
-
}, {
|
|
2227
|
-
mode: "queue";
|
|
2228
|
-
sessionId: string;
|
|
2229
|
-
}>, z.ZodObject<{
|
|
1407
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2230
1408
|
mode: z.ZodLiteral<"bind">;
|
|
2231
1409
|
agentTemplate: z.ZodOptional<z.ZodString>;
|
|
2232
1410
|
project: z.ZodOptional<z.ZodString>;
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
},
|
|
2238
|
-
|
|
2239
|
-
agentTemplate?: string | undefined;
|
|
2240
|
-
project?: string | undefined;
|
|
2241
|
-
}>]>;
|
|
2242
|
-
}, "strip", z.ZodTypeAny, {
|
|
2243
|
-
id: string;
|
|
2244
|
-
enabled: boolean;
|
|
2245
|
-
priority: number;
|
|
2246
|
-
match: {
|
|
2247
|
-
type?: string | undefined;
|
|
2248
|
-
principalId?: string | undefined;
|
|
2249
|
-
chatKey?: string | undefined;
|
|
2250
|
-
threadKey?: string | undefined;
|
|
2251
|
-
source?: string | undefined;
|
|
2252
|
-
label?: string | undefined;
|
|
2253
|
-
keywords?: string[] | undefined;
|
|
2254
|
-
};
|
|
2255
|
-
target: {
|
|
2256
|
-
mode: "bound";
|
|
2257
|
-
sessionId: string;
|
|
2258
|
-
} | {
|
|
2259
|
-
mode: "ephemeral";
|
|
2260
|
-
agentTemplate?: string | undefined;
|
|
2261
|
-
project?: string | undefined;
|
|
2262
|
-
ttl?: string | undefined;
|
|
2263
|
-
} | {
|
|
2264
|
-
mode: "queue";
|
|
2265
|
-
sessionId: string;
|
|
2266
|
-
} | {
|
|
2267
|
-
mode: "bind";
|
|
2268
|
-
agentTemplate?: string | undefined;
|
|
2269
|
-
project?: string | undefined;
|
|
2270
|
-
};
|
|
2271
|
-
name?: string | undefined;
|
|
2272
|
-
}, {
|
|
2273
|
-
id: string;
|
|
2274
|
-
match: {
|
|
2275
|
-
type?: string | undefined;
|
|
2276
|
-
principalId?: string | undefined;
|
|
2277
|
-
chatKey?: string | undefined;
|
|
2278
|
-
threadKey?: string | undefined;
|
|
2279
|
-
source?: string | undefined;
|
|
2280
|
-
label?: string | undefined;
|
|
2281
|
-
keywords?: string[] | undefined;
|
|
2282
|
-
};
|
|
2283
|
-
target: {
|
|
2284
|
-
mode: "bound";
|
|
2285
|
-
sessionId: string;
|
|
2286
|
-
} | {
|
|
2287
|
-
mode: "ephemeral";
|
|
2288
|
-
agentTemplate?: string | undefined;
|
|
2289
|
-
project?: string | undefined;
|
|
2290
|
-
ttl?: string | undefined;
|
|
2291
|
-
} | {
|
|
2292
|
-
mode: "queue";
|
|
2293
|
-
sessionId: string;
|
|
2294
|
-
} | {
|
|
2295
|
-
mode: "bind";
|
|
2296
|
-
agentTemplate?: string | undefined;
|
|
2297
|
-
project?: string | undefined;
|
|
2298
|
-
};
|
|
2299
|
-
name?: string | undefined;
|
|
2300
|
-
enabled?: boolean | undefined;
|
|
2301
|
-
priority?: number | undefined;
|
|
2302
|
-
}>;
|
|
1411
|
+
pipeline: z.ZodOptional<z.ZodObject<{
|
|
1412
|
+
id: z.ZodString;
|
|
1413
|
+
step: z.ZodString;
|
|
1414
|
+
}, z.core.$strip>>;
|
|
1415
|
+
}, z.core.$strip>], "mode">;
|
|
1416
|
+
}, z.core.$strip>;
|
|
2303
1417
|
/** ADR-089: вход создания/обновления правила (`upsert`) — без `id`. */
|
|
2304
1418
|
export declare const eventRouteRuleInputSchema: z.ZodObject<{
|
|
2305
1419
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -2312,129 +1426,33 @@ export declare const eventRouteRuleInputSchema: z.ZodObject<{
|
|
|
2312
1426
|
threadKey: z.ZodOptional<z.ZodString>;
|
|
2313
1427
|
principalId: z.ZodOptional<z.ZodString>;
|
|
2314
1428
|
label: z.ZodOptional<z.ZodString>;
|
|
2315
|
-
keywords: z.ZodOptional<z.ZodArray<z.ZodString
|
|
2316
|
-
},
|
|
2317
|
-
|
|
2318
|
-
principalId?: string | undefined;
|
|
2319
|
-
chatKey?: string | undefined;
|
|
2320
|
-
threadKey?: string | undefined;
|
|
2321
|
-
source?: string | undefined;
|
|
2322
|
-
label?: string | undefined;
|
|
2323
|
-
keywords?: string[] | undefined;
|
|
2324
|
-
}, {
|
|
2325
|
-
type?: string | undefined;
|
|
2326
|
-
principalId?: string | undefined;
|
|
2327
|
-
chatKey?: string | undefined;
|
|
2328
|
-
threadKey?: string | undefined;
|
|
2329
|
-
source?: string | undefined;
|
|
2330
|
-
label?: string | undefined;
|
|
2331
|
-
keywords?: string[] | undefined;
|
|
2332
|
-
}>;
|
|
2333
|
-
target: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
1429
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1430
|
+
}, z.core.$strip>;
|
|
1431
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2334
1432
|
mode: z.ZodLiteral<"bound">;
|
|
2335
1433
|
sessionId: z.ZodString;
|
|
2336
|
-
},
|
|
2337
|
-
mode: "bound";
|
|
2338
|
-
sessionId: string;
|
|
2339
|
-
}, {
|
|
2340
|
-
mode: "bound";
|
|
2341
|
-
sessionId: string;
|
|
2342
|
-
}>, z.ZodObject<{
|
|
1434
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2343
1435
|
mode: z.ZodLiteral<"ephemeral">;
|
|
2344
1436
|
agentTemplate: z.ZodOptional<z.ZodString>;
|
|
2345
1437
|
project: z.ZodOptional<z.ZodString>;
|
|
2346
1438
|
ttl: z.ZodOptional<z.ZodString>;
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
}, {
|
|
2353
|
-
mode: "ephemeral";
|
|
2354
|
-
agentTemplate?: string | undefined;
|
|
2355
|
-
project?: string | undefined;
|
|
2356
|
-
ttl?: string | undefined;
|
|
2357
|
-
}>, z.ZodObject<{
|
|
1439
|
+
pipeline: z.ZodOptional<z.ZodObject<{
|
|
1440
|
+
id: z.ZodString;
|
|
1441
|
+
step: z.ZodString;
|
|
1442
|
+
}, z.core.$strip>>;
|
|
1443
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2358
1444
|
mode: z.ZodLiteral<"queue">;
|
|
2359
1445
|
sessionId: z.ZodString;
|
|
2360
|
-
},
|
|
2361
|
-
mode: "queue";
|
|
2362
|
-
sessionId: string;
|
|
2363
|
-
}, {
|
|
2364
|
-
mode: "queue";
|
|
2365
|
-
sessionId: string;
|
|
2366
|
-
}>, z.ZodObject<{
|
|
1446
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2367
1447
|
mode: z.ZodLiteral<"bind">;
|
|
2368
1448
|
agentTemplate: z.ZodOptional<z.ZodString>;
|
|
2369
1449
|
project: z.ZodOptional<z.ZodString>;
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
},
|
|
2375
|
-
|
|
2376
|
-
agentTemplate?: string | undefined;
|
|
2377
|
-
project?: string | undefined;
|
|
2378
|
-
}>]>;
|
|
2379
|
-
}, "strip", z.ZodTypeAny, {
|
|
2380
|
-
enabled: boolean;
|
|
2381
|
-
priority: number;
|
|
2382
|
-
match: {
|
|
2383
|
-
type?: string | undefined;
|
|
2384
|
-
principalId?: string | undefined;
|
|
2385
|
-
chatKey?: string | undefined;
|
|
2386
|
-
threadKey?: string | undefined;
|
|
2387
|
-
source?: string | undefined;
|
|
2388
|
-
label?: string | undefined;
|
|
2389
|
-
keywords?: string[] | undefined;
|
|
2390
|
-
};
|
|
2391
|
-
target: {
|
|
2392
|
-
mode: "bound";
|
|
2393
|
-
sessionId: string;
|
|
2394
|
-
} | {
|
|
2395
|
-
mode: "ephemeral";
|
|
2396
|
-
agentTemplate?: string | undefined;
|
|
2397
|
-
project?: string | undefined;
|
|
2398
|
-
ttl?: string | undefined;
|
|
2399
|
-
} | {
|
|
2400
|
-
mode: "queue";
|
|
2401
|
-
sessionId: string;
|
|
2402
|
-
} | {
|
|
2403
|
-
mode: "bind";
|
|
2404
|
-
agentTemplate?: string | undefined;
|
|
2405
|
-
project?: string | undefined;
|
|
2406
|
-
};
|
|
2407
|
-
name?: string | undefined;
|
|
2408
|
-
}, {
|
|
2409
|
-
match: {
|
|
2410
|
-
type?: string | undefined;
|
|
2411
|
-
principalId?: string | undefined;
|
|
2412
|
-
chatKey?: string | undefined;
|
|
2413
|
-
threadKey?: string | undefined;
|
|
2414
|
-
source?: string | undefined;
|
|
2415
|
-
label?: string | undefined;
|
|
2416
|
-
keywords?: string[] | undefined;
|
|
2417
|
-
};
|
|
2418
|
-
target: {
|
|
2419
|
-
mode: "bound";
|
|
2420
|
-
sessionId: string;
|
|
2421
|
-
} | {
|
|
2422
|
-
mode: "ephemeral";
|
|
2423
|
-
agentTemplate?: string | undefined;
|
|
2424
|
-
project?: string | undefined;
|
|
2425
|
-
ttl?: string | undefined;
|
|
2426
|
-
} | {
|
|
2427
|
-
mode: "queue";
|
|
2428
|
-
sessionId: string;
|
|
2429
|
-
} | {
|
|
2430
|
-
mode: "bind";
|
|
2431
|
-
agentTemplate?: string | undefined;
|
|
2432
|
-
project?: string | undefined;
|
|
2433
|
-
};
|
|
2434
|
-
name?: string | undefined;
|
|
2435
|
-
enabled?: boolean | undefined;
|
|
2436
|
-
priority?: number | undefined;
|
|
2437
|
-
}>;
|
|
1450
|
+
pipeline: z.ZodOptional<z.ZodObject<{
|
|
1451
|
+
id: z.ZodString;
|
|
1452
|
+
step: z.ZodString;
|
|
1453
|
+
}, z.core.$strip>>;
|
|
1454
|
+
}, z.core.$strip>], "mode">;
|
|
1455
|
+
}, z.core.$strip>;
|
|
2438
1456
|
/**
|
|
2439
1457
|
* ADR-089: тело upsert-запроса правила — вход + необязательный `id` (обновление
|
|
2440
1458
|
* существующего правила; отсутствие — создание нового `rule_<uuid>`).
|
|
@@ -2450,533 +1468,298 @@ export declare const eventRouteRuleUpsertSchema: z.ZodObject<{
|
|
|
2450
1468
|
threadKey: z.ZodOptional<z.ZodString>;
|
|
2451
1469
|
principalId: z.ZodOptional<z.ZodString>;
|
|
2452
1470
|
label: z.ZodOptional<z.ZodString>;
|
|
2453
|
-
keywords: z.ZodOptional<z.ZodArray<z.ZodString
|
|
2454
|
-
},
|
|
2455
|
-
|
|
2456
|
-
principalId?: string | undefined;
|
|
2457
|
-
chatKey?: string | undefined;
|
|
2458
|
-
threadKey?: string | undefined;
|
|
2459
|
-
source?: string | undefined;
|
|
2460
|
-
label?: string | undefined;
|
|
2461
|
-
keywords?: string[] | undefined;
|
|
2462
|
-
}, {
|
|
2463
|
-
type?: string | undefined;
|
|
2464
|
-
principalId?: string | undefined;
|
|
2465
|
-
chatKey?: string | undefined;
|
|
2466
|
-
threadKey?: string | undefined;
|
|
2467
|
-
source?: string | undefined;
|
|
2468
|
-
label?: string | undefined;
|
|
2469
|
-
keywords?: string[] | undefined;
|
|
2470
|
-
}>;
|
|
2471
|
-
target: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
1471
|
+
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1472
|
+
}, z.core.$strip>;
|
|
1473
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2472
1474
|
mode: z.ZodLiteral<"bound">;
|
|
2473
1475
|
sessionId: z.ZodString;
|
|
2474
|
-
},
|
|
2475
|
-
mode: "bound";
|
|
2476
|
-
sessionId: string;
|
|
2477
|
-
}, {
|
|
2478
|
-
mode: "bound";
|
|
2479
|
-
sessionId: string;
|
|
2480
|
-
}>, z.ZodObject<{
|
|
1476
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2481
1477
|
mode: z.ZodLiteral<"ephemeral">;
|
|
2482
1478
|
agentTemplate: z.ZodOptional<z.ZodString>;
|
|
2483
1479
|
project: z.ZodOptional<z.ZodString>;
|
|
2484
1480
|
ttl: z.ZodOptional<z.ZodString>;
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
}, {
|
|
2491
|
-
mode: "ephemeral";
|
|
2492
|
-
agentTemplate?: string | undefined;
|
|
2493
|
-
project?: string | undefined;
|
|
2494
|
-
ttl?: string | undefined;
|
|
2495
|
-
}>, z.ZodObject<{
|
|
1481
|
+
pipeline: z.ZodOptional<z.ZodObject<{
|
|
1482
|
+
id: z.ZodString;
|
|
1483
|
+
step: z.ZodString;
|
|
1484
|
+
}, z.core.$strip>>;
|
|
1485
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2496
1486
|
mode: z.ZodLiteral<"queue">;
|
|
2497
1487
|
sessionId: z.ZodString;
|
|
2498
|
-
},
|
|
2499
|
-
mode: "queue";
|
|
2500
|
-
sessionId: string;
|
|
2501
|
-
}, {
|
|
2502
|
-
mode: "queue";
|
|
2503
|
-
sessionId: string;
|
|
2504
|
-
}>, z.ZodObject<{
|
|
1488
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
2505
1489
|
mode: z.ZodLiteral<"bind">;
|
|
2506
1490
|
agentTemplate: z.ZodOptional<z.ZodString>;
|
|
2507
1491
|
project: z.ZodOptional<z.ZodString>;
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
},
|
|
2513
|
-
mode: "bind";
|
|
2514
|
-
agentTemplate?: string | undefined;
|
|
2515
|
-
project?: string | undefined;
|
|
2516
|
-
}>]>;
|
|
2517
|
-
} & {
|
|
1492
|
+
pipeline: z.ZodOptional<z.ZodObject<{
|
|
1493
|
+
id: z.ZodString;
|
|
1494
|
+
step: z.ZodString;
|
|
1495
|
+
}, z.core.$strip>>;
|
|
1496
|
+
}, z.core.$strip>], "mode">;
|
|
2518
1497
|
id: z.ZodOptional<z.ZodString>;
|
|
2519
|
-
},
|
|
2520
|
-
enabled: boolean;
|
|
2521
|
-
priority: number;
|
|
2522
|
-
match: {
|
|
2523
|
-
type?: string | undefined;
|
|
2524
|
-
principalId?: string | undefined;
|
|
2525
|
-
chatKey?: string | undefined;
|
|
2526
|
-
threadKey?: string | undefined;
|
|
2527
|
-
source?: string | undefined;
|
|
2528
|
-
label?: string | undefined;
|
|
2529
|
-
keywords?: string[] | undefined;
|
|
2530
|
-
};
|
|
2531
|
-
target: {
|
|
2532
|
-
mode: "bound";
|
|
2533
|
-
sessionId: string;
|
|
2534
|
-
} | {
|
|
2535
|
-
mode: "ephemeral";
|
|
2536
|
-
agentTemplate?: string | undefined;
|
|
2537
|
-
project?: string | undefined;
|
|
2538
|
-
ttl?: string | undefined;
|
|
2539
|
-
} | {
|
|
2540
|
-
mode: "queue";
|
|
2541
|
-
sessionId: string;
|
|
2542
|
-
} | {
|
|
2543
|
-
mode: "bind";
|
|
2544
|
-
agentTemplate?: string | undefined;
|
|
2545
|
-
project?: string | undefined;
|
|
2546
|
-
};
|
|
2547
|
-
name?: string | undefined;
|
|
2548
|
-
id?: string | undefined;
|
|
2549
|
-
}, {
|
|
2550
|
-
match: {
|
|
2551
|
-
type?: string | undefined;
|
|
2552
|
-
principalId?: string | undefined;
|
|
2553
|
-
chatKey?: string | undefined;
|
|
2554
|
-
threadKey?: string | undefined;
|
|
2555
|
-
source?: string | undefined;
|
|
2556
|
-
label?: string | undefined;
|
|
2557
|
-
keywords?: string[] | undefined;
|
|
2558
|
-
};
|
|
2559
|
-
target: {
|
|
2560
|
-
mode: "bound";
|
|
2561
|
-
sessionId: string;
|
|
2562
|
-
} | {
|
|
2563
|
-
mode: "ephemeral";
|
|
2564
|
-
agentTemplate?: string | undefined;
|
|
2565
|
-
project?: string | undefined;
|
|
2566
|
-
ttl?: string | undefined;
|
|
2567
|
-
} | {
|
|
2568
|
-
mode: "queue";
|
|
2569
|
-
sessionId: string;
|
|
2570
|
-
} | {
|
|
2571
|
-
mode: "bind";
|
|
2572
|
-
agentTemplate?: string | undefined;
|
|
2573
|
-
project?: string | undefined;
|
|
2574
|
-
};
|
|
2575
|
-
name?: string | undefined;
|
|
2576
|
-
id?: string | undefined;
|
|
2577
|
-
enabled?: boolean | undefined;
|
|
2578
|
-
priority?: number | undefined;
|
|
2579
|
-
}>;
|
|
1498
|
+
}, z.core.$strip>;
|
|
2580
1499
|
export type EventRouteTargetRequest = z.infer<typeof eventRouteTargetSchema>;
|
|
2581
1500
|
export type EventRouteRuleInputRequest = z.infer<typeof eventRouteRuleInputSchema>;
|
|
2582
1501
|
export type EventRouteRuleUpsertRequest = z.infer<typeof eventRouteRuleUpsertSchema>;
|
|
2583
1502
|
/** ADR-051/ADR-089: вход создания/обновления расписания (`ScheduleInput`). */
|
|
2584
|
-
export declare const scheduleInputSchema: z.
|
|
1503
|
+
export declare const scheduleInputSchema: z.ZodObject<{
|
|
2585
1504
|
name: z.ZodString;
|
|
2586
1505
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2587
1506
|
cron: z.ZodOptional<z.ZodString>;
|
|
2588
1507
|
every: z.ZodOptional<z.ZodString>;
|
|
2589
|
-
target: z.ZodDiscriminatedUnion<
|
|
1508
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2590
1509
|
mode: z.ZodLiteral<"bound">;
|
|
2591
1510
|
sessionId: z.ZodString;
|
|
2592
|
-
},
|
|
2593
|
-
mode: "bound";
|
|
2594
|
-
sessionId: string;
|
|
2595
|
-
}, {
|
|
2596
|
-
mode: "bound";
|
|
2597
|
-
sessionId: string;
|
|
2598
|
-
}>, z.ZodObject<{
|
|
1511
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2599
1512
|
mode: z.ZodLiteral<"ephemeral">;
|
|
2600
1513
|
agentTemplate: z.ZodOptional<z.ZodString>;
|
|
2601
1514
|
project: z.ZodOptional<z.ZodString>;
|
|
2602
1515
|
ttl: z.ZodOptional<z.ZodString>;
|
|
2603
|
-
},
|
|
2604
|
-
mode: "ephemeral";
|
|
2605
|
-
agentTemplate?: string | undefined;
|
|
2606
|
-
project?: string | undefined;
|
|
2607
|
-
ttl?: string | undefined;
|
|
2608
|
-
}, {
|
|
2609
|
-
mode: "ephemeral";
|
|
2610
|
-
agentTemplate?: string | undefined;
|
|
2611
|
-
project?: string | undefined;
|
|
2612
|
-
ttl?: string | undefined;
|
|
2613
|
-
}>, z.ZodObject<{
|
|
1516
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2614
1517
|
mode: z.ZodLiteral<"queue">;
|
|
2615
1518
|
sessionId: z.ZodString;
|
|
2616
|
-
},
|
|
2617
|
-
mode: "
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
}>]>;
|
|
1519
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1520
|
+
mode: z.ZodLiteral<"pipeline">;
|
|
1521
|
+
projectId: z.ZodString;
|
|
1522
|
+
pipelineId: z.ZodString;
|
|
1523
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
1524
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1525
|
+
}, z.core.$strip>], "mode">;
|
|
2623
1526
|
prompt: z.ZodOptional<z.ZodString>;
|
|
2624
1527
|
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2625
1528
|
ownerId: z.ZodOptional<z.ZodString>;
|
|
2626
|
-
catchUp: z.ZodOptional<z.ZodEnum<
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
mode: "bound";
|
|
2632
|
-
sessionId: string;
|
|
2633
|
-
} | {
|
|
2634
|
-
mode: "ephemeral";
|
|
2635
|
-
agentTemplate?: string | undefined;
|
|
2636
|
-
project?: string | undefined;
|
|
2637
|
-
ttl?: string | undefined;
|
|
2638
|
-
} | {
|
|
2639
|
-
mode: "queue";
|
|
2640
|
-
sessionId: string;
|
|
2641
|
-
};
|
|
2642
|
-
every?: string | undefined;
|
|
2643
|
-
payload?: Record<string, unknown> | undefined;
|
|
2644
|
-
cron?: string | undefined;
|
|
2645
|
-
prompt?: string | undefined;
|
|
2646
|
-
ownerId?: string | undefined;
|
|
2647
|
-
catchUp?: "skip" | "once" | undefined;
|
|
2648
|
-
}, {
|
|
2649
|
-
name: string;
|
|
2650
|
-
target: {
|
|
2651
|
-
mode: "bound";
|
|
2652
|
-
sessionId: string;
|
|
2653
|
-
} | {
|
|
2654
|
-
mode: "ephemeral";
|
|
2655
|
-
agentTemplate?: string | undefined;
|
|
2656
|
-
project?: string | undefined;
|
|
2657
|
-
ttl?: string | undefined;
|
|
2658
|
-
} | {
|
|
2659
|
-
mode: "queue";
|
|
2660
|
-
sessionId: string;
|
|
2661
|
-
};
|
|
2662
|
-
every?: string | undefined;
|
|
2663
|
-
enabled?: boolean | undefined;
|
|
2664
|
-
payload?: Record<string, unknown> | undefined;
|
|
2665
|
-
cron?: string | undefined;
|
|
2666
|
-
prompt?: string | undefined;
|
|
2667
|
-
ownerId?: string | undefined;
|
|
2668
|
-
catchUp?: "skip" | "once" | undefined;
|
|
2669
|
-
}>, {
|
|
2670
|
-
name: string;
|
|
2671
|
-
enabled: boolean;
|
|
2672
|
-
target: {
|
|
2673
|
-
mode: "bound";
|
|
2674
|
-
sessionId: string;
|
|
2675
|
-
} | {
|
|
2676
|
-
mode: "ephemeral";
|
|
2677
|
-
agentTemplate?: string | undefined;
|
|
2678
|
-
project?: string | undefined;
|
|
2679
|
-
ttl?: string | undefined;
|
|
2680
|
-
} | {
|
|
2681
|
-
mode: "queue";
|
|
2682
|
-
sessionId: string;
|
|
2683
|
-
};
|
|
2684
|
-
every?: string | undefined;
|
|
2685
|
-
payload?: Record<string, unknown> | undefined;
|
|
2686
|
-
cron?: string | undefined;
|
|
2687
|
-
prompt?: string | undefined;
|
|
2688
|
-
ownerId?: string | undefined;
|
|
2689
|
-
catchUp?: "skip" | "once" | undefined;
|
|
2690
|
-
}, {
|
|
2691
|
-
name: string;
|
|
2692
|
-
target: {
|
|
2693
|
-
mode: "bound";
|
|
2694
|
-
sessionId: string;
|
|
2695
|
-
} | {
|
|
2696
|
-
mode: "ephemeral";
|
|
2697
|
-
agentTemplate?: string | undefined;
|
|
2698
|
-
project?: string | undefined;
|
|
2699
|
-
ttl?: string | undefined;
|
|
2700
|
-
} | {
|
|
2701
|
-
mode: "queue";
|
|
2702
|
-
sessionId: string;
|
|
2703
|
-
};
|
|
2704
|
-
every?: string | undefined;
|
|
2705
|
-
enabled?: boolean | undefined;
|
|
2706
|
-
payload?: Record<string, unknown> | undefined;
|
|
2707
|
-
cron?: string | undefined;
|
|
2708
|
-
prompt?: string | undefined;
|
|
2709
|
-
ownerId?: string | undefined;
|
|
2710
|
-
catchUp?: "skip" | "once" | undefined;
|
|
2711
|
-
}>;
|
|
1529
|
+
catchUp: z.ZodOptional<z.ZodEnum<{
|
|
1530
|
+
once: "once";
|
|
1531
|
+
skip: "skip";
|
|
1532
|
+
}>>;
|
|
1533
|
+
}, z.core.$strip>;
|
|
2712
1534
|
/** ADR-051/ADR-089: полная сущность расписания (ответы API). */
|
|
2713
|
-
export declare const scheduleSchema: z.
|
|
1535
|
+
export declare const scheduleSchema: z.ZodObject<{
|
|
2714
1536
|
id: z.ZodString;
|
|
2715
1537
|
name: z.ZodString;
|
|
2716
1538
|
enabled: z.ZodBoolean;
|
|
2717
1539
|
cron: z.ZodOptional<z.ZodString>;
|
|
2718
1540
|
every: z.ZodOptional<z.ZodString>;
|
|
2719
|
-
target: z.ZodDiscriminatedUnion<
|
|
1541
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2720
1542
|
mode: z.ZodLiteral<"bound">;
|
|
2721
1543
|
sessionId: z.ZodString;
|
|
2722
|
-
},
|
|
2723
|
-
mode: "bound";
|
|
2724
|
-
sessionId: string;
|
|
2725
|
-
}, {
|
|
2726
|
-
mode: "bound";
|
|
2727
|
-
sessionId: string;
|
|
2728
|
-
}>, z.ZodObject<{
|
|
1544
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2729
1545
|
mode: z.ZodLiteral<"ephemeral">;
|
|
2730
1546
|
agentTemplate: z.ZodOptional<z.ZodString>;
|
|
2731
1547
|
project: z.ZodOptional<z.ZodString>;
|
|
2732
1548
|
ttl: z.ZodOptional<z.ZodString>;
|
|
2733
|
-
},
|
|
2734
|
-
mode: "ephemeral";
|
|
2735
|
-
agentTemplate?: string | undefined;
|
|
2736
|
-
project?: string | undefined;
|
|
2737
|
-
ttl?: string | undefined;
|
|
2738
|
-
}, {
|
|
2739
|
-
mode: "ephemeral";
|
|
2740
|
-
agentTemplate?: string | undefined;
|
|
2741
|
-
project?: string | undefined;
|
|
2742
|
-
ttl?: string | undefined;
|
|
2743
|
-
}>, z.ZodObject<{
|
|
1549
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2744
1550
|
mode: z.ZodLiteral<"queue">;
|
|
2745
1551
|
sessionId: z.ZodString;
|
|
2746
|
-
},
|
|
2747
|
-
mode: "
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
}>]>;
|
|
1552
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1553
|
+
mode: z.ZodLiteral<"pipeline">;
|
|
1554
|
+
projectId: z.ZodString;
|
|
1555
|
+
pipelineId: z.ZodString;
|
|
1556
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
1557
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1558
|
+
}, z.core.$strip>], "mode">;
|
|
2753
1559
|
prompt: z.ZodOptional<z.ZodString>;
|
|
2754
1560
|
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2755
1561
|
ownerId: z.ZodOptional<z.ZodString>;
|
|
2756
|
-
catchUp: z.ZodOptional<z.ZodEnum<
|
|
1562
|
+
catchUp: z.ZodOptional<z.ZodEnum<{
|
|
1563
|
+
once: "once";
|
|
1564
|
+
skip: "skip";
|
|
1565
|
+
}>>;
|
|
2757
1566
|
createdAt: z.ZodString;
|
|
2758
1567
|
updatedAt: z.ZodString;
|
|
2759
1568
|
lastRunAt: z.ZodOptional<z.ZodString>;
|
|
2760
1569
|
nextRunAt: z.ZodOptional<z.ZodString>;
|
|
2761
|
-
lastStatus: z.ZodOptional<z.ZodEnum<
|
|
1570
|
+
lastStatus: z.ZodOptional<z.ZodEnum<{
|
|
1571
|
+
error: "error";
|
|
1572
|
+
ok: "ok";
|
|
1573
|
+
skipped: "skipped";
|
|
1574
|
+
}>>;
|
|
2762
1575
|
lastError: z.ZodOptional<z.ZodString>;
|
|
2763
|
-
},
|
|
2764
|
-
name: string;
|
|
2765
|
-
id: string;
|
|
2766
|
-
enabled: boolean;
|
|
2767
|
-
createdAt: string;
|
|
2768
|
-
target: {
|
|
2769
|
-
mode: "bound";
|
|
2770
|
-
sessionId: string;
|
|
2771
|
-
} | {
|
|
2772
|
-
mode: "ephemeral";
|
|
2773
|
-
agentTemplate?: string | undefined;
|
|
2774
|
-
project?: string | undefined;
|
|
2775
|
-
ttl?: string | undefined;
|
|
2776
|
-
} | {
|
|
2777
|
-
mode: "queue";
|
|
2778
|
-
sessionId: string;
|
|
2779
|
-
};
|
|
2780
|
-
updatedAt: string;
|
|
2781
|
-
every?: string | undefined;
|
|
2782
|
-
payload?: Record<string, unknown> | undefined;
|
|
2783
|
-
lastStatus?: "error" | "ok" | "skipped" | undefined;
|
|
2784
|
-
cron?: string | undefined;
|
|
2785
|
-
prompt?: string | undefined;
|
|
2786
|
-
ownerId?: string | undefined;
|
|
2787
|
-
catchUp?: "skip" | "once" | undefined;
|
|
2788
|
-
lastRunAt?: string | undefined;
|
|
2789
|
-
nextRunAt?: string | undefined;
|
|
2790
|
-
lastError?: string | undefined;
|
|
2791
|
-
}, {
|
|
2792
|
-
name: string;
|
|
2793
|
-
id: string;
|
|
2794
|
-
enabled: boolean;
|
|
2795
|
-
createdAt: string;
|
|
2796
|
-
target: {
|
|
2797
|
-
mode: "bound";
|
|
2798
|
-
sessionId: string;
|
|
2799
|
-
} | {
|
|
2800
|
-
mode: "ephemeral";
|
|
2801
|
-
agentTemplate?: string | undefined;
|
|
2802
|
-
project?: string | undefined;
|
|
2803
|
-
ttl?: string | undefined;
|
|
2804
|
-
} | {
|
|
2805
|
-
mode: "queue";
|
|
2806
|
-
sessionId: string;
|
|
2807
|
-
};
|
|
2808
|
-
updatedAt: string;
|
|
2809
|
-
every?: string | undefined;
|
|
2810
|
-
payload?: Record<string, unknown> | undefined;
|
|
2811
|
-
lastStatus?: "error" | "ok" | "skipped" | undefined;
|
|
2812
|
-
cron?: string | undefined;
|
|
2813
|
-
prompt?: string | undefined;
|
|
2814
|
-
ownerId?: string | undefined;
|
|
2815
|
-
catchUp?: "skip" | "once" | undefined;
|
|
2816
|
-
lastRunAt?: string | undefined;
|
|
2817
|
-
nextRunAt?: string | undefined;
|
|
2818
|
-
lastError?: string | undefined;
|
|
2819
|
-
}>, {
|
|
2820
|
-
name: string;
|
|
2821
|
-
id: string;
|
|
2822
|
-
enabled: boolean;
|
|
2823
|
-
createdAt: string;
|
|
2824
|
-
target: {
|
|
2825
|
-
mode: "bound";
|
|
2826
|
-
sessionId: string;
|
|
2827
|
-
} | {
|
|
2828
|
-
mode: "ephemeral";
|
|
2829
|
-
agentTemplate?: string | undefined;
|
|
2830
|
-
project?: string | undefined;
|
|
2831
|
-
ttl?: string | undefined;
|
|
2832
|
-
} | {
|
|
2833
|
-
mode: "queue";
|
|
2834
|
-
sessionId: string;
|
|
2835
|
-
};
|
|
2836
|
-
updatedAt: string;
|
|
2837
|
-
every?: string | undefined;
|
|
2838
|
-
payload?: Record<string, unknown> | undefined;
|
|
2839
|
-
lastStatus?: "error" | "ok" | "skipped" | undefined;
|
|
2840
|
-
cron?: string | undefined;
|
|
2841
|
-
prompt?: string | undefined;
|
|
2842
|
-
ownerId?: string | undefined;
|
|
2843
|
-
catchUp?: "skip" | "once" | undefined;
|
|
2844
|
-
lastRunAt?: string | undefined;
|
|
2845
|
-
nextRunAt?: string | undefined;
|
|
2846
|
-
lastError?: string | undefined;
|
|
2847
|
-
}, {
|
|
2848
|
-
name: string;
|
|
2849
|
-
id: string;
|
|
2850
|
-
enabled: boolean;
|
|
2851
|
-
createdAt: string;
|
|
2852
|
-
target: {
|
|
2853
|
-
mode: "bound";
|
|
2854
|
-
sessionId: string;
|
|
2855
|
-
} | {
|
|
2856
|
-
mode: "ephemeral";
|
|
2857
|
-
agentTemplate?: string | undefined;
|
|
2858
|
-
project?: string | undefined;
|
|
2859
|
-
ttl?: string | undefined;
|
|
2860
|
-
} | {
|
|
2861
|
-
mode: "queue";
|
|
2862
|
-
sessionId: string;
|
|
2863
|
-
};
|
|
2864
|
-
updatedAt: string;
|
|
2865
|
-
every?: string | undefined;
|
|
2866
|
-
payload?: Record<string, unknown> | undefined;
|
|
2867
|
-
lastStatus?: "error" | "ok" | "skipped" | undefined;
|
|
2868
|
-
cron?: string | undefined;
|
|
2869
|
-
prompt?: string | undefined;
|
|
2870
|
-
ownerId?: string | undefined;
|
|
2871
|
-
catchUp?: "skip" | "once" | undefined;
|
|
2872
|
-
lastRunAt?: string | undefined;
|
|
2873
|
-
nextRunAt?: string | undefined;
|
|
2874
|
-
lastError?: string | undefined;
|
|
2875
|
-
}>;
|
|
1576
|
+
}, z.core.$strip>;
|
|
2876
1577
|
export type ScheduleInputRequest = z.infer<typeof scheduleInputSchema>;
|
|
2877
1578
|
export type ScheduleRequest = z.infer<typeof scheduleSchema>;
|
|
2878
1579
|
/** ADR-051: триггер срабатывания расписания в Job-истории. */
|
|
2879
|
-
export declare const scheduleJobTriggerSchema: z.ZodEnum<
|
|
1580
|
+
export declare const scheduleJobTriggerSchema: z.ZodEnum<{
|
|
1581
|
+
cron: "cron";
|
|
1582
|
+
manual: "manual";
|
|
1583
|
+
catchup: "catchup";
|
|
1584
|
+
}>;
|
|
2880
1585
|
/** ADR-051: запись Job-истории (ответы `GET /api/v2/schedules/:id/jobs`). */
|
|
2881
1586
|
export declare const scheduleJobSchema: z.ZodObject<{
|
|
2882
1587
|
id: z.ZodString;
|
|
2883
1588
|
scheduleId: z.ZodString;
|
|
2884
1589
|
scheduleName: z.ZodString;
|
|
2885
|
-
trigger: z.ZodEnum<
|
|
2886
|
-
|
|
1590
|
+
trigger: z.ZodEnum<{
|
|
1591
|
+
cron: "cron";
|
|
1592
|
+
manual: "manual";
|
|
1593
|
+
catchup: "catchup";
|
|
1594
|
+
}>;
|
|
1595
|
+
status: z.ZodEnum<{
|
|
1596
|
+
error: "error";
|
|
1597
|
+
ok: "ok";
|
|
1598
|
+
skipped: "skipped";
|
|
1599
|
+
}>;
|
|
2887
1600
|
startedAt: z.ZodString;
|
|
2888
1601
|
finishedAt: z.ZodString;
|
|
2889
1602
|
durationMs: z.ZodNumber;
|
|
2890
|
-
target: z.ZodDiscriminatedUnion<
|
|
1603
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2891
1604
|
mode: z.ZodLiteral<"bound">;
|
|
2892
1605
|
sessionId: z.ZodString;
|
|
2893
|
-
},
|
|
2894
|
-
mode: "bound";
|
|
2895
|
-
sessionId: string;
|
|
2896
|
-
}, {
|
|
2897
|
-
mode: "bound";
|
|
2898
|
-
sessionId: string;
|
|
2899
|
-
}>, z.ZodObject<{
|
|
1606
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2900
1607
|
mode: z.ZodLiteral<"ephemeral">;
|
|
2901
1608
|
agentTemplate: z.ZodOptional<z.ZodString>;
|
|
2902
1609
|
project: z.ZodOptional<z.ZodString>;
|
|
2903
1610
|
ttl: z.ZodOptional<z.ZodString>;
|
|
2904
|
-
},
|
|
2905
|
-
mode: "ephemeral";
|
|
2906
|
-
agentTemplate?: string | undefined;
|
|
2907
|
-
project?: string | undefined;
|
|
2908
|
-
ttl?: string | undefined;
|
|
2909
|
-
}, {
|
|
2910
|
-
mode: "ephemeral";
|
|
2911
|
-
agentTemplate?: string | undefined;
|
|
2912
|
-
project?: string | undefined;
|
|
2913
|
-
ttl?: string | undefined;
|
|
2914
|
-
}>, z.ZodObject<{
|
|
1611
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2915
1612
|
mode: z.ZodLiteral<"queue">;
|
|
2916
1613
|
sessionId: z.ZodString;
|
|
2917
|
-
},
|
|
2918
|
-
mode: "
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
}>]>;
|
|
1614
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1615
|
+
mode: z.ZodLiteral<"pipeline">;
|
|
1616
|
+
projectId: z.ZodString;
|
|
1617
|
+
pipelineId: z.ZodString;
|
|
1618
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
1619
|
+
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1620
|
+
}, z.core.$strip>], "mode">;
|
|
2924
1621
|
dedupKey: z.ZodOptional<z.ZodString>;
|
|
2925
|
-
decision: z.ZodOptional<z.ZodEnum<
|
|
1622
|
+
decision: z.ZodOptional<z.ZodEnum<{
|
|
1623
|
+
pipeline: "pipeline";
|
|
1624
|
+
queue: "queue";
|
|
1625
|
+
bound: "bound";
|
|
1626
|
+
ephemeral: "ephemeral";
|
|
1627
|
+
bind: "bind";
|
|
1628
|
+
drop: "drop";
|
|
1629
|
+
}>>;
|
|
2926
1630
|
reason: z.ZodOptional<z.ZodString>;
|
|
2927
1631
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
1632
|
+
pipelineId: z.ZodOptional<z.ZodString>;
|
|
1633
|
+
runId: z.ZodOptional<z.ZodString>;
|
|
2928
1634
|
error: z.ZodOptional<z.ZodString>;
|
|
2929
|
-
},
|
|
2930
|
-
status: "error" | "ok" | "skipped";
|
|
2931
|
-
id: string;
|
|
2932
|
-
target: {
|
|
2933
|
-
mode: "bound";
|
|
2934
|
-
sessionId: string;
|
|
2935
|
-
} | {
|
|
2936
|
-
mode: "ephemeral";
|
|
2937
|
-
agentTemplate?: string | undefined;
|
|
2938
|
-
project?: string | undefined;
|
|
2939
|
-
ttl?: string | undefined;
|
|
2940
|
-
} | {
|
|
2941
|
-
mode: "queue";
|
|
2942
|
-
sessionId: string;
|
|
2943
|
-
};
|
|
2944
|
-
scheduleId: string;
|
|
2945
|
-
scheduleName: string;
|
|
2946
|
-
trigger: "cron" | "manual" | "catchup";
|
|
2947
|
-
startedAt: string;
|
|
2948
|
-
finishedAt: string;
|
|
2949
|
-
durationMs: number;
|
|
2950
|
-
error?: string | undefined;
|
|
2951
|
-
dedupKey?: string | undefined;
|
|
2952
|
-
sessionId?: string | undefined;
|
|
2953
|
-
decision?: "bound" | "ephemeral" | "queue" | "bind" | "drop" | undefined;
|
|
2954
|
-
reason?: string | undefined;
|
|
2955
|
-
}, {
|
|
2956
|
-
status: "error" | "ok" | "skipped";
|
|
2957
|
-
id: string;
|
|
2958
|
-
target: {
|
|
2959
|
-
mode: "bound";
|
|
2960
|
-
sessionId: string;
|
|
2961
|
-
} | {
|
|
2962
|
-
mode: "ephemeral";
|
|
2963
|
-
agentTemplate?: string | undefined;
|
|
2964
|
-
project?: string | undefined;
|
|
2965
|
-
ttl?: string | undefined;
|
|
2966
|
-
} | {
|
|
2967
|
-
mode: "queue";
|
|
2968
|
-
sessionId: string;
|
|
2969
|
-
};
|
|
2970
|
-
scheduleId: string;
|
|
2971
|
-
scheduleName: string;
|
|
2972
|
-
trigger: "cron" | "manual" | "catchup";
|
|
2973
|
-
startedAt: string;
|
|
2974
|
-
finishedAt: string;
|
|
2975
|
-
durationMs: number;
|
|
2976
|
-
error?: string | undefined;
|
|
2977
|
-
dedupKey?: string | undefined;
|
|
2978
|
-
sessionId?: string | undefined;
|
|
2979
|
-
decision?: "bound" | "ephemeral" | "queue" | "bind" | "drop" | undefined;
|
|
2980
|
-
reason?: string | undefined;
|
|
2981
|
-
}>;
|
|
1635
|
+
}, z.core.$strip>;
|
|
2982
1636
|
export type ScheduleJobRequest = z.infer<typeof scheduleJobSchema>;
|
|
1637
|
+
/** ADR-102: семейство роллапов аналитики (`usage`/`activity`/`decision`/`prompt`). */
|
|
1638
|
+
export declare const analyticsFamilySchema: z.ZodEnum<{
|
|
1639
|
+
prompt: "prompt";
|
|
1640
|
+
decision: "decision";
|
|
1641
|
+
usage: "usage";
|
|
1642
|
+
activity: "activity";
|
|
1643
|
+
}>;
|
|
1644
|
+
/** ADR-102: ось измерения роллапа (`day`/`user`/`project`/`model`/`agent`/`provider`). */
|
|
1645
|
+
export declare const analyticsDimensionSchema: z.ZodEnum<{
|
|
1646
|
+
user: "user";
|
|
1647
|
+
agent: "agent";
|
|
1648
|
+
project: "project";
|
|
1649
|
+
provider: "provider";
|
|
1650
|
+
model: "model";
|
|
1651
|
+
day: "day";
|
|
1652
|
+
}>;
|
|
1653
|
+
/** ADR-102: сутки UTC в формате `YYYY-MM-DD`. */
|
|
1654
|
+
export declare const analyticsDaySchema: z.ZodString;
|
|
1655
|
+
/** ADR-102: пред-агрегированный бакет роллапа (запись через порт хранения). */
|
|
1656
|
+
export declare const analyticsRollupBucketSchema: z.ZodObject<{
|
|
1657
|
+
family: z.ZodEnum<{
|
|
1658
|
+
prompt: "prompt";
|
|
1659
|
+
decision: "decision";
|
|
1660
|
+
usage: "usage";
|
|
1661
|
+
activity: "activity";
|
|
1662
|
+
}>;
|
|
1663
|
+
day: z.ZodString;
|
|
1664
|
+
dimensions: z.ZodPrefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1665
|
+
measures: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
1666
|
+
costByCurrency: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1667
|
+
}, z.core.$strip>;
|
|
1668
|
+
/** ADR-102: запрос среза/серии роллапов (только чтение). */
|
|
1669
|
+
export declare const analyticsRollupQuerySchema: z.ZodObject<{
|
|
1670
|
+
family: z.ZodEnum<{
|
|
1671
|
+
prompt: "prompt";
|
|
1672
|
+
decision: "decision";
|
|
1673
|
+
usage: "usage";
|
|
1674
|
+
activity: "activity";
|
|
1675
|
+
}>;
|
|
1676
|
+
from: z.ZodOptional<z.ZodString>;
|
|
1677
|
+
to: z.ZodOptional<z.ZodString>;
|
|
1678
|
+
dimensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1679
|
+
groupBy: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1680
|
+
user: "user";
|
|
1681
|
+
agent: "agent";
|
|
1682
|
+
project: "project";
|
|
1683
|
+
provider: "provider";
|
|
1684
|
+
model: "model";
|
|
1685
|
+
day: "day";
|
|
1686
|
+
}>>>;
|
|
1687
|
+
}, z.core.$strip>;
|
|
1688
|
+
export type AnalyticsRollupBucketInput = z.infer<typeof analyticsRollupBucketSchema>;
|
|
1689
|
+
export type AnalyticsRollupQueryInput = z.infer<typeof analyticsRollupQuerySchema>;
|
|
1690
|
+
/**
|
|
1691
|
+
* ADR-102: строка отчёта — оси группировки + меры (сырые счётчики и
|
|
1692
|
+
* дериваты `ANALYTICS_DERIVED_MEASURES`). `costByCurrency` опускается, если пусто.
|
|
1693
|
+
*/
|
|
1694
|
+
export declare const analyticsReportRowSchema: z.ZodObject<{
|
|
1695
|
+
dimensions: z.ZodPrefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1696
|
+
measures: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
1697
|
+
costByCurrency: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1698
|
+
}, z.core.$strip>;
|
|
1699
|
+
/** ADR-102: отчёт по семейству за период (только чтение, данные без i18n). */
|
|
1700
|
+
export declare const analyticsReportSchema: z.ZodObject<{
|
|
1701
|
+
report: z.ZodEnum<{
|
|
1702
|
+
prompt: "prompt";
|
|
1703
|
+
decision: "decision";
|
|
1704
|
+
usage: "usage";
|
|
1705
|
+
activity: "activity";
|
|
1706
|
+
}>;
|
|
1707
|
+
from: z.ZodString;
|
|
1708
|
+
to: z.ZodString;
|
|
1709
|
+
groupBy: z.ZodArray<z.ZodEnum<{
|
|
1710
|
+
user: "user";
|
|
1711
|
+
agent: "agent";
|
|
1712
|
+
project: "project";
|
|
1713
|
+
provider: "provider";
|
|
1714
|
+
model: "model";
|
|
1715
|
+
day: "day";
|
|
1716
|
+
}>>;
|
|
1717
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
1718
|
+
dimensions: z.ZodPrefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1719
|
+
measures: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
1720
|
+
costByCurrency: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1721
|
+
}, z.core.$strip>>;
|
|
1722
|
+
}, z.core.$strip>;
|
|
1723
|
+
/** ADR-102: формат выгрузки отчёта (`csv`/`json`; только данные). */
|
|
1724
|
+
export declare const analyticsExportFormatSchema: z.ZodEnum<{
|
|
1725
|
+
csv: "csv";
|
|
1726
|
+
json: "json";
|
|
1727
|
+
}>;
|
|
1728
|
+
/** ADR-102: сводка инстанса за период — агрегаты `usage`/`activity`/`decision`. */
|
|
1729
|
+
export declare const analyticsSummarySchema: z.ZodObject<{
|
|
1730
|
+
from: z.ZodString;
|
|
1731
|
+
to: z.ZodString;
|
|
1732
|
+
usage: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
1733
|
+
activity: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
1734
|
+
decision: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
1735
|
+
costByCurrency: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1736
|
+
}, z.core.$strip>;
|
|
1737
|
+
export type AnalyticsReportRowInput = z.infer<typeof analyticsReportRowSchema>;
|
|
1738
|
+
export type AnalyticsReportInput = z.infer<typeof analyticsReportSchema>;
|
|
1739
|
+
export type AnalyticsExportFormatInput = z.infer<typeof analyticsExportFormatSchema>;
|
|
1740
|
+
export type AnalyticsSummaryInput = z.infer<typeof analyticsSummarySchema>;
|
|
1741
|
+
/** Медиа-типы части сообщения (ADR-115) — вложение. */
|
|
1742
|
+
export declare const mediaPartTypeSchema: z.ZodEnum<{
|
|
1743
|
+
file: "file";
|
|
1744
|
+
image: "image";
|
|
1745
|
+
audio: "audio";
|
|
1746
|
+
video: "video";
|
|
1747
|
+
}>;
|
|
1748
|
+
/**
|
|
1749
|
+
* ADR-115 §«Модель контента»: данные медиа-части — ссылка на blob в
|
|
1750
|
+
* blob-хранилище + метаданные. Обязательны `blobPath`/`sha256`/`mime`/`size`;
|
|
1751
|
+
* остальное — необязательные метаданные (имя, размеры, длительность,
|
|
1752
|
+
* текстовая расшифровка).
|
|
1753
|
+
*/
|
|
1754
|
+
export declare const mediaPartSchema: z.ZodObject<{
|
|
1755
|
+
blobPath: z.ZodString;
|
|
1756
|
+
sha256: z.ZodString;
|
|
1757
|
+
mime: z.ZodString;
|
|
1758
|
+
size: z.ZodNumber;
|
|
1759
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1760
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
1761
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
1762
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
1763
|
+
transcript: z.ZodOptional<z.ZodString>;
|
|
1764
|
+
}, z.core.$strip>;
|
|
1765
|
+
export type MediaPartInput = z.infer<typeof mediaPartSchema>;
|