@cat-factory/contracts 0.142.0 → 0.144.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.
@@ -1,4 +1,20 @@
1
1
  import * as v from 'valibot';
2
+ /**
3
+ * The permission a key carries on the `/api/v1` surface. An ordered ladder — each level
4
+ * INCLUDES the ones below it (`admin` ⊃ `write` ⊃ `read`), so an endpoint gates on a MINIMUM:
5
+ *
6
+ * - `read` — read-only reads/streams (list services/tasks/pipelines, poll a run, SSE).
7
+ * - `write` — everything `read` can do, PLUS non-destructive mutations (create/start/stop/
8
+ * retry/edit a task, start an initiative run).
9
+ * - `admin` — everything `write` can do, PLUS destructive / merge-adjacent operations
10
+ * (delete a task; future: resolve a merge-review notification, which performs a real merge).
11
+ *
12
+ * The canonical rank order lives beside this schema (`PUBLIC_API_SCOPES`) so both the wire
13
+ * validation and the server-side `scope ≥ required` check read from one source of truth.
14
+ */
15
+ export declare const PUBLIC_API_SCOPES: readonly ['read', 'write', 'admin'];
16
+ export declare const publicApiScopeSchema: v.PicklistSchema<readonly ["read", "write", "admin"], undefined>;
17
+ export type PublicApiScope = v.InferOutput<typeof publicApiScopeSchema>;
2
18
  /** One public-API key as exposed to clients — metadata only, never the secret. */
