@cat-factory/contracts 0.86.0 → 0.88.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.
Files changed (70) hide show
  1. package/dist/agent-presentation.d.ts +2 -2
  2. package/dist/entities.d.ts +31 -1
  3. package/dist/entities.d.ts.map +1 -1
  4. package/dist/entities.js +30 -0
  5. package/dist/entities.js.map +1 -1
  6. package/dist/events.d.ts +11 -0
  7. package/dist/events.d.ts.map +1 -1
  8. package/dist/index.d.ts +3 -0
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.js +3 -0
  11. package/dist/index.js.map +1 -1
  12. package/dist/initiative.d.ts +408 -0
  13. package/dist/initiative.d.ts.map +1 -0
  14. package/dist/initiative.js +325 -0
  15. package/dist/initiative.js.map +1 -0
  16. package/dist/primitives.d.ts +5 -2
  17. package/dist/primitives.d.ts.map +1 -1
  18. package/dist/primitives.js +5 -2
  19. package/dist/primitives.js.map +1 -1
  20. package/dist/public-api-keys.d.ts +54 -0
  21. package/dist/public-api-keys.d.ts.map +1 -0
  22. package/dist/public-api-keys.js +42 -0
  23. package/dist/public-api-keys.js.map +1 -0
  24. package/dist/public-api.d.ts +57 -0
  25. package/dist/public-api.d.ts.map +1 -0
  26. package/dist/public-api.js +50 -0
  27. package/dist/public-api.js.map +1 -0
  28. package/dist/result-views.d.ts +1 -1
  29. package/dist/result-views.d.ts.map +1 -1
  30. package/dist/result-views.js +1 -0
  31. package/dist/result-views.js.map +1 -1
  32. package/dist/routes/agent-runs.d.ts +2 -0
  33. package/dist/routes/agent-runs.d.ts.map +1 -1
  34. package/dist/routes/board.d.ts +30 -10
  35. package/dist/routes/board.d.ts.map +1 -1
  36. package/dist/routes/execution.d.ts +14 -2
  37. package/dist/routes/execution.d.ts.map +1 -1
  38. package/dist/routes/human-review.d.ts +1 -0
  39. package/dist/routes/human-review.d.ts.map +1 -1
  40. package/dist/routes/human-test.d.ts +5 -0
  41. package/dist/routes/human-test.d.ts.map +1 -1
  42. package/dist/routes/index.d.ts +2 -0
  43. package/dist/routes/index.d.ts.map +1 -1
  44. package/dist/routes/index.js +2 -0
  45. package/dist/routes/index.js.map +1 -1
  46. package/dist/routes/initiative.d.ts +663 -0
  47. package/dist/routes/initiative.d.ts.map +1 -0
  48. package/dist/routes/initiative.js +45 -0
  49. package/dist/routes/initiative.js.map +1 -0
  50. package/dist/routes/pipelines.d.ts +6 -0
  51. package/dist/routes/pipelines.d.ts.map +1 -1
  52. package/dist/routes/public-api.d.ts +206 -0
  53. package/dist/routes/public-api.d.ts.map +1 -0
  54. package/dist/routes/public-api.js +48 -0
  55. package/dist/routes/public-api.js.map +1 -0
  56. package/dist/routes/tasks.d.ts +9 -3
  57. package/dist/routes/tasks.d.ts.map +1 -1
  58. package/dist/routes/visual-confirm.d.ts +3 -0
  59. package/dist/routes/visual-confirm.d.ts.map +1 -1
  60. package/dist/routes/workspaces.d.ts +182 -4
  61. package/dist/routes/workspaces.d.ts.map +1 -1
  62. package/dist/snapshot.d.ts +97 -2
  63. package/dist/snapshot.d.ts.map +1 -1
  64. package/dist/snapshot.js +8 -0
  65. package/dist/snapshot.js.map +1 -1
  66. package/dist/visual-pipeline.d.ts +12 -6
  67. package/dist/visual-pipeline.d.ts.map +1 -1
  68. package/dist/visual-pipeline.js +12 -6
  69. package/dist/visual-pipeline.js.map +1 -1
  70. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"initiative.d.ts","sourceRoot":"","sources":["../../src/routes/initiative.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAc5B;;;;GAIG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQnC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIlC,CAAA;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKhC,CAAA;AAEF,uFAAuF;AACvF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKvC,CAAA"}
