dna-sdk 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (240) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +58 -0
  3. package/dist/adapters/embedding/onnx.d.ts +32 -0
  4. package/dist/adapters/embedding/onnx.js +51 -0
  5. package/dist/adapters/filesystem/cache.d.ts +16 -0
  6. package/dist/adapters/filesystem/cache.js +113 -0
  7. package/dist/adapters/filesystem/index.d.ts +2 -0
  8. package/dist/adapters/filesystem/index.js +2 -0
  9. package/dist/adapters/filesystem/source.d.ts +82 -0
  10. package/dist/adapters/filesystem/source.js +357 -0
  11. package/dist/adapters/postgres/index.d.ts +2 -0
  12. package/dist/adapters/postgres/index.js +2 -0
  13. package/dist/adapters/postgres/migrations.d.ts +14 -0
  14. package/dist/adapters/postgres/migrations.js +88 -0
  15. package/dist/adapters/postgres/source.d.ts +172 -0
  16. package/dist/adapters/postgres/source.js +569 -0
  17. package/dist/adapters/resolvers/github.d.ts +12 -0
  18. package/dist/adapters/resolvers/github.js +47 -0
  19. package/dist/adapters/resolvers/http.d.ts +22 -0
  20. package/dist/adapters/resolvers/http.js +145 -0
  21. package/dist/adapters/resolvers/index.d.ts +3 -0
  22. package/dist/adapters/resolvers/index.js +3 -0
  23. package/dist/adapters/resolvers/local.d.ts +24 -0
  24. package/dist/adapters/resolvers/local.js +132 -0
  25. package/dist/adapters/search/driver.d.ts +45 -0
  26. package/dist/adapters/search/driver.js +138 -0
  27. package/dist/adapters/search/migrations.d.ts +26 -0
  28. package/dist/adapters/search/migrations.js +58 -0
  29. package/dist/adapters/search/rrf.d.ts +23 -0
  30. package/dist/adapters/search/rrf.js +42 -0
  31. package/dist/adapters/search/sqlite-vec.d.ts +66 -0
  32. package/dist/adapters/search/sqlite-vec.js +294 -0
  33. package/dist/bootstrap.d.ts +45 -0
  34. package/dist/bootstrap.js +134 -0
  35. package/dist/extensions/agentskills/DOCS.md +18 -0
  36. package/dist/extensions/agentskills.d.ts +28 -0
  37. package/dist/extensions/agentskills.js +252 -0
  38. package/dist/extensions/agentsmd/DOCS.md +18 -0
  39. package/dist/extensions/agentsmd.d.ts +22 -0
  40. package/dist/extensions/agentsmd.js +170 -0
  41. package/dist/extensions/audit/kinds/audit-log.kind.yaml +148 -0
  42. package/dist/extensions/audit.d.ts +25 -0
  43. package/dist/extensions/audit.js +62 -0
  44. package/dist/extensions/automation/kinds/automation.kind.yaml +296 -0
  45. package/dist/extensions/automation/query.d.ts +49 -0
  46. package/dist/extensions/automation/query.js +77 -0
  47. package/dist/extensions/automation/write-guards.d.ts +59 -0
  48. package/dist/extensions/automation/write-guards.js +153 -0
  49. package/dist/extensions/automation.d.ts +41 -0
  50. package/dist/extensions/automation.js +54 -0
  51. package/dist/extensions/collab.d.ts +16 -0
  52. package/dist/extensions/collab.js +79 -0
  53. package/dist/extensions/doc/kinds/doc.kind.yaml +118 -0
  54. package/dist/extensions/doc.d.ts +25 -0
  55. package/dist/extensions/doc.js +10 -0
  56. package/dist/extensions/eval/kinds/eval-baseline.kind.yaml +65 -0
  57. package/dist/extensions/eval/kinds/eval-case.kind.yaml +140 -0
  58. package/dist/extensions/eval/kinds/eval-run.kind.yaml +134 -0
  59. package/dist/extensions/eval/kinds/eval-suite.kind.yaml +87 -0
  60. package/dist/extensions/eval.d.ts +24 -0
  61. package/dist/extensions/eval.js +31 -0
  62. package/dist/extensions/evidence/kinds/evidence.kind.yaml +92 -0
  63. package/dist/extensions/evidence.d.ts +17 -0
  64. package/dist/extensions/evidence.js +94 -0
  65. package/dist/extensions/federation.d.ts +22 -0
  66. package/dist/extensions/federation.js +173 -0
  67. package/dist/extensions/guardrails/DOCS.md +20 -0
  68. package/dist/extensions/guardrails.d.ts +31 -0
  69. package/dist/extensions/guardrails.js +228 -0
  70. package/dist/extensions/helix/DOCS-Actor.md +20 -0
  71. package/dist/extensions/helix/DOCS-Agent.md +20 -0
  72. package/dist/extensions/helix/DOCS-UseCase.md +20 -0
  73. package/dist/extensions/helix/layers.d.ts +12 -0
  74. package/dist/extensions/helix/layers.js +18 -0
  75. package/dist/extensions/helix/write-guards.d.ts +70 -0
  76. package/dist/extensions/helix/write-guards.js +172 -0
  77. package/dist/extensions/helix.d.ts +29 -0
  78. package/dist/extensions/helix.js +963 -0
  79. package/dist/extensions/helix_extras.d.ts +124 -0
  80. package/dist/extensions/helix_extras.js +328 -0
  81. package/dist/extensions/hooks.d.ts +31 -0
  82. package/dist/extensions/hooks.js +247 -0
  83. package/dist/extensions/kinddef/DOCS.md +24 -0
  84. package/dist/extensions/kinddef.d.ts +40 -0
  85. package/dist/extensions/kinddef.js +171 -0
  86. package/dist/extensions/lesson.d.ts +6 -0
  87. package/dist/extensions/lesson.js +194 -0
  88. package/dist/extensions/modelreg/kinds/model-profile.kind.yaml +155 -0
  89. package/dist/extensions/modelreg.d.ts +30 -0
  90. package/dist/extensions/modelreg.js +38 -0
  91. package/dist/extensions/recognizer.d.ts +34 -0
  92. package/dist/extensions/recognizer.js +272 -0
  93. package/dist/extensions/research.d.ts +32 -0
  94. package/dist/extensions/research.js +292 -0
  95. package/dist/extensions/safety.d.ts +33 -0
  96. package/dist/extensions/safety.js +230 -0
  97. package/dist/extensions/sdlc/kinds/adr.kind.yaml +136 -0
  98. package/dist/extensions/sdlc/kinds/archive-proposal.kind.yaml +107 -0
  99. package/dist/extensions/sdlc/kinds/changelog.kind.yaml +108 -0
  100. package/dist/extensions/sdlc/kinds/cognitive-policy.kind.yaml +470 -0
  101. package/dist/extensions/sdlc/kinds/forecast.kind.yaml +125 -0
  102. package/dist/extensions/sdlc/kinds/insight.kind.yaml +87 -0
  103. package/dist/extensions/sdlc/kinds/kaizen.kind.yaml +106 -0
  104. package/dist/extensions/sdlc/kinds/lesson-learned.kind.yaml +270 -0
  105. package/dist/extensions/sdlc/kinds/narrative.kind.yaml +189 -0
  106. package/dist/extensions/sdlc/kinds/pattern-insight.kind.yaml +204 -0
  107. package/dist/extensions/sdlc/kinds/postmortem.kind.yaml +168 -0
  108. package/dist/extensions/sdlc/kinds/pre-mortem.kind.yaml +145 -0
  109. package/dist/extensions/sdlc/kinds/prompt-template.kind.yaml +109 -0
  110. package/dist/extensions/sdlc/kinds/retrospective.kind.yaml +186 -0
  111. package/dist/extensions/sdlc/kinds/risk-register.kind.yaml +178 -0
  112. package/dist/extensions/sdlc/kinds/saved-view.kind.yaml +127 -0
  113. package/dist/extensions/sdlc/kinds/status-report.kind.yaml +129 -0
  114. package/dist/extensions/sdlc/kinds/synthesis-run.kind.yaml +279 -0
  115. package/dist/extensions/sdlc/kinds/synthesizer-state.kind.yaml +196 -0
  116. package/dist/extensions/sdlc/kinds/workflow-event.kind.yaml +195 -0
  117. package/dist/extensions/sdlc.d.ts +32 -0
  118. package/dist/extensions/sdlc.js +1318 -0
  119. package/dist/extensions/soulspec/DOCS.md +19 -0
  120. package/dist/extensions/soulspec.d.ts +22 -0
  121. package/dist/extensions/soulspec.js +287 -0
  122. package/dist/extensions/tenant.d.ts +6 -0
  123. package/dist/extensions/tenant.js +291 -0
  124. package/dist/extensions/testkit.d.ts +24 -0
  125. package/dist/extensions/testkit.js +211 -0
  126. package/dist/index.d.ts +80 -0
  127. package/dist/index.js +102 -0
  128. package/dist/kernel/_text.d.ts +28 -0
  129. package/dist/kernel/_text.js +42 -0
  130. package/dist/kernel/bundle-handle.d.ts +83 -0
  131. package/dist/kernel/bundle-handle.js +184 -0
  132. package/dist/kernel/capabilities.d.ts +157 -0
  133. package/dist/kernel/capabilities.js +109 -0
  134. package/dist/kernel/collaborator-ports.d.ts +91 -0
  135. package/dist/kernel/collaborator-ports.js +1 -0
  136. package/dist/kernel/composition-resolver.d.ts +215 -0
  137. package/dist/kernel/composition-resolver.js +558 -0
  138. package/dist/kernel/composition.d.ts +10 -0
  139. package/dist/kernel/composition.js +1 -0
  140. package/dist/kernel/descriptor-loader.d.ts +13 -0
  141. package/dist/kernel/descriptor-loader.js +48 -0
  142. package/dist/kernel/document.d.ts +43 -0
  143. package/dist/kernel/document.js +71 -0
  144. package/dist/kernel/embedding.d.ts +28 -0
  145. package/dist/kernel/embedding.js +78 -0
  146. package/dist/kernel/errors.d.ts +62 -0
  147. package/dist/kernel/errors.js +82 -0
  148. package/dist/kernel/events.d.ts +6 -0
  149. package/dist/kernel/events.js +21 -0
  150. package/dist/kernel/evidence-capture.d.ts +69 -0
  151. package/dist/kernel/evidence-capture.js +138 -0
  152. package/dist/kernel/fs.d.ts +20 -0
  153. package/dist/kernel/fs.js +128 -0
  154. package/dist/kernel/generic-rw.d.ts +33 -0
  155. package/dist/kernel/generic-rw.js +235 -0
  156. package/dist/kernel/hooks.d.ts +172 -0
  157. package/dist/kernel/hooks.js +256 -0
  158. package/dist/kernel/index.d.ts +624 -0
  159. package/dist/kernel/index.js +1638 -0
  160. package/dist/kernel/instance.d.ts +211 -0
  161. package/dist/kernel/instance.js +487 -0
  162. package/dist/kernel/kind-registry.d.ts +183 -0
  163. package/dist/kernel/kind-registry.js +710 -0
  164. package/dist/kernel/kind_base.d.ts +106 -0
  165. package/dist/kernel/kind_base.js +244 -0
  166. package/dist/kernel/layer-resolver.d.ts +48 -0
  167. package/dist/kernel/layer-resolver.js +284 -0
  168. package/dist/kernel/lock-manager.d.ts +21 -0
  169. package/dist/kernel/lock-manager.js +43 -0
  170. package/dist/kernel/lock.d.ts +38 -0
  171. package/dist/kernel/lock.js +115 -0
  172. package/dist/kernel/meta.d.ts +135 -0
  173. package/dist/kernel/meta.js +817 -0
  174. package/dist/kernel/models.d.ts +3089 -0
  175. package/dist/kernel/models.js +764 -0
  176. package/dist/kernel/navigator.d.ts +36 -0
  177. package/dist/kernel/navigator.js +132 -0
  178. package/dist/kernel/port-surface.d.ts +33 -0
  179. package/dist/kernel/port-surface.js +180 -0
  180. package/dist/kernel/preview.d.ts +60 -0
  181. package/dist/kernel/preview.js +54 -0
  182. package/dist/kernel/prompt-budget.d.ts +39 -0
  183. package/dist/kernel/prompt-budget.js +43 -0
  184. package/dist/kernel/prompt-builder.d.ts +25 -0
  185. package/dist/kernel/prompt-builder.js +237 -0
  186. package/dist/kernel/protocols.d.ts +751 -0
  187. package/dist/kernel/protocols.js +493 -0
  188. package/dist/kernel/reports.d.ts +26 -0
  189. package/dist/kernel/reports.js +215 -0
  190. package/dist/kernel/resolver.d.ts +146 -0
  191. package/dist/kernel/resolver.js +232 -0
  192. package/dist/kernel/resource.d.ts +57 -0
  193. package/dist/kernel/resource.js +97 -0
  194. package/dist/kernel/runtime.d.ts +16 -0
  195. package/dist/kernel/runtime.js +18 -0
  196. package/dist/kernel/safety-scanner.d.ts +38 -0
  197. package/dist/kernel/safety-scanner.js +228 -0
  198. package/dist/kernel/serialize-to-files.d.ts +29 -0
  199. package/dist/kernel/serialize-to-files.js +23 -0
  200. package/dist/kernel/spec-access.d.ts +23 -0
  201. package/dist/kernel/spec-access.js +40 -0
  202. package/dist/kernel/studio_ui.d.ts +88 -0
  203. package/dist/kernel/studio_ui.js +135 -0
  204. package/dist/kernel/templates.d.ts +77 -0
  205. package/dist/kernel/templates.js +116 -0
  206. package/dist/kernel/tool-registry.d.ts +52 -0
  207. package/dist/kernel/tool-registry.js +89 -0
  208. package/dist/kernel/write-pipeline.d.ts +65 -0
  209. package/dist/kernel/write-pipeline.js +271 -0
  210. package/dist/kernel/writer-helpers.d.ts +24 -0
  211. package/dist/kernel/writer-helpers.js +42 -0
  212. package/dist/memory/decay.d.ts +31 -0
  213. package/dist/memory/decay.js +97 -0
  214. package/dist/memory/ecphory.d.ts +25 -0
  215. package/dist/memory/ecphory.js +178 -0
  216. package/dist/memory/encodingContext.d.ts +21 -0
  217. package/dist/memory/encodingContext.js +62 -0
  218. package/dist/memory/index.d.ts +23 -0
  219. package/dist/memory/index.js +23 -0
  220. package/dist/memory/memoryType.d.ts +7 -0
  221. package/dist/memory/memoryType.js +24 -0
  222. package/dist/memory/policy.d.ts +35 -0
  223. package/dist/memory/policy.js +35 -0
  224. package/dist/memory/retrieval.d.ts +21 -0
  225. package/dist/memory/retrieval.js +145 -0
  226. package/dist/testing/index.d.ts +8 -0
  227. package/dist/testing/index.js +8 -0
  228. package/dist/testing/recordSearchConformance.d.ts +43 -0
  229. package/dist/testing/recordSearchConformance.js +147 -0
  230. package/dist/viz/ascii.d.ts +7 -0
  231. package/dist/viz/ascii.js +60 -0
  232. package/dist/viz/health.d.ts +8 -0
  233. package/dist/viz/health.js +161 -0
  234. package/dist/viz/index.d.ts +10 -0
  235. package/dist/viz/index.js +10 -0
  236. package/dist/viz/matrix.d.ts +8 -0
  237. package/dist/viz/matrix.js +84 -0
  238. package/dist/viz/mermaid.d.ts +38 -0
  239. package/dist/viz/mermaid.js +706 -0
  240. package/package.json +82 -0