3
19
  export declare const publicApiKeySchema: v.ObjectSchema<{
4
20
  /** `pak_*` — also the non-secret lookup id embedded in the raw key. */
@@ -6,6 +22,8 @@ export declare const publicApiKeySchema: v.ObjectSchema<{
6
22
  readonly accountId: v.StringSchema<undefined>;
7
23
  readonly workspaceId: v.StringSchema<undefined>;
8
24
  readonly label: v.StringSchema<undefined>;
25
+ /** What the key is allowed to do on `/api/v1` (read ⊂ write ⊂ admin). */
26
+ readonly scope: v.PicklistSchema<readonly ["read", "write", "admin"], undefined>;
9
27
  readonly createdAt: v.NumberSchema<undefined>;
10
28
  readonly lastUsedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
11
29
  /** Set when the key was revoked (tombstone); a revoked key never authenticates. */
@@ -19,6 +37,8 @@ export declare const publicApiKeyListResultSchema: v.ObjectSchema<{
19
37
  readonly accountId: v.StringSchema<undefined>;
20
38
  readonly workspaceId: v.StringSchema<undefined>;
21
39
  readonly label: v.StringSchema<undefined>;
40
+ /** What the key is allowed to do on `/api/v1` (read ⊂ write ⊂ admin). */
41
+ readonly scope: v.PicklistSchema<readonly ["read", "write", "admin"], undefined>;
22
42
  readonly createdAt: v.NumberSchema<undefined>;
23
43
  readonly lastUsedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
24
44
  /** Set when the key was revoked (tombstone); a revoked key never authenticates. */
@@ -26,9 +46,15 @@ export declare const publicApiKeyListResultSchema: v.ObjectSchema<{
26
46
  }, undefined>, undefined>;
27
47
  }, undefined>;
28
48
  export type PublicApiKeyListResult = v.InferOutput<typeof publicApiKeyListResultSchema>;
29
- /** Mint a new key. Only a label is supplied; the scope comes from the mounting workspace. */
49
+ /**
50
+ * Mint a new key. A label plus an optional `scope` (the account/workspace scope comes from the
51
+ * mounting route). `scope` defaults to `write` — the safe middle of the ladder: a fresh key can
52
+ * create/start/manage tasks but NOT delete or perform a merge-adjacent action until it is minted
53
+ * `admin` explicitly. Pass `read` for a monitor-only integration.
54
+ */
30
55
  export declare const createPublicApiKeySchema: v.ObjectSchema<{
31
56
  readonly label: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>;
57
+ readonly scope: v.OptionalSchema<v.PicklistSchema<readonly ["read", "write", "admin"], undefined>, "write">;
32
58
  }, undefined>;
33
59
  export type CreatePublicApiKeyInput = v.InferOutput<typeof createPublicApiKeySchema>;
34
60
  /**
@@ -42,6 +68,8 @@ export declare const createdPublicApiKeySchema: v.ObjectSchema<{
42
68
  readonly accountId: v.StringSchema<undefined>;
43
69
  readonly workspaceId: v.StringSchema<undefined>;
44
70
  readonly label: v.StringSchema<undefined>;
71
+ /** What the key is allowed to do on `/api/v1` (read ⊂ write ⊂ admin). */
72
+ readonly scope: v.PicklistSchema<readonly ["read", "write", "admin"], undefined>;
45
73
  readonly createdAt: v.NumberSchema<undefined>;
46
74
  readonly lastUsedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
47
75
  /** Set when the key was revoked (tombstone); a revoked key never authenticates. */
@@ -1 +1 @@
1
- {"version":3,"file":"public-api-keys.d.ts","sourceRoot":"","sources":["../src/public-api-keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAiB5B,kFAAkF;AAClF,eAAO,MAAM,kBAAkB;IAC7B,uEAAuE;;;;;;;IAOvE,mFAAmF;;aAEnF,CAAA;AACF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAEnE,eAAO,MAAM,4BAA4B;;QAZvC,uEAAuE;;;;;;;QAOvE,mFAAmF;;;aAKM,CAAA;AAC3F,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,4BAA4B,CAAC,CAAA;AAEvF,6FAA6F;AAC7F,eAAO,MAAM,wBAAwB;;aAEnC,CAAA;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAEpF;;;GAGG;AACH,eAAO,MAAM,yBAAyB;;QAzBpC,uEAAuE;;;;;;;QAOvE,mFAAmF;;;IAoBnF,sEAAsE;;aAEtE,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,yBAAyB,CAAC,CAAA"}
1
+ {"version":3,"file":"public-api-keys.d.ts","sourceRoot":"","sources":["../src/public-api-keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAiB5B;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,iBAAiB,YAAI,MAAM,EAAE,OAAO,EAAE,OAAO,CAAU,CAAA;AACpE,eAAO,MAAM,oBAAoB,kEAAgC,CAAA;AACjE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEvE,kFAAkF;AAClF,eAAO,MAAM,kBAAkB;IAC7B,uEAAuE;;;;;IAKvE,yEAAyE;;;;IAIzE,mFAAmF;;aAEnF,CAAA;AACF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAEnE,eAAO,MAAM,4BAA4B;;QAdvC,uEAAuE;;;;;QAKvE,yEAAyE;;;;QAIzE,mFAAmF;;;aAKM,CAAA;AAC3F,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,4BAA4B,CAAC,CAAA;AAEvF;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB;;;aAGnC,CAAA;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAEpF;;;GAGG;AACH,eAAO,MAAM,yBAAyB;;QAjCpC,uEAAuE;;;;;QAKvE,yEAAyE;;;;QAIzE,mFAAmF;;;IA0BnF,sEAAsE;;aAEtE,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,yBAAyB,CAAC,CAAA"}
@@ -13,6 +13,21 @@ import * as v from 'valibot';
13
13
  // A key is scoped to one account + workspace: every `/api/v1` call it makes is
14
14
  // bound to that workspace.
15
15
  // ---------------------------------------------------------------------------
16
+ /**
17
+ * The permission a key carries on the `/api/v1` surface. An ordered ladder — each level
18
+ * INCLUDES the ones below it (`admin` ⊃ `write` ⊃ `read`), so an endpoint gates on a MINIMUM:
19
+ *
20
+ * - `read` — read-only reads/streams (list services/tasks/pipelines, poll a run, SSE).
21
+ * - `write` — everything `read` can do, PLUS non-destructive mutations (create/start/stop/
22
+ * retry/edit a task, start an initiative run).
23
+ * - `admin` — everything `write` can do, PLUS destructive / merge-adjacent operations
24
+ * (delete a task; future: resolve a merge-review notification, which performs a real merge).
25
+ *
26
+ * The canonical rank order lives beside this schema (`PUBLIC_API_SCOPES`) so both the wire
27
+ * validation and the server-side `scope ≥ required` check read from one source of truth.
28
+ */
29
+ export const PUBLIC_API_SCOPES = ['read', 'write', 'admin'];
30
+ export const publicApiScopeSchema = v.picklist(PUBLIC_API_SCOPES);
16
31
  /** One public-API key as exposed to clients — metadata only, never the secret. */
17
32
  export const publicApiKeySchema = v.object({
18
33
  /** `pak_*` — also the non-secret lookup id embedded in the raw key. */
@@ -20,15 +35,23 @@ export const publicApiKeySchema = v.object({
20
35
  accountId: v.string(),
21
36
  workspaceId: v.string(),
22
37
  label: v.string(),
38
+ /** What the key is allowed to do on `/api/v1` (read ⊂ write ⊂ admin). */
39
+ scope: publicApiScopeSchema,
23
40
  createdAt: v.number(),
24
41
  lastUsedAt: v.nullable(v.number()),
25
42
  /** Set when the key was revoked (tombstone); a revoked key never authenticates. */
26
43
  revokedAt: v.nullable(v.number()),
27
44
  });
28
45
  export const publicApiKeyListResultSchema = v.object({ keys: v.array(publicApiKeySchema) });
29
- /** Mint a new key. Only a label is supplied; the scope comes from the mounting workspace. */
46
+ /**
47
+ * Mint a new key. A label plus an optional `scope` (the account/workspace scope comes from the
48
+ * mounting route). `scope` defaults to `write` — the safe middle of the ladder: a fresh key can
49
+ * create/start/manage tasks but NOT delete or perform a merge-adjacent action until it is minted
50
+ * `admin` explicitly. Pass `read` for a monitor-only integration.
51
+ */
30
52
  export const createPublicApiKeySchema = v.object({
31
53
  label: v.pipe(v.string(), v.trim(), v.minLength(1), v.maxLength(120)),
54
+ scope: v.optional(publicApiScopeSchema, 'write'),
32
55
  });
33
56
  /**
34
57
  * The create response: the key metadata PLUS the raw secret (`cf_live_<id>.<secret>`),
@@ -1 +1 @@
1
- {"version":3,"file":"public-api-keys.js","sourceRoot":"","sources":["../src/public-api-keys.ts"],"names":[],"mappings":"AA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,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAA;AAG3F;;;;;GAKG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IACrE,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,oBAAoB,EAAE,OAAO,CAAC;CACjD,CAAC,CAAA;AAGF;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,GAAG,EAAE,kBAAkB;IACvB,sEAAsE;IACtE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAA"}
@@ -259,4 +259,57 @@ export declare const publicPipelineListSchema: v.ObjectSchema<{
259
259
  }, undefined>, undefined>;
260
260
  }, undefined>;
261
261
  export type PublicPipelineList = v.InferOutput<typeof publicPipelineListSchema>;
262
+ /**
263
+ * The external view of the workspace's OPEN notifications. Deliberately reuses the
264
+ * SAME `notificationSchema` the SPA inbox consumes — a notification is already a small,
265
+ * client-facing projection (no raw block / execution / credential fields), so there is
266
+ * no separate `publicNotification` shape to keep in step. The list is naturally bounded
267
+ * (only `open` cards, which humans resolve), unlike the paginated task/job reads.
268
+ */
269
+ export declare const publicNotificationListSchema: v.ObjectSchema<{
270
+ readonly notifications: v.ArraySchema<v.ObjectSchema<{
271
+ readonly id: v.StringSchema<undefined>;
272
+ 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"], undefined>;
273
+ readonly status: v.PicklistSchema<["open", "acted", "dismissed"], undefined>;
274
+ readonly severity: v.OptionalSchema<v.PicklistSchema<["normal", "urgent"], undefined>, undefined>;
275
+ readonly blockId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
276
+ readonly executionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
277
+ readonly title: v.StringSchema<undefined>;
278
+ readonly body: v.StringSchema<undefined>;
279
+ readonly payload: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
280
+ readonly assessment: v.OptionalSchema<v.ObjectSchema<{
281
+ readonly complexity: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
282
+ readonly risk: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
283
+ readonly impact: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
284
+ readonly rationale: v.StringSchema<undefined>;
285
+ }, undefined>, undefined>;
286
+ readonly prUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
287
+ readonly pipelineName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
288
+ readonly findingCount: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
289
+ readonly forkCount: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
290
+ readonly sliceCount: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
291
+ readonly onCallAssessment: v.OptionalSchema<v.ObjectSchema<{
292
+ readonly culpritConfidence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
293
+ readonly recommendation: v.PicklistSchema<["revert", "hold", "monitor"], undefined>;
294
+ readonly rationale: v.StringSchema<undefined>;
295
+ readonly evidence: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, readonly []>;
296
+ }, undefined>, undefined>;
297
+ readonly releaseSignals: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
298
+ readonly kind: v.PicklistSchema<["monitor", "slo"], undefined>;
299
+ readonly id: v.StringSchema<undefined>;
300
+ readonly name: v.StringSchema<undefined>;
301
+ readonly state: v.PicklistSchema<["ok", "warn", "alert", "no_data"], undefined>;
302
+ readonly detail: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
303
+ }, undefined>, undefined>, undefined>;
304
+ readonly revertUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
305
+ readonly targetUserId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
306
+ readonly initiativeReason: v.OptionalSchema<v.PicklistSchema<["item_blocked", "complete", "checkpoint"], undefined>, undefined>;
307
+ readonly mergedRepos: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
308
+ readonly unmergedRepos: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
309
+ }, undefined>, undefined>, undefined>;
310
+ readonly createdAt: v.NumberSchema<undefined>;
311
+ readonly resolvedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
312
+ }, undefined>, undefined>;
313
+ }, undefined>;
314
+ export type PublicNotificationList = v.InferOutput<typeof publicNotificationListSchema>;
262
315
  //# sourceMappingURL=public-api.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAmB5B,+BAA+B;AAC/B,eAAO,MAAM,yBAAyB;IACpC,wEAAwE;;IAExE,iEAAiE;;IAEjE,kFAAkF;;aAElF,CAAA;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAEtF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,iEAAiD,CAAA;AACnF,MAAM,MAAM,eAAe,GAAG,CAAC,C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M,MAAM,sBAAsB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,4BAA4B,CAAC,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import * as v from 'valibot';
2
+ import { notificationSchema } from './notifications.js';
2
3
  import { blockTypeSchema, createTaskTypeSchema, taskTypeSchema } from './primitives.js';
3
4
  // ---------------------------------------------------------------------------
4
5
  // Public-API wire contracts (the `/api/v1` surface for external systems).
@@ -196,4 +197,17 @@ export const publicPipelineSchema = v.object({
196
197
  headlessStartable: v.boolean(),
197
198
  });
198
199
  export const publicPipelineListSchema = v.object({ pipelines: v.array(publicPipelineSchema) });
200
+ // ---------------------------------------------------------------------------
201
+ // Notification inbox (the operational loop: merge / confirm / retry).
202
+ // ---------------------------------------------------------------------------
203
+ /**
204
+ * The external view of the workspace's OPEN notifications. Deliberately reuses the
205
+ * SAME `notificationSchema` the SPA inbox consumes — a notification is already a small,
206
+ * client-facing projection (no raw block / execution / credential fields), so there is
207
+ * no separate `publicNotification` shape to keep in step. The list is naturally bounded
208
+ * (only `open` cards, which humans resolve), unlike the paginated task/job reads.
209
+ */
210
+ export const publicNotificationListSchema = v.object({
211
+ notifications: v.array(notificationSchema),
212
+ });
199
213
  //# sourceMappingURL=public-api.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"public-api.js","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAEvF,8EAA8E;AAC9E,0EAA0E;AAC1E,EAAE;AACF,iFAAiF;AACjF,kFAAkF;AAClF,gFAAgF;AAChF,+EAA+E;AAC/E,uBAAuB;AACvB,EAAE;AACF,+EAA+E;AAC/E,8EAA8E;AAC9E,2EAA2E;AAC3E,mFAAmF;AACnF,qFAAqF;AACrF,8EAA8E;AAE9E,+BAA+B;AAC/B,MAAM,CAAC,MAAM,yBAAy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CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAA;AAG9F,8EAA8E;AAC9E,sEAAsE;AACtE,8EAA8E;AAE9E;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACnD,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC;CAC3C,CAAC,CAAA"}
@@ -31,6 +31,7 @@ export declare const listPublicApiKeysContract: {
31
31
  readonly accountId: import("valibot").StringSchema<undefined>;
32
32
  readonly workspaceId: import("valibot").StringSchema<undefined>;
33
33
  readonly label: import("valibot").StringSchema<undefined>;
34
+ readonly scope: import("valibot").PicklistSchema<readonly ["read", "write", "admin"], undefined>;
34
35
  readonly createdAt: import("valibot").NumberSchema<undefined>;
35
36
  readonly lastUsedAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
36
37
  readonly revokedAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
@@ -43,6 +44,7 @@ export declare const createPublicApiKeyContract: {
43
44
  readonly pathResolver: () => string;
44
45
  readonly requestBodySchema: import("valibot").ObjectSchema<{
45
46
  readonly label: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 120, undefined>]>;
47
+ readonly scope: import("valibot").OptionalSchema<import("valibot").PicklistSchema<readonly ["read", "write", "admin"], undefined>, "write">;
46
48
  }, undefined>;
47
49
  readonly responsesByStatusCode: {
48
50
  readonly '4xx': import("valibot").ObjectSchema<{
@@ -73,6 +75,7 @@ export declare const createPublicApiKeyContract: {
73
75
  readonly accountId: import("valibot").StringSchema<undefined>;
74
76
  readonly workspaceId: import("valibot").StringSchema<undefined>;
75
77
  readonly label: import("valibot").StringSchema<undefined>;
78
+ readonly scope: import("valibot").PicklistSchema<readonly ["read", "write", "admin"], undefined>;
76
79
  readonly createdAt: import("valibot").NumberSchema<undefined>;
77
80
  readonly lastUsedAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
78
81
  readonly revokedAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
@@ -631,6 +634,41 @@ export declare const getPublicRunContract: {
631
634
  }, undefined>;
632
635
  };
633
636
  };
637
+ /** Delete a task (and its run history). Destructive — requires an `admin`-scoped key. */
638
+ export declare const deletePublicTaskContract: {
639
+ readonly method: "delete";
640
+ readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
641
+ taskId: import("valibot").StringSchema<undefined>;
642
+ }, undefined> & import("@toad-contracts/core").StandardObjectKeysV1<unknown, unknown>;
643
+ readonly pathResolver: ({ taskId }: {
644
+ taskId: string;
645
+ }) => string;
646
+ readonly responsesByStatusCode: {
647
+ readonly '4xx': import("valibot").ObjectSchema<{
648
+ readonly error: import("valibot").ObjectSchema<{
649
+ readonly code: import("valibot").StringSchema<undefined>;
650
+ readonly message: import("valibot").StringSchema<undefined>;
651
+ readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
652
+ readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
653
+ readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
654
+ readonly message: import("valibot").StringSchema<undefined>;
655
+ }, undefined>, undefined>, undefined>;
656
+ }, undefined>;
657
+ }, undefined>;
658
+ readonly '5xx': import("valibot").ObjectSchema<{
659
+ readonly error: import("valibot").ObjectSchema<{
660
+ readonly code: import("valibot").StringSchema<undefined>;
661
+ readonly message: import("valibot").StringSchema<undefined>;
662
+ readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
663
+ readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
664
+ readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
665
+ readonly message: import("valibot").StringSchema<undefined>;
666
+ }, undefined>, undefined>, undefined>;
667
+ }, undefined>;
668
+ }, undefined>;
669
+ readonly 204: typeof ContractNoBody;
670
+ };
671
+ };
634
672
  /** List the workspace's pipelines (id/name/steps + a headless-startable flag). */
635
673
  export declare const listPublicPipelinesContract: {
636
674
  readonly method: "get";
@@ -669,4 +707,234 @@ export declare const listPublicPipelinesContract: {
669
707
  }, undefined>;
670
708
  };
671
709
  };
710
+ /** List the workspace's OPEN notifications (the inbox). */
711
+ export declare const listPublicNotificationsContract: {
712
+ readonly method: "get";
713
+ readonly pathResolver: () => string;
714
+ readonly responsesByStatusCode: {
715
+ readonly '4xx': import("valibot").ObjectSchema<{
716
+ readonly error: import("valibot").ObjectSchema<{
717
+ readonly code: import("valibot").StringSchema<undefined>;
718
+ readonly message: import("valibot").StringSchema<undefined>;
719
+ readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
720
+ readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
721
+ readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
722
+ readonly message: import("valibot").StringSchema<undefined>;
723
+ }, undefined>, undefined>, undefined>;
724
+ }, undefined>;
725
+ }, undefined>;
726
+ readonly '5xx': import("valibot").ObjectSchema<{
727
+ readonly error: import("valibot").ObjectSchema<{
728
+ readonly code: import("valibot").StringSchema<undefined>;
729
+ readonly message: import("valibot").StringSchema<undefined>;
730
+ readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
731
+ readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
732
+ readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
733
+ readonly message: import("valibot").StringSchema<undefined>;
734
+ }, undefined>, undefined>, undefined>;
735
+ }, undefined>;
736
+ }, undefined>;
737
+ readonly 200: import("valibot").ObjectSchema<{
738
+ readonly notifications: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
739
+ readonly id: import("valibot").StringSchema<undefined>;
740
+ 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"], undefined>;
741
+ readonly status: import("valibot").PicklistSchema<["open", "acted", "dismissed"], undefined>;
742
+ readonly severity: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["normal", "urgent"], undefined>, undefined>;
743
+ readonly blockId: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
744
+ readonly executionId: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
745
+ readonly title: import("valibot").StringSchema<undefined>;
746
+ readonly body: import("valibot").StringSchema<undefined>;
747
+ readonly payload: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
748
+ readonly assessment: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
749
+ readonly complexity: import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 1, undefined>]>;
750
+ readonly risk: import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 1, undefined>]>;
751
+ readonly impact: import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 1, undefined>]>;
752
+ readonly rationale: import("valibot").StringSchema<undefined>;
753
+ }, undefined>, undefined>;
754
+ readonly prUrl: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
755
+ readonly pipelineName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
756
+ readonly findingCount: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
757
+ readonly forkCount: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
758
+ readonly sliceCount: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
759
+ readonly onCallAssessment: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
760
+ readonly culpritConfidence: import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 1, undefined>]>;
761
+ readonly recommendation: import("valibot").PicklistSchema<["revert", "hold", "monitor"], undefined>;
762
+ readonly rationale: import("valibot").StringSchema<undefined>;
763
+ readonly evidence: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, readonly []>;
764
+ }, undefined>, undefined>;
765
+ readonly releaseSignals: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
766
+ readonly kind: import("valibot").PicklistSchema<["monitor", "slo"], undefined>;
767
+ readonly id: import("valibot").StringSchema<undefined>;
768
+ readonly name: import("valibot").StringSchema<undefined>;
769
+ readonly state: import("valibot").PicklistSchema<["ok", "warn", "alert", "no_data"], undefined>;
770
+ readonly detail: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
771
+ }, undefined>, undefined>, undefined>;
772
+ readonly revertUrl: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
773
+ readonly targetUserId: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
774
+ readonly initiativeReason: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["item_blocked", "complete", "checkpoint"], undefined>, undefined>;
775
+ readonly mergedRepos: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
776
+ readonly unmergedRepos: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
777
+ }, undefined>, undefined>, undefined>;
778
+ readonly createdAt: import("valibot").NumberSchema<undefined>;
779
+ readonly resolvedAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
780
+ }, undefined>, undefined>;
781
+ }, undefined>;
782
+ };
783
+ };
784
+ /** Act on a notification (run its typed side-effect, then resolve it). Requires an `admin` key. */
785
+ export declare const actPublicNotificationContract: {
786
+ readonly method: "post";
787
+ readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
788
+ id: import("valibot").StringSchema<undefined>;
789
+ }, undefined> & import("@toad-contracts/core").StandardObjectKeysV1<unknown, unknown>;
790
+ readonly pathResolver: ({ id }: {
791
+ id: string;
792
+ }) => string;
793
+ readonly requestBodySchema: typeof ContractNoBody;
794
+ readonly responsesByStatusCode: {
795
+ readonly '4xx': import("valibot").ObjectSchema<{
796
+ readonly error: import("valibot").ObjectSchema<{
797
+ readonly code: import("valibot").StringSchema<undefined>;
798
+ readonly message: import("valibot").StringSchema<undefined>;
799
+ readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
800
+ readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
801
+ readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
802
+ readonly message: import("valibot").StringSchema<undefined>;
803
+ }, undefined>, undefined>, undefined>;
804
+ }, undefined>;
805
+ }, undefined>;
806
+ readonly '5xx': import("valibot").ObjectSchema<{
807
+ readonly error: import("valibot").ObjectSchema<{
808
+ readonly code: import("valibot").StringSchema<undefined>;
809
+ readonly message: import("valibot").StringSchema<undefined>;
810
+ readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
811
+ readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
812
+ readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
813
+ readonly message: import("valibot").StringSchema<undefined>;
814
+ }, undefined>, undefined>, undefined>;
815
+ }, undefined>;
816
+ }, undefined>;
817
+ readonly 200: import("valibot").ObjectSchema<{
818
+ readonly id: import("valibot").StringSchema<undefined>;
819
+ 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"], undefined>;
820
+ readonly status: import("valibot").PicklistSchema<["open", "acted", "dismissed"], undefined>;
821
+ readonly severity: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["normal", "urgent"], undefined>, undefined>;
822
+ readonly blockId: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
823
+ readonly executionId: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
824
+ readonly title: import("valibot").StringSchema<undefined>;
825
+ readonly body: import("valibot").StringSchema<undefined>;
826
+ readonly payload: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
827
+ readonly assessment: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
828
+ readonly complexity: import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 1, undefined>]>;
829
+ readonly risk: import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 1, undefined>]>;
830
+ readonly impact: import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 1, undefined>]>;
831
+ readonly rationale: import("valibot").StringSchema<undefined>;
832
+ }, undefined>, undefined>;
833
+ readonly prUrl: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
834
+ readonly pipelineName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
835
+ readonly findingCount: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
836
+ readonly forkCount: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
837
+ readonly sliceCount: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
838
+ readonly onCallAssessment: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
839
+ readonly culpritConfidence: import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 1, undefined>]>;
840
+ readonly recommendation: import("valibot").PicklistSchema<["revert", "hold", "monitor"], undefined>;
841
+ readonly rationale: import("valibot").StringSchema<undefined>;
842
+ readonly evidence: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, readonly []>;
843
+ }, undefined>, undefined>;
844
+ readonly releaseSignals: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
845
+ readonly kind: import("valibot").PicklistSchema<["monitor", "slo"], undefined>;
846
+ readonly id: import("valibot").StringSchema<undefined>;
847
+ readonly name: import("valibot").StringSchema<undefined>;
848
+ readonly state: import("valibot").PicklistSchema<["ok", "warn", "alert", "no_data"], undefined>;
849
+ readonly detail: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
850
+ }, undefined>, undefined>, undefined>;
851
+ readonly revertUrl: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
852
+ readonly targetUserId: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
853
+ readonly initiativeReason: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["item_blocked", "complete", "checkpoint"], undefined>, undefined>;
854
+ readonly mergedRepos: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
855
+ readonly unmergedRepos: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
856
+ }, undefined>, undefined>, undefined>;
857
+ readonly createdAt: import("valibot").NumberSchema<undefined>;
858
+ readonly resolvedAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
859
+ }, undefined>;
860
+ };
861
+ };
862
+ /** Dismiss a notification without acting on it. */
863
+ export declare const dismissPublicNotificationContract: {
864
+ readonly method: "post";
865
+ readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
866
+ id: import("valibot").StringSchema<undefined>;
867
+ }, undefined> & import("@toad-contracts/core").StandardObjectKeysV1<unknown, unknown>;
868
+ readonly pathResolver: ({ id }: {
869
+ id: string;
870
+ }) => string;
871
+ readonly requestBodySchema: typeof ContractNoBody;
872
+ readonly responsesByStatusCode: {
873
+ readonly '4xx': import("valibot").ObjectSchema<{
874
+ readonly error: import("valibot").ObjectSchema<{
875
+ readonly code: import("valibot").StringSchema<undefined>;
876
+ readonly message: import("valibot").StringSchema<undefined>;
877
+ readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
878
+ readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
879
+ readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
880
+ readonly message: import("valibot").StringSchema<undefined>;
881
+ }, undefined>, undefined>, undefined>;
882
+ }, undefined>;
883
+ }, undefined>;
884
+ readonly '5xx': import("valibot").ObjectSchema<{
885
+ readonly error: import("valibot").ObjectSchema<{
886
+ readonly code: import("valibot").StringSchema<undefined>;
887
+ readonly message: import("valibot").StringSchema<undefined>;
888
+ readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
889
+ readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
890
+ readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
891
+ readonly message: import("valibot").StringSchema<undefined>;
892
+ }, undefined>, undefined>, undefined>;
893
+ }, undefined>;
894
+ }, undefined>;
895
+ readonly 200: import("valibot").ObjectSchema<{
896
+ readonly id: import("valibot").StringSchema<undefined>;
897
+ 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"], undefined>;
898
+ readonly status: import("valibot").PicklistSchema<["open", "acted", "dismissed"], undefined>;
899
+ readonly severity: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["normal", "urgent"], undefined>, undefined>;
900
+ readonly blockId: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
901
+ readonly executionId: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
902
+ readonly title: import("valibot").StringSchema<undefined>;
903
+ readonly body: import("valibot").StringSchema<undefined>;
904
+ readonly payload: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
905
+ readonly assessment: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
906
+ readonly complexity: import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 1, undefined>]>;
907
+ readonly risk: import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 1, undefined>]>;
908
+ readonly impact: import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 1, undefined>]>;
909
+ readonly rationale: import("valibot").StringSchema<undefined>;
910
+ }, undefined>, undefined>;
911
+ readonly prUrl: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
912
+ readonly pipelineName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
913
+ readonly findingCount: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
914
+ readonly forkCount: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
915
+ readonly sliceCount: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
916
+ readonly onCallAssessment: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
917
+ readonly culpritConfidence: import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, 0, undefined>, import("valibot").MaxValueAction<number, 1, undefined>]>;
918
+ readonly recommendation: import("valibot").PicklistSchema<["revert", "hold", "monitor"], undefined>;
919
+ readonly rationale: import("valibot").StringSchema<undefined>;
920
+ readonly evidence: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, readonly []>;
921
+ }, undefined>, undefined>;
922
+ readonly releaseSignals: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
923
+ readonly kind: import("valibot").PicklistSchema<["monitor", "slo"], undefined>;
924
+ readonly id: import("valibot").StringSchema<undefined>;
925
+ readonly name: import("valibot").StringSchema<undefined>;
926
+ readonly state: import("valibot").PicklistSchema<["ok", "warn", "alert", "no_data"], undefined>;
927
+ readonly detail: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
928
+ }, undefined>, undefined>, undefined>;
929
+ readonly revertUrl: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
930
+ readonly targetUserId: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
931
+ readonly initiativeReason: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["item_blocked", "complete", "checkpoint"], undefined>, undefined>;
932
+ readonly mergedRepos: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
933
+ readonly unmergedRepos: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
934
+ }, undefined>, undefined>, undefined>;
935
+ readonly createdAt: import("valibot").NumberSchema<undefined>;
936
+ readonly resolvedAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
937
+ }, undefined>;
938
+ };
939
+ };
672
940
  //# 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;AAuC3E,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIpC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKrC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKrC,CAAA;AAIF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKtC,CAAA;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK/B,CAAA;AAIF,4DAA4D;AAC5D,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIrC,CAAA;AAEF,qCAAqC;AACrC,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMnC,CAAA;AAEF,0FAA0F;AAC1F,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKzC,CAAA;AAEF,2BAA2B;AAC3B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKhC,CAAA;AAEF,0BAA0B;AAC1B,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMxC,CAAA;AAEF,mDAAmD;AACnD,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM5C,CAAA"}
