@cat-factory/contracts 0.262.0 → 0.264.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/form-fields.d.ts +21 -0
- package/dist/form-fields.d.ts.map +1 -1
- package/dist/form-fields.js +33 -1
- package/dist/form-fields.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/pr-report.d.ts +29 -1
- package/dist/pr-report.d.ts.map +1 -1
- package/dist/pr-report.js +15 -1
- package/dist/pr-report.js.map +1 -1
- package/dist/primitives.d.ts +280 -0
- package/dist/primitives.d.ts.map +1 -1
- package/dist/primitives.js +11 -0
- package/dist/primitives.js.map +1 -1
- package/dist/public-api.d.ts +55 -5
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +55 -5
- package/dist/public-api.js.map +1 -1
- package/dist/public-decisions.d.ts +27 -16
- package/dist/public-decisions.d.ts.map +1 -1
- package/dist/public-decisions.js +19 -8
- package/dist/public-decisions.js.map +1 -1
- package/dist/public-task-types.d.ts +6 -0
- package/dist/public-task-types.d.ts.map +1 -1
- package/dist/public-task-types.js +39 -1
- package/dist/public-task-types.js.map +1 -1
- package/dist/requests.d.ts +468 -2
- package/dist/requests.d.ts.map +1 -1
- package/dist/requests.js +16 -6
- package/dist/requests.js.map +1 -1
- package/dist/routes/_shared.d.ts +16 -0
- package/dist/routes/_shared.d.ts.map +1 -1
- package/dist/routes/_shared.js +15 -0
- package/dist/routes/_shared.js.map +1 -1
- package/dist/routes/board.d.ts +468 -2
- package/dist/routes/board.d.ts.map +1 -1
- package/dist/routes/debug-api.d.ts +18 -0
- package/dist/routes/debug-api.d.ts.map +1 -1
- package/dist/routes/debug-api.js +19 -19
- package/dist/routes/debug-api.js.map +1 -1
- package/dist/routes/notification-webhooks.d.ts +6 -0
- package/dist/routes/notification-webhooks.d.ts.map +1 -1
- package/dist/routes/notification-webhooks.js +7 -7
- package/dist/routes/notification-webhooks.js.map +1 -1
- package/dist/routes/public-api.d.ts +50 -1
- package/dist/routes/public-api.d.ts.map +1 -1
- package/dist/routes/public-api.js +51 -51
- package/dist/routes/public-api.js.map +1 -1
- package/dist/routes/public-decisions.d.ts +82 -0
- package/dist/routes/public-decisions.d.ts.map +1 -1
- package/dist/routes/public-decisions.js +83 -83
- package/dist/routes/public-decisions.js.map +1 -1
- package/dist/routes/public-evidence.d.ts +125 -0
- package/dist/routes/public-evidence.d.ts.map +1 -1
- package/dist/routes/public-evidence.js +26 -5
- package/dist/routes/public-evidence.js.map +1 -1
- package/dist/routes/spec.d.ts +84 -0
- package/dist/routes/spec.d.ts.map +1 -1
- package/dist/routes/spec.js +15 -0
- package/dist/routes/spec.js.map +1 -1
- package/dist/run-evidence.d.ts +152 -0
- package/dist/run-evidence.d.ts.map +1 -0
- package/dist/run-evidence.js +192 -0
- package/dist/run-evidence.js.map +1 -0
- package/dist/run-outcome.d.ts +370 -0
- package/dist/run-outcome.d.ts.map +1 -0
- package/dist/run-outcome.js +540 -0
- package/dist/run-outcome.js.map +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"board.d.ts","sourceRoot":"","sources":["../../src/routes/board.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAyB3E,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM/B,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMnC,CAAA"}
|
|
@@ -63,6 +63,8 @@ export declare const listDebugRunsContract: {
|
|
|
63
63
|
readonly nextCursor: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
64
64
|
}, undefined>;
|
|
65
65
|
};
|
|
66
|
+
} & {
|
|
67
|
+
readonly minScope: "read";
|
|
66
68
|
};
|
|
67
69
|
/** The run's diagnostic map: steps, per-sink availability + counts, LLM rollups, signals. */
|
|
68
70
|
export declare const getDebugRunContract: {
|
|
@@ -292,6 +294,8 @@ export declare const getDebugRunContract: {
|
|
|
292
294
|
}, undefined>, undefined>;
|
|
293
295
|
}, undefined>;
|
|
294
296
|
};
|
|
297
|
+
} & {
|
|
298
|
+
readonly minScope: "read";
|
|
295
299
|
};
|
|
296
300
|
/** The run's recorded model calls, keyset-paginated; bodies only when `bodyChars` asks. */
|
|
297
301
|
export declare const listDebugLlmCallsContract: {
|
|
@@ -416,6 +420,8 @@ export declare const listDebugLlmCallsContract: {
|
|
|
416
420
|
readonly nextCursor: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
417
421
|
}, undefined>;
|
|
418
422
|
};
|
|
423
|
+
} & {
|
|
424
|
+
readonly minScope: "read";
|
|
419
425
|
};
|
|
420
426
|
/** One recorded model call with its full (budgeted) prompt delta, response and reasoning. */
|
|
421
427
|
export declare const getDebugLlmCallContract: {
|
|
@@ -532,6 +538,8 @@ export declare const getDebugLlmCallContract: {
|
|
|
532
538
|
}, undefined>, undefined>, undefined>, undefined>;
|
|
533
539
|
}, undefined>;
|
|
534
540
|
};
|
|
541
|
+
} & {
|
|
542
|
+
readonly minScope: "read";
|
|
535
543
|
};
|
|
536
544
|
/** The run's captured agent-context dispatches, sizes only, keyset-paginated. */
|
|
537
545
|
export declare const listDebugAgentContextContract: {
|
|
@@ -586,6 +594,8 @@ export declare const listDebugAgentContextContract: {
|
|
|
586
594
|
readonly nextCursor: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
587
595
|
}, undefined>;
|
|
588
596
|
};
|
|
597
|
+
} & {
|
|
598
|
+
readonly minScope: "read";
|
|
589
599
|
};
|
|
590
600
|
/** One captured dispatch's full (budgeted) prompts, folded fragments and injected files. */
|
|
591
601
|
export declare const getDebugAgentContextContract: {
|
|
@@ -674,6 +684,8 @@ export declare const getDebugAgentContextContract: {
|
|
|
674
684
|
readonly extras: import("valibot").RecordSchema<import("valibot").StringSchema<undefined>, import("valibot").UnknownSchema, undefined>;
|
|
675
685
|
}, undefined>;
|
|
676
686
|
};
|
|
687
|
+
} & {
|
|
688
|
+
readonly minScope: "read";
|
|
677
689
|
};
|
|
678
690
|
/** The web searches the run's agents performed, keyset-paginated. */
|
|
679
691
|
export declare const listDebugSearchQueriesContract: {
|
|
@@ -725,6 +737,8 @@ export declare const listDebugSearchQueriesContract: {
|
|
|
725
737
|
readonly nextCursor: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
726
738
|
}, undefined>;
|
|
727
739
|
};
|
|
740
|
+
} & {
|
|
741
|
+
readonly minScope: "read";
|
|
728
742
|
};
|
|
729
743
|
/** The tool calls the run's agents made, in trajectory order, keyset-paginated. */
|
|
730
744
|
export declare const listDebugToolCallsContract: {
|
|
@@ -787,6 +801,8 @@ export declare const listDebugToolCallsContract: {
|
|
|
787
801
|
readonly nextCursor: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
788
802
|
}, undefined>;
|
|
789
803
|
};
|
|
804
|
+
} & {
|
|
805
|
+
readonly minScope: "read";
|
|
790
806
|
};
|
|
791
807
|
/** The run's provisioning event log — how its infrastructure came up, or why it didn't. */
|
|
792
808
|
export declare const listDebugLogsContract: {
|
|
@@ -842,5 +858,7 @@ export declare const listDebugLogsContract: {
|
|
|
842
858
|
readonly nextCursor: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
843
859
|
}, undefined>;
|
|
844
860
|
};
|
|
861
|
+
} & {
|
|
862
|
+
readonly minScope: "read";
|
|
845
863
|
};
|
|
846
864
|
//# sourceMappingURL=debug-api.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug-api.d.ts","sourceRoot":"","sources":["../../src/routes/debug-api.ts"],"names":[],"mappings":"AAuCA,8FAA8F;AAC9F,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"debug-api.d.ts","sourceRoot":"","sources":["../../src/routes/debug-api.ts"],"names":[],"mappings":"AAuCA,8FAA8F;AAC9F,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQjC,CAAA;AAED,6FAA6F;AAC7F,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;CASjC,CAAA"}
|
package/dist/routes/debug-api.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineApiContract } from '@toad-contracts/valibot';
|
|
2
2
|
import { debugAgentContextDetailSchema, debugAgentContextListSchema, debugLlmCallListSchema, debugLlmCallSchema, debugLogListSchema, debugRunListSchema, debugRunOverviewSchema, debugSearchQueryListSchema, debugToolCallListSchema, getDebugAgentContextQuerySchema, getDebugLlmCallQuerySchema, listDebugAgentContextQuerySchema, listDebugLlmCallsQuerySchema, listDebugPageQuerySchema, listDebugToolCallsQuerySchema, listDebugRunsQuerySchema, } from '../debug-api.js';
|
|
3
|
-
import { errorResponses, singleStringParam } from './_shared.js';
|
|
3
|
+
import { errorResponses, singleStringParam, withMinScope } from './_shared.js';
|
|
4
4
|
// ---------------------------------------------------------------------------
|
|
5
5
|
// Route contracts for the REMOTE DEBUGGING surface (`/api/v1/debug/*`) — absolute paths,
|
|
6
6
|
// authenticated in-controller by a public-API key (not the SPA session gate), `read` scope.
|
|
@@ -18,73 +18,73 @@ const runIdParams = singleStringParam('runId');
|
|
|
18
18
|
const callIdParams = singleStringParam('callId');
|
|
19
19
|
const snapshotIdParams = singleStringParam('snapshotId');
|
|
20
20
|
/** List the workspace's runs, newest first, keyset-paginated — the entry point for triage. */
|
|
21
|
-
export const listDebugRunsContract = defineApiContract({
|
|
21
|
+
export const listDebugRunsContract = withMinScope('read', defineApiContract({
|
|
22
22
|
method: 'get',
|
|
23
23
|
pathResolver: () => '/api/v1/debug/runs',
|
|
24
24
|
requestQuerySchema: listDebugRunsQuerySchema,
|
|
25
25
|
responsesByStatusCode: { 200: debugRunListSchema, ...errorResponses },
|
|
26
|
-
});
|
|
26
|
+
}));
|
|
27
27
|
/** The run's diagnostic map: steps, per-sink availability + counts, LLM rollups, signals. */
|
|
28
|
-
export const getDebugRunContract = defineApiContract({
|
|
28
|
+
export const getDebugRunContract = withMinScope('read', defineApiContract({
|
|
29
29
|
method: 'get',
|
|
30
30
|
requestPathParamsSchema: runIdParams,
|
|
31
31
|
pathResolver: ({ runId }) => `/api/v1/debug/runs/${runId}`,
|
|
32
32
|
responsesByStatusCode: { 200: debugRunOverviewSchema, ...errorResponses },
|
|
33
|
-
});
|
|
33
|
+
}));
|
|
34
34
|
/** The run's recorded model calls, keyset-paginated; bodies only when `bodyChars` asks. */
|
|
35
|
-
export const listDebugLlmCallsContract = defineApiContract({
|
|
35
|
+
export const listDebugLlmCallsContract = withMinScope('read', defineApiContract({
|
|
36
36
|
method: 'get',
|
|
37
37
|
requestPathParamsSchema: runIdParams,
|
|
38
38
|
pathResolver: ({ runId }) => `/api/v1/debug/runs/${runId}/llm-calls`,
|
|
39
39
|
requestQuerySchema: listDebugLlmCallsQuerySchema,
|
|
40
40
|
responsesByStatusCode: { 200: debugLlmCallListSchema, ...errorResponses },
|
|
41
|
-
});
|
|
41
|
+
}));
|
|
42
42
|
/** One recorded model call with its full (budgeted) prompt delta, response and reasoning. */
|
|
43
|
-
export const getDebugLlmCallContract = defineApiContract({
|
|
43
|
+
export const getDebugLlmCallContract = withMinScope('read', defineApiContract({
|
|
44
44
|
method: 'get',
|
|
45
45
|
requestPathParamsSchema: callIdParams,
|
|
46
46
|
pathResolver: ({ callId }) => `/api/v1/debug/llm-calls/${callId}`,
|
|
47
47
|
requestQuerySchema: getDebugLlmCallQuerySchema,
|
|
48
48
|
responsesByStatusCode: { 200: debugLlmCallSchema, ...errorResponses },
|
|
49
|
-
});
|
|
49
|
+
}));
|
|
50
50
|
/** The run's captured agent-context dispatches, sizes only, keyset-paginated. */
|
|
51
|
-
export const listDebugAgentContextContract = defineApiContract({
|
|
51
|
+
export const listDebugAgentContextContract = withMinScope('read', defineApiContract({
|
|
52
52
|
method: 'get',
|
|
53
53
|
requestPathParamsSchema: runIdParams,
|
|
54
54
|
pathResolver: ({ runId }) => `/api/v1/debug/runs/${runId}/agent-context`,
|
|
55
55
|
requestQuerySchema: listDebugAgentContextQuerySchema,
|
|
56
56
|
responsesByStatusCode: { 200: debugAgentContextListSchema, ...errorResponses },
|
|
57
|
-
});
|
|
57
|
+
}));
|
|
58
58
|
/** One captured dispatch's full (budgeted) prompts, folded fragments and injected files. */
|
|
59
|
-
export const getDebugAgentContextContract = defineApiContract({
|
|
59
|
+
export const getDebugAgentContextContract = withMinScope('read', defineApiContract({
|
|
60
60
|
method: 'get',
|
|
61
61
|
requestPathParamsSchema: snapshotIdParams,
|
|
62
62
|
pathResolver: ({ snapshotId }) => `/api/v1/debug/agent-context/${snapshotId}`,
|
|
63
63
|
requestQuerySchema: getDebugAgentContextQuerySchema,
|
|
64
64
|
responsesByStatusCode: { 200: debugAgentContextDetailSchema, ...errorResponses },
|
|
65
|
-
});
|
|
65
|
+
}));
|
|
66
66
|
/** The web searches the run's agents performed, keyset-paginated. */
|
|
67
|
-
export const listDebugSearchQueriesContract = defineApiContract({
|
|
67
|
+
export const listDebugSearchQueriesContract = withMinScope('read', defineApiContract({
|
|
68
68
|
method: 'get',
|
|
69
69
|
requestPathParamsSchema: runIdParams,
|
|
70
70
|
pathResolver: ({ runId }) => `/api/v1/debug/runs/${runId}/search-queries`,
|
|
71
71
|
requestQuerySchema: listDebugPageQuerySchema,
|
|
72
72
|
responsesByStatusCode: { 200: debugSearchQueryListSchema, ...errorResponses },
|
|
73
|
-
});
|
|
73
|
+
}));
|
|
74
74
|
/** The tool calls the run's agents made, in trajectory order, keyset-paginated. */
|
|
75
|
-
export const listDebugToolCallsContract = defineApiContract({
|
|
75
|
+
export const listDebugToolCallsContract = withMinScope('read', defineApiContract({
|
|
76
76
|
method: 'get',
|
|
77
77
|
requestPathParamsSchema: runIdParams,
|
|
78
78
|
pathResolver: ({ runId }) => `/api/v1/debug/runs/${runId}/tool-calls`,
|
|
79
79
|
requestQuerySchema: listDebugToolCallsQuerySchema,
|
|
80
80
|
responsesByStatusCode: { 200: debugToolCallListSchema, ...errorResponses },
|
|
81
|
-
});
|
|
81
|
+
}));
|
|
82
82
|
/** The run's provisioning event log — how its infrastructure came up, or why it didn't. */
|
|
83
|
-
export const listDebugLogsContract = defineApiContract({
|
|
83
|
+
export const listDebugLogsContract = withMinScope('read', defineApiContract({
|
|
84
84
|
method: 'get',
|
|
85
85
|
requestPathParamsSchema: runIdParams,
|
|
86
86
|
pathResolver: ({ runId }) => `/api/v1/debug/runs/${runId}/logs`,
|
|
87
87
|
requestQuerySchema: listDebugPageQuerySchema,
|
|
88
88
|
responsesByStatusCode: { 200: debugLogListSchema, ...errorResponses },
|
|
89
|
-
});
|
|
89
|
+
}));
|
|
90
90
|
//# sourceMappingURL=debug-api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug-api.js","sourceRoot":"","sources":["../../src/routes/debug-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,EACL,6BAA6B,EAC7B,2BAA2B,EAC3B,sBAAsB,EACtB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,0BAA0B,EAC1B,uBAAuB,EACvB,+BAA+B,EAC/B,0BAA0B,EAC1B,gCAAgC,EAChC,4BAA4B,EAC5B,wBAAwB,EACxB,6BAA6B,EAC7B,wBAAwB,GACzB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"debug-api.js","sourceRoot":"","sources":["../../src/routes/debug-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,EACL,6BAA6B,EAC7B,2BAA2B,EAC3B,sBAAsB,EACtB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,0BAA0B,EAC1B,uBAAuB,EACvB,+BAA+B,EAC/B,0BAA0B,EAC1B,gCAAgC,EAChC,4BAA4B,EAC5B,wB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;CACjF,CAAC,CACH,CAAA;AAED,qEAAqE;AACrE,MAAM,CAAC,MAAM,8BAA8B,GAAG,YAAY,CACxD,MAAM,EACN,iBAAiB,CAAC;IAChB,MAAM,EAAE,KAAK;IACb,uBAAuB,EAAE,WAAW;IACpC,YAAY,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,sBAAsB,KAAK,iBAAiB;IACzE,kBAAkB,EAAE,wBAAwB;IAC5C,qBAAqB,EAAE,EAAE,GAAG,EAAE,0BAA0B,EAAE,GAAG,cAAc,EAAE;CAC9E,CAAC,CACH,CAAA;AAED,mFAAmF;AACnF,MAAM,CAAC,MAAM,0BAA0B,GAAG,YAAY,CACpD,MAAM,EACN,iBAAiB,CAAC;IAChB,MAAM,EAAE,KAAK;IACb,uBAAuB,EAAE,WAAW;IACpC,YAAY,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,sBAAsB,KAAK,aAAa;IACrE,kBAAkB,EAAE,6BAA6B;IACjD,qBAAqB,EAAE,EAAE,GAAG,EAAE,uBAAuB,EAAE,GAAG,cAAc,EAAE;CAC3E,CAAC,CACH,CAAA;AAED,2FAA2F;AAC3F,MAAM,CAAC,MAAM,qBAAqB,GAAG,YAAY,CAC/C,MAAM,EACN,iBAAiB,CAAC;IAChB,MAAM,EAAE,KAAK;IACb,uBAAuB,EAAE,WAAW;IACpC,YAAY,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,sBAAsB,KAAK,OAAO;IAC/D,kBAAkB,EAAE,wBAAwB;IAC5C,qBAAqB,EAAE,EAAE,GAAG,EAAE,kBAAkB,EAAE,GAAG,cAAc,EAAE;CACtE,CAAC,CACH,CAAA"}
|
|
@@ -157,6 +157,8 @@ export declare const getPublicNotificationWebhookContract: {
|
|
|
157
157
|
}, undefined>, undefined>;
|
|
158
158
|
}, undefined>;
|
|
159
159
|
};
|
|
160
|
+
} & {
|
|
161
|
+
readonly minScope: "admin";
|
|
160
162
|
};
|
|
161
163
|
/**
|
|
162
164
|
* Register or update the endpoint. Returns the stored projection directly (not the `webhook`
|
|
@@ -211,6 +213,8 @@ export declare const putPublicNotificationWebhookContract: {
|
|
|
211
213
|
readonly updatedAt: v.NumberSchema<undefined>;
|
|
212
214
|
}, undefined>;
|
|
213
215
|
};
|
|
216
|
+
} & {
|
|
217
|
+
readonly minScope: "admin";
|
|
214
218
|
};
|
|
215
219
|
/** Remove the endpoint (deliveries stop). Idempotent: 204 whether or not one was registered. */
|
|
216
220
|
export declare const deletePublicNotificationWebhookContract: {
|
|
@@ -241,5 +245,7 @@ export declare const deletePublicNotificationWebhookContract: {
|
|
|
241
245
|
}, undefined>;
|
|
242
246
|
readonly 204: typeof ContractNoBody;
|
|
243
247
|
};
|
|
248
|
+
} & {
|
|
249
|
+
readonly minScope: "admin";
|
|
244
250
|
};
|
|
245
251
|
//# sourceMappingURL=notification-webhooks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification-webhooks.d.ts","sourceRoot":"","sources":["../../src/routes/notification-webhooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AA0B5B,8FAA8F;AAC9F,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOzC,CAAA;AAEF,yFAAyF;AACzF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKzC,CAAA;AAEF,wDAAwD;AACxD,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI5C,CAAA;AAIF;;;;GAIG;AACH,eAAO,MAAM,oCAAoC
|
|
1
|
+
{"version":3,"file":"notification-webhooks.d.ts","sourceRoot":"","sources":["../../src/routes/notification-webhooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AA0B5B,8FAA8F;AAC9F,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOzC,CAAA;AAEF,yFAAyF;AACzF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKzC,CAAA;AAEF,wDAAwD;AACxD,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI5C,CAAA;AAIF;;;;GAIG;AACH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOhD,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQhD,CAAA;AAED,gGAAgG;AAChG,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOnD,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ContractNoBody, defineApiContract } from '@toad-contracts/valibot';
|
|
2
2
|
import * as v from 'valibot';
|
|
3
3
|
import { notificationWebhookSchema, publicNotificationWebhookSchema, putNotificationWebhookSchema, } from '../notification-webhooks.js';
|
|
4
|
-
import { errorResponses } from './_shared.js';
|
|
4
|
+
import { errorResponses, withMinScope } from './_shared.js';
|
|
5
5
|
// Management routes for a workspace's OUTBOUND notification webhook, on TWO surfaces:
|
|
6
6
|
//
|
|
7
7
|
// 1. Session-authed, mounted under `/workspaces/:workspaceId` (so paths are relative), like the
|
|
@@ -47,11 +47,11 @@ export const deleteNotificationWebhookContract = defineApiContract({
|
|
|
47
47
|
* answer rather than a 404, so a caller's startup self-check ("am I already wired up?") reads one
|
|
48
48
|
* response shape instead of branching on a status the surface also uses for a bad path.
|
|
49
49
|
*/
|
|
50
|
-
export const getPublicNotificationWebhookContract = defineApiContract({
|
|
50
|
+
export const getPublicNotificationWebhookContract = withMinScope('admin', defineApiContract({
|
|
51
51
|
method: 'get',
|
|
52
52
|
pathResolver: () => '/api/v1/notification-webhook',
|
|
53
53
|
responsesByStatusCode: { 200: publicNotificationWebhookSchema, ...errorResponses },
|
|
54
|
-
});
|
|
54
|
+
}));
|
|
55
55
|
/**
|
|
56
56
|
* Register or update the endpoint. Returns the stored projection directly (not the `webhook`
|
|
57
57
|
* wrapper the read uses): a successful write always has an endpoint to describe, so wrapping it
|
|
@@ -61,16 +61,16 @@ export const getPublicNotificationWebhookContract = defineApiContract({
|
|
|
61
61
|
* never returned by the read. An `admin` key can therefore ROTATE the signing secret but can
|
|
62
62
|
* never exfiltrate the one already stored.
|
|
63
63
|
*/
|
|
64
|
-
export const putPublicNotificationWebhookContract = defineApiContract({
|
|
64
|
+
export const putPublicNotificationWebhookContract = withMinScope('admin', defineApiContract({
|
|
65
65
|
method: 'put',
|
|
66
66
|
pathResolver: () => '/api/v1/notification-webhook',
|
|
67
67
|
requestBodySchema: putNotificationWebhookSchema,
|
|
68
68
|
responsesByStatusCode: { 200: notificationWebhookSchema, ...errorResponses },
|
|
69
|
-
});
|
|
69
|
+
}));
|
|
70
70
|
/** Remove the endpoint (deliveries stop). Idempotent: 204 whether or not one was registered. */
|
|
71
|
-
export const deletePublicNotificationWebhookContract = defineApiContract({
|
|
71
|
+
export const deletePublicNotificationWebhookContract = withMinScope('admin', defineApiContract({
|
|
72
72
|
method: 'delete',
|
|
73
73
|
pathResolver: () => '/api/v1/notification-webhook',
|
|
74
74
|
responsesByStatusCode: { 204: ContractNoBody, ...errorResponses },
|
|
75
|
-
});
|
|
75
|
+
}));
|
|
76
76
|
//# sourceMappingURL=notification-webhooks.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification-webhooks.js","sourceRoot":"","sources":["../../src/routes/notification-webhooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc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
+
} & {
|
|
172
|
+
readonly minScope: "write";
|
|
171
173
|
};
|
|
172
174
|
/**
|
|
173
175
|
* List the workspace's headless jobs (newest first, keyset-paginated). Scoped to the
|
|
@@ -224,6 +226,8 @@ export declare const listPublicJobsContract: {
|
|
|
224
226
|
readonly nextCursor: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
225
227
|
}, undefined>;
|
|
226
228
|
};
|
|
229
|
+
} & {
|
|
230
|
+
readonly minScope: "read";
|
|
227
231
|
};
|
|
228
232
|
export declare const getPublicJobContract: {
|
|
229
233
|
readonly method: "get";
|
|
@@ -271,6 +275,8 @@ export declare const getPublicJobContract: {
|
|
|
271
275
|
}, undefined>, undefined>;
|
|
272
276
|
}, undefined>;
|
|
273
277
|
};
|
|
278
|
+
} & {
|
|
279
|
+
readonly minScope: "read";
|
|
274
280
|
};
|
|
275
281
|
/**
|
|
276
282
|
* Cancel a headless job run. The escape hatch that makes admitting a PARKING pipeline
|
|
@@ -327,6 +333,8 @@ export declare const cancelPublicJobContract: {
|
|
|
327
333
|
}, undefined>, undefined>;
|
|
328
334
|
}, undefined>;
|
|
329
335
|
};
|
|
336
|
+
} & {
|
|
337
|
+
readonly minScope: "write";
|
|
330
338
|
};
|
|
331
339
|
/** List the workspace's services (board service frames). */
|
|
332
340
|
export declare const listPublicServicesContract: {
|
|
@@ -365,6 +373,8 @@ export declare const listPublicServicesContract: {
|
|
|
365
373
|
}, undefined>, undefined>;
|
|
366
374
|
}, undefined>;
|
|
367
375
|
};
|
|
376
|
+
} & {
|
|
377
|
+
readonly minScope: "read";
|
|
368
378
|
};
|
|
369
379
|
/** Create a task under a service. */
|
|
370
380
|
export declare const createPublicTaskContract: {
|
|
@@ -437,6 +447,8 @@ export declare const createPublicTaskContract: {
|
|
|
437
447
|
readonly pullRequestUrl: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
438
448
|
}, undefined>;
|
|
439
449
|
};
|
|
450
|
+
} & {
|
|
451
|
+
readonly minScope: "write";
|
|
440
452
|
};
|
|
441
453
|
/**
|
|
442
454
|
* List a service's tasks (the whole subtree — tasks under the frame and its modules), bounded
|
|
@@ -494,6 +506,8 @@ export declare const listPublicServiceTasksContract: {
|
|
|
494
506
|
readonly nextCursor: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
495
507
|
}, undefined>;
|
|
496
508
|
};
|
|
509
|
+
} & {
|
|
510
|
+
readonly minScope: "read";
|
|
497
511
|
};
|
|
498
512
|
/** Get a task's status. */
|
|
499
513
|
export declare const getPublicTaskContract: {
|
|
@@ -539,6 +553,8 @@ export declare const getPublicTaskContract: {
|
|
|
539
553
|
readonly pullRequestUrl: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
540
554
|
}, undefined>;
|
|
541
555
|
};
|
|
556
|
+
} & {
|
|
557
|
+
readonly minScope: "read";
|
|
542
558
|
};
|
|
543
559
|
/** Start (run) a task. */
|
|
544
560
|
export declare const startPublicTaskContract: {
|
|
@@ -587,8 +603,10 @@ export declare const startPublicTaskContract: {
|
|
|
587
603
|
readonly pullRequestUrl: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
588
604
|
}, undefined>;
|
|
589
605
|
};
|
|
606
|
+
} & {
|
|
607
|
+
readonly minScope: "write";
|
|
590
608
|
};
|
|
591
|
-
/** Edit a task's title
|
|
609
|
+
/** Edit a task's authored inputs: title, description and its per-type `fields` bag (pre-start edits). */
|
|
592
610
|
export declare const updatePublicTaskContract: {
|
|
593
611
|
readonly method: "patch";
|
|
594
612
|
readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
|
|
@@ -600,6 +618,7 @@ export declare const updatePublicTaskContract: {
|
|
|
600
618
|
readonly requestBodySchema: import("valibot").ObjectSchema<{
|
|
601
619
|
readonly title: 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>;
|
|
602
620
|
readonly description: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
621
|
+
readonly fields: import("valibot").OptionalSchema<import("valibot").RecordSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 80, undefined>]>, import("valibot").UnionSchema<[import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 2000, undefined>]>, import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 2000, undefined>]>, undefined>, import("valibot").MaxLengthAction<string[], 50, undefined>]>, import("valibot").BooleanSchema<undefined>, import("valibot").NumberSchema<undefined>], undefined>, undefined>, undefined>;
|
|
603
622
|
}, undefined>;
|
|
604
623
|
readonly responsesByStatusCode: {
|
|
605
624
|
readonly '4xx': import("valibot").ObjectSchema<{
|
|
@@ -636,6 +655,8 @@ export declare const updatePublicTaskContract: {
|
|
|
636
655
|
readonly pullRequestUrl: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
637
656
|
}, undefined>;
|
|
638
657
|
};
|
|
658
|
+
} & {
|
|
659
|
+
readonly minScope: "write";
|
|
639
660
|
};
|
|
640
661
|
/** Stop a task's in-flight run (records a `cancelled` terminal state, leaving it retryable). */
|
|
641
662
|
export declare const stopPublicTaskContract: {
|
|
@@ -682,6 +703,8 @@ export declare const stopPublicTaskContract: {
|
|
|
682
703
|
readonly pullRequestUrl: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
683
704
|
}, undefined>;
|
|
684
705
|
};
|
|
706
|
+
} & {
|
|
707
|
+
readonly minScope: "write";
|
|
685
708
|
};
|
|
686
709
|
/** Retry a task's failed run. */
|
|
687
710
|
export declare const retryPublicTaskContract: {
|
|
@@ -728,6 +751,8 @@ export declare const retryPublicTaskContract: {
|
|
|
728
751
|
readonly pullRequestUrl: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
729
752
|
}, undefined>;
|
|
730
753
|
};
|
|
754
|
+
} & {
|
|
755
|
+
readonly minScope: "write";
|
|
731
756
|
};
|
|
732
757
|
/** Read a task's rich run projection (per-step status, subtasks, failure, PR branch). */
|
|
733
758
|
export declare const getPublicRunContract: {
|
|
@@ -787,6 +812,8 @@ export declare const getPublicRunContract: {
|
|
|
787
812
|
}, undefined>, undefined>;
|
|
788
813
|
}, undefined>;
|
|
789
814
|
};
|
|
815
|
+
} & {
|
|
816
|
+
readonly minScope: "read";
|
|
790
817
|
};
|
|
791
818
|
/** Delete a task (and its run history). Destructive — requires an `admin`-scoped key. */
|
|
792
819
|
export declare const deletePublicTaskContract: {
|
|
@@ -822,6 +849,8 @@ export declare const deletePublicTaskContract: {
|
|
|
822
849
|
}, undefined>;
|
|
823
850
|
readonly 204: typeof ContractNoBody;
|
|
824
851
|
};
|
|
852
|
+
} & {
|
|
853
|
+
readonly minScope: "admin";
|
|
825
854
|
};
|
|
826
855
|
/**
|
|
827
856
|
* List the task types this key's workspace may create, with the form each accepts. The discovery
|
|
@@ -888,6 +917,8 @@ export declare const listPublicTaskTypesContract: {
|
|
|
888
917
|
}, undefined>, undefined>;
|
|
889
918
|
}, undefined>;
|
|
890
919
|
};
|
|
920
|
+
} & {
|
|
921
|
+
readonly minScope: "read";
|
|
891
922
|
};
|
|
892
923
|
/** List the workspace's pipelines (id/name/steps + a headless-startable flag). */
|
|
893
924
|
export declare const listPublicPipelinesContract: {
|
|
@@ -926,6 +957,8 @@ export declare const listPublicPipelinesContract: {
|
|
|
926
957
|
}, undefined>, undefined>;
|
|
927
958
|
}, undefined>;
|
|
928
959
|
};
|
|
960
|
+
} & {
|
|
961
|
+
readonly minScope: "read";
|
|
929
962
|
};
|
|
930
963
|
/** List the workspace's OPEN notifications (the inbox). */
|
|
931
964
|
export declare const listPublicNotificationsContract: {
|
|
@@ -1027,6 +1060,8 @@ export declare const listPublicNotificationsContract: {
|
|
|
1027
1060
|
}, undefined>, undefined>;
|
|
1028
1061
|
}, undefined>;
|
|
1029
1062
|
};
|
|
1063
|
+
} & {
|
|
1064
|
+
readonly minScope: "read";
|
|
1030
1065
|
};
|
|
1031
1066
|
/** Act on a notification (run its typed side-effect, then resolve it). Requires an `admin` key. */
|
|
1032
1067
|
export declare const actPublicNotificationContract: {
|
|
@@ -1132,6 +1167,8 @@ export declare const actPublicNotificationContract: {
|
|
|
1132
1167
|
readonly resolvedAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
1133
1168
|
}, undefined>;
|
|
1134
1169
|
};
|
|
1170
|
+
} & {
|
|
1171
|
+
readonly minScope: "admin";
|
|
1135
1172
|
};
|
|
1136
1173
|
/** Dismiss a notification without acting on it. */
|
|
1137
1174
|
export declare const dismissPublicNotificationContract: {
|
|
@@ -1237,6 +1274,8 @@ export declare const dismissPublicNotificationContract: {
|
|
|
1237
1274
|
readonly resolvedAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
1238
1275
|
}, undefined>;
|
|
1239
1276
|
};
|
|
1277
|
+
} & {
|
|
1278
|
+
readonly minScope: "write";
|
|
1240
1279
|
};
|
|
1241
1280
|
/**
|
|
1242
1281
|
* What the calling key is and what it may do.
|
|
@@ -1285,6 +1324,8 @@ export declare const getPublicIdentityContract: {
|
|
|
1285
1324
|
readonly createdAt: import("valibot").NumberSchema<undefined>;
|
|
1286
1325
|
}, undefined>;
|
|
1287
1326
|
};
|
|
1327
|
+
} & {
|
|
1328
|
+
readonly minScope: "read";
|
|
1288
1329
|
};
|
|
1289
1330
|
/**
|
|
1290
1331
|
* The workspace's usage for the current billing period: the metered budget position plus the
|
|
@@ -1339,6 +1380,8 @@ export declare const getPublicUsageContract: {
|
|
|
1339
1380
|
}, undefined>, undefined>;
|
|
1340
1381
|
}, undefined>;
|
|
1341
1382
|
};
|
|
1383
|
+
} & {
|
|
1384
|
+
readonly minScope: "read";
|
|
1342
1385
|
};
|
|
1343
1386
|
/** List the workspace's live keys: metadata only; a secret is never readable back. */
|
|
1344
1387
|
export declare const listPublicKeysContract: {
|
|
@@ -1382,6 +1425,8 @@ export declare const listPublicKeysContract: {
|
|
|
1382
1425
|
}, undefined>, undefined>;
|
|
1383
1426
|
}, undefined>;
|
|
1384
1427
|
};
|
|
1428
|
+
} & {
|
|
1429
|
+
readonly minScope: "admin";
|
|
1385
1430
|
};
|
|
1386
1431
|
/**
|
|
1387
1432
|
* Mint a key for the calling key's own workspace, returning the raw secret exactly once.
|
|
@@ -1433,6 +1478,8 @@ export declare const createPublicKeyContract: {
|
|
|
1433
1478
|
readonly secret: import("valibot").StringSchema<undefined>;
|
|
1434
1479
|
}, undefined>;
|
|
1435
1480
|
};
|
|
1481
|
+
} & {
|
|
1482
|
+
readonly minScope: "admin";
|
|
1436
1483
|
};
|
|
1437
1484
|
/**
|
|
1438
1485
|
* Revoke a key, and with it every key that key minted. Idempotent.
|
|
@@ -1477,5 +1524,7 @@ export declare const revokePublicKeyContract: {
|
|
|
1477
1524
|
}, undefined>;
|
|
1478
1525
|
readonly 204: typeof ContractNoBody;
|
|
1479
1526
|
};
|
|
1527
|
+
} & {
|
|
1528
|
+
readonly minScope: "admin";
|
|
1480
1529
|
};
|
|
1481
1530
|
//# sourceMappingURL=public-api.d.ts.map
|
|
@@ -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":[],"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