@@ -0,0 +1,45 @@
1
+ import { defineApiContract } from '@toad-contracts/valibot';
2
+ import * as v from 'valibot';
3
+ import { blockSchema } from '../entities.js';
4
+ import { createInitiativeSchema, initiativeSchema } from '../initiative.js';
5
+ import { errorResponses, singleStringParam } from './_shared.js';
6
+ // ---------------------------------------------------------------------------
7
+ // Initiative route contracts. Mounted under `/workspaces/:workspaceId`, so the
8
+ // paths here are relative to that prefix. See InitiativeController in
9
+ // @cat-factory/server.
10
+ // ---------------------------------------------------------------------------
11
+ const initiativeIdParams = singleStringParam('initiativeId');
12
+ const blockIdParams = singleStringParam('blockId');
13
+ /**
14
+ * Create an initiative: materialises the initiative-level board block AND its
15
+ * empty entity in one call, returning both so the client patches its board and
16
+ * initiative caches without a refetch.
17
+ */
18
+ export const createInitiativeContract = defineApiContract({
19
+ method: 'post',
20
+ pathResolver: () => '/initiatives',
21
+ requestBodySchema: createInitiativeSchema,
22
+ responsesByStatusCode: {
23
+ 201: v.object({ initiative: initiativeSchema, block: blockSchema }),
24
+ ...errorResponses,
25
+ },
26
+ });
27
+ export const listInitiativesContract = defineApiContract({
28
+ method: 'get',
29
+ pathResolver: () => '/initiatives',
30
+ responsesByStatusCode: { 200: v.array(initiativeSchema), ...errorResponses },
31
+ });
32
+ export const getInitiativeContract = defineApiContract({
33
+ method: 'get',
34
+ requestPathParamsSchema: initiativeIdParams,
35
+ pathResolver: ({ initiativeId }) => `/initiatives/${initiativeId}`,
36
+ responsesByStatusCode: { 200: initiativeSchema, ...errorResponses },
37
+ });
38
+ /** Fetch the initiative anchored to a board block (the tracker window's load path). */
39
+ export const getInitiativeByBlockContract = defineApiContract({
40
+ method: 'get',
41
+ requestPathParamsSchema: blockIdParams,
42
+ pathResolver: ({ blockId }) => `/blocks/${blockId}/initiative`,
43
+ responsesByStatusCode: { 200: v.nullable(initiativeSchema), ...errorResponses },
44
+ });
45
+ //# sourceMappingURL=initiative.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"initiative.js","sourceRoot":"","sources":["../../src/routes/initiative.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAC3E,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAEhE,8EAA8E;AAC9E,+EAA+E;AAC/E,sEAAsE;AACtE,uBAAuB;AACvB,8EAA8E;AAE9E,MAAM,kBAAkB,GAAG,iBAAiB,CAAC,cAAc,CAAC,CAAA;AAC5D,MAAM,aAAa,GAAG,iBAAiB,CAAC,S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ptionalSchema<v.BooleanSchema<undefined>, undefined>;
75
75
  readonly builtin: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
76
76
  readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
77
+ readonly public: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
77
78
  }, undefined>, undefined>;
78
79
  };
79
80
  };
@@ -196,6 +197,7 @@ export declare const createPipelineContract: {
196
197
  readonly archived: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
197
198
  readonly builtin: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
198
199
  readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
200
+ readonly public: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
199
201
  }, undefined>;
200
202
  };
201
203
  };
@@ -281,6 +283,7 @@ export declare const clonePipelineContract: {
281
283
  readonly archived: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
282
284
  readonly builtin: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
283
285
  readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
286
+ readonly public: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
284
287
  }, undefined>;