@@ -1,6 +1,7 @@
1
1
  import { ContractNoBody, defineApiContract } from '@toad-contracts/valibot';
2
2
  import { createPublicApiKeySchema, createdPublicApiKeySchema, publicApiKeyListResultSchema, } from '../public-api-keys.js';
3
- import { createInitiativeJobSchema, createPublicTaskSchema, initiativeAcceptedSchema, publicJobSchema, publicPipelineListSchema, publicRunSchema, publicServiceListSchema, publicTaskListSchema, publicTaskSchema, startPublicTaskSchema, updatePublicTaskSchema, } from '../public-api.js';
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
5
  import { errorResponses, singleStringParam } from './_shared.js';
5
6
  // ---------------------------------------------------------------------------
6
7
  // Public-API route contracts. Two surfaces:
@@ -115,6 +116,13 @@ export const getPublicRunContract = defineApiContract({
115
116
  pathResolver: ({ taskId }) => `/api/v1/tasks/${taskId}/run`,
116
117
  responsesByStatusCode: { 200: publicRunSchema, ...errorResponses },
117
118
  });
119
+ /** Delete a task (and its run history). Destructive — requires an `admin`-scoped key. */
120
+ export const deletePublicTaskContract = defineApiContract({
121
+ method: 'delete',
122
+ requestPathParamsSchema: taskIdParams,
123
+ pathResolver: ({ taskId }) => `/api/v1/tasks/${taskId}`,
124
+ responsesByStatusCode: { 204: ContractNoBody, ...errorResponses },
125
+ });
118
126
  // ---- pipeline discovery (key-authenticated) --------------------------------
