studiograph 1.0.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 (101) hide show
  1. package/README.md +18 -0
  2. package/dist/agent/orchestrator.d.ts +69 -0
  3. package/dist/agent/orchestrator.js +211 -0
  4. package/dist/agent/orchestrator.js.map +1 -0
  5. package/dist/agent/tools/graph-tools.d.ts +30 -0
  6. package/dist/agent/tools/graph-tools.js +536 -0
  7. package/dist/agent/tools/graph-tools.js.map +1 -0
  8. package/dist/auth/github.d.ts +53 -0
  9. package/dist/auth/github.js +180 -0
  10. package/dist/auth/github.js.map +1 -0
  11. package/dist/cli/commands/auth.d.ts +10 -0
  12. package/dist/cli/commands/auth.js +63 -0
  13. package/dist/cli/commands/auth.js.map +1 -0
  14. package/dist/cli/commands/init.d.ts +7 -0
  15. package/dist/cli/commands/init.js +299 -0
  16. package/dist/cli/commands/init.js.map +1 -0
  17. package/dist/cli/commands/join.d.ts +14 -0
  18. package/dist/cli/commands/join.js +230 -0
  19. package/dist/cli/commands/join.js.map +1 -0
  20. package/dist/cli/commands/members.d.ts +11 -0
  21. package/dist/cli/commands/members.js +230 -0
  22. package/dist/cli/commands/members.js.map +1 -0
  23. package/dist/cli/commands/serve.d.ts +17 -0
  24. package/dist/cli/commands/serve.js +90 -0
  25. package/dist/cli/commands/serve.js.map +1 -0
  26. package/dist/cli/commands/start.d.ts +7 -0
  27. package/dist/cli/commands/start.js +381 -0
  28. package/dist/cli/commands/start.js.map +1 -0
  29. package/dist/cli/commands/sync.d.ts +10 -0
  30. package/dist/cli/commands/sync.js +121 -0
  31. package/dist/cli/commands/sync.js.map +1 -0
  32. package/dist/cli/index.d.ts +7 -0
  33. package/dist/cli/index.js +31 -0
  34. package/dist/cli/index.js.map +1 -0
  35. package/dist/core/graph.d.ts +169 -0
  36. package/dist/core/graph.js +558 -0
  37. package/dist/core/graph.js.map +1 -0
  38. package/dist/core/types.d.ts +216 -0
  39. package/dist/core/types.js +71 -0
  40. package/dist/core/types.js.map +1 -0
  41. package/dist/core/user-config.d.ts +31 -0
  42. package/dist/core/user-config.js +50 -0
  43. package/dist/core/user-config.js.map +1 -0
  44. package/dist/core/validation.d.ts +2371 -0
  45. package/dist/core/validation.js +432 -0
  46. package/dist/core/validation.js.map +1 -0
  47. package/dist/core/workspace-manager.d.ts +104 -0
  48. package/dist/core/workspace-manager.js +432 -0
  49. package/dist/core/workspace-manager.js.map +1 -0
  50. package/dist/core/workspace.d.ts +103 -0
  51. package/dist/core/workspace.js +306 -0
  52. package/dist/core/workspace.js.map +1 -0
  53. package/dist/server/index.d.ts +25 -0
  54. package/dist/server/index.js +84 -0
  55. package/dist/server/index.js.map +1 -0
  56. package/dist/server/plugin-loader.d.ts +31 -0
  57. package/dist/server/plugin-loader.js +81 -0
  58. package/dist/server/plugin-loader.js.map +1 -0
  59. package/dist/server/routes/chat.d.ts +11 -0
  60. package/dist/server/routes/chat.js +66 -0
  61. package/dist/server/routes/chat.js.map +1 -0
  62. package/dist/server/routes/graph-api.d.ts +9 -0
  63. package/dist/server/routes/graph-api.js +72 -0
  64. package/dist/server/routes/graph-api.js.map +1 -0
  65. package/dist/server/routes/webhook.d.ts +14 -0
  66. package/dist/server/routes/webhook.js +69 -0
  67. package/dist/server/routes/webhook.js.map +1 -0
  68. package/dist/services/assets/base.d.ts +69 -0
  69. package/dist/services/assets/base.js +113 -0
  70. package/dist/services/assets/base.js.map +1 -0
  71. package/dist/services/assets/index.d.ts +36 -0
  72. package/dist/services/assets/index.js +89 -0
  73. package/dist/services/assets/index.js.map +1 -0
  74. package/dist/services/assets/local.d.ts +42 -0
  75. package/dist/services/assets/local.js +161 -0
  76. package/dist/services/assets/local.js.map +1 -0
  77. package/dist/services/assets/r2.d.ts +36 -0
  78. package/dist/services/assets/r2.js +182 -0
  79. package/dist/services/assets/r2.js.map +1 -0
  80. package/dist/services/csv-service.d.ts +36 -0
  81. package/dist/services/csv-service.js +143 -0
  82. package/dist/services/csv-service.js.map +1 -0
  83. package/dist/services/git.d.ts +99 -0
  84. package/dist/services/git.js +306 -0
  85. package/dist/services/git.js.map +1 -0
  86. package/dist/services/github-provisioner.d.ts +30 -0
  87. package/dist/services/github-provisioner.js +89 -0
  88. package/dist/services/github-provisioner.js.map +1 -0
  89. package/dist/services/markdown.d.ts +82 -0
  90. package/dist/services/markdown.js +338 -0
  91. package/dist/services/markdown.js.map +1 -0
  92. package/dist/services/memory-service.d.ts +74 -0
  93. package/dist/services/memory-service.js +183 -0
  94. package/dist/services/memory-service.js.map +1 -0
  95. package/dist/utils/git.d.ts +28 -0
  96. package/dist/utils/git.js +55 -0
  97. package/dist/utils/git.js.map +1 -0
  98. package/dist/utils/preflight.d.ts +44 -0
  99. package/dist/utils/preflight.js +95 -0
  100. package/dist/utils/preflight.js.map +1 -0
  101. package/package.json +55 -0
