@itphx/synth-shared 0.10.0 → 0.10.1

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.
Files changed (65) hide show
  1. package/dist/config/defaults.js +11 -11
  2. package/dist/config/env-overrides.d.ts +3 -3
  3. package/dist/config/env-overrides.js +9 -9
  4. package/dist/config/loader.d.ts +2 -2
  5. package/dist/config/loader.js +4 -4
  6. package/dist/config/resolve.d.ts +10 -10
  7. package/dist/config/resolve.js +16 -16
  8. package/dist/config/types.d.ts +190 -190
  9. package/dist/config/types.js +47 -47
  10. package/dist/i18n/index.d.ts +1 -1
  11. package/dist/i18n/index.js +16 -10
  12. package/dist/interfaces/index.d.ts +3 -3
  13. package/dist/schemas/index.d.ts +96 -96
  14. package/dist/schemas/index.js +70 -70
  15. package/dist/skills/frontmatter.js +1 -1
  16. package/dist/types/agent.d.ts +30 -0
  17. package/dist/types/agent.js +1 -0
  18. package/dist/types/bus-events.d.ts +7 -0
  19. package/dist/types/bus-events.js +1 -0
  20. package/dist/types/commands.d.ts +10 -10
  21. package/dist/types/commands.js +2 -2
  22. package/dist/types/decision.d.ts +16 -16
  23. package/dist/types/decision.js +4 -4
  24. package/dist/types/events.d.ts +22 -22
  25. package/dist/types/fs.d.ts +44 -0
  26. package/dist/types/fs.js +16 -0
  27. package/dist/types/git.d.ts +63 -0
  28. package/dist/types/git.js +1 -0
  29. package/dist/types/hooks.d.ts +4 -4
  30. package/dist/types/index.d.ts +12 -1165
  31. package/dist/types/index.js +38 -244
  32. package/dist/types/llm.d.ts +32 -0
  33. package/dist/types/llm.js +8 -0
  34. package/dist/types/mcp.d.ts +104 -0
  35. package/dist/types/mcp.js +40 -0
  36. package/dist/types/message.d.ts +63 -0
  37. package/dist/types/message.js +12 -0
  38. package/dist/types/permission.d.ts +2 -2
  39. package/dist/types/permission.js +1 -1
  40. package/dist/types/project.d.ts +134 -0
  41. package/dist/types/project.js +67 -0
  42. package/dist/types/prompt.d.ts +236 -0
  43. package/dist/types/prompt.js +15 -0
  44. package/dist/types/provider.d.ts +84 -0
  45. package/dist/types/provider.js +35 -0
  46. package/dist/types/schedules.d.ts +8 -8
  47. package/dist/types/schedules.js +1 -1
  48. package/dist/types/service-keys.d.ts +10 -10
  49. package/dist/types/service-keys.js +3 -3
  50. package/dist/types/session.d.ts +269 -0
  51. package/dist/types/session.js +13 -0
  52. package/dist/types/skills.d.ts +11 -11
  53. package/dist/types/skills.js +6 -6
  54. package/dist/types/tools.d.ts +3 -3
  55. package/dist/types/user.d.ts +113 -0
  56. package/dist/types/user.js +31 -0
  57. package/dist/types/webhooks.d.ts +5 -5
  58. package/dist/types/webhooks.js +1 -1
  59. package/dist/utils/glob.d.ts +1 -1
  60. package/dist/utils/glob.js +1 -1
  61. package/dist/utils/index.js +2 -2
  62. package/dist/utils/workspace.js +1 -1
  63. package/dist/version.d.ts +1 -1
  64. package/dist/version.js +1 -1
  65. package/package.json +1 -1