119
127
  /** List the workspace's pipelines (id/name/steps + a headless-startable flag). */
120
128
  export const listPublicPipelinesContract = defineApiContract({
@@ -122,4 +130,32 @@ export const listPublicPipelinesContract = defineApiContract({
122
130
  pathResolver: () => '/api/v1/pipelines',
123
131
  responsesByStatusCode: { 200: publicPipelineListSchema, ...errorResponses },
124
132
  });
133
+ // ---- notification inbox: merge / confirm / retry the run tails -------------
134
+ // The external counterparts of the SPA's notification-inbox operations, scoped to the
135
+ // key's workspace. They complete the task lifecycle: `act` resolves a human-gated tail
136
+ // (merge a `merge_review` / `pipeline_complete` PR, retry a `ci_failed` / `test_failed`
137
+ // run), `dismiss` waves a card off. `act` performs a real GitHub merge, so it is the
138
+ // top of the scope ladder (`admin`); `dismiss` is `write`; the list is `read`.
139
+ /** List the workspace's OPEN notifications (the inbox). */
140
+ export const listPublicNotificationsContract = defineApiContract({
141
+ method: 'get',
142
+ pathResolver: () => '/api/v1/notifications',
143
+ responsesByStatusCode: { 200: publicNotificationListSchema, ...errorResponses },
144
+ });
145
+ /** Act on a notification (run its typed side-effect, then resolve it). Requires an `admin` key. */
146
+ export const actPublicNotificationContract = defineApiContract({
147
+ method: 'post',
148
+ requestPathParamsSchema: idParams,
149
+ pathResolver: ({ id }) => `/api/v1/notifications/${id}/act`,
150
+ requestBodySchema: ContractNoBody,
151
+ responsesByStatusCode: { 200: notificationSchema, ...errorResponses },
152
+ });
153
+ /** Dismiss a notification without acting on it. */
154
+ export const dismissPublicNotificationContract = defineApiContract({
155
+ method: 'post',
156
+ requestPathParamsSchema: idParams,
157
+ pathResolver: ({ id }) => `/api/v1/notifications/${id}/dismiss`,
158
+ requestBodySchema: ContractNoBody,
159
+ responsesByStatusCode: { 200: notificationSchema, ...errorResponses },
160
+ });
125
161
  //# sourceMappingURL=public-api.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"public-api.js","sourceRoot":"","sources":["../../src/routes/public-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB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C/D,iBAAiB,EAAE,cAAc;IACjC,qBAAqB,EAAE,EAAE,GAAG,EAAE,kBAAkB,EAAE,GAAG,cAAc,EAAE;CACtE,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cat-factory/contracts",
3
- "version": "0.142.0",
3
+ "version": "0.144.0",
4
4
  "description": "Valibot wire contract shared between the Agent Architecture Board frontend and backend.",
5
5
  "repository": {
6
6
  "type": "git",