@devpad/api 2.6.10 → 2.6.12

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.
@@ -1,6 +1,6 @@
1
1
  import { InferSelectModel } from 'drizzle-orm';
2
2
  import { z } from 'zod';
3
- import { t as api_keys, V as project, a3 as todo_updates, r as action, A as ActionType, I as milestone, _ as task, y as goal, z as hook, B as hook_delivery, v as codebase_tasks, a0 as task_link, Y as tag, w as document, s as annotation_thread, X as signoff, Q as pipeline_run, U as pipeline_stage_event, M as pipeline_grant, O as pipeline_package, J as pipeline_analysis_template, N as pipeline_oidc_trust, u as apply_log, x as github_webhook_event, E as ignore_path, K as pipeline_approval, L as pipeline_dispatch, W as session, Z as tag_config, $ as task_event, a1 as task_rollup, a2 as task_tag, a4 as tracker_result, a5 as user } from './schema.d-CUm4wtV_.js';
3
+ import { t as api_keys, V as project, a3 as todo_updates, r as action, A as ActionType, I as milestone, _ as task, y as goal, z as hook, B as hook_delivery, v as codebase_tasks, a0 as task_link, Y as tag, w as document, s as annotation_thread, X as signoff, Q as pipeline_run, U as pipeline_stage_event, M as pipeline_grant, O as pipeline_package, J as pipeline_analysis_template, N as pipeline_oidc_trust, u as apply_log, x as github_webhook_event, E as ignore_path, K as pipeline_approval, L as pipeline_dispatch, W as session, Z as tag_config, $ as task_event, a1 as task_rollup, a2 as task_tag, a4 as tracker_result, a5 as user } from './schema-CizNlS2t.js';
4
4
  import * as drizzle_zod from 'drizzle-zod';
5
5
  import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
6
6
 