285
288
  };
286
289
  };
@@ -364,6 +367,7 @@ export declare const reseedPipelineContract: {
364
367
  readonly archived: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
365
368
  readonly builtin: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
366
369
  readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
370
+ readonly public: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
367
371
  }, undefined>;
368
372
  };
369
373
  };
@@ -491,6 +495,7 @@ export declare const updatePipelineContract: {
491
495
  readonly archived: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
492
496
  readonly builtin: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
493
497
  readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
498
+ readonly public: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
494
499
  }, undefined>;
495
500
  };
496
501
  };
@@ -577,6 +582,7 @@ export declare const organizePipelineContract: {
577
582
  readonly archived: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
578
583
  readonly builtin: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
579
584
  readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
585
+ readonly public: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
580
586
  }, undefined>;
581
587
  };
582
588
  };
@@ -1 +1 @@
1
- {"version":3,"file":"pipelines.d.ts","sourceRoot":"","sources":["../../src/routes/pipelines.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAmB5B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIhC,CAAA;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKjC,CAAA;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhC,CAAA;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMjC,CAAA;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;CAMjC,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMnC,CAAA;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKjC,CAAA"}
@@ -0,0 +1,206 @@
1
+ import { ContractNoBody } from '@toad-contracts/valibot';
2
+ export declare const listPublicApiKeysContract: {
3
+ readonly method: "get";
4
+ readonly pathResolver: () => string;
5
+ readonly responsesByStatusCode: {
6
+ readonly '4xx': import("valibot").ObjectSchema<{
7
+ readonly error: import("valibot").ObjectSchema<{
8
+ readonly code: import("valibot").StringSchema<undefined>;
9
+ readonly message: import("valibot").StringSchema<undefined>;
10
+ readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
11
+ readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
12
+ readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
13
+ readonly message: import("valibot").StringSchema<undefined>;
14
+ }, undefined>, undefined>, undefined>;
15
+ }, undefined>;
16
+ }, undefined>;
17
+ readonly '5xx': import("valibot").ObjectSchema<{
18
+ readonly error: import("valibot").ObjectSchema<{
19
+ readonly code: import("valibot").StringSchema<undefined>;
20
+ readonly message: import("valibot").StringSchema<undefined>;
21
+ readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
22
+ readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
23
+ readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
24
+ readonly message: import("valibot").StringSchema<undefined>;
25
+ }, undefined>, undefined>, undefined>;
26
+ }, undefined>;
27
+ }, undefined>;
28
+ readonly 200: import("valibot").ObjectSchema<{
29
+ readonly keys: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
30
+ readonly id: import("valibot").StringSchema<undefined>;
31
+ readonly accountId: import("valibot").StringSchema<undefined>;
32
+ readonly workspaceId: import("valibot").StringSchema<undefined>;
33
+ readonly label: import("valibot").StringSchema<undefined>;
34
+ readonly createdAt: import("valibot").NumberSchema<undefined>;
35
+ readonly lastUsedAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
36
+ readonly revokedAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
37
+ }, undefined>, undefined>;
38
+ }, undefined>;
39
+ };
40
+ };
41
+ export declare const createPublicApiKeyContract: {
42
+ readonly method: "post";
43
+ readonly pathResolver: () => string;
44
+ readonly requestBodySchema: import("valibot").ObjectSchema<{
45
+ 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>]>;
46
+ }, undefined>;
47
+ readonly responsesByStatusCode: {
48
+ readonly '4xx': import("valibot").ObjectSchema<{
49
+ readonly error: import("valibot").ObjectSchema<{
50
+ readonly code: import("valibot").StringSchema<undefined>;
51
+ readonly message: import("valibot").StringSchema<undefined>;
52
+ readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
53
+ readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
54
+ readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
55
+ readonly message: import("valibot").StringSchema<undefined>;
56
+ }, undefined>, undefined>, undefined>;
57
+ }, undefined>;
58
+ }, undefined>;
59
+ readonly '5xx': import("valibot").ObjectSchema<{
60
+ readonly error: import("valibot").ObjectSchema<{
61
+ readonly code: import("valibot").StringSchema<undefined>;
62
+ readonly message: import("valibot").StringSchema<undefined>;
63
+ readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
64
+ readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
65
+ readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
66
+ readonly message: import("valibot").StringSchema<undefined>;
67
+ }, undefined>, undefined>, undefined>;
68
+ }, undefined>;
69
+ }, undefined>;
70
+ readonly 201: import("valibot").ObjectSchema<{
71
+ readonly key: import("valibot").ObjectSchema<{
72
+ readonly id: import("valibot").StringSchema<undefined>;
73
+ readonly accountId: import("valibot").StringSchema<undefined>;
74
+ readonly workspaceId: import("valibot").StringSchema<undefined>;
75
+ readonly label: import("valibot").StringSchema<undefined>;
76
+ readonly createdAt: import("valibot").NumberSchema<undefined>;
77
+ readonly lastUsedAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
78
+ readonly revokedAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
79
+ }, undefined>;
80
+ readonly secret: import("valibot").StringSchema<undefined>;
81
+ }, undefined>;
82
+ };
83
+ };
84
+ export declare const revokePublicApiKeyContract: {
85
+ readonly method: "delete";
86
+ readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
87
+ id: import("valibot").StringSchema<undefined>;
88
+ }, undefined> & import("@toad-contracts/core").StandardObjectKeysV1<unknown, unknown>;
89
+ readonly pathResolver: ({ id }: {
90
+ id: string;
91
+ }) => string;
92
+ readonly responsesByStatusCode: {
93
+ readonly '4xx': import("valibot").ObjectSchema<{
94
+ readonly error: import("valibot").ObjectSchema<{
95
+ readonly code: import("valibot").StringSchema<undefined>;
96
+ readonly message: import("valibot").StringSchema<undefined>;
97
+ readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
98
+ readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
99
+ readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
100
+ readonly message: import("valibot").StringSchema<undefined>;
101
+ }, undefined>, undefined>, undefined>;
102
+ }, undefined>;
103
+ }, undefined>;
104
+ readonly '5xx': import("valibot").ObjectSchema<{
105
+ readonly error: import("valibot").ObjectSchema<{
106
+ readonly code: import("valibot").StringSchema<undefined>;
107
+ readonly message: import("valibot").StringSchema<undefined>;
108
+ readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
109
+ readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
110
+ readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
111
+ readonly message: import("valibot").StringSchema<undefined>;
112
+ }, undefined>, undefined>, undefined>;
113
+ }, undefined>;
114
+ }, undefined>;
115
+ readonly 204: typeof ContractNoBody;
116
+ };
117
+ };
118
+ export declare const createInitiativeJobContract: {
119
+ readonly method: "post";
120
+ readonly pathResolver: () => string;
121
+ readonly requestBodySchema: import("valibot").ObjectSchema<{
122
+ readonly pipelineId: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>]>;
123
+ readonly input: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 50000, undefined>]>;
124
+ readonly title: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MaxLengthAction<string, 200, undefined>]>, undefined>;
125
+ }, undefined>;
126
+ readonly responsesByStatusCode: {
127
+ readonly '4xx': import("valibot").ObjectSchema<{
128
+ readonly error: import("valibot").ObjectSchema<{
129
+ readonly code: import("valibot").StringSchema<undefined>;
130
+ readonly message: import("valibot").StringSchema<undefined>;
131
+ readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
132
+ readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
133
+ readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
134
+ readonly message: import("valibot").StringSchema<undefined>;
135
+ }, undefined>, undefined>, undefined>;
136
+ }, undefined>;
137
+ }, undefined>;
138
+ readonly '5xx': import("valibot").ObjectSchema<{
139
+ readonly error: import("valibot").ObjectSchema<{
140
+ readonly code: import("valibot").StringSchema<undefined>;
141
+ readonly message: import("valibot").StringSchema<undefined>;
142
+ readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
143
+ readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
144
+ readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
145
+ readonly message: import("valibot").StringSchema<undefined>;
146
+ }, undefined>, undefined>, undefined>;
147
+ }, undefined>;
148
+ }, undefined>;
149
+ readonly 202: import("valibot").ObjectSchema<{
150
+ readonly jobId: import("valibot").StringSchema<undefined>;
151
+ readonly status: import("valibot").PicklistSchema<["running", "succeeded", "failed"], undefined>;
152
+ readonly links: import("valibot").ObjectSchema<{
153
+ readonly self: import("valibot").StringSchema<undefined>;
154
+ readonly events: import("valibot").StringSchema<undefined>;
155
+ }, undefined>;
156
+ }, undefined>;
157
+ };
158
+ };
159
+ export declare const getPublicJobContract: {
160
+ readonly method: "get";
161
+ readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
162
+ id: import("valibot").StringSchema<undefined>;
163
+ }, undefined> & import("@toad-contracts/core").StandardObjectKeysV1<unknown, unknown>;
164
+ readonly pathResolver: ({ id }: {
165
+ id: string;
166
+ }) => string;
167
+ readonly responsesByStatusCode: {
168
+ readonly '4xx': import("valibot").ObjectSchema<{
169
+ readonly error: import("valibot").ObjectSchema<{
170
+ readonly code: import("valibot").StringSchema<undefined>;
171
+ readonly message: import("valibot").StringSchema<undefined>;
172
+ readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
173
+ readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
174
+ readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
175
+ readonly message: import("valibot").StringSchema<undefined>;
176
+ }, undefined>, undefined>, undefined>;
177
+ }, undefined>;
178
+ }, undefined>;
179
+ readonly '5xx': 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 200: import("valibot").ObjectSchema<{
191
+ readonly jobId: import("valibot").StringSchema<undefined>;
192
+ readonly status: import("valibot").PicklistSchema<["running", "succeeded", "failed"], undefined>;
193
+ readonly pipelineId: import("valibot").StringSchema<undefined>;
194
+ readonly createdAt: import("valibot").NumberSchema<undefined>;
195
+ readonly result: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
196
+ readonly output: import("valibot").StringSchema<undefined>;
197
+ readonly data: import("valibot").NullableSchema<import("valibot").UnknownSchema, undefined>;
198
+ }, undefined>, undefined>;
199
+ readonly error: import("valibot").NullableSchema<import("valibot").ObjectSchema<{
200
+ readonly code: import("valibot").StringSchema<undefined>;
201
+ readonly message: import("valibot").StringSchema<undefined>;
202
+ }, undefined>, undefined>;
203
+ }, undefined>;
204
+ };
205
+ };
206
+ //# sourceMappingURL=public-api.d.ts.map
@@ -0,0 +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;AA6B3E,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"}
@@ -0,0 +1,48 @@
1
+ import { ContractNoBody, defineApiContract } from '@toad-contracts/valibot';
2
+ import { createPublicApiKeySchema, createdPublicApiKeySchema, publicApiKeyListResultSchema, } from '../public-api-keys.js';
3
+ import { createInitiativeJobSchema, initiativeAcceptedSchema, publicJobSchema, } from '../public-api.js';
4
+ import { errorResponses, singleStringParam } from './_shared.js';
5
+ // ---------------------------------------------------------------------------
6
+ // Public-API route contracts. Two surfaces:
7
+ //
8
+ // 1. Key management — session-authed, mounted under `/workspaces/:workspaceId`
9
+ // (so paths are relative). A workspace owner mints/lists/revokes the keys an
10
+ // external system will present. Note the path is `/public-api-keys` — the bare
11
+ // `/api-keys` is the direct-provider (outbound) key pool.
12
+ //
13
+ // 2. The external surface — `/api/v1/*`, authenticated in-controller by the
14
+ // public-API key (not the session gate), scoped to the key's workspace.
15
+ // ---------------------------------------------------------------------------
16
+ const idParams = singleStringParam('id');
17
+ // ---- key management (relative to `/workspaces/:workspaceId`) ---------------
18
+ export const listPublicApiKeysContract = defineApiContract({
19
+ method: 'get',
20
+ pathResolver: () => '/public-api-keys',
21
+ responsesByStatusCode: { 200: publicApiKeyListResultSchema, ...errorResponses },
22
+ });
23
+ export const createPublicApiKeyContract = defineApiContract({
24
+ method: 'post',
25
+ pathResolver: () => '/public-api-keys',
26
+ requestBodySchema: createPublicApiKeySchema,
27
+ responsesByStatusCode: { 201: createdPublicApiKeySchema, ...errorResponses },
28
+ });
29
+ export const revokePublicApiKeyContract = defineApiContract({
30
+ method: 'delete',
31
+ requestPathParamsSchema: idParams,
32
+ pathResolver: ({ id }) => `/public-api-keys/${id}`,
33
+ responsesByStatusCode: { 204: ContractNoBody, ...errorResponses },
34
+ });
35
+ // ---- the external `/api/v1` surface (absolute paths, key-authenticated) ----
36
+ export const createInitiativeJobContract = defineApiContract({
37
+ method: 'post',
38
+ pathResolver: () => '/api/v1/initiatives',
39
+ requestBodySchema: createInitiativeJobSchema,
40
+ responsesByStatusCode: { 202: initiativeAcceptedSchema, ...errorResponses },
41
+ });
42
+ export const getPublicJobContract = defineApiContract({
43
+ method: 'get',
44
+ requestPathParamsSchema: idParams,
45
+ pathResolver: ({ id }) => `/api/v1/jobs/${id}`,
46
+ responsesByStatusCode: { 200: publicJobSchema, ...errorResponses },
47
+ });
48
+ //# sourceMappingURL=public-api.js.map
@@ -0,0 +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,CAAA;AAC9B,OAAO,EACL,yBAAyB,EACzB,wBAAwB,EACxB,eAAe,GAChB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAEhE,8EAA8E;AAC9E,4CAA4C;AAC5C,EAAE;AACF,gFAAgF;AAChF,iFAAiF;AACjF,mFAAmF;AACnF,8DAA8D;AAC9D,EAAE;AACF,6EAA6E;AAC7E,4EAA4E;AAC5E,8EAA8E;AAE9E,MAAM,QAAQ,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAA;AAExC,+EAA+E;AAE/E,MAAM,CAAC,MAAM,yBAAyB,GAAG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,10 @@ export declare const createTaskFromIssueContract: {
558
558
  readonly progress: v.NumberSchema<undefined>;
559
559
  readonly dependsOn: v.ArraySchema<v.StringSchema<undefined>, undefined>;
560
560
  readonly executionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
561
- readonly level: v.PicklistSchema<["frame", "module", "task", "epic"], undefined>;
561
+ readonly level: v.PicklistSchema<["frame", "module", "task", "epic", "initiative"], undefined>;
562
562
  readonly parentId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
563
563
  readonly epicId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
564
+ readonly initiativeId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
564
565
  readonly autoStartDependents: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
565
566
  readonly confidence: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
566
567
  readonly estimate: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
@@ -724,6 +725,7 @@ export declare const createTaskFromIssueContract: {
724
725
  readonly responsibleProductUserId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
725
726
  readonly trackerCommentOnPrOpen: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["on", "off"], undefined>, undefined>, undefined>;
726
727
  readonly trackerResolveOnMerge: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["on", "off"], undefined>, undefined>, undefined>;
728
+ readonly internal: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
727
729
  }, undefined>;
728
730
  readonly task: v.ObjectSchema<{
729
731
  readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
@@ -805,9 +807,10 @@ export declare const spawnEpicContract: {
805
807
  readonly progress: v.NumberSchema<undefined>;
806
808
  readonly dependsOn: v.ArraySchema<v.StringSchema<undefined>, undefined>;
807
809
  readonly executionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
808
- readonly level: v.PicklistSchema<["frame", "module", "task", "epic"], undefined>;
810
+ readonly level: v.PicklistSchema<["frame", "module", "task", "epic", "initiative"], undefined>;
809
811
  readonly parentId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
810
812
  readonly epicId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
813
+ readonly initiativeId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
811
814
  readonly autoStartDependents: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
812
815
  readonly confidence: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
813
816
  readonly estimate: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
@@ -971,6 +974,7 @@ export declare const spawnEpicContract: {
971
974
  readonly responsibleProductUserId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
972
975
  readonly trackerCommentOnPrOpen: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["on", "off"], undefined>, undefined>, undefined>;
973
976
  readonly trackerResolveOnMerge: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["on", "off"], undefined>, undefined>, undefined>;
977
+ readonly internal: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
974
978
  }, undefined>;
975
979
  readonly tasks: v.ArraySchema<v.ObjectSchema<{
976
980
  readonly id: v.StringSchema<undefined>;
@@ -989,9 +993,10 @@ export declare const spawnEpicContract: {
989
993
  readonly progress: v.NumberSchema<undefined>;
990
994
  readonly dependsOn: v.ArraySchema<v.StringSchema<undefined>, undefined>;
991
995
  readonly executionId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
992
- readonly level: v.PicklistSchema<["frame", "module", "task", "epic"], undefined>;
996
+ readonly level: v.PicklistSchema<["frame", "module", "task", "epic", "initiative"], undefined>;
993
997
  readonly parentId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
994
998
  readonly epicId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
999
+ readonly initiativeId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
995
1000
  readonly autoStartDependents: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
996
1001
  readonly confidence: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
997
1002
  readonly estimate: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
@@ -1155,6 +1160,7 @@ export declare const spawnEpicContract: {
1155
1160
  readonly responsibleProductUserId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1156
1161
  readonly trackerCommentOnPrOpen: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["on", "off"], undefined>, undefined>, undefined>;
1157
1162
  readonly trackerResolveOnMerge: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["on", "off"], undefined>, undefined>, undefined>;
1163
+ readonly internal: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1158
1164
  }, undefined>, undefined>;
1159
1165
  }, undefined>;
1160
1166
  };
@@ -1 +1 @@
1
- {"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["../../src/routes/tasks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAuD5B,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIlC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMvC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAItC,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMpC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKvC,CAAA;AAEF,eAAO,MAAM,0BAA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;;;;;;;;;;;;;;;;;;;;;;;;;;CAM7B,CAAA;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM9B,CAAA;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK3B,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKtC,CAAA;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM5B,CAAA"}
@@ -530,6 +530,7 @@ export declare const approveVisualConfirmContract: {
530
530
  readonly serviceUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
531
531
  }, undefined>, undefined>, undefined>;
532
532
  readonly initiatedBy: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
533
+ readonly createdAt: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
533
534
  readonly rev: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
534
535
  }, undefined>;
535
536
  };
@@ -1066,6 +1067,7 @@ export declare const requestVisualConfirmFixContract: {
1066
1067
  readonly serviceUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1067
1068
  }, undefined>, undefined>, undefined>;
1068
1069
  readonly initiatedBy: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1070
+ readonly createdAt: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1069
1071
  readonly rev: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1070
1072
  }, undefined>;
1071
1073
  };
@@ -1600,6 +1602,7 @@ export declare const recaptureVisualConfirmContract: {
1600
1602
  readonly serviceUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1601
1603
  }, undefined>, undefined>, undefined>;
1602
1604
  readonly initiatedBy: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1605
+ readonly createdAt: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1603
1606
  readonly rev: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1604
1607
  }, undefined>;
1605
1608
  };
@@ -1 +1 @@
1
- {"version":3,"file":"visual-confirm.d.ts","sourceRoot":"","sources":["../../src/routes/visual-confirm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqC,MAAM,yBAAyB,CAAA;AAC3F,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAc5B,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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