@cat-factory/contracts 0.237.0 → 0.238.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/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/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/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/package.json +1 -1
|
@@ -35,7 +35,7 @@ export declare const notificationWebhookSchema: v.ObjectSchema<{
|
|
|
35
35
|
* headless overseer cares about — rather than "everything", so registering an endpoint can't
|
|
36
36
|
* accidentally fire-hose every card at an integration that only wanted to hear about parks.
|
|
37
37
|
*/
|
|
38
|
-
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>;
|
|
38
|
+
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>;
|
|
39
39
|
/**
|
|
40
40
|
* Which run-lifecycle events are delivered. EMPTY means NONE — the opposite of `types` above,
|
|
41
41
|
* deliberately: an endpoint registered before this existed must not start receiving a new event
|
|
@@ -75,7 +75,7 @@ export declare const putNotificationWebhookSchema: v.ObjectSchema<{
|
|
|
75
75
|
/** Omit ⇒ keep the registered endpoint (required only when registering the first one). */
|
|
76
76
|
readonly url: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, undefined>, v.StartsWithAction<string, "https://", "The webhook endpoint must be an https:// URL">, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
77
77
|
/** Omit ⇒ deliver the default parking types. */
|
|
78
|
-
readonly types: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "judge_review", "pr_review_ready", "initiative", "platform_health", "infra_unreachable", "budget_paused", "key_drift", "merge_tag_request"], undefined>, undefined>, undefined>;
|
|
78
|
+
readonly types: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "judge_review", "pr_review_ready", "initiative", "platform_health", "infra_unreachable", "budget_paused", "budget_threshold", "key_drift", "merge_tag_request"], undefined>, undefined>, undefined>;
|
|
79
79
|
/** Omit ⇒ keep the current run-event subscription (none, for an endpoint that never set one). */
|
|
80
80
|
readonly runEvents: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["run.started", "run.completed", "run.failed"], undefined>, undefined>, undefined>;
|
|
81
81
|
/** Omit ⇒ keep the current platform-health subscription (none, for an endpoint that never set one). */
|
|
@@ -109,7 +109,7 @@ export declare const publicNotificationWebhookSchema: v.ObjectSchema<{
|
|
|
109
109
|
* headless overseer cares about — rather than "everything", so registering an endpoint can't
|
|
110
110
|
* accidentally fire-hose every card at an integration that only wanted to hear about parks.
|
|
111
111
|
*/
|
|
112
|
-
readonly types: v.ArraySchema<v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "judge_review", "pr_review_ready", "initiative", "platform_health", "infra_unreachable", "budget_paused", "key_drift", "merge_tag_request"], undefined>, undefined>;
|
|
112
|
+
readonly types: v.ArraySchema<v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "judge_review", "pr_review_ready", "initiative", "platform_health", "infra_unreachable", "budget_paused", "budget_threshold", "key_drift", "merge_tag_request"], undefined>, undefined>;
|
|
113
113
|
/**
|
|
114
114
|
* Which run-lifecycle events are delivered. EMPTY means NONE — the opposite of `types` above,
|
|
115
115
|
* deliberately: an endpoint registered before this existed must not start receiving a new event
|
|
@@ -151,7 +151,7 @@ export declare const notificationWebhookDeliverySchema: v.ObjectSchema<{
|
|
|
151
151
|
readonly taskId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
152
152
|
readonly notification: v.ObjectSchema<{
|
|
153
153
|
readonly id: v.StringSchema<undefined>;
|
|
154
|
-
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>;
|
|
154
|
+
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>;
|
|
155
155
|
readonly status: v.PicklistSchema<["open", "acted", "dismissed"], undefined>;
|
|
156
156
|
readonly severity: v.OptionalSchema<v.PicklistSchema<["normal", "urgent"], undefined>, undefined>;
|
|
157
157
|
readonly blockId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -207,6 +207,12 @@ export declare const notificationWebhookDeliverySchema: v.ObjectSchema<{
|
|
|
207
207
|
readonly reason: v.PicklistSchema<["key-mismatch", "corrupt"], undefined>;
|
|
208
208
|
readonly sealedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
209
209
|
}, undefined>, undefined>, undefined>;
|
|
210
|
+
readonly budgetPeriodStart: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
211
|
+
readonly budgetAlerts: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
212
|
+
readonly tier: v.PicklistSchema<["workspace", "account"], undefined>;
|
|
213
|
+
readonly threshold: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
214
|
+
readonly projectedOverrun: v.BooleanSchema<undefined>;
|
|
215
|
+
}, undefined>, undefined>, undefined>;
|
|
210
216
|
readonly changeClass: v.OptionalSchema<v.PicklistSchema<["docs", "test", "dependency", "config", "source", "schema", "unknown"], undefined>, undefined>;
|
|
211
217
|
readonly mergeTrackRecordId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
212
218
|
}, undefined>, undefined>, undefined>;
|
|
@@ -389,7 +395,8 @@ export type PlatformAlertWebhookDelivery = v.InferOutput<typeof platformAlertWeb
|
|
|
389
395
|
* The notification types delivered when a webhook declares no explicit `types` filter: the
|
|
390
396
|
* human-parking cards a headless overseer must react to, plus the failure tails it can act on
|
|
391
397
|
* through the public notification surface. Deliberately NOT every type — the block-less/system
|
|
392
|
-
* cards (`platform_health`, `infra_unreachable`, `budget_paused`, `
|
|
398
|
+
* cards (`platform_health`, `infra_unreachable`, `budget_paused`, `budget_threshold`, `key_drift`,
|
|
399
|
+
* `initiative`) are
|
|
393
400
|
* operator concerns with no external action, and shipping them by default turns the endpoint into a
|
|
394
401
|
* firehose. A deployment that DOES want an infrastructure outage on its webhook can name it in the
|
|
395
402
|
* per-webhook `types` filter, which is exactly what that filter is for.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification-webhooks.d.ts","sourceRoot":"","sources":["../src/notification-webhooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAoB5B;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,6EAA6D,CAAA;AACjG,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAEjF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,wBAAwB,qFAGnC,CAAA;AACF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAEnF,+FAA+F;AAC/F,eAAO,MAAM,yBAAyB;IACpC,mDAAmD;;IAEnD;;;;OAIG;;IAEH;;;;OAIG;;IAEH;;;OAGG;;IAEH,sFAAsF;;IAEtF,6EAA6E;;;aAG7E,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAEjF;;;;;;;;;;;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WAAW,CACvD,OAAO,mCAAmC,CAC3C,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,kCAAkC;;IAE7C,kGAAkG;;;;;QAKhG;;;WAGG;;QAEH;;;;WAIG;;QAEH;;;WAGG;;YArEL,oEAAoE;;YAEpE,6FAA6F;;YAE7F,8EAA8E;;YAE9E;;;;;eAKG;;;QA4DD;;;;WAIG;;QAEH;;;;;WAKG;;;;;;;QAEH;;;;WAIG;;;aAGL,CAAA;AACF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kCAAkC,CAAC,CAAA;AAEnG;;;;;;;;;GASG;AACH,eAAO,MAAM,kCAAkC,kKAS6B,CAAA"}
|
|
@@ -293,7 +293,8 @@ export const platformAlertWebhookDeliverySchema = v.object({
|
|
|
293
293
|
* The notification types delivered when a webhook declares no explicit `types` filter: the
|
|
294
294
|
* human-parking cards a headless overseer must react to, plus the failure tails it can act on
|
|
295
295
|
* through the public notification surface. Deliberately NOT every type — the block-less/system
|
|
296
|
-
* cards (`platform_health`, `infra_unreachable`, `budget_paused`, `
|
|
296
|
+
* cards (`platform_health`, `infra_unreachable`, `budget_paused`, `budget_threshold`, `key_drift`,
|
|
297
|
+
* `initiative`) are
|
|
297
298
|
* operator concerns with no external action, and shipping them by default turns the endpoint into a
|
|
298
299
|
* firehose. A deployment that DOES want an infrastructure outage on its webhook can name it in the
|
|
299
300
|
* per-webhook `types` filter, which is exactly what that filter is for.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification-webhooks.js","sourceRoot":"","sources":["../src/notification-webhooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAA;AAC/E,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAA;AAE7D,8EAA8E;AAC9E,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AAG;IAChD,oBAAoB;IACpB,gBAAgB;IAChB,mBAAmB;IACnB,uBAAuB;IACvB,cAAc;IACd,mBAAmB;IACnB,WAAW;IACX,aAAa;CAC6D,CAAA"}
|
package/dist/notifications.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as v from 'valibot';
|
|
|
4
4
|
* the frontend can switch on it to render the right action; extending it is a
|
|
5
5
|
* one-line change here plus a handler in the worker's `act` route.
|
|
6
6
|
*/
|
|
7
|
-
export declare const notificationTypeSchema: 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>;
|
|
7
|
+
export declare const notificationTypeSchema: 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>;
|
|
8
8
|
export type NotificationType = v.InferOutput<typeof notificationTypeSchema>;
|
|
9
9
|
/**
|
|
10
10
|
* The closed set of notification types that count as "a task is waiting on a human review"
|
|
@@ -17,8 +17,8 @@ export type NotificationType = v.InferOutput<typeof notificationTypeSchema>;
|
|
|
17
17
|
*
|
|
18
18
|
* Deliberately EXCLUDED: failure-remediation cards (`ci_failed`, `test_failed`,
|
|
19
19
|
* `release_regression`) — "the machine needs help", not "a human owes a review" — and
|
|
20
|
-
* block-less/system cards (`platform_health`, `infra_unreachable`, `budget_paused`,
|
|
21
|
-
* `initiative`) that aren't tied to a reviewable task. `merge_tag_request` is excluded too: the PR
|
|
20
|
+
* block-less/system cards (`platform_health`, `infra_unreachable`, `budget_paused`,
|
|
21
|
+
* `budget_threshold`, `key_drift`, `initiative`) that aren't tied to a reviewable task. `merge_tag_request` is excluded too: the PR
|
|
22
22
|
* it concerns has ALREADY merged, so it is a post-hoc nudge for one tap — counting it as review
|
|
23
23
|
* debt would friction task authoring over work that is finished.
|
|
24
24
|
*/
|
|
@@ -49,6 +49,35 @@ export declare const keyDriftAffectedSchema: v.ObjectSchema<{
|
|
|
49
49
|
readonly sealedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
50
50
|
}, undefined>;
|
|
51
51
|
export type KeyDriftAffected = v.InferOutput<typeof keyDriftAffectedSchema>;
|
|
52
|
+
/**
|
|
53
|
+
* Which budget tier a `budget_threshold` alert concerns. The USER tier is deliberately absent:
|
|
54
|
+
* a personal budget is not a fact a workspace-visible card may state, and there is no per-user
|
|
55
|
+
* inbox to raise it in. Warning an individual before their own budget runs out is a separate
|
|
56
|
+
* surface (see the spend-forecasting tracker), not a member of this vocabulary.
|
|
57
|
+
*/
|
|
58
|
+
export declare const budgetAlertTierSchema: v.PicklistSchema<["workspace", "account"], undefined>;
|
|
59
|
+
export type BudgetAlertTier = v.InferOutput<typeof budgetAlertTierSchema>;
|
|
60
|
+
/**
|
|
61
|
+
* One firing budget tier on a `budget_threshold` card. STATE only (see
|
|
62
|
+
* {@link notificationPayloadSchema.budgetAlerts}): both fields are stable for as long as the
|
|
63
|
+
* tier's situation is unchanged, which is what lets the sweep re-raise the same card every pass
|
|
64
|
+
* without re-delivering it.
|
|
65
|
+
*/
|
|
66
|
+
export declare const budgetAlertSchema: v.ObjectSchema<{
|
|
67
|
+
readonly tier: v.PicklistSchema<["workspace", "account"], undefined>;
|
|
68
|
+
/**
|
|
69
|
+
* The highest alert threshold this tier's ACTUAL spend has crossed, as a fraction of the
|
|
70
|
+
* limit (e.g. `0.8`). Null when nothing is crossed and only the projection fired.
|
|
71
|
+
*/
|
|
72
|
+
readonly threshold: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
73
|
+
/**
|
|
74
|
+
* Whether the tier is PROJECTED to exceed its limit before the period ends while actual
|
|
75
|
+
* spend has not yet reached it. The forward-looking half of the alert: a board can be at 30%
|
|
76
|
+
* on the 10th and still be on pace to overrun.
|
|
77
|
+
*/
|
|
78
|
+
readonly projectedOverrun: v.BooleanSchema<undefined>;
|
|
79
|
+
}, undefined>;
|
|
80
|
+
export type BudgetAlert = v.InferOutput<typeof budgetAlertSchema>;
|
|
52
81
|
/**
|
|
53
82
|
* Lifecycle of a notification: `open` until a human engages, terminal `acted`
|
|
54
83
|
* once its action ran (merged, confirmed, retried…), or `dismissed` when waved
|
|
@@ -216,6 +245,35 @@ export declare const notificationPayloadSchema: v.ObjectSchema<{
|
|
|
216
245
|
/** Epoch ms the secret was sealed, when known — helps an operator correlate a key change. */
|
|
217
246
|
readonly sealedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
218
247
|
}, undefined>, undefined>, undefined>;
|
|
248
|
+
/**
|
|
249
|
+
* On a `budget_threshold` notification: the billing period the alert belongs to (epoch ms,
|
|
250
|
+
* UTC month start). Part of the card's dedup identity, and the field that RE-ARMS every
|
|
251
|
+
* signal below at the period rollover. Without it, a workspace that crossed 80% in July
|
|
252
|
+
* would look "already notified" for August's first crossing too.
|
|
253
|
+
*/
|
|
254
|
+
readonly budgetPeriodStart: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
255
|
+
/**
|
|
256
|
+
* On a `budget_threshold` notification: which budget tiers are firing and how, sorted by
|
|
257
|
+
* tier. The card's dedup identity, so it carries only STATE (the threshold crossed, whether
|
|
258
|
+
* the projection overruns) and never live figures: spend and burn rate move on every sweep,
|
|
259
|
+
* and any payload change re-delivers the card, so putting the interesting number here would
|
|
260
|
+
* re-toast the inbox every few minutes for the rest of the month. The figures live on the
|
|
261
|
+
* Usage surface the card points at.
|
|
262
|
+
*/
|
|
263
|
+
readonly budgetAlerts: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
264
|
+
readonly tier: v.PicklistSchema<["workspace", "account"], undefined>;
|
|
265
|
+
/**
|
|
266
|
+
* The highest alert threshold this tier's ACTUAL spend has crossed, as a fraction of the
|
|
267
|
+
* limit (e.g. `0.8`). Null when nothing is crossed and only the projection fired.
|
|
268
|
+
*/
|
|
269
|
+
readonly threshold: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
270
|
+
/**
|
|
271
|
+
* Whether the tier is PROJECTED to exceed its limit before the period ends while actual
|
|
272
|
+
* spend has not yet reached it. The forward-looking half of the alert: a board can be at 30%
|
|
273
|
+
* on the 10th and still be on pace to overrun.
|
|
274
|
+
*/
|
|
275
|
+
readonly projectedOverrun: v.BooleanSchema<undefined>;
|
|
276
|
+
}, undefined>, undefined>, undefined>;
|
|
219
277
|
/**
|
|
220
278
|
* The run's deterministic change class, on a `merge_review` / `pipeline_complete` /
|
|
221
279
|
* `merge_tag_request` card — so the human sees WHAT KIND of change they are being asked to
|
|
@@ -233,7 +291,7 @@ export type NotificationPayload = v.InferOutput<typeof notificationPayloadSchema
|
|
|
233
291
|
/** A human-actionable item surfaced on the board. */
|
|
234
292
|
export declare const notificationSchema: v.ObjectSchema<{
|
|
235
293
|
readonly id: v.StringSchema<undefined>;
|
|
236
|
-
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>;
|
|
294
|
+
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>;
|
|
237
295
|
readonly status: v.PicklistSchema<["open", "acted", "dismissed"], undefined>;
|
|
238
296
|
/**
|
|
239
297
|
* Render urgency (see {@link notificationSeveritySchema}). Absent ⇒ `normal`. Flipped
|
|
@@ -393,6 +451,35 @@ export declare const notificationSchema: v.ObjectSchema<{
|
|
|
393
451
|
/** Epoch ms the secret was sealed, when known — helps an operator correlate a key change. */
|
|
394
452
|
readonly sealedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
395
453
|
}, undefined>, undefined>, undefined>;
|
|
454
|
+
/**
|
|
455
|
+
* On a `budget_threshold` notification: the billing period the alert belongs to (epoch ms,
|
|
456
|
+
* UTC month start). Part of the card's dedup identity, and the field that RE-ARMS every
|
|
457
|
+
* signal below at the period rollover. Without it, a workspace that crossed 80% in July
|
|
458
|
+
* would look "already notified" for August's first crossing too.
|
|
459
|
+
*/
|
|
460
|
+
readonly budgetPeriodStart: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
461
|
+
/**
|
|
462
|
+
* On a `budget_threshold` notification: which budget tiers are firing and how, sorted by
|
|
463
|
+
* tier. The card's dedup identity, so it carries only STATE (the threshold crossed, whether
|
|
464
|
+
* the projection overruns) and never live figures: spend and burn rate move on every sweep,
|
|
465
|
+
* and any payload change re-delivers the card, so putting the interesting number here would
|
|
466
|
+
* re-toast the inbox every few minutes for the rest of the month. The figures live on the
|
|
467
|
+
* Usage surface the card points at.
|
|
468
|
+
*/
|
|
469
|
+
readonly budgetAlerts: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
470
|
+
readonly tier: v.PicklistSchema<["workspace", "account"], undefined>;
|
|
471
|
+
/**
|
|
472
|
+
* The highest alert threshold this tier's ACTUAL spend has crossed, as a fraction of the
|
|
473
|
+
* limit (e.g. `0.8`). Null when nothing is crossed and only the projection fired.
|
|
474
|
+
*/
|
|
475
|
+
readonly threshold: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
476
|
+
/**
|
|
477
|
+
* Whether the tier is PROJECTED to exceed its limit before the period ends while actual
|
|
478
|
+
* spend has not yet reached it. The forward-looking half of the alert: a board can be at 30%
|
|
479
|
+
* on the 10th and still be on pace to overrun.
|
|
480
|
+
*/
|
|
481
|
+
readonly projectedOverrun: v.BooleanSchema<undefined>;
|
|
482
|
+
}, undefined>, undefined>, undefined>;
|
|
396
483
|
/**
|
|
397
484
|
* The run's deterministic change class, on a `merge_review` / `pipeline_complete` /
|
|
398
485
|
* `merge_tag_request` card — so the human sees WHAT KIND of change they are being asked to
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../src/notifications.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"notifications.d.ts","sourceRoot":"","sources":["../src/notifications.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAkG5B;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,icAuBjC,CAAA;AACF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAE3E;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,8BAA8B,8PAaK,CAAA;AAEhD,MAAM,MAAM,0BAA0B,GAAG,CAAC,OAAO,8BAA8B,CAAC,CAAC,MAAM,CAAC,CAAA;AAMxF,wFAAwF;AACxF,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAE5E;AAED;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB;IACjC,qGAAqG;;IAErG,2DAA2D;;IAE3D,+DAA+D;;IAE/D;;;;OAIG;;IAEH,6FAA6F;;aAE7F,CAAA;AACF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAE3E;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,uDAAuC,CAAA;AACzE,MAAM,MAAM,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ssessmentSchema, releaseSignalSchema } from './release.js';
|
|
|
78
78
|
// a `paused` run, so without this card the ONLY signal is the paused
|
|
79
79
|
// badge on the board. Raise the budget then resume from the spend panel;
|
|
80
80
|
// `act` just marks it read.
|
|
81
|
+
// - `budget_threshold`: the spend-forecast sweep found a workspace's (or its account's) metered
|
|
82
|
+
// spend has crossed an alert threshold of the monthly budget, or is
|
|
83
|
+
// projected to overrun it before the period ends. The PROACTIVE
|
|
84
|
+
// counterpart to `budget_paused`, which only arrives once runs are
|
|
85
|
+
// already being paused: this one fires while there is still time to
|
|
86
|
+
// raise the limit or stop a runaway. Workspace-scoped and purely
|
|
87
|
+
// informational; it re-arms at the period rollover.
|
|
81
88
|
//
|
|
82
89
|
// In-app delivery is the only channel today, but the core models delivery behind
|
|
83
90
|
// a `NotificationChannel` port so email / Slack channels can be added later
|
|
@@ -108,6 +115,7 @@ export const notificationTypeSchema = v.picklist([
|
|
|
108
115
|
'platform_health',
|
|
109
116
|
'infra_unreachable',
|
|
110
117
|
'budget_paused',
|
|
118
|
+
'budget_threshold',
|
|
111
119
|
'key_drift',
|
|
112
120
|
'merge_tag_request',
|
|
113
121
|
]);
|
|
@@ -122,8 +130,8 @@ export const notificationTypeSchema = v.picklist([
|
|
|
122
130
|
*
|
|
123
131
|
* Deliberately EXCLUDED: failure-remediation cards (`ci_failed`, `test_failed`,
|
|
124
132
|
* `release_regression`) — "the machine needs help", not "a human owes a review" — and
|
|
125
|
-
* block-less/system cards (`platform_health`, `infra_unreachable`, `budget_paused`,
|
|
126
|
-
* `initiative`) that aren't tied to a reviewable task. `merge_tag_request` is excluded too: the PR
|
|
133
|
+
* block-less/system cards (`platform_health`, `infra_unreachable`, `budget_paused`,
|
|
134
|
+
* `budget_threshold`, `key_drift`, `initiative`) that aren't tied to a reviewable task. `merge_tag_request` is excluded too: the PR
|
|
127
135
|
* it concerns has ALREADY merged, so it is a post-hoc nudge for one tap — counting it as review
|
|
128
136
|
* debt would friction task authoring over work that is finished.
|
|
129
137
|
*/
|
|
@@ -168,6 +176,33 @@ export const keyDriftAffectedSchema = v.object({
|
|
|
168
176
|
/** Epoch ms the secret was sealed, when known — helps an operator correlate a key change. */
|
|
169
177
|
sealedAt: v.nullable(v.number()),
|
|
170
178
|
});
|
|
179
|
+
/**
|
|
180
|
+
* Which budget tier a `budget_threshold` alert concerns. The USER tier is deliberately absent:
|
|
181
|
+
* a personal budget is not a fact a workspace-visible card may state, and there is no per-user
|
|
182
|
+
* inbox to raise it in. Warning an individual before their own budget runs out is a separate
|
|
183
|
+
* surface (see the spend-forecasting tracker), not a member of this vocabulary.
|
|
184
|
+
*/
|
|
185
|
+
export const budgetAlertTierSchema = v.picklist(['workspace', 'account']);
|
|
186
|
+
/**
|
|
187
|
+
* One firing budget tier on a `budget_threshold` card. STATE only (see
|
|
188
|
+
* {@link notificationPayloadSchema.budgetAlerts}): both fields are stable for as long as the
|
|
189
|
+
* tier's situation is unchanged, which is what lets the sweep re-raise the same card every pass
|
|
190
|
+
* without re-delivering it.
|
|
191
|
+
*/
|
|
192
|
+
export const budgetAlertSchema = v.object({
|
|
193
|
+
tier: budgetAlertTierSchema,
|
|
194
|
+
/**
|
|
195
|
+
* The highest alert threshold this tier's ACTUAL spend has crossed, as a fraction of the
|
|
196
|
+
* limit (e.g. `0.8`). Null when nothing is crossed and only the projection fired.
|
|
197
|
+
*/
|
|
198
|
+
threshold: v.nullable(v.number()),
|
|
199
|
+
/**
|
|
200
|
+
* Whether the tier is PROJECTED to exceed its limit before the period ends while actual
|
|
201
|
+
* spend has not yet reached it. The forward-looking half of the alert: a board can be at 30%
|
|
202
|
+
* on the 10th and still be on pace to overrun.
|
|
203
|
+
*/
|
|
204
|
+
projectedOverrun: v.boolean(),
|
|
205
|
+
});
|
|
171
206
|
/**
|
|
172
207
|
* Lifecycle of a notification: `open` until a human engages, terminal `acted`
|
|
173
208
|
* once its action ran (merged, confirmed, retried…), or `dismissed` when waved
|
|
@@ -297,6 +332,22 @@ export const notificationPayloadSchema = v.object({
|
|
|
297
332
|
* (D6.3) targets. Sorted by `(source, id)` so the identity is stable across sweeps.
|
|
298
333
|
*/
|
|
299
334
|
driftAffected: v.optional(v.array(keyDriftAffectedSchema)),
|
|
335
|
+
/**
|
|
336
|
+
* On a `budget_threshold` notification: the billing period the alert belongs to (epoch ms,
|
|
337
|
+
* UTC month start). Part of the card's dedup identity, and the field that RE-ARMS every
|
|
338
|
+
* signal below at the period rollover. Without it, a workspace that crossed 80% in July
|
|
339
|
+
* would look "already notified" for August's first crossing too.
|
|
340
|
+
*/
|
|
341
|
+
budgetPeriodStart: v.optional(v.number()),
|
|
342
|
+
/**
|
|
343
|
+
* On a `budget_threshold` notification: which budget tiers are firing and how, sorted by
|
|
344
|
+
* tier. The card's dedup identity, so it carries only STATE (the threshold crossed, whether
|
|
345
|
+
* the projection overruns) and never live figures: spend and burn rate move on every sweep,
|
|
346
|
+
* and any payload change re-delivers the card, so putting the interesting number here would
|
|
347
|
+
* re-toast the inbox every few minutes for the rest of the month. The figures live on the
|
|
348
|
+
* Usage surface the card points at.
|
|
349
|
+
*/
|
|
350
|
+
budgetAlerts: v.optional(v.array(budgetAlertSchema)),
|
|
300
351
|
/**
|
|
301
352
|
* The run's deterministic change class, on a `merge_review` / `pipeline_complete` /
|
|
302
353
|
* `merge_tag_request` card — so the human sees WHAT KIND of change they are being asked to
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifications.js","sourceRoot":"","sources":["../src/notifications.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AACvD,OAAO,EACL,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA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AM,CAAC;IAC5C,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC;CACzD,CAAC,CAAA;AAGF,iGAAiG;AACjG,iGAAiG;AACjG,iGAAiG;AACjG,iGAAiG;AACjG,+BAA+B"}
|
package/dist/public-api.d.ts
CHANGED
|
@@ -500,7 +500,7 @@ export type PublicPipelineList = v.InferOutput<typeof publicPipelineListSchema>;
|
|
|
500
500
|
export declare const publicNotificationListSchema: v.ObjectSchema<{
|
|
501
501
|
readonly notifications: v.ArraySchema<v.ObjectSchema<{
|
|
502
502
|
readonly id: v.StringSchema<undefined>;
|
|
503
|
-
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>;
|
|
503
|
+
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>;
|
|
504
504
|
readonly status: v.PicklistSchema<["open", "acted", "dismissed"], undefined>;
|
|
505
505
|
readonly severity: v.OptionalSchema<v.PicklistSchema<["normal", "urgent"], undefined>, undefined>;
|
|
506
506
|
readonly blockId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -556,6 +556,12 @@ export declare const publicNotificationListSchema: v.ObjectSchema<{
|
|
|
556
556
|
readonly reason: v.PicklistSchema<["key-mismatch", "corrupt"], undefined>;
|
|
557
557
|
readonly sealedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
558
558
|
}, undefined>, undefined>, undefined>;
|
|
559
|
+
readonly budgetPeriodStart: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
560
|
+
readonly budgetAlerts: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
561
|
+
readonly tier: v.PicklistSchema<["workspace", "account"], undefined>;
|
|
562
|
+
readonly threshold: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
563
|
+
readonly projectedOverrun: v.BooleanSchema<undefined>;
|
|
564
|
+
}, undefined>, undefined>, undefined>;
|
|
559
565
|
readonly changeClass: v.OptionalSchema<v.PicklistSchema<["docs", "test", "dependency", "config", "source", "schema", "unknown"], undefined>, undefined>;
|
|
560
566
|
readonly mergeTrackRecordId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
561
567
|
}, undefined>, undefined>, undefined>;
|
package/dist/public-api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AA4D5B,4EAA4E;AAC5E,eAAO,MAAM,qBAAqB;IAChC,wEAAwE;;IAExE,+EAA+E;;IAE/E,kFAAkF;;aAElF,CAAA;AACF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAE9E;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,iEAAiD,CAAA;AACnF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE,2EAA2E;AAC3E,eAAO,MAAM,qBAAqB;IAChC,kDAAkD;;IAElD,iFAAiF;;aAEjF,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE,4EAA4E;AAC5E,eAAO,MAAM,eAAe;;;;;IAK1B,kFAA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G;AACH,eAAO,MAAM,iBAAiB;IAC5B,2EAA2E;;IAE3E,qEAAqE;;;QAxBrE,4FAA4F;;;QAG5F,6EAA6E;;QAE7E,oFAAoF;;QAEpF,uFAAuF;;;;QA1CvF;;;;;WAKG;;QAEH,iGAAiG;;;;QAIjG,6FAA6F;;;QAG7F;;;;WAIG;;QAEH,wCAAwC;;;aA2CxC,CAAA;AACF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,iBAAiB,CAAC,CAAA"}
|
package/dist/reports.d.ts
CHANGED
|
@@ -4,11 +4,16 @@ export declare const reportWindowSchema: v.PicklistSchema<["24h", "7d", "30d", "
|
|
|
4
4
|
export type ReportWindow = v.InferOutput<typeof reportWindowSchema>;
|
|
5
5
|
/**
|
|
6
6
|
* What a SPEND breakdown groups by. `model` keys on the canonical `provider:model`
|
|
7
|
-
* id; `agentKind` on the metered call's agent kind; the
|
|
8
|
-
*
|
|
9
|
-
*
|
|
7
|
+
* id; `agentKind` on the metered call's agent kind; the rest resolve through the
|
|
8
|
+
* call's run (`workspace` directly, the others via the run's service and block).
|
|
9
|
+
*
|
|
10
|
+
* `repo` and `ticket` are the TCO axes: the two dimensions an organisation actually
|
|
11
|
+
* budgets against. They key on the run's service repo and on the tracker issue linked
|
|
12
|
+
* to the run's block respectively, so "what did this repository cost us this quarter"
|
|
13
|
+
* and "what did this ticket cost" are one grouped query rather than a hand-written join
|
|
14
|
+
* against the database.
|
|
10
15
|
*/
|
|
11
|
-
export declare const reportSpendDimensionSchema: v.PicklistSchema<["model", "agentKind", "workspace", "service", "taskType"], undefined>;
|
|
16
|
+
export declare const reportSpendDimensionSchema: v.PicklistSchema<["model", "agentKind", "workspace", "service", "repo", "taskType", "ticket"], undefined>;
|
|
12
17
|
export type ReportSpendDimension = v.InferOutput<typeof reportSpendDimensionSchema>;
|
|
13
18
|
/**
|
|
14
19
|
* What an ACTIVITY breakdown groups by. A run carries no single agent kind or model
|
|
@@ -158,6 +163,20 @@ export declare const reportsViewSchema: v.ObjectSchema<{
|
|
|
158
163
|
/** Illustrative equivalent-API cost of flat-rate subscription usage. Never real spend. */
|
|
159
164
|
readonly subscriptionCost: v.NumberSchema<undefined>;
|
|
160
165
|
}, undefined>, undefined>;
|
|
166
|
+
/** Spend per linked REPOSITORY, keyed by the provider repo id and labelled `owner/name`. */
|
|
167
|
+
readonly byRepo: v.ArraySchema<v.ObjectSchema<{
|
|
168
|
+
readonly key: v.StringSchema<undefined>;
|
|
169
|
+
/** Human-readable name for `key` when the store can resolve one (workspace/service); else null. */
|
|
170
|
+
readonly label: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
171
|
+
readonly inputTokens: v.NumberSchema<undefined>;
|
|
172
|
+
readonly outputTokens: v.NumberSchema<undefined>;
|
|
173
|
+
/** Number of metered LLM calls in this slice (both billing kinds). */
|
|
174
|
+
readonly calls: v.NumberSchema<undefined>;
|
|
175
|
+
/** Real per-token cost, in the deployment's spend currency. */
|
|
176
|
+
readonly meteredCost: v.NumberSchema<undefined>;
|
|
177
|
+
/** Illustrative equivalent-API cost of flat-rate subscription usage. Never real spend. */
|
|
178
|
+
readonly subscriptionCost: v.NumberSchema<undefined>;
|
|
179
|
+
}, undefined>, undefined>;
|
|
161
180
|
readonly byTaskType: v.ArraySchema<v.ObjectSchema<{
|
|
162
181
|
readonly key: v.StringSchema<undefined>;
|
|
163
182
|
/** Human-readable name for `key` when the store can resolve one (workspace/service); else null. */
|
|
@@ -171,6 +190,24 @@ export declare const reportsViewSchema: v.ObjectSchema<{
|
|
|
171
190
|
/** Illustrative equivalent-API cost of flat-rate subscription usage. Never real spend. */
|
|
172
191
|
readonly subscriptionCost: v.NumberSchema<undefined>;
|
|
173
192
|
}, undefined>, undefined>;
|
|
193
|
+
/**
|
|
194
|
+
* Spend per linked tracker TICKET, keyed `source:externalId` (e.g. `jira:PROJ-412`) and
|
|
195
|
+
* carrying NO label: the key is self-describing, and a block linked from two tickets could
|
|
196
|
+
* otherwise be labelled with one ticket's title beside the other's ref.
|
|
197
|
+
*/
|
|
198
|
+
readonly byTicket: v.ArraySchema<v.ObjectSchema<{
|
|
199
|
+
readonly key: v.StringSchema<undefined>;
|
|
200
|
+
/** Human-readable name for `key` when the store can resolve one (workspace/service); else null. */
|
|
201
|
+
readonly label: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
202
|
+
readonly inputTokens: v.NumberSchema<undefined>;
|
|
203
|
+
readonly outputTokens: v.NumberSchema<undefined>;
|
|
204
|
+
/** Number of metered LLM calls in this slice (both billing kinds). */
|
|
205
|
+
readonly calls: v.NumberSchema<undefined>;
|
|
206
|
+
/** Real per-token cost, in the deployment's spend currency. */
|
|
207
|
+
readonly meteredCost: v.NumberSchema<undefined>;
|
|
208
|
+
/** Illustrative equivalent-API cost of flat-rate subscription usage. Never real spend. */
|
|
209
|
+
readonly subscriptionCost: v.NumberSchema<undefined>;
|
|
210
|
+
}, undefined>, undefined>;
|
|
174
211
|
}, undefined>;
|
|
175
212
|
/** Run activity sliced every way, each busiest-first. */
|
|
176
213
|
readonly activity: v.ObjectSchema<{
|
package/dist/reports.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reports.d.ts","sourceRoot":"","sources":["../src/reports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAe5B,uDAAuD;AACvD,eAAO,MAAM,kBAAkB,0DAA0C,CAAA;AACzE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAEnE
|
|
1
|
+
{"version":3,"file":"reports.d.ts","sourceRoot":"","sources":["../src/reports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAe5B,uDAAuD;AACvD,eAAO,MAAM,kBAAkB,0DAA0C,CAAA;AACzE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kBAAk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AR1F,mGAAmG;;;;YAInG,sEAAsE;;YAEtE,+DAA+D;;YAE/D,0FAA0F;;;;;YAR1F,mGAAmG;;;;YAInG,sEAAsE;;YAEtE,+DAA+D;;YAE/D,0FAA0F;;;;;YAR1F,mGAAmG;;;;YAInG,sEAAsE;;YAEtE,+DAA+D;;YAE/D,0FAA0F;;;QAuExF,4FAA4F;;;YA/E9F,mGAAmG;;;;YAInG,sEAAsE;;YAEtE,+DAA+D;;YAE/D,0FAA0F;;;;;YAR1F,mGAAmG;;;;YAInG,sEAAsE;;YAEtE,+DAA+D;;YAE/D,0FAA0F;;;QA0ExF;;;;WAIG;;;YAtFL,mGAAmG;;;;YAInG,sEAAsE;;YAEtE,+DAA+D;;YAE/D,0FAA0F;;;;IAiF1F,yDAAyD;;;;;YApEzD,oDAAoD;;;;YAIpD,wCAAwC;;YAExC,6DAA6D;;YAE7D,qFAAqF;;;;;;YARrF,oDAAoD;;;;YAIpD,wCAAwC;;YAExC,6DAA6D;;YAE7D,qFAAqF;;;;;;YARrF,oDAAoD;;;;YAIpD,wCAAwC;;YAExC,6DAA6D;;YAE7D,qFAAqF;;;;IAkErF,gDAAgD;;;;YA3DhD,oCAAoC;;;;;;;;;aAgEpC,CAAA;AACF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,iBAAiB,CAAC,CAAA"}
|
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,k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AC;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKhC,CAAA;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhC,CAAA;AAIF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKrC,CAAA;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMnC,CAAA;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMjC,CAAA;AAIF,eAAO,MAAM,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM3C,CAAA;AAQF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAS7B,CAAA"}
|
|
@@ -29,7 +29,7 @@ export declare const getNotificationWebhookContract: {
|
|
|
29
29
|
}, undefined>;
|
|
30
30
|
readonly 200: v.NullableSchema<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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AMlC,CAAA;AAEF,yFAAyF;AACzF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK/B,CAAA;AAEF,yFAAyF;AACzF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKnC,CAAA;AAIF,kFAAkF;AAClF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAItC,CAAA;AASF,2DAA2D;AAC3D,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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>;
|
|
@@ -1692,7 +1692,7 @@ export declare const createWorkspaceContract: {
|
|
|
1692
1692
|
}, undefined>, undefined>;
|
|
1693
1693
|
readonly notifications: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1694
1694
|
readonly id: v.StringSchema<undefined>;
|
|
1695
|
-
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>;
|
|
1695
|
+
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>;
|
|
1696
1696
|
readonly status: v.PicklistSchema<["open", "acted", "dismissed"], undefined>;
|
|
1697
1697
|
readonly severity: v.OptionalSchema<v.PicklistSchema<["normal", "urgent"], undefined>, undefined>;
|
|
1698
1698
|
readonly blockId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -1748,6 +1748,12 @@ export declare const createWorkspaceContract: {
|
|
|
1748
1748
|
readonly reason: v.PicklistSchema<["key-mismatch", "corrupt"], undefined>;
|
|
1749
1749
|
readonly sealedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
1750
1750
|
}, undefined>, undefined>, undefined>;
|
|
1751
|
+
readonly budgetPeriodStart: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1752
|
+
readonly budgetAlerts: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1753
|
+
readonly tier: v.PicklistSchema<["workspace", "account"], undefined>;
|
|
1754
|
+
readonly threshold: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
1755
|
+
readonly projectedOverrun: v.BooleanSchema<undefined>;
|
|
1756
|
+
}, undefined>, undefined>, undefined>;
|
|
1751
1757
|
readonly changeClass: v.OptionalSchema<v.PicklistSchema<["docs", "test", "dependency", "config", "source", "schema", "unknown"], undefined>, undefined>;
|
|
1752
1758
|
readonly mergeTrackRecordId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1753
1759
|
}, undefined>, undefined>, undefined>;
|
|
@@ -4960,7 +4966,7 @@ export declare const getWorkspaceContract: {
|
|
|
4960
4966
|
}, undefined>, undefined>;
|
|
4961
4967
|
readonly notifications: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
4962
4968
|
readonly id: v.StringSchema<undefined>;
|
|
4963
|
-
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>;
|
|
4969
|
+
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>;
|
|
4964
4970
|
readonly status: v.PicklistSchema<["open", "acted", "dismissed"], undefined>;
|
|
4965
4971
|
readonly severity: v.OptionalSchema<v.PicklistSchema<["normal", "urgent"], undefined>, undefined>;
|
|
4966
4972
|
readonly blockId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -5016,6 +5022,12 @@ export declare const getWorkspaceContract: {
|
|
|
5016
5022
|
readonly reason: v.PicklistSchema<["key-mismatch", "corrupt"], undefined>;
|
|
5017
5023
|
readonly sealedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
5018
5024
|
}, undefined>, undefined>, undefined>;
|
|
5025
|
+
readonly budgetPeriodStart: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
5026
|
+
readonly budgetAlerts: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
5027
|
+
readonly tier: v.PicklistSchema<["workspace", "account"], undefined>;
|
|
5028
|
+
readonly threshold: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
5029
|
+
readonly projectedOverrun: v.BooleanSchema<undefined>;
|
|
5030
|
+
}, undefined>, undefined>, undefined>;
|
|
5019
5031
|
readonly changeClass: v.OptionalSchema<v.PicklistSchema<["docs", "test", "dependency", "config", "source", "schema", "unknown"], undefined>, undefined>;
|
|
5020
5032
|
readonly mergeTrackRecordId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
5021
5033
|
}, undefined>, 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/slack.d.ts
CHANGED
|
@@ -30,7 +30,7 @@ export type SlackRoute = v.InferOutput<typeof slackRouteSchema>;
|
|
|
30
30
|
* type absent from `routes`, disabled, or with an empty channel does not post.
|
|
31
31
|
*/
|
|
32
32
|
export declare const slackNotificationSettingsSchema: v.ObjectSchema<{
|
|
33
|
-
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<{
|
|
33
|
+
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<{
|
|
34
34
|
readonly enabled: v.BooleanSchema<undefined>;
|
|
35
35
|
/** A channel id (`C0123…`) or name (`#general`); empty = unrouted. */
|
|
36
36
|
readonly channel: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 200, undefined>]>;
|
|
@@ -83,7 +83,7 @@ export declare const connectSlackByTokenSchema: v.ObjectSchema<{
|
|
|
83
83
|
export type ConnectSlackByTokenInput = v.InferOutput<typeof connectSlackByTokenSchema>;
|
|
84
84
|
/** Replace a workspace's Slack notification routing. */
|
|
85
85
|
export declare const updateSlackSettingsSchema: v.ObjectSchema<{
|
|
86
|
-
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<{
|
|
86
|
+
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<{
|
|
87
87
|
readonly enabled: v.BooleanSchema<undefined>;
|
|
88
88
|
/** A channel id (`C0123…`) or name (`#general`); empty = unrouted. */
|
|
89
89
|
readonly channel: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 200, undefined>]>;
|
package/dist/snapshot.d.ts
CHANGED
|
@@ -1685,7 +1685,7 @@ export declare const workspaceSnapshotSchema: v.ObjectSchema<{
|
|
|
1685
1685
|
*/
|
|
1686
1686
|
readonly notifications: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1687
1687
|
readonly id: v.StringSchema<undefined>;
|
|
1688
|
-
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>;
|
|
1688
|
+
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>;
|
|
1689
1689
|
readonly status: v.PicklistSchema<["open", "acted", "dismissed"], undefined>;
|
|
1690
1690
|
readonly severity: v.OptionalSchema<v.PicklistSchema<["normal", "urgent"], undefined>, undefined>;
|
|
1691
1691
|
readonly blockId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -1741,6 +1741,12 @@ export declare const workspaceSnapshotSchema: v.ObjectSchema<{
|
|
|
1741
1741
|
readonly reason: v.PicklistSchema<["key-mismatch", "corrupt"], undefined>;
|
|
1742
1742
|
readonly sealedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
1743
1743
|
}, undefined>, undefined>, undefined>;
|
|
1744
|
+
readonly budgetPeriodStart: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1745
|
+
readonly budgetAlerts: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1746
|
+
readonly tier: v.PicklistSchema<["workspace", "account"], undefined>;
|
|
1747
|
+
readonly threshold: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
1748
|
+
readonly projectedOverrun: v.BooleanSchema<undefined>;
|
|
1749
|
+
}, undefined>, undefined>, undefined>;
|
|
1744
1750
|
readonly changeClass: v.OptionalSchema<v.PicklistSchema<["docs", "test", "dependency", "config", "source", "schema", "unknown"], undefined>, undefined>;
|
|
1745
1751
|
readonly mergeTrackRecordId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1746
1752
|
}, undefined>, 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;AAwC5B;;;;;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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