@devpad/api 2.3.4 → 2.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-BMT7GORG.js → chunk-4GRUM2BX.js} +11 -1
- package/dist/{chunk-XHTCNYWS.js → chunk-KRYLGBPJ.js} +306 -6
- package/dist/{errors.d-CNYqUDaJ.d.ts → errors.d-BUNZEN7j.d.ts} +10 -2
- package/dist/index.d.ts +119 -6
- package/dist/index.js +278 -10
- package/dist/schema/blog.d.ts +1348 -125
- package/dist/schema/index.d.ts +3 -3
- package/dist/schema/index.js +58 -2
- package/dist/schema/media.d.ts +29 -29
- package/dist/schema/media.js +5 -1
- package/dist/{schema.d-DfzLWuRW.d.ts → schema.d-7jUA2Hd2.d.ts} +1219 -7
- package/dist/{types.d-BJ3g4B0G.d.ts → types.d-CEmFf0kh.d.ts} +708 -15
- package/dist/{types.d-ip2SzstN.d.ts → types.d-CsYeI1BE.d.ts} +1 -1
- package/dist/{types.d-BhWQru2j.d.ts → types.d-DbgtG-w1.d.ts} +8 -8
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InferSelectModel } from 'drizzle-orm';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import {
|
|
3
|
+
import { q as api_keys, N as project, $ as todo_updates, o as action, A as ActionType, z as milestone, v as goal, w as hook, x as hook_delivery, W as task, s as codebase_tasks, Y as task_link, U as tag, t as document, p as annotation_thread, Q as signoff, L as pipeline_run, M as pipeline_stage_event, I as pipeline_grant, K as pipeline_package, B as pipeline_analysis_template, J as pipeline_oidc_trust, r as apply_log, u as github_webhook_event, y as ignore_path, E as pipeline_approval, O as session, V as tag_config, X as task_event, Z as task_rollup, _ as task_tag, a0 as tracker_result, a1 as user } from './schema.d-7jUA2Hd2.js';
|
|
4
4
|
|
|
5
5
|
declare const upsert_project: z.ZodObject<{
|
|
6
6
|
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -21,8 +21,8 @@ declare const upsert_project: z.ZodObject<{
|
|
|
21
21
|
force: z.ZodOptional<z.ZodBoolean>;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
23
|
name: string;
|
|
24
|
-
deleted: boolean;
|
|
25
24
|
project_id: string;
|
|
25
|
+
deleted: boolean;
|
|
26
26
|
description: string | null;
|
|
27
27
|
specification: string | null;
|
|
28
28
|
repo_url: string | null;
|
|
@@ -643,16 +643,16 @@ declare const upsert_pipeline_approval: z.ZodObject<{
|
|
|
643
643
|
run_id: string;
|
|
644
644
|
stage_name: string;
|
|
645
645
|
decision?: "approved" | "denied" | null | undefined;
|
|
646
|
-
reason?: string | null | undefined;
|
|
647
646
|
decided_by?: string | null | undefined;
|
|
648
647
|
decided_at?: string | null | undefined;
|
|
648
|
+
reason?: string | null | undefined;
|
|
649
649
|
}, {
|
|
650
650
|
run_id: string;
|
|
651
651
|
stage_name: string;
|
|
652
652
|
decision?: "approved" | "denied" | null | undefined;
|
|
653
|
-
reason?: string | null | undefined;
|
|
654
653
|
decided_by?: string | null | undefined;
|
|
655
654
|
decided_at?: string | null | undefined;
|
|
655
|
+
reason?: string | null | undefined;
|
|
656
656
|
}>;
|
|
657
657
|
declare const upsert_pipeline_analysis_template: z.ZodObject<{
|
|
658
658
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -1199,8 +1199,8 @@ declare const apply_op: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
|
|
|
1199
1199
|
}, "strip", z.ZodTypeAny, {
|
|
1200
1200
|
id?: string | null | undefined;
|
|
1201
1201
|
kind?: "task" | "phase" | "approval" | undefined;
|
|
1202
|
-
owner_id?: string | undefined;
|
|
1203
1202
|
project_id?: string | null | undefined;
|
|
1203
|
+
owner_id?: string | undefined;
|
|
1204
1204
|
description?: string | null | undefined;
|
|
1205
1205
|
visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
|
|
1206
1206
|
title?: string | undefined;
|
|
@@ -1217,8 +1217,8 @@ declare const apply_op: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
|
|
|
1217
1217
|
}, {
|
|
1218
1218
|
id?: string | null | undefined;
|
|
1219
1219
|
kind?: "task" | "phase" | "approval" | undefined;
|
|
1220
|
-
owner_id?: string | undefined;
|
|
1221
1220
|
project_id?: string | null | undefined;
|
|
1221
|
+
owner_id?: string | undefined;
|
|
1222
1222
|
description?: string | null | undefined;
|
|
1223
1223
|
visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
|
|
1224
1224
|
title?: string | undefined;
|
|
@@ -1238,8 +1238,8 @@ declare const apply_op: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
|
|
|
1238
1238
|
data: {
|
|
1239
1239
|
id?: string | null | undefined;
|
|
1240
1240
|
kind?: "task" | "phase" | "approval" | undefined;
|
|
1241
|
-
owner_id?: string | undefined;
|
|
1242
1241
|
project_id?: string | null | undefined;
|
|
1242
|
+
owner_id?: string | undefined;
|
|
1243
1243
|
description?: string | null | undefined;
|
|
1244
1244
|
visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
|
|
1245
1245
|
title?: string | undefined;
|
|
@@ -1261,8 +1261,8 @@ declare const apply_op: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
|
|
|
1261
1261
|
data: {
|
|
1262
1262
|
id?: string | null | undefined;
|
|
1263
1263
|
kind?: "task" | "phase" | "approval" | undefined;
|
|
1264
|
-
owner_id?: string | undefined;
|
|
1265
1264
|
project_id?: string | null | undefined;
|
|
1265
|
+
owner_id?: string | undefined;
|
|
1266
1266
|
description?: string | null | undefined;
|
|
1267
1267
|
visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
|
|
1268
1268
|
title?: string | undefined;
|
|
@@ -1632,8 +1632,8 @@ declare const apply_request: z.ZodObject<{
|
|
|
1632
1632
|
}, "strip", z.ZodTypeAny, {
|
|
1633
1633
|
id?: string | null | undefined;
|
|
1634
1634
|
kind?: "task" | "phase" | "approval" | undefined;
|
|
1635
|
-
owner_id?: string | undefined;
|
|
1636
1635
|
project_id?: string | null | undefined;
|
|
1636
|
+
owner_id?: string | undefined;
|
|
1637
1637
|
description?: string | null | undefined;
|
|
1638
1638
|
visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
|
|
1639
1639
|
title?: string | undefined;
|
|
@@ -1650,8 +1650,8 @@ declare const apply_request: z.ZodObject<{
|
|
|
1650
1650
|
}, {
|
|
1651
1651
|
id?: string | null | undefined;
|
|
1652
1652
|
kind?: "task" | "phase" | "approval" | undefined;
|
|
1653
|
-
owner_id?: string | undefined;
|
|
1654
1653
|
project_id?: string | null | undefined;
|
|
1654
|
+
owner_id?: string | undefined;
|
|
1655
1655
|
description?: string | null | undefined;
|
|
1656
1656
|
visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
|
|
1657
1657
|
title?: string | undefined;
|
|
@@ -1671,8 +1671,8 @@ declare const apply_request: z.ZodObject<{
|
|
|
1671
1671
|
data: {
|
|
1672
1672
|
id?: string | null | undefined;
|
|
1673
1673
|
kind?: "task" | "phase" | "approval" | undefined;
|
|
1674
|
-
owner_id?: string | undefined;
|
|
1675
1674
|
project_id?: string | null | undefined;
|
|
1675
|
+
owner_id?: string | undefined;
|
|
1676
1676
|
description?: string | null | undefined;
|
|
1677
1677
|
visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
|
|
1678
1678
|
title?: string | undefined;
|
|
@@ -1694,8 +1694,8 @@ declare const apply_request: z.ZodObject<{
|
|
|
1694
1694
|
data: {
|
|
1695
1695
|
id?: string | null | undefined;
|
|
1696
1696
|
kind?: "task" | "phase" | "approval" | undefined;
|
|
1697
|
-
owner_id?: string | undefined;
|
|
1698
1697
|
project_id?: string | null | undefined;
|
|
1698
|
+
owner_id?: string | undefined;
|
|
1699
1699
|
description?: string | null | undefined;
|
|
1700
1700
|
visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
|
|
1701
1701
|
title?: string | undefined;
|
|
@@ -1963,8 +1963,8 @@ declare const apply_request: z.ZodObject<{
|
|
|
1963
1963
|
data: {
|
|
1964
1964
|
id?: string | null | undefined;
|
|
1965
1965
|
kind?: "task" | "phase" | "approval" | undefined;
|
|
1966
|
-
owner_id?: string | undefined;
|
|
1967
1966
|
project_id?: string | null | undefined;
|
|
1967
|
+
owner_id?: string | undefined;
|
|
1968
1968
|
description?: string | null | undefined;
|
|
1969
1969
|
visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
|
|
1970
1970
|
title?: string | undefined;
|
|
@@ -2057,8 +2057,8 @@ declare const apply_request: z.ZodObject<{
|
|
|
2057
2057
|
data: {
|
|
2058
2058
|
id?: string | null | undefined;
|
|
2059
2059
|
kind?: "task" | "phase" | "approval" | undefined;
|
|
2060
|
-
owner_id?: string | undefined;
|
|
2061
2060
|
project_id?: string | null | undefined;
|
|
2061
|
+
owner_id?: string | undefined;
|
|
2062
2062
|
description?: string | null | undefined;
|
|
2063
2063
|
visibility?: "PUBLIC" | "PRIVATE" | "HIDDEN" | "ARCHIVED" | "DRAFT" | "DELETED" | undefined;
|
|
2064
2064
|
title?: string | undefined;
|
|
@@ -2237,8 +2237,695 @@ declare const task_event_payload: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
|
2237
2237
|
}, {
|
|
2238
2238
|
kind: "node.completion_stale";
|
|
2239
2239
|
child_id: string;
|
|
2240
|
+
}>, z.ZodObject<{
|
|
2241
|
+
kind: z.ZodLiteral<"doc.pushed">;
|
|
2242
|
+
document_id: z.ZodString;
|
|
2243
|
+
version: z.ZodString;
|
|
2244
|
+
}, "strip", z.ZodTypeAny, {
|
|
2245
|
+
kind: "doc.pushed";
|
|
2246
|
+
document_id: string;
|
|
2247
|
+
version: string;
|
|
2248
|
+
}, {
|
|
2249
|
+
kind: "doc.pushed";
|
|
2250
|
+
document_id: string;
|
|
2251
|
+
version: string;
|
|
2252
|
+
}>, z.ZodObject<{
|
|
2253
|
+
kind: z.ZodLiteral<"thread.opened">;
|
|
2254
|
+
document_id: z.ZodString;
|
|
2255
|
+
thread_id: z.ZodString;
|
|
2256
|
+
}, "strip", z.ZodTypeAny, {
|
|
2257
|
+
kind: "thread.opened";
|
|
2258
|
+
document_id: string;
|
|
2259
|
+
thread_id: string;
|
|
2260
|
+
}, {
|
|
2261
|
+
kind: "thread.opened";
|
|
2262
|
+
document_id: string;
|
|
2263
|
+
thread_id: string;
|
|
2264
|
+
}>, z.ZodObject<{
|
|
2265
|
+
kind: z.ZodLiteral<"thread.resolved">;
|
|
2266
|
+
document_id: z.ZodString;
|
|
2267
|
+
thread_id: z.ZodString;
|
|
2268
|
+
}, "strip", z.ZodTypeAny, {
|
|
2269
|
+
kind: "thread.resolved";
|
|
2270
|
+
document_id: string;
|
|
2271
|
+
thread_id: string;
|
|
2272
|
+
}, {
|
|
2273
|
+
kind: "thread.resolved";
|
|
2274
|
+
document_id: string;
|
|
2275
|
+
thread_id: string;
|
|
2276
|
+
}>, z.ZodObject<{
|
|
2277
|
+
kind: z.ZodLiteral<"signoff.requested">;
|
|
2278
|
+
subject_kind: z.ZodEnum<["doc_version", "stage", "pipeline_gate"]>;
|
|
2279
|
+
subject_id: z.ZodString;
|
|
2280
|
+
checkpoint: z.ZodEnum<["plan", "types", "design"]>;
|
|
2281
|
+
}, "strip", z.ZodTypeAny, {
|
|
2282
|
+
kind: "signoff.requested";
|
|
2283
|
+
subject_id: string;
|
|
2284
|
+
subject_kind: "stage" | "doc_version" | "pipeline_gate";
|
|
2285
|
+
checkpoint: "plan" | "design" | "types";
|
|
2286
|
+
}, {
|
|
2287
|
+
kind: "signoff.requested";
|
|
2288
|
+
subject_id: string;
|
|
2289
|
+
subject_kind: "stage" | "doc_version" | "pipeline_gate";
|
|
2290
|
+
checkpoint: "plan" | "design" | "types";
|
|
2291
|
+
}>, z.ZodObject<{
|
|
2292
|
+
kind: z.ZodLiteral<"signoff.decided">;
|
|
2293
|
+
subject_kind: z.ZodEnum<["doc_version", "stage", "pipeline_gate"]>;
|
|
2294
|
+
subject_id: z.ZodString;
|
|
2295
|
+
checkpoint: z.ZodEnum<["plan", "types", "design"]>;
|
|
2296
|
+
decision: z.ZodEnum<["approved", "changes_requested", "auto"]>;
|
|
2297
|
+
}, "strip", z.ZodTypeAny, {
|
|
2298
|
+
kind: "signoff.decided";
|
|
2299
|
+
subject_id: string;
|
|
2300
|
+
subject_kind: "stage" | "doc_version" | "pipeline_gate";
|
|
2301
|
+
checkpoint: "plan" | "design" | "types";
|
|
2302
|
+
decision: "approved" | "changes_requested" | "auto";
|
|
2303
|
+
}, {
|
|
2304
|
+
kind: "signoff.decided";
|
|
2305
|
+
subject_id: string;
|
|
2306
|
+
subject_kind: "stage" | "doc_version" | "pipeline_gate";
|
|
2307
|
+
checkpoint: "plan" | "design" | "types";
|
|
2308
|
+
decision: "approved" | "changes_requested" | "auto";
|
|
2309
|
+
}>, z.ZodObject<{
|
|
2310
|
+
kind: z.ZodLiteral<"stage.advanced">;
|
|
2311
|
+
from: z.ZodNullable<z.ZodEnum<["ideate", "plan", "build", "review", "deploy", "live"]>>;
|
|
2312
|
+
to: z.ZodEnum<["ideate", "plan", "build", "review", "deploy", "live"]>;
|
|
2313
|
+
override: z.ZodBoolean;
|
|
2314
|
+
}, "strip", z.ZodTypeAny, {
|
|
2315
|
+
kind: "stage.advanced";
|
|
2316
|
+
override: boolean;
|
|
2317
|
+
from: "ideate" | "plan" | "build" | "review" | "deploy" | "live" | null;
|
|
2318
|
+
to: "ideate" | "plan" | "build" | "review" | "deploy" | "live";
|
|
2319
|
+
}, {
|
|
2320
|
+
kind: "stage.advanced";
|
|
2321
|
+
override: boolean;
|
|
2322
|
+
from: "ideate" | "plan" | "build" | "review" | "deploy" | "live" | null;
|
|
2323
|
+
to: "ideate" | "plan" | "build" | "review" | "deploy" | "live";
|
|
2240
2324
|
}>]>;
|
|
2241
2325
|
type TaskEventPayload = z.infer<typeof task_event_payload>;
|
|
2326
|
+
declare const document_kind: z.ZodEnum<["plan", "design", "interface"]>;
|
|
2327
|
+
/** Pushes a new corpus version. Omit `document_id` to create a new document. */
|
|
2328
|
+
declare const push_doc_request: z.ZodObject<{
|
|
2329
|
+
document_id: z.ZodOptional<z.ZodString>;
|
|
2330
|
+
project_id: z.ZodString;
|
|
2331
|
+
task_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2332
|
+
kind: z.ZodEnum<["plan", "design", "interface"]>;
|
|
2333
|
+
title: z.ZodString;
|
|
2334
|
+
html: z.ZodString;
|
|
2335
|
+
}, "strip", z.ZodTypeAny, {
|
|
2336
|
+
kind: "plan" | "design" | "interface";
|
|
2337
|
+
project_id: string;
|
|
2338
|
+
title: string;
|
|
2339
|
+
html: string;
|
|
2340
|
+
task_id?: string | null | undefined;
|
|
2341
|
+
document_id?: string | undefined;
|
|
2342
|
+
}, {
|
|
2343
|
+
kind: "plan" | "design" | "interface";
|
|
2344
|
+
project_id: string;
|
|
2345
|
+
title: string;
|
|
2346
|
+
html: string;
|
|
2347
|
+
task_id?: string | null | undefined;
|
|
2348
|
+
document_id?: string | undefined;
|
|
2349
|
+
}>;
|
|
2350
|
+
type PushDocRequest = z.infer<typeof push_doc_request>;
|
|
2351
|
+
declare const thread_anchor: z.ZodObject<{
|
|
2352
|
+
quote: z.ZodString;
|
|
2353
|
+
prefix: z.ZodString;
|
|
2354
|
+
suffix: z.ZodString;
|
|
2355
|
+
start: z.ZodNumber;
|
|
2356
|
+
end: z.ZodNumber;
|
|
2357
|
+
}, "strip", z.ZodTypeAny, {
|
|
2358
|
+
quote: string;
|
|
2359
|
+
prefix: string;
|
|
2360
|
+
suffix: string;
|
|
2361
|
+
start: number;
|
|
2362
|
+
end: number;
|
|
2363
|
+
}, {
|
|
2364
|
+
quote: string;
|
|
2365
|
+
prefix: string;
|
|
2366
|
+
suffix: string;
|
|
2367
|
+
start: number;
|
|
2368
|
+
end: number;
|
|
2369
|
+
}>;
|
|
2370
|
+
type ThreadAnchor = z.infer<typeof thread_anchor>;
|
|
2371
|
+
declare const thread_entry: z.ZodObject<{
|
|
2372
|
+
author: z.ZodString;
|
|
2373
|
+
channel: z.ZodEnum<["user", "api"]>;
|
|
2374
|
+
body: z.ZodString;
|
|
2375
|
+
at: z.ZodString;
|
|
2376
|
+
}, "strip", z.ZodTypeAny, {
|
|
2377
|
+
at: string;
|
|
2378
|
+
channel: "user" | "api";
|
|
2379
|
+
author: string;
|
|
2380
|
+
body: string;
|
|
2381
|
+
}, {
|
|
2382
|
+
at: string;
|
|
2383
|
+
channel: "user" | "api";
|
|
2384
|
+
author: string;
|
|
2385
|
+
body: string;
|
|
2386
|
+
}>;
|
|
2387
|
+
type ThreadEntry = z.infer<typeof thread_entry>;
|
|
2388
|
+
declare const thread_status: z.ZodEnum<["open", "addressed", "resolved", "orphaned"]>;
|
|
2389
|
+
declare const thread_marker: z.ZodObject<{
|
|
2390
|
+
id: z.ZodString;
|
|
2391
|
+
anchor: z.ZodObject<{
|
|
2392
|
+
quote: z.ZodString;
|
|
2393
|
+
prefix: z.ZodString;
|
|
2394
|
+
suffix: z.ZodString;
|
|
2395
|
+
start: z.ZodNumber;
|
|
2396
|
+
end: z.ZodNumber;
|
|
2397
|
+
}, "strip", z.ZodTypeAny, {
|
|
2398
|
+
quote: string;
|
|
2399
|
+
prefix: string;
|
|
2400
|
+
suffix: string;
|
|
2401
|
+
start: number;
|
|
2402
|
+
end: number;
|
|
2403
|
+
}, {
|
|
2404
|
+
quote: string;
|
|
2405
|
+
prefix: string;
|
|
2406
|
+
suffix: string;
|
|
2407
|
+
start: number;
|
|
2408
|
+
end: number;
|
|
2409
|
+
}>;
|
|
2410
|
+
status: z.ZodEnum<["open", "addressed", "resolved", "orphaned"]>;
|
|
2411
|
+
blocking: z.ZodBoolean;
|
|
2412
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
2413
|
+
author: z.ZodString;
|
|
2414
|
+
channel: z.ZodEnum<["user", "api"]>;
|
|
2415
|
+
body: z.ZodString;
|
|
2416
|
+
at: z.ZodString;
|
|
2417
|
+
}, "strip", z.ZodTypeAny, {
|
|
2418
|
+
at: string;
|
|
2419
|
+
channel: "user" | "api";
|
|
2420
|
+
author: string;
|
|
2421
|
+
body: string;
|
|
2422
|
+
}, {
|
|
2423
|
+
at: string;
|
|
2424
|
+
channel: "user" | "api";
|
|
2425
|
+
author: string;
|
|
2426
|
+
body: string;
|
|
2427
|
+
}>, "many">;
|
|
2428
|
+
}, "strip", z.ZodTypeAny, {
|
|
2429
|
+
id: string;
|
|
2430
|
+
status: "open" | "addressed" | "resolved" | "orphaned";
|
|
2431
|
+
entries: {
|
|
2432
|
+
at: string;
|
|
2433
|
+
channel: "user" | "api";
|
|
2434
|
+
author: string;
|
|
2435
|
+
body: string;
|
|
2436
|
+
}[];
|
|
2437
|
+
anchor: {
|
|
2438
|
+
quote: string;
|
|
2439
|
+
prefix: string;
|
|
2440
|
+
suffix: string;
|
|
2441
|
+
start: number;
|
|
2442
|
+
end: number;
|
|
2443
|
+
};
|
|
2444
|
+
blocking: boolean;
|
|
2445
|
+
}, {
|
|
2446
|
+
id: string;
|
|
2447
|
+
status: "open" | "addressed" | "resolved" | "orphaned";
|
|
2448
|
+
entries: {
|
|
2449
|
+
at: string;
|
|
2450
|
+
channel: "user" | "api";
|
|
2451
|
+
author: string;
|
|
2452
|
+
body: string;
|
|
2453
|
+
}[];
|
|
2454
|
+
anchor: {
|
|
2455
|
+
quote: string;
|
|
2456
|
+
prefix: string;
|
|
2457
|
+
suffix: string;
|
|
2458
|
+
start: number;
|
|
2459
|
+
end: number;
|
|
2460
|
+
};
|
|
2461
|
+
blocking: boolean;
|
|
2462
|
+
}>;
|
|
2463
|
+
type ThreadMarker = z.infer<typeof thread_marker>;
|
|
2464
|
+
declare const create_thread_request: z.ZodObject<{
|
|
2465
|
+
quote: z.ZodString;
|
|
2466
|
+
prefix: z.ZodString;
|
|
2467
|
+
suffix: z.ZodString;
|
|
2468
|
+
start: z.ZodNumber;
|
|
2469
|
+
end: z.ZodNumber;
|
|
2470
|
+
body: z.ZodString;
|
|
2471
|
+
blocking: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2472
|
+
}, "strip", z.ZodTypeAny, {
|
|
2473
|
+
blocking: boolean;
|
|
2474
|
+
quote: string;
|
|
2475
|
+
prefix: string;
|
|
2476
|
+
suffix: string;
|
|
2477
|
+
start: number;
|
|
2478
|
+
end: number;
|
|
2479
|
+
body: string;
|
|
2480
|
+
}, {
|
|
2481
|
+
quote: string;
|
|
2482
|
+
prefix: string;
|
|
2483
|
+
suffix: string;
|
|
2484
|
+
start: number;
|
|
2485
|
+
end: number;
|
|
2486
|
+
body: string;
|
|
2487
|
+
blocking?: boolean | undefined;
|
|
2488
|
+
}>;
|
|
2489
|
+
type CreateThreadRequest = z.infer<typeof create_thread_request>;
|
|
2490
|
+
declare const reply_thread_request: z.ZodObject<{
|
|
2491
|
+
body: z.ZodString;
|
|
2492
|
+
}, "strip", z.ZodTypeAny, {
|
|
2493
|
+
body: string;
|
|
2494
|
+
}, {
|
|
2495
|
+
body: string;
|
|
2496
|
+
}>;
|
|
2497
|
+
type ReplyThreadRequest = z.infer<typeof reply_thread_request>;
|
|
2498
|
+
declare const toggle_blocking_request: z.ZodObject<{
|
|
2499
|
+
blocking: z.ZodBoolean;
|
|
2500
|
+
}, "strip", z.ZodTypeAny, {
|
|
2501
|
+
blocking: boolean;
|
|
2502
|
+
}, {
|
|
2503
|
+
blocking: boolean;
|
|
2504
|
+
}>;
|
|
2505
|
+
type ToggleBlockingRequest = z.infer<typeof toggle_blocking_request>;
|
|
2506
|
+
declare const signoff_subject_kind: z.ZodEnum<["doc_version", "stage", "pipeline_gate"]>;
|
|
2507
|
+
declare const signoff_checkpoint: z.ZodEnum<["plan", "types", "design"]>;
|
|
2508
|
+
declare const request_checkpoint_request: z.ZodObject<{
|
|
2509
|
+
project_id: z.ZodString;
|
|
2510
|
+
subject_kind: z.ZodEnum<["doc_version", "stage", "pipeline_gate"]>;
|
|
2511
|
+
subject_id: z.ZodString;
|
|
2512
|
+
checkpoint: z.ZodEnum<["plan", "types", "design"]>;
|
|
2513
|
+
blocks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2514
|
+
}, "strip", z.ZodTypeAny, {
|
|
2515
|
+
project_id: string;
|
|
2516
|
+
blocks: string[];
|
|
2517
|
+
subject_id: string;
|
|
2518
|
+
subject_kind: "stage" | "doc_version" | "pipeline_gate";
|
|
2519
|
+
checkpoint: "plan" | "design" | "types";
|
|
2520
|
+
}, {
|
|
2521
|
+
project_id: string;
|
|
2522
|
+
subject_id: string;
|
|
2523
|
+
subject_kind: "stage" | "doc_version" | "pipeline_gate";
|
|
2524
|
+
checkpoint: "plan" | "design" | "types";
|
|
2525
|
+
blocks?: string[] | undefined;
|
|
2526
|
+
}>;
|
|
2527
|
+
type RequestCheckpointRequest = z.infer<typeof request_checkpoint_request>;
|
|
2528
|
+
declare const decide_checkpoint_request: z.ZodObject<{
|
|
2529
|
+
decision: z.ZodUnion<[z.ZodLiteral<"approved">, z.ZodLiteral<"changes_requested">]>;
|
|
2530
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2531
|
+
}, "strip", z.ZodTypeAny, {
|
|
2532
|
+
decision: "approved" | "changes_requested";
|
|
2533
|
+
reason?: string | undefined;
|
|
2534
|
+
}, {
|
|
2535
|
+
decision: "approved" | "changes_requested";
|
|
2536
|
+
reason?: string | undefined;
|
|
2537
|
+
}>;
|
|
2538
|
+
type DecideCheckpointRequest = z.infer<typeof decide_checkpoint_request>;
|
|
2539
|
+
declare const sdlc_stage: z.ZodEnum<["ideate", "plan", "build", "review", "deploy", "live"]>;
|
|
2540
|
+
declare const advance_stage_request: z.ZodObject<{
|
|
2541
|
+
to: z.ZodEnum<["ideate", "plan", "build", "review", "deploy", "live"]>;
|
|
2542
|
+
override: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
2543
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2544
|
+
}, "strip", z.ZodTypeAny, {
|
|
2545
|
+
override: boolean;
|
|
2546
|
+
to: "ideate" | "plan" | "build" | "review" | "deploy" | "live";
|
|
2547
|
+
reason?: string | undefined;
|
|
2548
|
+
}, {
|
|
2549
|
+
to: "ideate" | "plan" | "build" | "review" | "deploy" | "live";
|
|
2550
|
+
override?: boolean | undefined;
|
|
2551
|
+
reason?: string | undefined;
|
|
2552
|
+
}>;
|
|
2553
|
+
type AdvanceStageRequest = z.infer<typeof advance_stage_request>;
|
|
2554
|
+
declare const push_interface_report_request: z.ZodObject<{
|
|
2555
|
+
document_id: z.ZodOptional<z.ZodString>;
|
|
2556
|
+
project_id: z.ZodString;
|
|
2557
|
+
task_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2558
|
+
title: z.ZodString;
|
|
2559
|
+
normalized: z.ZodString;
|
|
2560
|
+
}, "strip", z.ZodTypeAny, {
|
|
2561
|
+
project_id: string;
|
|
2562
|
+
title: string;
|
|
2563
|
+
normalized: string;
|
|
2564
|
+
task_id?: string | null | undefined;
|
|
2565
|
+
document_id?: string | undefined;
|
|
2566
|
+
}, {
|
|
2567
|
+
project_id: string;
|
|
2568
|
+
title: string;
|
|
2569
|
+
normalized: string;
|
|
2570
|
+
task_id?: string | null | undefined;
|
|
2571
|
+
document_id?: string | undefined;
|
|
2572
|
+
}>;
|
|
2573
|
+
type PushInterfaceReportRequest = z.infer<typeof push_interface_report_request>;
|
|
2574
|
+
declare const INTERFACE_DIFF_CLASSES: readonly ["additive", "breaking", "unchanged"];
|
|
2575
|
+
type InterfaceDiffClass = (typeof INTERFACE_DIFF_CLASSES)[number];
|
|
2576
|
+
declare const REVIEW_ITEM_KINDS: readonly ["signoff", "annotation", "pipeline_gate", "scan_diff"];
|
|
2577
|
+
type ReviewItemKind = (typeof REVIEW_ITEM_KINDS)[number];
|
|
2578
|
+
declare const review_item: z.ZodObject<{
|
|
2579
|
+
kind: z.ZodEnum<["signoff", "annotation", "pipeline_gate", "scan_diff"]>;
|
|
2580
|
+
subject_id: z.ZodString;
|
|
2581
|
+
title: z.ZodString;
|
|
2582
|
+
project_id: z.ZodNullable<z.ZodString>;
|
|
2583
|
+
created_at: z.ZodString;
|
|
2584
|
+
path: z.ZodString;
|
|
2585
|
+
}, "strip", z.ZodTypeAny, {
|
|
2586
|
+
path: string;
|
|
2587
|
+
kind: "pipeline_gate" | "signoff" | "annotation" | "scan_diff";
|
|
2588
|
+
project_id: string | null;
|
|
2589
|
+
created_at: string;
|
|
2590
|
+
title: string;
|
|
2591
|
+
subject_id: string;
|
|
2592
|
+
}, {
|
|
2593
|
+
path: string;
|
|
2594
|
+
kind: "pipeline_gate" | "signoff" | "annotation" | "scan_diff";
|
|
2595
|
+
project_id: string | null;
|
|
2596
|
+
created_at: string;
|
|
2597
|
+
title: string;
|
|
2598
|
+
subject_id: string;
|
|
2599
|
+
}>;
|
|
2600
|
+
type ReviewItem = z.infer<typeof review_item>;
|
|
2601
|
+
declare const reviews_pending_response: z.ZodObject<{
|
|
2602
|
+
items: z.ZodArray<z.ZodObject<{
|
|
2603
|
+
kind: z.ZodEnum<["signoff", "annotation", "pipeline_gate", "scan_diff"]>;
|
|
2604
|
+
subject_id: z.ZodString;
|
|
2605
|
+
title: z.ZodString;
|
|
2606
|
+
project_id: z.ZodNullable<z.ZodString>;
|
|
2607
|
+
created_at: z.ZodString;
|
|
2608
|
+
path: z.ZodString;
|
|
2609
|
+
}, "strip", z.ZodTypeAny, {
|
|
2610
|
+
path: string;
|
|
2611
|
+
kind: "pipeline_gate" | "signoff" | "annotation" | "scan_diff";
|
|
2612
|
+
project_id: string | null;
|
|
2613
|
+
created_at: string;
|
|
2614
|
+
title: string;
|
|
2615
|
+
subject_id: string;
|
|
2616
|
+
}, {
|
|
2617
|
+
path: string;
|
|
2618
|
+
kind: "pipeline_gate" | "signoff" | "annotation" | "scan_diff";
|
|
2619
|
+
project_id: string | null;
|
|
2620
|
+
created_at: string;
|
|
2621
|
+
title: string;
|
|
2622
|
+
subject_id: string;
|
|
2623
|
+
}>, "many">;
|
|
2624
|
+
}, "strip", z.ZodTypeAny, {
|
|
2625
|
+
items: {
|
|
2626
|
+
path: string;
|
|
2627
|
+
kind: "pipeline_gate" | "signoff" | "annotation" | "scan_diff";
|
|
2628
|
+
project_id: string | null;
|
|
2629
|
+
created_at: string;
|
|
2630
|
+
title: string;
|
|
2631
|
+
subject_id: string;
|
|
2632
|
+
}[];
|
|
2633
|
+
}, {
|
|
2634
|
+
items: {
|
|
2635
|
+
path: string;
|
|
2636
|
+
kind: "pipeline_gate" | "signoff" | "annotation" | "scan_diff";
|
|
2637
|
+
project_id: string | null;
|
|
2638
|
+
created_at: string;
|
|
2639
|
+
title: string;
|
|
2640
|
+
subject_id: string;
|
|
2641
|
+
}[];
|
|
2642
|
+
}>;
|
|
2643
|
+
type ReviewsPendingResponse = z.infer<typeof reviews_pending_response>;
|
|
2644
|
+
declare const hook_selector: z.ZodObject<{
|
|
2645
|
+
subject_kind: z.ZodOptional<z.ZodEnum<["task", "phase", "approval"]>>;
|
|
2646
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
2647
|
+
ancestor_id: z.ZodOptional<z.ZodString>;
|
|
2648
|
+
}, "strip", z.ZodTypeAny, {
|
|
2649
|
+
subject_kind?: "task" | "phase" | "approval" | undefined;
|
|
2650
|
+
tag?: string | undefined;
|
|
2651
|
+
ancestor_id?: string | undefined;
|
|
2652
|
+
}, {
|
|
2653
|
+
subject_kind?: "task" | "phase" | "approval" | undefined;
|
|
2654
|
+
tag?: string | undefined;
|
|
2655
|
+
ancestor_id?: string | undefined;
|
|
2656
|
+
}>;
|
|
2657
|
+
type HookSelector = z.infer<typeof hook_selector>;
|
|
2658
|
+
declare const hook_trigger: z.ZodObject<{
|
|
2659
|
+
kinds: z.ZodArray<z.ZodEnum<["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"]>, "many">;
|
|
2660
|
+
selector: z.ZodDefault<z.ZodObject<{
|
|
2661
|
+
subject_kind: z.ZodOptional<z.ZodEnum<["task", "phase", "approval"]>>;
|
|
2662
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
2663
|
+
ancestor_id: z.ZodOptional<z.ZodString>;
|
|
2664
|
+
}, "strip", z.ZodTypeAny, {
|
|
2665
|
+
subject_kind?: "task" | "phase" | "approval" | undefined;
|
|
2666
|
+
tag?: string | undefined;
|
|
2667
|
+
ancestor_id?: string | undefined;
|
|
2668
|
+
}, {
|
|
2669
|
+
subject_kind?: "task" | "phase" | "approval" | undefined;
|
|
2670
|
+
tag?: string | undefined;
|
|
2671
|
+
ancestor_id?: string | undefined;
|
|
2672
|
+
}>>;
|
|
2673
|
+
}, "strip", z.ZodTypeAny, {
|
|
2674
|
+
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")[];
|
|
2675
|
+
selector: {
|
|
2676
|
+
subject_kind?: "task" | "phase" | "approval" | undefined;
|
|
2677
|
+
tag?: string | undefined;
|
|
2678
|
+
ancestor_id?: string | undefined;
|
|
2679
|
+
};
|
|
2680
|
+
}, {
|
|
2681
|
+
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")[];
|
|
2682
|
+
selector?: {
|
|
2683
|
+
subject_kind?: "task" | "phase" | "approval" | undefined;
|
|
2684
|
+
tag?: string | undefined;
|
|
2685
|
+
ancestor_id?: string | undefined;
|
|
2686
|
+
} | undefined;
|
|
2687
|
+
}>;
|
|
2688
|
+
type HookTrigger = z.infer<typeof hook_trigger>;
|
|
2689
|
+
/** Write-side action union — callers submit a plaintext `secret`, never `secret_encrypted`. */
|
|
2690
|
+
declare const hook_action_input: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
2691
|
+
kind: z.ZodLiteral<"webhook">;
|
|
2692
|
+
url: z.ZodString;
|
|
2693
|
+
secret: z.ZodOptional<z.ZodString>;
|
|
2694
|
+
}, "strip", z.ZodTypeAny, {
|
|
2695
|
+
kind: "webhook";
|
|
2696
|
+
url: string;
|
|
2697
|
+
secret?: string | undefined;
|
|
2698
|
+
}, {
|
|
2699
|
+
kind: "webhook";
|
|
2700
|
+
url: string;
|
|
2701
|
+
secret?: string | undefined;
|
|
2702
|
+
}>, z.ZodObject<{
|
|
2703
|
+
kind: z.ZodLiteral<"vault">;
|
|
2704
|
+
scope: z.ZodString;
|
|
2705
|
+
op: z.ZodString;
|
|
2706
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2707
|
+
}, "strip", z.ZodTypeAny, {
|
|
2708
|
+
kind: "vault";
|
|
2709
|
+
scope: string;
|
|
2710
|
+
op: string;
|
|
2711
|
+
args?: Record<string, unknown> | undefined;
|
|
2712
|
+
}, {
|
|
2713
|
+
kind: "vault";
|
|
2714
|
+
scope: string;
|
|
2715
|
+
op: string;
|
|
2716
|
+
args?: Record<string, unknown> | undefined;
|
|
2717
|
+
}>, z.ZodObject<{
|
|
2718
|
+
kind: z.ZodLiteral<"pipeline">;
|
|
2719
|
+
package_id: z.ZodString;
|
|
2720
|
+
}, "strip", z.ZodTypeAny, {
|
|
2721
|
+
kind: "pipeline";
|
|
2722
|
+
package_id: string;
|
|
2723
|
+
}, {
|
|
2724
|
+
kind: "pipeline";
|
|
2725
|
+
package_id: string;
|
|
2726
|
+
}>]>;
|
|
2727
|
+
type HookActionInput = z.infer<typeof hook_action_input>;
|
|
2728
|
+
/** Storage/dispatch-side action union — what's actually persisted in `hook.action`. */
|
|
2729
|
+
declare const hook_action_stored: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
2730
|
+
kind: z.ZodLiteral<"webhook">;
|
|
2731
|
+
url: z.ZodString;
|
|
2732
|
+
secret_encrypted: z.ZodOptional<z.ZodString>;
|
|
2733
|
+
}, "strip", z.ZodTypeAny, {
|
|
2734
|
+
kind: "webhook";
|
|
2735
|
+
url: string;
|
|
2736
|
+
secret_encrypted?: string | undefined;
|
|
2737
|
+
}, {
|
|
2738
|
+
kind: "webhook";
|
|
2739
|
+
url: string;
|
|
2740
|
+
secret_encrypted?: string | undefined;
|
|
2741
|
+
}>, z.ZodObject<{
|
|
2742
|
+
kind: z.ZodLiteral<"vault">;
|
|
2743
|
+
scope: z.ZodString;
|
|
2744
|
+
op: z.ZodString;
|
|
2745
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2746
|
+
}, "strip", z.ZodTypeAny, {
|
|
2747
|
+
kind: "vault";
|
|
2748
|
+
scope: string;
|
|
2749
|
+
op: string;
|
|
2750
|
+
args?: Record<string, unknown> | undefined;
|
|
2751
|
+
}, {
|
|
2752
|
+
kind: "vault";
|
|
2753
|
+
scope: string;
|
|
2754
|
+
op: string;
|
|
2755
|
+
args?: Record<string, unknown> | undefined;
|
|
2756
|
+
}>, z.ZodObject<{
|
|
2757
|
+
kind: z.ZodLiteral<"pipeline">;
|
|
2758
|
+
package_id: z.ZodString;
|
|
2759
|
+
}, "strip", z.ZodTypeAny, {
|
|
2760
|
+
kind: "pipeline";
|
|
2761
|
+
package_id: string;
|
|
2762
|
+
}, {
|
|
2763
|
+
kind: "pipeline";
|
|
2764
|
+
package_id: string;
|
|
2765
|
+
}>]>;
|
|
2766
|
+
type HookActionStored = z.infer<typeof hook_action_stored>;
|
|
2767
|
+
/** Read-side action union — what routes return. `secret_encrypted` never leaves the registry. */
|
|
2768
|
+
declare const hook_action_public: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
2769
|
+
kind: z.ZodLiteral<"webhook">;
|
|
2770
|
+
url: z.ZodString;
|
|
2771
|
+
has_secret: z.ZodBoolean;
|
|
2772
|
+
}, "strip", z.ZodTypeAny, {
|
|
2773
|
+
kind: "webhook";
|
|
2774
|
+
url: string;
|
|
2775
|
+
has_secret: boolean;
|
|
2776
|
+
}, {
|
|
2777
|
+
kind: "webhook";
|
|
2778
|
+
url: string;
|
|
2779
|
+
has_secret: boolean;
|
|
2780
|
+
}>, z.ZodObject<{
|
|
2781
|
+
kind: z.ZodLiteral<"vault">;
|
|
2782
|
+
scope: z.ZodString;
|
|
2783
|
+
op: z.ZodString;
|
|
2784
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2785
|
+
}, "strip", z.ZodTypeAny, {
|
|
2786
|
+
kind: "vault";
|
|
2787
|
+
scope: string;
|
|
2788
|
+
op: string;
|
|
2789
|
+
args?: Record<string, unknown> | undefined;
|
|
2790
|
+
}, {
|
|
2791
|
+
kind: "vault";
|
|
2792
|
+
scope: string;
|
|
2793
|
+
op: string;
|
|
2794
|
+
args?: Record<string, unknown> | undefined;
|
|
2795
|
+
}>, z.ZodObject<{
|
|
2796
|
+
kind: z.ZodLiteral<"pipeline">;
|
|
2797
|
+
package_id: z.ZodString;
|
|
2798
|
+
}, "strip", z.ZodTypeAny, {
|
|
2799
|
+
kind: "pipeline";
|
|
2800
|
+
package_id: string;
|
|
2801
|
+
}, {
|
|
2802
|
+
kind: "pipeline";
|
|
2803
|
+
package_id: string;
|
|
2804
|
+
}>]>;
|
|
2805
|
+
type HookActionPublic = z.infer<typeof hook_action_public>;
|
|
2806
|
+
declare const upsert_hook: z.ZodObject<{
|
|
2807
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2808
|
+
project_id: z.ZodString;
|
|
2809
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2810
|
+
trigger: z.ZodObject<{
|
|
2811
|
+
kinds: z.ZodArray<z.ZodEnum<["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"]>, "many">;
|
|
2812
|
+
selector: z.ZodDefault<z.ZodObject<{
|
|
2813
|
+
subject_kind: z.ZodOptional<z.ZodEnum<["task", "phase", "approval"]>>;
|
|
2814
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
2815
|
+
ancestor_id: z.ZodOptional<z.ZodString>;
|
|
2816
|
+
}, "strip", z.ZodTypeAny, {
|
|
2817
|
+
subject_kind?: "task" | "phase" | "approval" | undefined;
|
|
2818
|
+
tag?: string | undefined;
|
|
2819
|
+
ancestor_id?: string | undefined;
|
|
2820
|
+
}, {
|
|
2821
|
+
subject_kind?: "task" | "phase" | "approval" | undefined;
|
|
2822
|
+
tag?: string | undefined;
|
|
2823
|
+
ancestor_id?: string | undefined;
|
|
2824
|
+
}>>;
|
|
2825
|
+
}, "strip", z.ZodTypeAny, {
|
|
2826
|
+
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")[];
|
|
2827
|
+
selector: {
|
|
2828
|
+
subject_kind?: "task" | "phase" | "approval" | undefined;
|
|
2829
|
+
tag?: string | undefined;
|
|
2830
|
+
ancestor_id?: string | undefined;
|
|
2831
|
+
};
|
|
2832
|
+
}, {
|
|
2833
|
+
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")[];
|
|
2834
|
+
selector?: {
|
|
2835
|
+
subject_kind?: "task" | "phase" | "approval" | undefined;
|
|
2836
|
+
tag?: string | undefined;
|
|
2837
|
+
ancestor_id?: string | undefined;
|
|
2838
|
+
} | undefined;
|
|
2839
|
+
}>;
|
|
2840
|
+
action: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
2841
|
+
kind: z.ZodLiteral<"webhook">;
|
|
2842
|
+
url: z.ZodString;
|
|
2843
|
+
secret: z.ZodOptional<z.ZodString>;
|
|
2844
|
+
}, "strip", z.ZodTypeAny, {
|
|
2845
|
+
kind: "webhook";
|
|
2846
|
+
url: string;
|
|
2847
|
+
secret?: string | undefined;
|
|
2848
|
+
}, {
|
|
2849
|
+
kind: "webhook";
|
|
2850
|
+
url: string;
|
|
2851
|
+
secret?: string | undefined;
|
|
2852
|
+
}>, z.ZodObject<{
|
|
2853
|
+
kind: z.ZodLiteral<"vault">;
|
|
2854
|
+
scope: z.ZodString;
|
|
2855
|
+
op: z.ZodString;
|
|
2856
|
+
args: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2857
|
+
}, "strip", z.ZodTypeAny, {
|
|
2858
|
+
kind: "vault";
|
|
2859
|
+
scope: string;
|
|
2860
|
+
op: string;
|
|
2861
|
+
args?: Record<string, unknown> | undefined;
|
|
2862
|
+
}, {
|
|
2863
|
+
kind: "vault";
|
|
2864
|
+
scope: string;
|
|
2865
|
+
op: string;
|
|
2866
|
+
args?: Record<string, unknown> | undefined;
|
|
2867
|
+
}>, z.ZodObject<{
|
|
2868
|
+
kind: z.ZodLiteral<"pipeline">;
|
|
2869
|
+
package_id: z.ZodString;
|
|
2870
|
+
}, "strip", z.ZodTypeAny, {
|
|
2871
|
+
kind: "pipeline";
|
|
2872
|
+
package_id: string;
|
|
2873
|
+
}, {
|
|
2874
|
+
kind: "pipeline";
|
|
2875
|
+
package_id: string;
|
|
2876
|
+
}>]>;
|
|
2877
|
+
}, "strip", z.ZodTypeAny, {
|
|
2878
|
+
project_id: string;
|
|
2879
|
+
enabled: boolean;
|
|
2880
|
+
action: {
|
|
2881
|
+
kind: "webhook";
|
|
2882
|
+
url: string;
|
|
2883
|
+
secret?: string | undefined;
|
|
2884
|
+
} | {
|
|
2885
|
+
kind: "vault";
|
|
2886
|
+
scope: string;
|
|
2887
|
+
op: string;
|
|
2888
|
+
args?: Record<string, unknown> | undefined;
|
|
2889
|
+
} | {
|
|
2890
|
+
kind: "pipeline";
|
|
2891
|
+
package_id: string;
|
|
2892
|
+
};
|
|
2893
|
+
trigger: {
|
|
2894
|
+
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")[];
|
|
2895
|
+
selector: {
|
|
2896
|
+
subject_kind?: "task" | "phase" | "approval" | undefined;
|
|
2897
|
+
tag?: string | undefined;
|
|
2898
|
+
ancestor_id?: string | undefined;
|
|
2899
|
+
};
|
|
2900
|
+
};
|
|
2901
|
+
id?: string | undefined;
|
|
2902
|
+
}, {
|
|
2903
|
+
project_id: string;
|
|
2904
|
+
action: {
|
|
2905
|
+
kind: "webhook";
|
|
2906
|
+
url: string;
|
|
2907
|
+
secret?: string | undefined;
|
|
2908
|
+
} | {
|
|
2909
|
+
kind: "vault";
|
|
2910
|
+
scope: string;
|
|
2911
|
+
op: string;
|
|
2912
|
+
args?: Record<string, unknown> | undefined;
|
|
2913
|
+
} | {
|
|
2914
|
+
kind: "pipeline";
|
|
2915
|
+
package_id: string;
|
|
2916
|
+
};
|
|
2917
|
+
trigger: {
|
|
2918
|
+
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")[];
|
|
2919
|
+
selector?: {
|
|
2920
|
+
subject_kind?: "task" | "phase" | "approval" | undefined;
|
|
2921
|
+
tag?: string | undefined;
|
|
2922
|
+
ancestor_id?: string | undefined;
|
|
2923
|
+
} | undefined;
|
|
2924
|
+
};
|
|
2925
|
+
id?: string | undefined;
|
|
2926
|
+
enabled?: boolean | undefined;
|
|
2927
|
+
}>;
|
|
2928
|
+
type UpsertHook = z.infer<typeof upsert_hook>;
|
|
2242
2929
|
|
|
2243
2930
|
type User = InferSelectModel<typeof user>;
|
|
2244
2931
|
type Session = InferSelectModel<typeof session>;
|
|
@@ -2259,6 +2946,12 @@ type TaskLink = InferSelectModel<typeof task_link>;
|
|
|
2259
2946
|
type TaskRollup = InferSelectModel<typeof task_rollup>;
|
|
2260
2947
|
type ApplyLog = InferSelectModel<typeof apply_log>;
|
|
2261
2948
|
type TaskEvent = InferSelectModel<typeof task_event>;
|
|
2949
|
+
type Hook = InferSelectModel<typeof hook>;
|
|
2950
|
+
type HookDelivery = InferSelectModel<typeof hook_delivery>;
|
|
2951
|
+
type GithubWebhookEvent = InferSelectModel<typeof github_webhook_event>;
|
|
2952
|
+
type Document = InferSelectModel<typeof document>;
|
|
2953
|
+
type AnnotationThread = InferSelectModel<typeof annotation_thread>;
|
|
2954
|
+
type Signoff = InferSelectModel<typeof signoff>;
|
|
2262
2955
|
type PipelinePackage = InferSelectModel<typeof pipeline_package>;
|
|
2263
2956
|
type PipelineRun = InferSelectModel<typeof pipeline_run>;
|
|
2264
2957
|
type PipelineStageEvent = InferSelectModel<typeof pipeline_stage_event>;
|
|
@@ -2395,4 +3088,4 @@ type UpdateData = {
|
|
|
2395
3088
|
type UpdateUser = z.infer<typeof update_user>;
|
|
2396
3089
|
type ConfigSchemaType = z.infer<typeof config_schema>;
|
|
2397
3090
|
|
|
2398
|
-
export { type
|
|
3091
|
+
export { type RunKindZ as $, type Action as A, type PipelineGrant as B, type ClaimRequest as C, type DashboardResponse as D, type ExternalRef as E, type PipelineOidcTrust as F, type GetConfigResult as G, type HistoryAction as H, INTERFACE_DIFF_CLASSES as I, type PipelinePackage as J, type PipelineRun as K, type PipelineStageEvent as L, type Milestone as M, type Nullable as N, type Project as O, type PipelineAnalysisTemplate as P, type ProjectConfig as Q, type ProjectWithTasks as R, type PushDocRequest as S, type PushInterfaceReportRequest as T, REVIEW_ITEM_KINDS as U, type ReplyThreadRequest as V, type RequestCheckpointRequest as W, type ReviewItem as X, type ReviewItemKind as Y, type ReviewsPendingResponse as Z, type RolloutShapeZ as _, type AdvanceStageRequest as a, insert_pipeline_stage_event as a$, type SaveConfigRequest as a0, type ScanStatus as a1, type Session as a2, type Signoff as a3, TAG_COLOURS as a4, type Tag as a5, type TagColor as a6, type TagConfig as a7, type TagWithColor as a8, type TagWithTypedColor as a9, type UpsertProject as aA, type UpsertTag as aB, type UpsertTaskLink as aC, type UpsertTodo as aD, type User as aE, type WebhookEventBody as aF, advance_stage_request as aG, apply_op as aH, apply_request as aI, approval_decision as aJ, claim_request as aK, config_schema as aL, create_thread_request as aM, dashboard_response as aN, dashboard_window_query as aO, decide_checkpoint_request as aP, document_kind as aQ, done_request as aR, external_ref as aS, forced_atomic_reason as aT, gate_descriptor as aU, grant_scope as aV, hook_action_input as aW, hook_action_public as aX, hook_action_stored as aY, hook_selector as aZ, hook_trigger as a_, type Task as aa, type TaskEvent as ab, type TaskEventPayload as ac, type TaskLink as ad, type TaskRollup as ae, type TaskTag as af, type TaskView as ag, type TaskWithDetails as ah, type ThreadAnchor as ai, type ThreadEntry as aj, type ThreadMarker as ak, type TodoUpdate as al, type ToggleBlockingRequest as am, type TrackerResult as an, type UpdateAction as ao, type UpdateData as ap, type UpdateUser as aq, type UpsertGoal as ar, type UpsertHook as as, type UpsertMilestone as at, type UpsertPipelineAnalysisTemplate as au, type UpsertPipelineApproval as av, type UpsertPipelineGrant as aw, type UpsertPipelineOidcTrust as ax, type UpsertPipelinePackage as ay, type UpsertPipelineRun as az, type AnnotationThread as b, pipeline_oidc_provider as b0, project_config as b1, push_doc_request as b2, push_interface_report_request as b3, reply_thread_request as b4, request_checkpoint_request as b5, resolved_gates as b6, resolved_rollout as b7, review_item as b8, reviews_pending_response as b9, upsert_pipeline_oidc_trust as bA, upsert_pipeline_package as bB, upsert_pipeline_run as bC, upsert_project as bD, upsert_tag as bE, upsert_task_link as bF, upsert_todo as bG, webhook_event_body as bH, rollout_shape as ba, rollout_stage as bb, run_kind as bc, run_status as bd, save_config_request as be, save_tags_request as bf, sdlc_stage as bg, signoff_checkpoint as bh, signoff_subject_kind as bi, stage_event_kind as bj, task_event_actor as bk, task_event_payload as bl, task_link_kind as bm, thread_anchor as bn, thread_entry as bo, thread_marker as bp, thread_status as bq, toggle_blocking_request as br, update_action as bs, update_user as bt, upsert_goal as bu, upsert_hook as bv, upsert_milestone as bw, upsert_pipeline_analysis_template as bx, upsert_pipeline_approval as by, upsert_pipeline_grant as bz, type ApiKey as c, type ApplyLog as d, type ApplyOp as e, type ApplyRequest as f, type CodebaseTask as g, type ConfigSchemaType as h, type CreateThreadRequest as i, type DashboardWindowQuery as j, type DecideCheckpointRequest as k, type Document as l, type DoneRequest as m, type GithubWebhookEvent as n, type Goal as o, type Hook as p, type HookActionInput as q, type HookActionPublic as r, type HookActionStored as s, type HookDelivery as t, type HookSelector as u, type HookTrigger as v, type IgnorePath as w, type InsertPipelineStageEvent as x, type InterfaceDiffClass as y, type PipelineApproval as z };
|