@cat-factory/contracts 0.219.0 → 0.221.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/accountSettings.d.ts +75 -0
- package/dist/accountSettings.d.ts.map +1 -1
- package/dist/accountSettings.js +13 -0
- package/dist/accountSettings.js.map +1 -1
- package/dist/bug-hunt.d.ts +5 -5
- package/dist/execution.d.ts +74 -0
- package/dist/execution.d.ts.map +1 -1
- package/dist/execution.js +34 -0
- package/dist/execution.js.map +1 -1
- package/dist/localModels.d.ts +23 -0
- package/dist/localModels.d.ts.map +1 -1
- package/dist/localModels.js +29 -0
- package/dist/localModels.js.map +1 -1
- package/dist/notification-webhooks.d.ts +7 -0
- package/dist/notification-webhooks.d.ts.map +1 -1
- package/dist/notifications.d.ts +54 -10
- package/dist/notifications.d.ts.map +1 -1
- package/dist/notifications.js +24 -7
- package/dist/notifications.js.map +1 -1
- package/dist/observability.d.ts +230 -3
- package/dist/observability.d.ts.map +1 -1
- package/dist/observability.js +173 -2
- package/dist/observability.js.map +1 -1
- package/dist/public-api.d.ts +7 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/recurring.d.ts +139 -4
- package/dist/recurring.d.ts.map +1 -1
- package/dist/recurring.js +47 -0
- package/dist/recurring.js.map +1 -1
- package/dist/reserved-env-keys.d.ts.map +1 -1
- package/dist/reserved-env-keys.js +2 -0
- package/dist/reserved-env-keys.js.map +1 -1
- package/dist/routes/accounts.d.ts +56 -2
- package/dist/routes/accounts.d.ts.map +1 -1
- package/dist/routes/agent-runs.d.ts +12 -0
- package/dist/routes/agent-runs.d.ts.map +1 -1
- package/dist/routes/auth.d.ts +82 -0
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/auth.js +29 -0
- package/dist/routes/auth.js.map +1 -1
- package/dist/routes/bug-hunt.d.ts +17 -5
- package/dist/routes/bug-hunt.d.ts.map +1 -1
- package/dist/routes/execution.d.ts +48 -0
- package/dist/routes/execution.d.ts.map +1 -1
- package/dist/routes/human-review.d.ts +6 -0
- package/dist/routes/human-review.d.ts.map +1 -1
- package/dist/routes/human-test.d.ts +30 -0
- package/dist/routes/human-test.d.ts.map +1 -1
- package/dist/routes/localModels.d.ts +3 -0
- package/dist/routes/localModels.d.ts.map +1 -1
- package/dist/routes/notifications.d.ts +21 -0
- package/dist/routes/notifications.d.ts.map +1 -1
- package/dist/routes/public-api.d.ts +21 -0
- package/dist/routes/public-api.d.ts.map +1 -1
- package/dist/routes/recurring.d.ts +18 -6
- package/dist/routes/recurring.d.ts.map +1 -1
- package/dist/routes/tasks.d.ts +14 -14
- package/dist/routes/visual-confirm.d.ts +18 -0
- package/dist/routes/visual-confirm.d.ts.map +1 -1
- package/dist/routes/workspaces.d.ts +32 -2
- package/dist/routes/workspaces.d.ts.map +1 -1
- package/dist/snapshot.d.ts +16 -1
- package/dist/snapshot.d.ts.map +1 -1
- package/dist/tasks.d.ts +43 -12
- package/dist/tasks.d.ts.map +1 -1
- package/dist/tasks.js +40 -3
- package/dist/tasks.js.map +1 -1
- package/package.json +1 -1
package/dist/routes/tasks.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export declare const listTaskSourcesContract: {
|
|
|
28
28
|
}, undefined>;
|
|
29
29
|
readonly 200: v.ObjectSchema<{
|
|
30
30
|
readonly sources: v.ArraySchema<v.ObjectSchema<{
|
|
31
|
-
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
31
|
+
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
32
32
|
readonly label: v.StringSchema<undefined>;
|
|
33
33
|
readonly icon: v.StringSchema<undefined>;
|
|
34
34
|
readonly credentialFields: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -113,7 +113,7 @@ export declare const listTaskConnectionsContract: {
|
|
|
113
113
|
}, undefined>;
|
|
114
114
|
readonly 200: v.ObjectSchema<{
|
|
115
115
|
readonly connections: v.ArraySchema<v.ObjectSchema<{
|
|
116
|
-
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
116
|
+
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
117
117
|
readonly label: v.StringSchema<undefined>;
|
|
118
118
|
readonly connectedAt: v.NumberSchema<undefined>;
|
|
119
119
|
}, undefined>, undefined>;
|
|
@@ -155,7 +155,7 @@ export declare const connectTaskSourceContract: {
|
|
|
155
155
|
}, undefined>;
|
|
156
156
|
}, undefined>;
|
|
157
157
|
readonly 201: v.ObjectSchema<{
|
|
158
|
-
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
158
|
+
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
159
159
|
readonly label: v.StringSchema<undefined>;
|
|
160
160
|
readonly connectedAt: v.NumberSchema<undefined>;
|
|
161
161
|
}, undefined>;
|
|
@@ -228,7 +228,7 @@ export declare const diagnoseTaskSourceContract: {
|
|
|
228
228
|
}, undefined>;
|
|
229
229
|
}, undefined>;
|
|
230
230
|
readonly 200: v.ObjectSchema<{
|
|
231
|
-
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
231
|
+
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
232
232
|
readonly ok: v.BooleanSchema<undefined>;
|
|
233
233
|
readonly status: v.PicklistSchema<["ready", "not_installed", "not_connected", "auth_failed", "forbidden", "unreachable", "error"], undefined>;
|
|
234
234
|
readonly message: v.StringSchema<undefined>;
|
|
@@ -268,7 +268,7 @@ export declare const getTaskSourceWebhookContract: {
|
|
|
268
268
|
}, undefined>;
|
|
269
269
|
}, undefined>;
|
|
270
270
|
readonly 200: v.ObjectSchema<{
|
|
271
|
-
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
271
|
+
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
272
272
|
readonly supported: v.BooleanSchema<undefined>;
|
|
273
273
|
readonly configured: v.BooleanSchema<undefined>;
|
|
274
274
|
readonly deliveryPath: v.StringSchema<undefined>;
|
|
@@ -311,7 +311,7 @@ export declare const configureTaskSourceWebhookContract: {
|
|
|
311
311
|
}, undefined>;
|
|
312
312
|
}, undefined>;
|
|
313
313
|
readonly 201: v.ObjectSchema<{
|
|
314
|
-
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
314
|
+
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
315
315
|
readonly supported: v.BooleanSchema<undefined>;
|
|
316
316
|
readonly configured: v.BooleanSchema<undefined>;
|
|
317
317
|
readonly deliveryPath: v.StringSchema<undefined>;
|
|
@@ -355,7 +355,7 @@ export declare const updateTaskSourceWebhookContract: {
|
|
|
355
355
|
}, undefined>;
|
|
356
356
|
}, undefined>;
|
|
357
357
|
readonly 200: v.ObjectSchema<{
|
|
358
|
-
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
358
|
+
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
359
359
|
readonly supported: v.BooleanSchema<undefined>;
|
|
360
360
|
readonly configured: v.BooleanSchema<undefined>;
|
|
361
361
|
readonly deliveryPath: v.StringSchema<undefined>;
|
|
@@ -493,7 +493,7 @@ export declare const listTasksContract: {
|
|
|
493
493
|
}, undefined>;
|
|
494
494
|
}, undefined>;
|
|
495
495
|
readonly 200: v.ArraySchema<v.ObjectSchema<{
|
|
496
|
-
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
496
|
+
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
497
497
|
readonly externalId: v.StringSchema<undefined>;
|
|
498
498
|
readonly title: v.StringSchema<undefined>;
|
|
499
499
|
readonly url: v.StringSchema<undefined>;
|
|
@@ -549,7 +549,7 @@ export declare const importTaskContract: {
|
|
|
549
549
|
}, undefined>;
|
|
550
550
|
}, undefined>;
|
|
551
551
|
readonly 201: v.ObjectSchema<{
|
|
552
|
-
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
552
|
+
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
553
553
|
readonly externalId: v.StringSchema<undefined>;
|
|
554
554
|
readonly title: v.StringSchema<undefined>;
|
|
555
555
|
readonly url: v.StringSchema<undefined>;
|
|
@@ -607,7 +607,7 @@ export declare const searchTasksContract: {
|
|
|
607
607
|
}, undefined>;
|
|
608
608
|
readonly 200: v.ObjectSchema<{
|
|
609
609
|
readonly results: v.ArraySchema<v.ObjectSchema<{
|
|
610
|
-
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
610
|
+
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
611
611
|
readonly externalId: v.StringSchema<undefined>;
|
|
612
612
|
readonly title: v.StringSchema<undefined>;
|
|
613
613
|
readonly url: v.StringSchema<undefined>;
|
|
@@ -621,7 +621,7 @@ export declare const linkTaskContract: {
|
|
|
621
621
|
readonly method: "post";
|
|
622
622
|
readonly pathResolver: () => string;
|
|
623
623
|
readonly requestBodySchema: v.ObjectSchema<{
|
|
624
|
-
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
624
|
+
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
625
625
|
readonly externalId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
626
626
|
readonly blockId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
627
627
|
}, undefined>;
|
|
@@ -649,7 +649,7 @@ export declare const linkTaskContract: {
|
|
|
649
649
|
}, undefined>;
|
|
650
650
|
}, undefined>;
|
|
651
651
|
readonly 201: v.ObjectSchema<{
|
|
652
|
-
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
652
|
+
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
653
653
|
readonly externalId: v.StringSchema<undefined>;
|
|
654
654
|
readonly title: v.StringSchema<undefined>;
|
|
655
655
|
readonly url: v.StringSchema<undefined>;
|
|
@@ -674,7 +674,7 @@ export declare const createTaskFromIssueContract: {
|
|
|
674
674
|
readonly method: "post";
|
|
675
675
|
readonly pathResolver: () => string;
|
|
676
676
|
readonly requestBodySchema: v.ObjectSchema<{
|
|
677
|
-
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
677
|
+
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
678
678
|
readonly externalId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
679
679
|
readonly containerId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
680
680
|
}, undefined>;
|
|
@@ -1073,7 +1073,7 @@ export declare const createTaskFromIssueContract: {
|
|
|
1073
1073
|
readonly accessDenied: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1074
1074
|
}, undefined>;
|
|
1075
1075
|
readonly task: v.ObjectSchema<{
|
|
1076
|
-
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
1076
|
+
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
1077
1077
|
readonly externalId: v.StringSchema<undefined>;
|
|
1078
1078
|
readonly title: v.StringSchema<undefined>;
|
|
1079
1079
|
readonly url: v.StringSchema<undefined>;
|
|
@@ -709,6 +709,12 @@ export declare const approveVisualConfirmContract: {
|
|
|
709
709
|
readonly jobId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
710
710
|
readonly startedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
711
711
|
readonly finishedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
712
|
+
readonly firstStartedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
713
|
+
readonly attempts: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
714
|
+
readonly dispatches: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
715
|
+
readonly agentKind: v.StringSchema<undefined>;
|
|
716
|
+
readonly count: v.NumberSchema<undefined>;
|
|
717
|
+
}, undefined>, undefined>, undefined>;
|
|
712
718
|
readonly lastActivityAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
713
719
|
readonly pausedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
714
720
|
readonly evictionRecoveries: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
@@ -1739,6 +1745,12 @@ export declare const requestVisualConfirmFixContract: {
|
|
|
1739
1745
|
readonly jobId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1740
1746
|
readonly startedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1741
1747
|
readonly finishedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1748
|
+
readonly firstStartedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1749
|
+
readonly attempts: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1750
|
+
readonly dispatches: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1751
|
+
readonly agentKind: v.StringSchema<undefined>;
|
|
1752
|
+
readonly count: v.NumberSchema<undefined>;
|
|
1753
|
+
}, undefined>, undefined>, undefined>;
|
|
1742
1754
|
readonly lastActivityAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1743
1755
|
readonly pausedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1744
1756
|
readonly evictionRecoveries: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
@@ -2767,6 +2779,12 @@ export declare const recaptureVisualConfirmContract: {
|
|
|
2767
2779
|
readonly jobId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2768
2780
|
readonly startedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
2769
2781
|
readonly finishedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
2782
|
+
readonly firstStartedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
2783
|
+
readonly attempts: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
2784
|
+
readonly dispatches: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
2785
|
+
readonly agentKind: v.StringSchema<undefined>;
|
|
2786
|
+
readonly count: v.NumberSchema<undefined>;
|
|
2787
|
+
}, undefined>, undefined>, undefined>;
|
|
2770
2788
|
readonly lastActivityAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
2771
2789
|
readonly pausedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
2772
2790
|
readonly evictionRecoveries: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
@@ -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
|
|
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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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMzC,CAAA"}
|
|
@@ -1212,6 +1212,12 @@ export declare const createWorkspaceContract: {
|
|
|
1212
1212
|
readonly jobId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1213
1213
|
readonly startedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1214
1214
|
readonly finishedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1215
|
+
readonly firstStartedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1216
|
+
readonly attempts: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1217
|
+
readonly dispatches: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1218
|
+
readonly agentKind: v.StringSchema<undefined>;
|
|
1219
|
+
readonly count: v.NumberSchema<undefined>;
|
|
1220
|
+
}, undefined>, undefined>, undefined>;
|
|
1215
1221
|
readonly lastActivityAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1216
1222
|
readonly pausedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1217
1223
|
readonly evictionRecoveries: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
@@ -1704,6 +1710,13 @@ export declare const createWorkspaceContract: {
|
|
|
1704
1710
|
readonly unmergedRepos: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1705
1711
|
readonly platformWindow: v.OptionalSchema<v.PicklistSchema<["1h", "24h", "7d"], undefined>, undefined>;
|
|
1706
1712
|
readonly platformAlerts: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["failure_rate_high", "duration_p99_high", "backlog_high", "throughput_stalled", "failure_kind_dominant", "sweep_degraded"], undefined>, undefined>, undefined>;
|
|
1713
|
+
readonly platformFailingRuns: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1714
|
+
readonly executionId: v.StringSchema<undefined>;
|
|
1715
|
+
readonly blockId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1716
|
+
readonly failureKind: v.StringSchema<undefined>;
|
|
1717
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
1718
|
+
}, undefined>, undefined>, undefined>;
|
|
1719
|
+
readonly platformFailedTotal: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1707
1720
|
readonly unreachableAreas: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["ephemeralEnvironments", "agentExecutor", "binaryStorage"], undefined>, undefined>, undefined>;
|
|
1708
1721
|
readonly driftAffected: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1709
1722
|
readonly source: v.StringSchema<undefined>;
|
|
@@ -1988,11 +2001,12 @@ export declare const createWorkspaceContract: {
|
|
|
1988
2001
|
}, undefined>;
|
|
1989
2002
|
readonly onDemand: v.BooleanSchema<undefined>;
|
|
1990
2003
|
readonly issueIntake: v.OptionalSchema<v.ObjectSchema<{
|
|
1991
|
-
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
2004
|
+
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
1992
2005
|
readonly board: v.ObjectSchema<{
|
|
1993
2006
|
readonly jiraProjectKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
1994
2007
|
readonly linearTeamId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
1995
2008
|
readonly githubRepo: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
2009
|
+
readonly boardId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
1996
2010
|
}, undefined>;
|
|
1997
2011
|
readonly predicates: v.ObjectSchema<{
|
|
1998
2012
|
readonly titleFragment: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
@@ -2000,6 +2014,7 @@ export declare const createWorkspaceContract: {
|
|
|
2000
2014
|
readonly issueType: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
2001
2015
|
}, undefined>;
|
|
2002
2016
|
readonly inProgressLabel: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
2017
|
+
readonly dispatch: v.OptionalSchema<v.PicklistSchema<["queue", "per-ticket"], undefined>, undefined>;
|
|
2003
2018
|
}, undefined>, undefined>;
|
|
2004
2019
|
readonly enabled: v.BooleanSchema<undefined>;
|
|
2005
2020
|
readonly lastRunAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
@@ -3938,6 +3953,12 @@ export declare const getWorkspaceContract: {
|
|
|
3938
3953
|
readonly jobId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3939
3954
|
readonly startedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
3940
3955
|
readonly finishedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
3956
|
+
readonly firstStartedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
3957
|
+
readonly attempts: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
3958
|
+
readonly dispatches: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
3959
|
+
readonly agentKind: v.StringSchema<undefined>;
|
|
3960
|
+
readonly count: v.NumberSchema<undefined>;
|
|
3961
|
+
}, undefined>, undefined>, undefined>;
|
|
3941
3962
|
readonly lastActivityAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
3942
3963
|
readonly pausedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
3943
3964
|
readonly evictionRecoveries: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
@@ -4430,6 +4451,13 @@ export declare const getWorkspaceContract: {
|
|
|
4430
4451
|
readonly unmergedRepos: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
4431
4452
|
readonly platformWindow: v.OptionalSchema<v.PicklistSchema<["1h", "24h", "7d"], undefined>, undefined>;
|
|
4432
4453
|
readonly platformAlerts: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["failure_rate_high", "duration_p99_high", "backlog_high", "throughput_stalled", "failure_kind_dominant", "sweep_degraded"], undefined>, undefined>, undefined>;
|
|
4454
|
+
readonly platformFailingRuns: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
4455
|
+
readonly executionId: v.StringSchema<undefined>;
|
|
4456
|
+
readonly blockId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
4457
|
+
readonly failureKind: v.StringSchema<undefined>;
|
|
4458
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
4459
|
+
}, undefined>, undefined>, undefined>;
|
|
4460
|
+
readonly platformFailedTotal: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
4433
4461
|
readonly unreachableAreas: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["ephemeralEnvironments", "agentExecutor", "binaryStorage"], undefined>, undefined>, undefined>;
|
|
4434
4462
|
readonly driftAffected: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
4435
4463
|
readonly source: v.StringSchema<undefined>;
|
|
@@ -4714,11 +4742,12 @@ export declare const getWorkspaceContract: {
|
|
|
4714
4742
|
}, undefined>;
|
|
4715
4743
|
readonly onDemand: v.BooleanSchema<undefined>;
|
|
4716
4744
|
readonly issueIntake: v.OptionalSchema<v.ObjectSchema<{
|
|
4717
|
-
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
4745
|
+
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
4718
4746
|
readonly board: v.ObjectSchema<{
|
|
4719
4747
|
readonly jiraProjectKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
4720
4748
|
readonly linearTeamId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
4721
4749
|
readonly githubRepo: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
4750
|
+
readonly boardId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
4722
4751
|
}, undefined>;
|
|
4723
4752
|
readonly predicates: v.ObjectSchema<{
|
|
4724
4753
|
readonly titleFragment: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
@@ -4726,6 +4755,7 @@ export declare const getWorkspaceContract: {
|
|
|
4726
4755
|
readonly issueType: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
4727
4756
|
}, undefined>;
|
|
4728
4757
|
readonly inProgressLabel: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
4758
|
+
readonly dispatch: v.OptionalSchema<v.PicklistSchema<["queue", "per-ticket"], undefined>, undefined>;
|
|
4729
4759
|
}, undefined>, undefined>;
|
|
4730
4760
|
readonly enabled: v.BooleanSchema<undefined>;
|
|
4731
4761
|
readonly lastRunAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../../src/routes/workspaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAe5B;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;aAGlC,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAI7E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIjC,CAAA;AAEF,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../../src/routes/workspaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAe5B;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;aAGlC,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAI7E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIjC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK/B,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMlC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKlC,CAAA"}
|
package/dist/snapshot.d.ts
CHANGED
|
@@ -1150,6 +1150,12 @@ export declare const workspaceSnapshotSchema: v.ObjectSchema<{
|
|
|
1150
1150
|
readonly jobId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1151
1151
|
readonly startedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1152
1152
|
readonly finishedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1153
|
+
readonly firstStartedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1154
|
+
readonly attempts: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1155
|
+
readonly dispatches: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1156
|
+
readonly agentKind: v.StringSchema<undefined>;
|
|
1157
|
+
readonly count: v.NumberSchema<undefined>;
|
|
1158
|
+
}, undefined>, undefined>, undefined>;
|
|
1153
1159
|
readonly lastActivityAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1154
1160
|
readonly pausedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1155
1161
|
readonly evictionRecoveries: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
@@ -1690,6 +1696,13 @@ export declare const workspaceSnapshotSchema: v.ObjectSchema<{
|
|
|
1690
1696
|
readonly unmergedRepos: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1691
1697
|
readonly platformWindow: v.OptionalSchema<v.PicklistSchema<["1h", "24h", "7d"], undefined>, undefined>;
|
|
1692
1698
|
readonly platformAlerts: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["failure_rate_high", "duration_p99_high", "backlog_high", "throughput_stalled", "failure_kind_dominant", "sweep_degraded"], undefined>, undefined>, undefined>;
|
|
1699
|
+
readonly platformFailingRuns: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1700
|
+
readonly executionId: v.StringSchema<undefined>;
|
|
1701
|
+
readonly blockId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1702
|
+
readonly failureKind: v.StringSchema<undefined>;
|
|
1703
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
1704
|
+
}, undefined>, undefined>, undefined>;
|
|
1705
|
+
readonly platformFailedTotal: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1693
1706
|
readonly unreachableAreas: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["ephemeralEnvironments", "agentExecutor", "binaryStorage"], undefined>, undefined>, undefined>;
|
|
1694
1707
|
readonly driftAffected: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1695
1708
|
readonly source: v.StringSchema<undefined>;
|
|
@@ -2021,11 +2034,12 @@ export declare const workspaceSnapshotSchema: v.ObjectSchema<{
|
|
|
2021
2034
|
}, undefined>;
|
|
2022
2035
|
readonly onDemand: v.BooleanSchema<undefined>;
|
|
2023
2036
|
readonly issueIntake: v.OptionalSchema<v.ObjectSchema<{
|
|
2024
|
-
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
2037
|
+
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
2025
2038
|
readonly board: v.ObjectSchema<{
|
|
2026
2039
|
readonly jiraProjectKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
2027
2040
|
readonly linearTeamId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
2028
2041
|
readonly githubRepo: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
2042
|
+
readonly boardId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
2029
2043
|
}, undefined>;
|
|
2030
2044
|
readonly predicates: v.ObjectSchema<{
|
|
2031
2045
|
readonly titleFragment: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
@@ -2033,6 +2047,7 @@ export declare const workspaceSnapshotSchema: v.ObjectSchema<{
|
|
|
2033
2047
|
readonly issueType: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
2034
2048
|
}, undefined>;
|
|
2035
2049
|
readonly inProgressLabel: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
2050
|
+
readonly dispatch: v.OptionalSchema<v.PicklistSchema<["queue", "per-ticket"], undefined>, undefined>;
|
|
2036
2051
|
}, undefined>, undefined>;
|
|
2037
2052
|
readonly enabled: v.BooleanSchema<undefined>;
|
|
2038
2053
|
readonly lastRunAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
package/dist/snapshot.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../src/snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAuC5B;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB;;;aAGhC,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAE7E,4EAA4E;AAC5E,eAAO,MAAM,uBAAuB;;;IAGlC;;;;;OAKG;;aAEH,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAE7E,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../src/snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAuC5B;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB;;;aAGhC,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAE7E,4EAA4E;AAC5E,eAAO,MAAM,uBAAuB;;;IAGlC;;;;;OAKG;;aAEH,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAE7E,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEH;;;;;;;OAOG;;;;;;IAEH;;;;;;;OAOG;;;;;;IAEH;;;;;OAKG;;;;;aAEH,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAA"}
|
package/dist/tasks.d.ts
CHANGED
|
@@ -1,10 +1,41 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
|
-
/** The
|
|
3
|
-
export declare const
|
|
2
|
+
/** The task sources this build ships. A deployment registers its own beside them (see below). */
|
|
3
|
+
export declare const BUILTIN_TASK_SOURCE_KINDS: readonly ['jira', 'github', 'linear'];
|
|
4
|
+
/**
|
|
5
|
+
* A BUILT-IN task source OR a CONSUMER-namespaced one ({@link namespacedIdSchema},
|
|
6
|
+
* `<ns>:<name>`, e.g. `acme:servicenow`) a deployment registers in code on its app-owned
|
|
7
|
+
* `TaskSourceRegistry` — the same `picklist ∪ namespaced` shape `taskTypeSchema` uses, for the
|
|
8
|
+
* same reasons.
|
|
9
|
+
*
|
|
10
|
+
* Two consequences are load-bearing:
|
|
11
|
+
*
|
|
12
|
+
* - **The built-ins keep their BARE ids**, so every persisted `source` column, every stored
|
|
13
|
+
* connection and every imported issue row is unchanged by the widening. There is no migration
|
|
14
|
+
* here because there is nothing to migrate.
|
|
15
|
+
* - **A bare non-built-in id still FAILS validation.** `servicenow` is a typo; `acme:servicenow`
|
|
16
|
+
* is a deployment's registration. Keeping the namespace mandatory is what tells those apart,
|
|
17
|
+
* and it is why widening does not turn every misspelled `:source` path segment into a
|
|
18
|
+
* plausible-looking miss.
|
|
19
|
+
*
|
|
20
|
+
* The schema is the GRAMMAR, never the authority on what EXISTS: a namespaced id passes here and
|
|
21
|
+
* is then resolved against the registry at the boundary, so an id no deployment registered is
|
|
22
|
+
* refused by the thing that actually knows.
|
|
23
|
+
*/
|
|
24
|
+
export declare const taskSourceKindSchema: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
4
25
|
export type TaskSourceKind = v.InferOutput<typeof taskSourceKindSchema>;
|
|
26
|
+
/**
|
|
27
|
+
* Type guard for the source GRAMMAR, so a caller with a raw path segment (the webhook receiver's
|
|
28
|
+
* `:source`) can pre-filter without importing valibot.
|
|
29
|
+
*
|
|
30
|
+
* It deliberately does NOT answer whether the source EXISTS. A grammatically valid id is resolved
|
|
31
|
+
* against the registry immediately afterwards, and that is what refuses an unregistered one — so
|
|
32
|
+
* the two failures stay distinct: a malformed segment is a bad request, an unregistered one is a
|
|
33
|
+
* source this deployment does not serve.
|
|
34
|
+
*/
|
|
35
|
+
export declare function isTaskSourceKind(value: unknown): value is TaskSourceKind;
|
|
5
36
|
/** The webhook state of one task-source connection, safe to read back at any time. */
|
|
6
37
|
export declare const taskSourceWebhookSchema: v.ObjectSchema<{
|
|
7
|
-
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
38
|
+
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
8
39
|
/**
|
|
9
40
|
* Whether this source can receive webhooks at all on this deployment (its provider ships a
|
|
10
41
|
* webhook adapter). `false` ⇒ the delivery path 404s and minting is refused.
|
|
@@ -31,7 +62,7 @@ export type TaskSourceWebhook = v.InferOutput<typeof taskSourceWebhookSchema>;
|
|
|
31
62
|
* reason: a secret a surface will hand out again is a secret an operator never has to rotate.
|
|
32
63
|
*/
|
|
33
64
|
export declare const taskSourceWebhookSecretSchema: v.ObjectSchema<{
|
|
34
|
-
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
65
|
+
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
35
66
|
/**
|
|
36
67
|
* Whether this source can receive webhooks at all on this deployment (its provider ships a
|
|
37
68
|
* webhook adapter). `false` ⇒ the delivery path 404s and minting is refused.
|
|
@@ -80,7 +111,7 @@ export type UpdateTaskSourceWebhookInput = v.InferOutput<typeof updateTaskSource
|
|
|
80
111
|
* box without hard-coding any provider specifics.
|
|
81
112
|
*/
|
|
82
113
|
export declare const taskSourceDescriptorSchema: v.ObjectSchema<{
|
|
83
|
-
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
114
|
+
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
84
115
|
/** Display name, e.g. `Jira`. */
|
|
85
116
|
readonly label: v.StringSchema<undefined>;
|
|
86
117
|
/** Lucide icon name for the source. */
|
|
@@ -129,7 +160,7 @@ export type LinearTeam = v.InferOutput<typeof linearTeamSchema>;
|
|
|
129
160
|
* `available && enabled` is what makes a source offered for import.
|
|
130
161
|
*/
|
|
131
162
|
export declare const taskSourceStateSchema: v.ObjectSchema<{
|
|
132
|
-
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
163
|
+
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
133
164
|
/** Display name, e.g. `Jira`. */
|
|
134
165
|
readonly label: v.StringSchema<undefined>;
|
|
135
166
|
/** Lucide icon name for the source. */
|
|
@@ -182,7 +213,7 @@ export declare const taskSourceDiagnosticStatusSchema: v.PicklistSchema<["ready"
|
|
|
182
213
|
export type TaskSourceDiagnosticStatus = v.InferOutput<typeof taskSourceDiagnosticStatusSchema>;
|
|
183
214
|
/** A source's live setup-check result: a status + a human-readable, actionable message. */
|
|
184
215
|
export declare const taskSourceDiagnosticSchema: v.ObjectSchema<{
|
|
185
|
-
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
216
|
+
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
186
217
|
/** Convenience: `status === 'ready'`. */
|
|
187
218
|
readonly ok: v.BooleanSchema<undefined>;
|
|
188
219
|
readonly status: v.PicklistSchema<["ready", "not_installed", "not_connected", "auth_failed", "forbidden", "unreachable", "error"], undefined>;
|
|
@@ -194,7 +225,7 @@ export declare const taskSourceDiagnosticSchema: v.ObjectSchema<{
|
|
|
194
225
|
export type TaskSourceDiagnostic = v.InferOutput<typeof taskSourceDiagnosticSchema>;
|
|
195
226
|
/** A workspace's connection to a task source, as exposed to clients (never the credentials). */
|
|
196
227
|
export declare const taskConnectionSchema: v.ObjectSchema<{
|
|
197
|
-
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
228
|
+
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
198
229
|
/** A human-friendly label for what we're connected to (site URL). */
|
|
199
230
|
readonly label: v.StringSchema<undefined>;
|
|
200
231
|
/** When the connection was established (epoch ms). */
|
|
@@ -226,7 +257,7 @@ export declare const taskDependencyLinkSchema: v.ObjectSchema<{
|
|
|
226
257
|
export type TaskDependencyLink = v.InferOutput<typeof taskDependencyLinkSchema>;
|
|
227
258
|
/** An issue imported from a source, projected locally as a structured record. */
|
|
228
259
|
export declare const sourceTaskSchema: v.ObjectSchema<{
|
|
229
|
-
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
260
|
+
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
230
261
|
/** The source's canonical key for the issue (e.g. a Jira issue key `PROJ-123`). */
|
|
231
262
|
readonly externalId: v.StringSchema<undefined>;
|
|
232
263
|
/** Issue summary / title. */
|
|
@@ -269,7 +300,7 @@ export type SourceTask = v.InferOutput<typeof sourceTaskSchema>;
|
|
|
269
300
|
* projected locally, so it carries no `linkedBlockId`/`syncedAt`.
|
|
270
301
|
*/
|
|
271
302
|
export declare const taskSearchResultSchema: v.ObjectSchema<{
|
|
272
|
-
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
303
|
+
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
273
304
|
/** The source's canonical key for the issue (re-usable as an import ref). */
|
|
274
305
|
readonly externalId: v.StringSchema<undefined>;
|
|
275
306
|
readonly title: v.StringSchema<undefined>;
|
|
@@ -330,7 +361,7 @@ export declare const searchTasksSchema: v.ObjectSchema<{
|
|
|
330
361
|
export type SearchTasksInput = v.InferOutput<typeof searchTasksSchema>;
|
|
331
362
|
/** Attach an imported issue to a task as extra agent context. */
|
|
332
363
|
export declare const linkTaskSchema: v.ObjectSchema<{
|
|
333
|
-
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
364
|
+
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
334
365
|
readonly externalId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
335
366
|
readonly blockId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
336
367
|
}, undefined>;
|
|
@@ -342,7 +373,7 @@ export type LinkTaskInput = v.InferOutput<typeof linkTaskSchema>;
|
|
|
342
373
|
* title/description are seeded from the issue.
|
|
343
374
|
*/
|
|
344
375
|
export declare const createTaskFromIssueSchema: v.ObjectSchema<{
|
|
345
|
-
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
376
|
+
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
346
377
|
readonly externalId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
347
378
|
/** The frame or module the new task is created in. */
|
|
348
379
|
readonly containerId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
package/dist/tasks.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["../src/tasks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["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AwB,YAGnC,iBAAiB,EAIjB,qBAAqB,EAGrB,eAAe,EAGf,eAAe,EAGf,oBAAoB,CACZ,CAAA;AAEV,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAA;AAE5E,8DAA8D;AAC9D,eAAO,MAAM,iBAAiB;;IAE5B;;;;;;;;OAQG;;aAEH,CAAA;AACF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAEtE,iEAAiE;AACjE,eAAO,MAAM,cAAc;;;;aAIzB,CAAA;AACF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,cAAc,CAAC,CAAA;AAEhE;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB;;;IAGpC,sDAAsD;;aAEtD,CAAA;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAEtF;;;;;;GAMG;AACH,eAAO,MAAM,eAAe;;;IAG1B,2FAA2F;;;;;aAE3F,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,CAAA"}
|
package/dist/tasks.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
import { credentialFieldSchema } from './documents.js';
|
|
3
|
+
import { namespacedIdSchema } from './primitives.js';
|
|
3
4
|
// ---------------------------------------------------------------------------
|
|
4
5
|
// Task-source integration wire contracts. A workspace can connect to one or
|
|
5
6
|
// more external task/issue trackers (Jira, …), import individual issues
|
|
@@ -14,13 +15,49 @@ import { credentialFieldSchema } from './documents.js';
|
|
|
14
15
|
// workspace, the credential bag, the soft-delete tombstone) is NOT on the wire;
|
|
15
16
|
// it lives in the core ports / D1 layer.
|
|
16
17
|
// ---------------------------------------------------------------------------
|
|
17
|
-
/** The
|
|
18
|
-
export const
|
|
18
|
+
/** The task sources this build ships. A deployment registers its own beside them (see below). */
|
|
19
|
+
export const BUILTIN_TASK_SOURCE_KINDS = ['jira', 'github', 'linear'];
|
|
20
|
+
/**
|
|
21
|
+
* A BUILT-IN task source OR a CONSUMER-namespaced one ({@link namespacedIdSchema},
|
|
22
|
+
* `<ns>:<name>`, e.g. `acme:servicenow`) a deployment registers in code on its app-owned
|
|
23
|
+
* `TaskSourceRegistry` — the same `picklist ∪ namespaced` shape `taskTypeSchema` uses, for the
|
|
24
|
+
* same reasons.
|
|
25
|
+
*
|
|
26
|
+
* Two consequences are load-bearing:
|
|
27
|
+
*
|
|
28
|
+
* - **The built-ins keep their BARE ids**, so every persisted `source` column, every stored
|
|
29
|
+
* connection and every imported issue row is unchanged by the widening. There is no migration
|
|
30
|
+
* here because there is nothing to migrate.
|
|
31
|
+
* - **A bare non-built-in id still FAILS validation.** `servicenow` is a typo; `acme:servicenow`
|
|
32
|
+
* is a deployment's registration. Keeping the namespace mandatory is what tells those apart,
|
|
33
|
+
* and it is why widening does not turn every misspelled `:source` path segment into a
|
|
34
|
+
* plausible-looking miss.
|
|
35
|
+
*
|
|
36
|
+
* The schema is the GRAMMAR, never the authority on what EXISTS: a namespaced id passes here and
|
|
37
|
+
* is then resolved against the registry at the boundary, so an id no deployment registered is
|
|
38
|
+
* refused by the thing that actually knows.
|
|
39
|
+
*/
|
|
40
|
+
export const taskSourceKindSchema = v.union([
|
|
41
|
+
v.picklist(BUILTIN_TASK_SOURCE_KINDS),
|
|
42
|
+
namespacedIdSchema,
|
|
43
|
+
]);
|
|
44
|
+
/**
|
|
45
|
+
* Type guard for the source GRAMMAR, so a caller with a raw path segment (the webhook receiver's
|
|
46
|
+
* `:source`) can pre-filter without importing valibot.
|
|
47
|
+
*
|
|
48
|
+
* It deliberately does NOT answer whether the source EXISTS. A grammatically valid id is resolved
|
|
49
|
+
* against the registry immediately afterwards, and that is what refuses an unregistered one — so
|
|
50
|
+
* the two failures stay distinct: a malformed segment is a bad request, an unregistered one is a
|
|
51
|
+
* source this deployment does not serve.
|
|
52
|
+
*/
|
|
53
|
+
export function isTaskSourceKind(value) {
|
|
54
|
+
return typeof value === 'string' && v.is(taskSourceKindSchema, value);
|
|
55
|
+
}
|
|
19
56
|
// ---- Inbound tracker webhooks (push-driven intake + ticket replies) --------
|
|
20
57
|
// The per-connection delivery endpoint an operator pastes into the tracker's webhook form, plus
|
|
21
58
|
// the secret that authenticates it. The secret rides the connection's sealed credential bag (no
|
|
22
59
|
// new table), so this surface is purely mint/read/clear. See
|
|
23
|
-
// `docs/
|
|
60
|
+
// `backend/docs/adr/0032-tracker-webhook-intake.md`.
|
|
24
61
|
/** The webhook state of one task-source connection, safe to read back at any time. */
|
|
25
62
|
export const taskSourceWebhookSchema = v.object({
|
|
26
63
|
source: taskSourceKindSchema,
|