@cat-factory/contracts 0.237.0 → 0.239.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/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/notification-webhooks.d.ts +12 -5
- package/dist/notification-webhooks.d.ts.map +1 -1
- package/dist/notification-webhooks.js +2 -1
- package/dist/notification-webhooks.js.map +1 -1
- package/dist/notifications.d.ts +91 -4
- package/dist/notifications.d.ts.map +1 -1
- package/dist/notifications.js +53 -2
- package/dist/notifications.js.map +1 -1
- package/dist/public-api.d.ts +7 -1
- package/dist/public-api.d.ts.map +1 -1
- package/dist/reports.d.ts +41 -4
- package/dist/reports.d.ts.map +1 -1
- package/dist/reports.js +18 -3
- package/dist/reports.js.map +1 -1
- package/dist/routes/accounts.d.ts +18 -0
- package/dist/routes/accounts.d.ts.map +1 -1
- package/dist/routes/index.d.ts +1 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +1 -0
- package/dist/routes/index.js.map +1 -1
- package/dist/routes/notification-webhooks.d.ts +6 -6
- package/dist/routes/notifications.d.ts +21 -3
- package/dist/routes/notifications.d.ts.map +1 -1
- package/dist/routes/public-api.d.ts +21 -3
- package/dist/routes/public-api.d.ts.map +1 -1
- package/dist/routes/slack.d.ts +3 -3
- package/dist/routes/tool-servers.d.ts +103 -0
- package/dist/routes/tool-servers.d.ts.map +1 -0
- package/dist/routes/tool-servers.js +37 -0
- package/dist/routes/tool-servers.js.map +1 -0
- package/dist/routes/workspaces.d.ts +14 -2
- package/dist/routes/workspaces.d.ts.map +1 -1
- package/dist/slack.d.ts +2 -2
- package/dist/snapshot.d.ts +7 -1
- package/dist/snapshot.d.ts.map +1 -1
- package/dist/tool-servers.d.ts +257 -0
- package/dist/tool-servers.d.ts.map +1 -0
- package/dist/tool-servers.js +234 -0
- package/dist/tool-servers.js.map +1 -0
- package/package.json +1 -1
package/dist/reports.js
CHANGED
|
@@ -15,16 +15,23 @@ import * as v from 'valibot';
|
|
|
15
15
|
export const reportWindowSchema = v.picklist(['24h', '7d', '30d', '90d']);
|
|
16
16
|
/**
|
|
17
17
|
* What a SPEND breakdown groups by. `model` keys on the canonical `provider:model`
|
|
18
|
-
* id; `agentKind` on the metered call's agent kind; the
|
|
19
|
-
*
|
|
20
|
-
*
|
|
18
|
+
* id; `agentKind` on the metered call's agent kind; the rest resolve through the
|
|
19
|
+
* call's run (`workspace` directly, the others via the run's service and block).
|
|
20
|
+
*
|
|
21
|
+
* `repo` and `ticket` are the TCO axes: the two dimensions an organisation actually
|
|
22
|
+
* budgets against. They key on the run's service repo and on the tracker issue linked
|
|
23
|
+
* to the run's block respectively, so "what did this repository cost us this quarter"
|
|
24
|
+
* and "what did this ticket cost" are one grouped query rather than a hand-written join
|
|
25
|
+
* against the database.
|
|
21
26
|
*/
|
|
22
27
|
export const reportSpendDimensionSchema = v.picklist([
|
|
23
28
|
'model',
|
|
24
29
|
'agentKind',
|
|
25
30
|
'workspace',
|
|
26
31
|
'service',
|
|
32
|
+
'repo',
|
|
27
33
|
'taskType',
|
|
34
|
+
'ticket',
|
|
28
35
|
]);
|
|
29
36
|
/**
|
|
30
37
|
* What an ACTIVITY breakdown groups by. A run carries no single agent kind or model
|
|
@@ -115,7 +122,15 @@ export const reportsViewSchema = v.object({
|
|
|
115
122
|
byAgentKind: v.array(reportSpendRowSchema),
|
|
116
123
|
byWorkspace: v.array(reportSpendRowSchema),
|
|
117
124
|
byService: v.array(reportSpendRowSchema),
|
|
125
|
+
/** Spend per linked REPOSITORY, keyed by the provider repo id and labelled `owner/name`. */
|
|
126
|
+
byRepo: v.array(reportSpendRowSchema),
|
|
118
127
|
byTaskType: v.array(reportSpendRowSchema),
|
|
128
|
+
/**
|
|
129
|
+
* Spend per linked tracker TICKET, keyed `source:externalId` (e.g. `jira:PROJ-412`) and
|
|
130
|
+
* carrying NO label: the key is self-describing, and a block linked from two tickets could
|
|
131
|
+
* otherwise be labelled with one ticket's title beside the other's ref.
|
|
132
|
+
*/
|
|
133
|
+
byTicket: v.array(reportSpendRowSchema),
|
|
119
134
|
}),
|
|
120
135
|
/** Run activity sliced every way, each busiest-first. */
|
|
121
136
|
activity: v.object({
|
package/dist/reports.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reports.js","sourceRoot":"","sources":["../src/reports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,8EAA8E;AAC9E,8EAA8E;AAC9E,+EAA+E;AAC/E,kFAAkF;AAClF,kFAAkF;AAClF,8EAA8E;AAC9E,EAAE;AACF,+EAA+E;AAC/E,+EAA+E;AAC/E,8EAA8E;AAC9E,yDAAyD;AACzD,8EAA8E;AAE9E,uDAAuD;AACvD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAA;AAGzE
|
|
1
|
+
{"version":3,"file":"reports.js","sourceRoot":"","sources":["../src/reports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,8EAA8E;AAC9E,8EAA8E;AAC9E,+EAA+E;AAC/E,kFAAkF;AAClF,kFAAkF;AAClF,8EAA8E;AAC9E,EAAE;AACF,+EAA+E;AAC/E,+EAA+E;AAC/E,8EAA8E;AAC9E,yDAAyD;AACzD,8EAA8E;AAE9E,uDAAuD;AACvD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC,CAAA;AAGzE;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,QAAQ,CAAC;IACnD,OAAO;IACP,WAAW;IACX,WAA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AC,oBAAoB,CAAC;QAC1C,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC;QAC1C,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC;QACxC,4FAA4F;QAC5F,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC;QACrC,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC;QACzC;;;;WAIG;QACH,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC;KACxC,CAAC;IACF,yDAAyD;IACzD,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC;QACjB,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC;QAC7C,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC;QAC3C,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC;KAC7C,CAAC;IACF,gDAAgD;IAChD,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;QACpB,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,sBAAsB,CAAC;KACxC,CAAC;CACH,CAAC,CAAA"}
|
|
@@ -1184,6 +1184,15 @@ export declare const getReportsContract: {
|
|
|
1184
1184
|
readonly meteredCost: v.NumberSchema<undefined>;
|
|
1185
1185
|
readonly subscriptionCost: v.NumberSchema<undefined>;
|
|
1186
1186
|
}, undefined>, undefined>;
|
|
1187
|
+
readonly byRepo: v.ArraySchema<v.ObjectSchema<{
|
|
1188
|
+
readonly key: v.StringSchema<undefined>;
|
|
1189
|
+
readonly label: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1190
|
+
readonly inputTokens: v.NumberSchema<undefined>;
|
|
1191
|
+
readonly outputTokens: v.NumberSchema<undefined>;
|
|
1192
|
+
readonly calls: v.NumberSchema<undefined>;
|
|
1193
|
+
readonly meteredCost: v.NumberSchema<undefined>;
|
|
1194
|
+
readonly subscriptionCost: v.NumberSchema<undefined>;
|
|
1195
|
+
}, undefined>, undefined>;
|
|
1187
1196
|
readonly byTaskType: v.ArraySchema<v.ObjectSchema<{
|
|
1188
1197
|
readonly key: v.StringSchema<undefined>;
|
|
1189
1198
|
readonly label: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -1193,6 +1202,15 @@ export declare const getReportsContract: {
|
|
|
1193
1202
|
readonly meteredCost: v.NumberSchema<undefined>;
|
|
1194
1203
|
readonly subscriptionCost: v.NumberSchema<undefined>;
|
|
1195
1204
|
}, undefined>, undefined>;
|
|
1205
|
+
readonly byTicket: v.ArraySchema<v.ObjectSchema<{
|
|
1206
|
+
readonly key: v.StringSchema<undefined>;
|
|
1207
|
+
readonly label: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1208
|
+
readonly inputTokens: v.NumberSchema<undefined>;
|
|
1209
|
+
readonly outputTokens: v.NumberSchema<undefined>;
|
|
1210
|
+
readonly calls: v.NumberSchema<undefined>;
|
|
1211
|
+
readonly meteredCost: v.NumberSchema<undefined>;
|
|
1212
|
+
readonly subscriptionCost: v.NumberSchema<undefined>;
|
|
1213
|
+
}, undefined>, undefined>;
|
|
1196
1214
|
}, undefined>;
|
|
1197
1215
|
readonly activity: v.ObjectSchema<{
|
|
1198
1216
|
readonly byWorkspace: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../src/routes/accounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqC,MAAM,yBAAyB,CAAA;AAC3F,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAgD5B,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI/B,CAAA;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKrC,CAAA;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMxC,CAAA;AAMF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM3C,CAAA;AAQF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAS7B,CAAA"}
|
package/dist/routes/index.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ export * from './service-fragment-defaults.js';
|
|
|
61
61
|
export * from './services.js';
|
|
62
62
|
export * from './test-secrets.js';
|
|
63
63
|
export * from './capability-credentials.js';
|
|
64
|
+
export * from './tool-servers.js';
|
|
64
65
|
export * from './validation-checks.js';
|
|
65
66
|
export * from './slack.js';
|
|
66
67
|
export * from './spec.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/routes/index.ts"],"names":[],"mappings":"AAGA,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,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,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,cAAc,yBAAyB,CAAA;AACvC,cAAc,wBAAwB,CAAA;AACtC,cAAc,yBAAyB,CAAA;AACvC,cAAc,iBAAiB,CAAA"}
|
package/dist/routes/index.js
CHANGED
|
@@ -64,6 +64,7 @@ export * from './service-fragment-defaults.js';
|
|
|
64
64
|
export * from './services.js';
|
|
65
65
|
export * from './test-secrets.js';
|
|
66
66
|
export * from './capability-credentials.js';
|
|
67
|
+
export * from './tool-servers.js';
|
|
67
68
|
export * from './validation-checks.js';
|
|
68
69
|
export * from './slack.js';
|
|
69
70
|
export * from './spec.js';
|
package/dist/routes/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/routes/index.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,+EAA+E;AAC/E,oDAAoD;AACpD,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,gBAAgB,CAAA;AAC9B,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,uBAAuB,CAAA;AACrC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v.ObjectSchema<{
|
|
31
31
|
readonly url: v.StringSchema<undefined>;
|
|
32
|
-
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>;
|
|
32
|
+
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", "budget_threshold", "key_drift", "merge_tag_request"], undefined>, undefined>;
|
|
33
33
|
readonly runEvents: v.ArraySchema<v.PicklistSchema<["run.started", "run.completed", "run.failed"], undefined>, undefined>;
|
|
34
34
|
readonly alertEvents: v.ArraySchema<v.PicklistSchema<["platform_health.firing", "platform_health.resolved"], undefined>, undefined>;
|
|
35
35
|
readonly enabled: v.BooleanSchema<undefined>;
|
|
@@ -44,7 +44,7 @@ export declare const putNotificationWebhookContract: {
|
|
|
44
44
|
readonly pathResolver: () => string;
|
|
45
45
|
readonly requestBodySchema: v.ObjectSchema<{
|
|
46
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
|
-
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>;
|
|
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", "budget_threshold", "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>;
|
|
50
50
|
readonly enabled: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
@@ -75,7 +75,7 @@ export declare const putNotificationWebhookContract: {
|
|
|
75
75
|
}, undefined>;
|
|
76
76
|
readonly 200: v.ObjectSchema<{
|
|
77
77
|
readonly url: v.StringSchema<undefined>;
|
|
78
|
-
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>;
|
|
78
|
+
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", "budget_threshold", "key_drift", "merge_tag_request"], undefined>, undefined>;
|
|
79
79
|
readonly runEvents: v.ArraySchema<v.PicklistSchema<["run.started", "run.completed", "run.failed"], undefined>, undefined>;
|
|
80
80
|
readonly alertEvents: v.ArraySchema<v.PicklistSchema<["platform_health.firing", "platform_health.resolved"], undefined>, undefined>;
|
|
81
81
|
readonly enabled: v.BooleanSchema<undefined>;
|
|
@@ -148,7 +148,7 @@ export declare const getPublicNotificationWebhookContract: {
|
|
|
148
148
|
readonly 200: v.ObjectSchema<{
|
|
149
149
|
readonly webhook: v.NullableSchema<v.ObjectSchema<{
|
|
150
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>;
|
|
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", "budget_threshold", "key_drift", "merge_tag_request"], undefined>, undefined>;
|
|
152
152
|
readonly runEvents: v.ArraySchema<v.PicklistSchema<["run.started", "run.completed", "run.failed"], undefined>, undefined>;
|
|
153
153
|
readonly alertEvents: v.ArraySchema<v.PicklistSchema<["platform_health.firing", "platform_health.resolved"], undefined>, undefined>;
|
|
154
154
|
readonly enabled: v.BooleanSchema<undefined>;
|
|
@@ -172,7 +172,7 @@ export declare const putPublicNotificationWebhookContract: {
|
|
|
172
172
|
readonly pathResolver: () => string;
|
|
173
173
|
readonly requestBodySchema: v.ObjectSchema<{
|
|
174
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>;
|
|
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", "budget_threshold", "key_drift", "merge_tag_request"], undefined>, undefined>, undefined>;
|
|
176
176
|
readonly runEvents: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["run.started", "run.completed", "run.failed"], undefined>, undefined>, undefined>;
|
|
177
177
|
readonly alertEvents: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["platform_health.firing", "platform_health.resolved"], undefined>, undefined>, undefined>;
|
|
178
178
|
readonly enabled: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
@@ -203,7 +203,7 @@ export declare const putPublicNotificationWebhookContract: {
|
|
|
203
203
|
}, undefined>;
|
|
204
204
|
readonly 200: v.ObjectSchema<{
|
|
205
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>;
|
|
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", "budget_threshold", "key_drift", "merge_tag_request"], undefined>, undefined>;
|
|
207
207
|
readonly runEvents: v.ArraySchema<v.PicklistSchema<["run.started", "run.completed", "run.failed"], undefined>, undefined>;
|
|
208
208
|
readonly alertEvents: v.ArraySchema<v.PicklistSchema<["platform_health.firing", "platform_health.resolved"], undefined>, undefined>;
|
|
209
209
|
readonly enabled: v.BooleanSchema<undefined>;
|
|
@@ -28,7 +28,7 @@ export declare const listNotificationsContract: {
|
|
|
28
28
|
}, undefined>;
|
|
29
29
|
readonly 200: v.ArraySchema<v.ObjectSchema<{
|
|
30
30
|
readonly id: v.StringSchema<undefined>;
|
|
31
|
-
readonly type: v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "judge_review", "pr_review_ready", "initiative", "platform_health", "infra_unreachable", "budget_paused", "key_drift", "merge_tag_request"], undefined>;
|
|
31
|
+
readonly type: v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "judge_review", "pr_review_ready", "initiative", "platform_health", "infra_unreachable", "budget_paused", "budget_threshold", "key_drift", "merge_tag_request"], undefined>;
|
|
32
32
|
readonly status: v.PicklistSchema<["open", "acted", "dismissed"], undefined>;
|
|
33
33
|
readonly severity: v.OptionalSchema<v.PicklistSchema<["normal", "urgent"], undefined>, undefined>;
|
|
34
34
|
readonly blockId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -84,6 +84,12 @@ export declare const listNotificationsContract: {
|
|
|
84
84
|
readonly reason: v.PicklistSchema<["key-mismatch", "corrupt"], undefined>;
|
|
85
85
|
readonly sealedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
86
86
|
}, undefined>, undefined>, undefined>;
|
|
87
|
+
readonly budgetPeriodStart: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
88
|
+
readonly budgetAlerts: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
89
|
+
readonly tier: v.PicklistSchema<["workspace", "account"], undefined>;
|
|
90
|
+
readonly threshold: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
91
|
+
readonly projectedOverrun: v.BooleanSchema<undefined>;
|
|
92
|
+
}, undefined>, undefined>, undefined>;
|
|
87
93
|
readonly changeClass: v.OptionalSchema<v.PicklistSchema<["docs", "test", "dependency", "config", "source", "schema", "unknown"], undefined>, undefined>;
|
|
88
94
|
readonly mergeTrackRecordId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
89
95
|
}, undefined>, undefined>, undefined>;
|
|
@@ -128,7 +134,7 @@ export declare const actNotificationContract: {
|
|
|
128
134
|
}, undefined>;
|
|
129
135
|
readonly 200: v.ObjectSchema<{
|
|
130
136
|
readonly id: v.StringSchema<undefined>;
|
|
131
|
-
readonly type: v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "judge_review", "pr_review_ready", "initiative", "platform_health", "infra_unreachable", "budget_paused", "key_drift", "merge_tag_request"], undefined>;
|
|
137
|
+
readonly type: v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "judge_review", "pr_review_ready", "initiative", "platform_health", "infra_unreachable", "budget_paused", "budget_threshold", "key_drift", "merge_tag_request"], undefined>;
|
|
132
138
|
readonly status: v.PicklistSchema<["open", "acted", "dismissed"], undefined>;
|
|
133
139
|
readonly severity: v.OptionalSchema<v.PicklistSchema<["normal", "urgent"], undefined>, undefined>;
|
|
134
140
|
readonly blockId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -184,6 +190,12 @@ export declare const actNotificationContract: {
|
|
|
184
190
|
readonly reason: v.PicklistSchema<["key-mismatch", "corrupt"], undefined>;
|
|
185
191
|
readonly sealedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
186
192
|
}, undefined>, undefined>, undefined>;
|
|
193
|
+
readonly budgetPeriodStart: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
194
|
+
readonly budgetAlerts: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
195
|
+
readonly tier: v.PicklistSchema<["workspace", "account"], undefined>;
|
|
196
|
+
readonly threshold: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
197
|
+
readonly projectedOverrun: v.BooleanSchema<undefined>;
|
|
198
|
+
}, undefined>, undefined>, undefined>;
|
|
187
199
|
readonly changeClass: v.OptionalSchema<v.PicklistSchema<["docs", "test", "dependency", "config", "source", "schema", "unknown"], undefined>, undefined>;
|
|
188
200
|
readonly mergeTrackRecordId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
189
201
|
}, undefined>, undefined>, undefined>;
|
|
@@ -226,7 +238,7 @@ export declare const dismissNotificationContract: {
|
|
|
226
238
|
}, undefined>;
|
|
227
239
|
readonly 200: v.ObjectSchema<{
|
|
228
240
|
readonly id: v.StringSchema<undefined>;
|
|
229
|
-
readonly type: v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "judge_review", "pr_review_ready", "initiative", "platform_health", "infra_unreachable", "budget_paused", "key_drift", "merge_tag_request"], undefined>;
|
|
241
|
+
readonly type: v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "judge_review", "pr_review_ready", "initiative", "platform_health", "infra_unreachable", "budget_paused", "budget_threshold", "key_drift", "merge_tag_request"], undefined>;
|
|
230
242
|
readonly status: v.PicklistSchema<["open", "acted", "dismissed"], undefined>;
|
|
231
243
|
readonly severity: v.OptionalSchema<v.PicklistSchema<["normal", "urgent"], undefined>, undefined>;
|
|
232
244
|
readonly blockId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -282,6 +294,12 @@ export declare const dismissNotificationContract: {
|
|
|
282
294
|
readonly reason: v.PicklistSchema<["key-mismatch", "corrupt"], undefined>;
|
|
283
295
|
readonly sealedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
284
296
|
}, undefined>, undefined>, undefined>;
|
|
297
|
+
readonly budgetPeriodStart: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
298
|
+
readonly budgetAlerts: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
299
|
+
readonly tier: v.PicklistSchema<["workspace", "account"], undefined>;
|
|
300
|
+
readonly threshold: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
301
|
+
readonly projectedOverrun: v.BooleanSchema<undefined>;
|
|
302
|
+
}, undefined>, undefined>, undefined>;
|
|
285
303
|
readonly changeClass: v.OptionalSchema<v.PicklistSchema<["docs", "test", "dependency", "config", "source", "schema", "unknown"], undefined>, undefined>;
|
|
286
304
|
readonly mergeTrackRecordId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
287
305
|
}, undefined>, undefined>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../src/routes/notifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAa5B,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../../src/routes/notifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAa5B,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIpC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQlC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMtC,CAAA"}
|
|
@@ -888,7 +888,7 @@ export declare const listPublicNotificationsContract: {
|
|
|
888
888
|
readonly 200: import("valibot").ObjectSchema<{
|
|
889
889
|
readonly notifications: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
890
890
|
readonly id: import("valibot").StringSchema<undefined>;
|
|
891
|
-
readonly type: import("valibot").PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "judge_review", "pr_review_ready", "initiative", "platform_health", "infra_unreachable", "budget_paused", "key_drift", "merge_tag_request"], undefined>;
|
|
891
|
+
readonly type: import("valibot").PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "judge_review", "pr_review_ready", "initiative", "platform_health", "infra_unreachable", "budget_paused", "budget_threshold", "key_drift", "merge_tag_request"], undefined>;
|
|
892
892
|
readonly status: import("valibot").PicklistSchema<["open", "acted", "dismissed"], undefined>;
|
|
893
893
|
readonly severity: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["normal", "urgent"], undefined>, undefined>;
|
|
894
894
|
readonly blockId: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
@@ -944,6 +944,12 @@ export declare const listPublicNotificationsContract: {
|
|
|
944
944
|
readonly reason: import("valibot").PicklistSchema<["key-mismatch", "corrupt"], undefined>;
|
|
945
945
|
readonly sealedAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
946
946
|
}, undefined>, undefined>, undefined>;
|
|
947
|
+
readonly budgetPeriodStart: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
948
|
+
readonly budgetAlerts: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
949
|
+
readonly tier: import("valibot").PicklistSchema<["workspace", "account"], undefined>;
|
|
950
|
+
readonly threshold: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
951
|
+
readonly projectedOverrun: import("valibot").BooleanSchema<undefined>;
|
|
952
|
+
}, undefined>, undefined>, undefined>;
|
|
947
953
|
readonly changeClass: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["docs", "test", "dependency", "config", "source", "schema", "unknown"], undefined>, undefined>;
|
|
948
954
|
readonly mergeTrackRecordId: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
949
955
|
}, undefined>, undefined>, undefined>;
|
|
@@ -988,7 +994,7 @@ export declare const actPublicNotificationContract: {
|
|
|
988
994
|
}, undefined>;
|
|
989
995
|
readonly 200: import("valibot").ObjectSchema<{
|
|
990
996
|
readonly id: import("valibot").StringSchema<undefined>;
|
|
991
|
-
readonly type: import("valibot").PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "judge_review", "pr_review_ready", "initiative", "platform_health", "infra_unreachable", "budget_paused", "key_drift", "merge_tag_request"], undefined>;
|
|
997
|
+
readonly type: import("valibot").PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "judge_review", "pr_review_ready", "initiative", "platform_health", "infra_unreachable", "budget_paused", "budget_threshold", "key_drift", "merge_tag_request"], undefined>;
|
|
992
998
|
readonly status: import("valibot").PicklistSchema<["open", "acted", "dismissed"], undefined>;
|
|
993
999
|
readonly severity: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["normal", "urgent"], undefined>, undefined>;
|
|
994
1000
|
readonly blockId: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
@@ -1044,6 +1050,12 @@ export declare const actPublicNotificationContract: {
|
|
|
1044
1050
|
readonly reason: import("valibot").PicklistSchema<["key-mismatch", "corrupt"], undefined>;
|
|
1045
1051
|
readonly sealedAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
1046
1052
|
}, undefined>, undefined>, undefined>;
|
|
1053
|
+
readonly budgetPeriodStart: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
1054
|
+
readonly budgetAlerts: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
1055
|
+
readonly tier: import("valibot").PicklistSchema<["workspace", "account"], undefined>;
|
|
1056
|
+
readonly threshold: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
1057
|
+
readonly projectedOverrun: import("valibot").BooleanSchema<undefined>;
|
|
1058
|
+
}, undefined>, undefined>, undefined>;
|
|
1047
1059
|
readonly changeClass: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["docs", "test", "dependency", "config", "source", "schema", "unknown"], undefined>, undefined>;
|
|
1048
1060
|
readonly mergeTrackRecordId: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
1049
1061
|
}, undefined>, undefined>, undefined>;
|
|
@@ -1087,7 +1099,7 @@ export declare const dismissPublicNotificationContract: {
|
|
|
1087
1099
|
}, undefined>;
|
|
1088
1100
|
readonly 200: import("valibot").ObjectSchema<{
|
|
1089
1101
|
readonly id: import("valibot").StringSchema<undefined>;
|
|
1090
|
-
readonly type: import("valibot").PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "judge_review", "pr_review_ready", "initiative", "platform_health", "infra_unreachable", "budget_paused", "key_drift", "merge_tag_request"], undefined>;
|
|
1102
|
+
readonly type: import("valibot").PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "judge_review", "pr_review_ready", "initiative", "platform_health", "infra_unreachable", "budget_paused", "budget_threshold", "key_drift", "merge_tag_request"], undefined>;
|
|
1091
1103
|
readonly status: import("valibot").PicklistSchema<["open", "acted", "dismissed"], undefined>;
|
|
1092
1104
|
readonly severity: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["normal", "urgent"], undefined>, undefined>;
|
|
1093
1105
|
readonly blockId: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
@@ -1143,6 +1155,12 @@ export declare const dismissPublicNotificationContract: {
|
|
|
1143
1155
|
readonly reason: import("valibot").PicklistSchema<["key-mismatch", "corrupt"], undefined>;
|
|
1144
1156
|
readonly sealedAt: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
1145
1157
|
}, undefined>, undefined>, undefined>;
|
|
1158
|
+
readonly budgetPeriodStart: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
1159
|
+
readonly budgetAlerts: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
1160
|
+
readonly tier: import("valibot").PicklistSchema<["workspace", "account"], undefined>;
|
|
1161
|
+
readonly threshold: import("valibot").NullableSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
1162
|
+
readonly projectedOverrun: import("valibot").BooleanSchema<undefined>;
|
|
1163
|
+
}, undefined>, undefined>, undefined>;
|
|
1146
1164
|
readonly changeClass: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["docs", "test", "dependency", "config", "source", "schema", "unknown"], undefined>, undefined>;
|
|
1147
1165
|
readonly mergeTrackRecordId: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
1148
1166
|
}, undefined>, undefined>, undefined>;
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAI1C,CAAA;AAEF,mGAAmG;AACnG,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMxC,CAAA;AAEF,mDAAmD;AACnD,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM5C,CAAA;AAIF;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIjC,CAAA"}
|
package/dist/routes/slack.d.ts
CHANGED
|
@@ -200,7 +200,7 @@ export declare const getSlackSettingsContract: {
|
|
|
200
200
|
}, undefined>;
|
|
201
201
|
}, undefined>;
|
|
202
202
|
readonly 200: v.ObjectSchema<{
|
|
203
|
-
readonly routes: v.RecordSchema<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>, v.ObjectSchema<{
|
|
203
|
+
readonly routes: v.RecordSchema<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", "budget_threshold", "key_drift", "merge_tag_request"], undefined>, v.ObjectSchema<{
|
|
204
204
|
readonly enabled: v.BooleanSchema<undefined>;
|
|
205
205
|
readonly channel: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 200, undefined>]>;
|
|
206
206
|
}, undefined>, undefined>;
|
|
@@ -213,7 +213,7 @@ export declare const updateSlackSettingsContract: {
|
|
|
213
213
|
readonly method: "put";
|
|
214
214
|
readonly pathResolver: () => string;
|
|
215
215
|
readonly requestBodySchema: v.ObjectSchema<{
|
|
216
|
-
readonly routes: v.RecordSchema<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>, v.ObjectSchema<{
|
|
216
|
+
readonly routes: v.RecordSchema<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", "budget_threshold", "key_drift", "merge_tag_request"], undefined>, v.ObjectSchema<{
|
|
217
217
|
readonly enabled: v.BooleanSchema<undefined>;
|
|
218
218
|
readonly channel: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 200, undefined>]>;
|
|
219
219
|
}, undefined>, undefined>;
|
|
@@ -243,7 +243,7 @@ export declare const updateSlackSettingsContract: {
|
|
|
243
243
|
}, undefined>;
|
|
244
244
|
}, undefined>;
|
|
245
245
|
readonly 200: v.ObjectSchema<{
|
|
246
|
-
readonly routes: v.RecordSchema<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>, v.ObjectSchema<{
|
|
246
|
+
readonly routes: v.RecordSchema<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", "budget_threshold", "key_drift", "merge_tag_request"], undefined>, v.ObjectSchema<{
|
|
247
247
|
readonly enabled: v.BooleanSchema<undefined>;
|
|
248
248
|
readonly channel: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 200, undefined>]>;
|
|
249
249
|
}, undefined>, undefined>;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { ContractNoBody } from '@toad-contracts/valibot';
|
|
2
|
+
export declare const listToolServersContract: {
|
|
3
|
+
readonly method: "get";
|
|
4
|
+
readonly pathResolver: () => string;
|
|
5
|
+
readonly responsesByStatusCode: {
|
|
6
|
+
readonly '4xx': import("valibot").ObjectSchema<{
|
|
7
|
+
readonly error: import("valibot").ObjectSchema<{
|
|
8
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
9
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
10
|
+
readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
11
|
+
readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
12
|
+
readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
13
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
14
|
+
}, undefined>, undefined>, undefined>;
|
|
15
|
+
}, undefined>;
|
|
16
|
+
}, undefined>;
|
|
17
|
+
readonly '5xx': import("valibot").ObjectSchema<{
|
|
18
|
+
readonly error: import("valibot").ObjectSchema<{
|
|
19
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
20
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
21
|
+
readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
22
|
+
readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
23
|
+
readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
24
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
25
|
+
}, undefined>, undefined>, undefined>;
|
|
26
|
+
}, undefined>;
|
|
27
|
+
}, undefined>;
|
|
28
|
+
readonly 200: import("valibot").ObjectSchema<{
|
|
29
|
+
readonly servers: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
30
|
+
readonly id: import("valibot").StringSchema<undefined>;
|
|
31
|
+
readonly label: import("valibot").StringSchema<undefined>;
|
|
32
|
+
readonly transport: import("valibot").PicklistSchema<["stdio", "http"], undefined>;
|
|
33
|
+
readonly target: import("valibot").StringSchema<undefined>;
|
|
34
|
+
readonly guidance: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
35
|
+
readonly declaredBy: import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
36
|
+
readonly servableHarnesses: import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
37
|
+
readonly allowedTools: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
38
|
+
readonly credentials: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
39
|
+
readonly key: import("valibot").StringSchema<undefined>;
|
|
40
|
+
readonly required: import("valibot").BooleanSchema<undefined>;
|
|
41
|
+
readonly usage: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
42
|
+
}, undefined>, undefined>;
|
|
43
|
+
readonly probeable: import("valibot").BooleanSchema<undefined>;
|
|
44
|
+
readonly notProbeableReason: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["stdio_transport", "container_local_url", "url_not_allowed"], undefined>, undefined>;
|
|
45
|
+
}, undefined>, undefined>;
|
|
46
|
+
}, undefined>;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
export declare const probeToolServerContract: {
|
|
50
|
+
readonly method: "post";
|
|
51
|
+
readonly requestPathParamsSchema: import("valibot").ObjectSchema<{
|
|
52
|
+
id: import("valibot").StringSchema<undefined>;
|
|
53
|
+
}, undefined> & import("@toad-contracts/core").StandardObjectKeysV1<unknown, unknown>;
|
|
54
|
+
readonly pathResolver: ({ id }: {
|
|
55
|
+
id: string;
|
|
56
|
+
}) => string;
|
|
57
|
+
readonly requestBodySchema: typeof ContractNoBody;
|
|
58
|
+
readonly responsesByStatusCode: {
|
|
59
|
+
readonly '4xx': import("valibot").ObjectSchema<{
|
|
60
|
+
readonly error: import("valibot").ObjectSchema<{
|
|
61
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
62
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
63
|
+
readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
64
|
+
readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
65
|
+
readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
66
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
67
|
+
}, undefined>, undefined>, undefined>;
|
|
68
|
+
}, undefined>;
|
|
69
|
+
}, undefined>;
|
|
70
|
+
readonly '5xx': import("valibot").ObjectSchema<{
|
|
71
|
+
readonly error: import("valibot").ObjectSchema<{
|
|
72
|
+
readonly code: import("valibot").StringSchema<undefined>;
|
|
73
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
74
|
+
readonly details: import("valibot").OptionalSchema<import("valibot").UnknownSchema, undefined>;
|
|
75
|
+
readonly issues: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
76
|
+
readonly path: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
77
|
+
readonly message: import("valibot").StringSchema<undefined>;
|
|
78
|
+
}, undefined>, undefined>, undefined>;
|
|
79
|
+
}, undefined>;
|
|
80
|
+
}, undefined>;
|
|
81
|
+
readonly 200: import("valibot").ObjectSchema<{
|
|
82
|
+
readonly serverId: import("valibot").StringSchema<undefined>;
|
|
83
|
+
readonly status: import("valibot").PicklistSchema<["ok", "credentials_missing", "credential_refused", "unreachable", "http_error", "protocol_error", "not_probeable"], undefined>;
|
|
84
|
+
readonly notProbeableReason: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["stdio_transport", "container_local_url", "url_not_allowed"], undefined>, undefined>;
|
|
85
|
+
readonly serverName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
86
|
+
readonly serverVersion: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
87
|
+
readonly protocolVersion: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
88
|
+
readonly toolCount: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
89
|
+
readonly tools: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
90
|
+
readonly toolsComplete: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
91
|
+
readonly allowedTools: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
|
|
92
|
+
readonly declared: import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
93
|
+
readonly unmatched: import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
94
|
+
readonly checked: import("valibot").BooleanSchema<undefined>;
|
|
95
|
+
}, undefined>, undefined>;
|
|
96
|
+
readonly unresolvedCredentials: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
97
|
+
readonly refusedCredentials: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
|
|
98
|
+
readonly httpStatus: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, undefined>;
|
|
99
|
+
readonly error: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
100
|
+
}, undefined>;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
//# sourceMappingURL=tool-servers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-servers.d.ts","sourceRoot":"","sources":["../../src/routes/tool-servers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAmB3E,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIlC,CAAA;AAKF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUlC,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ContractNoBody, defineApiContract } from '@toad-contracts/valibot';
|
|
2
|
+
import { toolServerProbeResultSchema, toolServersViewSchema } from '../tool-servers.js';
|
|
3
|
+
import { errorResponses, singleStringParam } from './_shared.js';
|
|
4
|
+
// ---------------------------------------------------------------------------
|
|
5
|
+
// Per-workspace TOOL SERVER (MCP) operability route contracts. Mounted under
|
|
6
|
+
// `/workspaces/:workspaceId`, so the paths here are relative to that prefix.
|
|
7
|
+
//
|
|
8
|
+
// Both routes are `secrets.manage`-gated INCLUDING the read, like the credential checklist beside
|
|
9
|
+
// them and for the same reason: the projection names the credential keys the deployment's
|
|
10
|
+
// capabilities want. See ToolServerController.
|
|
11
|
+
//
|
|
12
|
+
// Workspace-scoped even though the DECLARATIONS are deployment-wide, because the credentials are
|
|
13
|
+
// not: the per-workspace capability-credential store sits in front of the environment resolver per
|
|
14
|
+
// key, so "does this server work" has a different answer per board, and a probe that resolved
|
|
15
|
+
// against nothing in particular would report the deployment's own environment as every tenant's
|
|
16
|
+
// answer.
|
|
17
|
+
// ---------------------------------------------------------------------------
|
|
18
|
+
export const listToolServersContract = defineApiContract({
|
|
19
|
+
method: 'get',
|
|
20
|
+
pathResolver: () => '/tool-servers',
|
|
21
|
+
responsesByStatusCode: { 200: toolServersViewSchema, ...errorResponses },
|
|
22
|
+
});
|
|
23
|
+
// A POST rather than a GET: the probe SPENDS something (an outbound request carrying a resolved
|
|
24
|
+
// credential, and a vendor's rate limit), so it must not be safe to retry from a browser's cache or
|
|
25
|
+
// a link prefetch. The same shape every neighbouring connection type's `/test` endpoint has.
|
|
26
|
+
export const probeToolServerContract = defineApiContract({
|
|
27
|
+
method: 'post',
|
|
28
|
+
requestPathParamsSchema: singleStringParam('id'),
|
|
29
|
+
pathResolver: ({ id }) => `/tool-servers/${id}/test`,
|
|
30
|
+
// Nothing to send: WHAT is probed is the path, and everything else the probe needs (the
|
|
31
|
+
// declaration, the workspace's credentials) is resolved server-side from state a caller could not
|
|
32
|
+
// usefully override. A body would be a way to ask the deployment to send a credential of the
|
|
33
|
+
// caller's choosing to an endpoint of the deployment's.
|
|
34
|
+
requestBodySchema: ContractNoBody,
|
|
35
|
+
responsesByStatusCode: { 200: toolServerProbeResultSchema, ...errorResponses },
|
|
36
|
+
});
|
|
37
|
+
//# sourceMappingURL=tool-servers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-servers.js","sourceRoot":"","sources":["../../src/routes/tool-servers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,EAAE,2BAA2B,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AACvF,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAEhE,8EAA8E;AAC9E,6EAA6E;AAC7E,6EAA6E;AAC7E,EAAE;AACF,kGAAkG;AAClG,0FAA0F;AAC1F,+CAA+C;AAC/C,EAAE;AACF,iGAAiG;AACjG,mGAAmG;AACnG,8FAA8F;AAC9F,gGAAgG;AAChG,UAAU;AACV,8EAA8E;AAE9E,MAAM,CAAC,MAAM,uBAAuB,GAAG,iBAAiB,CAAC;IACvD,MAAM,EAAE,KAAK;IACb,YAAY,EAAE,GAAG,EAAE,CAAC,eAAe;IACnC,qBAAqB,EAAE,EAAE,GAAG,EAAE,qBAAqB,EAAE,GAAG,cAAc,EAAE;CACzE,CAAC,CAAA;AAEF,gGAAgG;AAChG,oGAAoG;AACpG,6FAA6F;AAC7F,MAAM,CAAC,MAAM,uBAAuB,GAAG,iBAAiB,CAAC;IACvD,MAAM,EAAE,MAAM;IACd,uBAAuB,EAAE,iBAAiB,CAAC,IAAI,CAAC;IAChD,YAAY,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,iBAAiB,EAAE,OAAO;IACpD,wFAAwF;IACxF,kGAAkG;IAClG,6FAA6F;IAC7F,wDAAwD;IACxD,iBAAiB,EAAE,cAAc;IACjC,qBAAqB,EAAE,EAAE,GAAG,EAAE,2BAA2B,EAAE,GAAG,cAAc,EAAE;CAC/E,CAAC,CAAA"}
|