@@ -0,0 +1,2371 @@
1
+ /**
2
+ * Entity validation schemas for Studiograph
3
+ *
4
+ * Based on real-world templates from Schema Design's Obsidian vault,
5
+ * generalized for use by any creative service firm.
6
+ */
7
+ import { z } from 'zod';
8
+ /**
9
+ * Base entity schema - all entities have these fields
10
+ */
11
+ export declare const EntityBaseSchema: z.ZodObject<{
12
+ entity_type: z.ZodString;
13
+ entity_id: z.ZodString;
14
+ created_at: z.ZodString;
15
+ updated_at: z.ZodString;
16
+ created_by: z.ZodString;
17
+ updated_by: z.ZodString;
18
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
19
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
20
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
21
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
22
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
23
+ entity_type: z.ZodString;
24
+ entity_id: z.ZodString;
25
+ created_at: z.ZodString;
26
+ updated_at: z.ZodString;
27
+ created_by: z.ZodString;
28
+ updated_by: z.ZodString;
29
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
30
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
31
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
32
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
33
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
34
+ entity_type: z.ZodString;
35
+ entity_id: z.ZodString;
36
+ created_at: z.ZodString;
37
+ updated_at: z.ZodString;
38
+ created_by: z.ZodString;
39
+ updated_by: z.ZodString;
40
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
41
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
42
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
43
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44
+ }, z.ZodTypeAny, "passthrough">>;
45
+ export type EntityBase = z.infer<typeof EntityBaseSchema>;
46
+ /**
47
+ * PROJECT REPO ENTITIES
48
+ * Used in project-specific repositories (one per client/project)
49
+ */
50
+ /**
51
+ * Project entity - represents a client engagement or internal initiative
52
+ */
53
+ export declare const ProjectSchema: z.ZodObject<{
54
+ entity_id: z.ZodString;
55
+ created_at: z.ZodString;
56
+ updated_at: z.ZodString;
57
+ created_by: z.ZodString;
58
+ updated_by: z.ZodString;
59
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
60
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
61
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
62
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
63
+ } & {
64
+ entity_type: z.ZodLiteral<"project">;
65
+ name: z.ZodString;
66
+ client: z.ZodOptional<z.ZodString>;
67
+ website_url: z.ZodOptional<z.ZodString>;
68
+ start_date: z.ZodOptional<z.ZodString>;
69
+ end_date: z.ZodOptional<z.ZodString>;
70
+ target_completion: z.ZodOptional<z.ZodString>;
71
+ year_released: z.ZodOptional<z.ZodNumber>;
72
+ status: z.ZodOptional<z.ZodEnum<["planning", "active", "on-hold", "completed", "archived"]>>;
73
+ related_projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
74
+ related_areas: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
75
+ team: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
76
+ deliverables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
77
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
78
+ entity_id: z.ZodString;
79
+ created_at: z.ZodString;
80
+ updated_at: z.ZodString;
81
+ created_by: z.ZodString;
82
+ updated_by: z.ZodString;
83
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
84
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
85
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
86
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
87
+ } & {
88
+ entity_type: z.ZodLiteral<"project">;
89
+ name: z.ZodString;
90
+ client: z.ZodOptional<z.ZodString>;
91
+ website_url: z.ZodOptional<z.ZodString>;
92
+ start_date: z.ZodOptional<z.ZodString>;
93
+ end_date: z.ZodOptional<z.ZodString>;
94
+ target_completion: z.ZodOptional<z.ZodString>;
95
+ year_released: z.ZodOptional<z.ZodNumber>;
96
+ status: z.ZodOptional<z.ZodEnum<["planning", "active", "on-hold", "completed", "archived"]>>;
97
+ related_projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
98
+ related_areas: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
99
+ team: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
100
+ deliverables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
101
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
102
+ entity_id: z.ZodString;
103
+ created_at: z.ZodString;
104
+ updated_at: z.ZodString;
105
+ created_by: z.ZodString;
106
+ updated_by: z.ZodString;
107
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
108
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
109
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
110
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
111
+ } & {
112
+ entity_type: z.ZodLiteral<"project">;
113
+ name: z.ZodString;
114
+ client: z.ZodOptional<z.ZodString>;
115
+ website_url: z.ZodOptional<z.ZodString>;
116
+ start_date: z.ZodOptional<z.ZodString>;
117
+ end_date: z.ZodOptional<z.ZodString>;
118
+ target_completion: z.ZodOptional<z.ZodString>;
119
+ year_released: z.ZodOptional<z.ZodNumber>;
120
+ status: z.ZodOptional<z.ZodEnum<["planning", "active", "on-hold", "completed", "archived"]>>;
121
+ related_projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
122
+ related_areas: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
123
+ team: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
124
+ deliverables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
125
+ }, z.ZodTypeAny, "passthrough">>;
126
+ export type Project = z.infer<typeof ProjectSchema>;
127
+ /**
128
+ * Meeting entity - captures meeting notes, decisions, and action items
129
+ */
130
+ export declare const MeetingSchema: z.ZodObject<{
131
+ entity_id: z.ZodString;
132
+ created_at: z.ZodString;
133
+ updated_at: z.ZodString;
134
+ created_by: z.ZodString;
135
+ updated_by: z.ZodString;
136
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
137
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
138
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
139
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
140
+ } & {
141
+ entity_type: z.ZodLiteral<"meeting">;
142
+ name: z.ZodString;
143
+ date: z.ZodString;
144
+ attendees: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
145
+ related_projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
146
+ related_organizations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
147
+ related_areas: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
148
+ agenda: z.ZodOptional<z.ZodString>;
149
+ notes: z.ZodOptional<z.ZodString>;
150
+ action_items: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
151
+ summary: z.ZodOptional<z.ZodString>;
152
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
153
+ entity_id: z.ZodString;
154
+ created_at: z.ZodString;
155
+ updated_at: z.ZodString;
156
+ created_by: z.ZodString;
157
+ updated_by: z.ZodString;
158
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
159
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
160
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
161
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
162
+ } & {
163
+ entity_type: z.ZodLiteral<"meeting">;
164
+ name: z.ZodString;
165
+ date: z.ZodString;
166
+ attendees: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
167
+ related_projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
168
+ related_organizations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
169
+ related_areas: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
170
+ agenda: z.ZodOptional<z.ZodString>;
171
+ notes: z.ZodOptional<z.ZodString>;
172
+ action_items: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
173
+ summary: z.ZodOptional<z.ZodString>;
174
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
175
+ entity_id: z.ZodString;
176
+ created_at: z.ZodString;
177
+ updated_at: z.ZodString;
178
+ created_by: z.ZodString;
179
+ updated_by: z.ZodString;
180
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
181
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
182
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
183
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
184
+ } & {
185
+ entity_type: z.ZodLiteral<"meeting">;
186
+ name: z.ZodString;
187
+ date: z.ZodString;
188
+ attendees: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
189
+ related_projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
190
+ related_organizations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
191
+ related_areas: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
192
+ agenda: z.ZodOptional<z.ZodString>;
193
+ notes: z.ZodOptional<z.ZodString>;
194
+ action_items: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
195
+ summary: z.ZodOptional<z.ZodString>;
196
+ }, z.ZodTypeAny, "passthrough">>;
197
+ export type Meeting = z.infer<typeof MeetingSchema>;
198
+ /**
199
+ * Decision entity - structured decision records (ADR-style)
200
+ * Format: DEC-YYYY-NNN
201
+ */
202
+ export declare const DecisionSchema: z.ZodObject<{
203
+ entity_id: z.ZodString;
204
+ created_at: z.ZodString;
205
+ updated_at: z.ZodString;
206
+ created_by: z.ZodString;
207
+ updated_by: z.ZodString;
208
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
209
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
210
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
211
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
212
+ } & {
213
+ entity_type: z.ZodLiteral<"decision">;
214
+ id: z.ZodString;
215
+ title: z.ZodString;
216
+ date: z.ZodString;
217
+ status: z.ZodDefault<z.ZodEnum<["proposed", "accepted", "rejected", "deprecated", "superseded"]>>;
218
+ decision_makers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
219
+ stakeholders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
220
+ related_decisions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
221
+ supersedes: z.ZodOptional<z.ZodString>;
222
+ superseded_by: z.ZodOptional<z.ZodString>;
223
+ context: z.ZodOptional<z.ZodString>;
224
+ alternatives: z.ZodOptional<z.ZodString>;
225
+ decision: z.ZodOptional<z.ZodString>;
226
+ rationale: z.ZodOptional<z.ZodString>;
227
+ consequences: z.ZodOptional<z.ZodString>;
228
+ enables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
229
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
230
+ entity_id: z.ZodString;
231
+ created_at: z.ZodString;
232
+ updated_at: z.ZodString;
233
+ created_by: z.ZodString;
234
+ updated_by: z.ZodString;
235
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
236
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
237
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
238
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
239
+ } & {
240
+ entity_type: z.ZodLiteral<"decision">;
241
+ id: z.ZodString;
242
+ title: z.ZodString;
243
+ date: z.ZodString;
244
+ status: z.ZodDefault<z.ZodEnum<["proposed", "accepted", "rejected", "deprecated", "superseded"]>>;
245
+ decision_makers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
246
+ stakeholders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
247
+ related_decisions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
248
+ supersedes: z.ZodOptional<z.ZodString>;
249
+ superseded_by: z.ZodOptional<z.ZodString>;
250
+ context: z.ZodOptional<z.ZodString>;
251
+ alternatives: z.ZodOptional<z.ZodString>;
252
+ decision: z.ZodOptional<z.ZodString>;
253
+ rationale: z.ZodOptional<z.ZodString>;
254
+ consequences: z.ZodOptional<z.ZodString>;
255
+ enables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
256
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
257
+ entity_id: z.ZodString;
258
+ created_at: z.ZodString;
259
+ updated_at: z.ZodString;
260
+ created_by: z.ZodString;
261
+ updated_by: z.ZodString;
262
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
263
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
264
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
265
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
266
+ } & {
267
+ entity_type: z.ZodLiteral<"decision">;
268
+ id: z.ZodString;
269
+ title: z.ZodString;
270
+ date: z.ZodString;
271
+ status: z.ZodDefault<z.ZodEnum<["proposed", "accepted", "rejected", "deprecated", "superseded"]>>;
272
+ decision_makers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
273
+ stakeholders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
274
+ related_decisions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
275
+ supersedes: z.ZodOptional<z.ZodString>;
276
+ superseded_by: z.ZodOptional<z.ZodString>;
277
+ context: z.ZodOptional<z.ZodString>;
278
+ alternatives: z.ZodOptional<z.ZodString>;
279
+ decision: z.ZodOptional<z.ZodString>;
280
+ rationale: z.ZodOptional<z.ZodString>;
281
+ consequences: z.ZodOptional<z.ZodString>;
282
+ enables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
283
+ }, z.ZodTypeAny, "passthrough">>;
284
+ export type Decision = z.infer<typeof DecisionSchema>;
285
+ /**
286
+ * Brief entity - project briefs and requirements
287
+ */
288
+ export declare const BriefSchema: z.ZodObject<{
289
+ entity_id: z.ZodString;
290
+ created_at: z.ZodString;
291
+ updated_at: z.ZodString;
292
+ created_by: z.ZodString;
293
+ updated_by: z.ZodString;
294
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
295
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
296
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
297
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
298
+ } & {
299
+ entity_type: z.ZodLiteral<"brief">;
300
+ project_name: z.ZodString;
301
+ client: z.ZodOptional<z.ZodString>;
302
+ start_date: z.ZodOptional<z.ZodString>;
303
+ target_completion: z.ZodOptional<z.ZodString>;
304
+ status: z.ZodDefault<z.ZodEnum<["planning", "approved", "in-progress", "completed"]>>;
305
+ objectives: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
306
+ target_users: z.ZodOptional<z.ZodString>;
307
+ success_criteria: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
308
+ constraints: z.ZodOptional<z.ZodString>;
309
+ stakeholders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
310
+ deliverables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
311
+ related_projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
312
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
313
+ entity_id: z.ZodString;
314
+ created_at: z.ZodString;
315
+ updated_at: z.ZodString;
316
+ created_by: z.ZodString;
317
+ updated_by: z.ZodString;
318
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
319
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
320
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
321
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
322
+ } & {
323
+ entity_type: z.ZodLiteral<"brief">;
324
+ project_name: z.ZodString;
325
+ client: z.ZodOptional<z.ZodString>;
326
+ start_date: z.ZodOptional<z.ZodString>;
327
+ target_completion: z.ZodOptional<z.ZodString>;
328
+ status: z.ZodDefault<z.ZodEnum<["planning", "approved", "in-progress", "completed"]>>;
329
+ objectives: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
330
+ target_users: z.ZodOptional<z.ZodString>;
331
+ success_criteria: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
332
+ constraints: z.ZodOptional<z.ZodString>;
333
+ stakeholders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
334
+ deliverables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
335
+ related_projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
336
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
337
+ entity_id: z.ZodString;
338
+ created_at: z.ZodString;
339
+ updated_at: z.ZodString;
340
+ created_by: z.ZodString;
341
+ updated_by: z.ZodString;
342
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
343
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
344
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
345
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
346
+ } & {
347
+ entity_type: z.ZodLiteral<"brief">;
348
+ project_name: z.ZodString;
349
+ client: z.ZodOptional<z.ZodString>;
350
+ start_date: z.ZodOptional<z.ZodString>;
351
+ target_completion: z.ZodOptional<z.ZodString>;
352
+ status: z.ZodDefault<z.ZodEnum<["planning", "approved", "in-progress", "completed"]>>;
353
+ objectives: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
354
+ target_users: z.ZodOptional<z.ZodString>;
355
+ success_criteria: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
356
+ constraints: z.ZodOptional<z.ZodString>;
357
+ stakeholders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
358
+ deliverables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
359
+ related_projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
360
+ }, z.ZodTypeAny, "passthrough">>;
361
+ export type Brief = z.infer<typeof BriefSchema>;
362
+ /**
363
+ * Artifact entity - deliverables and project outputs
364
+ */
365
+ export declare const ArtifactSchema: z.ZodObject<{
366
+ entity_id: z.ZodString;
367
+ created_at: z.ZodString;
368
+ updated_at: z.ZodString;
369
+ created_by: z.ZodString;
370
+ updated_by: z.ZodString;
371
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
372
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
373
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
374
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
375
+ } & {
376
+ entity_type: z.ZodLiteral<"artifact">;
377
+ name: z.ZodString;
378
+ type: z.ZodOptional<z.ZodString>;
379
+ project: z.ZodOptional<z.ZodString>;
380
+ date_created: z.ZodOptional<z.ZodString>;
381
+ description: z.ZodOptional<z.ZodString>;
382
+ url: z.ZodOptional<z.ZodString>;
383
+ version: z.ZodOptional<z.ZodString>;
384
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
385
+ entity_id: z.ZodString;
386
+ created_at: z.ZodString;
387
+ updated_at: z.ZodString;
388
+ created_by: z.ZodString;
389
+ updated_by: z.ZodString;
390
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
391
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
392
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
393
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
394
+ } & {
395
+ entity_type: z.ZodLiteral<"artifact">;
396
+ name: z.ZodString;
397
+ type: z.ZodOptional<z.ZodString>;
398
+ project: z.ZodOptional<z.ZodString>;
399
+ date_created: z.ZodOptional<z.ZodString>;
400
+ description: z.ZodOptional<z.ZodString>;
401
+ url: z.ZodOptional<z.ZodString>;
402
+ version: z.ZodOptional<z.ZodString>;
403
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
404
+ entity_id: z.ZodString;
405
+ created_at: z.ZodString;
406
+ updated_at: z.ZodString;
407
+ created_by: z.ZodString;
408
+ updated_by: z.ZodString;
409
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
410
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
411
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
412
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
413
+ } & {
414
+ entity_type: z.ZodLiteral<"artifact">;
415
+ name: z.ZodString;
416
+ type: z.ZodOptional<z.ZodString>;
417
+ project: z.ZodOptional<z.ZodString>;
418
+ date_created: z.ZodOptional<z.ZodString>;
419
+ description: z.ZodOptional<z.ZodString>;
420
+ url: z.ZodOptional<z.ZodString>;
421
+ version: z.ZodOptional<z.ZodString>;
422
+ }, z.ZodTypeAny, "passthrough">>;
423
+ export type Artifact = z.infer<typeof ArtifactSchema>;
424
+ /**
425
+ * FUNCTION REPO ENTITIES
426
+ * Used in function-specific repositories (business operations)
427
+ */
428
+ /**
429
+ * Proposal entity - client proposals and SOWs
430
+ */
431
+ export declare const ProposalSchema: z.ZodObject<{
432
+ entity_id: z.ZodString;
433
+ created_at: z.ZodString;
434
+ updated_at: z.ZodString;
435
+ created_by: z.ZodString;
436
+ updated_by: z.ZodString;
437
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
438
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
439
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
440
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
441
+ } & {
442
+ entity_type: z.ZodLiteral<"proposal">;
443
+ name: z.ZodString;
444
+ client: z.ZodOptional<z.ZodString>;
445
+ project_name: z.ZodOptional<z.ZodString>;
446
+ date: z.ZodOptional<z.ZodString>;
447
+ version: z.ZodOptional<z.ZodString>;
448
+ status: z.ZodDefault<z.ZodEnum<["draft", "sent", "accepted", "rejected", "negotiating"]>>;
449
+ deliverables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
450
+ phases: z.ZodOptional<z.ZodString>;
451
+ team: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
452
+ schedule: z.ZodOptional<z.ZodString>;
453
+ fees: z.ZodOptional<z.ZodString>;
454
+ payment_terms: z.ZodOptional<z.ZodString>;
455
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
456
+ entity_id: z.ZodString;
457
+ created_at: z.ZodString;
458
+ updated_at: z.ZodString;
459
+ created_by: z.ZodString;
460
+ updated_by: z.ZodString;
461
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
462
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
463
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
464
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
465
+ } & {
466
+ entity_type: z.ZodLiteral<"proposal">;
467
+ name: z.ZodString;
468
+ client: z.ZodOptional<z.ZodString>;
469
+ project_name: z.ZodOptional<z.ZodString>;
470
+ date: z.ZodOptional<z.ZodString>;
471
+ version: z.ZodOptional<z.ZodString>;
472
+ status: z.ZodDefault<z.ZodEnum<["draft", "sent", "accepted", "rejected", "negotiating"]>>;
473
+ deliverables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
474
+ phases: z.ZodOptional<z.ZodString>;
475
+ team: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
476
+ schedule: z.ZodOptional<z.ZodString>;
477
+ fees: z.ZodOptional<z.ZodString>;
478
+ payment_terms: z.ZodOptional<z.ZodString>;
479
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
480
+ entity_id: z.ZodString;
481
+ created_at: z.ZodString;
482
+ updated_at: z.ZodString;
483
+ created_by: z.ZodString;
484
+ updated_by: z.ZodString;
485
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
486
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
487
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
488
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
489
+ } & {
490
+ entity_type: z.ZodLiteral<"proposal">;
491
+ name: z.ZodString;
492
+ client: z.ZodOptional<z.ZodString>;
493
+ project_name: z.ZodOptional<z.ZodString>;
494
+ date: z.ZodOptional<z.ZodString>;
495
+ version: z.ZodOptional<z.ZodString>;
496
+ status: z.ZodDefault<z.ZodEnum<["draft", "sent", "accepted", "rejected", "negotiating"]>>;
497
+ deliverables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
498
+ phases: z.ZodOptional<z.ZodString>;
499
+ team: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
500
+ schedule: z.ZodOptional<z.ZodString>;
501
+ fees: z.ZodOptional<z.ZodString>;
502
+ payment_terms: z.ZodOptional<z.ZodString>;
503
+ }, z.ZodTypeAny, "passthrough">>;
504
+ export type Proposal = z.infer<typeof ProposalSchema>;
505
+ /**
506
+ * Contract entity - SOWs, MSAs, NDAs
507
+ */
508
+ export declare const ContractSchema: z.ZodObject<{
509
+ entity_id: z.ZodString;
510
+ created_at: z.ZodString;
511
+ updated_at: z.ZodString;
512
+ created_by: z.ZodString;
513
+ updated_by: z.ZodString;
514
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
515
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
516
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
517
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
518
+ } & {
519
+ entity_type: z.ZodLiteral<"contract">;
520
+ name: z.ZodString;
521
+ type: z.ZodOptional<z.ZodEnum<["sow", "msa", "nda", "other"]>>;
522
+ client: z.ZodOptional<z.ZodString>;
523
+ project: z.ZodOptional<z.ZodString>;
524
+ date_signed: z.ZodOptional<z.ZodString>;
525
+ start_date: z.ZodOptional<z.ZodString>;
526
+ end_date: z.ZodOptional<z.ZodString>;
527
+ status: z.ZodDefault<z.ZodEnum<["draft", "pending", "signed", "completed", "terminated"]>>;
528
+ value: z.ZodOptional<z.ZodString>;
529
+ payment_terms: z.ZodOptional<z.ZodString>;
530
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
531
+ entity_id: z.ZodString;
532
+ created_at: z.ZodString;
533
+ updated_at: z.ZodString;
534
+ created_by: z.ZodString;
535
+ updated_by: z.ZodString;
536
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
537
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
538
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
539
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
540
+ } & {
541
+ entity_type: z.ZodLiteral<"contract">;
542
+ name: z.ZodString;
543
+ type: z.ZodOptional<z.ZodEnum<["sow", "msa", "nda", "other"]>>;
544
+ client: z.ZodOptional<z.ZodString>;
545
+ project: z.ZodOptional<z.ZodString>;
546
+ date_signed: z.ZodOptional<z.ZodString>;
547
+ start_date: z.ZodOptional<z.ZodString>;
548
+ end_date: z.ZodOptional<z.ZodString>;
549
+ status: z.ZodDefault<z.ZodEnum<["draft", "pending", "signed", "completed", "terminated"]>>;
550
+ value: z.ZodOptional<z.ZodString>;
551
+ payment_terms: z.ZodOptional<z.ZodString>;
552
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
553
+ entity_id: z.ZodString;
554
+ created_at: z.ZodString;
555
+ updated_at: z.ZodString;
556
+ created_by: z.ZodString;
557
+ updated_by: z.ZodString;
558
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
559
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
560
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
561
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
562
+ } & {
563
+ entity_type: z.ZodLiteral<"contract">;
564
+ name: z.ZodString;
565
+ type: z.ZodOptional<z.ZodEnum<["sow", "msa", "nda", "other"]>>;
566
+ client: z.ZodOptional<z.ZodString>;
567
+ project: z.ZodOptional<z.ZodString>;
568
+ date_signed: z.ZodOptional<z.ZodString>;
569
+ start_date: z.ZodOptional<z.ZodString>;
570
+ end_date: z.ZodOptional<z.ZodString>;
571
+ status: z.ZodDefault<z.ZodEnum<["draft", "pending", "signed", "completed", "terminated"]>>;
572
+ value: z.ZodOptional<z.ZodString>;
573
+ payment_terms: z.ZodOptional<z.ZodString>;
574
+ }, z.ZodTypeAny, "passthrough">>;
575
+ export type Contract = z.infer<typeof ContractSchema>;
576
+ /**
577
+ * Person entity - team members, clients, contacts
578
+ */
579
+ export declare const PersonSchema: z.ZodObject<{
580
+ entity_id: z.ZodString;
581
+ created_at: z.ZodString;
582
+ updated_at: z.ZodString;
583
+ created_by: z.ZodString;
584
+ updated_by: z.ZodString;
585
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
586
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
587
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
588
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
589
+ } & {
590
+ entity_type: z.ZodLiteral<"person">;
591
+ name: z.ZodString;
592
+ role: z.ZodOptional<z.ZodString>;
593
+ status: z.ZodOptional<z.ZodEnum<["current", "former", "contractor", "client", "partner"]>>;
594
+ email: z.ZodOptional<z.ZodString>;
595
+ location: z.ZodOptional<z.ZodString>;
596
+ organization: z.ZodOptional<z.ZodString>;
597
+ years_experience: z.ZodOptional<z.ZodNumber>;
598
+ bio: z.ZodOptional<z.ZodString>;
599
+ projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
600
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
601
+ entity_id: z.ZodString;
602
+ created_at: z.ZodString;
603
+ updated_at: z.ZodString;
604
+ created_by: z.ZodString;
605
+ updated_by: z.ZodString;
606
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
607
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
608
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
609
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
610
+ } & {
611
+ entity_type: z.ZodLiteral<"person">;
612
+ name: z.ZodString;
613
+ role: z.ZodOptional<z.ZodString>;
614
+ status: z.ZodOptional<z.ZodEnum<["current", "former", "contractor", "client", "partner"]>>;
615
+ email: z.ZodOptional<z.ZodString>;
616
+ location: z.ZodOptional<z.ZodString>;
617
+ organization: z.ZodOptional<z.ZodString>;
618
+ years_experience: z.ZodOptional<z.ZodNumber>;
619
+ bio: z.ZodOptional<z.ZodString>;
620
+ projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
621
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
622
+ entity_id: z.ZodString;
623
+ created_at: z.ZodString;
624
+ updated_at: z.ZodString;
625
+ created_by: z.ZodString;
626
+ updated_by: z.ZodString;
627
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
628
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
629
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
630
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
631
+ } & {
632
+ entity_type: z.ZodLiteral<"person">;
633
+ name: z.ZodString;
634
+ role: z.ZodOptional<z.ZodString>;
635
+ status: z.ZodOptional<z.ZodEnum<["current", "former", "contractor", "client", "partner"]>>;
636
+ email: z.ZodOptional<z.ZodString>;
637
+ location: z.ZodOptional<z.ZodString>;
638
+ organization: z.ZodOptional<z.ZodString>;
639
+ years_experience: z.ZodOptional<z.ZodNumber>;
640
+ bio: z.ZodOptional<z.ZodString>;
641
+ projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
642
+ }, z.ZodTypeAny, "passthrough">>;
643
+ export type Person = z.infer<typeof PersonSchema>;
644
+ /**
645
+ * Client entity - client organizations and companies
646
+ */
647
+ export declare const ClientSchema: z.ZodObject<{
648
+ entity_id: z.ZodString;
649
+ created_at: z.ZodString;
650
+ updated_at: z.ZodString;
651
+ created_by: z.ZodString;
652
+ updated_by: z.ZodString;
653
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
654
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
655
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
656
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
657
+ } & {
658
+ entity_type: z.ZodLiteral<"client">;
659
+ name: z.ZodString;
660
+ type: z.ZodOptional<z.ZodEnum<["corporate", "nonprofit", "government", "startup", "agency", "other"]>>;
661
+ status: z.ZodDefault<z.ZodEnum<["active", "inactive", "prospect", "former"]>>;
662
+ industry: z.ZodOptional<z.ZodString>;
663
+ website: z.ZodOptional<z.ZodString>;
664
+ location: z.ZodOptional<z.ZodString>;
665
+ size: z.ZodOptional<z.ZodEnum<["small", "medium", "large", "enterprise"]>>;
666
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
667
+ projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
668
+ relationship_start: z.ZodOptional<z.ZodString>;
669
+ notes: z.ZodOptional<z.ZodString>;
670
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
671
+ entity_id: z.ZodString;
672
+ created_at: z.ZodString;
673
+ updated_at: z.ZodString;
674
+ created_by: z.ZodString;
675
+ updated_by: z.ZodString;
676
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
677
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
678
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
679
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
680
+ } & {
681
+ entity_type: z.ZodLiteral<"client">;
682
+ name: z.ZodString;
683
+ type: z.ZodOptional<z.ZodEnum<["corporate", "nonprofit", "government", "startup", "agency", "other"]>>;
684
+ status: z.ZodDefault<z.ZodEnum<["active", "inactive", "prospect", "former"]>>;
685
+ industry: z.ZodOptional<z.ZodString>;
686
+ website: z.ZodOptional<z.ZodString>;
687
+ location: z.ZodOptional<z.ZodString>;
688
+ size: z.ZodOptional<z.ZodEnum<["small", "medium", "large", "enterprise"]>>;
689
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
690
+ projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
691
+ relationship_start: z.ZodOptional<z.ZodString>;
692
+ notes: z.ZodOptional<z.ZodString>;
693
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
694
+ entity_id: z.ZodString;
695
+ created_at: z.ZodString;
696
+ updated_at: z.ZodString;
697
+ created_by: z.ZodString;
698
+ updated_by: z.ZodString;
699
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
700
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
701
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
702
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
703
+ } & {
704
+ entity_type: z.ZodLiteral<"client">;
705
+ name: z.ZodString;
706
+ type: z.ZodOptional<z.ZodEnum<["corporate", "nonprofit", "government", "startup", "agency", "other"]>>;
707
+ status: z.ZodDefault<z.ZodEnum<["active", "inactive", "prospect", "former"]>>;
708
+ industry: z.ZodOptional<z.ZodString>;
709
+ website: z.ZodOptional<z.ZodString>;
710
+ location: z.ZodOptional<z.ZodString>;
711
+ size: z.ZodOptional<z.ZodEnum<["small", "medium", "large", "enterprise"]>>;
712
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
713
+ projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
714
+ relationship_start: z.ZodOptional<z.ZodString>;
715
+ notes: z.ZodOptional<z.ZodString>;
716
+ }, z.ZodTypeAny, "passthrough">>;
717
+ export type Client = z.infer<typeof ClientSchema>;
718
+ /**
719
+ * Financial Plan entity - budgets, rates, forecasts
720
+ */
721
+ export declare const FinancialPlanSchema: z.ZodObject<{
722
+ entity_id: z.ZodString;
723
+ created_at: z.ZodString;
724
+ updated_at: z.ZodString;
725
+ created_by: z.ZodString;
726
+ updated_by: z.ZodString;
727
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
728
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
729
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
730
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
731
+ } & {
732
+ entity_type: z.ZodLiteral<"financial-plan">;
733
+ name: z.ZodString;
734
+ type: z.ZodOptional<z.ZodEnum<["budget", "forecast", "rates", "compensation"]>>;
735
+ period: z.ZodOptional<z.ZodString>;
736
+ project: z.ZodOptional<z.ZodString>;
737
+ amounts: z.ZodOptional<z.ZodString>;
738
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
739
+ entity_id: z.ZodString;
740
+ created_at: z.ZodString;
741
+ updated_at: z.ZodString;
742
+ created_by: z.ZodString;
743
+ updated_by: z.ZodString;
744
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
745
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
746
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
747
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
748
+ } & {
749
+ entity_type: z.ZodLiteral<"financial-plan">;
750
+ name: z.ZodString;
751
+ type: z.ZodOptional<z.ZodEnum<["budget", "forecast", "rates", "compensation"]>>;
752
+ period: z.ZodOptional<z.ZodString>;
753
+ project: z.ZodOptional<z.ZodString>;
754
+ amounts: z.ZodOptional<z.ZodString>;
755
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
756
+ entity_id: z.ZodString;
757
+ created_at: z.ZodString;
758
+ updated_at: z.ZodString;
759
+ created_by: z.ZodString;
760
+ updated_by: z.ZodString;
761
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
762
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
763
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
764
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
765
+ } & {
766
+ entity_type: z.ZodLiteral<"financial-plan">;
767
+ name: z.ZodString;
768
+ type: z.ZodOptional<z.ZodEnum<["budget", "forecast", "rates", "compensation"]>>;
769
+ period: z.ZodOptional<z.ZodString>;
770
+ project: z.ZodOptional<z.ZodString>;
771
+ amounts: z.ZodOptional<z.ZodString>;
772
+ }, z.ZodTypeAny, "passthrough">>;
773
+ export type FinancialPlan = z.infer<typeof FinancialPlanSchema>;
774
+ /**
775
+ * SHARED RESOURCE REPO ENTITIES
776
+ * Used in shared knowledge repositories
777
+ */
778
+ /**
779
+ * Template entity - document templates and boilerplates
780
+ */
781
+ export declare const TemplateSchema: z.ZodObject<{
782
+ entity_id: z.ZodString;
783
+ created_at: z.ZodString;
784
+ updated_at: z.ZodString;
785
+ created_by: z.ZodString;
786
+ updated_by: z.ZodString;
787
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
788
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
789
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
790
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
791
+ } & {
792
+ entity_type: z.ZodLiteral<"template">;
793
+ name: z.ZodString;
794
+ category: z.ZodOptional<z.ZodString>;
795
+ description: z.ZodOptional<z.ZodString>;
796
+ template_content: z.ZodOptional<z.ZodString>;
797
+ variables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
798
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
799
+ entity_id: z.ZodString;
800
+ created_at: z.ZodString;
801
+ updated_at: z.ZodString;
802
+ created_by: z.ZodString;
803
+ updated_by: z.ZodString;
804
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
805
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
806
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
807
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
808
+ } & {
809
+ entity_type: z.ZodLiteral<"template">;
810
+ name: z.ZodString;
811
+ category: z.ZodOptional<z.ZodString>;
812
+ description: z.ZodOptional<z.ZodString>;
813
+ template_content: z.ZodOptional<z.ZodString>;
814
+ variables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
815
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
816
+ entity_id: z.ZodString;
817
+ created_at: z.ZodString;
818
+ updated_at: z.ZodString;
819
+ created_by: z.ZodString;
820
+ updated_by: z.ZodString;
821
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
822
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
823
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
824
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
825
+ } & {
826
+ entity_type: z.ZodLiteral<"template">;
827
+ name: z.ZodString;
828
+ category: z.ZodOptional<z.ZodString>;
829
+ description: z.ZodOptional<z.ZodString>;
830
+ template_content: z.ZodOptional<z.ZodString>;
831
+ variables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
832
+ }, z.ZodTypeAny, "passthrough">>;
833
+ export type Template = z.infer<typeof TemplateSchema>;
834
+ /**
835
+ * Process entity - workflows and methodologies
836
+ */
837
+ export declare const ProcessSchema: z.ZodObject<{
838
+ entity_id: z.ZodString;
839
+ created_at: z.ZodString;
840
+ updated_at: z.ZodString;
841
+ created_by: z.ZodString;
842
+ updated_by: z.ZodString;
843
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
844
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
845
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
846
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
847
+ } & {
848
+ entity_type: z.ZodLiteral<"process">;
849
+ name: z.ZodString;
850
+ description: z.ZodOptional<z.ZodString>;
851
+ steps: z.ZodOptional<z.ZodString>;
852
+ related_areas: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
853
+ related_templates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
854
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
855
+ entity_id: z.ZodString;
856
+ created_at: z.ZodString;
857
+ updated_at: z.ZodString;
858
+ created_by: z.ZodString;
859
+ updated_by: z.ZodString;
860
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
861
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
862
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
863
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
864
+ } & {
865
+ entity_type: z.ZodLiteral<"process">;
866
+ name: z.ZodString;
867
+ description: z.ZodOptional<z.ZodString>;
868
+ steps: z.ZodOptional<z.ZodString>;
869
+ related_areas: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
870
+ related_templates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
871
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
872
+ entity_id: z.ZodString;
873
+ created_at: z.ZodString;
874
+ updated_at: z.ZodString;
875
+ created_by: z.ZodString;
876
+ updated_by: z.ZodString;
877
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
878
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
879
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
880
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
881
+ } & {
882
+ entity_type: z.ZodLiteral<"process">;
883
+ name: z.ZodString;
884
+ description: z.ZodOptional<z.ZodString>;
885
+ steps: z.ZodOptional<z.ZodString>;
886
+ related_areas: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
887
+ related_templates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
888
+ }, z.ZodTypeAny, "passthrough">>;
889
+ export type Process = z.infer<typeof ProcessSchema>;
890
+ /**
891
+ * Standard entity - guidelines and best practices
892
+ */
893
+ export declare const StandardSchema: z.ZodObject<{
894
+ entity_id: z.ZodString;
895
+ created_at: z.ZodString;
896
+ updated_at: z.ZodString;
897
+ created_by: z.ZodString;
898
+ updated_by: z.ZodString;
899
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
900
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
901
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
902
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
903
+ } & {
904
+ entity_type: z.ZodLiteral<"standard">;
905
+ name: z.ZodString;
906
+ category: z.ZodOptional<z.ZodString>;
907
+ description: z.ZodOptional<z.ZodString>;
908
+ guidelines: z.ZodOptional<z.ZodString>;
909
+ examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
910
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
911
+ entity_id: z.ZodString;
912
+ created_at: z.ZodString;
913
+ updated_at: z.ZodString;
914
+ created_by: z.ZodString;
915
+ updated_by: z.ZodString;
916
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
917
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
918
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
919
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
920
+ } & {
921
+ entity_type: z.ZodLiteral<"standard">;
922
+ name: z.ZodString;
923
+ category: z.ZodOptional<z.ZodString>;
924
+ description: z.ZodOptional<z.ZodString>;
925
+ guidelines: z.ZodOptional<z.ZodString>;
926
+ examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
927
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
928
+ entity_id: z.ZodString;
929
+ created_at: z.ZodString;
930
+ updated_at: z.ZodString;
931
+ created_by: z.ZodString;
932
+ updated_by: z.ZodString;
933
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
934
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
935
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
936
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
937
+ } & {
938
+ entity_type: z.ZodLiteral<"standard">;
939
+ name: z.ZodString;
940
+ category: z.ZodOptional<z.ZodString>;
941
+ description: z.ZodOptional<z.ZodString>;
942
+ guidelines: z.ZodOptional<z.ZodString>;
943
+ examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
944
+ }, z.ZodTypeAny, "passthrough">>;
945
+ export type Standard = z.infer<typeof StandardSchema>;
946
+ /**
947
+ * Reference entity - external references and inspirations
948
+ */
949
+ export declare const ReferenceSchema: z.ZodObject<{
950
+ entity_id: z.ZodString;
951
+ created_at: z.ZodString;
952
+ updated_at: z.ZodString;
953
+ created_by: z.ZodString;
954
+ updated_by: z.ZodString;
955
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
956
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
957
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
958
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
959
+ } & {
960
+ entity_type: z.ZodLiteral<"reference">;
961
+ name: z.ZodString;
962
+ type: z.ZodOptional<z.ZodEnum<["article", "video", "visualization", "website", "research", "podcast", "project", "tool"]>>;
963
+ date: z.ZodOptional<z.ZodString>;
964
+ source: z.ZodOptional<z.ZodString>;
965
+ link: z.ZodOptional<z.ZodString>;
966
+ related_projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
967
+ related_people: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
968
+ related_areas: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
969
+ description: z.ZodOptional<z.ZodString>;
970
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
971
+ entity_id: z.ZodString;
972
+ created_at: z.ZodString;
973
+ updated_at: z.ZodString;
974
+ created_by: z.ZodString;
975
+ updated_by: z.ZodString;
976
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
977
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
978
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
979
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
980
+ } & {
981
+ entity_type: z.ZodLiteral<"reference">;
982
+ name: z.ZodString;
983
+ type: z.ZodOptional<z.ZodEnum<["article", "video", "visualization", "website", "research", "podcast", "project", "tool"]>>;
984
+ date: z.ZodOptional<z.ZodString>;
985
+ source: z.ZodOptional<z.ZodString>;
986
+ link: z.ZodOptional<z.ZodString>;
987
+ related_projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
988
+ related_people: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
989
+ related_areas: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
990
+ description: z.ZodOptional<z.ZodString>;
991
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
992
+ entity_id: z.ZodString;
993
+ created_at: z.ZodString;
994
+ updated_at: z.ZodString;
995
+ created_by: z.ZodString;
996
+ updated_by: z.ZodString;
997
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
998
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
999
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1000
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1001
+ } & {
1002
+ entity_type: z.ZodLiteral<"reference">;
1003
+ name: z.ZodString;
1004
+ type: z.ZodOptional<z.ZodEnum<["article", "video", "visualization", "website", "research", "podcast", "project", "tool"]>>;
1005
+ date: z.ZodOptional<z.ZodString>;
1006
+ source: z.ZodOptional<z.ZodString>;
1007
+ link: z.ZodOptional<z.ZodString>;
1008
+ related_projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1009
+ related_people: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1010
+ related_areas: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1011
+ description: z.ZodOptional<z.ZodString>;
1012
+ }, z.ZodTypeAny, "passthrough">>;
1013
+ export type Reference = z.infer<typeof ReferenceSchema>;
1014
+ /**
1015
+ * Technique entity - methods and patterns
1016
+ */
1017
+ export declare const TechniqueSchema: z.ZodObject<{
1018
+ entity_id: z.ZodString;
1019
+ created_at: z.ZodString;
1020
+ updated_at: z.ZodString;
1021
+ created_by: z.ZodString;
1022
+ updated_by: z.ZodString;
1023
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1024
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1025
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1026
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1027
+ } & {
1028
+ entity_type: z.ZodLiteral<"technique">;
1029
+ name: z.ZodString;
1030
+ category: z.ZodOptional<z.ZodString>;
1031
+ description: z.ZodOptional<z.ZodString>;
1032
+ difficulty: z.ZodOptional<z.ZodEnum<["beginner", "intermediate", "advanced"]>>;
1033
+ related_frameworks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1034
+ examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1035
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1036
+ entity_id: z.ZodString;
1037
+ created_at: z.ZodString;
1038
+ updated_at: z.ZodString;
1039
+ created_by: z.ZodString;
1040
+ updated_by: z.ZodString;
1041
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1042
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1043
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1044
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1045
+ } & {
1046
+ entity_type: z.ZodLiteral<"technique">;
1047
+ name: z.ZodString;
1048
+ category: z.ZodOptional<z.ZodString>;
1049
+ description: z.ZodOptional<z.ZodString>;
1050
+ difficulty: z.ZodOptional<z.ZodEnum<["beginner", "intermediate", "advanced"]>>;
1051
+ related_frameworks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1052
+ examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1053
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1054
+ entity_id: z.ZodString;
1055
+ created_at: z.ZodString;
1056
+ updated_at: z.ZodString;
1057
+ created_by: z.ZodString;
1058
+ updated_by: z.ZodString;
1059
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1060
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1061
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1062
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1063
+ } & {
1064
+ entity_type: z.ZodLiteral<"technique">;
1065
+ name: z.ZodString;
1066
+ category: z.ZodOptional<z.ZodString>;
1067
+ description: z.ZodOptional<z.ZodString>;
1068
+ difficulty: z.ZodOptional<z.ZodEnum<["beginner", "intermediate", "advanced"]>>;
1069
+ related_frameworks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1070
+ examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1071
+ }, z.ZodTypeAny, "passthrough">>;
1072
+ export type Technique = z.infer<typeof TechniqueSchema>;
1073
+ /**
1074
+ * Dataset entity - structured tabular data with CSV body
1075
+ */
1076
+ export declare const ColumnDefinitionSchema: z.ZodObject<{
1077
+ name: z.ZodString;
1078
+ type: z.ZodEnum<["string", "number", "boolean", "date"]>;
1079
+ required: z.ZodOptional<z.ZodBoolean>;
1080
+ description: z.ZodOptional<z.ZodString>;
1081
+ }, "strip", z.ZodTypeAny, {
1082
+ name: string;
1083
+ type: "string" | "number" | "boolean" | "date";
1084
+ description?: string | undefined;
1085
+ required?: boolean | undefined;
1086
+ }, {
1087
+ name: string;
1088
+ type: "string" | "number" | "boolean" | "date";
1089
+ description?: string | undefined;
1090
+ required?: boolean | undefined;
1091
+ }>;
1092
+ export type ColumnDefinition = z.infer<typeof ColumnDefinitionSchema>;
1093
+ export declare const DatasetSchema: z.ZodObject<{
1094
+ entity_id: z.ZodString;
1095
+ created_at: z.ZodString;
1096
+ updated_at: z.ZodString;
1097
+ created_by: z.ZodString;
1098
+ updated_by: z.ZodString;
1099
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1100
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1101
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1102
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1103
+ } & {
1104
+ entity_type: z.ZodLiteral<"dataset">;
1105
+ name: z.ZodString;
1106
+ schema: z.ZodArray<z.ZodObject<{
1107
+ name: z.ZodString;
1108
+ type: z.ZodEnum<["string", "number", "boolean", "date"]>;
1109
+ required: z.ZodOptional<z.ZodBoolean>;
1110
+ description: z.ZodOptional<z.ZodString>;
1111
+ }, "strip", z.ZodTypeAny, {
1112
+ name: string;
1113
+ type: "string" | "number" | "boolean" | "date";
1114
+ description?: string | undefined;
1115
+ required?: boolean | undefined;
1116
+ }, {
1117
+ name: string;
1118
+ type: "string" | "number" | "boolean" | "date";
1119
+ description?: string | undefined;
1120
+ required?: boolean | undefined;
1121
+ }>, "many">;
1122
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1123
+ entity_id: z.ZodString;
1124
+ created_at: z.ZodString;
1125
+ updated_at: z.ZodString;
1126
+ created_by: z.ZodString;
1127
+ updated_by: z.ZodString;
1128
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1129
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1130
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1131
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1132
+ } & {
1133
+ entity_type: z.ZodLiteral<"dataset">;
1134
+ name: z.ZodString;
1135
+ schema: z.ZodArray<z.ZodObject<{
1136
+ name: z.ZodString;
1137
+ type: z.ZodEnum<["string", "number", "boolean", "date"]>;
1138
+ required: z.ZodOptional<z.ZodBoolean>;
1139
+ description: z.ZodOptional<z.ZodString>;
1140
+ }, "strip", z.ZodTypeAny, {
1141
+ name: string;
1142
+ type: "string" | "number" | "boolean" | "date";
1143
+ description?: string | undefined;
1144
+ required?: boolean | undefined;
1145
+ }, {
1146
+ name: string;
1147
+ type: "string" | "number" | "boolean" | "date";
1148
+ description?: string | undefined;
1149
+ required?: boolean | undefined;
1150
+ }>, "many">;
1151
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1152
+ entity_id: z.ZodString;
1153
+ created_at: z.ZodString;
1154
+ updated_at: z.ZodString;
1155
+ created_by: z.ZodString;
1156
+ updated_by: z.ZodString;
1157
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1158
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1159
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1160
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1161
+ } & {
1162
+ entity_type: z.ZodLiteral<"dataset">;
1163
+ name: z.ZodString;
1164
+ schema: z.ZodArray<z.ZodObject<{
1165
+ name: z.ZodString;
1166
+ type: z.ZodEnum<["string", "number", "boolean", "date"]>;
1167
+ required: z.ZodOptional<z.ZodBoolean>;
1168
+ description: z.ZodOptional<z.ZodString>;
1169
+ }, "strip", z.ZodTypeAny, {
1170
+ name: string;
1171
+ type: "string" | "number" | "boolean" | "date";
1172
+ description?: string | undefined;
1173
+ required?: boolean | undefined;
1174
+ }, {
1175
+ name: string;
1176
+ type: "string" | "number" | "boolean" | "date";
1177
+ description?: string | undefined;
1178
+ required?: boolean | undefined;
1179
+ }>, "many">;
1180
+ }, z.ZodTypeAny, "passthrough">>;
1181
+ export type Dataset = z.infer<typeof DatasetSchema>;
1182
+ export type DatasetRow = Record<string, string | number | boolean | null>;
1183
+ /**
1184
+ * Deck — presentation deck managed by the Schema Slides app plugin.
1185
+ * The document body is the full slide markdown (HTML comment directives + slide content).
1186
+ */
1187
+ export declare const DeckSchema: z.ZodObject<{
1188
+ entity_id: z.ZodString;
1189
+ created_at: z.ZodString;
1190
+ updated_at: z.ZodString;
1191
+ created_by: z.ZodString;
1192
+ updated_by: z.ZodString;
1193
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1194
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1195
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1196
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1197
+ } & {
1198
+ entity_type: z.ZodLiteral<"deck">;
1199
+ title: z.ZodString;
1200
+ client: z.ZodOptional<z.ZodString>;
1201
+ date: z.ZodString;
1202
+ phase: z.ZodOptional<z.ZodString>;
1203
+ theme: z.ZodDefault<z.ZodEnum<["dark", "light"]>>;
1204
+ status: z.ZodDefault<z.ZodEnum<["draft", "review", "approved"]>>;
1205
+ related_project: z.ZodOptional<z.ZodString>;
1206
+ related_client: z.ZodOptional<z.ZodString>;
1207
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1208
+ entity_id: z.ZodString;
1209
+ created_at: z.ZodString;
1210
+ updated_at: z.ZodString;
1211
+ created_by: z.ZodString;
1212
+ updated_by: z.ZodString;
1213
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1214
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1215
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1216
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1217
+ } & {
1218
+ entity_type: z.ZodLiteral<"deck">;
1219
+ title: z.ZodString;
1220
+ client: z.ZodOptional<z.ZodString>;
1221
+ date: z.ZodString;
1222
+ phase: z.ZodOptional<z.ZodString>;
1223
+ theme: z.ZodDefault<z.ZodEnum<["dark", "light"]>>;
1224
+ status: z.ZodDefault<z.ZodEnum<["draft", "review", "approved"]>>;
1225
+ related_project: z.ZodOptional<z.ZodString>;
1226
+ related_client: z.ZodOptional<z.ZodString>;
1227
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1228
+ entity_id: z.ZodString;
1229
+ created_at: z.ZodString;
1230
+ updated_at: z.ZodString;
1231
+ created_by: z.ZodString;
1232
+ updated_by: z.ZodString;
1233
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1234
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1235
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1236
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1237
+ } & {
1238
+ entity_type: z.ZodLiteral<"deck">;
1239
+ title: z.ZodString;
1240
+ client: z.ZodOptional<z.ZodString>;
1241
+ date: z.ZodString;
1242
+ phase: z.ZodOptional<z.ZodString>;
1243
+ theme: z.ZodDefault<z.ZodEnum<["dark", "light"]>>;
1244
+ status: z.ZodDefault<z.ZodEnum<["draft", "review", "approved"]>>;
1245
+ related_project: z.ZodOptional<z.ZodString>;
1246
+ related_client: z.ZodOptional<z.ZodString>;
1247
+ }, z.ZodTypeAny, "passthrough">>;
1248
+ export type Deck = z.infer<typeof DeckSchema>;
1249
+ /**
1250
+ * Schema registry - maps entity types to their schemas
1251
+ */
1252
+ export declare const ENTITY_SCHEMAS: {
1253
+ readonly project: z.ZodObject<{
1254
+ entity_id: z.ZodString;
1255
+ created_at: z.ZodString;
1256
+ updated_at: z.ZodString;
1257
+ created_by: z.ZodString;
1258
+ updated_by: z.ZodString;
1259
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1260
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1261
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1262
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1263
+ } & {
1264
+ entity_type: z.ZodLiteral<"project">;
1265
+ name: z.ZodString;
1266
+ client: z.ZodOptional<z.ZodString>;
1267
+ website_url: z.ZodOptional<z.ZodString>;
1268
+ start_date: z.ZodOptional<z.ZodString>;
1269
+ end_date: z.ZodOptional<z.ZodString>;
1270
+ target_completion: z.ZodOptional<z.ZodString>;
1271
+ year_released: z.ZodOptional<z.ZodNumber>;
1272
+ status: z.ZodOptional<z.ZodEnum<["planning", "active", "on-hold", "completed", "archived"]>>;
1273
+ related_projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1274
+ related_areas: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1275
+ team: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1276
+ deliverables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1277
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1278
+ entity_id: z.ZodString;
1279
+ created_at: z.ZodString;
1280
+ updated_at: z.ZodString;
1281
+ created_by: z.ZodString;
1282
+ updated_by: z.ZodString;
1283
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1284
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1285
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1286
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1287
+ } & {
1288
+ entity_type: z.ZodLiteral<"project">;
1289
+ name: z.ZodString;
1290
+ client: z.ZodOptional<z.ZodString>;
1291
+ website_url: z.ZodOptional<z.ZodString>;
1292
+ start_date: z.ZodOptional<z.ZodString>;
1293
+ end_date: z.ZodOptional<z.ZodString>;
1294
+ target_completion: z.ZodOptional<z.ZodString>;
1295
+ year_released: z.ZodOptional<z.ZodNumber>;
1296
+ status: z.ZodOptional<z.ZodEnum<["planning", "active", "on-hold", "completed", "archived"]>>;
1297
+ related_projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1298
+ related_areas: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1299
+ team: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1300
+ deliverables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1301
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1302
+ entity_id: z.ZodString;
1303
+ created_at: z.ZodString;
1304
+ updated_at: z.ZodString;
1305
+ created_by: z.ZodString;
1306
+ updated_by: z.ZodString;
1307
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1308
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1309
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1310
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1311
+ } & {
1312
+ entity_type: z.ZodLiteral<"project">;
1313
+ name: z.ZodString;
1314
+ client: z.ZodOptional<z.ZodString>;
1315
+ website_url: z.ZodOptional<z.ZodString>;
1316
+ start_date: z.ZodOptional<z.ZodString>;
1317
+ end_date: z.ZodOptional<z.ZodString>;
1318
+ target_completion: z.ZodOptional<z.ZodString>;
1319
+ year_released: z.ZodOptional<z.ZodNumber>;
1320
+ status: z.ZodOptional<z.ZodEnum<["planning", "active", "on-hold", "completed", "archived"]>>;
1321
+ related_projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1322
+ related_areas: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1323
+ team: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1324
+ deliverables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1325
+ }, z.ZodTypeAny, "passthrough">>;
1326
+ readonly meeting: z.ZodObject<{
1327
+ entity_id: z.ZodString;
1328
+ created_at: z.ZodString;
1329
+ updated_at: z.ZodString;
1330
+ created_by: z.ZodString;
1331
+ updated_by: z.ZodString;
1332
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1333
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1334
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1335
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1336
+ } & {
1337
+ entity_type: z.ZodLiteral<"meeting">;
1338
+ name: z.ZodString;
1339
+ date: z.ZodString;
1340
+ attendees: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1341
+ related_projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1342
+ related_organizations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1343
+ related_areas: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1344
+ agenda: z.ZodOptional<z.ZodString>;
1345
+ notes: z.ZodOptional<z.ZodString>;
1346
+ action_items: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1347
+ summary: z.ZodOptional<z.ZodString>;
1348
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1349
+ entity_id: z.ZodString;
1350
+ created_at: z.ZodString;
1351
+ updated_at: z.ZodString;
1352
+ created_by: z.ZodString;
1353
+ updated_by: z.ZodString;
1354
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1355
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1356
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1357
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1358
+ } & {
1359
+ entity_type: z.ZodLiteral<"meeting">;
1360
+ name: z.ZodString;
1361
+ date: z.ZodString;
1362
+ attendees: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1363
+ related_projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1364
+ related_organizations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1365
+ related_areas: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1366
+ agenda: z.ZodOptional<z.ZodString>;
1367
+ notes: z.ZodOptional<z.ZodString>;
1368
+ action_items: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1369
+ summary: z.ZodOptional<z.ZodString>;
1370
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1371
+ entity_id: z.ZodString;
1372
+ created_at: z.ZodString;
1373
+ updated_at: z.ZodString;
1374
+ created_by: z.ZodString;
1375
+ updated_by: z.ZodString;
1376
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1377
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1378
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1379
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1380
+ } & {
1381
+ entity_type: z.ZodLiteral<"meeting">;
1382
+ name: z.ZodString;
1383
+ date: z.ZodString;
1384
+ attendees: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1385
+ related_projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1386
+ related_organizations: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1387
+ related_areas: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1388
+ agenda: z.ZodOptional<z.ZodString>;
1389
+ notes: z.ZodOptional<z.ZodString>;
1390
+ action_items: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1391
+ summary: z.ZodOptional<z.ZodString>;
1392
+ }, z.ZodTypeAny, "passthrough">>;
1393
+ readonly decision: z.ZodObject<{
1394
+ entity_id: z.ZodString;
1395
+ created_at: z.ZodString;
1396
+ updated_at: z.ZodString;
1397
+ created_by: z.ZodString;
1398
+ updated_by: z.ZodString;
1399
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1400
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1401
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1402
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1403
+ } & {
1404
+ entity_type: z.ZodLiteral<"decision">;
1405
+ id: z.ZodString;
1406
+ title: z.ZodString;
1407
+ date: z.ZodString;
1408
+ status: z.ZodDefault<z.ZodEnum<["proposed", "accepted", "rejected", "deprecated", "superseded"]>>;
1409
+ decision_makers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1410
+ stakeholders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1411
+ related_decisions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1412
+ supersedes: z.ZodOptional<z.ZodString>;
1413
+ superseded_by: z.ZodOptional<z.ZodString>;
1414
+ context: z.ZodOptional<z.ZodString>;
1415
+ alternatives: z.ZodOptional<z.ZodString>;
1416
+ decision: z.ZodOptional<z.ZodString>;
1417
+ rationale: z.ZodOptional<z.ZodString>;
1418
+ consequences: z.ZodOptional<z.ZodString>;
1419
+ enables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1420
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1421
+ entity_id: z.ZodString;
1422
+ created_at: z.ZodString;
1423
+ updated_at: z.ZodString;
1424
+ created_by: z.ZodString;
1425
+ updated_by: z.ZodString;
1426
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1427
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1428
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1429
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1430
+ } & {
1431
+ entity_type: z.ZodLiteral<"decision">;
1432
+ id: z.ZodString;
1433
+ title: z.ZodString;
1434
+ date: z.ZodString;
1435
+ status: z.ZodDefault<z.ZodEnum<["proposed", "accepted", "rejected", "deprecated", "superseded"]>>;
1436
+ decision_makers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1437
+ stakeholders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1438
+ related_decisions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1439
+ supersedes: z.ZodOptional<z.ZodString>;
1440
+ superseded_by: z.ZodOptional<z.ZodString>;
1441
+ context: z.ZodOptional<z.ZodString>;
1442
+ alternatives: z.ZodOptional<z.ZodString>;
1443
+ decision: z.ZodOptional<z.ZodString>;
1444
+ rationale: z.ZodOptional<z.ZodString>;
1445
+ consequences: z.ZodOptional<z.ZodString>;
1446
+ enables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1447
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1448
+ entity_id: z.ZodString;
1449
+ created_at: z.ZodString;
1450
+ updated_at: z.ZodString;
1451
+ created_by: z.ZodString;
1452
+ updated_by: z.ZodString;
1453
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1454
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1455
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1456
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1457
+ } & {
1458
+ entity_type: z.ZodLiteral<"decision">;
1459
+ id: z.ZodString;
1460
+ title: z.ZodString;
1461
+ date: z.ZodString;
1462
+ status: z.ZodDefault<z.ZodEnum<["proposed", "accepted", "rejected", "deprecated", "superseded"]>>;
1463
+ decision_makers: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1464
+ stakeholders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1465
+ related_decisions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1466
+ supersedes: z.ZodOptional<z.ZodString>;
1467
+ superseded_by: z.ZodOptional<z.ZodString>;
1468
+ context: z.ZodOptional<z.ZodString>;
1469
+ alternatives: z.ZodOptional<z.ZodString>;
1470
+ decision: z.ZodOptional<z.ZodString>;
1471
+ rationale: z.ZodOptional<z.ZodString>;
1472
+ consequences: z.ZodOptional<z.ZodString>;
1473
+ enables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1474
+ }, z.ZodTypeAny, "passthrough">>;
1475
+ readonly brief: z.ZodObject<{
1476
+ entity_id: z.ZodString;
1477
+ created_at: z.ZodString;
1478
+ updated_at: z.ZodString;
1479
+ created_by: z.ZodString;
1480
+ updated_by: z.ZodString;
1481
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1482
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1483
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1484
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1485
+ } & {
1486
+ entity_type: z.ZodLiteral<"brief">;
1487
+ project_name: z.ZodString;
1488
+ client: z.ZodOptional<z.ZodString>;
1489
+ start_date: z.ZodOptional<z.ZodString>;
1490
+ target_completion: z.ZodOptional<z.ZodString>;
1491
+ status: z.ZodDefault<z.ZodEnum<["planning", "approved", "in-progress", "completed"]>>;
1492
+ objectives: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1493
+ target_users: z.ZodOptional<z.ZodString>;
1494
+ success_criteria: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1495
+ constraints: z.ZodOptional<z.ZodString>;
1496
+ stakeholders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1497
+ deliverables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1498
+ related_projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1499
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1500
+ entity_id: z.ZodString;
1501
+ created_at: z.ZodString;
1502
+ updated_at: z.ZodString;
1503
+ created_by: z.ZodString;
1504
+ updated_by: z.ZodString;
1505
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1506
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1507
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1508
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1509
+ } & {
1510
+ entity_type: z.ZodLiteral<"brief">;
1511
+ project_name: z.ZodString;
1512
+ client: z.ZodOptional<z.ZodString>;
1513
+ start_date: z.ZodOptional<z.ZodString>;
1514
+ target_completion: z.ZodOptional<z.ZodString>;
1515
+ status: z.ZodDefault<z.ZodEnum<["planning", "approved", "in-progress", "completed"]>>;
1516
+ objectives: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1517
+ target_users: z.ZodOptional<z.ZodString>;
1518
+ success_criteria: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1519
+ constraints: z.ZodOptional<z.ZodString>;
1520
+ stakeholders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1521
+ deliverables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1522
+ related_projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1523
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1524
+ entity_id: z.ZodString;
1525
+ created_at: z.ZodString;
1526
+ updated_at: z.ZodString;
1527
+ created_by: z.ZodString;
1528
+ updated_by: z.ZodString;
1529
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1530
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1531
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1532
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1533
+ } & {
1534
+ entity_type: z.ZodLiteral<"brief">;
1535
+ project_name: z.ZodString;
1536
+ client: z.ZodOptional<z.ZodString>;
1537
+ start_date: z.ZodOptional<z.ZodString>;
1538
+ target_completion: z.ZodOptional<z.ZodString>;
1539
+ status: z.ZodDefault<z.ZodEnum<["planning", "approved", "in-progress", "completed"]>>;
1540
+ objectives: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1541
+ target_users: z.ZodOptional<z.ZodString>;
1542
+ success_criteria: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1543
+ constraints: z.ZodOptional<z.ZodString>;
1544
+ stakeholders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1545
+ deliverables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1546
+ related_projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1547
+ }, z.ZodTypeAny, "passthrough">>;
1548
+ readonly artifact: z.ZodObject<{
1549
+ entity_id: z.ZodString;
1550
+ created_at: z.ZodString;
1551
+ updated_at: z.ZodString;
1552
+ created_by: z.ZodString;
1553
+ updated_by: z.ZodString;
1554
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1555
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1556
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1557
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1558
+ } & {
1559
+ entity_type: z.ZodLiteral<"artifact">;
1560
+ name: z.ZodString;
1561
+ type: z.ZodOptional<z.ZodString>;
1562
+ project: z.ZodOptional<z.ZodString>;
1563
+ date_created: z.ZodOptional<z.ZodString>;
1564
+ description: z.ZodOptional<z.ZodString>;
1565
+ url: z.ZodOptional<z.ZodString>;
1566
+ version: z.ZodOptional<z.ZodString>;
1567
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1568
+ entity_id: z.ZodString;
1569
+ created_at: z.ZodString;
1570
+ updated_at: z.ZodString;
1571
+ created_by: z.ZodString;
1572
+ updated_by: z.ZodString;
1573
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1574
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1575
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1576
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1577
+ } & {
1578
+ entity_type: z.ZodLiteral<"artifact">;
1579
+ name: z.ZodString;
1580
+ type: z.ZodOptional<z.ZodString>;
1581
+ project: z.ZodOptional<z.ZodString>;
1582
+ date_created: z.ZodOptional<z.ZodString>;
1583
+ description: z.ZodOptional<z.ZodString>;
1584
+ url: z.ZodOptional<z.ZodString>;
1585
+ version: z.ZodOptional<z.ZodString>;
1586
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1587
+ entity_id: z.ZodString;
1588
+ created_at: z.ZodString;
1589
+ updated_at: z.ZodString;
1590
+ created_by: z.ZodString;
1591
+ updated_by: z.ZodString;
1592
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1593
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1594
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1595
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1596
+ } & {
1597
+ entity_type: z.ZodLiteral<"artifact">;
1598
+ name: z.ZodString;
1599
+ type: z.ZodOptional<z.ZodString>;
1600
+ project: z.ZodOptional<z.ZodString>;
1601
+ date_created: z.ZodOptional<z.ZodString>;
1602
+ description: z.ZodOptional<z.ZodString>;
1603
+ url: z.ZodOptional<z.ZodString>;
1604
+ version: z.ZodOptional<z.ZodString>;
1605
+ }, z.ZodTypeAny, "passthrough">>;
1606
+ readonly proposal: z.ZodObject<{
1607
+ entity_id: z.ZodString;
1608
+ created_at: z.ZodString;
1609
+ updated_at: z.ZodString;
1610
+ created_by: z.ZodString;
1611
+ updated_by: z.ZodString;
1612
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1613
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1614
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1615
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1616
+ } & {
1617
+ entity_type: z.ZodLiteral<"proposal">;
1618
+ name: z.ZodString;
1619
+ client: z.ZodOptional<z.ZodString>;
1620
+ project_name: z.ZodOptional<z.ZodString>;
1621
+ date: z.ZodOptional<z.ZodString>;
1622
+ version: z.ZodOptional<z.ZodString>;
1623
+ status: z.ZodDefault<z.ZodEnum<["draft", "sent", "accepted", "rejected", "negotiating"]>>;
1624
+ deliverables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1625
+ phases: z.ZodOptional<z.ZodString>;
1626
+ team: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1627
+ schedule: z.ZodOptional<z.ZodString>;
1628
+ fees: z.ZodOptional<z.ZodString>;
1629
+ payment_terms: z.ZodOptional<z.ZodString>;
1630
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1631
+ entity_id: z.ZodString;
1632
+ created_at: z.ZodString;
1633
+ updated_at: z.ZodString;
1634
+ created_by: z.ZodString;
1635
+ updated_by: z.ZodString;
1636
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1637
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1638
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1639
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1640
+ } & {
1641
+ entity_type: z.ZodLiteral<"proposal">;
1642
+ name: z.ZodString;
1643
+ client: z.ZodOptional<z.ZodString>;
1644
+ project_name: z.ZodOptional<z.ZodString>;
1645
+ date: z.ZodOptional<z.ZodString>;
1646
+ version: z.ZodOptional<z.ZodString>;
1647
+ status: z.ZodDefault<z.ZodEnum<["draft", "sent", "accepted", "rejected", "negotiating"]>>;
1648
+ deliverables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1649
+ phases: z.ZodOptional<z.ZodString>;
1650
+ team: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1651
+ schedule: z.ZodOptional<z.ZodString>;
1652
+ fees: z.ZodOptional<z.ZodString>;
1653
+ payment_terms: z.ZodOptional<z.ZodString>;
1654
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1655
+ entity_id: z.ZodString;
1656
+ created_at: z.ZodString;
1657
+ updated_at: z.ZodString;
1658
+ created_by: z.ZodString;
1659
+ updated_by: z.ZodString;
1660
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1661
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1662
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1663
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1664
+ } & {
1665
+ entity_type: z.ZodLiteral<"proposal">;
1666
+ name: z.ZodString;
1667
+ client: z.ZodOptional<z.ZodString>;
1668
+ project_name: z.ZodOptional<z.ZodString>;
1669
+ date: z.ZodOptional<z.ZodString>;
1670
+ version: z.ZodOptional<z.ZodString>;
1671
+ status: z.ZodDefault<z.ZodEnum<["draft", "sent", "accepted", "rejected", "negotiating"]>>;
1672
+ deliverables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1673
+ phases: z.ZodOptional<z.ZodString>;
1674
+ team: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1675
+ schedule: z.ZodOptional<z.ZodString>;
1676
+ fees: z.ZodOptional<z.ZodString>;
1677
+ payment_terms: z.ZodOptional<z.ZodString>;
1678
+ }, z.ZodTypeAny, "passthrough">>;
1679
+ readonly contract: z.ZodObject<{
1680
+ entity_id: z.ZodString;
1681
+ created_at: z.ZodString;
1682
+ updated_at: z.ZodString;
1683
+ created_by: z.ZodString;
1684
+ updated_by: z.ZodString;
1685
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1686
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1687
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1688
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1689
+ } & {
1690
+ entity_type: z.ZodLiteral<"contract">;
1691
+ name: z.ZodString;
1692
+ type: z.ZodOptional<z.ZodEnum<["sow", "msa", "nda", "other"]>>;
1693
+ client: z.ZodOptional<z.ZodString>;
1694
+ project: z.ZodOptional<z.ZodString>;
1695
+ date_signed: z.ZodOptional<z.ZodString>;
1696
+ start_date: z.ZodOptional<z.ZodString>;
1697
+ end_date: z.ZodOptional<z.ZodString>;
1698
+ status: z.ZodDefault<z.ZodEnum<["draft", "pending", "signed", "completed", "terminated"]>>;
1699
+ value: z.ZodOptional<z.ZodString>;
1700
+ payment_terms: z.ZodOptional<z.ZodString>;
1701
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1702
+ entity_id: z.ZodString;
1703
+ created_at: z.ZodString;
1704
+ updated_at: z.ZodString;
1705
+ created_by: z.ZodString;
1706
+ updated_by: z.ZodString;
1707
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1708
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1709
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1710
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1711
+ } & {
1712
+ entity_type: z.ZodLiteral<"contract">;
1713
+ name: z.ZodString;
1714
+ type: z.ZodOptional<z.ZodEnum<["sow", "msa", "nda", "other"]>>;
1715
+ client: z.ZodOptional<z.ZodString>;
1716
+ project: z.ZodOptional<z.ZodString>;
1717
+ date_signed: z.ZodOptional<z.ZodString>;
1718
+ start_date: z.ZodOptional<z.ZodString>;
1719
+ end_date: z.ZodOptional<z.ZodString>;
1720
+ status: z.ZodDefault<z.ZodEnum<["draft", "pending", "signed", "completed", "terminated"]>>;
1721
+ value: z.ZodOptional<z.ZodString>;
1722
+ payment_terms: z.ZodOptional<z.ZodString>;
1723
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1724
+ entity_id: z.ZodString;
1725
+ created_at: z.ZodString;
1726
+ updated_at: z.ZodString;
1727
+ created_by: z.ZodString;
1728
+ updated_by: z.ZodString;
1729
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1730
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1731
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1732
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1733
+ } & {
1734
+ entity_type: z.ZodLiteral<"contract">;
1735
+ name: z.ZodString;
1736
+ type: z.ZodOptional<z.ZodEnum<["sow", "msa", "nda", "other"]>>;
1737
+ client: z.ZodOptional<z.ZodString>;
1738
+ project: z.ZodOptional<z.ZodString>;
1739
+ date_signed: z.ZodOptional<z.ZodString>;
1740
+ start_date: z.ZodOptional<z.ZodString>;
1741
+ end_date: z.ZodOptional<z.ZodString>;
1742
+ status: z.ZodDefault<z.ZodEnum<["draft", "pending", "signed", "completed", "terminated"]>>;
1743
+ value: z.ZodOptional<z.ZodString>;
1744
+ payment_terms: z.ZodOptional<z.ZodString>;
1745
+ }, z.ZodTypeAny, "passthrough">>;
1746
+ readonly person: z.ZodObject<{
1747
+ entity_id: z.ZodString;
1748
+ created_at: z.ZodString;
1749
+ updated_at: z.ZodString;
1750
+ created_by: z.ZodString;
1751
+ updated_by: z.ZodString;
1752
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1753
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1754
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1755
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1756
+ } & {
1757
+ entity_type: z.ZodLiteral<"person">;
1758
+ name: z.ZodString;
1759
+ role: z.ZodOptional<z.ZodString>;
1760
+ status: z.ZodOptional<z.ZodEnum<["current", "former", "contractor", "client", "partner"]>>;
1761
+ email: z.ZodOptional<z.ZodString>;
1762
+ location: z.ZodOptional<z.ZodString>;
1763
+ organization: z.ZodOptional<z.ZodString>;
1764
+ years_experience: z.ZodOptional<z.ZodNumber>;
1765
+ bio: z.ZodOptional<z.ZodString>;
1766
+ projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1767
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1768
+ entity_id: z.ZodString;
1769
+ created_at: z.ZodString;
1770
+ updated_at: z.ZodString;
1771
+ created_by: z.ZodString;
1772
+ updated_by: z.ZodString;
1773
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1774
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1775
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1776
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1777
+ } & {
1778
+ entity_type: z.ZodLiteral<"person">;
1779
+ name: z.ZodString;
1780
+ role: z.ZodOptional<z.ZodString>;
1781
+ status: z.ZodOptional<z.ZodEnum<["current", "former", "contractor", "client", "partner"]>>;
1782
+ email: z.ZodOptional<z.ZodString>;
1783
+ location: z.ZodOptional<z.ZodString>;
1784
+ organization: z.ZodOptional<z.ZodString>;
1785
+ years_experience: z.ZodOptional<z.ZodNumber>;
1786
+ bio: z.ZodOptional<z.ZodString>;
1787
+ projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1788
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1789
+ entity_id: z.ZodString;
1790
+ created_at: z.ZodString;
1791
+ updated_at: z.ZodString;
1792
+ created_by: z.ZodString;
1793
+ updated_by: z.ZodString;
1794
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1795
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1796
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1797
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1798
+ } & {
1799
+ entity_type: z.ZodLiteral<"person">;
1800
+ name: z.ZodString;
1801
+ role: z.ZodOptional<z.ZodString>;
1802
+ status: z.ZodOptional<z.ZodEnum<["current", "former", "contractor", "client", "partner"]>>;
1803
+ email: z.ZodOptional<z.ZodString>;
1804
+ location: z.ZodOptional<z.ZodString>;
1805
+ organization: z.ZodOptional<z.ZodString>;
1806
+ years_experience: z.ZodOptional<z.ZodNumber>;
1807
+ bio: z.ZodOptional<z.ZodString>;
1808
+ projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1809
+ }, z.ZodTypeAny, "passthrough">>;
1810
+ readonly client: z.ZodObject<{
1811
+ entity_id: z.ZodString;
1812
+ created_at: z.ZodString;
1813
+ updated_at: z.ZodString;
1814
+ created_by: z.ZodString;
1815
+ updated_by: z.ZodString;
1816
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1817
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1818
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1819
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1820
+ } & {
1821
+ entity_type: z.ZodLiteral<"client">;
1822
+ name: z.ZodString;
1823
+ type: z.ZodOptional<z.ZodEnum<["corporate", "nonprofit", "government", "startup", "agency", "other"]>>;
1824
+ status: z.ZodDefault<z.ZodEnum<["active", "inactive", "prospect", "former"]>>;
1825
+ industry: z.ZodOptional<z.ZodString>;
1826
+ website: z.ZodOptional<z.ZodString>;
1827
+ location: z.ZodOptional<z.ZodString>;
1828
+ size: z.ZodOptional<z.ZodEnum<["small", "medium", "large", "enterprise"]>>;
1829
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1830
+ projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1831
+ relationship_start: z.ZodOptional<z.ZodString>;
1832
+ notes: z.ZodOptional<z.ZodString>;
1833
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1834
+ entity_id: z.ZodString;
1835
+ created_at: z.ZodString;
1836
+ updated_at: z.ZodString;
1837
+ created_by: z.ZodString;
1838
+ updated_by: z.ZodString;
1839
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1840
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1841
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1842
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1843
+ } & {
1844
+ entity_type: z.ZodLiteral<"client">;
1845
+ name: z.ZodString;
1846
+ type: z.ZodOptional<z.ZodEnum<["corporate", "nonprofit", "government", "startup", "agency", "other"]>>;
1847
+ status: z.ZodDefault<z.ZodEnum<["active", "inactive", "prospect", "former"]>>;
1848
+ industry: z.ZodOptional<z.ZodString>;
1849
+ website: z.ZodOptional<z.ZodString>;
1850
+ location: z.ZodOptional<z.ZodString>;
1851
+ size: z.ZodOptional<z.ZodEnum<["small", "medium", "large", "enterprise"]>>;
1852
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1853
+ projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1854
+ relationship_start: z.ZodOptional<z.ZodString>;
1855
+ notes: z.ZodOptional<z.ZodString>;
1856
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1857
+ entity_id: z.ZodString;
1858
+ created_at: z.ZodString;
1859
+ updated_at: z.ZodString;
1860
+ created_by: z.ZodString;
1861
+ updated_by: z.ZodString;
1862
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1863
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1864
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1865
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1866
+ } & {
1867
+ entity_type: z.ZodLiteral<"client">;
1868
+ name: z.ZodString;
1869
+ type: z.ZodOptional<z.ZodEnum<["corporate", "nonprofit", "government", "startup", "agency", "other"]>>;
1870
+ status: z.ZodDefault<z.ZodEnum<["active", "inactive", "prospect", "former"]>>;
1871
+ industry: z.ZodOptional<z.ZodString>;
1872
+ website: z.ZodOptional<z.ZodString>;
1873
+ location: z.ZodOptional<z.ZodString>;
1874
+ size: z.ZodOptional<z.ZodEnum<["small", "medium", "large", "enterprise"]>>;
1875
+ contacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1876
+ projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1877
+ relationship_start: z.ZodOptional<z.ZodString>;
1878
+ notes: z.ZodOptional<z.ZodString>;
1879
+ }, z.ZodTypeAny, "passthrough">>;
1880
+ readonly 'financial-plan': z.ZodObject<{
1881
+ entity_id: z.ZodString;
1882
+ created_at: z.ZodString;
1883
+ updated_at: z.ZodString;
1884
+ created_by: z.ZodString;
1885
+ updated_by: z.ZodString;
1886
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1887
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1888
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1889
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1890
+ } & {
1891
+ entity_type: z.ZodLiteral<"financial-plan">;
1892
+ name: z.ZodString;
1893
+ type: z.ZodOptional<z.ZodEnum<["budget", "forecast", "rates", "compensation"]>>;
1894
+ period: z.ZodOptional<z.ZodString>;
1895
+ project: z.ZodOptional<z.ZodString>;
1896
+ amounts: z.ZodOptional<z.ZodString>;
1897
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1898
+ entity_id: z.ZodString;
1899
+ created_at: z.ZodString;
1900
+ updated_at: z.ZodString;
1901
+ created_by: z.ZodString;
1902
+ updated_by: z.ZodString;
1903
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1904
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1905
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1906
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1907
+ } & {
1908
+ entity_type: z.ZodLiteral<"financial-plan">;
1909
+ name: z.ZodString;
1910
+ type: z.ZodOptional<z.ZodEnum<["budget", "forecast", "rates", "compensation"]>>;
1911
+ period: z.ZodOptional<z.ZodString>;
1912
+ project: z.ZodOptional<z.ZodString>;
1913
+ amounts: z.ZodOptional<z.ZodString>;
1914
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1915
+ entity_id: z.ZodString;
1916
+ created_at: z.ZodString;
1917
+ updated_at: z.ZodString;
1918
+ created_by: z.ZodString;
1919
+ updated_by: z.ZodString;
1920
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1921
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1922
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1923
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1924
+ } & {
1925
+ entity_type: z.ZodLiteral<"financial-plan">;
1926
+ name: z.ZodString;
1927
+ type: z.ZodOptional<z.ZodEnum<["budget", "forecast", "rates", "compensation"]>>;
1928
+ period: z.ZodOptional<z.ZodString>;
1929
+ project: z.ZodOptional<z.ZodString>;
1930
+ amounts: z.ZodOptional<z.ZodString>;
1931
+ }, z.ZodTypeAny, "passthrough">>;
1932
+ readonly template: z.ZodObject<{
1933
+ entity_id: z.ZodString;
1934
+ created_at: z.ZodString;
1935
+ updated_at: z.ZodString;
1936
+ created_by: z.ZodString;
1937
+ updated_by: z.ZodString;
1938
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1939
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1940
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1941
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1942
+ } & {
1943
+ entity_type: z.ZodLiteral<"template">;
1944
+ name: z.ZodString;
1945
+ category: z.ZodOptional<z.ZodString>;
1946
+ description: z.ZodOptional<z.ZodString>;
1947
+ template_content: z.ZodOptional<z.ZodString>;
1948
+ variables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1949
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1950
+ entity_id: z.ZodString;
1951
+ created_at: z.ZodString;
1952
+ updated_at: z.ZodString;
1953
+ created_by: z.ZodString;
1954
+ updated_by: z.ZodString;
1955
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1956
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1957
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1958
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1959
+ } & {
1960
+ entity_type: z.ZodLiteral<"template">;
1961
+ name: z.ZodString;
1962
+ category: z.ZodOptional<z.ZodString>;
1963
+ description: z.ZodOptional<z.ZodString>;
1964
+ template_content: z.ZodOptional<z.ZodString>;
1965
+ variables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1966
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1967
+ entity_id: z.ZodString;
1968
+ created_at: z.ZodString;
1969
+ updated_at: z.ZodString;
1970
+ created_by: z.ZodString;
1971
+ updated_by: z.ZodString;
1972
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1973
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1974
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1975
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1976
+ } & {
1977
+ entity_type: z.ZodLiteral<"template">;
1978
+ name: z.ZodString;
1979
+ category: z.ZodOptional<z.ZodString>;
1980
+ description: z.ZodOptional<z.ZodString>;
1981
+ template_content: z.ZodOptional<z.ZodString>;
1982
+ variables: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1983
+ }, z.ZodTypeAny, "passthrough">>;
1984
+ readonly process: z.ZodObject<{
1985
+ entity_id: z.ZodString;
1986
+ created_at: z.ZodString;
1987
+ updated_at: z.ZodString;
1988
+ created_by: z.ZodString;
1989
+ updated_by: z.ZodString;
1990
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
1991
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1992
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1993
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1994
+ } & {
1995
+ entity_type: z.ZodLiteral<"process">;
1996
+ name: z.ZodString;
1997
+ description: z.ZodOptional<z.ZodString>;
1998
+ steps: z.ZodOptional<z.ZodString>;
1999
+ related_areas: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2000
+ related_templates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2001
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2002
+ entity_id: z.ZodString;
2003
+ created_at: z.ZodString;
2004
+ updated_at: z.ZodString;
2005
+ created_by: z.ZodString;
2006
+ updated_by: z.ZodString;
2007
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
2008
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2009
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2010
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2011
+ } & {
2012
+ entity_type: z.ZodLiteral<"process">;
2013
+ name: z.ZodString;
2014
+ description: z.ZodOptional<z.ZodString>;
2015
+ steps: z.ZodOptional<z.ZodString>;
2016
+ related_areas: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2017
+ related_templates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2018
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2019
+ entity_id: z.ZodString;
2020
+ created_at: z.ZodString;
2021
+ updated_at: z.ZodString;
2022
+ created_by: z.ZodString;
2023
+ updated_by: z.ZodString;
2024
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
2025
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2026
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2027
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2028
+ } & {
2029
+ entity_type: z.ZodLiteral<"process">;
2030
+ name: z.ZodString;
2031
+ description: z.ZodOptional<z.ZodString>;
2032
+ steps: z.ZodOptional<z.ZodString>;
2033
+ related_areas: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2034
+ related_templates: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2035
+ }, z.ZodTypeAny, "passthrough">>;
2036
+ readonly standard: z.ZodObject<{
2037
+ entity_id: z.ZodString;
2038
+ created_at: z.ZodString;
2039
+ updated_at: z.ZodString;
2040
+ created_by: z.ZodString;
2041
+ updated_by: z.ZodString;
2042
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
2043
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2044
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2045
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2046
+ } & {
2047
+ entity_type: z.ZodLiteral<"standard">;
2048
+ name: z.ZodString;
2049
+ category: z.ZodOptional<z.ZodString>;
2050
+ description: z.ZodOptional<z.ZodString>;
2051
+ guidelines: z.ZodOptional<z.ZodString>;
2052
+ examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2053
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2054
+ entity_id: z.ZodString;
2055
+ created_at: z.ZodString;
2056
+ updated_at: z.ZodString;
2057
+ created_by: z.ZodString;
2058
+ updated_by: z.ZodString;
2059
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
2060
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2061
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2062
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2063
+ } & {
2064
+ entity_type: z.ZodLiteral<"standard">;
2065
+ name: z.ZodString;
2066
+ category: z.ZodOptional<z.ZodString>;
2067
+ description: z.ZodOptional<z.ZodString>;
2068
+ guidelines: z.ZodOptional<z.ZodString>;
2069
+ examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2070
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2071
+ entity_id: z.ZodString;
2072
+ created_at: z.ZodString;
2073
+ updated_at: z.ZodString;
2074
+ created_by: z.ZodString;
2075
+ updated_by: z.ZodString;
2076
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
2077
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2078
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2079
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2080
+ } & {
2081
+ entity_type: z.ZodLiteral<"standard">;
2082
+ name: z.ZodString;
2083
+ category: z.ZodOptional<z.ZodString>;
2084
+ description: z.ZodOptional<z.ZodString>;
2085
+ guidelines: z.ZodOptional<z.ZodString>;
2086
+ examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2087
+ }, z.ZodTypeAny, "passthrough">>;
2088
+ readonly reference: z.ZodObject<{
2089
+ entity_id: z.ZodString;
2090
+ created_at: z.ZodString;
2091
+ updated_at: z.ZodString;
2092
+ created_by: z.ZodString;
2093
+ updated_by: z.ZodString;
2094
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
2095
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2096
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2097
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2098
+ } & {
2099
+ entity_type: z.ZodLiteral<"reference">;
2100
+ name: z.ZodString;
2101
+ type: z.ZodOptional<z.ZodEnum<["article", "video", "visualization", "website", "research", "podcast", "project", "tool"]>>;
2102
+ date: z.ZodOptional<z.ZodString>;
2103
+ source: z.ZodOptional<z.ZodString>;
2104
+ link: z.ZodOptional<z.ZodString>;
2105
+ related_projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2106
+ related_people: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2107
+ related_areas: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2108
+ description: z.ZodOptional<z.ZodString>;
2109
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2110
+ entity_id: z.ZodString;
2111
+ created_at: z.ZodString;
2112
+ updated_at: z.ZodString;
2113
+ created_by: z.ZodString;
2114
+ updated_by: z.ZodString;
2115
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
2116
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2117
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2118
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2119
+ } & {
2120
+ entity_type: z.ZodLiteral<"reference">;
2121
+ name: z.ZodString;
2122
+ type: z.ZodOptional<z.ZodEnum<["article", "video", "visualization", "website", "research", "podcast", "project", "tool"]>>;
2123
+ date: z.ZodOptional<z.ZodString>;
2124
+ source: z.ZodOptional<z.ZodString>;
2125
+ link: z.ZodOptional<z.ZodString>;
2126
+ related_projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2127
+ related_people: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2128
+ related_areas: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2129
+ description: z.ZodOptional<z.ZodString>;
2130
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2131
+ entity_id: z.ZodString;
2132
+ created_at: z.ZodString;
2133
+ updated_at: z.ZodString;
2134
+ created_by: z.ZodString;
2135
+ updated_by: z.ZodString;
2136
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
2137
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2138
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2139
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2140
+ } & {
2141
+ entity_type: z.ZodLiteral<"reference">;
2142
+ name: z.ZodString;
2143
+ type: z.ZodOptional<z.ZodEnum<["article", "video", "visualization", "website", "research", "podcast", "project", "tool"]>>;
2144
+ date: z.ZodOptional<z.ZodString>;
2145
+ source: z.ZodOptional<z.ZodString>;
2146
+ link: z.ZodOptional<z.ZodString>;
2147
+ related_projects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2148
+ related_people: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2149
+ related_areas: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2150
+ description: z.ZodOptional<z.ZodString>;
2151
+ }, z.ZodTypeAny, "passthrough">>;
2152
+ readonly technique: z.ZodObject<{
2153
+ entity_id: z.ZodString;
2154
+ created_at: z.ZodString;
2155
+ updated_at: z.ZodString;
2156
+ created_by: z.ZodString;
2157
+ updated_by: z.ZodString;
2158
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
2159
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2160
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2161
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2162
+ } & {
2163
+ entity_type: z.ZodLiteral<"technique">;
2164
+ name: z.ZodString;
2165
+ category: z.ZodOptional<z.ZodString>;
2166
+ description: z.ZodOptional<z.ZodString>;
2167
+ difficulty: z.ZodOptional<z.ZodEnum<["beginner", "intermediate", "advanced"]>>;
2168
+ related_frameworks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2169
+ examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2170
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2171
+ entity_id: z.ZodString;
2172
+ created_at: z.ZodString;
2173
+ updated_at: z.ZodString;
2174
+ created_by: z.ZodString;
2175
+ updated_by: z.ZodString;
2176
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
2177
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2178
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2179
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2180
+ } & {
2181
+ entity_type: z.ZodLiteral<"technique">;
2182
+ name: z.ZodString;
2183
+ category: z.ZodOptional<z.ZodString>;
2184
+ description: z.ZodOptional<z.ZodString>;
2185
+ difficulty: z.ZodOptional<z.ZodEnum<["beginner", "intermediate", "advanced"]>>;
2186
+ related_frameworks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2187
+ examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2188
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2189
+ entity_id: z.ZodString;
2190
+ created_at: z.ZodString;
2191
+ updated_at: z.ZodString;
2192
+ created_by: z.ZodString;
2193
+ updated_by: z.ZodString;
2194
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
2195
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2196
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2197
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2198
+ } & {
2199
+ entity_type: z.ZodLiteral<"technique">;
2200
+ name: z.ZodString;
2201
+ category: z.ZodOptional<z.ZodString>;
2202
+ description: z.ZodOptional<z.ZodString>;
2203
+ difficulty: z.ZodOptional<z.ZodEnum<["beginner", "intermediate", "advanced"]>>;
2204
+ related_frameworks: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2205
+ examples: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2206
+ }, z.ZodTypeAny, "passthrough">>;
2207
+ readonly dataset: z.ZodObject<{
2208
+ entity_id: z.ZodString;
2209
+ created_at: z.ZodString;
2210
+ updated_at: z.ZodString;
2211
+ created_by: z.ZodString;
2212
+ updated_by: z.ZodString;
2213
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
2214
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2215
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2216
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2217
+ } & {
2218
+ entity_type: z.ZodLiteral<"dataset">;
2219
+ name: z.ZodString;
2220
+ schema: z.ZodArray<z.ZodObject<{
2221
+ name: z.ZodString;
2222
+ type: z.ZodEnum<["string", "number", "boolean", "date"]>;
2223
+ required: z.ZodOptional<z.ZodBoolean>;
2224
+ description: z.ZodOptional<z.ZodString>;
2225
+ }, "strip", z.ZodTypeAny, {
2226
+ name: string;
2227
+ type: "string" | "number" | "boolean" | "date";
2228
+ description?: string | undefined;
2229
+ required?: boolean | undefined;
2230
+ }, {
2231
+ name: string;
2232
+ type: "string" | "number" | "boolean" | "date";
2233
+ description?: string | undefined;
2234
+ required?: boolean | undefined;
2235
+ }>, "many">;
2236
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2237
+ entity_id: z.ZodString;
2238
+ created_at: z.ZodString;
2239
+ updated_at: z.ZodString;
2240
+ created_by: z.ZodString;
2241
+ updated_by: z.ZodString;
2242
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
2243
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2244
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2245
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2246
+ } & {
2247
+ entity_type: z.ZodLiteral<"dataset">;
2248
+ name: z.ZodString;
2249
+ schema: z.ZodArray<z.ZodObject<{
2250
+ name: z.ZodString;
2251
+ type: z.ZodEnum<["string", "number", "boolean", "date"]>;
2252
+ required: z.ZodOptional<z.ZodBoolean>;
2253
+ description: z.ZodOptional<z.ZodString>;
2254
+ }, "strip", z.ZodTypeAny, {
2255
+ name: string;
2256
+ type: "string" | "number" | "boolean" | "date";
2257
+ description?: string | undefined;
2258
+ required?: boolean | undefined;
2259
+ }, {
2260
+ name: string;
2261
+ type: "string" | "number" | "boolean" | "date";
2262
+ description?: string | undefined;
2263
+ required?: boolean | undefined;
2264
+ }>, "many">;
2265
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2266
+ entity_id: z.ZodString;
2267
+ created_at: z.ZodString;
2268
+ updated_at: z.ZodString;
2269
+ created_by: z.ZodString;
2270
+ updated_by: z.ZodString;
2271
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
2272
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2273
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2274
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2275
+ } & {
2276
+ entity_type: z.ZodLiteral<"dataset">;
2277
+ name: z.ZodString;
2278
+ schema: z.ZodArray<z.ZodObject<{
2279
+ name: z.ZodString;
2280
+ type: z.ZodEnum<["string", "number", "boolean", "date"]>;
2281
+ required: z.ZodOptional<z.ZodBoolean>;
2282
+ description: z.ZodOptional<z.ZodString>;
2283
+ }, "strip", z.ZodTypeAny, {
2284
+ name: string;
2285
+ type: "string" | "number" | "boolean" | "date";
2286
+ description?: string | undefined;
2287
+ required?: boolean | undefined;
2288
+ }, {
2289
+ name: string;
2290
+ type: "string" | "number" | "boolean" | "date";
2291
+ description?: string | undefined;
2292
+ required?: boolean | undefined;
2293
+ }>, "many">;
2294
+ }, z.ZodTypeAny, "passthrough">>;
2295
+ readonly deck: z.ZodObject<{
2296
+ entity_id: z.ZodString;
2297
+ created_at: z.ZodString;
2298
+ updated_at: z.ZodString;
2299
+ created_by: z.ZodString;
2300
+ updated_by: z.ZodString;
2301
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
2302
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2303
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2304
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2305
+ } & {
2306
+ entity_type: z.ZodLiteral<"deck">;
2307
+ title: z.ZodString;
2308
+ client: z.ZodOptional<z.ZodString>;
2309
+ date: z.ZodString;
2310
+ phase: z.ZodOptional<z.ZodString>;
2311
+ theme: z.ZodDefault<z.ZodEnum<["dark", "light"]>>;
2312
+ status: z.ZodDefault<z.ZodEnum<["draft", "review", "approved"]>>;
2313
+ related_project: z.ZodOptional<z.ZodString>;
2314
+ related_client: z.ZodOptional<z.ZodString>;
2315
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
2316
+ entity_id: z.ZodString;
2317
+ created_at: z.ZodString;
2318
+ updated_at: z.ZodString;
2319
+ created_by: z.ZodString;
2320
+ updated_by: z.ZodString;
2321
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
2322
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2323
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2324
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2325
+ } & {
2326
+ entity_type: z.ZodLiteral<"deck">;
2327
+ title: z.ZodString;
2328
+ client: z.ZodOptional<z.ZodString>;
2329
+ date: z.ZodString;
2330
+ phase: z.ZodOptional<z.ZodString>;
2331
+ theme: z.ZodDefault<z.ZodEnum<["dark", "light"]>>;
2332
+ status: z.ZodDefault<z.ZodEnum<["draft", "review", "approved"]>>;
2333
+ related_project: z.ZodOptional<z.ZodString>;
2334
+ related_client: z.ZodOptional<z.ZodString>;
2335
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
2336
+ entity_id: z.ZodString;
2337
+ created_at: z.ZodString;
2338
+ updated_at: z.ZodString;
2339
+ created_by: z.ZodString;
2340
+ updated_by: z.ZodString;
2341
+ visibility: z.ZodDefault<z.ZodEnum<["public", "team", "admin", "restricted"]>>;
2342
+ restricted_to: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2343
+ sensitive_fields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2344
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2345
+ } & {
2346
+ entity_type: z.ZodLiteral<"deck">;
2347
+ title: z.ZodString;
2348
+ client: z.ZodOptional<z.ZodString>;
2349
+ date: z.ZodString;
2350
+ phase: z.ZodOptional<z.ZodString>;
2351
+ theme: z.ZodDefault<z.ZodEnum<["dark", "light"]>>;
2352
+ status: z.ZodDefault<z.ZodEnum<["draft", "review", "approved"]>>;
2353
+ related_project: z.ZodOptional<z.ZodString>;
2354
+ related_client: z.ZodOptional<z.ZodString>;
2355
+ }, z.ZodTypeAny, "passthrough">>;
2356
+ };
2357
+ export type EntityType = keyof typeof ENTITY_SCHEMAS;
2358
+ export type Entity = z.infer<typeof ENTITY_SCHEMAS[EntityType]>;
2359
+ export type EntityData = Entity;
2360
+ /**
2361
+ * Validation helper with helpful error messages
2362
+ */
2363
+ export declare function validateEntity<T extends EntityType>(entityType: T, data: unknown): z.infer<typeof ENTITY_SCHEMAS[T]>;
2364
+ /**
2365
+ * Validate custom entity type (no schema, just base fields)
2366
+ */
2367
+ export declare function validateCustomEntity(data: unknown): EntityBase;
2368
+ /**
2369
+ * Check if entity type is a known type
2370
+ */
2371
+ export declare function isKnownEntityType(type: string): type is EntityType;