@@ -0,0 +1,3089 @@
1
+ /**
2
+ * Typed Zod schemas for each kind — used by KindPort.parse().
3
+ *
4
+ * 1:1 parity with Python dna.v3.kernel.models.
5
+ */
6
+ import { z } from "zod";
7
+ export declare const MetadataSchema: z.ZodObject<{
8
+ name: z.ZodString;
9
+ description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
10
+ version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
11
+ icon: z.ZodDefault<z.ZodOptional<z.ZodString>>;
12
+ group: z.ZodDefault<z.ZodOptional<z.ZodString>>;
13
+ labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ name: string;
16
+ description: string;
17
+ version: string;
18
+ icon: string;
19
+ group: string;
20
+ labels: Record<string, string>;
21
+ }, {
22
+ name: string;
23
+ description?: string | undefined;
24
+ version?: string | undefined;
25
+ icon?: string | undefined;
26
+ group?: string | undefined;
27
+ labels?: Record<string, string> | undefined;
28
+ }>;
29
+ export type Metadata = z.output<typeof MetadataSchema>;
30
+ export declare const GenomeSpecSchema: z.ZodObject<{
31
+ owner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ owner_tenant: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ repository: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ visibility: z.ZodDefault<z.ZodEnum<["public", "internal", "private"]>>;
35
+ mandatory: z.ZodDefault<z.ZodBoolean>;
36
+ global_scope: z.ZodDefault<z.ZodBoolean>;
37
+ parent_scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ changelog_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ deprecated: z.ZodDefault<z.ZodBoolean>;
41
+ deprecated_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ default_agent: z.ZodOptional<z.ZodString>;
43
+ default_llm: z.ZodOptional<z.ZodString>;
44
+ budget: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
45
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
46
+ capabilities: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
47
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
48
+ }, "strip", z.ZodTypeAny, {
49
+ dependencies: Record<string, unknown>[];
50
+ capabilities: Record<string, unknown>[];
51
+ visibility: "public" | "internal" | "private";
52
+ mandatory: boolean;
53
+ global_scope: boolean;
54
+ deprecated: boolean;
55
+ tags: string[];
56
+ default_agent?: string | undefined;
57
+ budget?: Record<string, unknown> | null | undefined;
58
+ version?: string | null | undefined;
59
+ owner?: string | null | undefined;
60
+ owner_tenant?: string | null | undefined;
61
+ repository?: string | null | undefined;
62
+ parent_scope?: string | null | undefined;
63
+ changelog_url?: string | null | undefined;
64
+ deprecated_message?: string | null | undefined;
65
+ default_llm?: string | undefined;
66
+ }, {
67
+ default_agent?: string | undefined;
68
+ dependencies?: Record<string, unknown>[] | undefined;
69
+ budget?: Record<string, unknown> | null | undefined;
70
+ capabilities?: Record<string, unknown>[] | undefined;
71
+ version?: string | null | undefined;
72
+ owner?: string | null | undefined;
73
+ owner_tenant?: string | null | undefined;
74
+ repository?: string | null | undefined;
75
+ visibility?: "public" | "internal" | "private" | undefined;
76
+ mandatory?: boolean | undefined;
77
+ global_scope?: boolean | undefined;
78
+ parent_scope?: string | null | undefined;
79
+ changelog_url?: string | null | undefined;
80
+ deprecated?: boolean | undefined;
81
+ deprecated_message?: string | null | undefined;
82
+ default_llm?: string | undefined;
83
+ tags?: string[] | undefined;
84
+ }>;
85
+ export declare const GenomeSchema: z.ZodObject<{
86
+ apiVersion: z.ZodLiteral<"github.com/ruinosus/dna/v1">;
87
+ kind: z.ZodLiteral<"Genome">;
88
+ metadata: z.ZodObject<{
89
+ name: z.ZodString;
90
+ description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
91
+ version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
92
+ icon: z.ZodDefault<z.ZodOptional<z.ZodString>>;
93
+ group: z.ZodDefault<z.ZodOptional<z.ZodString>>;
94
+ labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
95
+ }, "strip", z.ZodTypeAny, {
96
+ name: string;
97
+ description: string;
98
+ version: string;
99
+ icon: string;
100
+ group: string;
101
+ labels: Record<string, string>;
102
+ }, {
103
+ name: string;
104
+ description?: string | undefined;
105
+ version?: string | undefined;
106
+ icon?: string | undefined;
107
+ group?: string | undefined;
108
+ labels?: Record<string, string> | undefined;
109
+ }>;
110
+ spec: z.ZodDefault<z.ZodObject<{
111
+ owner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
112
+ owner_tenant: z.ZodOptional<z.ZodNullable<z.ZodString>>;
113
+ repository: z.ZodOptional<z.ZodNullable<z.ZodString>>;
114
+ visibility: z.ZodDefault<z.ZodEnum<["public", "internal", "private"]>>;
115
+ mandatory: z.ZodDefault<z.ZodBoolean>;
116
+ global_scope: z.ZodDefault<z.ZodBoolean>;
117
+ parent_scope: z.ZodOptional<z.ZodNullable<z.ZodString>>;
118
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
119
+ changelog_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
120
+ deprecated: z.ZodDefault<z.ZodBoolean>;
121
+ deprecated_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
122
+ default_agent: z.ZodOptional<z.ZodString>;
123
+ default_llm: z.ZodOptional<z.ZodString>;
124
+ budget: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
125
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
126
+ capabilities: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
127
+ dependencies: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
128
+ }, "strip", z.ZodTypeAny, {
129
+ dependencies: Record<string, unknown>[];
130
+ capabilities: Record<string, unknown>[];
131
+ visibility: "public" | "internal" | "private";
132
+ mandatory: boolean;
133
+ global_scope: boolean;
134
+ deprecated: boolean;
135
+ tags: string[];
136
+ default_agent?: string | undefined;
137
+ budget?: Record<string, unknown> | null | undefined;
138
+ version?: string | null | undefined;
139
+ owner?: string | null | undefined;
140
+ owner_tenant?: string | null | undefined;
141
+ repository?: string | null | undefined;
142
+ parent_scope?: string | null | undefined;
143
+ changelog_url?: string | null | undefined;
144
+ deprecated_message?: string | null | undefined;
145
+ default_llm?: string | undefined;
146
+ }, {
147
+ default_agent?: string | undefined;
148
+ dependencies?: Record<string, unknown>[] | undefined;
149
+ budget?: Record<string, unknown> | null | undefined;
150
+ capabilities?: Record<string, unknown>[] | undefined;
151
+ version?: string | null | undefined;
152
+ owner?: string | null | undefined;
153
+ owner_tenant?: string | null | undefined;
154
+ repository?: string | null | undefined;
155
+ visibility?: "public" | "internal" | "private" | undefined;
156
+ mandatory?: boolean | undefined;
157
+ global_scope?: boolean | undefined;
158
+ parent_scope?: string | null | undefined;
159
+ changelog_url?: string | null | undefined;
160
+ deprecated?: boolean | undefined;
161
+ deprecated_message?: string | null | undefined;
162
+ default_llm?: string | undefined;
163
+ tags?: string[] | undefined;
164
+ }>>;
165
+ }, "strip", z.ZodTypeAny, {
166
+ metadata: {
167
+ name: string;
168
+ description: string;
169
+ version: string;
170
+ icon: string;
171
+ group: string;
172
+ labels: Record<string, string>;
173
+ };
174
+ spec: {
175
+ dependencies: Record<string, unknown>[];
176
+ capabilities: Record<string, unknown>[];
177
+ visibility: "public" | "internal" | "private";
178
+ mandatory: boolean;
179
+ global_scope: boolean;
180
+ deprecated: boolean;
181
+ tags: string[];
182
+ default_agent?: string | undefined;
183
+ budget?: Record<string, unknown> | null | undefined;
184
+ version?: string | null | undefined;
185
+ owner?: string | null | undefined;
186
+ owner_tenant?: string | null | undefined;
187
+ repository?: string | null | undefined;
188
+ parent_scope?: string | null | undefined;
189
+ changelog_url?: string | null | undefined;
190
+ deprecated_message?: string | null | undefined;
191
+ default_llm?: string | undefined;
192
+ };
193
+ apiVersion: "github.com/ruinosus/dna/v1";
194
+ kind: "Genome";
195
+ }, {
196
+ metadata: {
197
+ name: string;
198
+ description?: string | undefined;
199
+ version?: string | undefined;
200
+ icon?: string | undefined;
201
+ group?: string | undefined;
202
+ labels?: Record<string, string> | undefined;
203
+ };
204
+ apiVersion: "github.com/ruinosus/dna/v1";
205
+ kind: "Genome";
206
+ spec?: {
207
+ default_agent?: string | undefined;
208
+ dependencies?: Record<string, unknown>[] | undefined;
209
+ budget?: Record<string, unknown> | null | undefined;
210
+ capabilities?: Record<string, unknown>[] | undefined;
211
+ version?: string | null | undefined;
212
+ owner?: string | null | undefined;
213
+ owner_tenant?: string | null | undefined;
214
+ repository?: string | null | undefined;
215
+ visibility?: "public" | "internal" | "private" | undefined;
216
+ mandatory?: boolean | undefined;
217
+ global_scope?: boolean | undefined;
218
+ parent_scope?: string | null | undefined;
219
+ changelog_url?: string | null | undefined;
220
+ deprecated?: boolean | undefined;
221
+ deprecated_message?: string | null | undefined;
222
+ default_llm?: string | undefined;
223
+ tags?: string[] | undefined;
224
+ } | undefined;
225
+ }>;
226
+ export type TypedGenome = z.output<typeof GenomeSchema>;
227
+ export declare const CompositionRuleSchema: z.ZodObject<{
228
+ scope_inheritance: z.ZodDefault<z.ZodEnum<["enabled", "disabled"]>>;
229
+ merge_strategy: z.ZodDefault<z.ZodEnum<["override_full", "field_level"]>>;
230
+ tenant_overlay: z.ZodDefault<z.ZodEnum<["none", "field_level"]>>;
231
+ }, "strip", z.ZodTypeAny, {
232
+ scope_inheritance: "enabled" | "disabled";
233
+ merge_strategy: "override_full" | "field_level";
234
+ tenant_overlay: "field_level" | "none";
235
+ }, {
236
+ scope_inheritance?: "enabled" | "disabled" | undefined;
237
+ merge_strategy?: "override_full" | "field_level" | undefined;
238
+ tenant_overlay?: "field_level" | "none" | undefined;
239
+ }>;
240
+ export type CompositionRule = z.output<typeof CompositionRuleSchema>;
241
+ export declare const LayerPolicySpecSchema: z.ZodObject<{
242
+ layer_id: z.ZodDefault<z.ZodString>;
243
+ policies: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
244
+ composition_rules: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
245
+ scope_inheritance: z.ZodDefault<z.ZodEnum<["enabled", "disabled"]>>;
246
+ merge_strategy: z.ZodDefault<z.ZodEnum<["override_full", "field_level"]>>;
247
+ tenant_overlay: z.ZodDefault<z.ZodEnum<["none", "field_level"]>>;
248
+ }, "strip", z.ZodTypeAny, {
249
+ scope_inheritance: "enabled" | "disabled";
250
+ merge_strategy: "override_full" | "field_level";
251
+ tenant_overlay: "field_level" | "none";
252
+ }, {
253
+ scope_inheritance?: "enabled" | "disabled" | undefined;
254
+ merge_strategy?: "override_full" | "field_level" | undefined;
255
+ tenant_overlay?: "field_level" | "none" | undefined;
256
+ }>>>;
257
+ }, "strip", z.ZodTypeAny, {
258
+ layer_id: string;
259
+ policies: Record<string, string>;
260
+ composition_rules: Record<string, {
261
+ scope_inheritance: "enabled" | "disabled";
262
+ merge_strategy: "override_full" | "field_level";
263
+ tenant_overlay: "field_level" | "none";
264
+ }>;
265
+ }, {
266
+ layer_id?: string | undefined;
267
+ policies?: Record<string, string> | undefined;
268
+ composition_rules?: Record<string, {
269
+ scope_inheritance?: "enabled" | "disabled" | undefined;
270
+ merge_strategy?: "override_full" | "field_level" | undefined;
271
+ tenant_overlay?: "field_level" | "none" | undefined;
272
+ }> | undefined;
273
+ }>;
274
+ export declare const LayerPolicySchema: z.ZodObject<{
275
+ apiVersion: z.ZodLiteral<"github.com/ruinosus/dna/policy/v1">;
276
+ kind: z.ZodLiteral<"LayerPolicy">;
277
+ metadata: z.ZodObject<{
278
+ name: z.ZodString;
279
+ description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
280
+ version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
281
+ icon: z.ZodDefault<z.ZodOptional<z.ZodString>>;
282
+ group: z.ZodDefault<z.ZodOptional<z.ZodString>>;
283
+ labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
284
+ }, "strip", z.ZodTypeAny, {
285
+ name: string;
286
+ description: string;
287
+ version: string;
288
+ icon: string;
289
+ group: string;
290
+ labels: Record<string, string>;
291
+ }, {
292
+ name: string;
293
+ description?: string | undefined;
294
+ version?: string | undefined;
295
+ icon?: string | undefined;
296
+ group?: string | undefined;
297
+ labels?: Record<string, string> | undefined;
298
+ }>;
299
+ spec: z.ZodDefault<z.ZodObject<{
300
+ layer_id: z.ZodDefault<z.ZodString>;
301
+ policies: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
302
+ composition_rules: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
303
+ scope_inheritance: z.ZodDefault<z.ZodEnum<["enabled", "disabled"]>>;
304
+ merge_strategy: z.ZodDefault<z.ZodEnum<["override_full", "field_level"]>>;
305
+ tenant_overlay: z.ZodDefault<z.ZodEnum<["none", "field_level"]>>;
306
+ }, "strip", z.ZodTypeAny, {
307
+ scope_inheritance: "enabled" | "disabled";
308
+ merge_strategy: "override_full" | "field_level";
309
+ tenant_overlay: "field_level" | "none";
310
+ }, {
311
+ scope_inheritance?: "enabled" | "disabled" | undefined;
312
+ merge_strategy?: "override_full" | "field_level" | undefined;
313
+ tenant_overlay?: "field_level" | "none" | undefined;
314
+ }>>>;
315
+ }, "strip", z.ZodTypeAny, {
316
+ layer_id: string;
317
+ policies: Record<string, string>;
318
+ composition_rules: Record<string, {
319
+ scope_inheritance: "enabled" | "disabled";
320
+ merge_strategy: "override_full" | "field_level";
321
+ tenant_overlay: "field_level" | "none";
322
+ }>;
323
+ }, {
324
+ layer_id?: string | undefined;
325
+ policies?: Record<string, string> | undefined;
326
+ composition_rules?: Record<string, {
327
+ scope_inheritance?: "enabled" | "disabled" | undefined;
328
+ merge_strategy?: "override_full" | "field_level" | undefined;
329
+ tenant_overlay?: "field_level" | "none" | undefined;
330
+ }> | undefined;
331
+ }>>;
332
+ }, "strip", z.ZodTypeAny, {
333
+ metadata: {
334
+ name: string;
335
+ description: string;
336
+ version: string;
337
+ icon: string;
338
+ group: string;
339
+ labels: Record<string, string>;
340
+ };
341
+ spec: {
342
+ layer_id: string;
343
+ policies: Record<string, string>;
344
+ composition_rules: Record<string, {
345
+ scope_inheritance: "enabled" | "disabled";
346
+ merge_strategy: "override_full" | "field_level";
347
+ tenant_overlay: "field_level" | "none";
348
+ }>;
349
+ };
350
+ apiVersion: "github.com/ruinosus/dna/policy/v1";
351
+ kind: "LayerPolicy";
352
+ }, {
353
+ metadata: {
354
+ name: string;
355
+ description?: string | undefined;
356
+ version?: string | undefined;
357
+ icon?: string | undefined;
358
+ group?: string | undefined;
359
+ labels?: Record<string, string> | undefined;
360
+ };
361
+ apiVersion: "github.com/ruinosus/dna/policy/v1";
362
+ kind: "LayerPolicy";
363
+ spec?: {
364
+ layer_id?: string | undefined;
365
+ policies?: Record<string, string> | undefined;
366
+ composition_rules?: Record<string, {
367
+ scope_inheritance?: "enabled" | "disabled" | undefined;
368
+ merge_strategy?: "override_full" | "field_level" | undefined;
369
+ tenant_overlay?: "field_level" | "none" | undefined;
370
+ }> | undefined;
371
+ } | undefined;
372
+ }>;
373
+ export type TypedLayerPolicy = z.output<typeof LayerPolicySchema>;
374
+ export declare const AgentSpecSchema: z.ZodObject<{
375
+ instruction: z.ZodDefault<z.ZodOptional<z.ZodString>>;
376
+ instruction_file: z.ZodOptional<z.ZodString>;
377
+ objective: z.ZodDefault<z.ZodOptional<z.ZodString>>;
378
+ model: z.ZodOptional<z.ZodString>;
379
+ type: z.ZodOptional<z.ZodString>;
380
+ soul: z.ZodOptional<z.ZodString>;
381
+ skills: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
382
+ tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
383
+ team_members: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
384
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
385
+ guardrails: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
386
+ promptTemplate: z.ZodOptional<z.ZodString>;
387
+ tool_groups: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
388
+ mcp_servers: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
389
+ ref: z.ZodString;
390
+ allowed_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
391
+ timeout_s: z.ZodOptional<z.ZodNumber>;
392
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
393
+ ref: z.ZodString;
394
+ allowed_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
395
+ timeout_s: z.ZodOptional<z.ZodNumber>;
396
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
397
+ ref: z.ZodString;
398
+ allowed_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
399
+ timeout_s: z.ZodOptional<z.ZodNumber>;
400
+ }, z.ZodTypeAny, "passthrough">>]>, "many">>;
401
+ shell_sandbox: z.ZodOptional<z.ZodBoolean>;
402
+ reflect_before_write: z.ZodOptional<z.ZodBoolean>;
403
+ locale_strings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
404
+ prompt_format: z.ZodOptional<z.ZodEnum<["json", "toon"]>>;
405
+ max_turns: z.ZodOptional<z.ZodNumber>;
406
+ agent_kind: z.ZodOptional<z.ZodEnum<["deepagent", "langgraph-react"]>>;
407
+ mandatory_tool_calls: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
408
+ input_schema: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodString]>>;
409
+ invoked_by_engine: z.ZodOptional<z.ZodString>;
410
+ voice_persona: z.ZodOptional<z.ZodObject<{
411
+ voice: z.ZodDefault<z.ZodString>;
412
+ style: z.ZodOptional<z.ZodString>;
413
+ archetype: z.ZodOptional<z.ZodString>;
414
+ interruption_tolerance: z.ZodDefault<z.ZodEnum<["high", "medium", "low"]>>;
415
+ preamble: z.ZodDefault<z.ZodBoolean>;
416
+ mcp_egress: z.ZodDefault<z.ZodBoolean>;
417
+ wake_word: z.ZodOptional<z.ZodString>;
418
+ budget: z.ZodDefault<z.ZodNumber>;
419
+ }, "strip", z.ZodTypeAny, {
420
+ budget: number;
421
+ voice: string;
422
+ interruption_tolerance: "high" | "medium" | "low";
423
+ preamble: boolean;
424
+ mcp_egress: boolean;
425
+ style?: string | undefined;
426
+ archetype?: string | undefined;
427
+ wake_word?: string | undefined;
428
+ }, {
429
+ style?: string | undefined;
430
+ budget?: number | undefined;
431
+ voice?: string | undefined;
432
+ archetype?: string | undefined;
433
+ interruption_tolerance?: "high" | "medium" | "low" | undefined;
434
+ preamble?: boolean | undefined;
435
+ mcp_egress?: boolean | undefined;
436
+ wake_word?: string | undefined;
437
+ }>>;
438
+ target_scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
439
+ writes_kind: z.ZodOptional<z.ZodString>;
440
+ creative_slots: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
441
+ system_slots: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
442
+ writes_kinds: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
443
+ reads: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
444
+ delegation_target_for: z.ZodOptional<z.ZodObject<{
445
+ agents: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
446
+ format: z.ZodDefault<z.ZodEnum<["slug", "json", "text"]>>;
447
+ typical_seconds: z.ZodOptional<z.ZodNumber>;
448
+ use_when: z.ZodOptional<z.ZodString>;
449
+ purpose: z.ZodOptional<z.ZodString>;
450
+ }, "strip", z.ZodTypeAny, {
451
+ agents: string[];
452
+ format: "slug" | "json" | "text";
453
+ typical_seconds?: number | undefined;
454
+ use_when?: string | undefined;
455
+ purpose?: string | undefined;
456
+ }, {
457
+ agents?: string[] | undefined;
458
+ format?: "slug" | "json" | "text" | undefined;
459
+ typical_seconds?: number | undefined;
460
+ use_when?: string | undefined;
461
+ purpose?: string | undefined;
462
+ }>>;
463
+ }, "strip", z.ZodTypeAny, {
464
+ skills: string[];
465
+ guardrails: string[];
466
+ instruction: string;
467
+ tags: string[];
468
+ objective: string;
469
+ tools: string[];
470
+ team_members: string[];
471
+ tool_groups: string[];
472
+ mcp_servers: (string | z.objectOutputType<{
473
+ ref: z.ZodString;
474
+ allowed_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
475
+ timeout_s: z.ZodOptional<z.ZodNumber>;
476
+ }, z.ZodTypeAny, "passthrough">)[];
477
+ mandatory_tool_calls: string[];
478
+ creative_slots: string[];
479
+ system_slots: Record<string, string>;
480
+ writes_kinds: Record<string, Record<string, any>>;
481
+ reads: Record<string, Record<string, any>>;
482
+ type?: string | undefined;
483
+ promptTemplate?: string | undefined;
484
+ model?: string | undefined;
485
+ instruction_file?: string | undefined;
486
+ soul?: string | undefined;
487
+ shell_sandbox?: boolean | undefined;
488
+ reflect_before_write?: boolean | undefined;
489
+ locale_strings?: Record<string, Record<string, string>> | undefined;
490
+ prompt_format?: "json" | "toon" | undefined;
491
+ max_turns?: number | undefined;
492
+ agent_kind?: "deepagent" | "langgraph-react" | undefined;
493
+ input_schema?: string | Record<string, unknown> | undefined;
494
+ invoked_by_engine?: string | undefined;
495
+ voice_persona?: {
496
+ budget: number;
497
+ voice: string;
498
+ interruption_tolerance: "high" | "medium" | "low";
499
+ preamble: boolean;
500
+ mcp_egress: boolean;
501
+ style?: string | undefined;
502
+ archetype?: string | undefined;
503
+ wake_word?: string | undefined;
504
+ } | undefined;
505
+ target_scopes?: string[] | undefined;
506
+ writes_kind?: string | undefined;
507
+ delegation_target_for?: {
508
+ agents: string[];
509
+ format: "slug" | "json" | "text";
510
+ typical_seconds?: number | undefined;
511
+ use_when?: string | undefined;
512
+ purpose?: string | undefined;
513
+ } | undefined;
514
+ }, {
515
+ type?: string | undefined;
516
+ skills?: string[] | undefined;
517
+ guardrails?: string[] | undefined;
518
+ instruction?: string | undefined;
519
+ promptTemplate?: string | undefined;
520
+ model?: string | undefined;
521
+ instruction_file?: string | undefined;
522
+ tags?: string[] | undefined;
523
+ objective?: string | undefined;
524
+ soul?: string | undefined;
525
+ tools?: string[] | undefined;
526
+ team_members?: string[] | undefined;
527
+ tool_groups?: string[] | undefined;
528
+ mcp_servers?: (string | z.objectInputType<{
529
+ ref: z.ZodString;
530
+ allowed_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
531
+ timeout_s: z.ZodOptional<z.ZodNumber>;
532
+ }, z.ZodTypeAny, "passthrough">)[] | undefined;
533
+ shell_sandbox?: boolean | undefined;
534
+ reflect_before_write?: boolean | undefined;
535
+ locale_strings?: Record<string, Record<string, string>> | undefined;
536
+ prompt_format?: "json" | "toon" | undefined;
537
+ max_turns?: number | undefined;
538
+ agent_kind?: "deepagent" | "langgraph-react" | undefined;
539
+ mandatory_tool_calls?: string[] | undefined;
540
+ input_schema?: string | Record<string, unknown> | undefined;
541
+ invoked_by_engine?: string | undefined;
542
+ voice_persona?: {
543
+ style?: string | undefined;
544
+ budget?: number | undefined;
545
+ voice?: string | undefined;
546
+ archetype?: string | undefined;
547
+ interruption_tolerance?: "high" | "medium" | "low" | undefined;
548
+ preamble?: boolean | undefined;
549
+ mcp_egress?: boolean | undefined;
550
+ wake_word?: string | undefined;
551
+ } | undefined;
552
+ target_scopes?: string[] | undefined;
553
+ writes_kind?: string | undefined;
554
+ creative_slots?: string[] | undefined;
555
+ system_slots?: Record<string, string> | undefined;
556
+ writes_kinds?: Record<string, Record<string, any>> | undefined;
557
+ reads?: Record<string, Record<string, any>> | undefined;
558
+ delegation_target_for?: {
559
+ agents?: string[] | undefined;
560
+ format?: "slug" | "json" | "text" | undefined;
561
+ typical_seconds?: number | undefined;
562
+ use_when?: string | undefined;
563
+ purpose?: string | undefined;
564
+ } | undefined;
565
+ }>;
566
+ export declare const AgentSchema: z.ZodObject<{
567
+ apiVersion: z.ZodLiteral<"github.com/ruinosus/dna/v1">;
568
+ kind: z.ZodLiteral<"Agent">;
569
+ metadata: z.ZodObject<{
570
+ name: z.ZodString;
571
+ description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
572
+ version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
573
+ icon: z.ZodDefault<z.ZodOptional<z.ZodString>>;
574
+ group: z.ZodDefault<z.ZodOptional<z.ZodString>>;
575
+ labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
576
+ }, "strip", z.ZodTypeAny, {
577
+ name: string;
578
+ description: string;
579
+ version: string;
580
+ icon: string;
581
+ group: string;
582
+ labels: Record<string, string>;
583
+ }, {
584
+ name: string;
585
+ description?: string | undefined;
586
+ version?: string | undefined;
587
+ icon?: string | undefined;
588
+ group?: string | undefined;
589
+ labels?: Record<string, string> | undefined;
590
+ }>;
591
+ spec: z.ZodDefault<z.ZodObject<{
592
+ instruction: z.ZodDefault<z.ZodOptional<z.ZodString>>;
593
+ instruction_file: z.ZodOptional<z.ZodString>;
594
+ objective: z.ZodDefault<z.ZodOptional<z.ZodString>>;
595
+ model: z.ZodOptional<z.ZodString>;
596
+ type: z.ZodOptional<z.ZodString>;
597
+ soul: z.ZodOptional<z.ZodString>;
598
+ skills: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
599
+ tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
600
+ team_members: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
601
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
602
+ guardrails: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
603
+ promptTemplate: z.ZodOptional<z.ZodString>;
604
+ tool_groups: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
605
+ mcp_servers: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
606
+ ref: z.ZodString;
607
+ allowed_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
608
+ timeout_s: z.ZodOptional<z.ZodNumber>;
609
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
610
+ ref: z.ZodString;
611
+ allowed_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
612
+ timeout_s: z.ZodOptional<z.ZodNumber>;
613
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
614
+ ref: z.ZodString;
615
+ allowed_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
616
+ timeout_s: z.ZodOptional<z.ZodNumber>;
617
+ }, z.ZodTypeAny, "passthrough">>]>, "many">>;
618
+ shell_sandbox: z.ZodOptional<z.ZodBoolean>;
619
+ reflect_before_write: z.ZodOptional<z.ZodBoolean>;
620
+ locale_strings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
621
+ prompt_format: z.ZodOptional<z.ZodEnum<["json", "toon"]>>;
622
+ max_turns: z.ZodOptional<z.ZodNumber>;
623
+ agent_kind: z.ZodOptional<z.ZodEnum<["deepagent", "langgraph-react"]>>;
624
+ mandatory_tool_calls: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
625
+ input_schema: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodString]>>;
626
+ invoked_by_engine: z.ZodOptional<z.ZodString>;
627
+ voice_persona: z.ZodOptional<z.ZodObject<{
628
+ voice: z.ZodDefault<z.ZodString>;
629
+ style: z.ZodOptional<z.ZodString>;
630
+ archetype: z.ZodOptional<z.ZodString>;
631
+ interruption_tolerance: z.ZodDefault<z.ZodEnum<["high", "medium", "low"]>>;
632
+ preamble: z.ZodDefault<z.ZodBoolean>;
633
+ mcp_egress: z.ZodDefault<z.ZodBoolean>;
634
+ wake_word: z.ZodOptional<z.ZodString>;
635
+ budget: z.ZodDefault<z.ZodNumber>;
636
+ }, "strip", z.ZodTypeAny, {
637
+ budget: number;
638
+ voice: string;
639
+ interruption_tolerance: "high" | "medium" | "low";
640
+ preamble: boolean;
641
+ mcp_egress: boolean;
642
+ style?: string | undefined;
643
+ archetype?: string | undefined;
644
+ wake_word?: string | undefined;
645
+ }, {
646
+ style?: string | undefined;
647
+ budget?: number | undefined;
648
+ voice?: string | undefined;
649
+ archetype?: string | undefined;
650
+ interruption_tolerance?: "high" | "medium" | "low" | undefined;
651
+ preamble?: boolean | undefined;
652
+ mcp_egress?: boolean | undefined;
653
+ wake_word?: string | undefined;
654
+ }>>;
655
+ target_scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
656
+ writes_kind: z.ZodOptional<z.ZodString>;
657
+ creative_slots: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
658
+ system_slots: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
659
+ writes_kinds: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
660
+ reads: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>>;
661
+ delegation_target_for: z.ZodOptional<z.ZodObject<{
662
+ agents: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
663
+ format: z.ZodDefault<z.ZodEnum<["slug", "json", "text"]>>;
664
+ typical_seconds: z.ZodOptional<z.ZodNumber>;
665
+ use_when: z.ZodOptional<z.ZodString>;
666
+ purpose: z.ZodOptional<z.ZodString>;
667
+ }, "strip", z.ZodTypeAny, {
668
+ agents: string[];
669
+ format: "slug" | "json" | "text";
670
+ typical_seconds?: number | undefined;
671
+ use_when?: string | undefined;
672
+ purpose?: string | undefined;
673
+ }, {
674
+ agents?: string[] | undefined;
675
+ format?: "slug" | "json" | "text" | undefined;
676
+ typical_seconds?: number | undefined;
677
+ use_when?: string | undefined;
678
+ purpose?: string | undefined;
679
+ }>>;
680
+ }, "strip", z.ZodTypeAny, {
681
+ skills: string[];
682
+ guardrails: string[];
683
+ instruction: string;
684
+ tags: string[];
685
+ objective: string;
686
+ tools: string[];
687
+ team_members: string[];
688
+ tool_groups: string[];
689
+ mcp_servers: (string | z.objectOutputType<{
690
+ ref: z.ZodString;
691
+ allowed_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
692
+ timeout_s: z.ZodOptional<z.ZodNumber>;
693
+ }, z.ZodTypeAny, "passthrough">)[];
694
+ mandatory_tool_calls: string[];
695
+ creative_slots: string[];
696
+ system_slots: Record<string, string>;
697
+ writes_kinds: Record<string, Record<string, any>>;
698
+ reads: Record<string, Record<string, any>>;
699
+ type?: string | undefined;
700
+ promptTemplate?: string | undefined;
701
+ model?: string | undefined;
702
+ instruction_file?: string | undefined;
703
+ soul?: string | undefined;
704
+ shell_sandbox?: boolean | undefined;
705
+ reflect_before_write?: boolean | undefined;
706
+ locale_strings?: Record<string, Record<string, string>> | undefined;
707
+ prompt_format?: "json" | "toon" | undefined;
708
+ max_turns?: number | undefined;
709
+ agent_kind?: "deepagent" | "langgraph-react" | undefined;
710
+ input_schema?: string | Record<string, unknown> | undefined;
711
+ invoked_by_engine?: string | undefined;
712
+ voice_persona?: {
713
+ budget: number;
714
+ voice: string;
715
+ interruption_tolerance: "high" | "medium" | "low";
716
+ preamble: boolean;
717
+ mcp_egress: boolean;
718
+ style?: string | undefined;
719
+ archetype?: string | undefined;
720
+ wake_word?: string | undefined;
721
+ } | undefined;
722
+ target_scopes?: string[] | undefined;
723
+ writes_kind?: string | undefined;
724
+ delegation_target_for?: {
725
+ agents: string[];
726
+ format: "slug" | "json" | "text";
727
+ typical_seconds?: number | undefined;
728
+ use_when?: string | undefined;
729
+ purpose?: string | undefined;
730
+ } | undefined;
731
+ }, {
732
+ type?: string | undefined;
733
+ skills?: string[] | undefined;
734
+ guardrails?: string[] | undefined;
735
+ instruction?: string | undefined;
736
+ promptTemplate?: string | undefined;
737
+ model?: string | undefined;
738
+ instruction_file?: string | undefined;
739
+ tags?: string[] | undefined;
740
+ objective?: string | undefined;
741
+ soul?: string | undefined;
742
+ tools?: string[] | undefined;
743
+ team_members?: string[] | undefined;
744
+ tool_groups?: string[] | undefined;
745
+ mcp_servers?: (string | z.objectInputType<{
746
+ ref: z.ZodString;
747
+ allowed_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
748
+ timeout_s: z.ZodOptional<z.ZodNumber>;
749
+ }, z.ZodTypeAny, "passthrough">)[] | undefined;
750
+ shell_sandbox?: boolean | undefined;
751
+ reflect_before_write?: boolean | undefined;
752
+ locale_strings?: Record<string, Record<string, string>> | undefined;
753
+ prompt_format?: "json" | "toon" | undefined;
754
+ max_turns?: number | undefined;
755
+ agent_kind?: "deepagent" | "langgraph-react" | undefined;
756
+ mandatory_tool_calls?: string[] | undefined;
757
+ input_schema?: string | Record<string, unknown> | undefined;
758
+ invoked_by_engine?: string | undefined;
759
+ voice_persona?: {
760
+ style?: string | undefined;
761
+ budget?: number | undefined;
762
+ voice?: string | undefined;
763
+ archetype?: string | undefined;
764
+ interruption_tolerance?: "high" | "medium" | "low" | undefined;
765
+ preamble?: boolean | undefined;
766
+ mcp_egress?: boolean | undefined;
767
+ wake_word?: string | undefined;
768
+ } | undefined;
769
+ target_scopes?: string[] | undefined;
770
+ writes_kind?: string | undefined;
771
+ creative_slots?: string[] | undefined;
772
+ system_slots?: Record<string, string> | undefined;
773
+ writes_kinds?: Record<string, Record<string, any>> | undefined;
774
+ reads?: Record<string, Record<string, any>> | undefined;
775
+ delegation_target_for?: {
776
+ agents?: string[] | undefined;
777
+ format?: "slug" | "json" | "text" | undefined;
778
+ typical_seconds?: number | undefined;
779
+ use_when?: string | undefined;
780
+ purpose?: string | undefined;
781
+ } | undefined;
782
+ }>>;
783
+ }, "strip", z.ZodTypeAny, {
784
+ metadata: {
785
+ name: string;
786
+ description: string;
787
+ version: string;
788
+ icon: string;
789
+ group: string;
790
+ labels: Record<string, string>;
791
+ };
792
+ spec: {
793
+ skills: string[];
794
+ guardrails: string[];
795
+ instruction: string;
796
+ tags: string[];
797
+ objective: string;
798
+ tools: string[];
799
+ team_members: string[];
800
+ tool_groups: string[];
801
+ mcp_servers: (string | z.objectOutputType<{
802
+ ref: z.ZodString;
803
+ allowed_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
804
+ timeout_s: z.ZodOptional<z.ZodNumber>;
805
+ }, z.ZodTypeAny, "passthrough">)[];
806
+ mandatory_tool_calls: string[];
807
+ creative_slots: string[];
808
+ system_slots: Record<string, string>;
809
+ writes_kinds: Record<string, Record<string, any>>;
810
+ reads: Record<string, Record<string, any>>;
811
+ type?: string | undefined;
812
+ promptTemplate?: string | undefined;
813
+ model?: string | undefined;
814
+ instruction_file?: string | undefined;
815
+ soul?: string | undefined;
816
+ shell_sandbox?: boolean | undefined;
817
+ reflect_before_write?: boolean | undefined;
818
+ locale_strings?: Record<string, Record<string, string>> | undefined;
819
+ prompt_format?: "json" | "toon" | undefined;
820
+ max_turns?: number | undefined;
821
+ agent_kind?: "deepagent" | "langgraph-react" | undefined;
822
+ input_schema?: string | Record<string, unknown> | undefined;
823
+ invoked_by_engine?: string | undefined;
824
+ voice_persona?: {
825
+ budget: number;
826
+ voice: string;
827
+ interruption_tolerance: "high" | "medium" | "low";
828
+ preamble: boolean;
829
+ mcp_egress: boolean;
830
+ style?: string | undefined;
831
+ archetype?: string | undefined;
832
+ wake_word?: string | undefined;
833
+ } | undefined;
834
+ target_scopes?: string[] | undefined;
835
+ writes_kind?: string | undefined;
836
+ delegation_target_for?: {
837
+ agents: string[];
838
+ format: "slug" | "json" | "text";
839
+ typical_seconds?: number | undefined;
840
+ use_when?: string | undefined;
841
+ purpose?: string | undefined;
842
+ } | undefined;
843
+ };
844
+ apiVersion: "github.com/ruinosus/dna/v1";
845
+ kind: "Agent";
846
+ }, {
847
+ metadata: {
848
+ name: string;
849
+ description?: string | undefined;
850
+ version?: string | undefined;
851
+ icon?: string | undefined;
852
+ group?: string | undefined;
853
+ labels?: Record<string, string> | undefined;
854
+ };
855
+ apiVersion: "github.com/ruinosus/dna/v1";
856
+ kind: "Agent";
857
+ spec?: {
858
+ type?: string | undefined;
859
+ skills?: string[] | undefined;
860
+ guardrails?: string[] | undefined;
861
+ instruction?: string | undefined;
862
+ promptTemplate?: string | undefined;
863
+ model?: string | undefined;
864
+ instruction_file?: string | undefined;
865
+ tags?: string[] | undefined;
866
+ objective?: string | undefined;
867
+ soul?: string | undefined;
868
+ tools?: string[] | undefined;
869
+ team_members?: string[] | undefined;
870
+ tool_groups?: string[] | undefined;
871
+ mcp_servers?: (string | z.objectInputType<{
872
+ ref: z.ZodString;
873
+ allowed_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
874
+ timeout_s: z.ZodOptional<z.ZodNumber>;
875
+ }, z.ZodTypeAny, "passthrough">)[] | undefined;
876
+ shell_sandbox?: boolean | undefined;
877
+ reflect_before_write?: boolean | undefined;
878
+ locale_strings?: Record<string, Record<string, string>> | undefined;
879
+ prompt_format?: "json" | "toon" | undefined;
880
+ max_turns?: number | undefined;
881
+ agent_kind?: "deepagent" | "langgraph-react" | undefined;
882
+ mandatory_tool_calls?: string[] | undefined;
883
+ input_schema?: string | Record<string, unknown> | undefined;
884
+ invoked_by_engine?: string | undefined;
885
+ voice_persona?: {
886
+ style?: string | undefined;
887
+ budget?: number | undefined;
888
+ voice?: string | undefined;
889
+ archetype?: string | undefined;
890
+ interruption_tolerance?: "high" | "medium" | "low" | undefined;
891
+ preamble?: boolean | undefined;
892
+ mcp_egress?: boolean | undefined;
893
+ wake_word?: string | undefined;
894
+ } | undefined;
895
+ target_scopes?: string[] | undefined;
896
+ writes_kind?: string | undefined;
897
+ creative_slots?: string[] | undefined;
898
+ system_slots?: Record<string, string> | undefined;
899
+ writes_kinds?: Record<string, Record<string, any>> | undefined;
900
+ reads?: Record<string, Record<string, any>> | undefined;
901
+ delegation_target_for?: {
902
+ agents?: string[] | undefined;
903
+ format?: "slug" | "json" | "text" | undefined;
904
+ typical_seconds?: number | undefined;
905
+ use_when?: string | undefined;
906
+ purpose?: string | undefined;
907
+ } | undefined;
908
+ } | undefined;
909
+ }>;
910
+ export type TypedAgent = z.output<typeof AgentSchema>;
911
+ export declare const ActorSpecSchema: z.ZodObject<{
912
+ instruction: z.ZodDefault<z.ZodOptional<z.ZodString>>;
913
+ traits: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
914
+ role: z.ZodDefault<z.ZodOptional<z.ZodString>>;
915
+ actorType: z.ZodDefault<z.ZodEnum<["human", "system", "time"]>>;
916
+ }, "strip", z.ZodTypeAny, {
917
+ instruction: string;
918
+ traits: string[];
919
+ role: string;
920
+ actorType: "time" | "human" | "system";
921
+ }, {
922
+ instruction?: string | undefined;
923
+ traits?: string[] | undefined;
924
+ role?: string | undefined;
925
+ actorType?: "time" | "human" | "system" | undefined;
926
+ }>;
927
+ export declare const ActorSchema: z.ZodObject<{
928
+ apiVersion: z.ZodLiteral<"github.com/ruinosus/dna/v1">;
929
+ kind: z.ZodLiteral<"Actor">;
930
+ metadata: z.ZodObject<{
931
+ name: z.ZodString;
932
+ description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
933
+ version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
934
+ icon: z.ZodDefault<z.ZodOptional<z.ZodString>>;
935
+ group: z.ZodDefault<z.ZodOptional<z.ZodString>>;
936
+ labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
937
+ }, "strip", z.ZodTypeAny, {
938
+ name: string;
939
+ description: string;
940
+ version: string;
941
+ icon: string;
942
+ group: string;
943
+ labels: Record<string, string>;
944
+ }, {
945
+ name: string;
946
+ description?: string | undefined;
947
+ version?: string | undefined;
948
+ icon?: string | undefined;
949
+ group?: string | undefined;
950
+ labels?: Record<string, string> | undefined;
951
+ }>;
952
+ spec: z.ZodDefault<z.ZodObject<{
953
+ instruction: z.ZodDefault<z.ZodOptional<z.ZodString>>;
954
+ traits: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
955
+ role: z.ZodDefault<z.ZodOptional<z.ZodString>>;
956
+ actorType: z.ZodDefault<z.ZodEnum<["human", "system", "time"]>>;
957
+ }, "strip", z.ZodTypeAny, {
958
+ instruction: string;
959
+ traits: string[];
960
+ role: string;
961
+ actorType: "time" | "human" | "system";
962
+ }, {
963
+ instruction?: string | undefined;
964
+ traits?: string[] | undefined;
965
+ role?: string | undefined;
966
+ actorType?: "time" | "human" | "system" | undefined;
967
+ }>>;
968
+ }, "strip", z.ZodTypeAny, {
969
+ metadata: {
970
+ name: string;
971
+ description: string;
972
+ version: string;
973
+ icon: string;
974
+ group: string;
975
+ labels: Record<string, string>;
976
+ };
977
+ spec: {
978
+ instruction: string;
979
+ traits: string[];
980
+ role: string;
981
+ actorType: "time" | "human" | "system";
982
+ };
983
+ apiVersion: "github.com/ruinosus/dna/v1";
984
+ kind: "Actor";
985
+ }, {
986
+ metadata: {
987
+ name: string;
988
+ description?: string | undefined;
989
+ version?: string | undefined;
990
+ icon?: string | undefined;
991
+ group?: string | undefined;
992
+ labels?: Record<string, string> | undefined;
993
+ };
994
+ apiVersion: "github.com/ruinosus/dna/v1";
995
+ kind: "Actor";
996
+ spec?: {
997
+ instruction?: string | undefined;
998
+ traits?: string[] | undefined;
999
+ role?: string | undefined;
1000
+ actorType?: "time" | "human" | "system" | undefined;
1001
+ } | undefined;
1002
+ }>;
1003
+ export type TypedActor = z.output<typeof ActorSchema>;
1004
+ export declare const UseCaseSpecSchema: z.ZodObject<{
1005
+ primary_actor: z.ZodOptional<z.ZodString>;
1006
+ supporting_actors: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1007
+ agents: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1008
+ tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1009
+ skills: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1010
+ soul: z.ZodOptional<z.ZodString>;
1011
+ guardrails: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1012
+ preconditions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1013
+ main_flow: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1014
+ alternate_flows: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
1015
+ postconditions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1016
+ success_criteria: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1017
+ }, "strip", z.ZodTypeAny, {
1018
+ skills: string[];
1019
+ guardrails: string[];
1020
+ agents: string[];
1021
+ tools: string[];
1022
+ supporting_actors: string[];
1023
+ preconditions: string[];
1024
+ main_flow: string[];
1025
+ alternate_flows: Record<string, unknown>[];
1026
+ postconditions: string[];
1027
+ success_criteria: string[];
1028
+ soul?: string | undefined;
1029
+ primary_actor?: string | undefined;
1030
+ }, {
1031
+ skills?: string[] | undefined;
1032
+ guardrails?: string[] | undefined;
1033
+ agents?: string[] | undefined;
1034
+ soul?: string | undefined;
1035
+ tools?: string[] | undefined;
1036
+ primary_actor?: string | undefined;
1037
+ supporting_actors?: string[] | undefined;
1038
+ preconditions?: string[] | undefined;
1039
+ main_flow?: string[] | undefined;
1040
+ alternate_flows?: Record<string, unknown>[] | undefined;
1041
+ postconditions?: string[] | undefined;
1042
+ success_criteria?: string[] | undefined;
1043
+ }>;
1044
+ export declare const UseCaseSchema: z.ZodObject<{
1045
+ apiVersion: z.ZodLiteral<"github.com/ruinosus/dna/v1">;
1046
+ kind: z.ZodLiteral<"UseCase">;
1047
+ metadata: z.ZodObject<{
1048
+ name: z.ZodString;
1049
+ description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1050
+ version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1051
+ icon: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1052
+ group: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1053
+ labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1054
+ }, "strip", z.ZodTypeAny, {
1055
+ name: string;
1056
+ description: string;
1057
+ version: string;
1058
+ icon: string;
1059
+ group: string;
1060
+ labels: Record<string, string>;
1061
+ }, {
1062
+ name: string;
1063
+ description?: string | undefined;
1064
+ version?: string | undefined;
1065
+ icon?: string | undefined;
1066
+ group?: string | undefined;
1067
+ labels?: Record<string, string> | undefined;
1068
+ }>;
1069
+ spec: z.ZodDefault<z.ZodObject<{
1070
+ primary_actor: z.ZodOptional<z.ZodString>;
1071
+ supporting_actors: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1072
+ agents: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1073
+ tools: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1074
+ skills: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1075
+ soul: z.ZodOptional<z.ZodString>;
1076
+ guardrails: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1077
+ preconditions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1078
+ main_flow: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1079
+ alternate_flows: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
1080
+ postconditions: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1081
+ success_criteria: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1082
+ }, "strip", z.ZodTypeAny, {
1083
+ skills: string[];
1084
+ guardrails: string[];
1085
+ agents: string[];
1086
+ tools: string[];
1087
+ supporting_actors: string[];
1088
+ preconditions: string[];
1089
+ main_flow: string[];
1090
+ alternate_flows: Record<string, unknown>[];
1091
+ postconditions: string[];
1092
+ success_criteria: string[];
1093
+ soul?: string | undefined;
1094
+ primary_actor?: string | undefined;
1095
+ }, {
1096
+ skills?: string[] | undefined;
1097
+ guardrails?: string[] | undefined;
1098
+ agents?: string[] | undefined;
1099
+ soul?: string | undefined;
1100
+ tools?: string[] | undefined;
1101
+ primary_actor?: string | undefined;
1102
+ supporting_actors?: string[] | undefined;
1103
+ preconditions?: string[] | undefined;
1104
+ main_flow?: string[] | undefined;
1105
+ alternate_flows?: Record<string, unknown>[] | undefined;
1106
+ postconditions?: string[] | undefined;
1107
+ success_criteria?: string[] | undefined;
1108
+ }>>;
1109
+ }, "strip", z.ZodTypeAny, {
1110
+ metadata: {
1111
+ name: string;
1112
+ description: string;
1113
+ version: string;
1114
+ icon: string;
1115
+ group: string;
1116
+ labels: Record<string, string>;
1117
+ };
1118
+ spec: {
1119
+ skills: string[];
1120
+ guardrails: string[];
1121
+ agents: string[];
1122
+ tools: string[];
1123
+ supporting_actors: string[];
1124
+ preconditions: string[];
1125
+ main_flow: string[];
1126
+ alternate_flows: Record<string, unknown>[];
1127
+ postconditions: string[];
1128
+ success_criteria: string[];
1129
+ soul?: string | undefined;
1130
+ primary_actor?: string | undefined;
1131
+ };
1132
+ apiVersion: "github.com/ruinosus/dna/v1";
1133
+ kind: "UseCase";
1134
+ }, {
1135
+ metadata: {
1136
+ name: string;
1137
+ description?: string | undefined;
1138
+ version?: string | undefined;
1139
+ icon?: string | undefined;
1140
+ group?: string | undefined;
1141
+ labels?: Record<string, string> | undefined;
1142
+ };
1143
+ apiVersion: "github.com/ruinosus/dna/v1";
1144
+ kind: "UseCase";
1145
+ spec?: {
1146
+ skills?: string[] | undefined;
1147
+ guardrails?: string[] | undefined;
1148
+ agents?: string[] | undefined;
1149
+ soul?: string | undefined;
1150
+ tools?: string[] | undefined;
1151
+ primary_actor?: string | undefined;
1152
+ supporting_actors?: string[] | undefined;
1153
+ preconditions?: string[] | undefined;
1154
+ main_flow?: string[] | undefined;
1155
+ alternate_flows?: Record<string, unknown>[] | undefined;
1156
+ postconditions?: string[] | undefined;
1157
+ success_criteria?: string[] | undefined;
1158
+ } | undefined;
1159
+ }>;
1160
+ export type TypedUseCase = z.output<typeof UseCaseSchema>;
1161
+ export declare const ToolTypeEnum: z.ZodEnum<["http", "mcp", "python", "shell", "builtin"]>;
1162
+ export declare const ToolAuthTypeEnum: z.ZodEnum<["none", "api_key", "bearer", "oauth2"]>;
1163
+ export declare const ToolSpecSchema: z.ZodObject<{
1164
+ type: z.ZodDefault<z.ZodEnum<["http", "mcp", "python", "shell", "builtin"]>>;
1165
+ endpoint: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1166
+ method: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1167
+ mcp_server: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1168
+ mcp_tool: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1169
+ python_module: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1170
+ python_callable: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1171
+ shell_command: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1172
+ input_schema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1173
+ output_schema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1174
+ auth_type: z.ZodDefault<z.ZodEnum<["none", "api_key", "bearer", "oauth2"]>>;
1175
+ auth_env_var: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1176
+ read_only: z.ZodDefault<z.ZodBoolean>;
1177
+ requires_confirmation: z.ZodDefault<z.ZodBoolean>;
1178
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1179
+ examples: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
1180
+ }, "strip", z.ZodTypeAny, {
1181
+ type: "http" | "mcp" | "python" | "shell" | "builtin";
1182
+ tags: string[];
1183
+ input_schema: Record<string, unknown>;
1184
+ endpoint: string;
1185
+ method: string;
1186
+ mcp_server: string;
1187
+ mcp_tool: string;
1188
+ python_module: string;
1189
+ python_callable: string;
1190
+ shell_command: string;
1191
+ output_schema: Record<string, unknown>;
1192
+ auth_type: "none" | "api_key" | "bearer" | "oauth2";
1193
+ auth_env_var: string;
1194
+ read_only: boolean;
1195
+ requires_confirmation: boolean;
1196
+ examples: Record<string, unknown>[];
1197
+ }, {
1198
+ type?: "http" | "mcp" | "python" | "shell" | "builtin" | undefined;
1199
+ tags?: string[] | undefined;
1200
+ input_schema?: Record<string, unknown> | undefined;
1201
+ endpoint?: string | undefined;
1202
+ method?: string | undefined;
1203
+ mcp_server?: string | undefined;
1204
+ mcp_tool?: string | undefined;
1205
+ python_module?: string | undefined;
1206
+ python_callable?: string | undefined;
1207
+ shell_command?: string | undefined;
1208
+ output_schema?: Record<string, unknown> | undefined;
1209
+ auth_type?: "none" | "api_key" | "bearer" | "oauth2" | undefined;
1210
+ auth_env_var?: string | undefined;
1211
+ read_only?: boolean | undefined;
1212
+ requires_confirmation?: boolean | undefined;
1213
+ examples?: Record<string, unknown>[] | undefined;
1214
+ }>;
1215
+ export declare const ToolSchema: z.ZodObject<{
1216
+ apiVersion: z.ZodLiteral<"github.com/ruinosus/dna/v1">;
1217
+ kind: z.ZodLiteral<"Tool">;
1218
+ metadata: z.ZodObject<{
1219
+ name: z.ZodString;
1220
+ description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1221
+ version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1222
+ icon: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1223
+ group: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1224
+ labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1225
+ }, "strip", z.ZodTypeAny, {
1226
+ name: string;
1227
+ description: string;
1228
+ version: string;
1229
+ icon: string;
1230
+ group: string;
1231
+ labels: Record<string, string>;
1232
+ }, {
1233
+ name: string;
1234
+ description?: string | undefined;
1235
+ version?: string | undefined;
1236
+ icon?: string | undefined;
1237
+ group?: string | undefined;
1238
+ labels?: Record<string, string> | undefined;
1239
+ }>;
1240
+ spec: z.ZodDefault<z.ZodObject<{
1241
+ type: z.ZodDefault<z.ZodEnum<["http", "mcp", "python", "shell", "builtin"]>>;
1242
+ endpoint: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1243
+ method: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1244
+ mcp_server: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1245
+ mcp_tool: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1246
+ python_module: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1247
+ python_callable: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1248
+ shell_command: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1249
+ input_schema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1250
+ output_schema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1251
+ auth_type: z.ZodDefault<z.ZodEnum<["none", "api_key", "bearer", "oauth2"]>>;
1252
+ auth_env_var: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1253
+ read_only: z.ZodDefault<z.ZodBoolean>;
1254
+ requires_confirmation: z.ZodDefault<z.ZodBoolean>;
1255
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1256
+ examples: z.ZodDefault<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
1257
+ }, "strip", z.ZodTypeAny, {
1258
+ type: "http" | "mcp" | "python" | "shell" | "builtin";
1259
+ tags: string[];
1260
+ input_schema: Record<string, unknown>;
1261
+ endpoint: string;
1262
+ method: string;
1263
+ mcp_server: string;
1264
+ mcp_tool: string;
1265
+ python_module: string;
1266
+ python_callable: string;
1267
+ shell_command: string;
1268
+ output_schema: Record<string, unknown>;
1269
+ auth_type: "none" | "api_key" | "bearer" | "oauth2";
1270
+ auth_env_var: string;
1271
+ read_only: boolean;
1272
+ requires_confirmation: boolean;
1273
+ examples: Record<string, unknown>[];
1274
+ }, {
1275
+ type?: "http" | "mcp" | "python" | "shell" | "builtin" | undefined;
1276
+ tags?: string[] | undefined;
1277
+ input_schema?: Record<string, unknown> | undefined;
1278
+ endpoint?: string | undefined;
1279
+ method?: string | undefined;
1280
+ mcp_server?: string | undefined;
1281
+ mcp_tool?: string | undefined;
1282
+ python_module?: string | undefined;
1283
+ python_callable?: string | undefined;
1284
+ shell_command?: string | undefined;
1285
+ output_schema?: Record<string, unknown> | undefined;
1286
+ auth_type?: "none" | "api_key" | "bearer" | "oauth2" | undefined;
1287
+ auth_env_var?: string | undefined;
1288
+ read_only?: boolean | undefined;
1289
+ requires_confirmation?: boolean | undefined;
1290
+ examples?: Record<string, unknown>[] | undefined;
1291
+ }>>;
1292
+ }, "strip", z.ZodTypeAny, {
1293
+ metadata: {
1294
+ name: string;
1295
+ description: string;
1296
+ version: string;
1297
+ icon: string;
1298
+ group: string;
1299
+ labels: Record<string, string>;
1300
+ };
1301
+ spec: {
1302
+ type: "http" | "mcp" | "python" | "shell" | "builtin";
1303
+ tags: string[];
1304
+ input_schema: Record<string, unknown>;
1305
+ endpoint: string;
1306
+ method: string;
1307
+ mcp_server: string;
1308
+ mcp_tool: string;
1309
+ python_module: string;
1310
+ python_callable: string;
1311
+ shell_command: string;
1312
+ output_schema: Record<string, unknown>;
1313
+ auth_type: "none" | "api_key" | "bearer" | "oauth2";
1314
+ auth_env_var: string;
1315
+ read_only: boolean;
1316
+ requires_confirmation: boolean;
1317
+ examples: Record<string, unknown>[];
1318
+ };
1319
+ apiVersion: "github.com/ruinosus/dna/v1";
1320
+ kind: "Tool";
1321
+ }, {
1322
+ metadata: {
1323
+ name: string;
1324
+ description?: string | undefined;
1325
+ version?: string | undefined;
1326
+ icon?: string | undefined;
1327
+ group?: string | undefined;
1328
+ labels?: Record<string, string> | undefined;
1329
+ };
1330
+ apiVersion: "github.com/ruinosus/dna/v1";
1331
+ kind: "Tool";
1332
+ spec?: {
1333
+ type?: "http" | "mcp" | "python" | "shell" | "builtin" | undefined;
1334
+ tags?: string[] | undefined;
1335
+ input_schema?: Record<string, unknown> | undefined;
1336
+ endpoint?: string | undefined;
1337
+ method?: string | undefined;
1338
+ mcp_server?: string | undefined;
1339
+ mcp_tool?: string | undefined;
1340
+ python_module?: string | undefined;
1341
+ python_callable?: string | undefined;
1342
+ shell_command?: string | undefined;
1343
+ output_schema?: Record<string, unknown> | undefined;
1344
+ auth_type?: "none" | "api_key" | "bearer" | "oauth2" | undefined;
1345
+ auth_env_var?: string | undefined;
1346
+ read_only?: boolean | undefined;
1347
+ requires_confirmation?: boolean | undefined;
1348
+ examples?: Record<string, unknown>[] | undefined;
1349
+ } | undefined;
1350
+ }>;
1351
+ export type TypedTool = z.output<typeof ToolSchema>;
1352
+ export declare const SkillSpecSchema: z.ZodObject<{
1353
+ instruction: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1354
+ scripts: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1355
+ references: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1356
+ assets: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1357
+ extras: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
1358
+ root_files: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1359
+ }, "strip", z.ZodTypeAny, {
1360
+ instruction: string;
1361
+ scripts: Record<string, string>;
1362
+ references: Record<string, string>;
1363
+ assets: Record<string, string>;
1364
+ extras: Record<string, Record<string, string>>;
1365
+ root_files: Record<string, string>;
1366
+ }, {
1367
+ instruction?: string | undefined;
1368
+ scripts?: Record<string, string> | undefined;
1369
+ references?: Record<string, string> | undefined;
1370
+ assets?: Record<string, string> | undefined;
1371
+ extras?: Record<string, Record<string, string>> | undefined;
1372
+ root_files?: Record<string, string> | undefined;
1373
+ }>;
1374
+ export declare const SkillSchema: z.ZodObject<{
1375
+ apiVersion: z.ZodLiteral<"agentskills.io/v1">;
1376
+ kind: z.ZodLiteral<"Skill">;
1377
+ metadata: z.ZodObject<{
1378
+ name: z.ZodString;
1379
+ description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1380
+ version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1381
+ icon: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1382
+ group: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1383
+ labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1384
+ }, "strip", z.ZodTypeAny, {
1385
+ name: string;
1386
+ description: string;
1387
+ version: string;
1388
+ icon: string;
1389
+ group: string;
1390
+ labels: Record<string, string>;
1391
+ }, {
1392
+ name: string;
1393
+ description?: string | undefined;
1394
+ version?: string | undefined;
1395
+ icon?: string | undefined;
1396
+ group?: string | undefined;
1397
+ labels?: Record<string, string> | undefined;
1398
+ }>;
1399
+ spec: z.ZodDefault<z.ZodObject<{
1400
+ instruction: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1401
+ scripts: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1402
+ references: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1403
+ assets: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1404
+ extras: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
1405
+ root_files: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1406
+ }, "strip", z.ZodTypeAny, {
1407
+ instruction: string;
1408
+ scripts: Record<string, string>;
1409
+ references: Record<string, string>;
1410
+ assets: Record<string, string>;
1411
+ extras: Record<string, Record<string, string>>;
1412
+ root_files: Record<string, string>;
1413
+ }, {
1414
+ instruction?: string | undefined;
1415
+ scripts?: Record<string, string> | undefined;
1416
+ references?: Record<string, string> | undefined;
1417
+ assets?: Record<string, string> | undefined;
1418
+ extras?: Record<string, Record<string, string>> | undefined;
1419
+ root_files?: Record<string, string> | undefined;
1420
+ }>>;
1421
+ }, "strip", z.ZodTypeAny, {
1422
+ metadata: {
1423
+ name: string;
1424
+ description: string;
1425
+ version: string;
1426
+ icon: string;
1427
+ group: string;
1428
+ labels: Record<string, string>;
1429
+ };
1430
+ spec: {
1431
+ instruction: string;
1432
+ scripts: Record<string, string>;
1433
+ references: Record<string, string>;
1434
+ assets: Record<string, string>;
1435
+ extras: Record<string, Record<string, string>>;
1436
+ root_files: Record<string, string>;
1437
+ };
1438
+ apiVersion: "agentskills.io/v1";
1439
+ kind: "Skill";
1440
+ }, {
1441
+ metadata: {
1442
+ name: string;
1443
+ description?: string | undefined;
1444
+ version?: string | undefined;
1445
+ icon?: string | undefined;
1446
+ group?: string | undefined;
1447
+ labels?: Record<string, string> | undefined;
1448
+ };
1449
+ apiVersion: "agentskills.io/v1";
1450
+ kind: "Skill";
1451
+ spec?: {
1452
+ instruction?: string | undefined;
1453
+ scripts?: Record<string, string> | undefined;
1454
+ references?: Record<string, string> | undefined;
1455
+ assets?: Record<string, string> | undefined;
1456
+ extras?: Record<string, Record<string, string>> | undefined;
1457
+ root_files?: Record<string, string> | undefined;
1458
+ } | undefined;
1459
+ }>;
1460
+ export type TypedSkill = z.output<typeof SkillSchema>;
1461
+ export declare const SoulSpecSchema: z.ZodObject<{
1462
+ soul_content: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1463
+ soul_json: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1464
+ style_content: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1465
+ agents_content: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1466
+ }, "strip", z.ZodTypeAny, {
1467
+ soul_content: string;
1468
+ style_content: string;
1469
+ agents_content: string;
1470
+ soul_json?: Record<string, unknown> | undefined;
1471
+ }, {
1472
+ soul_content?: string | undefined;
1473
+ style_content?: string | undefined;
1474
+ agents_content?: string | undefined;
1475
+ soul_json?: Record<string, unknown> | undefined;
1476
+ }>;
1477
+ export declare const SoulSchema: z.ZodObject<{
1478
+ apiVersion: z.ZodLiteral<"soulspec.org/v1">;
1479
+ kind: z.ZodLiteral<"Soul">;
1480
+ metadata: z.ZodObject<{
1481
+ name: z.ZodString;
1482
+ description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1483
+ version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1484
+ icon: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1485
+ group: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1486
+ labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1487
+ }, "strip", z.ZodTypeAny, {
1488
+ name: string;
1489
+ description: string;
1490
+ version: string;
1491
+ icon: string;
1492
+ group: string;
1493
+ labels: Record<string, string>;
1494
+ }, {
1495
+ name: string;
1496
+ description?: string | undefined;
1497
+ version?: string | undefined;
1498
+ icon?: string | undefined;
1499
+ group?: string | undefined;
1500
+ labels?: Record<string, string> | undefined;
1501
+ }>;
1502
+ spec: z.ZodDefault<z.ZodObject<{
1503
+ soul_content: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1504
+ soul_json: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1505
+ style_content: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1506
+ agents_content: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1507
+ }, "strip", z.ZodTypeAny, {
1508
+ soul_content: string;
1509
+ style_content: string;
1510
+ agents_content: string;
1511
+ soul_json?: Record<string, unknown> | undefined;
1512
+ }, {
1513
+ soul_content?: string | undefined;
1514
+ style_content?: string | undefined;
1515
+ agents_content?: string | undefined;
1516
+ soul_json?: Record<string, unknown> | undefined;
1517
+ }>>;
1518
+ }, "strip", z.ZodTypeAny, {
1519
+ metadata: {
1520
+ name: string;
1521
+ description: string;
1522
+ version: string;
1523
+ icon: string;
1524
+ group: string;
1525
+ labels: Record<string, string>;
1526
+ };
1527
+ spec: {
1528
+ soul_content: string;
1529
+ style_content: string;
1530
+ agents_content: string;
1531
+ soul_json?: Record<string, unknown> | undefined;
1532
+ };
1533
+ apiVersion: "soulspec.org/v1";
1534
+ kind: "Soul";
1535
+ }, {
1536
+ metadata: {
1537
+ name: string;
1538
+ description?: string | undefined;
1539
+ version?: string | undefined;
1540
+ icon?: string | undefined;
1541
+ group?: string | undefined;
1542
+ labels?: Record<string, string> | undefined;
1543
+ };
1544
+ apiVersion: "soulspec.org/v1";
1545
+ kind: "Soul";
1546
+ spec?: {
1547
+ soul_content?: string | undefined;
1548
+ style_content?: string | undefined;
1549
+ agents_content?: string | undefined;
1550
+ soul_json?: Record<string, unknown> | undefined;
1551
+ } | undefined;
1552
+ }>;
1553
+ export type TypedSoul = z.output<typeof SoulSchema>;
1554
+ export declare const AgentDefinitionSpecSchema: z.ZodObject<{
1555
+ content: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1556
+ }, "strip", z.ZodTypeAny, {
1557
+ content: string;
1558
+ }, {
1559
+ content?: string | undefined;
1560
+ }>;
1561
+ export declare const AgentDefinitionSchema: z.ZodObject<{
1562
+ apiVersion: z.ZodLiteral<"agents.md/v1">;
1563
+ kind: z.ZodLiteral<"AgentDefinition">;
1564
+ metadata: z.ZodObject<{
1565
+ name: z.ZodString;
1566
+ description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1567
+ version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1568
+ icon: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1569
+ group: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1570
+ labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1571
+ }, "strip", z.ZodTypeAny, {
1572
+ name: string;
1573
+ description: string;
1574
+ version: string;
1575
+ icon: string;
1576
+ group: string;
1577
+ labels: Record<string, string>;
1578
+ }, {
1579
+ name: string;
1580
+ description?: string | undefined;
1581
+ version?: string | undefined;
1582
+ icon?: string | undefined;
1583
+ group?: string | undefined;
1584
+ labels?: Record<string, string> | undefined;
1585
+ }>;
1586
+ spec: z.ZodDefault<z.ZodObject<{
1587
+ content: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1588
+ }, "strip", z.ZodTypeAny, {
1589
+ content: string;
1590
+ }, {
1591
+ content?: string | undefined;
1592
+ }>>;
1593
+ }, "strip", z.ZodTypeAny, {
1594
+ metadata: {
1595
+ name: string;
1596
+ description: string;
1597
+ version: string;
1598
+ icon: string;
1599
+ group: string;
1600
+ labels: Record<string, string>;
1601
+ };
1602
+ spec: {
1603
+ content: string;
1604
+ };
1605
+ apiVersion: "agents.md/v1";
1606
+ kind: "AgentDefinition";
1607
+ }, {
1608
+ metadata: {
1609
+ name: string;
1610
+ description?: string | undefined;
1611
+ version?: string | undefined;
1612
+ icon?: string | undefined;
1613
+ group?: string | undefined;
1614
+ labels?: Record<string, string> | undefined;
1615
+ };
1616
+ apiVersion: "agents.md/v1";
1617
+ kind: "AgentDefinition";
1618
+ spec?: {
1619
+ content?: string | undefined;
1620
+ } | undefined;
1621
+ }>;
1622
+ export type TypedAgentDefinition = z.output<typeof AgentDefinitionSchema>;
1623
+ export declare const GuardrailSpecSchema: z.ZodObject<{
1624
+ rules: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1625
+ severity: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1626
+ scope: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1627
+ }, "strip", z.ZodTypeAny, {
1628
+ scope: string;
1629
+ severity: string;
1630
+ rules: string[];
1631
+ }, {
1632
+ scope?: string | undefined;
1633
+ severity?: string | undefined;
1634
+ rules?: string[] | undefined;
1635
+ }>;
1636
+ export declare const GuardrailSchema: z.ZodObject<{
1637
+ apiVersion: z.ZodLiteral<"github.com/ruinosus/dna/v1">;
1638
+ kind: z.ZodLiteral<"Guardrail">;
1639
+ metadata: z.ZodObject<{
1640
+ name: z.ZodString;
1641
+ description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1642
+ version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1643
+ icon: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1644
+ group: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1645
+ labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1646
+ }, "strip", z.ZodTypeAny, {
1647
+ name: string;
1648
+ description: string;
1649
+ version: string;
1650
+ icon: string;
1651
+ group: string;
1652
+ labels: Record<string, string>;
1653
+ }, {
1654
+ name: string;
1655
+ description?: string | undefined;
1656
+ version?: string | undefined;
1657
+ icon?: string | undefined;
1658
+ group?: string | undefined;
1659
+ labels?: Record<string, string> | undefined;
1660
+ }>;
1661
+ spec: z.ZodDefault<z.ZodObject<{
1662
+ rules: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1663
+ severity: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1664
+ scope: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1665
+ }, "strip", z.ZodTypeAny, {
1666
+ scope: string;
1667
+ severity: string;
1668
+ rules: string[];
1669
+ }, {
1670
+ scope?: string | undefined;
1671
+ severity?: string | undefined;
1672
+ rules?: string[] | undefined;
1673
+ }>>;
1674
+ }, "strip", z.ZodTypeAny, {
1675
+ metadata: {
1676
+ name: string;
1677
+ description: string;
1678
+ version: string;
1679
+ icon: string;
1680
+ group: string;
1681
+ labels: Record<string, string>;
1682
+ };
1683
+ spec: {
1684
+ scope: string;
1685
+ severity: string;
1686
+ rules: string[];
1687
+ };
1688
+ apiVersion: "github.com/ruinosus/dna/v1";
1689
+ kind: "Guardrail";
1690
+ }, {
1691
+ metadata: {
1692
+ name: string;
1693
+ description?: string | undefined;
1694
+ version?: string | undefined;
1695
+ icon?: string | undefined;
1696
+ group?: string | undefined;
1697
+ labels?: Record<string, string> | undefined;
1698
+ };
1699
+ apiVersion: "github.com/ruinosus/dna/v1";
1700
+ kind: "Guardrail";
1701
+ spec?: {
1702
+ scope?: string | undefined;
1703
+ severity?: string | undefined;
1704
+ rules?: string[] | undefined;
1705
+ } | undefined;
1706
+ }>;
1707
+ export type TypedGuardrail = z.output<typeof GuardrailSchema>;
1708
+ export declare const KIND_DEFINITION_API_VERSION = "github.com/ruinosus/dna/core/v1";
1709
+ export declare const KIND_DEFINITION_KIND = "KindDefinition";
1710
+ export declare const KindDefinitionSpecSchema: z.ZodObject<{
1711
+ target_api_version: z.ZodString;
1712
+ target_kind: z.ZodString;
1713
+ alias: z.ZodString;
1714
+ origin: z.ZodString;
1715
+ is_root: z.ZodDefault<z.ZodBoolean>;
1716
+ prompt_target: z.ZodDefault<z.ZodBoolean>;
1717
+ flatten_in_context: z.ZodDefault<z.ZodBoolean>;
1718
+ schema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1719
+ docs: z.ZodOptional<z.ZodString>;
1720
+ storage: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1721
+ dep_filters: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1722
+ default_agent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1723
+ graph_style: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1724
+ ascii_icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1725
+ display_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1726
+ plane: z.ZodDefault<z.ZodEnum<["composition", "record"]>>;
1727
+ tenant_scope: z.ZodOptional<z.ZodEnum<["tenanted", "global"]>>;
1728
+ summary: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodString, "many">]>>>;
1729
+ embed: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1730
+ is_runtime_artifact: z.ZodDefault<z.ZodBoolean>;
1731
+ prompt_target_priority: z.ZodDefault<z.ZodNumber>;
1732
+ scope_inheritable: z.ZodDefault<z.ZodBoolean>;
1733
+ is_overlayable: z.ZodDefault<z.ZodBoolean>;
1734
+ volatile_spec_fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1735
+ ui: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>>>;
1736
+ describe: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
1737
+ ui_schema: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1738
+ spec_defaults: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1739
+ default_agent_field: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1740
+ description_fallback_field: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1741
+ }, "strip", z.ZodTypeAny, {
1742
+ origin: string;
1743
+ is_root: boolean;
1744
+ flatten_in_context: boolean;
1745
+ alias: string;
1746
+ storage: Record<string, unknown>;
1747
+ plane: "composition" | "record";
1748
+ schema: Record<string, unknown>;
1749
+ target_api_version: string;
1750
+ target_kind: string;
1751
+ prompt_target: boolean;
1752
+ is_runtime_artifact: boolean;
1753
+ prompt_target_priority: number;
1754
+ scope_inheritable: boolean;
1755
+ is_overlayable: boolean;
1756
+ default_agent?: string | null | undefined;
1757
+ describe?: string | Record<string, unknown> | null | undefined;
1758
+ summary?: Record<string, unknown> | string[] | null | undefined;
1759
+ docs?: string | undefined;
1760
+ dep_filters?: Record<string, string> | null | undefined;
1761
+ graph_style?: Record<string, string> | null | undefined;
1762
+ ascii_icon?: string | null | undefined;
1763
+ display_label?: string | null | undefined;
1764
+ tenant_scope?: "tenanted" | "global" | undefined;
1765
+ embed?: string[] | null | undefined;
1766
+ volatile_spec_fields?: string[] | null | undefined;
1767
+ ui?: Record<string, unknown> | null | undefined;
1768
+ ui_schema?: Record<string, unknown> | null | undefined;
1769
+ spec_defaults?: Record<string, unknown> | null | undefined;
1770
+ default_agent_field?: string | null | undefined;
1771
+ description_fallback_field?: string | null | undefined;
1772
+ }, {
1773
+ origin: string;
1774
+ alias: string;
1775
+ storage: Record<string, unknown>;
1776
+ target_api_version: string;
1777
+ target_kind: string;
1778
+ default_agent?: string | null | undefined;
1779
+ is_root?: boolean | undefined;
1780
+ flatten_in_context?: boolean | undefined;
1781
+ plane?: "composition" | "record" | undefined;
1782
+ describe?: string | Record<string, unknown> | null | undefined;
1783
+ summary?: Record<string, unknown> | string[] | null | undefined;
1784
+ schema?: Record<string, unknown> | undefined;
1785
+ docs?: string | undefined;
1786
+ prompt_target?: boolean | undefined;
1787
+ dep_filters?: Record<string, string> | null | undefined;
1788
+ graph_style?: Record<string, string> | null | undefined;
1789
+ ascii_icon?: string | null | undefined;
1790
+ display_label?: string | null | undefined;
1791
+ tenant_scope?: "tenanted" | "global" | undefined;
1792
+ embed?: string[] | null | undefined;
1793
+ is_runtime_artifact?: boolean | undefined;
1794
+ prompt_target_priority?: number | undefined;
1795
+ scope_inheritable?: boolean | undefined;
1796
+ is_overlayable?: boolean | undefined;
1797
+ volatile_spec_fields?: string[] | null | undefined;
1798
+ ui?: Record<string, unknown> | null | undefined;
1799
+ ui_schema?: Record<string, unknown> | null | undefined;
1800
+ spec_defaults?: Record<string, unknown> | null | undefined;
1801
+ default_agent_field?: string | null | undefined;
1802
+ description_fallback_field?: string | null | undefined;
1803
+ }>;
1804
+ export declare const KindDefinitionSchema: z.ZodObject<{
1805
+ apiVersion: z.ZodLiteral<"github.com/ruinosus/dna/core/v1">;
1806
+ kind: z.ZodLiteral<"KindDefinition">;
1807
+ metadata: z.ZodObject<{
1808
+ name: z.ZodString;
1809
+ description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1810
+ version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1811
+ icon: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1812
+ group: z.ZodDefault<z.ZodOptional<z.ZodString>>;
1813
+ labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
1814
+ }, "strip", z.ZodTypeAny, {
1815
+ name: string;
1816
+ description: string;
1817
+ version: string;
1818
+ icon: string;
1819
+ group: string;
1820
+ labels: Record<string, string>;
1821
+ }, {
1822
+ name: string;
1823
+ description?: string | undefined;
1824
+ version?: string | undefined;
1825
+ icon?: string | undefined;
1826
+ group?: string | undefined;
1827
+ labels?: Record<string, string> | undefined;
1828
+ }>;
1829
+ spec: z.ZodEffects<z.ZodObject<{
1830
+ target_api_version: z.ZodString;
1831
+ target_kind: z.ZodString;
1832
+ alias: z.ZodString;
1833
+ origin: z.ZodString;
1834
+ is_root: z.ZodDefault<z.ZodBoolean>;
1835
+ prompt_target: z.ZodDefault<z.ZodBoolean>;
1836
+ flatten_in_context: z.ZodDefault<z.ZodBoolean>;
1837
+ schema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1838
+ docs: z.ZodOptional<z.ZodString>;
1839
+ storage: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1840
+ dep_filters: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1841
+ default_agent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1842
+ graph_style: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1843
+ ascii_icon: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1844
+ display_label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1845
+ plane: z.ZodDefault<z.ZodEnum<["composition", "record"]>>;
1846
+ tenant_scope: z.ZodOptional<z.ZodEnum<["tenanted", "global"]>>;
1847
+ summary: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodString, "many">]>>>;
1848
+ embed: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1849
+ is_runtime_artifact: z.ZodDefault<z.ZodBoolean>;
1850
+ prompt_target_priority: z.ZodDefault<z.ZodNumber>;
1851
+ scope_inheritable: z.ZodDefault<z.ZodBoolean>;
1852
+ is_overlayable: z.ZodDefault<z.ZodBoolean>;
1853
+ volatile_spec_fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
1854
+ ui: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>>>;
1855
+ describe: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
1856
+ ui_schema: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1857
+ spec_defaults: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1858
+ default_agent_field: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1859
+ description_fallback_field: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1860
+ }, "strip", z.ZodTypeAny, {
1861
+ origin: string;
1862
+ is_root: boolean;
1863
+ flatten_in_context: boolean;
1864
+ alias: string;
1865
+ storage: Record<string, unknown>;
1866
+ plane: "composition" | "record";
1867
+ schema: Record<string, unknown>;
1868
+ target_api_version: string;
1869
+ target_kind: string;
1870
+ prompt_target: boolean;
1871
+ is_runtime_artifact: boolean;
1872
+ prompt_target_priority: number;
1873
+ scope_inheritable: boolean;
1874
+ is_overlayable: boolean;
1875
+ default_agent?: string | null | undefined;
1876
+ describe?: string | Record<string, unknown> | null | undefined;
1877
+ summary?: Record<string, unknown> | string[] | null | undefined;
1878
+ docs?: string | undefined;
1879
+ dep_filters?: Record<string, string> | null | undefined;
1880
+ graph_style?: Record<string, string> | null | undefined;
1881
+ ascii_icon?: string | null | undefined;
1882
+ display_label?: string | null | undefined;
1883
+ tenant_scope?: "tenanted" | "global" | undefined;
1884
+ embed?: string[] | null | undefined;
1885
+ volatile_spec_fields?: string[] | null | undefined;
1886
+ ui?: Record<string, unknown> | null | undefined;
1887
+ ui_schema?: Record<string, unknown> | null | undefined;
1888
+ spec_defaults?: Record<string, unknown> | null | undefined;
1889
+ default_agent_field?: string | null | undefined;
1890
+ description_fallback_field?: string | null | undefined;
1891
+ }, {
1892
+ origin: string;
1893
+ alias: string;
1894
+ storage: Record<string, unknown>;
1895
+ target_api_version: string;
1896
+ target_kind: string;
1897
+ default_agent?: string | null | undefined;
1898
+ is_root?: boolean | undefined;
1899
+ flatten_in_context?: boolean | undefined;
1900
+ plane?: "composition" | "record" | undefined;
1901
+ describe?: string | Record<string, unknown> | null | undefined;
1902
+ summary?: Record<string, unknown> | string[] | null | undefined;
1903
+ schema?: Record<string, unknown> | undefined;
1904
+ docs?: string | undefined;
1905
+ prompt_target?: boolean | undefined;
1906
+ dep_filters?: Record<string, string> | null | undefined;
1907
+ graph_style?: Record<string, string> | null | undefined;
1908
+ ascii_icon?: string | null | undefined;
1909
+ display_label?: string | null | undefined;
1910
+ tenant_scope?: "tenanted" | "global" | undefined;
1911
+ embed?: string[] | null | undefined;
1912
+ is_runtime_artifact?: boolean | undefined;
1913
+ prompt_target_priority?: number | undefined;
1914
+ scope_inheritable?: boolean | undefined;
1915
+ is_overlayable?: boolean | undefined;
1916
+ volatile_spec_fields?: string[] | null | undefined;
1917
+ ui?: Record<string, unknown> | null | undefined;
1918
+ ui_schema?: Record<string, unknown> | null | undefined;
1919
+ spec_defaults?: Record<string, unknown> | null | undefined;
1920
+ default_agent_field?: string | null | undefined;
1921
+ description_fallback_field?: string | null | undefined;
1922
+ }>, {
1923
+ tenant_scope: "tenanted" | "global";
1924
+ tenant_scope_declared: boolean;
1925
+ summary: Record<string, unknown> | null;
1926
+ origin: string;
1927
+ is_root: boolean;
1928
+ flatten_in_context: boolean;
1929
+ alias: string;
1930
+ storage: Record<string, unknown>;
1931
+ plane: "composition" | "record";
1932
+ schema: Record<string, unknown>;
1933
+ target_api_version: string;
1934
+ target_kind: string;
1935
+ prompt_target: boolean;
1936
+ is_runtime_artifact: boolean;
1937
+ prompt_target_priority: number;
1938
+ scope_inheritable: boolean;
1939
+ is_overlayable: boolean;
1940
+ default_agent?: string | null | undefined;
1941
+ describe?: string | Record<string, unknown> | null | undefined;
1942
+ docs?: string | undefined;
1943
+ dep_filters?: Record<string, string> | null | undefined;
1944
+ graph_style?: Record<string, string> | null | undefined;
1945
+ ascii_icon?: string | null | undefined;
1946
+ display_label?: string | null | undefined;
1947
+ embed?: string[] | null | undefined;
1948
+ volatile_spec_fields?: string[] | null | undefined;
1949
+ ui?: Record<string, unknown> | null | undefined;
1950
+ ui_schema?: Record<string, unknown> | null | undefined;
1951
+ spec_defaults?: Record<string, unknown> | null | undefined;
1952
+ default_agent_field?: string | null | undefined;
1953
+ description_fallback_field?: string | null | undefined;
1954
+ }, {
1955
+ origin: string;
1956
+ alias: string;
1957
+ storage: Record<string, unknown>;
1958
+ target_api_version: string;
1959
+ target_kind: string;
1960
+ default_agent?: string | null | undefined;
1961
+ is_root?: boolean | undefined;
1962
+ flatten_in_context?: boolean | undefined;
1963
+ plane?: "composition" | "record" | undefined;
1964
+ describe?: string | Record<string, unknown> | null | undefined;
1965
+ summary?: Record<string, unknown> | string[] | null | undefined;
1966
+ schema?: Record<string, unknown> | undefined;
1967
+ docs?: string | undefined;
1968
+ prompt_target?: boolean | undefined;
1969
+ dep_filters?: Record<string, string> | null | undefined;
1970
+ graph_style?: Record<string, string> | null | undefined;
1971
+ ascii_icon?: string | null | undefined;
1972
+ display_label?: string | null | undefined;
1973
+ tenant_scope?: "tenanted" | "global" | undefined;
1974
+ embed?: string[] | null | undefined;
1975
+ is_runtime_artifact?: boolean | undefined;
1976
+ prompt_target_priority?: number | undefined;
1977
+ scope_inheritable?: boolean | undefined;
1978
+ is_overlayable?: boolean | undefined;
1979
+ volatile_spec_fields?: string[] | null | undefined;
1980
+ ui?: Record<string, unknown> | null | undefined;
1981
+ ui_schema?: Record<string, unknown> | null | undefined;
1982
+ spec_defaults?: Record<string, unknown> | null | undefined;
1983
+ default_agent_field?: string | null | undefined;
1984
+ description_fallback_field?: string | null | undefined;
1985
+ }>;
1986
+ }, "strip", z.ZodTypeAny, {
1987
+ metadata: {
1988
+ name: string;
1989
+ description: string;
1990
+ version: string;
1991
+ icon: string;
1992
+ group: string;
1993
+ labels: Record<string, string>;
1994
+ };
1995
+ spec: {
1996
+ tenant_scope: "tenanted" | "global";
1997
+ tenant_scope_declared: boolean;
1998
+ summary: Record<string, unknown> | null;
1999
+ origin: string;
2000
+ is_root: boolean;
2001
+ flatten_in_context: boolean;
2002
+ alias: string;
2003
+ storage: Record<string, unknown>;
2004
+ plane: "composition" | "record";
2005
+ schema: Record<string, unknown>;
2006
+ target_api_version: string;
2007
+ target_kind: string;
2008
+ prompt_target: boolean;
2009
+ is_runtime_artifact: boolean;
2010
+ prompt_target_priority: number;
2011
+ scope_inheritable: boolean;
2012
+ is_overlayable: boolean;
2013
+ default_agent?: string | null | undefined;
2014
+ describe?: string | Record<string, unknown> | null | undefined;
2015
+ docs?: string | undefined;
2016
+ dep_filters?: Record<string, string> | null | undefined;
2017
+ graph_style?: Record<string, string> | null | undefined;
2018
+ ascii_icon?: string | null | undefined;
2019
+ display_label?: string | null | undefined;
2020
+ embed?: string[] | null | undefined;
2021
+ volatile_spec_fields?: string[] | null | undefined;
2022
+ ui?: Record<string, unknown> | null | undefined;
2023
+ ui_schema?: Record<string, unknown> | null | undefined;
2024
+ spec_defaults?: Record<string, unknown> | null | undefined;
2025
+ default_agent_field?: string | null | undefined;
2026
+ description_fallback_field?: string | null | undefined;
2027
+ };
2028
+ apiVersion: "github.com/ruinosus/dna/core/v1";
2029
+ kind: "KindDefinition";
2030
+ }, {
2031
+ metadata: {
2032
+ name: string;
2033
+ description?: string | undefined;
2034
+ version?: string | undefined;
2035
+ icon?: string | undefined;
2036
+ group?: string | undefined;
2037
+ labels?: Record<string, string> | undefined;
2038
+ };
2039
+ spec: {
2040
+ origin: string;
2041
+ alias: string;
2042
+ storage: Record<string, unknown>;
2043
+ target_api_version: string;
2044
+ target_kind: string;
2045
+ default_agent?: string | null | undefined;
2046
+ is_root?: boolean | undefined;
2047
+ flatten_in_context?: boolean | undefined;
2048
+ plane?: "composition" | "record" | undefined;
2049
+ describe?: string | Record<string, unknown> | null | undefined;
2050
+ summary?: Record<string, unknown> | string[] | null | undefined;
2051
+ schema?: Record<string, unknown> | undefined;
2052
+ docs?: string | undefined;
2053
+ prompt_target?: boolean | undefined;
2054
+ dep_filters?: Record<string, string> | null | undefined;
2055
+ graph_style?: Record<string, string> | null | undefined;
2056
+ ascii_icon?: string | null | undefined;
2057
+ display_label?: string | null | undefined;
2058
+ tenant_scope?: "tenanted" | "global" | undefined;
2059
+ embed?: string[] | null | undefined;
2060
+ is_runtime_artifact?: boolean | undefined;
2061
+ prompt_target_priority?: number | undefined;
2062
+ scope_inheritable?: boolean | undefined;
2063
+ is_overlayable?: boolean | undefined;
2064
+ volatile_spec_fields?: string[] | null | undefined;
2065
+ ui?: Record<string, unknown> | null | undefined;
2066
+ ui_schema?: Record<string, unknown> | null | undefined;
2067
+ spec_defaults?: Record<string, unknown> | null | undefined;
2068
+ default_agent_field?: string | null | undefined;
2069
+ description_fallback_field?: string | null | undefined;
2070
+ };
2071
+ apiVersion: "github.com/ruinosus/dna/core/v1";
2072
+ kind: "KindDefinition";
2073
+ }>;
2074
+ export type TypedKindDefinition = z.output<typeof KindDefinitionSchema>;
2075
+ export declare const HookActionEnum: z.ZodEnum<["inject_fields", "log", "script"]>;
2076
+ export declare const HookSpecSchema: z.ZodObject<{
2077
+ target: z.ZodDefault<z.ZodString>;
2078
+ type: z.ZodDefault<z.ZodEnum<["middleware", "event"]>>;
2079
+ action: z.ZodDefault<z.ZodEnum<["inject_fields", "log", "script"]>>;
2080
+ fields: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2081
+ body: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2082
+ }, "strip", z.ZodTypeAny, {
2083
+ type: "middleware" | "event";
2084
+ target: string;
2085
+ action: "inject_fields" | "script" | "log";
2086
+ fields: Record<string, unknown>;
2087
+ body: string;
2088
+ }, {
2089
+ type?: "middleware" | "event" | undefined;
2090
+ target?: string | undefined;
2091
+ action?: "inject_fields" | "script" | "log" | undefined;
2092
+ fields?: Record<string, unknown> | undefined;
2093
+ body?: string | undefined;
2094
+ }>;
2095
+ export declare const HookSchema: z.ZodObject<{
2096
+ apiVersion: z.ZodLiteral<"github.com/ruinosus/dna/v1">;
2097
+ kind: z.ZodLiteral<"Hook">;
2098
+ metadata: z.ZodObject<{
2099
+ name: z.ZodString;
2100
+ description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2101
+ version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2102
+ icon: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2103
+ group: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2104
+ labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
2105
+ }, "strip", z.ZodTypeAny, {
2106
+ name: string;
2107
+ description: string;
2108
+ version: string;
2109
+ icon: string;
2110
+ group: string;
2111
+ labels: Record<string, string>;
2112
+ }, {
2113
+ name: string;
2114
+ description?: string | undefined;
2115
+ version?: string | undefined;
2116
+ icon?: string | undefined;
2117
+ group?: string | undefined;
2118
+ labels?: Record<string, string> | undefined;
2119
+ }>;
2120
+ spec: z.ZodDefault<z.ZodObject<{
2121
+ target: z.ZodDefault<z.ZodString>;
2122
+ type: z.ZodDefault<z.ZodEnum<["middleware", "event"]>>;
2123
+ action: z.ZodDefault<z.ZodEnum<["inject_fields", "log", "script"]>>;
2124
+ fields: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2125
+ body: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2126
+ }, "strip", z.ZodTypeAny, {
2127
+ type: "middleware" | "event";
2128
+ target: string;
2129
+ action: "inject_fields" | "script" | "log";
2130
+ fields: Record<string, unknown>;
2131
+ body: string;
2132
+ }, {
2133
+ type?: "middleware" | "event" | undefined;
2134
+ target?: string | undefined;
2135
+ action?: "inject_fields" | "script" | "log" | undefined;
2136
+ fields?: Record<string, unknown> | undefined;
2137
+ body?: string | undefined;
2138
+ }>>;
2139
+ }, "strip", z.ZodTypeAny, {
2140
+ metadata: {
2141
+ name: string;
2142
+ description: string;
2143
+ version: string;
2144
+ icon: string;
2145
+ group: string;
2146
+ labels: Record<string, string>;
2147
+ };
2148
+ spec: {
2149
+ type: "middleware" | "event";
2150
+ target: string;
2151
+ action: "inject_fields" | "script" | "log";
2152
+ fields: Record<string, unknown>;
2153
+ body: string;
2154
+ };
2155
+ apiVersion: "github.com/ruinosus/dna/v1";
2156
+ kind: "Hook";
2157
+ }, {
2158
+ metadata: {
2159
+ name: string;
2160
+ description?: string | undefined;
2161
+ version?: string | undefined;
2162
+ icon?: string | undefined;
2163
+ group?: string | undefined;
2164
+ labels?: Record<string, string> | undefined;
2165
+ };
2166
+ apiVersion: "github.com/ruinosus/dna/v1";
2167
+ kind: "Hook";
2168
+ spec?: {
2169
+ type?: "middleware" | "event" | undefined;
2170
+ target?: string | undefined;
2171
+ action?: "inject_fields" | "script" | "log" | undefined;
2172
+ fields?: Record<string, unknown> | undefined;
2173
+ body?: string | undefined;
2174
+ } | undefined;
2175
+ }>;
2176
+ export type TypedHook = z.output<typeof HookSchema>;
2177
+ export declare const CommunityArtifactKindEnum: z.ZodEnum<["Skill", "Soul", "Agent", "Hook", "SafetyPolicy", "Recognizer", "Guardrail"]>;
2178
+ export declare const TextBlockSpecSchema: z.ZodObject<{
2179
+ title: z.ZodDefault<z.ZodString>;
2180
+ body: z.ZodDefault<z.ZodString>;
2181
+ area: z.ZodDefault<z.ZodString>;
2182
+ owner: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2183
+ generated_by: z.ZodDefault<z.ZodString>;
2184
+ affect: z.ZodDefault<z.ZodString>;
2185
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2186
+ created_at: z.ZodDefault<z.ZodString>;
2187
+ }, "strip", z.ZodTypeAny, {
2188
+ title: string;
2189
+ body: string;
2190
+ created_at: string;
2191
+ owner: string | null;
2192
+ tags: string[];
2193
+ area: string;
2194
+ generated_by: string;
2195
+ affect: string;
2196
+ }, {
2197
+ title?: string | undefined;
2198
+ body?: string | undefined;
2199
+ created_at?: string | undefined;
2200
+ owner?: string | null | undefined;
2201
+ tags?: string[] | undefined;
2202
+ area?: string | undefined;
2203
+ generated_by?: string | undefined;
2204
+ affect?: string | undefined;
2205
+ }>;
2206
+ export declare const TextBlockSchema: z.ZodObject<{
2207
+ apiVersion: z.ZodLiteral<"github.com/ruinosus/dna/v1">;
2208
+ kind: z.ZodLiteral<"TextBlock">;
2209
+ metadata: z.ZodObject<{
2210
+ name: z.ZodString;
2211
+ description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2212
+ version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2213
+ icon: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2214
+ group: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2215
+ labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
2216
+ }, "strip", z.ZodTypeAny, {
2217
+ name: string;
2218
+ description: string;
2219
+ version: string;
2220
+ icon: string;
2221
+ group: string;
2222
+ labels: Record<string, string>;
2223
+ }, {
2224
+ name: string;
2225
+ description?: string | undefined;
2226
+ version?: string | undefined;
2227
+ icon?: string | undefined;
2228
+ group?: string | undefined;
2229
+ labels?: Record<string, string> | undefined;
2230
+ }>;
2231
+ spec: z.ZodDefault<z.ZodObject<{
2232
+ title: z.ZodDefault<z.ZodString>;
2233
+ body: z.ZodDefault<z.ZodString>;
2234
+ area: z.ZodDefault<z.ZodString>;
2235
+ owner: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2236
+ generated_by: z.ZodDefault<z.ZodString>;
2237
+ affect: z.ZodDefault<z.ZodString>;
2238
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2239
+ created_at: z.ZodDefault<z.ZodString>;
2240
+ }, "strip", z.ZodTypeAny, {
2241
+ title: string;
2242
+ body: string;
2243
+ created_at: string;
2244
+ owner: string | null;
2245
+ tags: string[];
2246
+ area: string;
2247
+ generated_by: string;
2248
+ affect: string;
2249
+ }, {
2250
+ title?: string | undefined;
2251
+ body?: string | undefined;
2252
+ created_at?: string | undefined;
2253
+ owner?: string | null | undefined;
2254
+ tags?: string[] | undefined;
2255
+ area?: string | undefined;
2256
+ generated_by?: string | undefined;
2257
+ affect?: string | undefined;
2258
+ }>>;
2259
+ }, "strip", z.ZodTypeAny, {
2260
+ metadata: {
2261
+ name: string;
2262
+ description: string;
2263
+ version: string;
2264
+ icon: string;
2265
+ group: string;
2266
+ labels: Record<string, string>;
2267
+ };
2268
+ spec: {
2269
+ title: string;
2270
+ body: string;
2271
+ created_at: string;
2272
+ owner: string | null;
2273
+ tags: string[];
2274
+ area: string;
2275
+ generated_by: string;
2276
+ affect: string;
2277
+ };
2278
+ apiVersion: "github.com/ruinosus/dna/v1";
2279
+ kind: "TextBlock";
2280
+ }, {
2281
+ metadata: {
2282
+ name: string;
2283
+ description?: string | undefined;
2284
+ version?: string | undefined;
2285
+ icon?: string | undefined;
2286
+ group?: string | undefined;
2287
+ labels?: Record<string, string> | undefined;
2288
+ };
2289
+ apiVersion: "github.com/ruinosus/dna/v1";
2290
+ kind: "TextBlock";
2291
+ spec?: {
2292
+ title?: string | undefined;
2293
+ body?: string | undefined;
2294
+ created_at?: string | undefined;
2295
+ owner?: string | null | undefined;
2296
+ tags?: string[] | undefined;
2297
+ area?: string | undefined;
2298
+ generated_by?: string | undefined;
2299
+ affect?: string | undefined;
2300
+ } | undefined;
2301
+ }>;
2302
+ export type TypedTextBlock = z.output<typeof TextBlockSchema>;
2303
+ export declare const HtmlBlockSpecSchema: z.ZodObject<{
2304
+ title: z.ZodDefault<z.ZodString>;
2305
+ body: z.ZodDefault<z.ZodString>;
2306
+ area: z.ZodDefault<z.ZodString>;
2307
+ owner: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2308
+ generated_by: z.ZodDefault<z.ZodString>;
2309
+ affect: z.ZodDefault<z.ZodString>;
2310
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2311
+ created_at: z.ZodDefault<z.ZodString>;
2312
+ sandbox_features: z.ZodDefault<z.ZodString>;
2313
+ estimated_height_px: z.ZodDefault<z.ZodNumber>;
2314
+ }, "strip", z.ZodTypeAny, {
2315
+ title: string;
2316
+ body: string;
2317
+ created_at: string;
2318
+ owner: string | null;
2319
+ tags: string[];
2320
+ area: string;
2321
+ generated_by: string;
2322
+ affect: string;
2323
+ sandbox_features: string;
2324
+ estimated_height_px: number;
2325
+ }, {
2326
+ title?: string | undefined;
2327
+ body?: string | undefined;
2328
+ created_at?: string | undefined;
2329
+ owner?: string | null | undefined;
2330
+ tags?: string[] | undefined;
2331
+ area?: string | undefined;
2332
+ generated_by?: string | undefined;
2333
+ affect?: string | undefined;
2334
+ sandbox_features?: string | undefined;
2335
+ estimated_height_px?: number | undefined;
2336
+ }>;
2337
+ export declare const HtmlBlockSchema: z.ZodObject<{
2338
+ apiVersion: z.ZodLiteral<"github.com/ruinosus/dna/v1">;
2339
+ kind: z.ZodLiteral<"HtmlBlock">;
2340
+ metadata: z.ZodObject<{
2341
+ name: z.ZodString;
2342
+ description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2343
+ version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2344
+ icon: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2345
+ group: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2346
+ labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
2347
+ }, "strip", z.ZodTypeAny, {
2348
+ name: string;
2349
+ description: string;
2350
+ version: string;
2351
+ icon: string;
2352
+ group: string;
2353
+ labels: Record<string, string>;
2354
+ }, {
2355
+ name: string;
2356
+ description?: string | undefined;
2357
+ version?: string | undefined;
2358
+ icon?: string | undefined;
2359
+ group?: string | undefined;
2360
+ labels?: Record<string, string> | undefined;
2361
+ }>;
2362
+ spec: z.ZodDefault<z.ZodObject<{
2363
+ title: z.ZodDefault<z.ZodString>;
2364
+ body: z.ZodDefault<z.ZodString>;
2365
+ area: z.ZodDefault<z.ZodString>;
2366
+ owner: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2367
+ generated_by: z.ZodDefault<z.ZodString>;
2368
+ affect: z.ZodDefault<z.ZodString>;
2369
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2370
+ created_at: z.ZodDefault<z.ZodString>;
2371
+ sandbox_features: z.ZodDefault<z.ZodString>;
2372
+ estimated_height_px: z.ZodDefault<z.ZodNumber>;
2373
+ }, "strip", z.ZodTypeAny, {
2374
+ title: string;
2375
+ body: string;
2376
+ created_at: string;
2377
+ owner: string | null;
2378
+ tags: string[];
2379
+ area: string;
2380
+ generated_by: string;
2381
+ affect: string;
2382
+ sandbox_features: string;
2383
+ estimated_height_px: number;
2384
+ }, {
2385
+ title?: string | undefined;
2386
+ body?: string | undefined;
2387
+ created_at?: string | undefined;
2388
+ owner?: string | null | undefined;
2389
+ tags?: string[] | undefined;
2390
+ area?: string | undefined;
2391
+ generated_by?: string | undefined;
2392
+ affect?: string | undefined;
2393
+ sandbox_features?: string | undefined;
2394
+ estimated_height_px?: number | undefined;
2395
+ }>>;
2396
+ }, "strip", z.ZodTypeAny, {
2397
+ metadata: {
2398
+ name: string;
2399
+ description: string;
2400
+ version: string;
2401
+ icon: string;
2402
+ group: string;
2403
+ labels: Record<string, string>;
2404
+ };
2405
+ spec: {
2406
+ title: string;
2407
+ body: string;
2408
+ created_at: string;
2409
+ owner: string | null;
2410
+ tags: string[];
2411
+ area: string;
2412
+ generated_by: string;
2413
+ affect: string;
2414
+ sandbox_features: string;
2415
+ estimated_height_px: number;
2416
+ };
2417
+ apiVersion: "github.com/ruinosus/dna/v1";
2418
+ kind: "HtmlBlock";
2419
+ }, {
2420
+ metadata: {
2421
+ name: string;
2422
+ description?: string | undefined;
2423
+ version?: string | undefined;
2424
+ icon?: string | undefined;
2425
+ group?: string | undefined;
2426
+ labels?: Record<string, string> | undefined;
2427
+ };
2428
+ apiVersion: "github.com/ruinosus/dna/v1";
2429
+ kind: "HtmlBlock";
2430
+ spec?: {
2431
+ title?: string | undefined;
2432
+ body?: string | undefined;
2433
+ created_at?: string | undefined;
2434
+ owner?: string | null | undefined;
2435
+ tags?: string[] | undefined;
2436
+ area?: string | undefined;
2437
+ generated_by?: string | undefined;
2438
+ affect?: string | undefined;
2439
+ sandbox_features?: string | undefined;
2440
+ estimated_height_px?: number | undefined;
2441
+ } | undefined;
2442
+ }>;
2443
+ export type TypedHtmlBlock = z.output<typeof HtmlBlockSchema>;
2444
+ export declare const HtmlTemplateSpecSchema: z.ZodObject<{
2445
+ title: z.ZodDefault<z.ZodString>;
2446
+ description: z.ZodDefault<z.ZodString>;
2447
+ body: z.ZodDefault<z.ZodString>;
2448
+ version: z.ZodDefault<z.ZodString>;
2449
+ params: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2450
+ example: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2451
+ theme: z.ZodDefault<z.ZodString>;
2452
+ area: z.ZodDefault<z.ZodString>;
2453
+ owner: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2454
+ generated_by: z.ZodDefault<z.ZodString>;
2455
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2456
+ created_at: z.ZodDefault<z.ZodString>;
2457
+ }, "strip", z.ZodTypeAny, {
2458
+ description: string;
2459
+ title: string;
2460
+ body: string;
2461
+ version: string;
2462
+ created_at: string;
2463
+ params: Record<string, unknown>;
2464
+ owner: string | null;
2465
+ tags: string[];
2466
+ area: string;
2467
+ generated_by: string;
2468
+ example: Record<string, unknown>;
2469
+ theme: string;
2470
+ }, {
2471
+ description?: string | undefined;
2472
+ title?: string | undefined;
2473
+ body?: string | undefined;
2474
+ version?: string | undefined;
2475
+ created_at?: string | undefined;
2476
+ params?: Record<string, unknown> | undefined;
2477
+ owner?: string | null | undefined;
2478
+ tags?: string[] | undefined;
2479
+ area?: string | undefined;
2480
+ generated_by?: string | undefined;
2481
+ example?: Record<string, unknown> | undefined;
2482
+ theme?: string | undefined;
2483
+ }>;
2484
+ export declare const HtmlTemplateSchema: z.ZodObject<{
2485
+ apiVersion: z.ZodLiteral<"github.com/ruinosus/dna/v1">;
2486
+ kind: z.ZodLiteral<"HtmlTemplate">;
2487
+ metadata: z.ZodObject<{
2488
+ name: z.ZodString;
2489
+ description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2490
+ version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2491
+ icon: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2492
+ group: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2493
+ labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
2494
+ }, "strip", z.ZodTypeAny, {
2495
+ name: string;
2496
+ description: string;
2497
+ version: string;
2498
+ icon: string;
2499
+ group: string;
2500
+ labels: Record<string, string>;
2501
+ }, {
2502
+ name: string;
2503
+ description?: string | undefined;
2504
+ version?: string | undefined;
2505
+ icon?: string | undefined;
2506
+ group?: string | undefined;
2507
+ labels?: Record<string, string> | undefined;
2508
+ }>;
2509
+ spec: z.ZodDefault<z.ZodObject<{
2510
+ title: z.ZodDefault<z.ZodString>;
2511
+ description: z.ZodDefault<z.ZodString>;
2512
+ body: z.ZodDefault<z.ZodString>;
2513
+ version: z.ZodDefault<z.ZodString>;
2514
+ params: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2515
+ example: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2516
+ theme: z.ZodDefault<z.ZodString>;
2517
+ area: z.ZodDefault<z.ZodString>;
2518
+ owner: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2519
+ generated_by: z.ZodDefault<z.ZodString>;
2520
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2521
+ created_at: z.ZodDefault<z.ZodString>;
2522
+ }, "strip", z.ZodTypeAny, {
2523
+ description: string;
2524
+ title: string;
2525
+ body: string;
2526
+ version: string;
2527
+ created_at: string;
2528
+ params: Record<string, unknown>;
2529
+ owner: string | null;
2530
+ tags: string[];
2531
+ area: string;
2532
+ generated_by: string;
2533
+ example: Record<string, unknown>;
2534
+ theme: string;
2535
+ }, {
2536
+ description?: string | undefined;
2537
+ title?: string | undefined;
2538
+ body?: string | undefined;
2539
+ version?: string | undefined;
2540
+ created_at?: string | undefined;
2541
+ params?: Record<string, unknown> | undefined;
2542
+ owner?: string | null | undefined;
2543
+ tags?: string[] | undefined;
2544
+ area?: string | undefined;
2545
+ generated_by?: string | undefined;
2546
+ example?: Record<string, unknown> | undefined;
2547
+ theme?: string | undefined;
2548
+ }>>;
2549
+ }, "strip", z.ZodTypeAny, {
2550
+ metadata: {
2551
+ name: string;
2552
+ description: string;
2553
+ version: string;
2554
+ icon: string;
2555
+ group: string;
2556
+ labels: Record<string, string>;
2557
+ };
2558
+ spec: {
2559
+ description: string;
2560
+ title: string;
2561
+ body: string;
2562
+ version: string;
2563
+ created_at: string;
2564
+ params: Record<string, unknown>;
2565
+ owner: string | null;
2566
+ tags: string[];
2567
+ area: string;
2568
+ generated_by: string;
2569
+ example: Record<string, unknown>;
2570
+ theme: string;
2571
+ };
2572
+ apiVersion: "github.com/ruinosus/dna/v1";
2573
+ kind: "HtmlTemplate";
2574
+ }, {
2575
+ metadata: {
2576
+ name: string;
2577
+ description?: string | undefined;
2578
+ version?: string | undefined;
2579
+ icon?: string | undefined;
2580
+ group?: string | undefined;
2581
+ labels?: Record<string, string> | undefined;
2582
+ };
2583
+ apiVersion: "github.com/ruinosus/dna/v1";
2584
+ kind: "HtmlTemplate";
2585
+ spec?: {
2586
+ description?: string | undefined;
2587
+ title?: string | undefined;
2588
+ body?: string | undefined;
2589
+ version?: string | undefined;
2590
+ created_at?: string | undefined;
2591
+ params?: Record<string, unknown> | undefined;
2592
+ owner?: string | null | undefined;
2593
+ tags?: string[] | undefined;
2594
+ area?: string | undefined;
2595
+ generated_by?: string | undefined;
2596
+ example?: Record<string, unknown> | undefined;
2597
+ theme?: string | undefined;
2598
+ } | undefined;
2599
+ }>;
2600
+ export type TypedHtmlTemplate = z.output<typeof HtmlTemplateSchema>;
2601
+ export declare const SafetyRuleSchema: z.ZodObject<{
2602
+ type: z.ZodEnum<["pii", "content_safety", "topic_restriction", "prompt_injection", "banned_words", "custom_regex"]>;
2603
+ tier: z.ZodOptional<z.ZodEnum<["regex", "ml", "api", "llm_judge"]>>;
2604
+ entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2605
+ region: z.ZodOptional<z.ZodString>;
2606
+ categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2607
+ threshold: z.ZodOptional<z.ZodNumber>;
2608
+ allowed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2609
+ denied: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2610
+ patterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2611
+ words: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2612
+ }, "strip", z.ZodTypeAny, {
2613
+ type: "pii" | "prompt_injection" | "banned_words" | "custom_regex" | "content_safety" | "topic_restriction";
2614
+ tier?: "regex" | "ml" | "api" | "llm_judge" | undefined;
2615
+ entities?: string[] | undefined;
2616
+ words?: string[] | undefined;
2617
+ patterns?: string[] | undefined;
2618
+ region?: string | undefined;
2619
+ categories?: string[] | undefined;
2620
+ threshold?: number | undefined;
2621
+ allowed?: string[] | undefined;
2622
+ denied?: string[] | undefined;
2623
+ }, {
2624
+ type: "pii" | "prompt_injection" | "banned_words" | "custom_regex" | "content_safety" | "topic_restriction";
2625
+ tier?: "regex" | "ml" | "api" | "llm_judge" | undefined;
2626
+ entities?: string[] | undefined;
2627
+ words?: string[] | undefined;
2628
+ patterns?: string[] | undefined;
2629
+ region?: string | undefined;
2630
+ categories?: string[] | undefined;
2631
+ threshold?: number | undefined;
2632
+ allowed?: string[] | undefined;
2633
+ denied?: string[] | undefined;
2634
+ }>;
2635
+ export declare const SafetyPolicySpecSchema: z.ZodObject<{
2636
+ scope: z.ZodDefault<z.ZodEnum<["input", "output", "both"]>>;
2637
+ action: z.ZodDefault<z.ZodEnum<["mask", "block", "log"]>>;
2638
+ severity: z.ZodDefault<z.ZodEnum<["error", "warn"]>>;
2639
+ rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
2640
+ type: z.ZodEnum<["pii", "content_safety", "topic_restriction", "prompt_injection", "banned_words", "custom_regex"]>;
2641
+ tier: z.ZodOptional<z.ZodEnum<["regex", "ml", "api", "llm_judge"]>>;
2642
+ entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2643
+ region: z.ZodOptional<z.ZodString>;
2644
+ categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2645
+ threshold: z.ZodOptional<z.ZodNumber>;
2646
+ allowed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2647
+ denied: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2648
+ patterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2649
+ words: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2650
+ }, "strip", z.ZodTypeAny, {
2651
+ type: "pii" | "prompt_injection" | "banned_words" | "custom_regex" | "content_safety" | "topic_restriction";
2652
+ tier?: "regex" | "ml" | "api" | "llm_judge" | undefined;
2653
+ entities?: string[] | undefined;
2654
+ words?: string[] | undefined;
2655
+ patterns?: string[] | undefined;
2656
+ region?: string | undefined;
2657
+ categories?: string[] | undefined;
2658
+ threshold?: number | undefined;
2659
+ allowed?: string[] | undefined;
2660
+ denied?: string[] | undefined;
2661
+ }, {
2662
+ type: "pii" | "prompt_injection" | "banned_words" | "custom_regex" | "content_safety" | "topic_restriction";
2663
+ tier?: "regex" | "ml" | "api" | "llm_judge" | undefined;
2664
+ entities?: string[] | undefined;
2665
+ words?: string[] | undefined;
2666
+ patterns?: string[] | undefined;
2667
+ region?: string | undefined;
2668
+ categories?: string[] | undefined;
2669
+ threshold?: number | undefined;
2670
+ allowed?: string[] | undefined;
2671
+ denied?: string[] | undefined;
2672
+ }>, "many">>;
2673
+ recognizers: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2674
+ engine: z.ZodDefault<z.ZodEnum<["presidio", "ml-privacy-filter"]>>;
2675
+ model: z.ZodDefault<z.ZodString>;
2676
+ backend: z.ZodDefault<z.ZodEnum<["auto", "transformers", "onnxruntime"]>>;
2677
+ threshold: z.ZodDefault<z.ZodNumber>;
2678
+ categories: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2679
+ mask_char: z.ZodDefault<z.ZodString>;
2680
+ budget_ms: z.ZodDefault<z.ZodNumber>;
2681
+ }, "strip", z.ZodTypeAny, {
2682
+ scope: "input" | "both" | "output";
2683
+ severity: "error" | "warn";
2684
+ rules: {
2685
+ type: "pii" | "prompt_injection" | "banned_words" | "custom_regex" | "content_safety" | "topic_restriction";
2686
+ tier?: "regex" | "ml" | "api" | "llm_judge" | undefined;
2687
+ entities?: string[] | undefined;
2688
+ words?: string[] | undefined;
2689
+ patterns?: string[] | undefined;
2690
+ region?: string | undefined;
2691
+ categories?: string[] | undefined;
2692
+ threshold?: number | undefined;
2693
+ allowed?: string[] | undefined;
2694
+ denied?: string[] | undefined;
2695
+ }[];
2696
+ model: string;
2697
+ action: "block" | "mask" | "log";
2698
+ categories: string[] | null;
2699
+ threshold: number;
2700
+ recognizers: string[];
2701
+ engine: "presidio" | "ml-privacy-filter";
2702
+ backend: "auto" | "transformers" | "onnxruntime";
2703
+ mask_char: string;
2704
+ budget_ms: number;
2705
+ }, {
2706
+ scope?: "input" | "both" | "output" | undefined;
2707
+ severity?: "error" | "warn" | undefined;
2708
+ rules?: {
2709
+ type: "pii" | "prompt_injection" | "banned_words" | "custom_regex" | "content_safety" | "topic_restriction";
2710
+ tier?: "regex" | "ml" | "api" | "llm_judge" | undefined;
2711
+ entities?: string[] | undefined;
2712
+ words?: string[] | undefined;
2713
+ patterns?: string[] | undefined;
2714
+ region?: string | undefined;
2715
+ categories?: string[] | undefined;
2716
+ threshold?: number | undefined;
2717
+ allowed?: string[] | undefined;
2718
+ denied?: string[] | undefined;
2719
+ }[] | undefined;
2720
+ model?: string | undefined;
2721
+ action?: "block" | "mask" | "log" | undefined;
2722
+ categories?: string[] | null | undefined;
2723
+ threshold?: number | undefined;
2724
+ recognizers?: string[] | undefined;
2725
+ engine?: "presidio" | "ml-privacy-filter" | undefined;
2726
+ backend?: "auto" | "transformers" | "onnxruntime" | undefined;
2727
+ mask_char?: string | undefined;
2728
+ budget_ms?: number | undefined;
2729
+ }>;
2730
+ export declare const SafetyPolicySchema: z.ZodObject<{
2731
+ apiVersion: z.ZodLiteral<"github.com/ruinosus/dna/v1">;
2732
+ kind: z.ZodLiteral<"SafetyPolicy">;
2733
+ metadata: z.ZodObject<{
2734
+ name: z.ZodString;
2735
+ description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2736
+ version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2737
+ icon: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2738
+ group: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2739
+ labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
2740
+ }, "strip", z.ZodTypeAny, {
2741
+ name: string;
2742
+ description: string;
2743
+ version: string;
2744
+ icon: string;
2745
+ group: string;
2746
+ labels: Record<string, string>;
2747
+ }, {
2748
+ name: string;
2749
+ description?: string | undefined;
2750
+ version?: string | undefined;
2751
+ icon?: string | undefined;
2752
+ group?: string | undefined;
2753
+ labels?: Record<string, string> | undefined;
2754
+ }>;
2755
+ spec: z.ZodDefault<z.ZodObject<{
2756
+ scope: z.ZodDefault<z.ZodEnum<["input", "output", "both"]>>;
2757
+ action: z.ZodDefault<z.ZodEnum<["mask", "block", "log"]>>;
2758
+ severity: z.ZodDefault<z.ZodEnum<["error", "warn"]>>;
2759
+ rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
2760
+ type: z.ZodEnum<["pii", "content_safety", "topic_restriction", "prompt_injection", "banned_words", "custom_regex"]>;
2761
+ tier: z.ZodOptional<z.ZodEnum<["regex", "ml", "api", "llm_judge"]>>;
2762
+ entities: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2763
+ region: z.ZodOptional<z.ZodString>;
2764
+ categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2765
+ threshold: z.ZodOptional<z.ZodNumber>;
2766
+ allowed: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2767
+ denied: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2768
+ patterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2769
+ words: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2770
+ }, "strip", z.ZodTypeAny, {
2771
+ type: "pii" | "prompt_injection" | "banned_words" | "custom_regex" | "content_safety" | "topic_restriction";
2772
+ tier?: "regex" | "ml" | "api" | "llm_judge" | undefined;
2773
+ entities?: string[] | undefined;
2774
+ words?: string[] | undefined;
2775
+ patterns?: string[] | undefined;
2776
+ region?: string | undefined;
2777
+ categories?: string[] | undefined;
2778
+ threshold?: number | undefined;
2779
+ allowed?: string[] | undefined;
2780
+ denied?: string[] | undefined;
2781
+ }, {
2782
+ type: "pii" | "prompt_injection" | "banned_words" | "custom_regex" | "content_safety" | "topic_restriction";
2783
+ tier?: "regex" | "ml" | "api" | "llm_judge" | undefined;
2784
+ entities?: string[] | undefined;
2785
+ words?: string[] | undefined;
2786
+ patterns?: string[] | undefined;
2787
+ region?: string | undefined;
2788
+ categories?: string[] | undefined;
2789
+ threshold?: number | undefined;
2790
+ allowed?: string[] | undefined;
2791
+ denied?: string[] | undefined;
2792
+ }>, "many">>;
2793
+ recognizers: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2794
+ engine: z.ZodDefault<z.ZodEnum<["presidio", "ml-privacy-filter"]>>;
2795
+ model: z.ZodDefault<z.ZodString>;
2796
+ backend: z.ZodDefault<z.ZodEnum<["auto", "transformers", "onnxruntime"]>>;
2797
+ threshold: z.ZodDefault<z.ZodNumber>;
2798
+ categories: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
2799
+ mask_char: z.ZodDefault<z.ZodString>;
2800
+ budget_ms: z.ZodDefault<z.ZodNumber>;
2801
+ }, "strip", z.ZodTypeAny, {
2802
+ scope: "input" | "both" | "output";
2803
+ severity: "error" | "warn";
2804
+ rules: {
2805
+ type: "pii" | "prompt_injection" | "banned_words" | "custom_regex" | "content_safety" | "topic_restriction";
2806
+ tier?: "regex" | "ml" | "api" | "llm_judge" | undefined;
2807
+ entities?: string[] | undefined;
2808
+ words?: string[] | undefined;
2809
+ patterns?: string[] | undefined;
2810
+ region?: string | undefined;
2811
+ categories?: string[] | undefined;
2812
+ threshold?: number | undefined;
2813
+ allowed?: string[] | undefined;
2814
+ denied?: string[] | undefined;
2815
+ }[];
2816
+ model: string;
2817
+ action: "block" | "mask" | "log";
2818
+ categories: string[] | null;
2819
+ threshold: number;
2820
+ recognizers: string[];
2821
+ engine: "presidio" | "ml-privacy-filter";
2822
+ backend: "auto" | "transformers" | "onnxruntime";
2823
+ mask_char: string;
2824
+ budget_ms: number;
2825
+ }, {
2826
+ scope?: "input" | "both" | "output" | undefined;
2827
+ severity?: "error" | "warn" | undefined;
2828
+ rules?: {
2829
+ type: "pii" | "prompt_injection" | "banned_words" | "custom_regex" | "content_safety" | "topic_restriction";
2830
+ tier?: "regex" | "ml" | "api" | "llm_judge" | undefined;
2831
+ entities?: string[] | undefined;
2832
+ words?: string[] | undefined;
2833
+ patterns?: string[] | undefined;
2834
+ region?: string | undefined;
2835
+ categories?: string[] | undefined;
2836
+ threshold?: number | undefined;
2837
+ allowed?: string[] | undefined;
2838
+ denied?: string[] | undefined;
2839
+ }[] | undefined;
2840
+ model?: string | undefined;
2841
+ action?: "block" | "mask" | "log" | undefined;
2842
+ categories?: string[] | null | undefined;
2843
+ threshold?: number | undefined;
2844
+ recognizers?: string[] | undefined;
2845
+ engine?: "presidio" | "ml-privacy-filter" | undefined;
2846
+ backend?: "auto" | "transformers" | "onnxruntime" | undefined;
2847
+ mask_char?: string | undefined;
2848
+ budget_ms?: number | undefined;
2849
+ }>>;
2850
+ }, "strip", z.ZodTypeAny, {
2851
+ metadata: {
2852
+ name: string;
2853
+ description: string;
2854
+ version: string;
2855
+ icon: string;
2856
+ group: string;
2857
+ labels: Record<string, string>;
2858
+ };
2859
+ spec: {
2860
+ scope: "input" | "both" | "output";
2861
+ severity: "error" | "warn";
2862
+ rules: {
2863
+ type: "pii" | "prompt_injection" | "banned_words" | "custom_regex" | "content_safety" | "topic_restriction";
2864
+ tier?: "regex" | "ml" | "api" | "llm_judge" | undefined;
2865
+ entities?: string[] | undefined;
2866
+ words?: string[] | undefined;
2867
+ patterns?: string[] | undefined;
2868
+ region?: string | undefined;
2869
+ categories?: string[] | undefined;
2870
+ threshold?: number | undefined;
2871
+ allowed?: string[] | undefined;
2872
+ denied?: string[] | undefined;
2873
+ }[];
2874
+ model: string;
2875
+ action: "block" | "mask" | "log";
2876
+ categories: string[] | null;
2877
+ threshold: number;
2878
+ recognizers: string[];
2879
+ engine: "presidio" | "ml-privacy-filter";
2880
+ backend: "auto" | "transformers" | "onnxruntime";
2881
+ mask_char: string;
2882
+ budget_ms: number;
2883
+ };
2884
+ apiVersion: "github.com/ruinosus/dna/v1";
2885
+ kind: "SafetyPolicy";
2886
+ }, {
2887
+ metadata: {
2888
+ name: string;
2889
+ description?: string | undefined;
2890
+ version?: string | undefined;
2891
+ icon?: string | undefined;
2892
+ group?: string | undefined;
2893
+ labels?: Record<string, string> | undefined;
2894
+ };
2895
+ apiVersion: "github.com/ruinosus/dna/v1";
2896
+ kind: "SafetyPolicy";
2897
+ spec?: {
2898
+ scope?: "input" | "both" | "output" | undefined;
2899
+ severity?: "error" | "warn" | undefined;
2900
+ rules?: {
2901
+ type: "pii" | "prompt_injection" | "banned_words" | "custom_regex" | "content_safety" | "topic_restriction";
2902
+ tier?: "regex" | "ml" | "api" | "llm_judge" | undefined;
2903
+ entities?: string[] | undefined;
2904
+ words?: string[] | undefined;
2905
+ patterns?: string[] | undefined;
2906
+ region?: string | undefined;
2907
+ categories?: string[] | undefined;
2908
+ threshold?: number | undefined;
2909
+ allowed?: string[] | undefined;
2910
+ denied?: string[] | undefined;
2911
+ }[] | undefined;
2912
+ model?: string | undefined;
2913
+ action?: "block" | "mask" | "log" | undefined;
2914
+ categories?: string[] | null | undefined;
2915
+ threshold?: number | undefined;
2916
+ recognizers?: string[] | undefined;
2917
+ engine?: "presidio" | "ml-privacy-filter" | undefined;
2918
+ backend?: "auto" | "transformers" | "onnxruntime" | undefined;
2919
+ mask_char?: string | undefined;
2920
+ budget_ms?: number | undefined;
2921
+ } | undefined;
2922
+ }>;
2923
+ export type TypedSafetyPolicy = z.output<typeof SafetyPolicySchema>;
2924
+ export declare const RecognizerPatternSchema: z.ZodObject<{
2925
+ name: z.ZodString;
2926
+ regex: z.ZodString;
2927
+ score: z.ZodNumber;
2928
+ }, "strip", z.ZodTypeAny, {
2929
+ name: string;
2930
+ regex: string;
2931
+ score: number;
2932
+ }, {
2933
+ name: string;
2934
+ regex: string;
2935
+ score: number;
2936
+ }>;
2937
+ export declare const RecognizerSpecSchema: z.ZodObject<{
2938
+ entity_type: z.ZodString;
2939
+ language: z.ZodDefault<z.ZodString>;
2940
+ patterns: z.ZodDefault<z.ZodArray<z.ZodObject<{
2941
+ name: z.ZodString;
2942
+ regex: z.ZodString;
2943
+ score: z.ZodNumber;
2944
+ }, "strip", z.ZodTypeAny, {
2945
+ name: string;
2946
+ regex: string;
2947
+ score: number;
2948
+ }, {
2949
+ name: string;
2950
+ regex: string;
2951
+ score: number;
2952
+ }>, "many">>;
2953
+ deny_list: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2954
+ context: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2955
+ }, "strip", z.ZodTypeAny, {
2956
+ patterns: {
2957
+ name: string;
2958
+ regex: string;
2959
+ score: number;
2960
+ }[];
2961
+ context: string[];
2962
+ entity_type: string;
2963
+ language: string;
2964
+ deny_list: string[];
2965
+ }, {
2966
+ entity_type: string;
2967
+ patterns?: {
2968
+ name: string;
2969
+ regex: string;
2970
+ score: number;
2971
+ }[] | undefined;
2972
+ context?: string[] | undefined;
2973
+ language?: string | undefined;
2974
+ deny_list?: string[] | undefined;
2975
+ }>;
2976
+ export declare const RecognizerSchema: z.ZodObject<{
2977
+ apiVersion: z.ZodLiteral<"presidio/v1">;
2978
+ kind: z.ZodLiteral<"Recognizer">;
2979
+ metadata: z.ZodObject<{
2980
+ name: z.ZodString;
2981
+ description: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2982
+ version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2983
+ icon: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2984
+ group: z.ZodDefault<z.ZodOptional<z.ZodString>>;
2985
+ labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
2986
+ }, "strip", z.ZodTypeAny, {
2987
+ name: string;
2988
+ description: string;
2989
+ version: string;
2990
+ icon: string;
2991
+ group: string;
2992
+ labels: Record<string, string>;
2993
+ }, {
2994
+ name: string;
2995
+ description?: string | undefined;
2996
+ version?: string | undefined;
2997
+ icon?: string | undefined;
2998
+ group?: string | undefined;
2999
+ labels?: Record<string, string> | undefined;
3000
+ }>;
3001
+ spec: z.ZodObject<{
3002
+ entity_type: z.ZodString;
3003
+ language: z.ZodDefault<z.ZodString>;
3004
+ patterns: z.ZodDefault<z.ZodArray<z.ZodObject<{
3005
+ name: z.ZodString;
3006
+ regex: z.ZodString;
3007
+ score: z.ZodNumber;
3008
+ }, "strip", z.ZodTypeAny, {
3009
+ name: string;
3010
+ regex: string;
3011
+ score: number;
3012
+ }, {
3013
+ name: string;
3014
+ regex: string;
3015
+ score: number;
3016
+ }>, "many">>;
3017
+ deny_list: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3018
+ context: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
3019
+ }, "strip", z.ZodTypeAny, {
3020
+ patterns: {
3021
+ name: string;
3022
+ regex: string;
3023
+ score: number;
3024
+ }[];
3025
+ context: string[];
3026
+ entity_type: string;
3027
+ language: string;
3028
+ deny_list: string[];
3029
+ }, {
3030
+ entity_type: string;
3031
+ patterns?: {
3032
+ name: string;
3033
+ regex: string;
3034
+ score: number;
3035
+ }[] | undefined;
3036
+ context?: string[] | undefined;
3037
+ language?: string | undefined;
3038
+ deny_list?: string[] | undefined;
3039
+ }>;
3040
+ }, "strip", z.ZodTypeAny, {
3041
+ metadata: {
3042
+ name: string;
3043
+ description: string;
3044
+ version: string;
3045
+ icon: string;
3046
+ group: string;
3047
+ labels: Record<string, string>;
3048
+ };
3049
+ spec: {
3050
+ patterns: {
3051
+ name: string;
3052
+ regex: string;
3053
+ score: number;
3054
+ }[];
3055
+ context: string[];
3056
+ entity_type: string;
3057
+ language: string;
3058
+ deny_list: string[];
3059
+ };
3060
+ apiVersion: "presidio/v1";
3061
+ kind: "Recognizer";
3062
+ }, {
3063
+ metadata: {
3064
+ name: string;
3065
+ description?: string | undefined;
3066
+ version?: string | undefined;
3067
+ icon?: string | undefined;
3068
+ group?: string | undefined;
3069
+ labels?: Record<string, string> | undefined;
3070
+ };
3071
+ spec: {
3072
+ entity_type: string;
3073
+ patterns?: {
3074
+ name: string;
3075
+ regex: string;
3076
+ score: number;
3077
+ }[] | undefined;
3078
+ context?: string[] | undefined;
3079
+ language?: string | undefined;
3080
+ deny_list?: string[] | undefined;
3081
+ };
3082
+ apiVersion: "presidio/v1";
3083
+ kind: "Recognizer";
3084
+ }>;
3085
+ export type TypedRecognizer = z.output<typeof RecognizerSchema>;
3086
+ /** Convert a Zod object schema's .shape to a minimal JSON Schema.
3087
+ * No external library — walks Zod internals directly. */
3088
+ export declare function zodSpecToJsonSchema(zodSchema: z.ZodObject<any>): Record<string, unknown>;
3089
+ export declare const DNA_NAMESPACE = "github.com/ruinosus/dna";