@@ -63,7 +63,7 @@ export declare const sessionSettingsSchema: z.ZodObject<{
63
63
  planMode: z.ZodOptional<z.ZodEnum<["auto", "strict", "off"]>>;
64
64
  skills: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
65
65
  skillsDisabled: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
66
- /** AD-084: per-session гейт decision-уровня микро-каскада (undefined → config.decision.enabled). */
66
+ /** ADR-084: per-session гейт decision-уровня микро-каскада (undefined → config.decision.enabled). */
67
67
  decisionFirst: z.ZodOptional<z.ZodBoolean>;
68
68
  }, "strip", z.ZodTypeAny, {
69
69
  temperature: number;
@@ -84,7 +84,7 @@ export declare const sessionSettingsSchema: z.ZodObject<{
84
84
  websocketEnabled: boolean;
85
85
  provider?: string | undefined;
86
86
  model?: string | undefined;
87
- reasoningLevel?: "default" | "none" | "low" | "medium" | "high" | undefined;
87
+ reasoningLevel?: "high" | "medium" | "low" | "default" | "none" | undefined;
88
88
  systemPrompt?: string | undefined;
89
89
  agentRole?: string | undefined;
90
90
  mcpServers?: string[] | undefined;
@@ -97,7 +97,7 @@ export declare const sessionSettingsSchema: z.ZodObject<{
97
97
  }, {
98
98
  provider?: string | undefined;
99
99
  model?: string | undefined;
100
- reasoningLevel?: "default" | "none" | "low" | "medium" | "high" | undefined;
100
+ reasoningLevel?: "high" | "medium" | "low" | "default" | "none" | undefined;
101
101
  temperature?: number | undefined;
102
102
  maxTokens?: number | undefined;
103
103
  systemPrompt?: string | undefined;
@@ -159,7 +159,7 @@ export declare const sessionCreateSchema: z.ZodObject<{
159
159
  planMode: z.ZodOptional<z.ZodEnum<["auto", "strict", "off"]>>;
160
160
  skills: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
161
161
  skillsDisabled: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
162
- /** AD-084: per-session гейт decision-уровня микро-каскада (undefined → config.decision.enabled). */
162
+ /** ADR-084: per-session гейт decision-уровня микро-каскада (undefined → config.decision.enabled). */
163
163
  decisionFirst: z.ZodOptional<z.ZodBoolean>;
164
164
  }, "strip", z.ZodTypeAny, {
165
165
  temperature: number;
@@ -180,7 +180,7 @@ export declare const sessionCreateSchema: z.ZodObject<{
180
180
  websocketEnabled: boolean;
181
181
  provider?: string | undefined;
182
182
  model?: string | undefined;
183
- reasoningLevel?: "default" | "none" | "low" | "medium" | "high" | undefined;
183
+ reasoningLevel?: "high" | "medium" | "low" | "default" | "none" | undefined;
184
184
  systemPrompt?: string | undefined;
185
185
  agentRole?: string | undefined;
186
186
  mcpServers?: string[] | undefined;
@@ -193,7 +193,7 @@ export declare const sessionCreateSchema: z.ZodObject<{
193
193
  }, {
194
194
  provider?: string | undefined;
195
195
  model?: string | undefined;
196
- reasoningLevel?: "default" | "none" | "low" | "medium" | "high" | undefined;
196
+ reasoningLevel?: "high" | "medium" | "low" | "default" | "none" | undefined;
197
197
  temperature?: number | undefined;
198
198
  maxTokens?: number | undefined;
199
199
  systemPrompt?: string | undefined;
@@ -224,7 +224,7 @@ export declare const sessionCreateSchema: z.ZodObject<{
224
224
  engine: "synth" | "opencode" | "cline";
225
225
  name?: string | undefined;
226
226
  title?: string | undefined;
227
- icon?: "task" | "code" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "chat" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | null | 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
228
  color?: "a1" | "a2" | "a3" | "a4" | "a5" | "a6" | "a7" | "a8" | "a9" | "a10" | "a11" | "a12" | "a13" | "a14" | "a15" | "a16" | null | undefined;
229
229
  projectId?: string | undefined;
230
230
  settings?: {
@@ -246,7 +246,7 @@ export declare const sessionCreateSchema: z.ZodObject<{
246
246
  websocketEnabled: boolean;
247
247
  provider?: string | undefined;
248
248
  model?: string | undefined;
249
- reasoningLevel?: "default" | "none" | "low" | "medium" | "high" | undefined;
249
+ reasoningLevel?: "high" | "medium" | "low" | "default" | "none" | undefined;
250
250
  systemPrompt?: string | undefined;
251
251
  agentRole?: string | undefined;
252
252
  mcpServers?: string[] | undefined;
@@ -260,14 +260,14 @@ export declare const sessionCreateSchema: z.ZodObject<{
260
260
  }, {
261
261
  name?: string | undefined;
262
262
  title?: string | undefined;
263
- icon?: "task" | "code" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "chat" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | null | 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
264
  color?: "a1" | "a2" | "a3" | "a4" | "a5" | "a6" | "a7" | "a8" | "a9" | "a10" | "a11" | "a12" | "a13" | "a14" | "a15" | "a16" | null | undefined;
265
265
  projectId?: string | undefined;
266
266
  engine?: "synth" | "opencode" | "cline" | undefined;
267
267
  settings?: {
268
268
  provider?: string | undefined;
269
269
  model?: string | undefined;
270
- reasoningLevel?: "default" | "none" | "low" | "medium" | "high" | undefined;
270
+ reasoningLevel?: "high" | "medium" | "low" | "default" | "none" | undefined;
271
271
  temperature?: number | undefined;
272
272
  maxTokens?: number | undefined;
273
273
  systemPrompt?: string | undefined;
@@ -391,7 +391,7 @@ export declare const sessionUpdateSchema: z.ZodObject<{
391
391
  }, z.ZodTypeAny, "passthrough">>>;
392
392
  }, "strip", z.ZodTypeAny, {
393
393
  name?: string | undefined;
394
- icon?: "task" | "code" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "chat" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | null | 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
395
  color?: "a1" | "a2" | "a3" | "a4" | "a5" | "a6" | "a7" | "a8" | "a9" | "a10" | "a11" | "a12" | "a13" | "a14" | "a15" | "a16" | null | undefined;
396
396
  projectId?: string | undefined;
397
397
  engine?: "synth" | "opencode" | "cline" | undefined;
@@ -427,7 +427,7 @@ export declare const sessionUpdateSchema: z.ZodObject<{
427
427
  }, z.ZodTypeAny, "passthrough"> | undefined;
428
428
  }, {
429
429
  name?: string | undefined;
430
- icon?: "task" | "code" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "chat" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | null | 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
431
  color?: "a1" | "a2" | "a3" | "a4" | "a5" | "a6" | "a7" | "a8" | "a9" | "a10" | "a11" | "a12" | "a13" | "a14" | "a15" | "a16" | null | undefined;
432
432
  projectId?: string | undefined;
433
433
  engine?: "synth" | "opencode" | "cline" | undefined;
@@ -463,7 +463,7 @@ export declare const sessionUpdateSchema: z.ZodObject<{
463
463
  }, z.ZodTypeAny, "passthrough"> | undefined;
464
464
  }>;
465
465
  /**
466
- * AD-076: запись реестра git-репозиториев. `path` обязателен, остальные поля
466
+ * ADR-076: запись реестра git-репозиториев. `path` обязателен, остальные поля
467
467
  * опциональны; старые формы (`string` / `{ path }`) принимаются через
468
468
  * `normalizeGitRepoConfig` и union в `repos`.
469
469
  */
@@ -496,7 +496,7 @@ export declare const gitRepoConfigSchema: z.ZodObject<{
496
496
  lastFetch?: string | undefined;
497
497
  }>;
498
498
  /**
499
- * AD-076: нормализация legacy-значения `repos` к `GitRepoConfig`.
499
+ * ADR-076: нормализация legacy-значения `repos` к `GitRepoConfig`.
500
500
  * `string` → `{ path }`; объект → прогон через `gitRepoConfigSchema`
501
501
  * (невалидный → `null`). Всё прочее → `null`.
502
502
  */
@@ -539,7 +539,7 @@ export declare const projectCreateSchema: z.ZodObject<{
539
539
  name: string;
540
540
  description: string;
541
541
  workspace?: string | undefined;
542
- icon?: "task" | "code" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "chat" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | null | 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
543
  color?: "a1" | "a2" | "a3" | "a4" | "a5" | "a6" | "a7" | "a8" | "a9" | "a10" | "a11" | "a12" | "a13" | "a14" | "a15" | "a16" | null | undefined;
544
544
  repos?: (string | {
545
545
  path: string;
@@ -554,7 +554,7 @@ export declare const projectCreateSchema: z.ZodObject<{
554
554
  }, {
555
555
  name: string;
556
556
  workspace?: string | undefined;
557
- icon?: "task" | "code" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "chat" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | null | 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
558
  color?: "a1" | "a2" | "a3" | "a4" | "a5" | "a6" | "a7" | "a8" | "a9" | "a10" | "a11" | "a12" | "a13" | "a14" | "a15" | "a16" | null | undefined;
559
559
  description?: string | undefined;
560
560
  repos?: (string | {
@@ -607,7 +607,7 @@ export declare const projectUpdateSchema: z.ZodObject<{
607
607
  }, "strip", z.ZodTypeAny, {
608
608
  workspace?: string | undefined;
609
609
  name?: string | undefined;
610
- icon?: "task" | "code" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "chat" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | null | 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
611
  color?: "a1" | "a2" | "a3" | "a4" | "a5" | "a6" | "a7" | "a8" | "a9" | "a10" | "a11" | "a12" | "a13" | "a14" | "a15" | "a16" | null | undefined;
612
612
  description?: string | undefined;
613
613
  repos?: (string | {
@@ -625,7 +625,7 @@ export declare const projectUpdateSchema: z.ZodObject<{
625
625
  }, {
626
626
  workspace?: string | undefined;
627
627
  name?: string | undefined;
628
- icon?: "task" | "code" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "chat" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | null | 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
629
  color?: "a1" | "a2" | "a3" | "a4" | "a5" | "a6" | "a7" | "a8" | "a9" | "a10" | "a11" | "a12" | "a13" | "a14" | "a15" | "a16" | null | undefined;
630
630
  description?: string | undefined;
631
631
  repos?: (string | {
@@ -641,7 +641,7 @@ export declare const projectUpdateSchema: z.ZodObject<{
641
641
  currentTask?: string | undefined;
642
642
  invariants?: string | undefined;
643
643
  }>;
644
- /** AD-076: тело создания SSH-ключа (`POST /api/v2/ssh-keys`). */
644
+ /** ADR-076: тело создания SSH-ключа (`POST /api/v2/ssh-keys`). */
645
645
  export declare const sshKeyCreateSchema: z.ZodObject<{
646
646
  name: z.ZodString;
647
647
  type: z.ZodOptional<z.ZodString>;
@@ -661,7 +661,7 @@ export declare const sshKeyCreateSchema: z.ZodObject<{
661
661
  passphrase?: string | undefined;
662
662
  agentIds?: string[] | undefined;
663
663
  }>;
664
- /** AD-076: тело обновления SSH-ключа (без id/createdAt). */
664
+ /** ADR-076: тело обновления SSH-ключа (без id/createdAt). */
665
665
  export declare const sshKeyUpdateSchema: z.ZodObject<{
666
666
  name: z.ZodOptional<z.ZodString>;
667
667
  type: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -682,7 +682,7 @@ export declare const sshKeyUpdateSchema: z.ZodObject<{
682
682
  agentIds?: string[] | undefined;
683
683
  }>;
684
684
  /**
685
- * AD-071 §2.4: проектный скоуп MCP (ссылки на реестр по имени).
685
+ * ADR-071 §2.4: проектный скоуп MCP (ссылки на реестр по имени).
686
686
  * PUT-семантика: `undefined` ≠ `[]` — отсутствующее поле сохраняет текущее
687
687
  * значение, поэтому `.default([])` здесь недопустим.
688
688
  */
@@ -697,7 +697,7 @@ export declare const projectMcpUpdateSchema: z.ZodObject<{
697
697
  defaultOn?: string[] | undefined;
698
698
  }>;
699
699
  /**
700
- * AD-075: тело `PUT /api/v2/settings/workspace-policy` — политика для
700
+ * ADR-075: тело `PUT /api/v2/settings/workspace-policy` — политика для
701
701
  * абсолютного workspace вне `workspacesRoot`.
702
702
  */
703
703
  export declare const workspacePolicySchema: z.ZodObject<{
@@ -719,19 +719,19 @@ export declare const promptRequestSchema: z.ZodObject<{
719
719
  }, "strip", z.ZodTypeAny, {
720
720
  content: string;
721
721
  stream: boolean;
722
+ system?: string | undefined;
722
723
  provider?: string | undefined;
723
724
  model?: string | undefined;
724
725
  messageId?: string | undefined;
725
726
  agent?: string | undefined;
726
- system?: string | undefined;
727
727
  }, {
728
728
  content: string;
729
+ system?: string | undefined;
729
730
  provider?: string | undefined;
730
731
  model?: string | undefined;
731
732
  messageId?: string | undefined;
732
733
  stream?: boolean | undefined;
733
734
  agent?: string | undefined;
734
- system?: string | undefined;
735
735
  }>;
736
736
  export declare const spaLoginSchema: z.ZodObject<{
737
737
  apiKey: z.ZodString;
@@ -775,12 +775,12 @@ export declare const fsWriteBodySchema: z.ZodObject<{
775
775
  content: z.ZodString;
776
776
  }, "strip", z.ZodTypeAny, {
777
777
  path: string;
778
- projectId: string;
779
778
  content: string;
779
+ projectId: string;
780
780
  }, {
781
781
  path: string;
782
- projectId: string;
783
782
  content: string;
783
+ projectId: string;
784
784
  }>;
785
785
  export declare const fsDeleteQuerySchema: z.ZodObject<{
786
786
  project_id: z.ZodString;
@@ -813,7 +813,7 @@ export declare const fsDownloadQuerySchema: z.ZodObject<{
813
813
  project_id: string;
814
814
  }>;
815
815
  /**
816
- * AD-075: запрос навигации по корню workspace (`GET /fs/workspace-root/browse`,
816
+ * ADR-075: запрос навигации по корню workspace (`GET /fs/workspace-root/browse`,
817
817
  * `GET /fs/workspace-root`). `includeHidden` принимает строковые `true`/`false`
818
818
  * (query-параметры) — `z.coerce.boolean()` не подходит, т.к. `'false'` → `true`.
819
819
  */
@@ -827,7 +827,7 @@ export declare const fsWorkspaceBrowseQuerySchema: z.ZodObject<{
827
827
  path?: string | undefined;
828
828
  includeHidden?: unknown;
829
829
  }>;
830
- /** AD-075: тело `POST /fs/workspace-root/mkdir` — создание каталога в корне workspace. */
830
+ /** ADR-075: тело `POST /fs/workspace-root/mkdir` — создание каталога в корне workspace. */
831
831
  export declare const fsWorkspaceMkdirBodySchema: z.ZodObject<{
832
832
  path: z.ZodString;
833
833
  /** `confirm`-политика: явное подтверждение создания каталога вне `workspacesRoot`. */
@@ -888,7 +888,7 @@ export declare const gitCloneBodySchema: z.ZodObject<{
888
888
  branch?: string | undefined;
889
889
  }>;
890
890
  /**
891
- * AD-076: тело `POST /api/v2/git/repos/register` — upsert записи реестра
891
+ * ADR-076: тело `POST /api/v2/git/repos/register` — upsert записи реестра
892
892
  * (идемпотентно по `path`). Используется UI для добавления уже существующего
893
893
  * локально репозитория.
894
894
  */
@@ -918,7 +918,7 @@ export declare const gitReposRegisterBodySchema: z.ZodObject<{
918
918
  sshKeyId?: string | undefined;
919
919
  }>;
920
920
  /**
921
- * AD-076: тело `POST /api/v2/git/repos/remove` — удаление записи реестра;
921
+ * ADR-076: тело `POST /api/v2/git/repos/remove` — удаление записи реестра;
922
922
  * обязателен `id` либо `path`. `deleteLocal` — удалить каталог репозитория.
923
923
  */
924
924
  export declare const gitReposRemoveBodySchema: z.ZodEffects<z.ZodObject<{
@@ -947,7 +947,7 @@ export declare const gitReposRemoveBodySchema: z.ZodEffects<z.ZodObject<{
947
947
  id?: string | undefined;
948
948
  deleteLocal?: boolean | undefined;
949
949
  }>;
950
- /** AD-076: тело `POST /api/v2/git/repos/fetch` — обязателен `id` либо `path`. */
950
+ /** ADR-076: тело `POST /api/v2/git/repos/fetch` — обязателен `id` либо `path`. */
951
951
  export declare const gitReposFetchBodySchema: z.ZodEffects<z.ZodObject<{
952
952
  projectId: z.ZodString;
953
953
  id: z.ZodOptional<z.ZodString>;
@@ -996,7 +996,7 @@ export declare const gitCommitQuerySchema: z.ZodObject<{
996
996
  repo_path?: string | undefined;
997
997
  }>;
998
998
  /**
999
- * AD-071 §2.6: фабрика схемы `tools.disabled` (единый источник значений
999
+ * ADR-071 §2.6: фабрика схемы `tools.disabled` (единый источник значений
1000
1000
  * на базе `ToolCapability`).
1001
1001
  *
1002
1002
  * - `strictCapabilities: true` (API, `PUT /settings/tools-disabled`) — закрытый
@@ -1008,14 +1008,14 @@ export declare function createToolsDisabledSchema(strictCapabilities: boolean):
1008
1008
  capabilities: z.ZodDefault<z.ZodArray<z.ZodEnum<[string, ...string[]]>, "many">> | z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1009
1009
  tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1010
1010
  }, "strip", z.ZodTypeAny, {
1011
- capabilities: string[];
1012
1011
  tools: string[];
1012
+ capabilities: string[];
1013
1013
  }, {
1014
- capabilities?: string[] | undefined;
1015
1014
  tools?: string[] | undefined;
1015
+ capabilities?: string[] | undefined;
1016
1016
  }>;
1017
1017
  /**
1018
- * AD-071 §2.6: тело `PUT /api/v2/settings/tools-disabled`. Неизвестная
1018
+ * ADR-071 §2.6: тело `PUT /api/v2/settings/tools-disabled`. Неизвестная
1019
1019
  * capability — ошибка (закрытый набор: опечатка молча ничего не отключит).
1020
1020
  * Имена инструментов принимаются как строки (реестр динамический — MCP-тулы
1021
1021
  * регистрируются лениво); непустые.
@@ -1024,14 +1024,14 @@ export declare const toolsDisabledSchema: z.ZodObject<{
1024
1024
  capabilities: z.ZodDefault<z.ZodArray<z.ZodEnum<[string, ...string[]]>, "many">> | z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1025
1025
  tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1026
1026
  }, "strip", z.ZodTypeAny, {
1027
- capabilities: string[];
1028
1027
  tools: string[];
1028
+ capabilities: string[];
1029
1029
  }, {
1030
- capabilities?: string[] | undefined;
1031
1030
  tools?: string[] | undefined;
1031
+ capabilities?: string[] | undefined;
1032
1032
  }>;
1033
1033
  /**
1034
- * AD-071 §2.4: базовый контракт MCP-скоупа сессии (ссылки на реестр по имени).
1034
+ * ADR-071 §2.4: базовый контракт MCP-скоупа сессии (ссылки на реестр по имени).
1035
1035
  * `undefined` ≠ `[]`: отсутствующее поле сохраняет текущее значение.
1036
1036
  */
1037
1037
  export declare const sessionMcpScopeSchema: z.ZodEffects<z.ZodObject<{
@@ -1051,7 +1051,7 @@ export declare const sessionMcpScopeSchema: z.ZodEffects<z.ZodObject<{
1051
1051
  mcpDisabledServers?: string[] | undefined;
1052
1052
  }>;
1053
1053
  /**
1054
- * AD-071 §2.4: тело `PUT /api/v2/sessions/:id/mcp`: точечный toggle
1054
+ * ADR-071 §2.4: тело `PUT /api/v2/sessions/:id/mcp`: точечный toggle
1055
1055
  * (`{ name, enabled }`, в т.ч. opt-out системного сервера) или полная/частичная
1056
1056
  * замена (`{ mcpServers?, mcpDisabledServers? }`).
1057
1057
  */
@@ -1108,11 +1108,11 @@ export type GitReposRemoveBody = z.infer<typeof gitReposRemoveBodySchema>;
1108
1108
  export type GitReposFetchBody = z.infer<typeof gitReposFetchBodySchema>;
1109
1109
  export type GitLogQuery = z.infer<typeof gitLogQuerySchema>;
1110
1110
  export type GitCommitQuery = z.infer<typeof gitCommitQuerySchema>;
1111
- /** AD-046 §3.2: имя скилла — 1–64, `^[a-z0-9]+(-[a-z0-9]+)*$`. */
1111
+ /** ADR-046 §3.2: имя скилла — 1–64, `^[a-z0-9]+(-[a-z0-9]+)*$`. */
1112
1112
  export declare const SKILL_NAME_REGEX: RegExp;
1113
1113
  export declare const SKILL_NAME_MIN = 1;
1114
1114
  export declare const SKILL_NAME_MAX = 64;
1115
- /** AD-046 §3.2: длина `description`. */
1115
+ /** ADR-046 §3.2: длина `description`. */
1116
1116
  export declare const SKILL_DESCRIPTION_MIN = 1;
1117
1117
  export declare const SKILL_DESCRIPTION_MAX = 1024;
1118
1118
  export declare const skillNameSchema: z.ZodString;
@@ -1164,7 +1164,7 @@ export declare const skillFileWriteSchema: z.ZodObject<{
1164
1164
  content: string;
1165
1165
  }>;
1166
1166
  /**
1167
- * AD-046 §4.5: per-session enable/disable скиллов (по образцу MCP-скоупа).
1167
+ * ADR-046 §4.5: per-session enable/disable скиллов (по образцу MCP-скоупа).
1168
1168
  * `undefined` ≠ `[]`: отсутствующее поле сохраняет текущее значение.
1169
1169
  */
1170
1170
  export declare const skillSessionOverrideSchema: z.ZodObject<{
@@ -1181,7 +1181,7 @@ export type SkillCreateRequest = z.infer<typeof skillCreateSchema>;
1181
1181
  export type SkillUpdateRequest = z.infer<typeof skillUpdateSchema>;
1182
1182
  export type SkillFileWriteRequest = z.infer<typeof skillFileWriteSchema>;
1183
1183
  export type SkillSessionOverrideRequest = z.infer<typeof skillSessionOverrideSchema>;
1184
- /** AD-046 §7.3: тело `POST/PATCH /api/v2/skill-bundles` (YAML-группа скиллов). */
1184
+ /** ADR-046 §7.3: тело `POST/PATCH /api/v2/skill-bundles` (YAML-группа скиллов). */
1185
1185
  export declare const skillBundleSchema: z.ZodObject<{
1186
1186
  name: z.ZodString;
1187
1187
  description: z.ZodString;
@@ -1199,7 +1199,7 @@ export declare const skillBundleSchema: z.ZodObject<{
1199
1199
  instruction?: string | undefined;
1200
1200
  }>;
1201
1201
  export type SkillBundleRequest = z.infer<typeof skillBundleSchema>;
1202
- /** AD-046 §7.4: тело `PUT /api/v2/settings/skills-disabled` (группы/имена). */
1202
+ /** ADR-046 §7.4: тело `PUT /api/v2/settings/skills-disabled` (группы/имена). */
1203
1203
  export declare const skillsDisabledSchema: z.ZodObject<{
1204
1204
  categories: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1205
1205
  groups: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
@@ -1215,7 +1215,7 @@ export declare const skillsDisabledSchema: z.ZodObject<{
1215
1215
  }>;
1216
1216
  export type SkillsDisabledRequest = z.infer<typeof skillsDisabledSchema>;
1217
1217
  /**
1218
- * AD-046 §4.5: тело `PUT /api/v2/settings/skills` — системные настройки:
1218
+ * ADR-046 §4.5: тело `PUT /api/v2/settings/skills` — системные настройки:
1219
1219
  * - `disabled` — hard-gate: скиллы, недоступные НИГДЕ;
1220
1220
  * - `disabledForNewProjects` — сид для НОВЫХ проектов (снимок при создании);
1221
1221
  * - `policy` — политика доступности (строкой, валидируется роутом).
@@ -1275,7 +1275,7 @@ export declare const skillsSystemSettingsSchema: z.ZodObject<{
1275
1275
  }>;
1276
1276
  export type SkillsSystemSettingsRequest = z.infer<typeof skillsSystemSettingsSchema>;
1277
1277
  /**
1278
- * AD-046 §4.5: тело `PUT /api/v2/sessions/:id/skills`: точечный toggle
1278
+ * ADR-046 §4.5: тело `PUT /api/v2/sessions/:id/skills`: точечный toggle
1279
1279
  * (`{ name, enabled }`) или полная/частичная замена (`{ skills?, skillsDisabled? }`).
1280
1280
  */
1281
1281
  export declare const sessionSkillUpdateSchema: z.ZodEffects<z.ZodObject<{
@@ -1304,7 +1304,7 @@ export declare const sessionSkillUpdateSchema: z.ZodEffects<z.ZodObject<{
1304
1304
  name?: string | undefined;
1305
1305
  enabled?: boolean | undefined;
1306
1306
  }>;
1307
- /** AD-046 §4.5: тело `PUT /api/v2/projects/:id/skills`. */
1307
+ /** ADR-046 §4.5: тело `PUT /api/v2/projects/:id/skills`. */
1308
1308
  export declare const projectSkillUpdateSchema: z.ZodObject<{
1309
1309
  enabled: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1310
1310
  defaultOn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1317,7 +1317,7 @@ export declare const projectSkillUpdateSchema: z.ZodObject<{
1317
1317
  }>;
1318
1318
  export type SessionSkillUpdateRequest = z.infer<typeof sessionSkillUpdateSchema>;
1319
1319
  export type ProjectSkillUpdateRequest = z.infer<typeof projectSkillUpdateSchema>;
1320
- /** AD-089: схема идентичности отправителя внешнего события. */
1320
+ /** ADR-089: схема идентичности отправителя внешнего события. */
1321
1321
  export declare const eventIdentitySchema: z.ZodObject<{
1322
1322
  principalId: z.ZodOptional<z.ZodString>;
1323
1323
  chatKey: z.ZodOptional<z.ZodString>;
@@ -1334,7 +1334,7 @@ export declare const eventIdentitySchema: z.ZodObject<{
1334
1334
  threadKey?: string | undefined;
1335
1335
  roles?: string[] | undefined;
1336
1336
  }>;
1337
- /** AD-089: схема нормализованного внешнего события (`payload` не типизируется). */
1337
+ /** ADR-089: схема нормализованного внешнего события (`payload` не типизируется). */
1338
1338
  export declare const synthEventSchema: z.ZodObject<{
1339
1339
  id: z.ZodString;
1340
1340
  source: z.ZodString;
@@ -1385,7 +1385,7 @@ export declare const synthEventSchema: z.ZodObject<{
1385
1385
  roles?: string[] | undefined;
1386
1386
  } | undefined;
1387
1387
  }>;
1388
- /** AD-089: схема устойчивой привязки внешнего адреса к сессии/шаблону. */
1388
+ /** ADR-089: схема устойчивой привязки внешнего адреса к сессии/шаблону. */
1389
1389
  export declare const eventBindingSchema: z.ZodObject<{
1390
1390
  id: z.ZodString;
1391
1391
  source: z.ZodString;
@@ -1414,7 +1414,7 @@ export declare const eventBindingSchema: z.ZodObject<{
1414
1414
  agentTemplate?: string | undefined;
1415
1415
  project?: string | undefined;
1416
1416
  }>;
1417
- /** AD-089: схема запроса создания/привязки сессии — единый funnel. */
1417
+ /** ADR-089: схема запроса создания/привязки сессии — единый funnel. */
1418
1418
  export declare const sessionRequestSchema: z.ZodObject<{
1419
1419
  initiator: z.ZodEnum<["user", "agent", "external", "system"]>;
1420
1420
  intent: z.ZodEnum<["explicit", "event"]>;
@@ -1432,11 +1432,11 @@ export declare const sessionRequestSchema: z.ZodObject<{
1432
1432
  sourceEventId: z.ZodOptional<z.ZodString>;
1433
1433
  dedupKey: z.ZodOptional<z.ZodString>;
1434
1434
  }, "strip", z.ZodTypeAny, {
1435
- initiator: "user" | "agent" | "system" | "external";
1435
+ initiator: "user" | "system" | "agent" | "external";
1436
1436
  intent: "explicit" | "event";
1437
1437
  mode?: "bound" | "ephemeral" | "queue" | undefined;
1438
1438
  title?: string | undefined;
1439
- icon?: "task" | "code" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "chat" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | 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
1440
  color?: "a1" | "a2" | "a3" | "a4" | "a5" | "a6" | "a7" | "a8" | "a9" | "a10" | "a11" | "a12" | "a13" | "a14" | "a15" | "a16" | undefined;
1441
1441
  projectId?: string | undefined;
1442
1442
  engine?: "synth" | "opencode" | "cline" | undefined;
@@ -1448,11 +1448,11 @@ export declare const sessionRequestSchema: z.ZodObject<{
1448
1448
  sessionOrigin?: "user" | "fork" | "subagent" | undefined;
1449
1449
  sourceEventId?: string | undefined;
1450
1450
  }, {
1451
- initiator: "user" | "agent" | "system" | "external";
1451
+ initiator: "user" | "system" | "agent" | "external";
1452
1452
  intent: "explicit" | "event";
1453
1453
  mode?: "bound" | "ephemeral" | "queue" | undefined;
1454
1454
  title?: string | undefined;
1455
- icon?: "task" | "code" | "terminal" | "rocket" | "flask" | "gamepad" | "briefcase" | "home" | "globe" | "leaf" | "shield" | "palette" | "server" | "phone" | "database" | "lightbulb" | "music" | "camera" | "book" | "heart" | "folder" | "chat" | "cpu" | "file" | "file-code" | "docs" | "todo" | "bug" | "robot" | "brain" | "git" | "repo" | "test" | "chart" | "star" | "image" | "calendar" | 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
1456
  color?: "a1" | "a2" | "a3" | "a4" | "a5" | "a6" | "a7" | "a8" | "a9" | "a10" | "a11" | "a12" | "a13" | "a14" | "a15" | "a16" | undefined;
1457
1457
  projectId?: string | undefined;
1458
1458
  engine?: "synth" | "opencode" | "cline" | undefined;
@@ -1465,7 +1465,7 @@ export declare const sessionRequestSchema: z.ZodObject<{
1465
1465
  sourceEventId?: string | undefined;
1466
1466
  }>;
1467
1467
  /**
1468
- * AD-089: вход приёма внешнего события (`POST /api/v2/events`). `id`/`dedupKey`/`ts`
1468
+ * ADR-089: вход приёма внешнего события (`POST /api/v2/events`). `id`/`dedupKey`/`ts`
1469
1469
  * нормализуются `EventIngress`, поэтому здесь опциональны.
1470
1470
  */
1471
1471
  export declare const eventIngestSchema: z.ZodObject<{
@@ -1516,7 +1516,7 @@ export declare const eventIngestSchema: z.ZodObject<{
1516
1516
  ts?: string | undefined;
1517
1517
  }>;
1518
1518
  export type EventIngestRequest = z.infer<typeof eventIngestSchema>;
1519
- /** AD-089: вход upsert биндинга (`POST /api/v2/events/bindings`) — без `id`. */
1519
+ /** ADR-089: вход upsert биндинга (`POST /api/v2/events/bindings`) — без `id`. */
1520
1520
  export declare const eventBindingInputSchema: z.ZodObject<{
1521
1521
  source: z.ZodString;
1522
1522
  chatKey: z.ZodOptional<z.ZodString>;
@@ -1544,7 +1544,7 @@ export declare const eventBindingInputSchema: z.ZodObject<{
1544
1544
  }>;
1545
1545
  export type EventBindingInputRequest = z.infer<typeof eventBindingInputSchema>;
1546
1546
  /**
1547
- * AD-089/AD-052: метаданные API-ключа привязки для приёма событий.
1547
+ * ADR-089/ADR-052: метаданные API-ключа привязки для приёма событий.
1548
1548
  * Секрет (`key`) и его хеш здесь отсутствуют — наружу не отдаются.
1549
1549
  */
1550
1550
  export declare const eventBindingApiKeySchema: z.ZodObject<{
@@ -1585,7 +1585,7 @@ export declare const eventBindingApiKeySchema: z.ZodObject<{
1585
1585
  revokedAt?: string | undefined;
1586
1586
  }>;
1587
1587
  export type EventBindingApiKeyMeta = z.infer<typeof eventBindingApiKeySchema>;
1588
- /** AD-089/AD-052: тело создания API-ключа привязки — обязательная уникальная `label`. */
1588
+ /** ADR-089/ADR-052: тело создания API-ключа привязки — обязательная уникальная `label`. */
1589
1589
  export declare const eventBindingApiKeyCreateSchema: z.ZodObject<{
1590
1590
  label: z.ZodString;
1591
1591
  description: z.ZodOptional<z.ZodString>;
@@ -1604,7 +1604,7 @@ export declare const eventBindingApiKeyCreateSchema: z.ZodObject<{
1604
1604
  }>;
1605
1605
  export type EventBindingApiKeyCreateRequest = z.infer<typeof eventBindingApiKeyCreateSchema>;
1606
1606
  /**
1607
- * AD-089/AD-052: тело обновления API-ключа привязки. Все поля опциональны;
1607
+ * ADR-089/ADR-052: тело обновления API-ключа привязки. Все поля опциональны;
1608
1608
  * `null` для `description`/`expiresAt`/`rateLimitPerMinute` — сброс значения.
1609
1609
  */
1610
1610
  export declare const eventBindingApiKeyUpdateSchema: z.ZodObject<{
@@ -1624,7 +1624,7 @@ export declare const eventBindingApiKeyUpdateSchema: z.ZodObject<{
1624
1624
  expiresAt?: string | null | undefined;
1625
1625
  }>;
1626
1626
  export type EventBindingApiKeyUpdateRequest = z.infer<typeof eventBindingApiKeyUpdateSchema>;
1627
- /** AD-089: ответ создания ключа — метаданные + plaintext-секрет (единожды). */
1627
+ /** ADR-089: ответ создания ключа — метаданные + plaintext-секрет (единожды). */
1628
1628
  export declare const eventBindingApiKeyCreatedSchema: z.ZodObject<{
1629
1629
  id: z.ZodString;
1630
1630
  bindingId: z.ZodString;
@@ -1668,7 +1668,7 @@ export declare const eventBindingApiKeyCreatedSchema: z.ZodObject<{
1668
1668
  }>;
1669
1669
  export type EventBindingApiKeyCreatedRequest = z.infer<typeof eventBindingApiKeyCreatedSchema>;
1670
1670
  /**
1671
- * AD-089: вход `POST /events` при аутентификации API-ключом привязки. Как
1671
+ * ADR-089: вход `POST /events` при аутентификации API-ключом привязки. Как
1672
1672
  * `eventIngestSchema`, но `source` опционален — источник берётся из привязки.
1673
1673
  */
1674
1674
  export declare const eventKeyIngestSchema: z.ZodObject<{
@@ -1720,12 +1720,12 @@ export declare const eventKeyIngestSchema: z.ZodObject<{
1720
1720
  }>;
1721
1721
  export type EventKeyIngestRequest = z.infer<typeof eventKeyIngestSchema>;
1722
1722
  /**
1723
- * AD-052: каталог скоупов service-key + wildcard-семейства. Глобальный `*` не
1723
+ * ADR-052: каталог скоупов service-key + wildcard-семейства. Глобальный `*` не
1724
1724
  * принимается (`isKnownScope`).
1725
1725
  */
1726
1726
  export declare const serviceScopeSchema: z.ZodEffects<z.ZodString, string, string>;
1727
1727
  /**
1728
- * AD-052: метаданные service-key (ответы API). Секрет (`key`) и его хеш здесь
1728
+ * ADR-052: метаданные service-key (ответы API). Секрет (`key`) и его хеш здесь
1729
1729
  * отсутствуют — наружу не отдаются (в списке — `prefix`).
1730
1730
  */
1731
1731
  export declare const serviceApiKeySchema: z.ZodObject<{
@@ -1772,7 +1772,7 @@ export declare const serviceApiKeySchema: z.ZodObject<{
1772
1772
  allowedProjects?: string[] | undefined;
1773
1773
  }>;
1774
1774
  export type ServiceApiKeyMeta = z.infer<typeof serviceApiKeySchema>;
1775
- /** AD-052: тело создания service-key. `roles` не заданы — дефолт хранилища. */
1775
+ /** ADR-052: тело создания service-key. `roles` не заданы — дефолт хранилища. */
1776
1776
  export declare const serviceApiKeyCreateSchema: z.ZodObject<{
1777
1777
  label: z.ZodString;
1778
1778
  description: z.ZodOptional<z.ZodString>;
@@ -1800,7 +1800,7 @@ export declare const serviceApiKeyCreateSchema: z.ZodObject<{
1800
1800
  }>;
1801
1801
  export type ServiceApiKeyCreateRequest = z.infer<typeof serviceApiKeyCreateSchema>;
1802
1802
  /**
1803
- * AD-052: тело обновления service-key. Все поля опциональны; `null` для
1803
+ * ADR-052: тело обновления service-key. Все поля опциональны; `null` для
1804
1804
  * `description`/`allowedProjects`/`rateLimitPerMinute`/`expiresAt` — сброс.
1805
1805
  */
1806
1806
  export declare const serviceApiKeyUpdateSchema: z.ZodObject<{
@@ -1829,7 +1829,7 @@ export declare const serviceApiKeyUpdateSchema: z.ZodObject<{
1829
1829
  allowedProjects?: string[] | null | undefined;
1830
1830
  }>;
1831
1831
  export type ServiceApiKeyUpdateRequest = z.infer<typeof serviceApiKeyUpdateSchema>;
1832
- /** AD-052: ответ создания service-key — метаданные + plaintext-секрет (единожды). */
1832
+ /** ADR-052: ответ создания service-key — метаданные + plaintext-секрет (единожды). */
1833
1833
  export declare const serviceApiKeyCreatedSchema: z.ZodObject<{
1834
1834
  id: z.ZodString;
1835
1835
  label: z.ZodString;
@@ -1878,12 +1878,12 @@ export declare const serviceApiKeyCreatedSchema: z.ZodObject<{
1878
1878
  allowedProjects?: string[] | undefined;
1879
1879
  }>;
1880
1880
  export type ServiceApiKeyCreatedRequest = z.infer<typeof serviceApiKeyCreatedSchema>;
1881
- /** AD-052 (этап II): паттерн события подписки — exact либо `prefix.*`. */
1881
+ /** ADR-052 (этап II): паттерн события подписки — exact либо `prefix.*`. */
1882
1882
  export declare const webhookEventPatternSchema: z.ZodEffects<z.ZodString, string, string>;
1883
- /** AD-052 (этап II): целевой URL — только http/https (SSRF-политика — в core). */
1883
+ /** ADR-052 (этап II): целевой URL — только http/https (SSRF-политика — в core). */
1884
1884
  export declare const webhookUrlSchema: z.ZodEffects<z.ZodString, string, string>;
1885
1885
  /**
1886
- * AD-052 (этап II): метаданные подписки (ответы API). Секрет (`secret`) и его
1886
+ * ADR-052 (этап II): метаданные подписки (ответы API). Секрет (`secret`) и его
1887
1887
  * хеш здесь отсутствуют — наружу не отдаются (в списке — `secretPrefix`).
1888
1888
  */
1889
1889
  export declare const webhookSubscriptionSchema: z.ZodObject<{
@@ -1927,7 +1927,7 @@ export declare const webhookSubscriptionSchema: z.ZodObject<{
1927
1927
  disabledAt?: string | undefined;
1928
1928
  }>;
1929
1929
  export type WebhookSubscriptionMeta = z.infer<typeof webhookSubscriptionSchema>;
1930
- /** AD-052 (этап II): тело создания подписки. `enabled` не задан — активна. */
1930
+ /** ADR-052 (этап II): тело создания подписки. `enabled` не задан — активна. */
1931
1931
  export declare const webhookSubscriptionCreateSchema: z.ZodObject<{
1932
1932
  label: z.ZodString;
1933
1933
  description: z.ZodOptional<z.ZodString>;
@@ -1949,7 +1949,7 @@ export declare const webhookSubscriptionCreateSchema: z.ZodObject<{
1949
1949
  }>;
1950
1950
  export type WebhookSubscriptionCreateRequest = z.infer<typeof webhookSubscriptionCreateSchema>;
1951
1951
  /**
1952
- * AD-052 (этап II): тело обновления подписки. Все поля опциональны; `null` для
1952
+ * ADR-052 (этап II): тело обновления подписки. Все поля опциональны; `null` для
1953
1953
  * `description` — сброс.
1954
1954
  */
1955
1955
  export declare const webhookSubscriptionUpdateSchema: z.ZodObject<{
@@ -1972,7 +1972,7 @@ export declare const webhookSubscriptionUpdateSchema: z.ZodObject<{
1972
1972
  events?: string[] | undefined;
1973
1973
  }>;
1974
1974
  export type WebhookSubscriptionUpdateRequest = z.infer<typeof webhookSubscriptionUpdateSchema>;
1975
- /** AD-052 (этап II): ответ создания/ротации подписки — метаданные + секрет (единожды). */
1975
+ /** ADR-052 (этап II): ответ создания/ротации подписки — метаданные + секрет (единожды). */
1976
1976
  export declare const webhookSubscriptionCreatedSchema: z.ZodObject<{
1977
1977
  id: z.ZodString;
1978
1978
  label: z.ZodString;
@@ -2018,7 +2018,7 @@ export declare const webhookSubscriptionCreatedSchema: z.ZodObject<{
2018
2018
  disabledAt?: string | undefined;
2019
2019
  }>;
2020
2020
  export type WebhookSubscriptionCreatedRequest = z.infer<typeof webhookSubscriptionCreatedSchema>;
2021
- /** AD-052 (этап II): запись журнала доставки. */
2021
+ /** ADR-052 (этап II): запись журнала доставки. */
2022
2022
  export declare const webhookDeliverySchema: z.ZodObject<{
2023
2023
  id: z.ZodString;
2024
2024
  subscriptionId: z.ZodString;
@@ -2030,28 +2030,28 @@ export declare const webhookDeliverySchema: z.ZodObject<{
2030
2030
  createdAt: z.ZodString;
2031
2031
  completedAt: z.ZodOptional<z.ZodString>;
2032
2032
  }, "strip", z.ZodTypeAny, {
2033
- status: "ok" | "failed" | "pending";
2033
+ status: "pending" | "ok" | "failed";
2034
2034
  id: string;
2035
2035
  createdAt: string;
2036
2036
  subscriptionId: string;
2037
2037
  eventType: string;
2038
2038
  attempts: number;
2039
- responseStatus?: number | undefined;
2040
2039
  error?: string | undefined;
2040
+ responseStatus?: number | undefined;
2041
2041
  completedAt?: string | undefined;
2042
2042
  }, {
2043
- status: "ok" | "failed" | "pending";
2043
+ status: "pending" | "ok" | "failed";
2044
2044
  id: string;
2045
2045
  createdAt: string;
2046
2046
  subscriptionId: string;
2047
2047
  eventType: string;
2048
2048
  attempts: number;
2049
- responseStatus?: number | undefined;
2050
2049
  error?: string | undefined;
2050
+ responseStatus?: number | undefined;
2051
2051
  completedAt?: string | undefined;
2052
2052
  }>;
2053
2053
  export type WebhookDeliveryMeta = z.infer<typeof webhookDeliverySchema>;
2054
- /** AD-051/AD-089: цель расписания (дискриминированный союз по `mode`). */
2054
+ /** ADR-051/ADR-089: цель расписания (дискриминированный союз по `mode`). */
2055
2055
  export declare const scheduleTargetSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
2056
2056
  mode: z.ZodLiteral<"bound">;
2057
2057
  sessionId: z.ZodString;
@@ -2087,7 +2087,7 @@ export declare const scheduleTargetSchema: z.ZodDiscriminatedUnion<"mode", [z.Zo
2087
2087
  sessionId: string;
2088
2088
  }>]>;
2089
2089
  /**
2090
- * AD-089: цель правила маршрутизации — дискриминированный союз по `mode`
2090
+ * ADR-089: цель правила маршрутизации — дискриминированный союз по `mode`
2091
2091
  * (семантика та же, что у `scheduleTargetSchema`).
2092
2092
  */
2093
2093
  export declare const eventRouteTargetSchema: z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
@@ -2136,7 +2136,7 @@ export declare const eventRouteTargetSchema: z.ZodDiscriminatedUnion<"mode", [z.
2136
2136
  agentTemplate?: string | undefined;
2137
2137
  project?: string | undefined;
2138
2138
  }>]>;
2139
- /** AD-089: условие срабатывания правила (AND по заполненным полям). */
2139
+ /** ADR-089: условие срабатывания правила (AND по заполненным полям). */
2140
2140
  export declare const eventRouteMatchSchema: z.ZodObject<{
2141
2141
  source: z.ZodOptional<z.ZodString>;
2142
2142
  type: z.ZodOptional<z.ZodString>;
@@ -2162,7 +2162,7 @@ export declare const eventRouteMatchSchema: z.ZodObject<{
2162
2162
  label?: string | undefined;
2163
2163
  keywords?: string[] | undefined;
2164
2164
  }>;
2165
- /** AD-089: полная сущность правила маршрутизации событий (ответы API). */
2165
+ /** ADR-089: полная сущность правила маршрутизации событий (ответы API). */
2166
2166
  export declare const eventRouteRuleSchema: z.ZodObject<{
2167
2167
  id: z.ZodString;
2168
2168
  name: z.ZodOptional<z.ZodString>;
@@ -2300,7 +2300,7 @@ export declare const eventRouteRuleSchema: z.ZodObject<{
2300
2300
  enabled?: boolean | undefined;
2301
2301
  priority?: number | undefined;
2302
2302
  }>;
2303
- /** AD-089: вход создания/обновления правила (`upsert`) — без `id`. */
2303
+ /** ADR-089: вход создания/обновления правила (`upsert`) — без `id`. */
2304
2304
  export declare const eventRouteRuleInputSchema: z.ZodObject<{
2305
2305
  name: z.ZodOptional<z.ZodString>;
2306
2306
  priority: z.ZodDefault<z.ZodNumber>;
@@ -2436,7 +2436,7 @@ export declare const eventRouteRuleInputSchema: z.ZodObject<{
2436
2436
  priority?: number | undefined;
2437
2437
  }>;
2438
2438
  /**
2439
- * AD-089: тело upsert-запроса правила — вход + необязательный `id` (обновление
2439
+ * ADR-089: тело upsert-запроса правила — вход + необязательный `id` (обновление
2440
2440
  * существующего правила; отсутствие — создание нового `rule_<uuid>`).
2441
2441
  */
2442
2442
  export declare const eventRouteRuleUpsertSchema: z.ZodObject<{
@@ -2580,7 +2580,7 @@ export declare const eventRouteRuleUpsertSchema: z.ZodObject<{
2580
2580
  export type EventRouteTargetRequest = z.infer<typeof eventRouteTargetSchema>;
2581
2581
  export type EventRouteRuleInputRequest = z.infer<typeof eventRouteRuleInputSchema>;
2582
2582
  export type EventRouteRuleUpsertRequest = z.infer<typeof eventRouteRuleUpsertSchema>;
2583
- /** AD-051/AD-089: вход создания/обновления расписания (`ScheduleInput`). */
2583
+ /** ADR-051/ADR-089: вход создания/обновления расписания (`ScheduleInput`). */
2584
2584
  export declare const scheduleInputSchema: z.ZodEffects<z.ZodObject<{
2585
2585
  name: z.ZodString;
2586
2586
  enabled: z.ZodDefault<z.ZodBoolean>;
@@ -2709,7 +2709,7 @@ export declare const scheduleInputSchema: z.ZodEffects<z.ZodObject<{
2709
2709
  ownerId?: string | undefined;
2710
2710
  catchUp?: "skip" | "once" | undefined;
2711
2711
  }>;
2712
- /** AD-051/AD-089: полная сущность расписания (ответы API). */
2712
+ /** ADR-051/ADR-089: полная сущность расписания (ответы API). */
2713
2713
  export declare const scheduleSchema: z.ZodEffects<z.ZodObject<{
2714
2714
  id: z.ZodString;
2715
2715
  name: z.ZodString;
@@ -2780,7 +2780,7 @@ export declare const scheduleSchema: z.ZodEffects<z.ZodObject<{
2780
2780
  updatedAt: string;
2781
2781
  every?: string | undefined;
2782
2782
  payload?: Record<string, unknown> | undefined;
2783
- lastStatus?: "ok" | "error" | "skipped" | undefined;
2783
+ lastStatus?: "error" | "ok" | "skipped" | undefined;
2784
2784
  cron?: string | undefined;
2785
2785
  prompt?: string | undefined;
2786
2786
  ownerId?: string | undefined;
@@ -2808,7 +2808,7 @@ export declare const scheduleSchema: z.ZodEffects<z.ZodObject<{
2808
2808
  updatedAt: string;
2809
2809
  every?: string | undefined;
2810
2810
  payload?: Record<string, unknown> | undefined;
2811
- lastStatus?: "ok" | "error" | "skipped" | undefined;
2811
+ lastStatus?: "error" | "ok" | "skipped" | undefined;
2812
2812
  cron?: string | undefined;
2813
2813
  prompt?: string | undefined;
2814
2814
  ownerId?: string | undefined;
@@ -2836,7 +2836,7 @@ export declare const scheduleSchema: z.ZodEffects<z.ZodObject<{
2836
2836
  updatedAt: string;
2837
2837
  every?: string | undefined;
2838
2838
  payload?: Record<string, unknown> | undefined;
2839
- lastStatus?: "ok" | "error" | "skipped" | undefined;
2839
+ lastStatus?: "error" | "ok" | "skipped" | undefined;
2840
2840
  cron?: string | undefined;
2841
2841
  prompt?: string | undefined;
2842
2842
  ownerId?: string | undefined;
@@ -2864,7 +2864,7 @@ export declare const scheduleSchema: z.ZodEffects<z.ZodObject<{
2864
2864
  updatedAt: string;
2865
2865
  every?: string | undefined;
2866
2866
  payload?: Record<string, unknown> | undefined;
2867
- lastStatus?: "ok" | "error" | "skipped" | undefined;
2867
+ lastStatus?: "error" | "ok" | "skipped" | undefined;
2868
2868
  cron?: string | undefined;
2869
2869
  prompt?: string | undefined;
2870
2870
  ownerId?: string | undefined;
@@ -2875,9 +2875,9 @@ export declare const scheduleSchema: z.ZodEffects<z.ZodObject<{
2875
2875
  }>;
2876
2876
  export type ScheduleInputRequest = z.infer<typeof scheduleInputSchema>;
2877
2877
  export type ScheduleRequest = z.infer<typeof scheduleSchema>;
2878
- /** AD-051: триггер срабатывания расписания в Job-истории. */
2878
+ /** ADR-051: триггер срабатывания расписания в Job-истории. */
2879
2879
  export declare const scheduleJobTriggerSchema: z.ZodEnum<["cron", "manual", "catchup"]>;
2880
- /** AD-051: запись Job-истории (ответы `GET /api/v2/schedules/:id/jobs`). */
2880
+ /** ADR-051: запись Job-истории (ответы `GET /api/v2/schedules/:id/jobs`). */
2881
2881
  export declare const scheduleJobSchema: z.ZodObject<{
2882
2882
  id: z.ZodString;
2883
2883
  scheduleId: z.ZodString;
@@ -2927,7 +2927,7 @@ export declare const scheduleJobSchema: z.ZodObject<{
2927
2927
  sessionId: z.ZodOptional<z.ZodString>;
2928
2928
  error: z.ZodOptional<z.ZodString>;
2929
2929
  }, "strip", z.ZodTypeAny, {
2930
- status: "ok" | "error" | "skipped";
2930
+ status: "error" | "ok" | "skipped";
2931
2931
  id: string;
2932
2932
  target: {
2933
2933
  mode: "bound";
@@ -2947,13 +2947,13 @@ export declare const scheduleJobSchema: z.ZodObject<{
2947
2947
  startedAt: string;
2948
2948
  finishedAt: string;
2949
2949
  durationMs: number;
2950
+ error?: string | undefined;
2950
2951
  dedupKey?: string | undefined;
2951
2952
  sessionId?: string | undefined;
2952
- error?: string | undefined;
2953
2953
  decision?: "bound" | "ephemeral" | "queue" | "bind" | "drop" | undefined;
2954
2954
  reason?: string | undefined;
2955
2955
  }, {
2956
- status: "ok" | "error" | "skipped";
2956
+ status: "error" | "ok" | "skipped";
2957
2957
  id: string;
2958
2958
  target: {
2959
2959
  mode: "bound";
@@ -2973,9 +2973,9 @@ export declare const scheduleJobSchema: z.ZodObject<{
2973
2973
  startedAt: string;
2974
2974
  finishedAt: string;
2975
2975
  durationMs: number;
2976
+ error?: string | undefined;
2976
2977
  dedupKey?: string | undefined;
2977
2978
  sessionId?: string | undefined;
2978
- error?: string | undefined;
2979
2979
  decision?: "bound" | "ephemeral" | "queue" | "bind" | "drop" | undefined;
2980
2980
  reason?: string | undefined;
2981
2981
  }>;