@devpad/api 2.3.5 → 2.3.7

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 { j as api_keys, z as project, N as todo_updates, i as action, A as ActionType, r as milestone, n as goal, o as hook, p as hook_delivery, I as task, l as codebase_tasks, K as task_link, D as tag, x as pipeline_run, y as pipeline_stage_event, u as pipeline_grant, w as pipeline_package, s as pipeline_analysis_template, v as pipeline_oidc_trust, k as apply_log, m as github_webhook_event, q as ignore_path, t as pipeline_approval, B as session, E as tag_config, J as task_event, L as task_rollup, M as task_tag, O as tracker_result, Q as user } from './schema.d-CFQELmTM.js';
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-CaVQ-Ate.js';
4
4
 
5
5
  declare const upsert_project: z.ZodObject<{
6
6
  id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -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>;
@@ -1072,6 +1072,16 @@ declare const upsert_task_link: z.ZodObject<{
1072
1072
  note?: string | null | undefined;
1073
1073
  dst_id?: string | null | undefined;
1074
1074
  }>;
1075
+ declare const scan_diff_proposal: z.ZodObject<{
1076
+ parent_id: z.ZodNullable<z.ZodString>;
1077
+ proposing_task_id: z.ZodNullable<z.ZodString>;
1078
+ }, "strip", z.ZodTypeAny, {
1079
+ parent_id: string | null;
1080
+ proposing_task_id: string | null;
1081
+ }, {
1082
+ parent_id: string | null;
1083
+ proposing_task_id: string | null;
1084
+ }>;
1075
1085
  declare const apply_op: z.ZodDiscriminatedUnion<"op", [z.ZodObject<{
1076
1086
  op: z.ZodLiteral<"create">;
1077
1087
  handle: z.ZodOptional<z.ZodString>;
@@ -2237,49 +2247,451 @@ declare const task_event_payload: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
2237
2247
  }, {
2238
2248
  kind: "node.completion_stale";
2239
2249
  child_id: string;
2250
+ }>, z.ZodObject<{
2251
+ kind: z.ZodLiteral<"doc.pushed">;
2252
+ document_id: z.ZodString;
2253
+ version: z.ZodString;
2254
+ }, "strip", z.ZodTypeAny, {
2255
+ kind: "doc.pushed";
2256
+ document_id: string;
2257
+ version: string;
2258
+ }, {
2259
+ kind: "doc.pushed";
2260
+ document_id: string;
2261
+ version: string;
2262
+ }>, z.ZodObject<{
2263
+ kind: z.ZodLiteral<"thread.opened">;
2264
+ document_id: z.ZodString;
2265
+ thread_id: z.ZodString;
2266
+ }, "strip", z.ZodTypeAny, {
2267
+ kind: "thread.opened";
2268
+ document_id: string;
2269
+ thread_id: string;
2270
+ }, {
2271
+ kind: "thread.opened";
2272
+ document_id: string;
2273
+ thread_id: string;
2274
+ }>, z.ZodObject<{
2275
+ kind: z.ZodLiteral<"thread.resolved">;
2276
+ document_id: z.ZodString;
2277
+ thread_id: z.ZodString;
2278
+ }, "strip", z.ZodTypeAny, {
2279
+ kind: "thread.resolved";
2280
+ document_id: string;
2281
+ thread_id: string;
2282
+ }, {
2283
+ kind: "thread.resolved";
2284
+ document_id: string;
2285
+ thread_id: string;
2286
+ }>, z.ZodObject<{
2287
+ kind: z.ZodLiteral<"signoff.requested">;
2288
+ subject_kind: z.ZodEnum<["doc_version", "stage", "pipeline_gate"]>;
2289
+ subject_id: z.ZodString;
2290
+ checkpoint: z.ZodEnum<["plan", "types", "design"]>;
2291
+ }, "strip", z.ZodTypeAny, {
2292
+ kind: "signoff.requested";
2293
+ subject_id: string;
2294
+ subject_kind: "stage" | "doc_version" | "pipeline_gate";
2295
+ checkpoint: "plan" | "design" | "types";
2296
+ }, {
2297
+ kind: "signoff.requested";
2298
+ subject_id: string;
2299
+ subject_kind: "stage" | "doc_version" | "pipeline_gate";
2300
+ checkpoint: "plan" | "design" | "types";
2301
+ }>, z.ZodObject<{
2302
+ kind: z.ZodLiteral<"signoff.decided">;
2303
+ subject_kind: z.ZodEnum<["doc_version", "stage", "pipeline_gate"]>;
2304
+ subject_id: z.ZodString;
2305
+ checkpoint: z.ZodEnum<["plan", "types", "design"]>;
2306
+ decision: z.ZodEnum<["approved", "changes_requested", "auto"]>;
2307
+ }, "strip", z.ZodTypeAny, {
2308
+ kind: "signoff.decided";
2309
+ subject_id: string;
2310
+ subject_kind: "stage" | "doc_version" | "pipeline_gate";
2311
+ checkpoint: "plan" | "design" | "types";
2312
+ decision: "approved" | "changes_requested" | "auto";
2313
+ }, {
2314
+ kind: "signoff.decided";
2315
+ subject_id: string;
2316
+ subject_kind: "stage" | "doc_version" | "pipeline_gate";
2317
+ checkpoint: "plan" | "design" | "types";
2318
+ decision: "approved" | "changes_requested" | "auto";
2319
+ }>, z.ZodObject<{
2320
+ kind: z.ZodLiteral<"stage.advanced">;
2321
+ from: z.ZodNullable<z.ZodEnum<["ideate", "plan", "build", "review", "deploy", "live"]>>;
2322
+ to: z.ZodEnum<["ideate", "plan", "build", "review", "deploy", "live"]>;
2323
+ override: z.ZodBoolean;
2324
+ }, "strip", z.ZodTypeAny, {
2325
+ kind: "stage.advanced";
2326
+ override: boolean;
2327
+ from: "ideate" | "plan" | "build" | "review" | "deploy" | "live" | null;
2328
+ to: "ideate" | "plan" | "build" | "review" | "deploy" | "live";
2329
+ }, {
2330
+ kind: "stage.advanced";
2331
+ override: boolean;
2332
+ from: "ideate" | "plan" | "build" | "review" | "deploy" | "live" | null;
2333
+ to: "ideate" | "plan" | "build" | "review" | "deploy" | "live";
2240
2334
  }>]>;
2241
2335
  type TaskEventPayload = z.infer<typeof task_event_payload>;
2336
+ declare const document_kind: z.ZodEnum<["plan", "design", "interface"]>;
2337
+ /** Pushes a new corpus version. Omit `document_id` to create a new document. */
2338
+ declare const push_doc_request: z.ZodObject<{
2339
+ document_id: z.ZodOptional<z.ZodString>;
2340
+ project_id: z.ZodString;
2341
+ task_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2342
+ kind: z.ZodEnum<["plan", "design", "interface"]>;
2343
+ title: z.ZodString;
2344
+ html: z.ZodString;
2345
+ }, "strip", z.ZodTypeAny, {
2346
+ kind: "plan" | "design" | "interface";
2347
+ project_id: string;
2348
+ title: string;
2349
+ html: string;
2350
+ task_id?: string | null | undefined;
2351
+ document_id?: string | undefined;
2352
+ }, {
2353
+ kind: "plan" | "design" | "interface";
2354
+ project_id: string;
2355
+ title: string;
2356
+ html: string;
2357
+ task_id?: string | null | undefined;
2358
+ document_id?: string | undefined;
2359
+ }>;
2360
+ type PushDocRequest = z.infer<typeof push_doc_request>;
2361
+ declare const thread_anchor: z.ZodObject<{
2362
+ quote: z.ZodString;
2363
+ prefix: z.ZodString;
2364
+ suffix: z.ZodString;
2365
+ start: z.ZodNumber;
2366
+ end: z.ZodNumber;
2367
+ }, "strip", z.ZodTypeAny, {
2368
+ quote: string;
2369
+ prefix: string;
2370
+ suffix: string;
2371
+ start: number;
2372
+ end: number;
2373
+ }, {
2374
+ quote: string;
2375
+ prefix: string;
2376
+ suffix: string;
2377
+ start: number;
2378
+ end: number;
2379
+ }>;
2380
+ type ThreadAnchor = z.infer<typeof thread_anchor>;
2381
+ declare const thread_entry: z.ZodObject<{
2382
+ author: z.ZodString;
2383
+ channel: z.ZodEnum<["user", "api"]>;
2384
+ body: z.ZodString;
2385
+ at: z.ZodString;
2386
+ }, "strip", z.ZodTypeAny, {
2387
+ at: string;
2388
+ channel: "user" | "api";
2389
+ author: string;
2390
+ body: string;
2391
+ }, {
2392
+ at: string;
2393
+ channel: "user" | "api";
2394
+ author: string;
2395
+ body: string;
2396
+ }>;
2397
+ type ThreadEntry = z.infer<typeof thread_entry>;
2398
+ declare const thread_status: z.ZodEnum<["open", "addressed", "resolved", "orphaned"]>;
2399
+ declare const thread_marker: z.ZodObject<{
2400
+ id: z.ZodString;
2401
+ anchor: z.ZodObject<{
2402
+ quote: z.ZodString;
2403
+ prefix: z.ZodString;
2404
+ suffix: z.ZodString;
2405
+ start: z.ZodNumber;
2406
+ end: z.ZodNumber;
2407
+ }, "strip", z.ZodTypeAny, {
2408
+ quote: string;
2409
+ prefix: string;
2410
+ suffix: string;
2411
+ start: number;
2412
+ end: number;
2413
+ }, {
2414
+ quote: string;
2415
+ prefix: string;
2416
+ suffix: string;
2417
+ start: number;
2418
+ end: number;
2419
+ }>;
2420
+ status: z.ZodEnum<["open", "addressed", "resolved", "orphaned"]>;
2421
+ blocking: z.ZodBoolean;
2422
+ entries: z.ZodArray<z.ZodObject<{
2423
+ author: z.ZodString;
2424
+ channel: z.ZodEnum<["user", "api"]>;
2425
+ body: z.ZodString;
2426
+ at: z.ZodString;
2427
+ }, "strip", z.ZodTypeAny, {
2428
+ at: string;
2429
+ channel: "user" | "api";
2430
+ author: string;
2431
+ body: string;
2432
+ }, {
2433
+ at: string;
2434
+ channel: "user" | "api";
2435
+ author: string;
2436
+ body: string;
2437
+ }>, "many">;
2438
+ }, "strip", z.ZodTypeAny, {
2439
+ id: string;
2440
+ status: "open" | "addressed" | "resolved" | "orphaned";
2441
+ entries: {
2442
+ at: string;
2443
+ channel: "user" | "api";
2444
+ author: string;
2445
+ body: string;
2446
+ }[];
2447
+ anchor: {
2448
+ quote: string;
2449
+ prefix: string;
2450
+ suffix: string;
2451
+ start: number;
2452
+ end: number;
2453
+ };
2454
+ blocking: boolean;
2455
+ }, {
2456
+ id: string;
2457
+ status: "open" | "addressed" | "resolved" | "orphaned";
2458
+ entries: {
2459
+ at: string;
2460
+ channel: "user" | "api";
2461
+ author: string;
2462
+ body: string;
2463
+ }[];
2464
+ anchor: {
2465
+ quote: string;
2466
+ prefix: string;
2467
+ suffix: string;
2468
+ start: number;
2469
+ end: number;
2470
+ };
2471
+ blocking: boolean;
2472
+ }>;
2473
+ type ThreadMarker = z.infer<typeof thread_marker>;
2474
+ declare const create_thread_request: z.ZodObject<{
2475
+ quote: z.ZodString;
2476
+ prefix: z.ZodString;
2477
+ suffix: z.ZodString;
2478
+ start: z.ZodNumber;
2479
+ end: z.ZodNumber;
2480
+ body: z.ZodString;
2481
+ blocking: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2482
+ }, "strip", z.ZodTypeAny, {
2483
+ blocking: boolean;
2484
+ quote: string;
2485
+ prefix: string;
2486
+ suffix: string;
2487
+ start: number;
2488
+ end: number;
2489
+ body: string;
2490
+ }, {
2491
+ quote: string;
2492
+ prefix: string;
2493
+ suffix: string;
2494
+ start: number;
2495
+ end: number;
2496
+ body: string;
2497
+ blocking?: boolean | undefined;
2498
+ }>;
2499
+ type CreateThreadRequest = z.infer<typeof create_thread_request>;
2500
+ declare const reply_thread_request: z.ZodObject<{
2501
+ body: z.ZodString;
2502
+ }, "strip", z.ZodTypeAny, {
2503
+ body: string;
2504
+ }, {
2505
+ body: string;
2506
+ }>;
2507
+ type ReplyThreadRequest = z.infer<typeof reply_thread_request>;
2508
+ declare const toggle_blocking_request: z.ZodObject<{
2509
+ blocking: z.ZodBoolean;
2510
+ }, "strip", z.ZodTypeAny, {
2511
+ blocking: boolean;
2512
+ }, {
2513
+ blocking: boolean;
2514
+ }>;
2515
+ type ToggleBlockingRequest = z.infer<typeof toggle_blocking_request>;
2516
+ declare const signoff_subject_kind: z.ZodEnum<["doc_version", "stage", "pipeline_gate"]>;
2517
+ declare const signoff_checkpoint: z.ZodEnum<["plan", "types", "design"]>;
2518
+ declare const request_checkpoint_request: z.ZodObject<{
2519
+ project_id: z.ZodString;
2520
+ subject_kind: z.ZodEnum<["doc_version", "stage", "pipeline_gate"]>;
2521
+ subject_id: z.ZodString;
2522
+ checkpoint: z.ZodEnum<["plan", "types", "design"]>;
2523
+ blocks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2524
+ }, "strip", z.ZodTypeAny, {
2525
+ project_id: string;
2526
+ blocks: string[];
2527
+ subject_id: string;
2528
+ subject_kind: "stage" | "doc_version" | "pipeline_gate";
2529
+ checkpoint: "plan" | "design" | "types";
2530
+ }, {
2531
+ project_id: string;
2532
+ subject_id: string;
2533
+ subject_kind: "stage" | "doc_version" | "pipeline_gate";
2534
+ checkpoint: "plan" | "design" | "types";
2535
+ blocks?: string[] | undefined;
2536
+ }>;
2537
+ type RequestCheckpointRequest = z.infer<typeof request_checkpoint_request>;
2538
+ declare const decide_checkpoint_request: z.ZodObject<{
2539
+ decision: z.ZodUnion<[z.ZodLiteral<"approved">, z.ZodLiteral<"changes_requested">]>;
2540
+ reason: z.ZodOptional<z.ZodString>;
2541
+ }, "strip", z.ZodTypeAny, {
2542
+ decision: "approved" | "changes_requested";
2543
+ reason?: string | undefined;
2544
+ }, {
2545
+ decision: "approved" | "changes_requested";
2546
+ reason?: string | undefined;
2547
+ }>;
2548
+ type DecideCheckpointRequest = z.infer<typeof decide_checkpoint_request>;
2549
+ declare const sdlc_stage: z.ZodEnum<["ideate", "plan", "build", "review", "deploy", "live"]>;
2550
+ declare const advance_stage_request: z.ZodObject<{
2551
+ to: z.ZodEnum<["ideate", "plan", "build", "review", "deploy", "live"]>;
2552
+ override: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
2553
+ reason: z.ZodOptional<z.ZodString>;
2554
+ }, "strip", z.ZodTypeAny, {
2555
+ override: boolean;
2556
+ to: "ideate" | "plan" | "build" | "review" | "deploy" | "live";
2557
+ reason?: string | undefined;
2558
+ }, {
2559
+ to: "ideate" | "plan" | "build" | "review" | "deploy" | "live";
2560
+ override?: boolean | undefined;
2561
+ reason?: string | undefined;
2562
+ }>;
2563
+ type AdvanceStageRequest = z.infer<typeof advance_stage_request>;
2564
+ declare const push_interface_report_request: z.ZodObject<{
2565
+ document_id: z.ZodOptional<z.ZodString>;
2566
+ project_id: z.ZodString;
2567
+ task_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2568
+ title: z.ZodString;
2569
+ normalized: z.ZodString;
2570
+ }, "strip", z.ZodTypeAny, {
2571
+ project_id: string;
2572
+ title: string;
2573
+ normalized: string;
2574
+ task_id?: string | null | undefined;
2575
+ document_id?: string | undefined;
2576
+ }, {
2577
+ project_id: string;
2578
+ title: string;
2579
+ normalized: string;
2580
+ task_id?: string | null | undefined;
2581
+ document_id?: string | undefined;
2582
+ }>;
2583
+ type PushInterfaceReportRequest = z.infer<typeof push_interface_report_request>;
2584
+ declare const INTERFACE_DIFF_CLASSES: readonly ["additive", "breaking", "unchanged"];
2585
+ type InterfaceDiffClass = (typeof INTERFACE_DIFF_CLASSES)[number];
2586
+ declare const REVIEW_ITEM_KINDS: readonly ["signoff", "annotation", "pipeline_gate", "scan_diff"];
2587
+ type ReviewItemKind = (typeof REVIEW_ITEM_KINDS)[number];
2588
+ declare const review_item: z.ZodObject<{
2589
+ kind: z.ZodEnum<["signoff", "annotation", "pipeline_gate", "scan_diff"]>;
2590
+ subject_id: z.ZodString;
2591
+ title: z.ZodString;
2592
+ project_id: z.ZodNullable<z.ZodString>;
2593
+ created_at: z.ZodString;
2594
+ path: z.ZodString;
2595
+ }, "strip", z.ZodTypeAny, {
2596
+ path: string;
2597
+ kind: "pipeline_gate" | "signoff" | "annotation" | "scan_diff";
2598
+ project_id: string | null;
2599
+ created_at: string;
2600
+ title: string;
2601
+ subject_id: string;
2602
+ }, {
2603
+ path: string;
2604
+ kind: "pipeline_gate" | "signoff" | "annotation" | "scan_diff";
2605
+ project_id: string | null;
2606
+ created_at: string;
2607
+ title: string;
2608
+ subject_id: string;
2609
+ }>;
2610
+ type ReviewItem = z.infer<typeof review_item>;
2611
+ declare const reviews_pending_response: z.ZodObject<{
2612
+ items: z.ZodArray<z.ZodObject<{
2613
+ kind: z.ZodEnum<["signoff", "annotation", "pipeline_gate", "scan_diff"]>;
2614
+ subject_id: z.ZodString;
2615
+ title: z.ZodString;
2616
+ project_id: z.ZodNullable<z.ZodString>;
2617
+ created_at: z.ZodString;
2618
+ path: z.ZodString;
2619
+ }, "strip", z.ZodTypeAny, {
2620
+ path: string;
2621
+ kind: "pipeline_gate" | "signoff" | "annotation" | "scan_diff";
2622
+ project_id: string | null;
2623
+ created_at: string;
2624
+ title: string;
2625
+ subject_id: string;
2626
+ }, {
2627
+ path: string;
2628
+ kind: "pipeline_gate" | "signoff" | "annotation" | "scan_diff";
2629
+ project_id: string | null;
2630
+ created_at: string;
2631
+ title: string;
2632
+ subject_id: string;
2633
+ }>, "many">;
2634
+ }, "strip", z.ZodTypeAny, {
2635
+ items: {
2636
+ path: string;
2637
+ kind: "pipeline_gate" | "signoff" | "annotation" | "scan_diff";
2638
+ project_id: string | null;
2639
+ created_at: string;
2640
+ title: string;
2641
+ subject_id: string;
2642
+ }[];
2643
+ }, {
2644
+ items: {
2645
+ path: string;
2646
+ kind: "pipeline_gate" | "signoff" | "annotation" | "scan_diff";
2647
+ project_id: string | null;
2648
+ created_at: string;
2649
+ title: string;
2650
+ subject_id: string;
2651
+ }[];
2652
+ }>;
2653
+ type ReviewsPendingResponse = z.infer<typeof reviews_pending_response>;
2242
2654
  declare const hook_selector: z.ZodObject<{
2243
- subject_kind: z.ZodOptional<z.ZodEnum<["task", "phase", "approval"]>>;
2655
+ subject_kind: z.ZodOptional<z.ZodEnum<["task", "phase", "approval", "milestone", "goal"]>>;
2244
2656
  tag: z.ZodOptional<z.ZodString>;
2245
2657
  ancestor_id: z.ZodOptional<z.ZodString>;
2246
2658
  }, "strip", z.ZodTypeAny, {
2659
+ subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
2247
2660
  tag?: string | undefined;
2248
- subject_kind?: "task" | "phase" | "approval" | undefined;
2249
2661
  ancestor_id?: string | undefined;
2250
2662
  }, {
2663
+ subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
2251
2664
  tag?: string | undefined;
2252
- subject_kind?: "task" | "phase" | "approval" | undefined;
2253
2665
  ancestor_id?: string | undefined;
2254
2666
  }>;
2255
2667
  type HookSelector = z.infer<typeof hook_selector>;
2256
2668
  declare const hook_trigger: z.ZodObject<{
2257
- 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"]>, "many">;
2669
+ 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">;
2258
2670
  selector: z.ZodDefault<z.ZodObject<{
2259
- subject_kind: z.ZodOptional<z.ZodEnum<["task", "phase", "approval"]>>;
2671
+ subject_kind: z.ZodOptional<z.ZodEnum<["task", "phase", "approval", "milestone", "goal"]>>;
2260
2672
  tag: z.ZodOptional<z.ZodString>;
2261
2673
  ancestor_id: z.ZodOptional<z.ZodString>;
2262
2674
  }, "strip", z.ZodTypeAny, {
2675
+ subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
2263
2676
  tag?: string | undefined;
2264
- subject_kind?: "task" | "phase" | "approval" | undefined;
2265
2677
  ancestor_id?: string | undefined;
2266
2678
  }, {
2679
+ subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
2267
2680
  tag?: string | undefined;
2268
- subject_kind?: "task" | "phase" | "approval" | undefined;
2269
2681
  ancestor_id?: string | undefined;
2270
2682
  }>>;
2271
2683
  }, "strip", z.ZodTypeAny, {
2272
- kinds: ("task.created" | "task.updated" | "task.completed" | "task.reopened" | "task.claimed" | "edge.created" | "edge.removed" | "node.children_all_done" | "policy.fired" | "node.completion_stale")[];
2684
+ 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")[];
2273
2685
  selector: {
2686
+ subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
2274
2687
  tag?: string | undefined;
2275
- subject_kind?: "task" | "phase" | "approval" | undefined;
2276
2688
  ancestor_id?: string | undefined;
2277
2689
  };
2278
2690
  }, {
2279
- kinds: ("task.created" | "task.updated" | "task.completed" | "task.reopened" | "task.claimed" | "edge.created" | "edge.removed" | "node.children_all_done" | "policy.fired" | "node.completion_stale")[];
2691
+ 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")[];
2280
2692
  selector?: {
2693
+ subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
2281
2694
  tag?: string | undefined;
2282
- subject_kind?: "task" | "phase" | "approval" | undefined;
2283
2695
  ancestor_id?: string | undefined;
2284
2696
  } | undefined;
2285
2697
  }>;
@@ -2406,32 +2818,32 @@ declare const upsert_hook: z.ZodObject<{
2406
2818
  project_id: z.ZodString;
2407
2819
  enabled: z.ZodDefault<z.ZodBoolean>;
2408
2820
  trigger: z.ZodObject<{
2409
- 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"]>, "many">;
2821
+ 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">;
2410
2822
  selector: z.ZodDefault<z.ZodObject<{
2411
- subject_kind: z.ZodOptional<z.ZodEnum<["task", "phase", "approval"]>>;
2823
+ subject_kind: z.ZodOptional<z.ZodEnum<["task", "phase", "approval", "milestone", "goal"]>>;
2412
2824
  tag: z.ZodOptional<z.ZodString>;
2413
2825
  ancestor_id: z.ZodOptional<z.ZodString>;
2414
2826
  }, "strip", z.ZodTypeAny, {
2827
+ subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
2415
2828
  tag?: string | undefined;
2416
- subject_kind?: "task" | "phase" | "approval" | undefined;
2417
2829
  ancestor_id?: string | undefined;
2418
2830
  }, {
2831
+ subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
2419
2832
  tag?: string | undefined;
2420
- subject_kind?: "task" | "phase" | "approval" | undefined;
2421
2833
  ancestor_id?: string | undefined;
2422
2834
  }>>;
2423
2835
  }, "strip", z.ZodTypeAny, {
2424
- kinds: ("task.created" | "task.updated" | "task.completed" | "task.reopened" | "task.claimed" | "edge.created" | "edge.removed" | "node.children_all_done" | "policy.fired" | "node.completion_stale")[];
2836
+ 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")[];
2425
2837
  selector: {
2838
+ subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
2426
2839
  tag?: string | undefined;
2427
- subject_kind?: "task" | "phase" | "approval" | undefined;
2428
2840
  ancestor_id?: string | undefined;
2429
2841
  };
2430
2842
  }, {
2431
- kinds: ("task.created" | "task.updated" | "task.completed" | "task.reopened" | "task.claimed" | "edge.created" | "edge.removed" | "node.children_all_done" | "policy.fired" | "node.completion_stale")[];
2843
+ 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")[];
2432
2844
  selector?: {
2845
+ subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
2433
2846
  tag?: string | undefined;
2434
- subject_kind?: "task" | "phase" | "approval" | undefined;
2435
2847
  ancestor_id?: string | undefined;
2436
2848
  } | undefined;
2437
2849
  }>;
@@ -2489,10 +2901,10 @@ declare const upsert_hook: z.ZodObject<{
2489
2901
  package_id: string;
2490
2902
  };
2491
2903
  trigger: {
2492
- kinds: ("task.created" | "task.updated" | "task.completed" | "task.reopened" | "task.claimed" | "edge.created" | "edge.removed" | "node.children_all_done" | "policy.fired" | "node.completion_stale")[];
2904
+ 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")[];
2493
2905
  selector: {
2906
+ subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
2494
2907
  tag?: string | undefined;
2495
- subject_kind?: "task" | "phase" | "approval" | undefined;
2496
2908
  ancestor_id?: string | undefined;
2497
2909
  };
2498
2910
  };
@@ -2513,10 +2925,10 @@ declare const upsert_hook: z.ZodObject<{
2513
2925
  package_id: string;
2514
2926
  };
2515
2927
  trigger: {
2516
- kinds: ("task.created" | "task.updated" | "task.completed" | "task.reopened" | "task.claimed" | "edge.created" | "edge.removed" | "node.children_all_done" | "policy.fired" | "node.completion_stale")[];
2928
+ 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")[];
2517
2929
  selector?: {
2930
+ subject_kind?: "milestone" | "goal" | "task" | "phase" | "approval" | undefined;
2518
2931
  tag?: string | undefined;
2519
- subject_kind?: "task" | "phase" | "approval" | undefined;
2520
2932
  ancestor_id?: string | undefined;
2521
2933
  } | undefined;
2522
2934
  };
@@ -2547,6 +2959,9 @@ type TaskEvent = InferSelectModel<typeof task_event>;
2547
2959
  type Hook = InferSelectModel<typeof hook>;
2548
2960
  type HookDelivery = InferSelectModel<typeof hook_delivery>;
2549
2961
  type GithubWebhookEvent = InferSelectModel<typeof github_webhook_event>;
2962
+ type Document = InferSelectModel<typeof document>;
2963
+ type AnnotationThread = InferSelectModel<typeof annotation_thread>;
2964
+ type Signoff = InferSelectModel<typeof signoff>;
2550
2965
  type PipelinePackage = InferSelectModel<typeof pipeline_package>;
2551
2966
  type PipelineRun = InferSelectModel<typeof pipeline_run>;
2552
2967
  type PipelineStageEvent = InferSelectModel<typeof pipeline_stage_event>;
@@ -2571,6 +2986,7 @@ type UpsertTaskLink = z.infer<typeof upsert_task_link>;
2571
2986
  type UpdateAction = z.infer<typeof update_action>;
2572
2987
  type ProjectConfig = z.infer<typeof project_config>;
2573
2988
  type SaveConfigRequest = z.infer<typeof save_config_request>;
2989
+ type ScanDiffProposal = z.infer<typeof scan_diff_proposal>;
2574
2990
  type TaskWithDetails = {
2575
2991
  task: Task;
2576
2992
  codebase_tasks: CodebaseTask | null;
@@ -2683,4 +3099,4 @@ type UpdateData = {
2683
3099
  type UpdateUser = z.infer<typeof update_user>;
2684
3100
  type ConfigSchemaType = z.infer<typeof config_schema>;
2685
3101
 
2686
- export { type TaskTag as $, type Action as A, type ProjectWithTasks as B, type ClaimRequest as C, type DashboardResponse as D, type ExternalRef as E, type RunKindZ as F, type GetConfigResult as G, type HistoryAction as H, type IgnorePath as I, type ScanStatus as J, type Session as K, type Tag as L, type Milestone as M, type Nullable as N, type TagColor as O, type PipelineAnalysisTemplate as P, type TagConfig as Q, type RolloutShapeZ as R, type SaveConfigRequest as S, TAG_COLOURS as T, type TagWithColor as U, type TagWithTypedColor as V, type Task as W, type TaskEvent as X, type TaskEventPayload as Y, type TaskLink as Z, type TaskRollup as _, type ApiKey as a, upsert_pipeline_package as a$, type TaskView as a0, type TaskWithDetails as a1, type TodoUpdate as a2, type TrackerResult as a3, type UpdateAction as a4, type UpdateData as a5, type UpdateUser as a6, type UpsertGoal as a7, type UpsertHook as a8, type UpsertMilestone as a9, hook_action_stored as aA, hook_selector as aB, hook_trigger as aC, insert_pipeline_stage_event as aD, pipeline_oidc_provider as aE, project_config as aF, resolved_gates as aG, resolved_rollout as aH, rollout_shape as aI, rollout_stage as aJ, run_kind as aK, run_status as aL, save_config_request as aM, save_tags_request as aN, stage_event_kind as aO, task_event_actor as aP, task_event_payload as aQ, task_link_kind as aR, update_action as aS, update_user as aT, upsert_goal as aU, upsert_hook as aV, upsert_milestone as aW, upsert_pipeline_analysis_template as aX, upsert_pipeline_approval as aY, upsert_pipeline_grant as aZ, upsert_pipeline_oidc_trust as a_, type UpsertPipelineAnalysisTemplate as aa, type UpsertPipelineApproval as ab, type UpsertPipelineGrant as ac, type UpsertPipelineOidcTrust as ad, type UpsertPipelinePackage as ae, type UpsertPipelineRun as af, type UpsertProject as ag, type UpsertTag as ah, type UpsertTaskLink as ai, type UpsertTodo as aj, type User as ak, type WebhookEventBody as al, apply_op as am, apply_request as an, approval_decision as ao, claim_request as ap, config_schema as aq, dashboard_response as ar, dashboard_window_query as as, done_request as at, external_ref as au, forced_atomic_reason as av, gate_descriptor as aw, grant_scope as ax, hook_action_input as ay, hook_action_public as az, type ApplyLog as b, upsert_pipeline_run as b0, upsert_project as b1, upsert_tag as b2, upsert_task_link as b3, upsert_todo as b4, webhook_event_body as b5, type ApplyOp as c, type ApplyRequest as d, type CodebaseTask as e, type ConfigSchemaType as f, type DashboardWindowQuery as g, type DoneRequest as h, type GithubWebhookEvent as i, type Goal as j, type Hook as k, type HookActionInput as l, type HookActionPublic as m, type HookActionStored as n, type HookDelivery as o, type HookSelector as p, type HookTrigger as q, type InsertPipelineStageEvent as r, type PipelineApproval as s, type PipelineGrant as t, type PipelineOidcTrust as u, type PipelinePackage as v, type PipelineRun as w, type PipelineStageEvent as x, type Project as y, type ProjectConfig as z };
3102
+ 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, hook_trigger as a$, type SaveConfigRequest as a0, type ScanDiffProposal as a1, type ScanStatus as a2, type Session as a3, type Signoff as a4, TAG_COLOURS as a5, type Tag as a6, type TagColor as a7, type TagConfig as a8, type TagWithColor as a9, type UpsertPipelineRun as aA, type UpsertProject as aB, type UpsertTag as aC, type UpsertTaskLink as aD, type UpsertTodo as aE, type User as aF, type WebhookEventBody as aG, advance_stage_request as aH, apply_op as aI, apply_request as aJ, approval_decision as aK, claim_request as aL, config_schema as aM, create_thread_request as aN, dashboard_response as aO, dashboard_window_query as aP, decide_checkpoint_request as aQ, document_kind as aR, done_request as aS, external_ref as aT, forced_atomic_reason as aU, gate_descriptor as aV, grant_scope as aW, hook_action_input as aX, hook_action_public as aY, hook_action_stored as aZ, hook_selector as a_, type TagWithTypedColor as aa, type Task as ab, type TaskEvent as ac, type TaskEventPayload as ad, type TaskLink as ae, type TaskRollup as af, type TaskTag as ag, type TaskView as ah, type TaskWithDetails as ai, type ThreadAnchor as aj, type ThreadEntry as ak, type ThreadMarker as al, type TodoUpdate as am, type ToggleBlockingRequest as an, type TrackerResult as ao, type UpdateAction as ap, type UpdateData as aq, type UpdateUser as ar, type UpsertGoal as as, type UpsertHook as at, type UpsertMilestone as au, type UpsertPipelineAnalysisTemplate as av, type UpsertPipelineApproval as aw, type UpsertPipelineGrant as ax, type UpsertPipelineOidcTrust as ay, type UpsertPipelinePackage as az, type AnnotationThread as b, insert_pipeline_stage_event as b0, pipeline_oidc_provider as b1, project_config as b2, push_doc_request as b3, push_interface_report_request as b4, reply_thread_request as b5, request_checkpoint_request as b6, resolved_gates as b7, resolved_rollout as b8, review_item as b9, upsert_pipeline_approval as bA, upsert_pipeline_grant as bB, upsert_pipeline_oidc_trust as bC, upsert_pipeline_package as bD, upsert_pipeline_run as bE, upsert_project as bF, upsert_tag as bG, upsert_task_link as bH, upsert_todo as bI, webhook_event_body as bJ, reviews_pending_response as ba, rollout_shape as bb, rollout_stage as bc, run_kind as bd, run_status as be, save_config_request as bf, save_tags_request as bg, scan_diff_proposal as bh, sdlc_stage as bi, signoff_checkpoint as bj, signoff_subject_kind as bk, stage_event_kind as bl, task_event_actor as bm, task_event_payload as bn, task_link_kind as bo, thread_anchor as bp, thread_entry as bq, thread_marker as br, thread_status as bs, toggle_blocking_request as bt, update_action as bu, update_user as bv, upsert_goal as bw, upsert_hook as bx, upsert_milestone as by, upsert_pipeline_analysis_template 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 };
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { InferSelectModel, InferInsertModel } from 'drizzle-orm';
3
3
  import { a as media_accounts, d as media_profiles, c as media_profile_filters, m as media_account_settings, b as media_platform_credentials, e as media_rate_limits } from './media.d-R87HGuRp.js';
4
- import { j as api_keys } from './schema.d-CFQELmTM.js';
4
+ import { q as api_keys } from './schema.d-CaVQ-Ate.js';
5
5
 
6
6
  declare const GitHubSettingsSchema: z.ZodObject<{
7
7
  hidden_repos: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
@@ -485,7 +485,7 @@ declare const PostListParamsSchema: z.ZodObject<{
485
485
  offset: z.ZodDefault<z.ZodNumber>;
486
486
  sort: z.ZodDefault<z.ZodEnum<["created", "updated", "published"]>>;
487
487
  }, "strip", z.ZodTypeAny, {
488
- status: "all" | "published" | "scheduled" | "draft";
488
+ status: "all" | "draft" | "published" | "scheduled";
489
489
  sort: "published" | "created" | "updated";
490
490
  archived: boolean;
491
491
  limit: number;
@@ -494,7 +494,7 @@ declare const PostListParamsSchema: z.ZodObject<{
494
494
  tag?: string | undefined;
495
495
  category?: string | undefined;
496
496
  }, {
497
- status?: "all" | "published" | "scheduled" | "draft" | undefined;
497
+ status?: "all" | "draft" | "published" | "scheduled" | undefined;
498
498
  sort?: "published" | "created" | "updated" | undefined;
499
499
  project?: string | undefined;
500
500
  tag?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devpad/api",
3
- "version": "2.3.5",
3
+ "version": "2.3.7",
4
4
  "description": "TypeScript client library for the devpad API - project and task management made simple",
5
5
  "keywords": [
6
6
  "api",
@@ -68,7 +68,7 @@
68
68
  "zod": "^3.22.4"
69
69
  },
70
70
  "devDependencies": {
71
- "@devpad/schema": "^2.3.5",
71
+ "@devpad/schema": "^2.3.7",
72
72
  "@types/node": "^20.11.24",
73
73
  "bun-types": "latest",
74
74
  "tsup": "^8.0.0",