@devpad/api 2.3.5 → 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-A7B2SE7T.js → chunk-KRYLGBPJ.js} +206 -4
- package/dist/{errors.d-CNYqUDaJ.d.ts → errors.d-BUNZEN7j.d.ts} +10 -2
- package/dist/index.d.ts +100 -5
- package/dist/index.js +227 -10
- package/dist/schema/blog.d.ts +869 -136
- package/dist/schema/index.d.ts +3 -3
- package/dist/schema/index.js +46 -2
- package/dist/schema/media.d.ts +29 -29
- package/dist/schema/media.js +5 -1
- package/dist/{schema.d-CFQELmTM.d.ts → schema.d-7jUA2Hd2.d.ts} +735 -7
- package/dist/{types.d-NajL6dL5.d.ts → types.d-CEmFf0kh.d.ts} +429 -24
- package/dist/{types.d-CK6qaT-O.d.ts → types.d-CsYeI1BE.d.ts} +1 -1
- package/dist/{types.d-BEtzx3lu.d.ts → types.d-DbgtG-w1.d.ts} +2 -2
- 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>>;
|
|
@@ -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>;
|
|
@@ -2237,49 +2237,451 @@ 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>;
|
|
2242
2644
|
declare const hook_selector: z.ZodObject<{
|
|
2243
2645
|
subject_kind: z.ZodOptional<z.ZodEnum<["task", "phase", "approval"]>>;
|
|
2244
2646
|
tag: z.ZodOptional<z.ZodString>;
|
|
2245
2647
|
ancestor_id: z.ZodOptional<z.ZodString>;
|
|
2246
2648
|
}, "strip", z.ZodTypeAny, {
|
|
2247
|
-
tag?: string | undefined;
|
|
2248
2649
|
subject_kind?: "task" | "phase" | "approval" | undefined;
|
|
2650
|
+
tag?: string | undefined;
|
|
2249
2651
|
ancestor_id?: string | undefined;
|
|
2250
2652
|
}, {
|
|
2251
|
-
tag?: string | undefined;
|
|
2252
2653
|
subject_kind?: "task" | "phase" | "approval" | undefined;
|
|
2654
|
+
tag?: string | undefined;
|
|
2253
2655
|
ancestor_id?: string | undefined;
|
|
2254
2656
|
}>;
|
|
2255
2657
|
type HookSelector = z.infer<typeof hook_selector>;
|
|
2256
2658
|
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">;
|
|
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">;
|
|
2258
2660
|
selector: z.ZodDefault<z.ZodObject<{
|
|
2259
2661
|
subject_kind: z.ZodOptional<z.ZodEnum<["task", "phase", "approval"]>>;
|
|
2260
2662
|
tag: z.ZodOptional<z.ZodString>;
|
|
2261
2663
|
ancestor_id: z.ZodOptional<z.ZodString>;
|
|
2262
2664
|
}, "strip", z.ZodTypeAny, {
|
|
2263
|
-
tag?: string | undefined;
|
|
2264
2665
|
subject_kind?: "task" | "phase" | "approval" | undefined;
|
|
2666
|
+
tag?: string | undefined;
|
|
2265
2667
|
ancestor_id?: string | undefined;
|
|
2266
2668
|
}, {
|
|
2267
|
-
tag?: string | undefined;
|
|
2268
2669
|
subject_kind?: "task" | "phase" | "approval" | undefined;
|
|
2670
|
+
tag?: string | undefined;
|
|
2269
2671
|
ancestor_id?: string | undefined;
|
|
2270
2672
|
}>>;
|
|
2271
2673
|
}, "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")[];
|
|
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")[];
|
|
2273
2675
|
selector: {
|
|
2274
|
-
tag?: string | undefined;
|
|
2275
2676
|
subject_kind?: "task" | "phase" | "approval" | undefined;
|
|
2677
|
+
tag?: string | undefined;
|
|
2276
2678
|
ancestor_id?: string | undefined;
|
|
2277
2679
|
};
|
|
2278
2680
|
}, {
|
|
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")[];
|
|
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")[];
|
|
2280
2682
|
selector?: {
|
|
2281
|
-
tag?: string | undefined;
|
|
2282
2683
|
subject_kind?: "task" | "phase" | "approval" | undefined;
|
|
2684
|
+
tag?: string | undefined;
|
|
2283
2685
|
ancestor_id?: string | undefined;
|
|
2284
2686
|
} | undefined;
|
|
2285
2687
|
}>;
|
|
@@ -2406,32 +2808,32 @@ declare const upsert_hook: z.ZodObject<{
|
|
|
2406
2808
|
project_id: z.ZodString;
|
|
2407
2809
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2408
2810
|
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">;
|
|
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">;
|
|
2410
2812
|
selector: z.ZodDefault<z.ZodObject<{
|
|
2411
2813
|
subject_kind: z.ZodOptional<z.ZodEnum<["task", "phase", "approval"]>>;
|
|
2412
2814
|
tag: z.ZodOptional<z.ZodString>;
|
|
2413
2815
|
ancestor_id: z.ZodOptional<z.ZodString>;
|
|
2414
2816
|
}, "strip", z.ZodTypeAny, {
|
|
2415
|
-
tag?: string | undefined;
|
|
2416
2817
|
subject_kind?: "task" | "phase" | "approval" | undefined;
|
|
2818
|
+
tag?: string | undefined;
|
|
2417
2819
|
ancestor_id?: string | undefined;
|
|
2418
2820
|
}, {
|
|
2419
|
-
tag?: string | undefined;
|
|
2420
2821
|
subject_kind?: "task" | "phase" | "approval" | undefined;
|
|
2822
|
+
tag?: string | undefined;
|
|
2421
2823
|
ancestor_id?: string | undefined;
|
|
2422
2824
|
}>>;
|
|
2423
2825
|
}, "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")[];
|
|
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")[];
|
|
2425
2827
|
selector: {
|
|
2426
|
-
tag?: string | undefined;
|
|
2427
2828
|
subject_kind?: "task" | "phase" | "approval" | undefined;
|
|
2829
|
+
tag?: string | undefined;
|
|
2428
2830
|
ancestor_id?: string | undefined;
|
|
2429
2831
|
};
|
|
2430
2832
|
}, {
|
|
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")[];
|
|
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")[];
|
|
2432
2834
|
selector?: {
|
|
2433
|
-
tag?: string | undefined;
|
|
2434
2835
|
subject_kind?: "task" | "phase" | "approval" | undefined;
|
|
2836
|
+
tag?: string | undefined;
|
|
2435
2837
|
ancestor_id?: string | undefined;
|
|
2436
2838
|
} | undefined;
|
|
2437
2839
|
}>;
|
|
@@ -2489,10 +2891,10 @@ declare const upsert_hook: z.ZodObject<{
|
|
|
2489
2891
|
package_id: string;
|
|
2490
2892
|
};
|
|
2491
2893
|
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")[];
|
|
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")[];
|
|
2493
2895
|
selector: {
|
|
2494
|
-
tag?: string | undefined;
|
|
2495
2896
|
subject_kind?: "task" | "phase" | "approval" | undefined;
|
|
2897
|
+
tag?: string | undefined;
|
|
2496
2898
|
ancestor_id?: string | undefined;
|
|
2497
2899
|
};
|
|
2498
2900
|
};
|
|
@@ -2513,10 +2915,10 @@ declare const upsert_hook: z.ZodObject<{
|
|
|
2513
2915
|
package_id: string;
|
|
2514
2916
|
};
|
|
2515
2917
|
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")[];
|
|
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")[];
|
|
2517
2919
|
selector?: {
|
|
2518
|
-
tag?: string | undefined;
|
|
2519
2920
|
subject_kind?: "task" | "phase" | "approval" | undefined;
|
|
2921
|
+
tag?: string | undefined;
|
|
2520
2922
|
ancestor_id?: string | undefined;
|
|
2521
2923
|
} | undefined;
|
|
2522
2924
|
};
|
|
@@ -2547,6 +2949,9 @@ type TaskEvent = InferSelectModel<typeof task_event>;
|
|
|
2547
2949
|
type Hook = InferSelectModel<typeof hook>;
|
|
2548
2950
|
type HookDelivery = InferSelectModel<typeof hook_delivery>;
|
|
2549
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>;
|
|
2550
2955
|
type PipelinePackage = InferSelectModel<typeof pipeline_package>;
|
|
2551
2956
|
type PipelineRun = InferSelectModel<typeof pipeline_run>;
|
|
2552
2957
|
type PipelineStageEvent = InferSelectModel<typeof pipeline_stage_event>;
|
|
@@ -2683,4 +3088,4 @@ type UpdateData = {
|
|
|
2683
3088
|
type UpdateUser = z.infer<typeof update_user>;
|
|
2684
3089
|
type ConfigSchemaType = z.infer<typeof config_schema>;
|
|
2685
3090
|
|
|
2686
|
-
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 };
|
|
@@ -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 {
|
|
4
|
+
import { q as api_keys } from './schema.d-7jUA2Hd2.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" | "
|
|
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" | "
|
|
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.
|
|
3
|
+
"version": "2.3.6",
|
|
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.
|
|
71
|
+
"@devpad/schema": "^2.3.6",
|
|
72
72
|
"@types/node": "^20.11.24",
|
|
73
73
|
"bun-types": "latest",
|
|
74
74
|
"tsup": "^8.0.0",
|