@cat-factory/contracts 0.145.0 → 0.146.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/notifications.d.ts +2 -2
- package/dist/notifications.d.ts.map +1 -1
- package/dist/notifications.js +7 -0
- package/dist/notifications.js.map +1 -1
- package/dist/public-api.d.ts +1 -1
- package/dist/routes/notifications.d.ts +3 -3
- package/dist/routes/public-api.d.ts +3 -3
- package/dist/routes/slack.d.ts +3 -3
- package/dist/routes/workspaces.d.ts +2 -2
- package/dist/slack.d.ts +2 -2
- package/dist/snapshot.d.ts +1 -1
- package/package.json +1 -1
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", "pr_review_ready", "initiative"], 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", "pr_review_ready", "initiative", "budget_paused"], undefined>;
|
|
8
8
|
export type NotificationType = v.InferOutput<typeof notificationTypeSchema>;
|
|
9
9
|
/**
|
|
10
10
|
* Lifecycle of a notification: `open` until a human engages, terminal `acted`
|
|
@@ -85,7 +85,7 @@ export type NotificationPayload = v.InferOutput<typeof notificationPayloadSchema
|
|
|
85
85
|
/** A human-actionable item surfaced on the board. */
|
|
86
86
|
export declare const notificationSchema: v.ObjectSchema<{
|
|
87
87
|
readonly id: v.StringSchema<undefined>;
|
|
88
|
-
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", "pr_review_ready", "initiative"], undefined>;
|
|
88
|
+
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", "pr_review_ready", "initiative", "budget_paused"], undefined>;
|
|
89
89
|
readonly status: v.PicklistSchema<["open", "acted", "dismissed"], undefined>;
|
|
90
90
|
/**
|
|
91
91
|
* Render urgency (see {@link notificationSeveritySchema}). Absent ⇒ `normal`. Flipped
|
|
@@ -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;AAiE5B;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,mVAiBjC,CAAA;AACF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAE3E;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,6DAA6C,CAAA;AAClF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAE/E;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B,mDAAmC,CAAA;AAC1E,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAEnF;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB;IACpC,4DAA4D;;;;;;;IAE5D,sEAAsE;;IAEtE,gFAAgF;;IAEhF,0DAA0D;;IAE1D,kGAAkG;;IAElG,iFAAiF;;IAEjF,mEAAmE;;;;;;;IAEnE,mEAAmE;;;;;;;;IAEnE,4EAA4E;;IAE5E;;;;OAIG;;IAEH,gFAAgF;;IAEhF;;;;OAIG;;IAEH,yGAAyG;;aAEzG,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAEjF,qDAAqD;AACrD,eAAO,MAAM,kBAAkB;;;;IAI7B;;;OAGG;;IAEH,iFAAiF;;IAEjF,yDAAyD;;IAEzD,wCAAwC;;IAExC,mCAAmC;;IAEnC,wFAAwF;;QAvDxF,4DAA4D;;;;;;;QAE5D,sEAAsE;;QAEtE,gFAAgF;;QAEhF,0DAA0D;;QAE1D,kGAAkG;;QAElG,iFAAiF;;QAEjF,mEAAmE;;;;;;;QAEnE,mEAAmE;;;;;;;;QAEnE,4EAA4E;;QAE5E;;;;WAIG;;QAEH,gFAAgF;;QAEhF;;;;WAIG;;QAEH,yGAAyG;;;;IA0BzG,8DAA8D;;aAE9D,CAAA;AACF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAInE,yDAAyD;AACzD,eAAO,MAAM,+BAA+B,iDAAiC,CAAA;AAC7E,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,+BAA+B,CAAC,CAAA"}
|
package/dist/notifications.js
CHANGED
|
@@ -50,6 +50,12 @@ import { onCallAssessmentSchema, releaseSignalSchema } from './release.js';
|
|
|
50
50
|
// this the three-choice decision is reachable only by drilling
|
|
51
51
|
// into the parked step, so the run looks silently stuck; acting
|
|
52
52
|
// on it opens that step's decision surface.
|
|
53
|
+
// - `budget_paused` — one or more runs were paused by the spend safeguard (the workspace,
|
|
54
|
+
// account, or user budget is exhausted). Workspace-scoped (one card,
|
|
55
|
+
// not one per run) and purely informational: the sweeper never re-drives
|
|
56
|
+
// a `paused` run, so without this card the ONLY signal is the paused
|
|
57
|
+
// badge on the board. Raise the budget then resume from the spend panel;
|
|
58
|
+
// `act` just marks it read.
|
|
53
59
|
//
|
|
54
60
|
// In-app delivery is the only channel today, but the core models delivery behind
|
|
55
61
|
// a `NotificationChannel` port so email / Slack channels can be added later
|
|
@@ -76,6 +82,7 @@ export const notificationTypeSchema = v.picklist([
|
|
|
76
82
|
'fork_decision_pending',
|
|
77
83
|
'pr_review_ready',
|
|
78
84
|
'initiative',
|
|
85
|
+
'budget_paused',
|
|
79
86
|
]);
|
|
80
87
|
/**
|
|
81
88
|
* Lifecycle of a notification: `open` until a human engages, terminal `acted`
|
|
@@ -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,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAA;AAE1E,8EAA8E;AAC9E,iFAAiF;AACjF,wEAAwE;AACxE,8EAA8E;AAC9E,iEAAiE;AACjE,2EAA2E;AAC3E,oFAAoF;AACpF,8EAA8E;AAC9E,8EAA8E;AAC9E,iFAAiF;AACjF,gEAAgE;AAChE,oFAAoF;AACpF,qFAAqF;AACrF,+DAA+D;AAC/D,kFAAkF;AAClF,iFAAiF;AACjF,+EAA+E;AAC/E,kFAAkF;AAClF,iFAAiF;AACjF,uFAAuF;AACvF,4FAA4F;AAC5F,wFAAwF;AACxF,yFAAyF;AACzF,4FAA4F;AAC5F,0FAA0F;AAC1F,0FAA0F;AAC1F,4FAA4F;AAC5F,2FAA2F;AAC3F,6FAA6F;AAC7F,sFAAsF;AACtF,sFAAsF;AACtF,4FAA4F;AAC5F,gGAAgG;AAChG,6FAA6F;AAC7F,qFAAqF;AACrF,+FAA+F;AAC/F,gGAAgG;AAChG,+FAA+F;AAC/F,kGAAkG;AAClG,2FAA2F;AAC3F,6FAA6F;AAC7F,8FAA8F;AAC9F,0FAA0F;AAC1F,uFAAuF;AACvF,wFAAwF;AACxF,uFAAuF;AACvF,wFAAwF;AACxF,yFAAyF;AACzF,qEAAqE;AACrE,EAAE;AACF,iFAAiF;AACjF,4EAA4E;AAC5E,4DAA4D;AAC5D,8EAA8E;AAE9E;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,QAAQ,CAAC;IAC/C,cAAc;IACd,mBAAmB;IACnB,WAAW;IACX,aAAa;IACb,oBAAoB;IACpB,gBAAgB;IAChB,oBAAoB;IACpB,mBAAmB;IACnB,kBAAkB;IAClB,2BAA2B;IAC3B,cAAc;IACd,kBAAkB;IAClB,uBAAuB;IACvB,iBAAiB;IACjB,YAAY;
|
|
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,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAA;AAE1E,8EAA8E;AAC9E,iFAAiF;AACjF,wEAAwE;AACxE,8EAA8E;AAC9E,iEAAiE;AACjE,2EAA2E;AAC3E,oFAAoF;AACpF,8EAA8E;AAC9E,8EAA8E;AAC9E,iFAAiF;AACjF,gEAAgE;AAChE,oFAAoF;AACpF,qFAAqF;AACrF,+DAA+D;AAC/D,kFAAkF;AAClF,iFAAiF;AACjF,+EAA+E;AAC/E,kFAAkF;AAClF,iFAAiF;AACjF,uFAAuF;AACvF,4FAA4F;AAC5F,wFAAwF;AACxF,yFAAyF;AACzF,4FAA4F;AAC5F,0FAA0F;AAC1F,0FAA0F;AAC1F,4FAA4F;AAC5F,2FAA2F;AAC3F,6FAA6F;AAC7F,sFA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AAM,CAAC;IACzC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,sBAAsB;IAC5B,MAAM,EAAE,wBAAwB;IAChC;;;OAGG;IACH,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,0BAA0B,CAAC;IAChD,iFAAiF;IACjF,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC/B,yDAAyD;IACzD,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACnC,wCAAwC;IACxC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,mCAAmC;IACnC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,wFAAwF;IACxF,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,yBAAyB,CAAC,CAAC;IAC1D,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,8DAA8D;IAC9D,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACnC,CAAC,CAAA;AAGF,8EAA8E;AAE9E,yDAAyD;AACzD,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAA"}
|
package/dist/public-api.d.ts
CHANGED
|
@@ -269,7 +269,7 @@ export type PublicPipelineList = v.InferOutput<typeof publicPipelineListSchema>;
|
|
|
269
269
|
export declare const publicNotificationListSchema: v.ObjectSchema<{
|
|
270
270
|
readonly notifications: v.ArraySchema<v.ObjectSchema<{
|
|
271
271
|
readonly id: v.StringSchema<undefined>;
|
|
272
|
-
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", "pr_review_ready", "initiative"], undefined>;
|
|
272
|
+
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", "pr_review_ready", "initiative", "budget_paused"], undefined>;
|
|
273
273
|
readonly status: v.PicklistSchema<["open", "acted", "dismissed"], undefined>;
|
|
274
274
|
readonly severity: v.OptionalSchema<v.PicklistSchema<["normal", "urgent"], undefined>, undefined>;
|
|
275
275
|
readonly blockId: v.NullableSchema<v.StringSchema<undefined>, 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", "pr_review_ready", "initiative"], 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", "pr_review_ready", "initiative", "budget_paused"], 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>;
|
|
@@ -105,7 +105,7 @@ export declare const actNotificationContract: {
|
|
|
105
105
|
}, undefined>;
|
|
106
106
|
readonly 200: v.ObjectSchema<{
|
|
107
107
|
readonly id: v.StringSchema<undefined>;
|
|
108
|
-
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", "pr_review_ready", "initiative"], undefined>;
|
|
108
|
+
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", "pr_review_ready", "initiative", "budget_paused"], undefined>;
|
|
109
109
|
readonly status: v.PicklistSchema<["open", "acted", "dismissed"], undefined>;
|
|
110
110
|
readonly severity: v.OptionalSchema<v.PicklistSchema<["normal", "urgent"], undefined>, undefined>;
|
|
111
111
|
readonly blockId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -182,7 +182,7 @@ export declare const dismissNotificationContract: {
|
|
|
182
182
|
}, undefined>;
|
|
183
183
|
readonly 200: v.ObjectSchema<{
|
|
184
184
|
readonly id: v.StringSchema<undefined>;
|
|
185
|
-
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", "pr_review_ready", "initiative"], undefined>;
|
|
185
|
+
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", "pr_review_ready", "initiative", "budget_paused"], undefined>;
|
|
186
186
|
readonly status: v.PicklistSchema<["open", "acted", "dismissed"], undefined>;
|
|
187
187
|
readonly severity: v.OptionalSchema<v.PicklistSchema<["normal", "urgent"], undefined>, undefined>;
|
|
188
188
|
readonly blockId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -737,7 +737,7 @@ export declare const listPublicNotificationsContract: {
|
|
|
737
737
|
readonly 200: import("valibot").ObjectSchema<{
|
|
738
738
|
readonly notifications: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
739
739
|
readonly id: import("valibot").StringSchema<undefined>;
|
|
740
|
-
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", "pr_review_ready", "initiative"], undefined>;
|
|
740
|
+
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", "pr_review_ready", "initiative", "budget_paused"], undefined>;
|
|
741
741
|
readonly status: import("valibot").PicklistSchema<["open", "acted", "dismissed"], undefined>;
|
|
742
742
|
readonly severity: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["normal", "urgent"], undefined>, undefined>;
|
|
743
743
|
readonly blockId: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
@@ -816,7 +816,7 @@ export declare const actPublicNotificationContract: {
|
|
|
816
816
|
}, undefined>;
|
|
817
817
|
readonly 200: import("valibot").ObjectSchema<{
|
|
818
818
|
readonly id: import("valibot").StringSchema<undefined>;
|
|
819
|
-
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", "pr_review_ready", "initiative"], undefined>;
|
|
819
|
+
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", "pr_review_ready", "initiative", "budget_paused"], undefined>;
|
|
820
820
|
readonly status: import("valibot").PicklistSchema<["open", "acted", "dismissed"], undefined>;
|
|
821
821
|
readonly severity: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["normal", "urgent"], undefined>, undefined>;
|
|
822
822
|
readonly blockId: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
|
@@ -894,7 +894,7 @@ export declare const dismissPublicNotificationContract: {
|
|
|
894
894
|
}, undefined>;
|
|
895
895
|
readonly 200: import("valibot").ObjectSchema<{
|
|
896
896
|
readonly id: import("valibot").StringSchema<undefined>;
|
|
897
|
-
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", "pr_review_ready", "initiative"], undefined>;
|
|
897
|
+
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", "pr_review_ready", "initiative", "budget_paused"], undefined>;
|
|
898
898
|
readonly status: import("valibot").PicklistSchema<["open", "acted", "dismissed"], undefined>;
|
|
899
899
|
readonly severity: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["normal", "urgent"], undefined>, undefined>;
|
|
900
900
|
readonly blockId: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
|
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", "pr_review_ready", "initiative"], 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", "pr_review_ready", "initiative", "budget_paused"], 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", "pr_review_ready", "initiative"], 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", "pr_review_ready", "initiative", "budget_paused"], 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", "pr_review_ready", "initiative"], 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", "pr_review_ready", "initiative", "budget_paused"], 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>;
|
|
@@ -1386,7 +1386,7 @@ export declare const createWorkspaceContract: {
|
|
|
1386
1386
|
}, undefined>, undefined>;
|
|
1387
1387
|
readonly notifications: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1388
1388
|
readonly id: v.StringSchema<undefined>;
|
|
1389
|
-
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", "pr_review_ready", "initiative"], undefined>;
|
|
1389
|
+
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", "pr_review_ready", "initiative", "budget_paused"], undefined>;
|
|
1390
1390
|
readonly status: v.PicklistSchema<["open", "acted", "dismissed"], undefined>;
|
|
1391
1391
|
readonly severity: v.OptionalSchema<v.PicklistSchema<["normal", "urgent"], undefined>, undefined>;
|
|
1392
1392
|
readonly blockId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -3627,7 +3627,7 @@ export declare const getWorkspaceContract: {
|
|
|
3627
3627
|
}, undefined>, undefined>;
|
|
3628
3628
|
readonly notifications: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
3629
3629
|
readonly id: v.StringSchema<undefined>;
|
|
3630
|
-
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", "pr_review_ready", "initiative"], undefined>;
|
|
3630
|
+
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", "pr_review_ready", "initiative", "budget_paused"], undefined>;
|
|
3631
3631
|
readonly status: v.PicklistSchema<["open", "acted", "dismissed"], undefined>;
|
|
3632
3632
|
readonly severity: v.OptionalSchema<v.PicklistSchema<["normal", "urgent"], undefined>, undefined>;
|
|
3633
3633
|
readonly blockId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
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", "pr_review_ready", "initiative"], 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", "pr_review_ready", "initiative", "budget_paused"], 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", "pr_review_ready", "initiative"], 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", "pr_review_ready", "initiative", "budget_paused"], 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
|
@@ -1361,7 +1361,7 @@ export declare const workspaceSnapshotSchema: v.ObjectSchema<{
|
|
|
1361
1361
|
*/
|
|
1362
1362
|
readonly notifications: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1363
1363
|
readonly id: v.StringSchema<undefined>;
|
|
1364
|
-
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", "pr_review_ready", "initiative"], undefined>;
|
|
1364
|
+
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", "pr_review_ready", "initiative", "budget_paused"], undefined>;
|
|
1365
1365
|
readonly status: v.PicklistSchema<["open", "acted", "dismissed"], undefined>;
|
|
1366
1366
|
readonly severity: v.OptionalSchema<v.PicklistSchema<["normal", "urgent"], undefined>, undefined>;
|
|
1367
1367
|
readonly blockId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|