@@ -22,10 +22,10 @@ declare const upsert_project: z.ZodObject<{
22
22
  current_version: z.ZodNullable<z.ZodString>;
23
23
  force: z.ZodOptional<z.ZodBoolean>;
24
24
  }, "strip", z.ZodTypeAny, {
25
+ description: string | null;
25
26
  name: string;
26
27
  project_id: string;
27
28
  deleted: boolean;
28
- description: string | null;
29
29
  specification: string | null;
30
30
  repo_url: string | null;
31
31
  repo_id: number | null;
@@ -33,15 +33,15 @@ declare const upsert_project: z.ZodObject<{
33
33
  link_url: string | null;
34
34
  link_text: string | null;
35
35
  current_version: string | null;
36
- id?: string | null | undefined;
37
36
  status?: "DEVELOPMENT" | "PAUSED" | "RELEASED" | "LIVE" | "FINISHED" | "ABANDONED" | "STOPPED" | undefined;
37
+ id?: string | null | undefined;
38
38
  owner_id?: string | undefined;
39
39
  visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
40
40
  force?: boolean | undefined;
41
41
  }, {
42
+ description: string | null;
42
43
  name: string;
43
44
  project_id: string;
44
- description: string | null;
45
45
  specification: string | null;
46
46
  repo_url: string | null;
47
47
  repo_id: number | null;
@@ -49,10 +49,10 @@ declare const upsert_project: z.ZodObject<{
49
49
  link_url: string | null;
50
50
  link_text: string | null;
51
51
  current_version: string | null;
52
- id?: string | null | undefined;
53
52
  status?: "DEVELOPMENT" | "PAUSED" | "RELEASED" | "LIVE" | "FINISHED" | "ABANDONED" | "STOPPED" | undefined;
54
- deleted?: boolean | undefined;
53
+ id?: string | null | undefined;
55
54
  owner_id?: string | undefined;
55
+ deleted?: boolean | undefined;
56
56
  visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
57
57
  force?: boolean | undefined;
58
58
  }>;
@@ -76,12 +76,11 @@ declare const upsert_todo: z.ZodObject<{
76
76
  force: z.ZodOptional<z.ZodBoolean>;
77
77
  }, "strip", z.ZodTypeAny, {
78
78
  owner_id: string;
79
+ title?: string | undefined;
80
+ description?: string | null | undefined;
79
81
  id?: string | null | undefined;
80
- kind?: "task" | "phase" | "approval" | undefined;
81
82
  project_id?: string | null | undefined;
82
- description?: string | null | undefined;
83
83
  visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
84
- title?: string | undefined;
85
84
  progress?: "UNSTARTED" | "IN_PROGRESS" | "COMPLETED" | undefined;
86
85
  goal_id?: string | null | undefined;
87
86
  start_time?: string | null | undefined;
@@ -90,16 +89,16 @@ declare const upsert_todo: z.ZodObject<{
90
89
  priority?: "LOW" | "MEDIUM" | "HIGH" | undefined;
91
90
  parent_id?: string | null | undefined;
92
91
  rank?: string | undefined;
92
+ kind?: "task" | "phase" | "approval" | undefined;
93
93
  completion_policy?: "manual" | "auto_children" | undefined;
94
94
  force?: boolean | undefined;
95
95
  }, {
96
96
  owner_id: string;
97
+ title?: string | undefined;
98
+ description?: string | null | undefined;
97
99
  id?: string | null | undefined;
98
- kind?: "task" | "phase" | "approval" | undefined;
99
100
  project_id?: string | null | undefined;
100
- description?: string | null | undefined;
101
101
  visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
102
- title?: string | undefined;
103
102
  progress?: "UNSTARTED" | "IN_PROGRESS" | "COMPLETED" | undefined;
104
103
  goal_id?: string | null | undefined;
105
104
  start_time?: string | null | undefined;
@@ -108,6 +107,7 @@ declare const upsert_todo: z.ZodObject<{
108
107
  priority?: "LOW" | "MEDIUM" | "HIGH" | undefined;
109
108
  parent_id?: string | null | undefined;
110
109
  rank?: string | undefined;
110
+ kind?: "task" | "phase" | "approval" | undefined;
111
111
  completion_policy?: "manual" | "auto_children" | undefined;
112
112
  force?: boolean | undefined;
113
113
  }>;
@@ -120,18 +120,18 @@ declare const upsert_tag: z.ZodObject<{
120
120
  render: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
121
121
  owner_id: z.ZodString;
122
122
  }, "strip", z.ZodTypeAny, {
123
- deleted: boolean;
124
- owner_id: string;
125
123
  title: string;
124
+ owner_id: string;
125
+ deleted: boolean;
126
126
  render: boolean;
127
127
  id?: string | undefined;
128
- color?: "red" | "green" | "blue" | "yellow" | "purple" | "orange" | "teal" | "pink" | "gray" | "cyan" | "lime" | null | undefined;
128
+ color?: "blue" | "red" | "green" | "yellow" | "purple" | "orange" | "teal" | "pink" | "gray" | "cyan" | "lime" | null | undefined;
129
129
  }, {
130
- owner_id: string;
131
130
  title: string;
131
+ owner_id: string;
132
132
  id?: string | undefined;
133
133
  deleted?: boolean | undefined;
134
- color?: "red" | "green" | "blue" | "yellow" | "purple" | "orange" | "teal" | "pink" | "gray" | "cyan" | "lime" | null | undefined;
134
+ color?: "blue" | "red" | "green" | "yellow" | "purple" | "orange" | "teal" | "pink" | "gray" | "cyan" | "lime" | null | undefined;
135
135
  render?: boolean | undefined;
136
136
  }>;
137
137
  declare const project_config: z.ZodObject<{
@@ -139,23 +139,23 @@ declare const project_config: z.ZodObject<{
139
139
  name: z.ZodString;
140
140
  match: z.ZodArray<z.ZodString, "many">;
141
141
  }, "strip", z.ZodTypeAny, {
142
- name: string;
143
142
  match: string[];
144
- }, {
145
143
  name: string;
144
+ }, {
146
145
  match: string[];
146
+ name: string;
147
147
  }>, "many">;
148
148
  ignore: z.ZodArray<z.ZodString, "many">;
149
149
  }, "strip", z.ZodTypeAny, {
150
150
  tags: {
151
- name: string;
152
151
  match: string[];
152
+ name: string;
153
153
  }[];
154
154
  ignore: string[];
155
155
  }, {
156
156
  tags: {
157
- name: string;
158
157
  match: string[];
158
+ name: string;
159
159
  }[];
160
160
  ignore: string[];
161
161
  }>;
@@ -166,23 +166,23 @@ declare const save_config_request: z.ZodObject<{
166
166
  name: z.ZodString;
167
167
  match: z.ZodArray<z.ZodString, "many">;
168
168
  }, "strip", z.ZodTypeAny, {
169
- name: string;
170
169
  match: string[];
171
- }, {
172
170
  name: string;
171
+ }, {
173
172
  match: string[];
173
+ name: string;
174
174
  }>, "many">;
175
175
  ignore: z.ZodArray<z.ZodString, "many">;
176
176
  }, "strip", z.ZodTypeAny, {
177
177
  tags: {
178
- name: string;
179
178
  match: string[];
179
+ name: string;
180
180
  }[];
181
181
  ignore: string[];
182
182
  }, {
183
183
  tags: {
184
- name: string;
185
184
  match: string[];
185
+ name: string;
186
186
  }[];
187
187
  ignore: string[];
188
188
  }>;
@@ -191,8 +191,8 @@ declare const save_config_request: z.ZodObject<{
191
191
  id: string;
192
192
  config: {
193
193
  tags: {
194
- name: string;
195
194
  match: string[];
195
+ name: string;
196
196
  }[];
197
197
  ignore: string[];
198
198
  };
@@ -201,8 +201,8 @@ declare const save_config_request: z.ZodObject<{
201
201
  id: string;
202
202
  config: {
203
203
  tags: {
204
- name: string;
205
204
  match: string[];
205
+ name: string;
206
206
  }[];
207
207
  ignore: string[];
208
208
  };
@@ -216,18 +216,18 @@ declare const save_tags_request: z.ZodArray<z.ZodObject<{
216
216
  render: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
217
217
  owner_id: z.ZodString;
218
218
  }, "strip", z.ZodTypeAny, {
219
- deleted: boolean;
220
- owner_id: string;
221
219
  title: string;
220
+ owner_id: string;
221
+ deleted: boolean;
222
222
  render: boolean;
223
223
  id?: string | undefined;
224
- color?: "red" | "green" | "blue" | "yellow" | "purple" | "orange" | "teal" | "pink" | "gray" | "cyan" | "lime" | null | undefined;
224
+ color?: "blue" | "red" | "green" | "yellow" | "purple" | "orange" | "teal" | "pink" | "gray" | "cyan" | "lime" | null | undefined;
225
225
  }, {
226
- owner_id: string;
227
226
  title: string;
227
+ owner_id: string;
228
228
  id?: string | undefined;
229
229
  deleted?: boolean | undefined;
230
- color?: "red" | "green" | "blue" | "yellow" | "purple" | "orange" | "teal" | "pink" | "gray" | "cyan" | "lime" | null | undefined;
230
+ color?: "blue" | "red" | "green" | "yellow" | "purple" | "orange" | "teal" | "pink" | "gray" | "cyan" | "lime" | null | undefined;
231
231
  render?: boolean | undefined;
232
232
  }>, "many">;
233
233
  declare const update_user: z.ZodObject<{
@@ -235,42 +235,39 @@ declare const update_user: z.ZodObject<{
235
235
  name: z.ZodOptional<z.ZodString>;
236
236
  image_url: z.ZodOptional<z.ZodString>;
237
237
  task_view: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"list">, z.ZodLiteral<"grid">]>>;
238
- email_verified: z.ZodOptional<z.ZodBoolean>;
239
238
  }, "strip", z.ZodTypeAny, {
240
239
  id: string;
241
240
  name?: string | undefined;
242
- task_view?: "list" | "grid" | undefined;
243
- email_verified?: boolean | undefined;
244
241
  image_url?: string | undefined;
242
+ task_view?: "list" | "grid" | undefined;
245
243
  }, {
246
244
  id: string;
247
245
  name?: string | undefined;
248
- task_view?: "list" | "grid" | undefined;
249
- email_verified?: boolean | undefined;
250
246
  image_url?: string | undefined;
247
+ task_view?: "list" | "grid" | undefined;
251
248
  }>;
252
249
  declare const config_schema: z.ZodObject<{
253
250
  tags: z.ZodArray<z.ZodObject<{
254
251
  name: z.ZodString;
255
252
  match: z.ZodArray<z.ZodString, "many">;
256
253
  }, "strip", z.ZodTypeAny, {
257
- name: string;
258
254
  match: string[];
259
- }, {
260
255
  name: string;
256
+ }, {
261
257
  match: string[];
258
+ name: string;
262
259
  }>, "many">;
263
260
  ignore: z.ZodArray<z.ZodString, "many">;
264
261
  }, "strip", z.ZodTypeAny, {
265
262
  tags: {
266
- name: string;
267
263
  match: string[];
264
+ name: string;
268
265
  }[];
269
266
  ignore: string[];
270
267
  }, {
271
268
  tags: {
272
- name: string;
273
269
  match: string[];
270
+ name: string;
274
271
  }[];
275
272
  ignore: string[];
276
273
  }>;
@@ -287,8 +284,8 @@ declare const upsert_milestone: z.ZodObject<{
287
284
  }, "strip", z.ZodTypeAny, {
288
285
  name: string;
289
286
  project_id: string;
290
- id?: string | null | undefined;
291
287
  description?: string | null | undefined;
288
+ id?: string | null | undefined;
292
289
  target_time?: string | null | undefined;
293
290
  target_version?: string | null | undefined;
294
291
  finished_at?: string | null | undefined;
@@ -297,8 +294,8 @@ declare const upsert_milestone: z.ZodObject<{
297
294
  }, {
298
295
  name: string;
299
296
  project_id: string;
300
- id?: string | null | undefined;
301
297
  description?: string | null | undefined;
298
+ id?: string | null | undefined;
302
299
  target_time?: string | null | undefined;
303
300
  target_version?: string | null | undefined;
304
301
  finished_at?: string | null | undefined;
@@ -316,16 +313,16 @@ declare const upsert_goal: z.ZodObject<{
316
313
  }, "strip", z.ZodTypeAny, {
317
314
  name: string;
318
315
  milestone_id: string;
319
- id?: string | null | undefined;
320
316
  description?: string | null | undefined;
317
+ id?: string | null | undefined;
321
318
  target_time?: string | null | undefined;
322
319
  finished_at?: string | null | undefined;
323
320
  force?: boolean | undefined;
324
321
  }, {
325
322
  name: string;
326
323
  milestone_id: string;
327
- id?: string | null | undefined;
328
324
  description?: string | null | undefined;
325
+ id?: string | null | undefined;
329
326
  target_time?: string | null | undefined;
330
327
  finished_at?: string | null | undefined;
331
328
  force?: boolean | undefined;
@@ -649,11 +646,11 @@ declare const upsert_pipeline_run: z.ZodObject<{
649
646
  type: "analysis";
650
647
  template: string;
651
648
  }>;
652
- id?: string | null | undefined;
653
649
  status?: "queued" | "deploying" | "unconfirmed" | "baking" | "awaiting_approval" | "rolling_back" | "completed" | "rolled_back" | "failed" | "cancelled" | undefined;
654
- kind?: "deploy" | "rollback" | undefined;
650
+ id?: string | null | undefined;
655
651
  commit_sha?: string | null | undefined;
656
652
  finished_at?: string | null | undefined;
653
+ kind?: "deploy" | "rollback" | undefined;
657
654
  current_stage?: string | null | undefined;
658
655
  forced_atomic_reason?: "do_migrations" | "asset_affinity_none" | null | undefined;
659
656
  started_at?: string | null | undefined;
@@ -680,11 +677,11 @@ declare const upsert_pipeline_run: z.ZodObject<{
680
677
  type: "analysis";
681
678
  template: string;
682
679
  }>;
683
- id?: string | null | undefined;
684
680
  status?: "queued" | "deploying" | "unconfirmed" | "baking" | "awaiting_approval" | "rolling_back" | "completed" | "rolled_back" | "failed" | "cancelled" | undefined;
685
- kind?: "deploy" | "rollback" | undefined;
681
+ id?: string | null | undefined;
686
682
  commit_sha?: string | null | undefined;
687
683
  finished_at?: string | null | undefined;
684
+ kind?: "deploy" | "rollback" | undefined;
688
685
  current_stage?: string | null | undefined;
689
686
  forced_atomic_reason?: "do_migrations" | "asset_affinity_none" | null | undefined;
690
687
  started_at?: string | null | undefined;
@@ -695,12 +692,12 @@ declare const insert_pipeline_stage_event: z.ZodObject<{
695
692
  kind: z.ZodUnion<[z.ZodLiteral<"deploy_started">, z.ZodLiteral<"deploy_completed">, z.ZodLiteral<"deploy_failed">, z.ZodLiteral<"dispatch_requested">, z.ZodLiteral<"dispatch_failed">, z.ZodLiteral<"timed_out">, z.ZodLiteral<"bake_started">, z.ZodLiteral<"bake_completed">, z.ZodLiteral<"gate_verdict">, z.ZodLiteral<"approval_requested">, z.ZodLiteral<"rollback_started">, z.ZodLiteral<"rollback_completed">, z.ZodLiteral<"warning">, z.ZodLiteral<"error">]>;
696
693
  payload: z.ZodOptional<z.ZodUnknown>;
697
694
  }, "strip", z.ZodTypeAny, {
698
- kind: "error" | "deploy_started" | "deploy_completed" | "deploy_failed" | "dispatch_requested" | "dispatch_failed" | "timed_out" | "bake_started" | "bake_completed" | "gate_verdict" | "approval_requested" | "rollback_started" | "rollback_completed" | "warning";
695
+ kind: "deploy_started" | "deploy_completed" | "deploy_failed" | "dispatch_requested" | "dispatch_failed" | "timed_out" | "bake_started" | "bake_completed" | "gate_verdict" | "approval_requested" | "rollback_started" | "rollback_completed" | "warning" | "error";
699
696
  run_id: string;
700
697
  stage_name: string;
701
698
  payload?: unknown;
702
699
  }, {
703
- kind: "error" | "deploy_started" | "deploy_completed" | "deploy_failed" | "dispatch_requested" | "dispatch_failed" | "timed_out" | "bake_started" | "bake_completed" | "gate_verdict" | "approval_requested" | "rollback_started" | "rollback_completed" | "warning";
700
+ kind: "deploy_started" | "deploy_completed" | "deploy_failed" | "dispatch_requested" | "dispatch_failed" | "timed_out" | "bake_started" | "bake_completed" | "gate_verdict" | "approval_requested" | "rollback_started" | "rollback_completed" | "warning" | "error";
704
701
  run_id: string;
705
702
  stage_name: string;
706
703
  payload?: unknown;
@@ -712,7 +709,7 @@ declare const upsert_pipeline_grant: z.ZodObject<{
712
709
  scope: z.ZodString;
713
710
  granted_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
714
711
  granted_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
715
- auto_approved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
712
+ auto_approved: z.ZodOptional<z.ZodBoolean>;
716
713
  }, "strip", z.ZodTypeAny, {
717
714
  scope: string;
718
715
  package_id: string;
@@ -720,7 +717,7 @@ declare const upsert_pipeline_grant: z.ZodObject<{
720
717
  id?: string | null | undefined;
721
718
  granted_by?: string | null | undefined;
722
719
  granted_at?: string | null | undefined;
723
- auto_approved?: boolean | null | undefined;
720
+ auto_approved?: boolean | undefined;
724
721
  }, {
725
722
  scope: string;
726
723
  package_id: string;
@@ -728,7 +725,7 @@ declare const upsert_pipeline_grant: z.ZodObject<{
728
725
  id?: string | null | undefined;
729
726
  granted_by?: string | null | undefined;
730
727
  granted_at?: string | null | undefined;
731
- auto_approved?: boolean | null | undefined;
728
+ auto_approved?: boolean | undefined;
732
729
  }>;
733
730
  declare const upsert_pipeline_approval: z.ZodObject<{
734
731
  run_id: z.ZodString;
@@ -764,16 +761,16 @@ declare const upsert_pipeline_dispatch: z.ZodObject<{
764
761
  commit_sha: string;
765
762
  run_id: string;
766
763
  stage_name: string;
767
- id?: string | null | undefined;
768
764
  status?: "dispatched" | "failed" | "claimed" | undefined;
765
+ id?: string | null | undefined;
769
766
  error?: string | null | undefined;
770
767
  requested_by?: string | null | undefined;
771
768
  }, {
772
769
  commit_sha: string;
773
770
  run_id: string;
774
771
  stage_name: string;
775
- id?: string | null | undefined;
776
772
  status?: "dispatched" | "failed" | "claimed" | undefined;
773
+ id?: string | null | undefined;
777
774
  error?: string | null | undefined;
778
775
  requested_by?: string | null | undefined;
779
776
  }>;
@@ -849,12 +846,12 @@ declare const webhook_event_body: z.ZodObject<{
849
846
  payload: z.ZodOptional<z.ZodUnknown>;
850
847
  idempotency_key: z.ZodString;
851
848
  }, "strip", z.ZodTypeAny, {
852
- kind: "error" | "deploy_started" | "deploy_completed" | "deploy_failed" | "dispatch_requested" | "dispatch_failed" | "timed_out" | "bake_started" | "bake_completed" | "gate_verdict" | "approval_requested" | "rollback_started" | "rollback_completed" | "warning";
849
+ kind: "deploy_started" | "deploy_completed" | "deploy_failed" | "dispatch_requested" | "dispatch_failed" | "timed_out" | "bake_started" | "bake_completed" | "gate_verdict" | "approval_requested" | "rollback_started" | "rollback_completed" | "warning" | "error";
853
850
  idempotency_key: string;
854
851
  stage_name: string;
855
852
  payload?: unknown;
856
853
  }, {
857
- kind: "error" | "deploy_started" | "deploy_completed" | "deploy_failed" | "dispatch_requested" | "dispatch_failed" | "timed_out" | "bake_started" | "bake_completed" | "gate_verdict" | "approval_requested" | "rollback_started" | "rollback_completed" | "warning";
854
+ kind: "deploy_started" | "deploy_completed" | "deploy_failed" | "dispatch_requested" | "dispatch_failed" | "timed_out" | "bake_started" | "bake_completed" | "gate_verdict" | "approval_requested" | "rollback_started" | "rollback_completed" | "warning" | "error";
858
855
  idempotency_key: string;
859
856
  stage_name: string;
860
857
  payload?: unknown;
@@ -1073,11 +1070,11 @@ declare const external_ref: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1073
1070
  type: z.ZodLiteral<"metric">;
1074
1071
  name: z.ZodString;
1075
1072
  }, "strip", z.ZodTypeAny, {
1076
- name: string;
1077
1073
  type: "metric";
1078
- }, {
1079
1074
  name: string;
1075
+ }, {
1080
1076
  type: "metric";
1077
+ name: string;
1081
1078
  }>, z.ZodObject<{
1082
1079
  type: z.ZodLiteral<"pipeline_run">;
1083
1080
  run_id: z.ZodString;
@@ -1134,11 +1131,11 @@ declare const upsert_task_link: z.ZodObject<{
1134
1131
  type: z.ZodLiteral<"metric">;
1135
1132
  name: z.ZodString;
1136
1133
  }, "strip", z.ZodTypeAny, {
1137
- name: string;
1138
1134
  type: "metric";
1139
- }, {
1140
1135
  name: string;
1136
+ }, {
1141
1137
  type: "metric";
1138
+ name: string;
1142
1139
  }>, z.ZodObject<{
1143
1140
  type: z.ZodLiteral<"pipeline_run">;
1144
1141
  run_id: z.ZodString;
@@ -1167,8 +1164,8 @@ declare const upsert_task_link: z.ZodObject<{
1167
1164
  type: "doc";
1168
1165
  doc_id: string;
1169
1166
  } | {
1170
- name: string;
1171
1167
  type: "metric";
1168
+ name: string;
1172
1169
  } | {
1173
1170
  type: "pipeline_run";
1174
1171
  run_id: string;
@@ -1192,8 +1189,8 @@ declare const upsert_task_link: z.ZodObject<{
1192
1189
  type: "doc";
1193
1190
  doc_id: string;
1194
1191
  } | {
1195
- name: string;
1196
1192
  type: "metric";
1193
+ name: string;
1197
1194
  } | {
1198
1195
  type: "pipeline_run";
1199
1196
  run_id: string;
@@ -1234,12 +1231,11 @@ declare const apply_op: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
1234
1231
  force: z.ZodOptional<z.ZodBoolean>;
1235
1232
  }, "strip", z.ZodTypeAny, {
1236
1233
  owner_id: string;
1234
+ title?: string | undefined;
1235
+ description?: string | null | undefined;
1237
1236
  id?: string | null | undefined;
1238
- kind?: "task" | "phase" | "approval" | undefined;
1239
1237
  project_id?: string | null | undefined;
1240
- description?: string | null | undefined;
1241
1238
  visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
1242
- title?: string | undefined;
1243
1239
  progress?: "UNSTARTED" | "IN_PROGRESS" | "COMPLETED" | undefined;
1244
1240
  goal_id?: string | null | undefined;
1245
1241
  start_time?: string | null | undefined;
@@ -1248,16 +1244,16 @@ declare const apply_op: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
1248
1244
  priority?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1249
1245
  parent_id?: string | null | undefined;
1250
1246
  rank?: string | undefined;
1247
+ kind?: "task" | "phase" | "approval" | undefined;
1251
1248
  completion_policy?: "manual" | "auto_children" | undefined;
1252
1249
  force?: boolean | undefined;
1253
1250
  }, {
1254
1251
  owner_id: string;
1252
+ title?: string | undefined;
1253
+ description?: string | null | undefined;
1255
1254
  id?: string | null | undefined;
1256
- kind?: "task" | "phase" | "approval" | undefined;
1257
1255
  project_id?: string | null | undefined;
1258
- description?: string | null | undefined;
1259
1256
  visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
1260
- title?: string | undefined;
1261
1257
  progress?: "UNSTARTED" | "IN_PROGRESS" | "COMPLETED" | undefined;
1262
1258
  goal_id?: string | null | undefined;
1263
1259
  start_time?: string | null | undefined;
@@ -1266,18 +1262,18 @@ declare const apply_op: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
1266
1262
  priority?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1267
1263
  parent_id?: string | null | undefined;
1268
1264
  rank?: string | undefined;
1265
+ kind?: "task" | "phase" | "approval" | undefined;
1269
1266
  completion_policy?: "manual" | "auto_children" | undefined;
1270
1267
  force?: boolean | undefined;
1271
1268
  }>;
1272
1269
  }, "strip", z.ZodTypeAny, {
1273
1270
  data: {
1274
1271
  owner_id: string;
1272
+ title?: string | undefined;
1273
+ description?: string | null | undefined;
1275
1274
  id?: string | null | undefined;
1276
- kind?: "task" | "phase" | "approval" | undefined;
1277
1275
  project_id?: string | null | undefined;
1278
- description?: string | null | undefined;
1279
1276
  visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
1280
- title?: string | undefined;
1281
1277
  progress?: "UNSTARTED" | "IN_PROGRESS" | "COMPLETED" | undefined;
1282
1278
  goal_id?: string | null | undefined;
1283
1279
  start_time?: string | null | undefined;
@@ -1286,6 +1282,7 @@ declare const apply_op: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
1286
1282
  priority?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1287
1283
  parent_id?: string | null | undefined;
1288
1284
  rank?: string | undefined;
1285
+ kind?: "task" | "phase" | "approval" | undefined;
1289
1286
  completion_policy?: "manual" | "auto_children" | undefined;
1290
1287
  force?: boolean | undefined;
1291
1288
  };
@@ -1294,12 +1291,11 @@ declare const apply_op: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
1294
1291
  }, {
1295
1292
  data: {
1296
1293
  owner_id: string;
1294
+ title?: string | undefined;
1295
+ description?: string | null | undefined;
1297
1296
  id?: string | null | undefined;
1298
- kind?: "task" | "phase" | "approval" | undefined;
1299
1297
  project_id?: string | null | undefined;
1300
- description?: string | null | undefined;
1301
1298
  visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
1302
- title?: string | undefined;
1303
1299
  progress?: "UNSTARTED" | "IN_PROGRESS" | "COMPLETED" | undefined;
1304
1300
  goal_id?: string | null | undefined;
1305
1301
  start_time?: string | null | undefined;
@@ -1308,6 +1304,7 @@ declare const apply_op: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
1308
1304
  priority?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1309
1305
  parent_id?: string | null | undefined;
1310
1306
  rank?: string | undefined;
1307
+ kind?: "task" | "phase" | "approval" | undefined;
1311
1308
  completion_policy?: "manual" | "auto_children" | undefined;
1312
1309
  force?: boolean | undefined;
1313
1310
  };
@@ -1336,13 +1333,12 @@ declare const apply_op: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
1336
1333
  completion_policy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"manual">, z.ZodLiteral<"auto_children">]>>>;
1337
1334
  force: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1338
1335
  }, "strip", z.ZodTypeAny, {
1336
+ title?: string | undefined;
1337
+ description?: string | null | undefined;
1339
1338
  id?: string | null | undefined;
1340
- kind?: "task" | "phase" | "approval" | undefined;
1341
- project_id?: string | null | undefined;
1342
1339
  owner_id?: string | undefined;
1343
- description?: string | null | undefined;
1340
+ project_id?: string | null | undefined;
1344
1341
  visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
1345
- title?: string | undefined;
1346
1342
  progress?: "UNSTARTED" | "IN_PROGRESS" | "COMPLETED" | undefined;
1347
1343
  goal_id?: string | null | undefined;
1348
1344
  start_time?: string | null | undefined;
@@ -1351,16 +1347,16 @@ declare const apply_op: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
1351
1347
  priority?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1352
1348
  parent_id?: string | null | undefined;
1353
1349
  rank?: string | undefined;
1350
+ kind?: "task" | "phase" | "approval" | undefined;
1354
1351
  completion_policy?: "manual" | "auto_children" | undefined;
1355
1352
  force?: boolean | undefined;
1356
1353
  }, {
1354
+ title?: string | undefined;
1355
+ description?: string | null | undefined;
1357
1356
  id?: string | null | undefined;
1358
- kind?: "task" | "phase" | "approval" | undefined;
1359
- project_id?: string | null | undefined;
1360
1357
  owner_id?: string | undefined;
1361
- description?: string | null | undefined;
1358
+ project_id?: string | null | undefined;
1362
1359
  visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
1363
- title?: string | undefined;
1364
1360
  progress?: "UNSTARTED" | "IN_PROGRESS" | "COMPLETED" | undefined;
1365
1361
  goal_id?: string | null | undefined;
1366
1362
  start_time?: string | null | undefined;
@@ -1369,19 +1365,19 @@ declare const apply_op: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
1369
1365
  priority?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1370
1366
  parent_id?: string | null | undefined;
1371
1367
  rank?: string | undefined;
1368
+ kind?: "task" | "phase" | "approval" | undefined;
1372
1369
  completion_policy?: "manual" | "auto_children" | undefined;
1373
1370
  force?: boolean | undefined;
1374
1371
  }>;
1375
1372
  }, "strip", z.ZodTypeAny, {
1376
1373
  id: string;
1377
1374
  data: {
1375
+ title?: string | undefined;
1376
+ description?: string | null | undefined;
1378
1377
  id?: string | null | undefined;
1379
- kind?: "task" | "phase" | "approval" | undefined;
1380
- project_id?: string | null | undefined;
1381
1378
  owner_id?: string | undefined;
1382
- description?: string | null | undefined;
1379
+ project_id?: string | null | undefined;
1383
1380
  visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
1384
- title?: string | undefined;
1385
1381
  progress?: "UNSTARTED" | "IN_PROGRESS" | "COMPLETED" | undefined;
1386
1382
  goal_id?: string | null | undefined;
1387
1383
  start_time?: string | null | undefined;
@@ -1390,6 +1386,7 @@ declare const apply_op: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
1390
1386
  priority?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1391
1387
  parent_id?: string | null | undefined;
1392
1388
  rank?: string | undefined;
1389
+ kind?: "task" | "phase" | "approval" | undefined;
1393
1390
  completion_policy?: "manual" | "auto_children" | undefined;
1394
1391
  force?: boolean | undefined;
1395
1392
  };
@@ -1398,13 +1395,12 @@ declare const apply_op: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
1398
1395
  }, {
1399
1396
  id: string;
1400
1397
  data: {
1398
+ title?: string | undefined;
1399
+ description?: string | null | undefined;
1401
1400
  id?: string | null | undefined;
1402
- kind?: "task" | "phase" | "approval" | undefined;
1403
- project_id?: string | null | undefined;
1404
1401
  owner_id?: string | undefined;
1405
- description?: string | null | undefined;
1402
+ project_id?: string | null | undefined;
1406
1403
  visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
1407
- title?: string | undefined;
1408
1404
  progress?: "UNSTARTED" | "IN_PROGRESS" | "COMPLETED" | undefined;
1409
1405
  goal_id?: string | null | undefined;
1410
1406
  start_time?: string | null | undefined;
@@ -1413,6 +1409,7 @@ declare const apply_op: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
1413
1409
  priority?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1414
1410
  parent_id?: string | null | undefined;
1415
1411
  rank?: string | undefined;
1412
+ kind?: "task" | "phase" | "approval" | undefined;
1416
1413
  completion_policy?: "manual" | "auto_children" | undefined;
1417
1414
  force?: boolean | undefined;
1418
1415
  };
@@ -1480,11 +1477,11 @@ declare const apply_op: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
1480
1477
  type: z.ZodLiteral<"metric">;
1481
1478
  name: z.ZodString;
1482
1479
  }, "strip", z.ZodTypeAny, {
1483
- name: string;
1484
1480
  type: "metric";
1485
- }, {
1486
1481
  name: string;
1482
+ }, {
1487
1483
  type: "metric";
1484
+ name: string;
1488
1485
  }>, z.ZodObject<{
1489
1486
  type: z.ZodLiteral<"pipeline_run">;
1490
1487
  run_id: z.ZodString;
@@ -1513,8 +1510,8 @@ declare const apply_op: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
1513
1510
  type: "doc";
1514
1511
  doc_id: string;
1515
1512
  } | {
1516
- name: string;
1517
1513
  type: "metric";
1514
+ name: string;
1518
1515
  } | {
1519
1516
  type: "pipeline_run";
1520
1517
  run_id: string;
@@ -1538,8 +1535,8 @@ declare const apply_op: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
1538
1535
  type: "doc";
1539
1536
  doc_id: string;
1540
1537
  } | {
1541
- name: string;
1542
1538
  type: "metric";
1539
+ name: string;
1543
1540
  } | {
1544
1541
  type: "pipeline_run";
1545
1542
  run_id: string;
@@ -1565,8 +1562,8 @@ declare const apply_op: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
1565
1562
  type: "doc";
1566
1563
  doc_id: string;
1567
1564
  } | {
1568
- name: string;
1569
1565
  type: "metric";
1566
+ name: string;
1570
1567
  } | {
1571
1568
  type: "pipeline_run";
1572
1569
  run_id: string;
@@ -1593,8 +1590,8 @@ declare const apply_op: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
1593
1590
  type: "doc";
1594
1591
  doc_id: string;
1595
1592
  } | {
1596
- name: string;
1597
1593
  type: "metric";
1594
+ name: string;
1598
1595
  } | {
1599
1596
  type: "pipeline_run";
1600
1597
  run_id: string;
@@ -1667,12 +1664,11 @@ declare const apply_request: z.ZodObject<{
1667
1664
  force: z.ZodOptional<z.ZodBoolean>;
1668
1665
  }, "strip", z.ZodTypeAny, {
1669
1666
  owner_id: string;
1667
+ title?: string | undefined;
1668
+ description?: string | null | undefined;
1670
1669
  id?: string | null | undefined;
1671
- kind?: "task" | "phase" | "approval" | undefined;
1672
1670
  project_id?: string | null | undefined;
1673
- description?: string | null | undefined;
1674
1671
  visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
1675
- title?: string | undefined;
1676
1672
  progress?: "UNSTARTED" | "IN_PROGRESS" | "COMPLETED" | undefined;
1677
1673
  goal_id?: string | null | undefined;
1678
1674
  start_time?: string | null | undefined;
@@ -1681,16 +1677,16 @@ declare const apply_request: z.ZodObject<{
1681
1677
  priority?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1682
1678
  parent_id?: string | null | undefined;
1683
1679
  rank?: string | undefined;
1680
+ kind?: "task" | "phase" | "approval" | undefined;
1684
1681
  completion_policy?: "manual" | "auto_children" | undefined;
1685
1682
  force?: boolean | undefined;
1686
1683
  }, {
1687
1684
  owner_id: string;
1685
+ title?: string | undefined;
1686
+ description?: string | null | undefined;
1688
1687
  id?: string | null | undefined;
1689
- kind?: "task" | "phase" | "approval" | undefined;
1690
1688
  project_id?: string | null | undefined;
1691
- description?: string | null | undefined;
1692
1689
  visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
1693
- title?: string | undefined;
1694
1690
  progress?: "UNSTARTED" | "IN_PROGRESS" | "COMPLETED" | undefined;
1695
1691
  goal_id?: string | null | undefined;
1696
1692
  start_time?: string | null | undefined;
@@ -1699,18 +1695,18 @@ declare const apply_request: z.ZodObject<{
1699
1695
  priority?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1700
1696
  parent_id?: string | null | undefined;
1701
1697
  rank?: string | undefined;
1698
+ kind?: "task" | "phase" | "approval" | undefined;
1702
1699
  completion_policy?: "manual" | "auto_children" | undefined;
1703
1700
  force?: boolean | undefined;
1704
1701
  }>;
1705
1702
  }, "strip", z.ZodTypeAny, {
1706
1703
  data: {
1707
1704
  owner_id: string;
1705
+ title?: string | undefined;
1706
+ description?: string | null | undefined;
1708
1707
  id?: string | null | undefined;
1709
- kind?: "task" | "phase" | "approval" | undefined;
1710
1708
  project_id?: string | null | undefined;
1711
- description?: string | null | undefined;
1712
1709
  visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
1713
- title?: string | undefined;
1714
1710
  progress?: "UNSTARTED" | "IN_PROGRESS" | "COMPLETED" | undefined;
1715
1711
  goal_id?: string | null | undefined;
1716
1712
  start_time?: string | null | undefined;
@@ -1719,6 +1715,7 @@ declare const apply_request: z.ZodObject<{
1719
1715
  priority?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1720
1716
  parent_id?: string | null | undefined;
1721
1717
  rank?: string | undefined;
1718
+ kind?: "task" | "phase" | "approval" | undefined;
1722
1719
  completion_policy?: "manual" | "auto_children" | undefined;
1723
1720
  force?: boolean | undefined;
1724
1721
  };
@@ -1727,12 +1724,11 @@ declare const apply_request: z.ZodObject<{
1727
1724
  }, {
1728
1725
  data: {
1729
1726
  owner_id: string;
1727
+ title?: string | undefined;
1728
+ description?: string | null | undefined;
1730
1729
  id?: string | null | undefined;
1731
- kind?: "task" | "phase" | "approval" | undefined;
1732
1730
  project_id?: string | null | undefined;
1733
- description?: string | null | undefined;
1734
1731
  visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
1735
- title?: string | undefined;
1736
1732
  progress?: "UNSTARTED" | "IN_PROGRESS" | "COMPLETED" | undefined;
1737
1733
  goal_id?: string | null | undefined;
1738
1734
  start_time?: string | null | undefined;
@@ -1741,6 +1737,7 @@ declare const apply_request: z.ZodObject<{
1741
1737
  priority?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1742
1738
  parent_id?: string | null | undefined;
1743
1739
  rank?: string | undefined;
1740
+ kind?: "task" | "phase" | "approval" | undefined;
1744
1741
  completion_policy?: "manual" | "auto_children" | undefined;
1745
1742
  force?: boolean | undefined;
1746
1743
  };
@@ -1769,13 +1766,12 @@ declare const apply_request: z.ZodObject<{
1769
1766
  completion_policy: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"manual">, z.ZodLiteral<"auto_children">]>>>;
1770
1767
  force: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
1771
1768
  }, "strip", z.ZodTypeAny, {
1769
+ title?: string | undefined;
1770
+ description?: string | null | undefined;
1772
1771
  id?: string | null | undefined;
1773
- kind?: "task" | "phase" | "approval" | undefined;
1774
- project_id?: string | null | undefined;
1775
1772
  owner_id?: string | undefined;
1776
- description?: string | null | undefined;
1773
+ project_id?: string | null | undefined;
1777
1774
  visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
1778
- title?: string | undefined;
1779
1775
  progress?: "UNSTARTED" | "IN_PROGRESS" | "COMPLETED" | undefined;
1780
1776
  goal_id?: string | null | undefined;
1781
1777
  start_time?: string | null | undefined;
@@ -1784,16 +1780,16 @@ declare const apply_request: z.ZodObject<{
1784
1780
  priority?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1785
1781
  parent_id?: string | null | undefined;
1786
1782
  rank?: string | undefined;
1783
+ kind?: "task" | "phase" | "approval" | undefined;
1787
1784
  completion_policy?: "manual" | "auto_children" | undefined;
1788
1785
  force?: boolean | undefined;
1789
1786
  }, {
1787
+ title?: string | undefined;
1788
+ description?: string | null | undefined;
1790
1789
  id?: string | null | undefined;
1791
- kind?: "task" | "phase" | "approval" | undefined;
1792
- project_id?: string | null | undefined;
1793
1790
  owner_id?: string | undefined;
1794
- description?: string | null | undefined;
1791
+ project_id?: string | null | undefined;
1795
1792
  visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
1796
- title?: string | undefined;
1797
1793
  progress?: "UNSTARTED" | "IN_PROGRESS" | "COMPLETED" | undefined;
1798
1794
  goal_id?: string | null | undefined;
1799
1795
  start_time?: string | null | undefined;
@@ -1802,19 +1798,19 @@ declare const apply_request: z.ZodObject<{
1802
1798
  priority?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1803
1799
  parent_id?: string | null | undefined;
1804
1800
  rank?: string | undefined;
1801
+ kind?: "task" | "phase" | "approval" | undefined;
1805
1802
  completion_policy?: "manual" | "auto_children" | undefined;
1806
1803
  force?: boolean | undefined;
1807
1804
  }>;
1808
1805
  }, "strip", z.ZodTypeAny, {
1809
1806
  id: string;
1810
1807
  data: {
1808
+ title?: string | undefined;
1809
+ description?: string | null | undefined;
1811
1810
  id?: string | null | undefined;
1812
- kind?: "task" | "phase" | "approval" | undefined;
1813
- project_id?: string | null | undefined;
1814
1811
  owner_id?: string | undefined;
1815
- description?: string | null | undefined;
1812
+ project_id?: string | null | undefined;
1816
1813
  visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
1817
- title?: string | undefined;
1818
1814
  progress?: "UNSTARTED" | "IN_PROGRESS" | "COMPLETED" | undefined;
1819
1815
  goal_id?: string | null | undefined;
1820
1816
  start_time?: string | null | undefined;
@@ -1823,6 +1819,7 @@ declare const apply_request: z.ZodObject<{
1823
1819
  priority?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1824
1820
  parent_id?: string | null | undefined;
1825
1821
  rank?: string | undefined;
1822
+ kind?: "task" | "phase" | "approval" | undefined;
1826
1823
  completion_policy?: "manual" | "auto_children" | undefined;
1827
1824
  force?: boolean | undefined;
1828
1825
  };
@@ -1831,13 +1828,12 @@ declare const apply_request: z.ZodObject<{
1831
1828
  }, {
1832
1829
  id: string;
1833
1830
  data: {
1831
+ title?: string | undefined;
1832
+ description?: string | null | undefined;
1834
1833
  id?: string | null | undefined;
1835
- kind?: "task" | "phase" | "approval" | undefined;
1836
- project_id?: string | null | undefined;
1837
1834
  owner_id?: string | undefined;
1838
- description?: string | null | undefined;
1835
+ project_id?: string | null | undefined;
1839
1836
  visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
1840
- title?: string | undefined;
1841
1837
  progress?: "UNSTARTED" | "IN_PROGRESS" | "COMPLETED" | undefined;
1842
1838
  goal_id?: string | null | undefined;
1843
1839
  start_time?: string | null | undefined;
@@ -1846,6 +1842,7 @@ declare const apply_request: z.ZodObject<{
1846
1842
  priority?: "LOW" | "MEDIUM" | "HIGH" | undefined;
1847
1843
  parent_id?: string | null | undefined;
1848
1844
  rank?: string | undefined;
1845
+ kind?: "task" | "phase" | "approval" | undefined;
1849
1846
  completion_policy?: "manual" | "auto_children" | undefined;
1850
1847
  force?: boolean | undefined;
1851
1848
  };
@@ -1913,11 +1910,11 @@ declare const apply_request: z.ZodObject<{
1913
1910
  type: z.ZodLiteral<"metric">;
1914
1911
  name: z.ZodString;
1915
1912
  }, "strip", z.ZodTypeAny, {
1916
- name: string;
1917
1913
  type: "metric";
1918
- }, {
1919
1914
  name: string;
1915
+ }, {
1920
1916
  type: "metric";
1917
+ name: string;
1921
1918
  }>, z.ZodObject<{
1922
1919
  type: z.ZodLiteral<"pipeline_run">;
1923
1920
  run_id: z.ZodString;
@@ -1946,8 +1943,8 @@ declare const apply_request: z.ZodObject<{
1946
1943
  type: "doc";
1947
1944
  doc_id: string;
1948
1945
  } | {
1949
- name: string;
1950
1946
  type: "metric";
1947
+ name: string;
1951
1948
  } | {
1952
1949
  type: "pipeline_run";
1953
1950
  run_id: string;
@@ -1971,8 +1968,8 @@ declare const apply_request: z.ZodObject<{
1971
1968
  type: "doc";
1972
1969
  doc_id: string;
1973
1970
  } | {
1974
- name: string;
1975
1971
  type: "metric";
1972
+ name: string;
1976
1973
  } | {
1977
1974
  type: "pipeline_run";
1978
1975
  run_id: string;
@@ -1998,8 +1995,8 @@ declare const apply_request: z.ZodObject<{
1998
1995
  type: "doc";
1999
1996
  doc_id: string;
2000
1997
  } | {
2001
- name: string;
2002
1998
  type: "metric";
1999
+ name: string;
2003
2000
  } | {
2004
2001
  type: "pipeline_run";
2005
2002
  run_id: string;
@@ -2026,8 +2023,8 @@ declare const apply_request: z.ZodObject<{
2026
2023
  type: "doc";
2027
2024
  doc_id: string;
2028
2025
  } | {
2029
- name: string;
2030
2026
  type: "metric";
2027
+ name: string;
2031
2028
  } | {
2032
2029
  type: "pipeline_run";
2033
2030
  run_id: string;
@@ -2078,12 +2075,11 @@ declare const apply_request: z.ZodObject<{
2078
2075
  ops: ({
2079
2076
  data: {
2080
2077
  owner_id: string;
2078
+ title?: string | undefined;
2079
+ description?: string | null | undefined;
2081
2080
  id?: string | null | undefined;
2082
- kind?: "task" | "phase" | "approval" | undefined;
2083
2081
  project_id?: string | null | undefined;
2084
- description?: string | null | undefined;
2085
2082
  visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
2086
- title?: string | undefined;
2087
2083
  progress?: "UNSTARTED" | "IN_PROGRESS" | "COMPLETED" | undefined;
2088
2084
  goal_id?: string | null | undefined;
2089
2085
  start_time?: string | null | undefined;
@@ -2092,6 +2088,7 @@ declare const apply_request: z.ZodObject<{
2092
2088
  priority?: "LOW" | "MEDIUM" | "HIGH" | undefined;
2093
2089
  parent_id?: string | null | undefined;
2094
2090
  rank?: string | undefined;
2091
+ kind?: "task" | "phase" | "approval" | undefined;
2095
2092
  completion_policy?: "manual" | "auto_children" | undefined;
2096
2093
  force?: boolean | undefined;
2097
2094
  };
@@ -2100,13 +2097,12 @@ declare const apply_request: z.ZodObject<{
2100
2097
  } | {
2101
2098
  id: string;
2102
2099
  data: {
2100
+ title?: string | undefined;
2101
+ description?: string | null | undefined;
2103
2102
  id?: string | null | undefined;
2104
- kind?: "task" | "phase" | "approval" | undefined;
2105
- project_id?: string | null | undefined;
2106
2103
  owner_id?: string | undefined;
2107
- description?: string | null | undefined;
2104
+ project_id?: string | null | undefined;
2108
2105
  visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
2109
- title?: string | undefined;
2110
2106
  progress?: "UNSTARTED" | "IN_PROGRESS" | "COMPLETED" | undefined;
2111
2107
  goal_id?: string | null | undefined;
2112
2108
  start_time?: string | null | undefined;
@@ -2115,6 +2111,7 @@ declare const apply_request: z.ZodObject<{
2115
2111
  priority?: "LOW" | "MEDIUM" | "HIGH" | undefined;
2116
2112
  parent_id?: string | null | undefined;
2117
2113
  rank?: string | undefined;
2114
+ kind?: "task" | "phase" | "approval" | undefined;
2118
2115
  completion_policy?: "manual" | "auto_children" | undefined;
2119
2116
  force?: boolean | undefined;
2120
2117
  };
@@ -2143,8 +2140,8 @@ declare const apply_request: z.ZodObject<{
2143
2140
  type: "doc";
2144
2141
  doc_id: string;
2145
2142
  } | {
2146
- name: string;
2147
2143
  type: "metric";
2144
+ name: string;
2148
2145
  } | {
2149
2146
  type: "pipeline_run";
2150
2147
  run_id: string;
@@ -2172,12 +2169,11 @@ declare const apply_request: z.ZodObject<{
2172
2169
  ops: ({
2173
2170
  data: {
2174
2171
  owner_id: string;
2172
+ title?: string | undefined;
2173
+ description?: string | null | undefined;
2175
2174
  id?: string | null | undefined;
2176
- kind?: "task" | "phase" | "approval" | undefined;
2177
2175
  project_id?: string | null | undefined;
2178
- description?: string | null | undefined;
2179
2176
  visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
2180
- title?: string | undefined;
2181
2177
  progress?: "UNSTARTED" | "IN_PROGRESS" | "COMPLETED" | undefined;
2182
2178
  goal_id?: string | null | undefined;
2183
2179
  start_time?: string | null | undefined;
@@ -2186,6 +2182,7 @@ declare const apply_request: z.ZodObject<{
2186
2182
  priority?: "LOW" | "MEDIUM" | "HIGH" | undefined;
2187
2183
  parent_id?: string | null | undefined;
2188
2184
  rank?: string | undefined;
2185
+ kind?: "task" | "phase" | "approval" | undefined;
2189
2186
  completion_policy?: "manual" | "auto_children" | undefined;
2190
2187
  force?: boolean | undefined;
2191
2188
  };
@@ -2194,13 +2191,12 @@ declare const apply_request: z.ZodObject<{
2194
2191
  } | {
2195
2192
  id: string;
2196
2193
  data: {
2194
+ title?: string | undefined;
2195
+ description?: string | null | undefined;
2197
2196
  id?: string | null | undefined;
2198
- kind?: "task" | "phase" | "approval" | undefined;
2199
- project_id?: string | null | undefined;
2200
2197
  owner_id?: string | undefined;
2201
- description?: string | null | undefined;
2198
+ project_id?: string | null | undefined;
2202
2199
  visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
2203
- title?: string | undefined;
2204
2200
  progress?: "UNSTARTED" | "IN_PROGRESS" | "COMPLETED" | undefined;
2205
2201
  goal_id?: string | null | undefined;
2206
2202
  start_time?: string | null | undefined;
@@ -2209,6 +2205,7 @@ declare const apply_request: z.ZodObject<{
2209
2205
  priority?: "LOW" | "MEDIUM" | "HIGH" | undefined;
2210
2206
  parent_id?: string | null | undefined;
2211
2207
  rank?: string | undefined;
2208
+ kind?: "task" | "phase" | "approval" | undefined;
2212
2209
  completion_policy?: "manual" | "auto_children" | undefined;
2213
2210
  force?: boolean | undefined;
2214
2211
  };
@@ -2237,8 +2234,8 @@ declare const apply_request: z.ZodObject<{
2237
2234
  type: "doc";
2238
2235
  doc_id: string;
2239
2236
  } | {
2240
- name: string;
2241
2237
  type: "metric";
2238
+ name: string;
2242
2239
  } | {
2243
2240
  type: "pipeline_run";
2244
2241
  run_id: string;
@@ -2287,11 +2284,11 @@ declare const task_event_payload: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2287
2284
  kind: z.ZodLiteral<"task.created">;
2288
2285
  title: z.ZodString;
2289
2286
  }, "strip", z.ZodTypeAny, {
2290
- kind: "task.created";
2291
2287
  title: string;
2292
- }, {
2293
2288
  kind: "task.created";
2289
+ }, {
2294
2290
  title: string;
2291
+ kind: "task.created";
2295
2292
  }>, z.ZodObject<{
2296
2293
  kind: z.ZodLiteral<"task.updated">;
2297
2294
  fields: z.ZodArray<z.ZodString, "many">;
@@ -2362,11 +2359,11 @@ declare const task_event_payload: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2362
2359
  kind: z.ZodLiteral<"policy.fired">;
2363
2360
  policy: z.ZodEnum<["manual", "auto_children"]>;
2364
2361
  }, "strip", z.ZodTypeAny, {
2365
- kind: "policy.fired";
2366
2362
  policy: "manual" | "auto_children";
2367
- }, {
2368
2363
  kind: "policy.fired";
2364
+ }, {
2369
2365
  policy: "manual" | "auto_children";
2366
+ kind: "policy.fired";
2370
2367
  }>, z.ZodObject<{
2371
2368
  kind: z.ZodLiteral<"node.completion_stale">;
2372
2369
  child_id: z.ZodString;
@@ -2381,13 +2378,13 @@ declare const task_event_payload: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2381
2378
  document_id: z.ZodString;
2382
2379
  version: z.ZodString;
2383
2380
  }, "strip", z.ZodTypeAny, {
2381
+ version: string;
2384
2382
  kind: "doc.pushed";
2385
2383
  document_id: string;
2386
- version: string;
2387
2384
  }, {
2385
+ version: string;
2388
2386
  kind: "doc.pushed";
2389
2387
  document_id: string;
2390
- version: string;
2391
2388
  }>, z.ZodObject<{
2392
2389
  kind: z.ZodLiteral<"thread.opened">;
2393
2390
  document_id: z.ZodString;
@@ -2451,13 +2448,13 @@ declare const task_event_payload: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2451
2448
  to: z.ZodEnum<["ideate", "plan", "build", "review", "deploy", "live"]>;
2452
2449
  override: z.ZodBoolean;
2453
2450
  }, "strip", z.ZodTypeAny, {
2454
- kind: "stage.advanced";
2455
2451
  override: boolean;
2452
+ kind: "stage.advanced";
2456
2453
  from: "ideate" | "plan" | "build" | "review" | "deploy" | "live" | null;
2457
2454
  to: "ideate" | "plan" | "build" | "review" | "deploy" | "live";
2458
2455
  }, {
2459
- kind: "stage.advanced";
2460
2456
  override: boolean;
2457
+ kind: "stage.advanced";
2461
2458
  from: "ideate" | "plan" | "build" | "review" | "deploy" | "live" | null;
2462
2459
  to: "ideate" | "plan" | "build" | "review" | "deploy" | "live";
2463
2460
  }>]>;
@@ -2472,16 +2469,16 @@ declare const push_doc_request: z.ZodObject<{
2472
2469
  title: z.ZodString;
2473
2470
  html: z.ZodString;
2474
2471
  }, "strip", z.ZodTypeAny, {
2475
- kind: "plan" | "design" | "interface";
2476
- project_id: string;
2477
2472
  title: string;
2473
+ project_id: string;
2474
+ kind: "plan" | "design" | "interface";
2478
2475
  html: string;
2479
2476
  task_id?: string | null | undefined;
2480
2477
  document_id?: string | undefined;
2481
2478
  }, {
2482
- kind: "plan" | "design" | "interface";
2483
- project_id: string;
2484
2479
  title: string;
2480
+ project_id: string;
2481
+ kind: "plan" | "design" | "interface";
2485
2482
  html: string;
2486
2483
  task_id?: string | null | undefined;
2487
2484
  document_id?: string | undefined;
@@ -2494,17 +2491,17 @@ declare const thread_anchor: z.ZodObject<{
2494
2491
  start: z.ZodNumber;
2495
2492
  end: z.ZodNumber;
2496
2493
  }, "strip", z.ZodTypeAny, {
2494
+ start: number;
2495
+ end: number;
2497
2496
  quote: string;
2498
2497
  prefix: string;
2499
2498
  suffix: string;
2499
+ }, {
2500
2500
  start: number;
2501
2501
  end: number;
2502
- }, {
2503
2502
  quote: string;
2504
2503
  prefix: string;
2505
2504
  suffix: string;
2506
- start: number;
2507
- end: number;
2508
2505
  }>;
2509
2506
  type ThreadAnchor = z.infer<typeof thread_anchor>;
2510
2507
  declare const thread_entry: z.ZodObject<{
@@ -2534,17 +2531,17 @@ declare const thread_marker: z.ZodObject<{
2534
2531
  start: z.ZodNumber;
2535
2532
  end: z.ZodNumber;
2536
2533
  }, "strip", z.ZodTypeAny, {
2534
+ start: number;
2535
+ end: number;
2537
2536
  quote: string;
2538
2537
  prefix: string;
2539
2538
  suffix: string;
2539
+ }, {
2540
2540
  start: number;
2541
2541
  end: number;
2542
- }, {
2543
2542
  quote: string;
2544
2543
  prefix: string;
2545
2544
  suffix: string;
2546
- start: number;
2547
- end: number;
2548
2545
  }>;
2549
2546
  status: z.ZodEnum<["open", "addressed", "resolved", "orphaned"]>;
2550
2547
  blocking: z.ZodBoolean;
@@ -2565,7 +2562,6 @@ declare const thread_marker: z.ZodObject<{
2565
2562
  body: string;
2566
2563
  }>, "many">;
2567
2564
  }, "strip", z.ZodTypeAny, {
2568
- id: string;
2569
2565
  status: "open" | "addressed" | "resolved" | "orphaned";
2570
2566
  entries: {
2571
2567
  at: string;
@@ -2573,16 +2569,16 @@ declare const thread_marker: z.ZodObject<{
2573
2569
  author: string;
2574
2570
  body: string;
2575
2571
  }[];
2572
+ id: string;
2576
2573
  anchor: {
2574
+ start: number;
2575
+ end: number;
2577
2576
  quote: string;
2578
2577
  prefix: string;
2579
2578
  suffix: string;
2580
- start: number;
2581
- end: number;
2582
2579
  };
2583
2580
  blocking: boolean;
2584
2581
  }, {
2585
- id: string;
2586
2582
  status: "open" | "addressed" | "resolved" | "orphaned";
2587
2583
  entries: {
2588
2584
  at: string;
@@ -2590,12 +2586,13 @@ declare const thread_marker: z.ZodObject<{
2590
2586
  author: string;
2591
2587
  body: string;
2592
2588
  }[];
2589
+ id: string;
2593
2590
  anchor: {
2591
+ start: number;
2592
+ end: number;
2594
2593
  quote: string;
2595
2594
  prefix: string;
2596
2595
  suffix: string;
2597
- start: number;
2598
- end: number;
2599
2596
  };
2600
2597
  blocking: boolean;
2601
2598
  }>;
@@ -2610,19 +2607,19 @@ declare const create_thread_request: z.ZodObject<{
2610
2607
  blocking: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2611
2608
  }, "strip", z.ZodTypeAny, {
2612
2609
  blocking: boolean;
2610
+ body: string;
2611
+ start: number;
2612
+ end: number;
2613
2613
  quote: string;
2614
2614
  prefix: string;
2615
2615
  suffix: string;
2616
+ }, {
2617
+ body: string;
2616
2618
  start: number;
2617
2619
  end: number;
2618
- body: string;
2619
- }, {
2620
2620
  quote: string;
2621
2621
  prefix: string;
2622
2622
  suffix: string;
2623
- start: number;
2624
- end: number;
2625
- body: string;
2626
2623
  blocking?: boolean | undefined;
2627
2624
  }>;
2628
2625
  type CreateThreadRequest = z.infer<typeof create_thread_request>;
@@ -2697,14 +2694,14 @@ declare const push_interface_report_request: z.ZodObject<{
2697
2694
  title: z.ZodString;
2698
2695
  normalized: z.ZodString;
2699
2696
  }, "strip", z.ZodTypeAny, {
2700
- project_id: string;
2701
2697
  title: string;
2698
+ project_id: string;
2702
2699
  normalized: string;
2703
2700
  task_id?: string | null | undefined;
2704
2701
  document_id?: string | undefined;
2705
2702
  }, {
2706
- project_id: string;
2707
2703
  title: string;
2704
+ project_id: string;
2708
2705
  normalized: string;
2709
2706
  task_id?: string | null | undefined;
2710
2707
  document_id?: string | undefined;
@@ -2722,18 +2719,18 @@ declare const review_item: z.ZodObject<{
2722
2719
  created_at: z.ZodString;
2723
2720
  path: z.ZodString;
2724
2721
  }, "strip", z.ZodTypeAny, {
2722
+ title: string;
2725
2723
  path: string;
2726
- kind: "pipeline_gate" | "signoff" | "annotation" | "scan_diff";
2727
- project_id: string | null;
2728
2724
  created_at: string;
2729
- title: string;
2725
+ project_id: string | null;
2726
+ kind: "pipeline_gate" | "signoff" | "annotation" | "scan_diff";
2730
2727
  subject_id: string;
2731
2728
  }, {
2729
+ title: string;
2732
2730
  path: string;
2733
- kind: "pipeline_gate" | "signoff" | "annotation" | "scan_diff";
2734
- project_id: string | null;
2735
2731
  created_at: string;
2736
- title: string;
2732
+ project_id: string | null;
2733
+ kind: "pipeline_gate" | "signoff" | "annotation" | "scan_diff";
2737
2734
  subject_id: string;
2738
2735
  }>;
2739
2736
  type ReviewItem = z.infer<typeof review_item>;
@@ -2746,36 +2743,36 @@ declare const reviews_pending_response: z.ZodObject<{
2746
2743
  created_at: z.ZodString;
2747
2744
  path: z.ZodString;
2748
2745
  }, "strip", z.ZodTypeAny, {
2746
+ title: string;
2749
2747
  path: string;
2750
- kind: "pipeline_gate" | "signoff" | "annotation" | "scan_diff";
2751
- project_id: string | null;
2752
2748
  created_at: string;
2753
- title: string;
2749
+ project_id: string | null;
2750
+ kind: "pipeline_gate" | "signoff" | "annotation" | "scan_diff";
2754
2751
  subject_id: string;
2755
2752
  }, {
2753
+ title: string;
2756
2754
  path: string;
2757
- kind: "pipeline_gate" | "signoff" | "annotation" | "scan_diff";
2758
- project_id: string | null;
2759
2755
  created_at: string;
2760
- title: string;
2756
+ project_id: string | null;
2757
+ kind: "pipeline_gate" | "signoff" | "annotation" | "scan_diff";
2761
2758
  subject_id: string;
2762
2759
  }>, "many">;
2763
2760
  }, "strip", z.ZodTypeAny, {
2764
2761
  items: {
2762
+ title: string;
2765
2763
  path: string;
2766
- kind: "pipeline_gate" | "signoff" | "annotation" | "scan_diff";
2767
- project_id: string | null;
2768
2764
  created_at: string;
2769
- title: string;
2765
+ project_id: string | null;
2766
+ kind: "pipeline_gate" | "signoff" | "annotation" | "scan_diff";
2770
2767
  subject_id: string;
2771
2768
  }[];
2772
2769
  }, {
2773
2770
  items: {
2771
+ title: string;
2774
2772
  path: string;
2775
- kind: "pipeline_gate" | "signoff" | "annotation" | "scan_diff";
2776
- project_id: string | null;
2777
2773
  created_at: string;
2778
- title: string;
2774
+ project_id: string | null;
2775
+ kind: "pipeline_gate" | "signoff" | "annotation" | "scan_diff";
2779
2776
  subject_id: string;
2780
2777
  }[];
2781
2778
  }>;
@@ -2785,12 +2782,12 @@ declare const hook_selector: z.ZodObject<{
2785
2782
  tag: z.ZodOptional<z.ZodString>;
2786
2783
  ancestor_id: z.ZodOptional<z.ZodString>;
2787
2784
  }, "strip", z.ZodTypeAny, {
2788
- subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
2789
2785
  tag?: string | undefined;
2786
+ subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
2790
2787
  ancestor_id?: string | undefined;
2791
2788
  }, {
2792
- subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
2793
2789
  tag?: string | undefined;
2790
+ subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
2794
2791
  ancestor_id?: string | undefined;
2795
2792
  }>;
2796
2793
  type HookSelector = z.infer<typeof hook_selector>;
@@ -2801,26 +2798,26 @@ declare const hook_trigger: z.ZodObject<{
2801
2798
  tag: z.ZodOptional<z.ZodString>;
2802
2799
  ancestor_id: z.ZodOptional<z.ZodString>;
2803
2800
  }, "strip", z.ZodTypeAny, {
2804
- subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
2805
2801
  tag?: string | undefined;
2802
+ subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
2806
2803
  ancestor_id?: string | undefined;
2807
2804
  }, {
2808
- subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
2809
2805
  tag?: string | undefined;
2806
+ subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
2810
2807
  ancestor_id?: string | undefined;
2811
2808
  }>>;
2812
2809
  }, "strip", z.ZodTypeAny, {
2813
2810
  kinds: ("task.created" | "task.updated" | "task.completed" | "task.reopened" | "task.claimed" | "edge.created" | "edge.removed" | "node.children_all_done" | "policy.fired" | "node.completion_stale" | "doc.pushed" | "thread.opened" | "thread.resolved" | "signoff.requested" | "signoff.decided" | "stage.advanced")[];
2814
2811
  selector: {
2815
- subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
2816
2812
  tag?: string | undefined;
2813
+ subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
2817
2814
  ancestor_id?: string | undefined;
2818
2815
  };
2819
2816
  }, {
2820
2817
  kinds: ("task.created" | "task.updated" | "task.completed" | "task.reopened" | "task.claimed" | "edge.created" | "edge.removed" | "node.children_all_done" | "policy.fired" | "node.completion_stale" | "doc.pushed" | "thread.opened" | "thread.resolved" | "signoff.requested" | "signoff.decided" | "stage.advanced")[];
2821
2818
  selector?: {
2822
- subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
2823
2819
  tag?: string | undefined;
2820
+ subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
2824
2821
  ancestor_id?: string | undefined;
2825
2822
  } | undefined;
2826
2823
  }>;
@@ -2844,13 +2841,13 @@ declare const hook_action_input: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2844
2841
  op: z.ZodString;
2845
2842
  args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2846
2843
  }, "strip", z.ZodTypeAny, {
2847
- kind: "vault";
2848
2844
  scope: string;
2845
+ kind: "vault";
2849
2846
  op: string;
2850
2847
  args?: Record<string, unknown> | undefined;
2851
2848
  }, {
2852
- kind: "vault";
2853
2849
  scope: string;
2850
+ kind: "vault";
2854
2851
  op: string;
2855
2852
  args?: Record<string, unknown> | undefined;
2856
2853
  }>, z.ZodObject<{
@@ -2883,13 +2880,13 @@ declare const hook_action_stored: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2883
2880
  op: z.ZodString;
2884
2881
  args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2885
2882
  }, "strip", z.ZodTypeAny, {
2886
- kind: "vault";
2887
2883
  scope: string;
2884
+ kind: "vault";
2888
2885
  op: string;
2889
2886
  args?: Record<string, unknown> | undefined;
2890
2887
  }, {
2891
- kind: "vault";
2892
2888
  scope: string;
2889
+ kind: "vault";
2893
2890
  op: string;
2894
2891
  args?: Record<string, unknown> | undefined;
2895
2892
  }>, z.ZodObject<{
@@ -2922,13 +2919,13 @@ declare const hook_action_public: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2922
2919
  op: z.ZodString;
2923
2920
  args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2924
2921
  }, "strip", z.ZodTypeAny, {
2925
- kind: "vault";
2926
2922
  scope: string;
2923
+ kind: "vault";
2927
2924
  op: string;
2928
2925
  args?: Record<string, unknown> | undefined;
2929
2926
  }, {
2930
- kind: "vault";
2931
2927
  scope: string;
2928
+ kind: "vault";
2932
2929
  op: string;
2933
2930
  args?: Record<string, unknown> | undefined;
2934
2931
  }>, z.ZodObject<{
@@ -2953,26 +2950,26 @@ declare const upsert_hook: z.ZodObject<{
2953
2950
  tag: z.ZodOptional<z.ZodString>;
2954
2951
  ancestor_id: z.ZodOptional<z.ZodString>;
2955
2952
  }, "strip", z.ZodTypeAny, {
2956
- subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
2957
2953
  tag?: string | undefined;
2954
+ subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
2958
2955
  ancestor_id?: string | undefined;
2959
2956
  }, {
2960
- subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
2961
2957
  tag?: string | undefined;
2958
+ subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
2962
2959
  ancestor_id?: string | undefined;
2963
2960
  }>>;
2964
2961
  }, "strip", z.ZodTypeAny, {
2965
2962
  kinds: ("task.created" | "task.updated" | "task.completed" | "task.reopened" | "task.claimed" | "edge.created" | "edge.removed" | "node.children_all_done" | "policy.fired" | "node.completion_stale" | "doc.pushed" | "thread.opened" | "thread.resolved" | "signoff.requested" | "signoff.decided" | "stage.advanced")[];
2966
2963
  selector: {
2967
- subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
2968
2964
  tag?: string | undefined;
2965
+ subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
2969
2966
  ancestor_id?: string | undefined;
2970
2967
  };
2971
2968
  }, {
2972
2969
  kinds: ("task.created" | "task.updated" | "task.completed" | "task.reopened" | "task.claimed" | "edge.created" | "edge.removed" | "node.children_all_done" | "policy.fired" | "node.completion_stale" | "doc.pushed" | "thread.opened" | "thread.resolved" | "signoff.requested" | "signoff.decided" | "stage.advanced")[];
2973
2970
  selector?: {
2974
- subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
2975
2971
  tag?: string | undefined;
2972
+ subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
2976
2973
  ancestor_id?: string | undefined;
2977
2974
  } | undefined;
2978
2975
  }>;
@@ -2994,13 +2991,13 @@ declare const upsert_hook: z.ZodObject<{
2994
2991
  op: z.ZodString;
2995
2992
  args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2996
2993
  }, "strip", z.ZodTypeAny, {
2997
- kind: "vault";
2998
2994
  scope: string;
2995
+ kind: "vault";
2999
2996
  op: string;
3000
2997
  args?: Record<string, unknown> | undefined;
3001
2998
  }, {
3002
- kind: "vault";
3003
2999
  scope: string;
3000
+ kind: "vault";
3004
3001
  op: string;
3005
3002
  args?: Record<string, unknown> | undefined;
3006
3003
  }>, z.ZodObject<{
@@ -3021,8 +3018,8 @@ declare const upsert_hook: z.ZodObject<{
3021
3018
  url: string;
3022
3019
  secret?: string | undefined;
3023
3020
  } | {
3024
- kind: "vault";
3025
3021
  scope: string;
3022
+ kind: "vault";
3026
3023
  op: string;
3027
3024
  args?: Record<string, unknown> | undefined;
3028
3025
  } | {
@@ -3032,8 +3029,8 @@ declare const upsert_hook: z.ZodObject<{
3032
3029
  trigger: {
3033
3030
  kinds: ("task.created" | "task.updated" | "task.completed" | "task.reopened" | "task.claimed" | "edge.created" | "edge.removed" | "node.children_all_done" | "policy.fired" | "node.completion_stale" | "doc.pushed" | "thread.opened" | "thread.resolved" | "signoff.requested" | "signoff.decided" | "stage.advanced")[];
3034
3031
  selector: {
3035
- subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
3036
3032
  tag?: string | undefined;
3033
+ subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
3037
3034
  ancestor_id?: string | undefined;
3038
3035
  };
3039
3036
  };
@@ -3045,8 +3042,8 @@ declare const upsert_hook: z.ZodObject<{
3045
3042
  url: string;
3046
3043
  secret?: string | undefined;
3047
3044
  } | {
3048
- kind: "vault";
3049
3045
  scope: string;
3046
+ kind: "vault";
3050
3047
  op: string;
3051
3048
  args?: Record<string, unknown> | undefined;
3052
3049
  } | {
@@ -3056,8 +3053,8 @@ declare const upsert_hook: z.ZodObject<{
3056
3053
  trigger: {
3057
3054
  kinds: ("task.created" | "task.updated" | "task.completed" | "task.reopened" | "task.claimed" | "edge.created" | "edge.removed" | "node.children_all_done" | "policy.fired" | "node.completion_stale" | "doc.pushed" | "thread.opened" | "thread.resolved" | "signoff.requested" | "signoff.decided" | "stage.advanced")[];
3058
3055
  selector?: {
3059
- subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
3060
3056
  tag?: string | undefined;
3057
+ subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
3061
3058
  ancestor_id?: string | undefined;
3062
3059
  } | undefined;
3063
3060
  };
@@ -4613,19 +4610,18 @@ declare const project_graph_response: z.ZodObject<{
4613
4610
  }>>;
4614
4611
  }, "strip", z.ZodTypeAny, {
4615
4612
  tasks: {
4616
- id: string;
4617
- protected: boolean;
4618
- kind: "milestone" | "goal" | "task" | "phase" | "approval";
4619
- project_id: string | null;
4613
+ title: string;
4614
+ description: string | null;
4620
4615
  created_at: string;
4616
+ id: string;
4621
4617
  updated_at: string;
4618
+ owner_id: string;
4619
+ project_id: string | null;
4622
4620
  deleted: boolean;
4623
4621
  created_by: "user" | "api";
4624
4622
  modified_by: "user" | "api";
4625
- owner_id: string;
4626
- description: string | null;
4623
+ protected: boolean;
4627
4624
  visibility: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED";
4628
- title: string;
4629
4625
  progress: "UNSTARTED" | "IN_PROGRESS" | "COMPLETED";
4630
4626
  goal_id: string | null;
4631
4627
  start_time: string | null;
@@ -4636,6 +4632,7 @@ declare const project_graph_response: z.ZodObject<{
4636
4632
  parent_id: string | null;
4637
4633
  rank: string;
4638
4634
  rev: number;
4635
+ kind: "milestone" | "goal" | "task" | "phase" | "approval";
4639
4636
  completion_policy: "manual" | "auto_children";
4640
4637
  completed_via: "user" | "api" | "policy" | null;
4641
4638
  claimed_by: string | null;
@@ -4643,16 +4640,16 @@ declare const project_graph_response: z.ZodObject<{
4643
4640
  stage: "ideate" | "plan" | "build" | "review" | "deploy" | "live" | null;
4644
4641
  }[];
4645
4642
  links: {
4643
+ created_at: string;
4646
4644
  id: string;
4647
- protected: boolean;
4648
- kind: "blocks" | "relates_to" | "references" | "discovered_from" | "tracks_metric";
4645
+ updated_at: string;
4649
4646
  ref: drizzle_zod.Json;
4650
4647
  note: string | null;
4651
- created_at: string;
4652
- updated_at: string;
4653
4648
  deleted: boolean;
4654
4649
  created_by: "user" | "api";
4655
4650
  modified_by: "user" | "api";
4651
+ protected: boolean;
4652
+ kind: "blocks" | "relates_to" | "references" | "discovered_from" | "tracks_metric";
4656
4653
  src_id: string;
4657
4654
  dst_id: string | null;
4658
4655
  }[];
@@ -4664,19 +4661,18 @@ declare const project_graph_response: z.ZodObject<{
4664
4661
  }>;
4665
4662
  }, {
4666
4663
  tasks: {
4667
- id: string;
4668
- protected: boolean;
4669
- kind: "milestone" | "goal" | "task" | "phase" | "approval";
4670
- project_id: string | null;
4664
+ title: string;
4665
+ description: string | null;
4671
4666
  created_at: string;
4667
+ id: string;
4672
4668
  updated_at: string;
4669
+ owner_id: string;
4670
+ project_id: string | null;
4673
4671
  deleted: boolean;
4674
4672
  created_by: "user" | "api";
4675
4673
  modified_by: "user" | "api";
4676
- owner_id: string;
4677
- description: string | null;
4674
+ protected: boolean;
4678
4675
  visibility: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED";
4679
- title: string;
4680
4676
  progress: "UNSTARTED" | "IN_PROGRESS" | "COMPLETED";
4681
4677
  goal_id: string | null;
4682
4678
  start_time: string | null;
@@ -4687,6 +4683,7 @@ declare const project_graph_response: z.ZodObject<{
4687
4683
  parent_id: string | null;
4688
4684
  rank: string;
4689
4685
  rev: number;
4686
+ kind: "milestone" | "goal" | "task" | "phase" | "approval";
4690
4687
  completion_policy: "manual" | "auto_children";
4691
4688
  completed_via: "user" | "api" | "policy" | null;
4692
4689
  claimed_by: string | null;
@@ -4694,16 +4691,16 @@ declare const project_graph_response: z.ZodObject<{
4694
4691
  stage: "ideate" | "plan" | "build" | "review" | "deploy" | "live" | null;
4695
4692
  }[];
4696
4693
  links: {
4694
+ created_at: string;
4697
4695
  id: string;
4698
- protected: boolean;
4699
- kind: "blocks" | "relates_to" | "references" | "discovered_from" | "tracks_metric";
4696
+ updated_at: string;
4700
4697
  ref: drizzle_zod.Json;
4701
4698
  note: string | null;
4702
- created_at: string;
4703
- updated_at: string;
4704
4699
  deleted: boolean;
4705
4700
  created_by: "user" | "api";
4706
4701
  modified_by: "user" | "api";
4702
+ protected: boolean;
4703
+ kind: "blocks" | "relates_to" | "references" | "discovered_from" | "tracks_metric";
4707
4704
  src_id: string;
4708
4705
  dst_id: string | null;
4709
4706
  }[];