@cat-factory/contracts 0.233.0 → 0.235.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/documents.d.ts +38 -9
- package/dist/documents.d.ts.map +1 -1
- package/dist/documents.js +46 -9
- package/dist/documents.js.map +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +5 -0
- package/dist/errors.js.map +1 -1
- package/dist/notification-webhooks.d.ts +61 -4
- package/dist/notification-webhooks.d.ts.map +1 -1
- package/dist/notification-webhooks.js +35 -4
- package/dist/notification-webhooks.js.map +1 -1
- package/dist/public-api.d.ts +110 -2
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +67 -2
- package/dist/public-api.js.map +1 -1
- package/dist/routes/documents.d.ts +10 -10
- package/dist/routes/notification-webhooks.d.ts +129 -1
- package/dist/routes/notification-webhooks.d.ts.map +1 -1
- package/dist/routes/notification-webhooks.js +49 -6
- package/dist/routes/notification-webhooks.js.map +1 -1
- package/dist/routes/public-api.d.ts +17 -0
- package/dist/routes/public-api.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/documents.d.ts
CHANGED
|
@@ -1,7 +1,32 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* The external document sources cat-factory can CONNECT to. Every member has a
|
|
4
|
+
* {@link DocumentSourceProvider} behind it, so this is the vocabulary of everything that can be
|
|
5
|
+
* connected, searched, imported from and re-probed for a fresher version.
|
|
6
|
+
*
|
|
7
|
+
* It is deliberately NARROWER than {@link documentOriginSchema}: a stored document need not have
|
|
8
|
+
* come from a source at all.
|
|
9
|
+
*/
|
|
3
10
|
export declare const documentSourceKindSchema: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear"], undefined>;
|
|
4
11
|
export type DocumentSourceKind = v.InferOutput<typeof documentSourceKindSchema>;
|
|
12
|
+
/**
|
|
13
|
+
* Where a STORED document came from: one of the connected sources above, or `upload` for a body
|
|
14
|
+
* handed to the platform directly (today by a `/api/v1` caller attaching a spec to the task it is
|
|
15
|
+
* creating, which is the whole reason this widening exists).
|
|
16
|
+
*
|
|
17
|
+
* Two vocabularies rather than one because a provider is what tells them apart. Everything a
|
|
18
|
+
* provider does (connect, search, import a ref, `probeVersion` a stored copy against the live
|
|
19
|
+
* page) is defined only for a {@link DocumentSourceKind}, and there is no `upload` provider to
|
|
20
|
+
* ask. Keeping the narrow union on those surfaces is what makes the absence a COMPILE error
|
|
21
|
+
* (an exhaustive `Record<DocumentSourceKind, DocumentSourceDescriptor>` still has to name every
|
|
22
|
+
* member) instead of a runtime `undefined` at whichever call site reaches for the missing
|
|
23
|
+
* provider first. The wide union covers only what a stored row and its block/role links carry,
|
|
24
|
+
* where the origin is a label rather than a capability.
|
|
25
|
+
*/
|
|
26
|
+
export declare const documentOriginSchema: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear", "upload"], undefined>;
|
|
27
|
+
export type DocumentOrigin = v.InferOutput<typeof documentOriginSchema>;
|
|
28
|
+
/** True for an origin that has a provider behind it (so it can be re-imported / re-probed). */
|
|
29
|
+
export declare function isConnectableSource(origin: DocumentOrigin): origin is DocumentSourceKind;
|
|
5
30
|
/**
|
|
6
31
|
* The role a workspace+`DocKind`-scoped document link plays for the forward document-authoring
|
|
7
32
|
* track (WS1 items 2–4). A `template` link's parsed sections REPLACE the built-in skeleton for
|
|
@@ -70,13 +95,17 @@ export declare const documentConnectionSchema: v.ObjectSchema<{
|
|
|
70
95
|
readonly connectedAt: v.NumberSchema<undefined>;
|
|
71
96
|
}, undefined>;
|
|
72
97
|
export type DocumentConnection = v.InferOutput<typeof documentConnectionSchema>;
|
|
73
|
-
/** A page imported from a source, projected locally. */
|
|
98
|
+
/** A page imported from a source (or uploaded through the API), projected locally. */
|
|
74
99
|
export declare const sourceDocumentSchema: v.ObjectSchema<{
|
|
75
|
-
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear"], undefined>;
|
|
100
|
+
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear", "upload"], undefined>;
|
|
76
101
|
/** The source's stable id for the page (Confluence page id, Notion page id). */
|
|
77
102
|
readonly externalId: v.StringSchema<undefined>;
|
|
78
103
|
readonly title: v.StringSchema<undefined>;
|
|
79
|
-
/**
|
|
104
|
+
/**
|
|
105
|
+
* Canonical URL of the page on the source, or EMPTY for an `upload`, which has no page to
|
|
106
|
+
* link back to. Readers render the origin only when there is one: an empty parenthetical or a
|
|
107
|
+
* bare `Source:` line reads as a broken link rather than as a document that never had one.
|
|
108
|
+
*/
|
|
80
109
|
readonly url: v.StringSchema<undefined>;
|
|
81
110
|
/** A short plain-text excerpt of the body (full body stays in storage). */
|
|
82
111
|
readonly excerpt: v.StringSchema<undefined>;
|
|
@@ -150,7 +179,7 @@ export type PlanFrame = v.InferOutput<typeof planFrameSchema>;
|
|
|
150
179
|
* the UI can label a preview honestly.
|
|
151
180
|
*/
|
|
152
181
|
export declare const documentBoardPlanSchema: v.ObjectSchema<{
|
|
153
|
-
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear"], undefined>;
|
|
182
|
+
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear", "upload"], undefined>;
|
|
154
183
|
readonly externalId: v.StringSchema<undefined>;
|
|
155
184
|
readonly planner: v.PicklistSchema<["llm", "headings"], undefined>;
|
|
156
185
|
readonly frames: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -205,9 +234,9 @@ export declare const spawnDocumentSchema: v.ObjectSchema<{
|
|
|
205
234
|
readonly frameId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
|
|
206
235
|
}, undefined>;
|
|
207
236
|
export type SpawnDocumentInput = v.InferOutput<typeof spawnDocumentSchema>;
|
|
208
|
-
/** Attach an imported page to a task as extra agent context. */
|
|
237
|
+
/** Attach an imported (or uploaded) page to a task as extra agent context. */
|
|
209
238
|
export declare const linkDocumentSchema: v.ObjectSchema<{
|
|
210
|
-
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear"], undefined>;
|
|
239
|
+
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear", "upload"], undefined>;
|
|
211
240
|
readonly externalId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
212
241
|
readonly blockId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
213
242
|
}, undefined>;
|
|
@@ -219,7 +248,7 @@ export type LinkDocumentInput = v.InferOutput<typeof linkDocumentSchema>;
|
|
|
219
248
|
* per kind — linking a new one replaces the prior override.
|
|
220
249
|
*/
|
|
221
250
|
export declare const linkDocumentForKindSchema: v.ObjectSchema<{
|
|
222
|
-
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear"], undefined>;
|
|
251
|
+
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear", "upload"], undefined>;
|
|
223
252
|
readonly externalId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
224
253
|
readonly role: v.PicklistSchema<["template", "exemplar"], undefined>;
|
|
225
254
|
readonly docKind: v.PicklistSchema<readonly ["prd", "rfc", "adr", "design", "technical", "api", "runbook", "research", "reference", "other"], undefined>;
|
|
@@ -227,7 +256,7 @@ export declare const linkDocumentForKindSchema: v.ObjectSchema<{
|
|
|
227
256
|
export type LinkDocumentForKindInput = v.InferOutput<typeof linkDocumentForKindSchema>;
|
|
228
257
|
/** Clear a document's workspace+`DocKind` role tag (falls back to the built-in template / drops the exemplar). */
|
|
229
258
|
export declare const unlinkDocumentForKindSchema: v.ObjectSchema<{
|
|
230
|
-
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear"], undefined>;
|
|
259
|
+
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear", "upload"], undefined>;
|
|
231
260
|
readonly externalId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
232
261
|
}, undefined>;
|
|
233
262
|
export type UnlinkDocumentForKindInput = v.InferOutput<typeof unlinkDocumentForKindSchema>;
|
package/dist/documents.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documents.d.ts","sourceRoot":"","sources":["../src/documents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAiB5B
|
|
1
|
+
{"version":3,"file":"documents.d.ts","sourceRoot":"","sources":["../src/documents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAiB5B;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,8FAOnC,CAAA;AACF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAE/E;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,oBAAoB,wGAK/B,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEvE,+FAA+F;AAC/F,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,IAAI,kBAAkB,CAExF;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB,uDAAuC,CAAA;AAC1E,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAI3E,6EAA6E;AAC7E,eAAO,MAAM,qBAAqB;IAChC,iEAAiE;;IAEjE,sCAAsC;;IAEtC,kDAAk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AAkB,CAAC,CAAA;AAExE;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB;;;;;aAKpC,CAAA;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAEtF,kHAAkH;AAClH,eAAO,MAAM,2BAA2B;;;aAGtC,CAAA;AACF,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,2BAA2B,CAAC,CAAA"}
|
package/dist/documents.js
CHANGED
|
@@ -13,7 +13,14 @@ import { blockTypeSchema, DOC_KINDS } from './primitives.js';
|
|
|
13
13
|
// credential bag, the soft-delete tombstone, the cached page body) is NOT on the
|
|
14
14
|
// wire — it lives in the core ports / D1 layer.
|
|
15
15
|
// ---------------------------------------------------------------------------
|
|
16
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* The external document sources cat-factory can CONNECT to. Every member has a
|
|
18
|
+
* {@link DocumentSourceProvider} behind it, so this is the vocabulary of everything that can be
|
|
19
|
+
* connected, searched, imported from and re-probed for a fresher version.
|
|
20
|
+
*
|
|
21
|
+
* It is deliberately NARROWER than {@link documentOriginSchema}: a stored document need not have
|
|
22
|
+
* come from a source at all.
|
|
23
|
+
*/
|
|
17
24
|
export const documentSourceKindSchema = v.picklist([
|
|
18
25
|
'confluence',
|
|
19
26
|
'notion',
|
|
@@ -22,6 +29,30 @@ export const documentSourceKindSchema = v.picklist([
|
|
|
22
29
|
'zeplin',
|
|
23
30
|
'linear',
|
|
24
31
|
]);
|
|
32
|
+
/**
|
|
33
|
+
* Where a STORED document came from: one of the connected sources above, or `upload` for a body
|
|
34
|
+
* handed to the platform directly (today by a `/api/v1` caller attaching a spec to the task it is
|
|
35
|
+
* creating, which is the whole reason this widening exists).
|
|
36
|
+
*
|
|
37
|
+
* Two vocabularies rather than one because a provider is what tells them apart. Everything a
|
|
38
|
+
* provider does (connect, search, import a ref, `probeVersion` a stored copy against the live
|
|
39
|
+
* page) is defined only for a {@link DocumentSourceKind}, and there is no `upload` provider to
|
|
40
|
+
* ask. Keeping the narrow union on those surfaces is what makes the absence a COMPILE error
|
|
41
|
+
* (an exhaustive `Record<DocumentSourceKind, DocumentSourceDescriptor>` still has to name every
|
|
42
|
+
* member) instead of a runtime `undefined` at whichever call site reaches for the missing
|
|
43
|
+
* provider first. The wide union covers only what a stored row and its block/role links carry,
|
|
44
|
+
* where the origin is a label rather than a capability.
|
|
45
|
+
*/
|
|
46
|
+
export const documentOriginSchema = v.picklist([
|
|
47
|
+
// DERIVED from the narrow union rather than restated, so a source added there cannot be
|
|
48
|
+
// forgotten here and leave rows the wide union refuses to describe.
|
|
49
|
+
...documentSourceKindSchema.options,
|
|
50
|
+
'upload',
|
|
51
|
+
]);
|
|
52
|
+
/** True for an origin that has a provider behind it (so it can be re-imported / re-probed). */
|
|
53
|
+
export function isConnectableSource(origin) {
|
|
54
|
+
return documentSourceKindSchema.options.includes(origin);
|
|
55
|
+
}
|
|
25
56
|
/**
|
|
26
57
|
* The role a workspace+`DocKind`-scoped document link plays for the forward document-authoring
|
|
27
58
|
* track (WS1 items 2–4). A `template` link's parsed sections REPLACE the built-in skeleton for
|
|
@@ -77,13 +108,17 @@ export const documentConnectionSchema = v.object({
|
|
|
77
108
|
/** When the connection was established (epoch ms). */
|
|
78
109
|
connectedAt: v.number(),
|
|
79
110
|
});
|
|
80
|
-
/** A page imported from a source, projected locally. */
|
|
111
|
+
/** A page imported from a source (or uploaded through the API), projected locally. */
|
|
81
112
|
export const sourceDocumentSchema = v.object({
|
|
82
|
-
source:
|
|
113
|
+
source: documentOriginSchema,
|
|
83
114
|
/** The source's stable id for the page (Confluence page id, Notion page id). */
|
|
84
115
|
externalId: v.string(),
|
|
85
116
|
title: v.string(),
|
|
86
|
-
/**
|
|
117
|
+
/**
|
|
118
|
+
* Canonical URL of the page on the source, or EMPTY for an `upload`, which has no page to
|
|
119
|
+
* link back to. Readers render the origin only when there is one: an empty parenthetical or a
|
|
120
|
+
* bare `Source:` line reads as a broken link rather than as a document that never had one.
|
|
121
|
+
*/
|
|
87
122
|
url: v.string(),
|
|
88
123
|
/** A short plain-text excerpt of the body (full body stays in storage). */
|
|
89
124
|
excerpt: v.string(),
|
|
@@ -141,7 +176,9 @@ export const planFrameSchema = v.object({
|
|
|
141
176
|
* the UI can label a preview honestly.
|
|
142
177
|
*/
|
|
143
178
|
export const documentBoardPlanSchema = v.object({
|
|
144
|
-
|
|
179
|
+
// The origin is echoed back from the planned document's own key, so it is as wide as a stored
|
|
180
|
+
// row: planning reads the cached body and asks nothing of a provider.
|
|
181
|
+
source: documentOriginSchema,
|
|
145
182
|
externalId: v.string(),
|
|
146
183
|
planner: v.picklist(['llm', 'headings']),
|
|
147
184
|
frames: v.array(planFrameSchema),
|
|
@@ -176,9 +213,9 @@ export const spawnDocumentSchema = v.object({
|
|
|
176
213
|
externalId: v.pipe(v.string(), v.trim(), v.minLength(1)),
|
|
177
214
|
frameId: v.optional(v.pipe(v.string(), v.minLength(1))),
|
|
178
215
|
});
|
|
179
|
-
/** Attach an imported page to a task as extra agent context. */
|
|
216
|
+
/** Attach an imported (or uploaded) page to a task as extra agent context. */
|
|
180
217
|
export const linkDocumentSchema = v.object({
|
|
181
|
-
source:
|
|
218
|
+
source: documentOriginSchema,
|
|
182
219
|
externalId: v.pipe(v.string(), v.trim(), v.minLength(1)),
|
|
183
220
|
blockId: v.pipe(v.string(), v.trim(), v.minLength(1)),
|
|
184
221
|
});
|
|
@@ -189,14 +226,14 @@ export const linkDocumentSchema = v.object({
|
|
|
189
226
|
* per kind — linking a new one replaces the prior override.
|
|
190
227
|
*/
|
|
191
228
|
export const linkDocumentForKindSchema = v.object({
|
|
192
|
-
source:
|
|
229
|
+
source: documentOriginSchema,
|
|
193
230
|
externalId: v.pipe(v.string(), v.trim(), v.minLength(1)),
|
|
194
231
|
role: documentLinkRoleSchema,
|
|
195
232
|
docKind: v.picklist(DOC_KINDS),
|
|
196
233
|
});
|
|
197
234
|
/** Clear a document's workspace+`DocKind` role tag (falls back to the built-in template / drops the exemplar). */
|
|
198
235
|
export const unlinkDocumentForKindSchema = v.object({
|
|
199
|
-
source:
|
|
236
|
+
source: documentOriginSchema,
|
|
200
237
|
externalId: v.pipe(v.string(), v.trim(), v.minLength(1)),
|
|
201
238
|
});
|
|
202
239
|
//# sourceMappingURL=documents.js.map
|
package/dist/documents.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documents.js","sourceRoot":"","sources":["../src/documents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE5D,8EAA8E;AAC9E,gFAAgF;AAChF,+EAA+E;AAC/E,0EAA0E;AAC1E,sDAAsD;AACtD,EAAE;AACF,6EAA6E;AAC7E,sEAAsE;AACtE,+EAA+E;AAC/E,4EAA4E;AAC5E,iFAAiF;AACjF,gDAAgD;AAChD,8EAA8E;AAE9E
|
|
1
|
+
{"version":3,"file":"documents.js","sourceRoot":"","sources":["../src/documents.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE5D,8EAA8E;AAC9E,gFAAgF;AAChF,+EAA+E;AAC/E,0EAA0E;AAC1E,sDAAsD;AACtD,EAAE;AACF,6EAA6E;AAC7E,sEAAsE;AACtE,+EAA+E;AAC/E,4EAA4E;AAC5E,iFAAiF;AACjF,gDAAgD;AAChD,8EAA8E;AAE9E;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,QAAQ,CAAC;IACjD,YAAY;IACZ,QAAQ;IACR,QAAQ;IACR,OAAO;IACP,QAAQ;IACR,QAAQ;CACT,CAAC,CAAA;AAGF;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM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EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;CACzD,CAAC,CAAA"}
|
package/dist/errors.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export type ApiErrorCode = (typeof API_ERROR_CODES)[number];
|
|
|
29
29
|
* type for `ConflictError`, and the SPA keys an exhaustive `Record<ConflictReason, …>` of
|
|
30
30
|
* localized titles off it — adding a value without a title trips the frontend typecheck.
|
|
31
31
|
*/
|
|
32
|
-
export declare const CONFLICT_REASONS: readonly ['providers_unconfigured', 'preset_unsatisfiable', 'dependencies_unmet', 'task_limit_reached', 'tester_infra_unsupported', 'binary_storage_unconfigured', 'agent_backend_unconfigured', 'run_not_retryable', 'no_pr_to_merge', 'dry_run_not_mergeable', 'github_not_connected', 'bootstrap_not_retryable', 'bootstrap_reference_missing', 'provision_type_unhandled', 'visual_pipeline_no_frontend', 'model_policy_blocked', 'model_policy_unsupported', 'deployer_required_before_tester', 'deployer_service_provisioning_incomplete', 'deployer_connection_test_failed', 'env_test_not_a_frame', 'env_test_infraless', 'env_test_not_provisionable', 'env_test_no_vcs', 'env_test_connection_failed', 'review_debt_warn', 'review_debt_blocked', 'prompt_revision_conflict', 'pipeline_schedule_attached', 'pipeline_schedule_requires_recurring', 'pipeline_schedule_intake_unconfigured', 'foundational_service_exists', 'binary_output_service_invalid', 'binary_output_generator_invalid', 'foundational_service_not_inherited', 'ticket_already_linked', 'input_gate_not_parked', 'input_gate_parked'];
|
|
32
|
+
export declare const CONFLICT_REASONS: readonly ['providers_unconfigured', 'preset_unsatisfiable', 'dependencies_unmet', 'task_limit_reached', 'tester_infra_unsupported', 'binary_storage_unconfigured', 'agent_backend_unconfigured', 'run_not_retryable', 'no_pr_to_merge', 'dry_run_not_mergeable', 'github_not_connected', 'bootstrap_not_retryable', 'bootstrap_reference_missing', 'document_already_linked', 'provision_type_unhandled', 'visual_pipeline_no_frontend', 'model_policy_blocked', 'model_policy_unsupported', 'deployer_required_before_tester', 'deployer_service_provisioning_incomplete', 'deployer_connection_test_failed', 'env_test_not_a_frame', 'env_test_infraless', 'env_test_not_provisionable', 'env_test_no_vcs', 'env_test_connection_failed', 'review_debt_warn', 'review_debt_blocked', 'prompt_revision_conflict', 'pipeline_schedule_attached', 'pipeline_schedule_requires_recurring', 'pipeline_schedule_intake_unconfigured', 'foundational_service_exists', 'binary_output_service_invalid', 'binary_output_generator_invalid', 'foundational_service_not_inherited', 'ticket_already_linked', 'input_gate_not_parked', 'input_gate_parked'];
|
|
33
33
|
export type ConflictReason = (typeof CONFLICT_REASONS)[number];
|
|
34
34
|
/**
|
|
35
35
|
* Machine-readable reasons behind a 503 (`error.details.reason` on an `UnavailableError`), for
|
package/dist/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,YAC7B,WAAW,EACX,YAAY,EACZ,UAAU,EACV,qBAAqB,EACrB,WAAW,EACX,aAAa,EACb,cAAc,EACd,cAAc,CACN,CAAA;AAEV,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAA;AAEjE;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,iJAA+C,CAAA;AAE3E,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAA;AAE3D;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,YAC3B,wBAAwB,EAKxB,sBAAsB,EACtB,oBAAoB,EACpB,oBAAoB,EACpB,0BAA0B,EAC1B,6BAA6B,EAC7B,4BAA4B,EAC5B,mBAAmB,EACnB,gBAAgB,EAKhB,uBAAuB,EACvB,sBAAsB,EACtB,yBAAyB,EACzB,6BAA6B,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M,mBAAmB,YAC9B,+BAA+B,EAC/B,mCAAmC,CAC3B,CAAA;AAEV,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,CAAA;AAEpE;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,qBAAqB,YAAI,qBAAqB,EAAE,yBAAyB,CAAU,CAAA;AAEhG,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAA"}
|
package/dist/errors.js
CHANGED
|
@@ -59,6 +59,11 @@ export const CONFLICT_REASONS = [
|
|
|
59
59
|
'github_not_connected',
|
|
60
60
|
'bootstrap_not_retryable',
|
|
61
61
|
'bootstrap_reference_missing',
|
|
62
|
+
// A document is already attached to a DIFFERENT live task. A document row carries a single
|
|
63
|
+
// `linkedBlockId`, so attaching it again would MOVE the link rather than copy it, silently
|
|
64
|
+
// stripping the earlier task of a document it was created with. Same rule and same shape as
|
|
65
|
+
// `ticket_already_linked`: `details.taskId` names the holder so the caller can follow it.
|
|
66
|
+
'document_already_linked',
|
|
62
67
|
// No workspace handler is configured for a service's declared provision type (the
|
|
63
68
|
// per-service provision-type model — the deployer/tester can't stand the env up).
|
|
64
69
|
'provision_type_unhandled',
|
package/dist/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,0FAA0F;AAE1F;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,WAAW;IACX,YAAY;IACZ,UAAU;IACV,qBAAqB;IACrB,WAAW;IACX,aAAa;IACb,cAAc;IACd,cAAc;CACN,CAAA;AAIV;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,GAAG,kBAAkB,EAAE,UAAU,CAAU,CAAA;AAI3E;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,gBAAgB,G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AC3D,uBAAuB;IACvB,iGAAiG;IACjG,4FAA4F;IAC5F,0FAA0F;IAC1F,wCAAwC;IACxC,uBAAuB;IACvB,gGAAgG;IAChG,4FAA4F;IAC5F,+FAA+F;IAC/F,4EAA4E;IAC5E,EAAE;IACF,2FAA2F;IAC3F,iGAAiG;IACjG,4FAA4F;IAC5F,sEAAsE;IACtE,mBAAmB;CACX,CAAA;AAIV;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,+BAA+B;IAC/B,mCAAmC;CAC3B,CAAA;AAIV;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,qBAAqB,EAAE,yBAAyB,CAAU,CAAA"}
|
|
@@ -55,12 +55,25 @@ export declare const notificationWebhookSchema: v.ObjectSchema<{
|
|
|
55
55
|
}, undefined>;
|
|
56
56
|
export type NotificationWebhook = v.InferOutput<typeof notificationWebhookSchema>;
|
|
57
57
|
/**
|
|
58
|
-
* Register or update the workspace's notification webhook.
|
|
59
|
-
*
|
|
60
|
-
*
|
|
58
|
+
* Register or update the workspace's notification webhook. EVERY field is keep-on-omit: what the
|
|
59
|
+
* body leaves out retains its stored value, so subscribing an existing endpoint to a new event
|
|
60
|
+
* family is a one-field write.
|
|
61
|
+
*
|
|
62
|
+
* That uniformity is the point, and `url` is optional for it. A mandatory re-send would make the
|
|
63
|
+
* common edit carry a value the caller did not intend to change, and a caller re-sending a URL it
|
|
64
|
+
* cached before someone else rotated the endpoint would silently redirect the workspace's
|
|
65
|
+
* deliveries back to the old receiver while appearing to only add a subscription. The first `PUT`
|
|
66
|
+
* on a workspace with nothing registered still needs one, and the service refuses with
|
|
67
|
+
* `reason: 'webhook_url_required'` rather than storing a half-endpoint.
|
|
68
|
+
*
|
|
69
|
+
* When supplied it must be `https:`: deliveries carry a signed payload describing internal work,
|
|
70
|
+
* and plaintext HTTP would leak it on the wire.
|
|
71
|
+
*
|
|
72
|
+
* `secret` is write-only: omit it to keep the stored one, pass a new value to rotate it.
|
|
61
73
|
*/
|
|
62
74
|
export declare const putNotificationWebhookSchema: v.ObjectSchema<{
|
|
63
|
-
|
|
75
|
+
/** Omit ⇒ keep the registered endpoint (required only when registering the first one). */
|
|
76
|
+
readonly url: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, undefined>, v.StartsWithAction<string, "https://", "The webhook endpoint must be an https:// URL">, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
64
77
|
/** Omit ⇒ deliver the default parking types. */
|
|
65
78
|
readonly types: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "judge_review", "pr_review_ready", "initiative", "platform_health", "infra_unreachable", "budget_paused", "key_drift", "merge_tag_request"], undefined>, undefined>, undefined>;
|
|
66
79
|
/** Omit ⇒ keep the current run-event subscription (none, for an endpoint that never set one). */
|
|
@@ -72,6 +85,50 @@ export declare const putNotificationWebhookSchema: v.ObjectSchema<{
|
|
|
72
85
|
readonly secret: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 16, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
73
86
|
}, undefined>;
|
|
74
87
|
export type PutNotificationWebhookInput = v.InferOutput<typeof putNotificationWebhookSchema>;
|
|
88
|
+
/**
|
|
89
|
+
* What `GET /api/v1/notification-webhook` answers: the registered endpoint, or `null` when the
|
|
90
|
+
* workspace has none. Both the session surface and the public one project the SAME
|
|
91
|
+
* {@link notificationWebhookSchema}, because the projection is already the client-facing shape
|
|
92
|
+
* with the secret reduced to a boolean, and a second near-identical DTO would be one more thing
|
|
93
|
+
* to keep in step for no caller-visible gain.
|
|
94
|
+
*
|
|
95
|
+
* The WRAPPER, though, is public-surface-only, and it is not decoration. A bare nullable body is
|
|
96
|
+
* an honest wire shape but a poor generated one: the SDK emitters model a null at the top level of
|
|
97
|
+
* a response far less faithfully than a null on a FIELD (Go decodes a `null` body into a
|
|
98
|
+
* zero-valued struct, so "no endpoint registered" would arrive as an endpoint whose URL is the
|
|
99
|
+
* empty string). Wrapping keeps "none is registered" a value every client reads the same way, and
|
|
100
|
+
* leaves room to add a sibling field later without changing the response type.
|
|
101
|
+
*/
|
|
102
|
+
export declare const publicNotificationWebhookSchema: v.ObjectSchema<{
|
|
103
|
+
/** The registered endpoint, or `null` when the workspace has none. */
|
|
104
|
+
readonly webhook: v.NullableSchema<v.ObjectSchema<{
|
|
105
|
+
/** The HTTPS endpoint deliveries are POSTed to. */
|
|
106
|
+
readonly url: v.StringSchema<undefined>;
|
|
107
|
+
/**
|
|
108
|
+
* Which notification types are delivered. EMPTY means "the parking types" — the defaults a
|
|
109
|
+
* headless overseer cares about — rather than "everything", so registering an endpoint can't
|
|
110
|
+
* accidentally fire-hose every card at an integration that only wanted to hear about parks.
|
|
111
|
+
*/
|
|
112
|
+
readonly types: v.ArraySchema<v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "judge_review", "pr_review_ready", "initiative", "platform_health", "infra_unreachable", "budget_paused", "key_drift", "merge_tag_request"], undefined>, undefined>;
|
|
113
|
+
/**
|
|
114
|
+
* Which run-lifecycle events are delivered. EMPTY means NONE — the opposite of `types` above,
|
|
115
|
+
* deliberately: an endpoint registered before this existed must not start receiving a new event
|
|
116
|
+
* family it never asked for, so subscribing is explicit.
|
|
117
|
+
*/
|
|
118
|
+
readonly runEvents: v.ArraySchema<v.PicklistSchema<["run.started", "run.completed", "run.failed"], undefined>, undefined>;
|
|
119
|
+
/**
|
|
120
|
+
* Which platform-health transitions are delivered. EMPTY means NONE, like {@link runEvents}:
|
|
121
|
+
* subscribing a receiver to alerts about the deployment itself is always an explicit choice.
|
|
122
|
+
*/
|
|
123
|
+
readonly alertEvents: v.ArraySchema<v.PicklistSchema<["platform_health.firing", "platform_health.resolved"], undefined>, undefined>;
|
|
124
|
+
/** Whether deliveries are currently attempted. Registering an endpoint enables it. */
|
|
125
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
126
|
+
/** Whether a signing secret is set (the secret itself is never returned). */
|
|
127
|
+
readonly hasSecret: v.BooleanSchema<undefined>;
|
|
128
|
+
readonly updatedAt: v.NumberSchema<undefined>;
|
|
129
|
+
}, undefined>, undefined>;
|
|
130
|
+
}, undefined>;
|
|
131
|
+
export type PublicNotificationWebhook = v.InferOutput<typeof publicNotificationWebhookSchema>;
|
|
75
132
|
/**
|
|
76
133
|
* The JSON body of one webhook delivery. Deliberately a thin envelope over the SAME
|
|
77
134
|
* `notificationSchema` the in-app inbox and the public `GET /api/v1/notifications` already expose
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification-webhooks.d.ts","sourceRoot":"","sources":["../src/notification-webhooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAoB5B;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,6EAA6D,CAAA;AACjG,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAEjF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,wBAAwB,qFAGnC,CAAA;AACF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAEnF,+FAA+F;AAC/F,eAAO,MAAM,yBAAyB;IACpC,mDAAmD;;IAEnD;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;OAGG;;IAEH,sFAAsF;;IAEtF,6EAA6E;;;aAG7E,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG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: v.number(),
|
|
73
73
|
});
|
|
74
74
|
/**
|
|
75
|
-
* Register or update the workspace's notification webhook.
|
|
76
|
-
*
|
|
77
|
-
*
|
|
75
|
+
* Register or update the workspace's notification webhook. EVERY field is keep-on-omit: what the
|
|
76
|
+
* body leaves out retains its stored value, so subscribing an existing endpoint to a new event
|
|
77
|
+
* family is a one-field write.
|
|
78
|
+
*
|
|
79
|
+
* That uniformity is the point, and `url` is optional for it. A mandatory re-send would make the
|
|
80
|
+
* common edit carry a value the caller did not intend to change, and a caller re-sending a URL it
|
|
81
|
+
* cached before someone else rotated the endpoint would silently redirect the workspace's
|
|
82
|
+
* deliveries back to the old receiver while appearing to only add a subscription. The first `PUT`
|
|
83
|
+
* on a workspace with nothing registered still needs one, and the service refuses with
|
|
84
|
+
* `reason: 'webhook_url_required'` rather than storing a half-endpoint.
|
|
85
|
+
*
|
|
86
|
+
* When supplied it must be `https:`: deliveries carry a signed payload describing internal work,
|
|
87
|
+
* and plaintext HTTP would leak it on the wire.
|
|
88
|
+
*
|
|
89
|
+
* `secret` is write-only: omit it to keep the stored one, pass a new value to rotate it.
|
|
78
90
|
*/
|
|
79
91
|
export const putNotificationWebhookSchema = v.object({
|
|
80
|
-
|
|
92
|
+
/** Omit ⇒ keep the registered endpoint (required only when registering the first one). */
|
|
93
|
+
url: v.optional(v.pipe(v.string(), v.trim(), v.url(), v.startsWith('https://', 'The webhook endpoint must be an https:// URL'), v.maxLength(2000))),
|
|
81
94
|
/** Omit ⇒ deliver the default parking types. */
|
|
82
95
|
types: v.optional(v.array(notificationTypeSchema)),
|
|
83
96
|
/** Omit ⇒ keep the current run-event subscription (none, for an endpoint that never set one). */
|
|
@@ -88,6 +101,24 @@ export const putNotificationWebhookSchema = v.object({
|
|
|
88
101
|
/** New signing secret; omit to keep the current one. */
|
|
89
102
|
secret: v.optional(v.pipe(v.string(), v.trim(), v.minLength(16), v.maxLength(200))),
|
|
90
103
|
});
|
|
104
|
+
/**
|
|
105
|
+
* What `GET /api/v1/notification-webhook` answers: the registered endpoint, or `null` when the
|
|
106
|
+
* workspace has none. Both the session surface and the public one project the SAME
|
|
107
|
+
* {@link notificationWebhookSchema}, because the projection is already the client-facing shape
|
|
108
|
+
* with the secret reduced to a boolean, and a second near-identical DTO would be one more thing
|
|
109
|
+
* to keep in step for no caller-visible gain.
|
|
110
|
+
*
|
|
111
|
+
* The WRAPPER, though, is public-surface-only, and it is not decoration. A bare nullable body is
|
|
112
|
+
* an honest wire shape but a poor generated one: the SDK emitters model a null at the top level of
|
|
113
|
+
* a response far less faithfully than a null on a FIELD (Go decodes a `null` body into a
|
|
114
|
+
* zero-valued struct, so "no endpoint registered" would arrive as an endpoint whose URL is the
|
|
115
|
+
* empty string). Wrapping keeps "none is registered" a value every client reads the same way, and
|
|
116
|
+
* leaves room to add a sibling field later without changing the response type.
|
|
117
|
+
*/
|
|
118
|
+
export const publicNotificationWebhookSchema = v.object({
|
|
119
|
+
/** The registered endpoint, or `null` when the workspace has none. */
|
|
120
|
+
webhook: v.nullable(notificationWebhookSchema),
|
|
121
|
+
});
|
|
91
122
|
/**
|
|
92
123
|
* The JSON body of one webhook delivery. Deliberately a thin envelope over the SAME
|
|
93
124
|
* `notificationSchema` the in-app inbox and the public `GET /api/v1/notifications` already expose
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification-webhooks.js","sourceRoot":"","sources":["../src/notification-webhooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAA;AAC/E,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAA;AAE7D,8EAA8E;AAC9E,iGAAiG;AACjG,8FAA8F;AAC9F,wFAAwF;AACxF,EAAE;AACF,6FAA6F;AAC7F,6FAA6F;AAC7F,6FAA6F;AAC7F,qEAAqE;AACrE,0DAA0D;AAC1D,EAAE;AACF,iGAAiG;A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ly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>;
|
|
226
226
|
}, undefined>;
|
|
227
227
|
export type PublicTaskTicket = v.InferOutput<typeof publicTaskTicketSchema>;
|
|
228
|
+
/** Characters of document text ONE uploaded attachment may carry (see {@link publicTaskDocumentSchema}). */
|
|
229
|
+
export declare const MAX_UPLOADED_DOCUMENT_CHARS = 100000;
|
|
230
|
+
/** Context documents ONE task creation may attach (imported and uploaded together). */
|
|
231
|
+
export declare const MAX_TASK_DOCUMENTS = 10;
|
|
232
|
+
/** A page NAMED in a document source the workspace has connected. See {@link publicTaskDocumentSchema}. */
|
|
233
|
+
export declare const publicTaskSourceDocumentSchema: v.ObjectSchema<{
|
|
234
|
+
readonly kind: v.LiteralSchema<"source", undefined>;
|
|
235
|
+
/** A document source this workspace has connected. */
|
|
236
|
+
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear"], undefined>;
|
|
237
|
+
/**
|
|
238
|
+
* The page's id or its full URL: the SAME grammar the app's own import takes, resolved by that
|
|
239
|
+
* source's `parseRef`, so a caller passes whichever form it happens to hold.
|
|
240
|
+
*/
|
|
241
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>;
|
|
242
|
+
}, undefined>;
|
|
243
|
+
export type PublicTaskSourceDocument = v.InferOutput<typeof publicTaskSourceDocumentSchema>;
|
|
244
|
+
/** A document body CARRIED by the caller. See {@link publicTaskDocumentSchema}. */
|
|
245
|
+
export declare const publicTaskUploadedDocumentSchema: v.ObjectSchema<{
|
|
246
|
+
readonly kind: v.LiteralSchema<"upload", undefined>;
|
|
247
|
+
/** Names the document for the agent (it becomes the attachment's heading and filename). */
|
|
248
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
249
|
+
/**
|
|
250
|
+
* The document text, as Markdown. Refused when it yields no readable text at all (a body of
|
|
251
|
+
* pure markup would reach the agent as an empty attachment).
|
|
252
|
+
*/
|
|
253
|
+
readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 100000, undefined>]>;
|
|
254
|
+
}, undefined>;
|
|
255
|
+
export type PublicTaskUploadedDocument = v.InferOutput<typeof publicTaskUploadedDocumentSchema>;
|
|
256
|
+
/**
|
|
257
|
+
* A requirements document to attach to the task being created: the spec the work is to be built
|
|
258
|
+
* against, in whichever of the two forms the caller holds it.
|
|
259
|
+
*
|
|
260
|
+
* This is what makes `/api/v1` usable for spec-sized intake at all. `description` is capped at
|
|
261
|
+
* 2,000 characters because it is a task's own framing, echoed into every prompt; a PRD pasted
|
|
262
|
+
* into it would be truncated, and the 50,000-character `POST /jobs` brief is a different surface
|
|
263
|
+
* (inline pipelines only, no repository). An attached document has neither limit: the full text
|
|
264
|
+
* is materialised into the run's checkout under `.cat-context/` for a container agent to open, and
|
|
265
|
+
* folded into the prompt for an inline one, exactly as a document a human attached in the app.
|
|
266
|
+
*
|
|
267
|
+
* The two variants differ only in where the text comes from, never in what the run does with it:
|
|
268
|
+
*
|
|
269
|
+
* - `source` NAMES a page in a document source the workspace has connected (Confluence, Notion,
|
|
270
|
+
* GitHub docs, Figma, Zeplin, Linear). The platform fetches and projects it, so the page stays
|
|
271
|
+
* the source of truth and a re-import picks up edits.
|
|
272
|
+
* - `upload` CARRIES the text. For a caller that generated the spec, or holds it in a file, or
|
|
273
|
+
* whose deployment has connected no document source at all. There is no page behind it, so
|
|
274
|
+
* nothing re-fetches it: the bytes supplied here are what every agent on the run will read.
|
|
275
|
+
*/
|
|
276
|
+
export declare const publicTaskDocumentSchema: v.VariantSchema<"kind", [v.ObjectSchema<{
|
|
277
|
+
readonly kind: v.LiteralSchema<"source", undefined>;
|
|
278
|
+
/** A document source this workspace has connected. */
|
|
279
|
+
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear"], undefined>;
|
|
280
|
+
/**
|
|
281
|
+
* The page's id or its full URL: the SAME grammar the app's own import takes, resolved by that
|
|
282
|
+
* source's `parseRef`, so a caller passes whichever form it happens to hold.
|
|
283
|
+
*/
|
|
284
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>;
|
|
285
|
+
}, undefined>, v.ObjectSchema<{
|
|
286
|
+
readonly kind: v.LiteralSchema<"upload", undefined>;
|
|
287
|
+
/** Names the document for the agent (it becomes the attachment's heading and filename). */
|
|
288
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
289
|
+
/**
|
|
290
|
+
* The document text, as Markdown. Refused when it yields no readable text at all (a body of
|
|
291
|
+
* pure markup would reach the agent as an empty attachment).
|
|
292
|
+
*/
|
|
293
|
+
readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 100000, undefined>]>;
|
|
294
|
+
}, undefined>], undefined>;
|
|
295
|
+
export type PublicTaskDocument = v.InferOutput<typeof publicTaskDocumentSchema>;
|
|
228
296
|
/**
|
|
229
297
|
* Create a task under a service. A deliberately MINIMAL external input mapped onto the
|
|
230
|
-
* internal `AddTaskInput`: it exposes only title/description/taskType/ticket, not the
|
|
231
|
-
* internal knobs (risk/model presets, pinned pipeline, agent config), so the public
|
|
298
|
+
* internal `AddTaskInput`: it exposes only title/description/taskType/ticket/documents, not the
|
|
299
|
+
* rich internal knobs (risk/model presets, pinned pipeline, agent config), so the public
|
|
232
300
|
* surface stays small and stable.
|
|
233
301
|
*/
|
|
234
302
|
export declare const createPublicTaskSchema: v.ObjectSchema<{
|
|
@@ -252,6 +320,46 @@ export declare const createPublicTaskSchema: v.ObjectSchema<{
|
|
|
252
320
|
/** The ticket's canonical key OR its full issue URL. */
|
|
253
321
|
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>;
|
|
254
322
|
}, undefined>, undefined>;
|
|
323
|
+
/**
|
|
324
|
+
* Requirements documents to attach to the new task, in the order the agents should read them.
|
|
325
|
+
* Omitted or empty ⇒ an unattached task, exactly as before.
|
|
326
|
+
*
|
|
327
|
+
* Every one of them is resolved or written BEFORE the task is returned, and a failure at any
|
|
328
|
+
* point takes the whole creation with it: a `201` means the task carries every document named
|
|
329
|
+
* here. The alternative is the failure this whole surface exists to avoid, where a run looks
|
|
330
|
+
* perfectly healthy while an agent works from a spec it never received.
|
|
331
|
+
*
|
|
332
|
+
* The per-document cap above bounds one attachment; the CORPUS is bounded separately by the
|
|
333
|
+
* run's materialised-context budget, which is shared with linked tracker issues and cannot be
|
|
334
|
+
* known here. Overflowing it refuses the run's first dispatch and names what did not fit.
|
|
335
|
+
*/
|
|
336
|
+
readonly documents: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.VariantSchema<"kind", [v.ObjectSchema<{
|
|
337
|
+
readonly kind: v.LiteralSchema<"source", undefined>;
|
|
338
|
+
/** A document source this workspace has connected. */
|
|
339
|
+
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear"], undefined>;
|
|
340
|
+
/**
|
|
341
|
+
* The page's id or its full URL: the SAME grammar the app's own import takes, resolved by that
|
|
342
|
+
* source's `parseRef`, so a caller passes whichever form it happens to hold.
|
|
343
|
+
*/
|
|
344
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>;
|
|
345
|
+
}, undefined>, v.ObjectSchema<{
|
|
346
|
+
readonly kind: v.LiteralSchema<"upload", undefined>;
|
|
347
|
+
/** Names the document for the agent (it becomes the attachment's heading and filename). */
|
|
348
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
349
|
+
/**
|
|
350
|
+
* The document text, as Markdown. Refused when it yields no readable text at all (a body of
|
|
351
|
+
* pure markup would reach the agent as an empty attachment).
|
|
352
|
+
*/
|
|
353
|
+
readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 100000, undefined>]>;
|
|
354
|
+
}, undefined>], undefined>, undefined>, v.MaxLengthAction<({
|
|
355
|
+
kind: "source";
|
|
356
|
+
source: "confluence" | "figma" | "github" | "linear" | "notion" | "zeplin";
|
|
357
|
+
ref: string;
|
|
358
|
+
} | {
|
|
359
|
+
kind: "upload";
|
|
360
|
+
title: string;
|
|
361
|
+
content: string;
|
|
362
|
+
})[], 10, undefined>]>, undefined>;
|
|
255
363
|
}, undefined>;
|
|
256
364
|
export type CreatePublicTaskInput = v.InferOutput<typeof createPublicTaskSchema>;
|
|
257
365
|
/**
|
package/dist/public-api.d.ts.map
CHANGED
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AA4D5B,4EAA4E;AAC5E,eAAO,MAAM,qBAAqB;IAChC,wEAAwE;;IAExE,+EAA+E;;IAE/E,kFAAkF;;aAElF,CAAA;AACF,MAAM,MAAM,oBAAo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AKG;;IAEH,iGAAiG;;;;IAIjG,6FAA6F;;;IAG7F;;;;OAIG;;IAEH,wCAAwC;;aAExC,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEvE;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB;IAClC,4FAA4F;;;IAG5F,6EAA6E;;IAE7E,oFAAoF;;IAEpF,uFAAuF;;aAEvF,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAE7E;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB;IAC5B,2EAA2E;;IAE3E,qEAAqE;;;QAxBrE,4FAA4F;;;QAG5F,6EAA6E;;QAE7E,oFAAoF;;QAEpF,uFAAuF;;;;QA1CvF;;;;;WAKG;;QAEH,iGAAiG;;;;QAIjG,6FAA6F;;;QAG7F;;;;WAIG;;QAEH,wCAAwC;;;aA2CxC,CAAA;AACF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,iBAAiB,CAAC,CAAA"}
|
package/dist/public-api.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
|
+
import { documentSourceKindSchema } from './documents.js';
|
|
2
3
|
import { notificationSchema } from './notifications.js';
|
|
3
4
|
import { blockTypeSchema, createTaskTypeSchema, taskTypeSchema } from './primitives.js';
|
|
4
5
|
import { taskSourceKindSchema } from './tasks.js';
|
|
@@ -203,10 +204,60 @@ export const publicTaskTicketSchema = v.object({
|
|
|
203
204
|
/** The ticket's canonical key OR its full issue URL. */
|
|
204
205
|
ref: v.pipe(v.string(), v.trim(), v.minLength(1), v.maxLength(500)),
|
|
205
206
|
});
|
|
207
|
+
/** Characters of document text ONE uploaded attachment may carry (see {@link publicTaskDocumentSchema}). */
|
|
208
|
+
export const MAX_UPLOADED_DOCUMENT_CHARS = 100_000;
|
|
209
|
+
/** Context documents ONE task creation may attach (imported and uploaded together). */
|
|
210
|
+
export const MAX_TASK_DOCUMENTS = 10;
|
|
211
|
+
/** A page NAMED in a document source the workspace has connected. See {@link publicTaskDocumentSchema}. */
|
|
212
|
+
export const publicTaskSourceDocumentSchema = v.object({
|
|
213
|
+
kind: v.literal('source'),
|
|
214
|
+
/** A document source this workspace has connected. */
|
|
215
|
+
source: documentSourceKindSchema,
|
|
216
|
+
/**
|
|
217
|
+
* The page's id or its full URL: the SAME grammar the app's own import takes, resolved by that
|
|
218
|
+
* source's `parseRef`, so a caller passes whichever form it happens to hold.
|
|
219
|
+
*/
|
|
220
|
+
ref: v.pipe(v.string(), v.trim(), v.minLength(1), v.maxLength(500)),
|
|
221
|
+
});
|
|
222
|
+
/** A document body CARRIED by the caller. See {@link publicTaskDocumentSchema}. */
|
|
223
|
+
export const publicTaskUploadedDocumentSchema = v.object({
|
|
224
|
+
kind: v.literal('upload'),
|
|
225
|
+
/** Names the document for the agent (it becomes the attachment's heading and filename). */
|
|
226
|
+
title: v.pipe(v.string(), v.trim(), v.minLength(1), v.maxLength(200)),
|
|
227
|
+
/**
|
|
228
|
+
* The document text, as Markdown. Refused when it yields no readable text at all (a body of
|
|
229
|
+
* pure markup would reach the agent as an empty attachment).
|
|
230
|
+
*/
|
|
231
|
+
content: v.pipe(v.string(), v.trim(), v.minLength(1), v.maxLength(MAX_UPLOADED_DOCUMENT_CHARS)),
|
|
232
|
+
});
|
|
233
|
+
/**
|
|
234
|
+
* A requirements document to attach to the task being created: the spec the work is to be built
|
|
235
|
+
* against, in whichever of the two forms the caller holds it.
|
|
236
|
+
*
|
|
237
|
+
* This is what makes `/api/v1` usable for spec-sized intake at all. `description` is capped at
|
|
238
|
+
* 2,000 characters because it is a task's own framing, echoed into every prompt; a PRD pasted
|
|
239
|
+
* into it would be truncated, and the 50,000-character `POST /jobs` brief is a different surface
|
|
240
|
+
* (inline pipelines only, no repository). An attached document has neither limit: the full text
|
|
241
|
+
* is materialised into the run's checkout under `.cat-context/` for a container agent to open, and
|
|
242
|
+
* folded into the prompt for an inline one, exactly as a document a human attached in the app.
|
|
243
|
+
*
|
|
244
|
+
* The two variants differ only in where the text comes from, never in what the run does with it:
|
|
245
|
+
*
|
|
246
|
+
* - `source` NAMES a page in a document source the workspace has connected (Confluence, Notion,
|
|
247
|
+
* GitHub docs, Figma, Zeplin, Linear). The platform fetches and projects it, so the page stays
|
|
248
|
+
* the source of truth and a re-import picks up edits.
|
|
249
|
+
* - `upload` CARRIES the text. For a caller that generated the spec, or holds it in a file, or
|
|
250
|
+
* whose deployment has connected no document source at all. There is no page behind it, so
|
|
251
|
+
* nothing re-fetches it: the bytes supplied here are what every agent on the run will read.
|
|
252
|
+
*/
|
|
253
|
+
export const publicTaskDocumentSchema = v.variant('kind', [
|
|
254
|
+
publicTaskSourceDocumentSchema,
|
|
255
|
+
publicTaskUploadedDocumentSchema,
|
|
256
|
+
]);
|
|
206
257
|
/**
|
|
207
258
|
* Create a task under a service. A deliberately MINIMAL external input mapped onto the
|
|
208
|
-
* internal `AddTaskInput`: it exposes only title/description/taskType/ticket, not the
|
|
209
|
-
* internal knobs (risk/model presets, pinned pipeline, agent config), so the public
|
|
259
|
+
* internal `AddTaskInput`: it exposes only title/description/taskType/ticket/documents, not the
|
|
260
|
+
* rich internal knobs (risk/model presets, pinned pipeline, agent config), so the public
|
|
210
261
|
* surface stays small and stable.
|
|
211
262
|
*/
|
|
212
263
|
export const createPublicTaskSchema = v.object({
|
|
@@ -225,6 +276,20 @@ export const createPublicTaskSchema = v.object({
|
|
|
225
276
|
* so a caller needs no bookkeeping of its own to stay idempotent.
|
|
226
277
|
*/
|
|
227
278
|
ticket: v.optional(publicTaskTicketSchema),
|
|
279
|
+
/**
|
|
280
|
+
* Requirements documents to attach to the new task, in the order the agents should read them.
|
|
281
|
+
* Omitted or empty ⇒ an unattached task, exactly as before.
|
|
282
|
+
*
|
|
283
|
+
* Every one of them is resolved or written BEFORE the task is returned, and a failure at any
|
|
284
|
+
* point takes the whole creation with it: a `201` means the task carries every document named
|
|
285
|
+
* here. The alternative is the failure this whole surface exists to avoid, where a run looks
|
|
286
|
+
* perfectly healthy while an agent works from a spec it never received.
|
|
287
|
+
*
|
|
288
|
+
* The per-document cap above bounds one attachment; the CORPUS is bounded separately by the
|
|
289
|
+
* run's materialised-context budget, which is shared with linked tracker issues and cannot be
|
|
290
|
+
* known here. Overflowing it refuses the run's first dispatch and names what did not fit.
|
|
291
|
+
*/
|
|
292
|
+
documents: v.optional(v.pipe(v.array(publicTaskDocumentSchema), v.maxLength(MAX_TASK_DOCUMENTS))),
|
|
228
293
|
});
|
|
229
294
|
/**
|
|
230
295
|
* Start (run) a task. `pipelineId` is optional — it falls back to the task's pinned
|
package/dist/public-api.js.map
CHANGED
|
@@ -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,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AACvF,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAEjD,8EAA8E;AAC9E,0EAA0E;AAC1E,EAAE;AACF,6EAA6E;AAC7E,2EAA2E;AAC3E,gFAAgF;AAChF,+EAA+E;AAC/E,8EAA8E;AAC9E,+DAA+D;AAC/D,EAAE;AACF,+EAA+E;AAC/E,8EAA8E;AAC9E,2EAA2E;AAC3E,mFAAmF;AACnF,qFAAqF;AACrF,8EAA8E;AAE9E,sFAAsF;AAEtF;;;;;GAKG;AACH,MAAM,YAAY,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,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AA4F;IAC5F,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,6EAA6E;IAC7E,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,oFAAoF;IACpF,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,uFAAuF;IACvF,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;CACtB,CAAC,CAAA;AAGF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,2EAA2E;IAC3E,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,qEAAqE;IACrE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,MAAM,EAAE,uBAAuB;IAC/B,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC;CACpC,CAAC,CAAA"}
|
|
@@ -182,7 +182,7 @@ export declare const listDocumentsContract: {
|
|
|
182
182
|
}, undefined>;
|
|
183
183
|
}, undefined>;
|
|
184
184
|
readonly 200: v.ArraySchema<v.ObjectSchema<{
|
|
185
|
-
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear"], undefined>;
|
|
185
|
+
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear", "upload"], undefined>;
|
|
186
186
|
readonly externalId: v.StringSchema<undefined>;
|
|
187
187
|
readonly title: v.StringSchema<undefined>;
|
|
188
188
|
readonly url: v.StringSchema<undefined>;
|
|
@@ -229,7 +229,7 @@ export declare const importDocumentContract: {
|
|
|
229
229
|
}, undefined>;
|
|
230
230
|
}, undefined>;
|
|
231
231
|
readonly 201: v.ObjectSchema<{
|
|
232
|
-
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear"], undefined>;
|
|
232
|
+
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear", "upload"], undefined>;
|
|
233
233
|
readonly externalId: v.StringSchema<undefined>;
|
|
234
234
|
readonly title: v.StringSchema<undefined>;
|
|
235
235
|
readonly url: v.StringSchema<undefined>;
|
|
@@ -321,7 +321,7 @@ export declare const planDocumentContract: {
|
|
|
321
321
|
}, undefined>;
|
|
322
322
|
}, undefined>;
|
|
323
323
|
readonly 200: v.ObjectSchema<{
|
|
324
|
-
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear"], undefined>;
|
|
324
|
+
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear", "upload"], undefined>;
|
|
325
325
|
readonly externalId: v.StringSchema<undefined>;
|
|
326
326
|
readonly planner: v.PicklistSchema<["llm", "headings"], undefined>;
|
|
327
327
|
readonly frames: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -380,7 +380,7 @@ export declare const spawnDocumentContract: {
|
|
|
380
380
|
}, undefined>;
|
|
381
381
|
readonly 201: v.ObjectSchema<{
|
|
382
382
|
readonly plan: v.ObjectSchema<{
|
|
383
|
-
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear"], undefined>;
|
|
383
|
+
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear", "upload"], undefined>;
|
|
384
384
|
readonly externalId: v.StringSchema<undefined>;
|
|
385
385
|
readonly planner: v.PicklistSchema<["llm", "headings"], undefined>;
|
|
386
386
|
readonly frames: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -412,7 +412,7 @@ export declare const linkDocumentContract: {
|
|
|
412
412
|
readonly method: "post";
|
|
413
413
|
readonly pathResolver: () => string;
|
|
414
414
|
readonly requestBodySchema: v.ObjectSchema<{
|
|
415
|
-
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear"], undefined>;
|
|
415
|
+
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear", "upload"], undefined>;
|
|
416
416
|
readonly externalId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
417
417
|
readonly blockId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
418
418
|
}, undefined>;
|
|
@@ -440,7 +440,7 @@ export declare const linkDocumentContract: {
|
|
|
440
440
|
}, undefined>;
|
|
441
441
|
}, undefined>;
|
|
442
442
|
readonly 201: v.ObjectSchema<{
|
|
443
|
-
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear"], undefined>;
|
|
443
|
+
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear", "upload"], undefined>;
|
|
444
444
|
readonly externalId: v.StringSchema<undefined>;
|
|
445
445
|
readonly title: v.StringSchema<undefined>;
|
|
446
446
|
readonly url: v.StringSchema<undefined>;
|
|
@@ -479,7 +479,7 @@ export declare const listDocumentRoleLinksContract: {
|
|
|
479
479
|
}, undefined>;
|
|
480
480
|
}, undefined>;
|
|
481
481
|
readonly 200: v.ArraySchema<v.ObjectSchema<{
|
|
482
|
-
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear"], undefined>;
|
|
482
|
+
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear", "upload"], undefined>;
|
|
483
483
|
readonly externalId: v.StringSchema<undefined>;
|
|
484
484
|
readonly title: v.StringSchema<undefined>;
|
|
485
485
|
readonly url: v.StringSchema<undefined>;
|
|
@@ -495,7 +495,7 @@ export declare const linkDocumentForKindContract: {
|
|
|
495
495
|
readonly method: "post";
|
|
496
496
|
readonly pathResolver: () => string;
|
|
497
497
|
readonly requestBodySchema: v.ObjectSchema<{
|
|
498
|
-
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear"], undefined>;
|
|
498
|
+
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear", "upload"], undefined>;
|
|
499
499
|
readonly externalId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
500
500
|
readonly role: v.PicklistSchema<["template", "exemplar"], undefined>;
|
|
501
501
|
readonly docKind: v.PicklistSchema<readonly ["prd", "rfc", "adr", "design", "technical", "api", "runbook", "research", "reference", "other"], undefined>;
|
|
@@ -524,7 +524,7 @@ export declare const linkDocumentForKindContract: {
|
|
|
524
524
|
}, undefined>;
|
|
525
525
|
}, undefined>;
|
|
526
526
|
readonly 201: v.ObjectSchema<{
|
|
527
|
-
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear"], undefined>;
|
|
527
|
+
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear", "upload"], undefined>;
|
|
528
528
|
readonly externalId: v.StringSchema<undefined>;
|
|
529
529
|
readonly title: v.StringSchema<undefined>;
|
|
530
530
|
readonly url: v.StringSchema<undefined>;
|
|
@@ -540,7 +540,7 @@ export declare const unlinkDocumentForKindContract: {
|
|
|
540
540
|
readonly method: "post";
|
|
541
541
|
readonly pathResolver: () => string;
|
|
542
542
|
readonly requestBodySchema: v.ObjectSchema<{
|
|
543
|
-
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear"], undefined>;
|
|
543
|
+
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear", "upload"], undefined>;
|
|
544
544
|
readonly externalId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
545
545
|
}, undefined>;
|
|
546
546
|
readonly responsesByStatusCode: {
|
|
@@ -43,7 +43,7 @@ export declare const putNotificationWebhookContract: {
|
|
|
43
43
|
readonly method: "put";
|
|
44
44
|
readonly pathResolver: () => string;
|
|
45
45
|
readonly requestBodySchema: v.ObjectSchema<{
|
|
46
|
-
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, undefined>, v.StartsWithAction<string, "https://", "The webhook endpoint must be an https:// URL">, v.MaxLengthAction<string, 2000, undefined>]>;
|
|
46
|
+
readonly url: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, undefined>, v.StartsWithAction<string, "https://", "The webhook endpoint must be an https:// URL">, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
47
47
|
readonly types: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "judge_review", "pr_review_ready", "initiative", "platform_health", "infra_unreachable", "budget_paused", "key_drift", "merge_tag_request"], undefined>, undefined>, undefined>;
|
|
48
48
|
readonly runEvents: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["run.started", "run.completed", "run.failed"], undefined>, undefined>, undefined>;
|
|
49
49
|
readonly alertEvents: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["platform_health.firing", "platform_health.resolved"], undefined>, undefined>, undefined>;
|
|
@@ -114,4 +114,132 @@ export declare const deleteNotificationWebhookContract: {
|
|
|
114
114
|
readonly 204: typeof ContractNoBody;
|
|
115
115
|
};
|
|
116
116
|
};
|
|
117
|
+
/**
|
|
118
|
+
* Read the workspace's registered endpoint. `{ webhook: null }` when none is registered: a real
|
|
119
|
+
* answer rather than a 404, so a caller's startup self-check ("am I already wired up?") reads one
|
|
120
|
+
* response shape instead of branching on a status the surface also uses for a bad path.
|
|
121
|
+
*/
|
|
122
|
+
export declare const getPublicNotificationWebhookContract: {
|
|
123
|
+
readonly method: "get";
|
|
124
|
+
readonly pathResolver: () => string;
|
|
125
|
+
readonly responsesByStatusCode: {
|
|
126
|
+
readonly '4xx': v.ObjectSchema<{
|
|
127
|
+
readonly error: v.ObjectSchema<{
|
|
128
|
+
readonly code: v.StringSchema<undefined>;
|
|
129
|
+
readonly message: v.StringSchema<undefined>;
|
|
130
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
131
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
132
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
133
|
+
readonly message: v.StringSchema<undefined>;
|
|
134
|
+
}, undefined>, undefined>, undefined>;
|
|
135
|
+
}, undefined>;
|
|
136
|
+
}, undefined>;
|
|
137
|
+
readonly '5xx': v.ObjectSchema<{
|
|
138
|
+
readonly error: v.ObjectSchema<{
|
|
139
|
+
readonly code: v.StringSchema<undefined>;
|
|
140
|
+
readonly message: v.StringSchema<undefined>;
|
|
141
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
142
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
143
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
144
|
+
readonly message: v.StringSchema<undefined>;
|
|
145
|
+
}, undefined>, undefined>, undefined>;
|
|
146
|
+
}, undefined>;
|
|
147
|
+
}, undefined>;
|
|
148
|
+
readonly 200: v.ObjectSchema<{
|
|
149
|
+
readonly webhook: v.NullableSchema<v.ObjectSchema<{
|
|
150
|
+
readonly url: v.StringSchema<undefined>;
|
|
151
|
+
readonly types: v.ArraySchema<v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "judge_review", "pr_review_ready", "initiative", "platform_health", "infra_unreachable", "budget_paused", "key_drift", "merge_tag_request"], undefined>, undefined>;
|
|
152
|
+
readonly runEvents: v.ArraySchema<v.PicklistSchema<["run.started", "run.completed", "run.failed"], undefined>, undefined>;
|
|
153
|
+
readonly alertEvents: v.ArraySchema<v.PicklistSchema<["platform_health.firing", "platform_health.resolved"], undefined>, undefined>;
|
|
154
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
155
|
+
readonly hasSecret: v.BooleanSchema<undefined>;
|
|
156
|
+
readonly updatedAt: v.NumberSchema<undefined>;
|
|
157
|
+
}, undefined>, undefined>;
|
|
158
|
+
}, undefined>;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* Register or update the endpoint. Returns the stored projection directly (not the `webhook`
|
|
163
|
+
* wrapper the read uses): a successful write always has an endpoint to describe, so wrapping it
|
|
164
|
+
* would hand every client a null to check that cannot occur.
|
|
165
|
+
*
|
|
166
|
+
* `secret` is write-only on this surface exactly as it is on the session one: supplied here,
|
|
167
|
+
* never returned by the read. An `admin` key can therefore ROTATE the signing secret but can
|
|
168
|
+
* never exfiltrate the one already stored.
|
|
169
|
+
*/
|
|
170
|
+
export declare const putPublicNotificationWebhookContract: {
|
|
171
|
+
readonly method: "put";
|
|
172
|
+
readonly pathResolver: () => string;
|
|
173
|
+
readonly requestBodySchema: v.ObjectSchema<{
|
|
174
|
+
readonly url: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, undefined>, v.StartsWithAction<string, "https://", "The webhook endpoint must be an https:// URL">, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
175
|
+
readonly types: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "judge_review", "pr_review_ready", "initiative", "platform_health", "infra_unreachable", "budget_paused", "key_drift", "merge_tag_request"], undefined>, undefined>, undefined>;
|
|
176
|
+
readonly runEvents: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["run.started", "run.completed", "run.failed"], undefined>, undefined>, undefined>;
|
|
177
|
+
readonly alertEvents: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["platform_health.firing", "platform_health.resolved"], undefined>, undefined>, undefined>;
|
|
178
|
+
readonly enabled: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
179
|
+
readonly secret: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 16, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
180
|
+
}, undefined>;
|
|
181
|
+
readonly responsesByStatusCode: {
|
|
182
|
+
readonly '4xx': v.ObjectSchema<{
|
|
183
|
+
readonly error: v.ObjectSchema<{
|
|
184
|
+
readonly code: v.StringSchema<undefined>;
|
|
185
|
+
readonly message: v.StringSchema<undefined>;
|
|
186
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
187
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
188
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
189
|
+
readonly message: v.StringSchema<undefined>;
|
|
190
|
+
}, undefined>, undefined>, undefined>;
|
|
191
|
+
}, undefined>;
|
|
192
|
+
}, undefined>;
|
|
193
|
+
readonly '5xx': v.ObjectSchema<{
|
|
194
|
+
readonly error: v.ObjectSchema<{
|
|
195
|
+
readonly code: v.StringSchema<undefined>;
|
|
196
|
+
readonly message: v.StringSchema<undefined>;
|
|
197
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
198
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
199
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
200
|
+
readonly message: v.StringSchema<undefined>;
|
|
201
|
+
}, undefined>, undefined>, undefined>;
|
|
202
|
+
}, undefined>;
|
|
203
|
+
}, undefined>;
|
|
204
|
+
readonly 200: v.ObjectSchema<{
|
|
205
|
+
readonly url: v.StringSchema<undefined>;
|
|
206
|
+
readonly types: v.ArraySchema<v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "judge_review", "pr_review_ready", "initiative", "platform_health", "infra_unreachable", "budget_paused", "key_drift", "merge_tag_request"], undefined>, undefined>;
|
|
207
|
+
readonly runEvents: v.ArraySchema<v.PicklistSchema<["run.started", "run.completed", "run.failed"], undefined>, undefined>;
|
|
208
|
+
readonly alertEvents: v.ArraySchema<v.PicklistSchema<["platform_health.firing", "platform_health.resolved"], undefined>, undefined>;
|
|
209
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
210
|
+
readonly hasSecret: v.BooleanSchema<undefined>;
|
|
211
|
+
readonly updatedAt: v.NumberSchema<undefined>;
|
|
212
|
+
}, undefined>;
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
/** Remove the endpoint (deliveries stop). Idempotent: 204 whether or not one was registered. */
|
|
216
|
+
export declare const deletePublicNotificationWebhookContract: {
|
|
217
|
+
readonly method: "delete";
|
|
218
|
+
readonly pathResolver: () => string;
|
|
219
|
+
readonly responsesByStatusCode: {
|
|
220
|
+
readonly '4xx': v.ObjectSchema<{
|
|
221
|
+
readonly error: v.ObjectSchema<{
|
|
222
|
+
readonly code: v.StringSchema<undefined>;
|
|
223
|
+
readonly message: v.StringSchema<undefined>;
|
|
224
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
225
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
226
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
227
|
+
readonly message: v.StringSchema<undefined>;
|
|
228
|
+
}, undefined>, undefined>, undefined>;
|
|
229
|
+
}, undefined>;
|
|
230
|
+
}, undefined>;
|
|
231
|
+
readonly '5xx': v.ObjectSchema<{
|
|
232
|
+
readonly error: v.ObjectSchema<{
|
|
233
|
+
readonly code: v.StringSchema<undefined>;
|
|
234
|
+
readonly message: v.StringSchema<undefined>;
|
|
235
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
236
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
237
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
238
|
+
readonly message: v.StringSchema<undefined>;
|
|
239
|
+
}, undefined>, undefined>, undefined>;
|
|
240
|
+
}, undefined>;
|
|
241
|
+
}, undefined>;
|
|
242
|
+
readonly 204: typeof ContractNoBody;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
117
245
|
//# 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;
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI/C,CAAA;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK/C,CAAA;AAEF,gGAAgG;AAChG,eAAO,MAAM,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIlD,CAAA"}
|
|
@@ -1,13 +1,24 @@
|
|
|
1
1
|
import { ContractNoBody, defineApiContract } from '@toad-contracts/valibot';
|
|
2
2
|
import * as v from 'valibot';
|
|
3
|
-
import { notificationWebhookSchema, putNotificationWebhookSchema, } from '../notification-webhooks.js';
|
|
3
|
+
import { notificationWebhookSchema, publicNotificationWebhookSchema, putNotificationWebhookSchema, } from '../notification-webhooks.js';
|
|
4
4
|
import { errorResponses } from './_shared.js';
|
|
5
|
-
// Management routes for a workspace's OUTBOUND notification webhook
|
|
6
|
-
// under `/workspaces/:workspaceId` (so paths are relative), like the tracker/Slack settings. The
|
|
7
|
-
// endpoint they configure is consumed by `WebhookNotificationChannel`, not by these routes.
|
|
5
|
+
// Management routes for a workspace's OUTBOUND notification webhook, on TWO surfaces:
|
|
8
6
|
//
|
|
9
|
-
//
|
|
10
|
-
//
|
|
7
|
+
// 1. Session-authed, mounted under `/workspaces/:workspaceId` (so paths are relative), like the
|
|
8
|
+
// tracker/Slack settings. These are writes to an integration's configuration, so they sit
|
|
9
|
+
// behind the `integrations.manage` workspace permission like every other admin controller.
|
|
10
|
+
// 2. `/api/v1/notification-webhook`, on absolute paths, authenticated in-controller by an
|
|
11
|
+
// `admin`-scope public-API key. Same three verbs against the same service.
|
|
12
|
+
//
|
|
13
|
+
// The endpoint they configure is consumed by `WebhookNotificationChannel` and the run-lifecycle /
|
|
14
|
+
// platform-alert sinks beside it, not by these routes.
|
|
15
|
+
//
|
|
16
|
+
// The second surface exists because the FIRST one made the push channel unreachable to exactly
|
|
17
|
+
// the caller it was built for. A deployment whose operator is headless has no browser session, so
|
|
18
|
+
// the receiver that run-lifecycle push exists to feed could only be registered by a human clicking
|
|
19
|
+
// through an app the feature deliberately does not need. Both surfaces are thin delegates over
|
|
20
|
+
// `NotificationWebhookService` (same URL guard, same write-only secret, same
|
|
21
|
+
// one-row-per-workspace rule), so neither can admit an endpoint the other would reject.
|
|
11
22
|
/** The workspace's registered webhook, or null when none is set. Never returns the secret. */
|
|
12
23
|
export const getNotificationWebhookContract = defineApiContract({
|
|
13
24
|
method: 'get',
|
|
@@ -30,4 +41,36 @@ export const deleteNotificationWebhookContract = defineApiContract({
|
|
|
30
41
|
pathResolver: () => '/notification-webhook',
|
|
31
42
|
responsesByStatusCode: { 204: ContractNoBody, ...errorResponses },
|
|
32
43
|
});
|
|
44
|
+
// ---- the external `/api/v1` surface (absolute paths, key-authenticated) ----
|
|
45
|
+
/**
|
|
46
|
+
* Read the workspace's registered endpoint. `{ webhook: null }` when none is registered: a real
|
|
47
|
+
* answer rather than a 404, so a caller's startup self-check ("am I already wired up?") reads one
|
|
48
|
+
* response shape instead of branching on a status the surface also uses for a bad path.
|
|
49
|
+
*/
|
|
50
|
+
export const getPublicNotificationWebhookContract = defineApiContract({
|
|
51
|
+
method: 'get',
|
|
52
|
+
pathResolver: () => '/api/v1/notification-webhook',
|
|
53
|
+
responsesByStatusCode: { 200: publicNotificationWebhookSchema, ...errorResponses },
|
|
54
|
+
});
|
|
55
|
+
/**
|
|
56
|
+
* Register or update the endpoint. Returns the stored projection directly (not the `webhook`
|
|
57
|
+
* wrapper the read uses): a successful write always has an endpoint to describe, so wrapping it
|
|
58
|
+
* would hand every client a null to check that cannot occur.
|
|
59
|
+
*
|
|
60
|
+
* `secret` is write-only on this surface exactly as it is on the session one: supplied here,
|
|
61
|
+
* never returned by the read. An `admin` key can therefore ROTATE the signing secret but can
|
|
62
|
+
* never exfiltrate the one already stored.
|
|
63
|
+
*/
|
|
64
|
+
export const putPublicNotificationWebhookContract = defineApiContract({
|
|
65
|
+
method: 'put',
|
|
66
|
+
pathResolver: () => '/api/v1/notification-webhook',
|
|
67
|
+
requestBodySchema: putNotificationWebhookSchema,
|
|
68
|
+
responsesByStatusCode: { 200: notificationWebhookSchema, ...errorResponses },
|
|
69
|
+
});
|
|
70
|
+
/** Remove the endpoint (deliveries stop). Idempotent: 204 whether or not one was registered. */
|
|
71
|
+
export const deletePublicNotificationWebhookContract = defineApiContract({
|
|
72
|
+
method: 'delete',
|
|
73
|
+
pathResolver: () => '/api/v1/notification-webhook',
|
|
74
|
+
responsesByStatusCode: { 204: ContractNoBody, ...errorResponses },
|
|
75
|
+
});
|
|
33
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,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EACL,yBAAyB,EACzB,4BAA4B,GAC7B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C,
|
|
1
|
+
{"version":3,"file":"notification-webhooks.js","sourceRoot":"","sources":["../../src/routes/notification-webhooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EACL,yBAAyB,EACzB,+BAA+B,EAC/B,4BAA4B,GAC7B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C,sFAAsF;AACtF,EAAE;AACF,iGAAiG;AACjG,8FAA8F;AAC9F,+FAA+F;AAC/F,2FAA2F;AAC3F,+EAA+E;AAC/E,EAAE;AACF,kGAAkG;AAClG,uDAAuD;AACvD,EAAE;AACF,+FAA+F;AAC/F,kGAAkG;AAClG,mGAAmG;AACnG,+FAA+F;AAC/F,6EAA6E;AAC7E,wFAAwF;AAExF,8FAA8F;AAC9F,MAAM,CAAC,MAAM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C,MAAM,uCAAuC,GAAG,iBAAiB,CAAC;IACvE,MAAM,EAAE,QAAQ;IAChB,YAAY,EAAE,GAAG,EAAE,CAAC,8BAA8B;IAClD,qBAAqB,EAAE,EAAE,GAAG,EAAE,cAAc,EAAE,GAAG,cAAc,EAAE;CAClE,CAAC,CAAA"}
|
|
@@ -381,6 +381,23 @@ export declare const createPublicTaskContract: {
|
|
|
381
381
|
readonly source: import("valibot").UnionSchema<[import("valibot").PicklistSchema<readonly ["jira", "github", "linear"], undefined>, import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
382
382
|
readonly ref: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 500, undefined>]>;
|
|
383
383
|
}, undefined>, undefined>;
|
|
384
|
+
readonly documents: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").ArraySchema<import("valibot").VariantSchema<"kind", [import("valibot").ObjectSchema<{
|
|
385
|
+
readonly kind: import("valibot").LiteralSchema<"source", undefined>;
|
|
386
|
+
readonly source: import("valibot").PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear"], undefined>;
|
|
387
|
+
readonly ref: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 500, undefined>]>;
|
|
388
|
+
}, undefined>, import("valibot").ObjectSchema<{
|
|
389
|
+
readonly kind: import("valibot").LiteralSchema<"upload", undefined>;
|
|
390
|
+
readonly title: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 200, undefined>]>;
|
|
391
|
+
readonly content: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 100000, undefined>]>;
|
|
392
|
+
}, undefined>], undefined>, undefined>, import("valibot").MaxLengthAction<({
|
|
393
|
+
kind: "source";
|
|
394
|
+
source: "confluence" | "figma" | "github" | "linear" | "notion" | "zeplin";
|
|
395
|
+
ref: string;
|
|
396
|
+
} | {
|
|
397
|
+
kind: "upload";
|
|
398
|
+
title: string;
|
|
399
|
+
content: string;
|
|
400
|
+
})[], 10, undefined>]>, undefined>;
|
|
384
401
|
}, undefined>;
|
|
385
402
|
readonly responsesByStatusCode: {
|
|
386
403
|
readonly '4xx': import("valibot").ObjectSchema<{
|
|
@@ -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;AA6C3E,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIpC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKrC,CAAA;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKrC,CAAA;AAIF;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKlC,CAAA;AAEF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKjC,CAAA;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK/B,CAAA;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAu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