@cat-factory/contracts 0.169.0 → 0.171.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent-presentation.d.ts +2 -2
- package/dist/errors.d.ts +1 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +6 -0
- package/dist/errors.js.map +1 -1
- package/dist/execution.d.ts +110 -804
- package/dist/execution.d.ts.map +1 -1
- package/dist/execution.js +27 -328
- package/dist/execution.js.map +1 -1
- package/dist/gate.d.ts +283 -0
- package/dist/gate.d.ts.map +1 -0
- package/dist/gate.js +209 -0
- package/dist/gate.js.map +1 -0
- package/dist/human-verdict-gates.d.ts +165 -0
- package/dist/human-verdict-gates.d.ts.map +1 -0
- package/dist/human-verdict-gates.js +139 -0
- package/dist/human-verdict-gates.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/judge.d.ts +181 -0
- package/dist/judge.d.ts.map +1 -0
- package/dist/judge.js +147 -0
- package/dist/judge.js.map +1 -0
- package/dist/merge.d.ts +17 -0
- package/dist/merge.d.ts.map +1 -1
- package/dist/merge.js +19 -0
- package/dist/merge.js.map +1 -1
- package/dist/notification-webhooks.d.ts +3 -3
- package/dist/notifications.d.ts +3 -3
- package/dist/notifications.d.ts.map +1 -1
- package/dist/notifications.js +2 -0
- package/dist/notifications.js.map +1 -1
- package/dist/pr-report.d.ts +101 -0
- package/dist/pr-report.d.ts.map +1 -1
- package/dist/pr-report.js +40 -0
- package/dist/pr-report.js.map +1 -1
- package/dist/public-api.d.ts +75 -1
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +75 -1
- package/dist/public-api.js.map +1 -1
- package/dist/public-decisions.d.ts +94 -1
- package/dist/public-decisions.d.ts.map +1 -1
- package/dist/public-decisions.js +34 -1
- package/dist/public-decisions.js.map +1 -1
- package/dist/result-views.d.ts +1 -1
- package/dist/result-views.d.ts.map +1 -1
- package/dist/result-views.js +1 -0
- package/dist/result-views.js.map +1 -1
- package/dist/routes/agent-runs.d.ts +86 -0
- package/dist/routes/agent-runs.d.ts.map +1 -1
- package/dist/routes/execution.d.ts +344 -0
- package/dist/routes/execution.d.ts.map +1 -1
- package/dist/routes/human-review.d.ts +43 -0
- package/dist/routes/human-review.d.ts.map +1 -1
- package/dist/routes/human-test.d.ts +215 -0
- package/dist/routes/human-test.d.ts.map +1 -1
- package/dist/routes/index.d.ts +1 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +1 -0
- package/dist/routes/index.js.map +1 -1
- package/dist/routes/judge.d.ts +158 -0
- package/dist/routes/judge.d.ts.map +1 -0
- package/dist/routes/judge.js +28 -0
- package/dist/routes/judge.js.map +1 -0
- package/dist/routes/merge.d.ts +12 -0
- package/dist/routes/merge.d.ts.map +1 -1
- package/dist/routes/notification-webhooks.d.ts +3 -3
- package/dist/routes/notifications.d.ts +3 -3
- package/dist/routes/public-api.d.ts +70 -4
- package/dist/routes/public-api.d.ts.map +1 -1
- package/dist/routes/public-api.js +18 -2
- package/dist/routes/public-api.js.map +1 -1
- package/dist/routes/public-decisions.d.ts +246 -0
- package/dist/routes/public-decisions.d.ts.map +1 -1
- package/dist/routes/public-decisions.js +10 -1
- package/dist/routes/public-decisions.js.map +1 -1
- package/dist/routes/slack.d.ts +3 -3
- package/dist/routes/visual-confirm.d.ts +129 -0
- package/dist/routes/visual-confirm.d.ts.map +1 -1
- package/dist/routes/workspaces.d.ts +94 -4
- package/dist/routes/workspaces.d.ts.map +1 -1
- package/dist/slack.d.ts +2 -2
- package/dist/snapshot.d.ts +47 -2
- package/dist/snapshot.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineApiContract } from '@toad-contracts/valibot';
|
|
2
|
+
import * as v from 'valibot';
|
|
3
|
+
import { judgeStepStateSchema, resolveJudgeSchema } from '../judge.js';
|
|
4
|
+
import { errorResponses, singleStringParam } from './_shared.js';
|
|
5
|
+
// ---------------------------------------------------------------------------
|
|
6
|
+
// Judge route contracts (the fourth step-taxonomy bucket). Mounted under
|
|
7
|
+
// `/workspaces/:workspaceId`, so the paths here are relative to that prefix. The read
|
|
8
|
+
// returns the run's active judge state (or null when no step carries one); `resolve`
|
|
9
|
+
// answers a parked verdict — proceed anyway, bounce the work back for rework, or stop
|
|
10
|
+
// the run. The SAME service method backs the public API's decisions surface, so a
|
|
11
|
+
// headless caller drives an identical loop. See JudgeController in @cat-factory/server
|
|
12
|
+
// and `docs/initiatives/judge-registry.md`.
|
|
13
|
+
// ---------------------------------------------------------------------------
|
|
14
|
+
const executionIdParams = singleStringParam('executionId');
|
|
15
|
+
export const getJudgeDecisionContract = defineApiContract({
|
|
16
|
+
method: 'get',
|
|
17
|
+
requestPathParamsSchema: executionIdParams,
|
|
18
|
+
pathResolver: ({ executionId }) => `/executions/${executionId}/judge`,
|
|
19
|
+
responsesByStatusCode: { 200: v.nullable(judgeStepStateSchema), ...errorResponses },
|
|
20
|
+
});
|
|
21
|
+
export const resolveJudgeContract = defineApiContract({
|
|
22
|
+
method: 'post',
|
|
23
|
+
requestPathParamsSchema: executionIdParams,
|
|
24
|
+
pathResolver: ({ executionId }) => `/executions/${executionId}/judge/resolve`,
|
|
25
|
+
requestBodySchema: resolveJudgeSchema,
|
|
26
|
+
responsesByStatusCode: { 200: judgeStepStateSchema, ...errorResponses },
|
|
27
|
+
});
|
|
28
|
+
//# sourceMappingURL=judge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"judge.js","sourceRoot":"","sources":["../../src/routes/judge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AACtE,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAEhE,8EAA8E;AAC9E,yEAAyE;AACzE,sFAAsF;AACtF,qFAAqF;AACrF,sFAAsF;AACtF,kFAAkF;AAClF,uFAAuF;AACvF,4CAA4C;AAC5C,8EAA8E;AAE9E,MAAM,iBAAiB,GAAG,iBAAiB,CAAC,aAAa,CAAC,CAAA;AAE1D,MAAM,CAAC,MAAM,wBAAwB,GAAG,iBAAiB,CAAC;IACxD,MAAM,EAAE,KAAK;IACb,uBAAuB,EAAE,iBAAiB;IAC1C,YAAY,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,eAAe,WAAW,QAAQ;IACrE,qBAAqB,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,GAAG,cAAc,EAAE;CACpF,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,iBAAiB,CAAC;IACpD,MAAM,EAAE,MAAM;IACd,uBAAuB,EAAE,iBAAiB;IAC1C,YAAY,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,eAAe,WAAW,gBAAgB;IAC7E,iBAAiB,EAAE,kBAAkB;IACrC,qBAAqB,EAAE,EAAE,GAAG,EAAE,oBAAoB,EAAE,GAAG,cAAc,EAAE;CACxE,CAAC,CAAA"}
|
package/dist/routes/merge.d.ts
CHANGED
|
@@ -39,6 +39,8 @@ export declare const listRiskPoliciesContract: {
|
|
|
39
39
|
readonly releaseWatchWindowMinutes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
40
40
|
readonly releaseMaxAttempts: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
41
41
|
readonly humanReviewGraceMinutes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
42
|
+
readonly judgeMinScore: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
43
|
+
readonly judgeMaxBounces: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
42
44
|
readonly autoMergeEnabled: v.BooleanSchema<undefined>;
|
|
43
45
|
readonly forkDecision: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
44
46
|
readonly enabled: v.BooleanSchema<undefined>;
|
|
@@ -127,6 +129,8 @@ export declare const createRiskPolicyContract: {
|
|
|
127
129
|
readonly releaseWatchWindowMinutes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 720, undefined>]>, 30>;
|
|
128
130
|
readonly releaseMaxAttempts: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 10, undefined>]>, 1>;
|
|
129
131
|
readonly humanReviewGraceMinutes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1440, undefined>]>, 10>;
|
|
132
|
+
readonly judgeMinScore: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, 0.7>;
|
|
133
|
+
readonly judgeMaxBounces: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 10, undefined>]>, 1>;
|
|
130
134
|
readonly autoMergeEnabled: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
131
135
|
readonly forkDecision: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
132
136
|
readonly enabled: v.BooleanSchema<undefined>;
|
|
@@ -232,6 +236,8 @@ export declare const createRiskPolicyContract: {
|
|
|
232
236
|
readonly releaseWatchWindowMinutes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
233
237
|
readonly releaseMaxAttempts: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
234
238
|
readonly humanReviewGraceMinutes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
239
|
+
readonly judgeMinScore: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
240
|
+
readonly judgeMaxBounces: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
235
241
|
readonly autoMergeEnabled: v.BooleanSchema<undefined>;
|
|
236
242
|
readonly forkDecision: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
237
243
|
readonly enabled: v.BooleanSchema<undefined>;
|
|
@@ -325,6 +331,8 @@ export declare const updateRiskPolicyContract: {
|
|
|
325
331
|
readonly releaseWatchWindowMinutes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 720, undefined>]>, undefined>;
|
|
326
332
|
readonly releaseMaxAttempts: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 10, undefined>]>, undefined>;
|
|
327
333
|
readonly humanReviewGraceMinutes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1440, undefined>]>, undefined>;
|
|
334
|
+
readonly judgeMinScore: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
335
|
+
readonly judgeMaxBounces: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 10, undefined>]>, undefined>;
|
|
328
336
|
readonly autoMergeEnabled: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
329
337
|
readonly forkDecision: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
330
338
|
readonly enabled: v.BooleanSchema<undefined>;
|
|
@@ -430,6 +438,8 @@ export declare const updateRiskPolicyContract: {
|
|
|
430
438
|
readonly releaseWatchWindowMinutes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
431
439
|
readonly releaseMaxAttempts: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
432
440
|
readonly humanReviewGraceMinutes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
441
|
+
readonly judgeMinScore: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
442
|
+
readonly judgeMaxBounces: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
433
443
|
readonly autoMergeEnabled: v.BooleanSchema<undefined>;
|
|
434
444
|
readonly forkDecision: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
435
445
|
readonly enabled: v.BooleanSchema<undefined>;
|
|
@@ -588,6 +598,8 @@ export declare const reseedRiskPolicyContract: {
|
|
|
588
598
|
readonly releaseWatchWindowMinutes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>;
|
|
589
599
|
readonly releaseMaxAttempts: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
590
600
|
readonly humanReviewGraceMinutes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
601
|
+
readonly judgeMinScore: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
602
|
+
readonly judgeMaxBounces: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
591
603
|
readonly autoMergeEnabled: v.BooleanSchema<undefined>;
|
|
592
604
|
readonly forkDecision: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
593
605
|
readonly enabled: v.BooleanSchema<undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../src/routes/merge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAa5B,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../src/routes/merge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAa5B,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAInC,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKnC,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMnC,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKnC,CAAA;AAEF;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMnC,CAAA"}
|
|
@@ -29,7 +29,7 @@ export declare const getNotificationWebhookContract: {
|
|
|
29
29
|
}, undefined>;
|
|
30
30
|
readonly 200: v.NullableSchema<v.ObjectSchema<{
|
|
31
31
|
readonly url: v.StringSchema<undefined>;
|
|
32
|
-
readonly types: v.ArraySchema<v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "pr_review_ready", "initiative", "platform_health", "budget_paused", "key_drift", "merge_tag_request"], undefined>, undefined>;
|
|
32
|
+
readonly types: v.ArraySchema<v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "judge_review", "pr_review_ready", "initiative", "platform_health", "budget_paused", "key_drift", "merge_tag_request"], undefined>, undefined>;
|
|
33
33
|
readonly enabled: v.BooleanSchema<undefined>;
|
|
34
34
|
readonly hasSecret: v.BooleanSchema<undefined>;
|
|
35
35
|
readonly updatedAt: v.NumberSchema<undefined>;
|
|
@@ -42,7 +42,7 @@ export declare const putNotificationWebhookContract: {
|
|
|
42
42
|
readonly pathResolver: () => string;
|
|
43
43
|
readonly requestBodySchema: v.ObjectSchema<{
|
|
44
44
|
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, undefined>, v.StartsWithAction<string, "https://", "The webhook endpoint must be an https:// URL">, v.MaxLengthAction<string, 2000, undefined>]>;
|
|
45
|
-
readonly types: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "pr_review_ready", "initiative", "platform_health", "budget_paused", "key_drift", "merge_tag_request"], undefined>, undefined>, undefined>;
|
|
45
|
+
readonly types: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "judge_review", "pr_review_ready", "initiative", "platform_health", "budget_paused", "key_drift", "merge_tag_request"], undefined>, undefined>, undefined>;
|
|
46
46
|
readonly enabled: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
47
47
|
readonly secret: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 16, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
48
48
|
}, undefined>;
|
|
@@ -71,7 +71,7 @@ export declare const putNotificationWebhookContract: {
|
|
|
71
71
|
}, undefined>;
|
|
72
72
|
readonly 200: v.ObjectSchema<{
|
|
73
73
|
readonly url: v.StringSchema<undefined>;
|
|
74
|
-
readonly types: v.ArraySchema<v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "pr_review_ready", "initiative", "platform_health", "budget_paused", "key_drift", "merge_tag_request"], undefined>, undefined>;
|
|
74
|
+
readonly types: v.ArraySchema<v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "judge_review", "pr_review_ready", "initiative", "platform_health", "budget_paused", "key_drift", "merge_tag_request"], undefined>, undefined>;
|
|
75
75
|
readonly enabled: v.BooleanSchema<undefined>;
|
|
76
76
|
readonly hasSecret: v.BooleanSchema<undefined>;
|
|
77
77
|
readonly updatedAt: v.NumberSchema<undefined>;
|
|
@@ -28,7 +28,7 @@ export declare const listNotificationsContract: {
|
|
|
28
28
|
}, undefined>;
|
|
29
29
|
readonly 200: v.ArraySchema<v.ObjectSchema<{
|
|
30
30
|
readonly id: v.StringSchema<undefined>;
|
|
31
|
-
readonly type: v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "pr_review_ready", "initiative", "platform_health", "budget_paused", "key_drift", "merge_tag_request"], undefined>;
|
|
31
|
+
readonly type: v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "judge_review", "pr_review_ready", "initiative", "platform_health", "budget_paused", "key_drift", "merge_tag_request"], undefined>;
|
|
32
32
|
readonly status: v.PicklistSchema<["open", "acted", "dismissed"], undefined>;
|
|
33
33
|
readonly severity: v.OptionalSchema<v.PicklistSchema<["normal", "urgent"], undefined>, undefined>;
|
|
34
34
|
readonly blockId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -118,7 +118,7 @@ export declare const actNotificationContract: {
|
|
|
118
118
|
}, undefined>;
|
|
119
119
|
readonly 200: v.ObjectSchema<{
|
|
120
120
|
readonly id: v.StringSchema<undefined>;
|
|
121
|
-
readonly type: v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "pr_review_ready", "initiative", "platform_health", "budget_paused", "key_drift", "merge_tag_request"], undefined>;
|
|
121
|
+
readonly type: v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "judge_review", "pr_review_ready", "initiative", "platform_health", "budget_paused", "key_drift", "merge_tag_request"], undefined>;
|
|
122
122
|
readonly status: v.PicklistSchema<["open", "acted", "dismissed"], undefined>;
|
|
123
123
|
readonly severity: v.OptionalSchema<v.PicklistSchema<["normal", "urgent"], undefined>, undefined>;
|
|
124
124
|
readonly blockId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -206,7 +206,7 @@ export declare const dismissNotificationContract: {
|
|
|
206
206
|
}, undefined>;
|
|
207
207
|
readonly 200: v.ObjectSchema<{
|
|
208
208
|
readonly id: v.StringSchema<undefined>;
|
|
209
|
-
readonly type: v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "pr_review_ready", "initiative", "platform_health", "budget_paused", "key_drift", "merge_tag_request"], undefined>;
|
|
209
|
+
readonly type: v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "judge_review", "pr_review_ready", "initiative", "platform_health", "budget_paused", "key_drift", "merge_tag_request"], undefined>;
|
|
210
210
|
readonly status: v.PicklistSchema<["open", "acted", "dismissed"], undefined>;
|
|
211
211
|
readonly severity: v.OptionalSchema<v.PicklistSchema<["normal", "urgent"], undefined>, undefined>;
|
|
212
212
|
readonly blockId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -161,6 +161,62 @@ export declare const createInitiativeJobContract: {
|
|
|
161
161
|
}, undefined>;
|
|
162
162
|
};
|
|
163
163
|
};
|
|
164
|
+
/**
|
|
165
|
+
* List the workspace's headless initiative jobs (newest first, keyset-paginated). Scoped to the
|
|
166
|
+
* runs THIS surface created — an internal-anchored run — exactly like the single-job read, so an
|
|
167
|
+
* external key can never enumerate the workspace's ordinary board runs.
|
|
168
|
+
*/
|
|
169
|
+
export declare const listPublicJobsContract: {
|
|
170
|
+
readonly method: "get";
|
|
171
|
+
readonly pathResolver: () => string;
|
|
172
|
+
readonly requestQuerySchema: import("valibot").ObjectSchema<{
|
|
173
|
+
readonly limit: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RegexAction<string, "Must be a whole number">, import("valibot").TransformAction<any, number>, import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 100, undefined>]>, undefined>;
|
|
174
|
+
readonly cursor: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
175
|
+
readonly status: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["running", "succeeded", "failed"], undefined>, undefined>;
|
|
176
|
+
readonly since: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RegexAction<string, "Must be a whole number of epoch milliseconds">, import("valibot").TransformAction<any, number>, import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
|
|
177
|
+
}, undefined>;
|
|
178
|
+
readonly responsesByStatusCode: {
|
|
179
|
+
readonly '4xx': import("valibot").ObjectSchema<{
|
|
180
|
+
readonly error: import("valibot").ObjectSchema<{
|
|
181
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
182
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
183
|
+
readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
184
|
+
readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
185
|
+
readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
186
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
187
|
+
}, undefined>, undefined>, undefined>;
|
|
188
|
+
}, undefined>;
|
|
189
|
+
}, undefined>;
|
|
190
|
+
readonly '5xx': import("valibot").ObjectSchema<{
|
|
191
|
+
readonly error: import("valibot").ObjectSchema<{
|
|
192
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
193
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
194
|
+
readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
195
|
+
readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
196
|
+
readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
197
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
198
|
+
}, undefined>, undefined>, undefined>;
|
|
199
|
+
}, undefined>;
|
|
200
|
+
}, undefined>;
|
|
201
|
+
readonly 200: import("valibot").ObjectSchema<{
|
|
202
|
+
readonly jobs: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
203
|
+
readonly jobId: import("valibot").StringSchema<undefined>;
|
|
204
|
+
readonly status: import("valibot").PicklistSchema<["running", "succeeded", "failed"], undefined>;
|
|
205
|
+
readonly pipelineId: import("valibot").StringSchema<undefined>;
|
|
206
|
+
readonly createdAt: import("valibot").NumberSchema<undefined>;
|
|
207
|
+
readonly result: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
|
|
208
|
+
readonly output: import("valibot").StringSchema<undefined>;
|
|
209
|
+
readonly data: import("valibot").NullableSchema<import("valibot").UnknownSchema, undefined>;
|
|
210
|
+
}, undefined>, undefined>;
|
|
211
|
+
readonly error: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
|
|
212
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
213
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
214
|
+
}, undefined>, undefined>;
|
|
215
|
+
}, undefined>, undefined>;
|
|
216
|
+
readonly nextCursor: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
217
|
+
}, undefined>;
|
|
218
|
+
};
|
|
219
|
+
};
|
|
164
220
|
export declare const getPublicJobContract: {
|
|
165
221
|
readonly method: "get";
|
|
166
222
|
readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
|
|
@@ -352,12 +408,21 @@ export declare const createPublicTaskContract: {
|
|
|
352
408
|
}, undefined>;
|
|
353
409
|
};
|
|
354
410
|
};
|
|
355
|
-
/**
|
|
411
|
+
/**
|
|
412
|
+
* List a service's tasks (the whole subtree — tasks under the frame and its modules), bounded
|
|
413
|
+
* and keyset-paginated with an optional status filter. Ordered by the stable task id, which is
|
|
414
|
+
* deterministic but NOT chronological (see `listPublicServiceTasksQuerySchema`).
|
|
415
|
+
*/
|
|
356
416
|
export declare const listPublicServiceTasksContract: {
|
|
357
417
|
readonly method: "get";
|
|
358
418
|
readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
|
|
359
419
|
serviceId: import("valibot").StringSchema<undefined>;
|
|
360
420
|
}, undefined> & import("@toad-contracts/core").StandardObjectKeysV1<unknown, unknown>;
|
|
421
|
+
readonly requestQuerySchema: import("valibot").ObjectSchema<{
|
|
422
|
+
readonly limit: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RegexAction<string, "Must be a whole number">, import("valibot").TransformAction<any, number>, import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 100, undefined>]>, undefined>;
|
|
423
|
+
readonly cursor: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
424
|
+
readonly status: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["planned", "ready", "in_progress", "blocked", "pr_ready", "done"], undefined>, undefined>;
|
|
425
|
+
}, undefined>;
|
|
361
426
|
readonly pathResolver: ({ serviceId }: {
|
|
362
427
|
serviceId: string;
|
|
363
428
|
}) => string;
|
|
@@ -396,6 +461,7 @@ export declare const listPublicServiceTasksContract: {
|
|
|
396
461
|
readonly executionId: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
397
462
|
readonly pullRequestUrl: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
398
463
|
}, undefined>, undefined>;
|
|
464
|
+
readonly nextCursor: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
399
465
|
}, undefined>;
|
|
400
466
|
};
|
|
401
467
|
};
|
|
@@ -795,7 +861,7 @@ export declare const listPublicNotificationsContract: {
|
|
|
795
861
|
readonly 200: import("valibot").ObjectSchema<{
|
|
796
862
|
readonly notifications: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
797
863
|
readonly id: import("valibot").StringSchema<undefined>;
|
|
798
|
-
readonly type: import("valibot").PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "pr_review_ready", "initiative", "platform_health", "budget_paused", "key_drift", "merge_tag_request"], undefined>;
|
|
864
|
+
readonly type: import("valibot").PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "judge_review", "pr_review_ready", "initiative", "platform_health", "budget_paused", "key_drift", "merge_tag_request"], undefined>;
|
|
799
865
|
readonly status: import("valibot").PicklistSchema<["open", "acted", "dismissed"], undefined>;
|
|
800
866
|
readonly severity: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["normal", "urgent"], undefined>, undefined>;
|
|
801
867
|
readonly blockId: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
@@ -885,7 +951,7 @@ export declare const actPublicNotificationContract: {
|
|
|
885
951
|
}, undefined>;
|
|
886
952
|
readonly 200: import("valibot").ObjectSchema<{
|
|
887
953
|
readonly id: import("valibot").StringSchema<undefined>;
|
|
888
|
-
readonly type: import("valibot").PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "pr_review_ready", "initiative", "platform_health", "budget_paused", "key_drift", "merge_tag_request"], undefined>;
|
|
954
|
+
readonly type: import("valibot").PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "judge_review", "pr_review_ready", "initiative", "platform_health", "budget_paused", "key_drift", "merge_tag_request"], undefined>;
|
|
889
955
|
readonly status: import("valibot").PicklistSchema<["open", "acted", "dismissed"], undefined>;
|
|
890
956
|
readonly severity: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["normal", "urgent"], undefined>, undefined>;
|
|
891
957
|
readonly blockId: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
@@ -974,7 +1040,7 @@ export declare const dismissPublicNotificationContract: {
|
|
|
974
1040
|
}, undefined>;
|
|
975
1041
|
readonly 200: import("valibot").ObjectSchema<{
|
|
976
1042
|
readonly id: import("valibot").StringSchema<undefined>;
|
|
977
|
-
readonly type: import("valibot").PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "pr_review_ready", "initiative", "platform_health", "budget_paused", "key_drift", "merge_tag_request"], undefined>;
|
|
1043
|
+
readonly type: import("valibot").PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "judge_review", "pr_review_ready", "initiative", "platform_health", "budget_paused", "key_drift", "merge_tag_request"], undefined>;
|
|
978
1044
|
readonly status: import("valibot").PicklistSchema<["open", "acted", "dismissed"], undefined>;
|
|
979
1045
|
readonly severity: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["normal", "urgent"], undefined>, undefined>;
|
|
980
1046
|
readonly blockId: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../../src/routes/public-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../../src/routes/public-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AA4C3E,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIpC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKrC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKrC,CAAA;AAIF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKtC,CAAA;AAEF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKjC,CAAA;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK/B,CAAA;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMlC,CAAA;AAIF,4DAA4D;AAC5D,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIrC,CAAA;AAEF,qCAAqC;AACrC,eAA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6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMxC,CAAA;AAEF,mDAAmD;AACnD,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM5C,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ContractNoBody, defineApiContract } from '@toad-contracts/valibot';
|
|
2
2
|
import { createPublicApiKeySchema, createdPublicApiKeySchema, publicApiKeyListResultSchema, } from '../public-api-keys.js';
|
|
3
3
|
import { notificationSchema } from '../notifications.js';
|
|
4
|
-
import { createInitiativeJobSchema, createPublicTaskSchema, initiativeAcceptedSchema, publicJobSchema, publicNotificationListSchema, publicPipelineListSchema, publicRunSchema, publicServiceListSchema, publicTaskListSchema, publicTaskSchema, startPublicTaskSchema, updatePublicTaskSchema, } from '../public-api.js';
|
|
4
|
+
import { createInitiativeJobSchema, createPublicTaskSchema, initiativeAcceptedSchema, listPublicJobsQuerySchema, listPublicServiceTasksQuerySchema, publicJobListSchema, publicJobSchema, publicNotificationListSchema, publicPipelineListSchema, publicRunSchema, publicServiceListSchema, publicTaskListSchema, publicTaskSchema, startPublicTaskSchema, updatePublicTaskSchema, } from '../public-api.js';
|
|
5
5
|
import { errorResponses, singleStringParam } from './_shared.js';
|
|
6
6
|
// ---------------------------------------------------------------------------
|
|
7
7
|
// Public-API route contracts. Two surfaces:
|
|
@@ -42,6 +42,17 @@ export const createInitiativeJobContract = defineApiContract({
|
|
|
42
42
|
requestBodySchema: createInitiativeJobSchema,
|
|
43
43
|
responsesByStatusCode: { 202: initiativeAcceptedSchema, ...errorResponses },
|
|
44
44
|
});
|
|
45
|
+
/**
|
|
46
|
+
* List the workspace's headless initiative jobs (newest first, keyset-paginated). Scoped to the
|
|
47
|
+
* runs THIS surface created — an internal-anchored run — exactly like the single-job read, so an
|
|
48
|
+
* external key can never enumerate the workspace's ordinary board runs.
|
|
49
|
+
*/
|
|
50
|
+
export const listPublicJobsContract = defineApiContract({
|
|
51
|
+
method: 'get',
|
|
52
|
+
pathResolver: () => '/api/v1/jobs',
|
|
53
|
+
requestQuerySchema: listPublicJobsQuerySchema,
|
|
54
|
+
responsesByStatusCode: { 200: publicJobListSchema, ...errorResponses },
|
|
55
|
+
});
|
|
45
56
|
export const getPublicJobContract = defineApiContract({
|
|
46
57
|
method: 'get',
|
|
47
58
|
requestPathParamsSchema: idParams,
|
|
@@ -78,10 +89,15 @@ export const createPublicTaskContract = defineApiContract({
|
|
|
78
89
|
requestBodySchema: createPublicTaskSchema,
|
|
79
90
|
responsesByStatusCode: { 201: publicTaskSchema, ...errorResponses },
|
|
80
91
|
});
|
|
81
|
-
/**
|
|
92
|
+
/**
|
|
93
|
+
* List a service's tasks (the whole subtree — tasks under the frame and its modules), bounded
|
|
94
|
+
* and keyset-paginated with an optional status filter. Ordered by the stable task id, which is
|
|
95
|
+
* deterministic but NOT chronological (see `listPublicServiceTasksQuerySchema`).
|
|
96
|
+
*/
|
|
82
97
|
export const listPublicServiceTasksContract = defineApiContract({
|
|
83
98
|
method: 'get',
|
|
84
99
|
requestPathParamsSchema: serviceIdParams,
|
|
100
|
+
requestQuerySchema: listPublicServiceTasksQuerySchema,
|
|
85
101
|
pathResolver: ({ serviceId }) => `/api/v1/services/${serviceId}/tasks`,
|
|
86
102
|
responsesByStatusCode: { 200: publicTaskListSchema, ...errorResponses },
|
|
87
103
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-api.js","sourceRoot":"","sources":["../../src/routes/public-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,EACL,wBAAwB,EACxB,yBAAyB,EACzB,4BAA4B,GAC7B,MAAM,uBAAuB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