@cat-factory/contracts 0.219.0 → 0.220.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/bug-hunt.d.ts +5 -5
- package/dist/execution.d.ts +74 -0
- package/dist/execution.d.ts.map +1 -1
- package/dist/execution.js +34 -0
- package/dist/execution.js.map +1 -1
- package/dist/localModels.d.ts +23 -0
- package/dist/localModels.d.ts.map +1 -1
- package/dist/localModels.js +29 -0
- package/dist/localModels.js.map +1 -1
- package/dist/recurring.d.ts +139 -4
- package/dist/recurring.d.ts.map +1 -1
- package/dist/recurring.js +47 -0
- package/dist/recurring.js.map +1 -1
- package/dist/routes/agent-runs.d.ts +12 -0
- package/dist/routes/agent-runs.d.ts.map +1 -1
- package/dist/routes/auth.d.ts +82 -0
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/auth.js +29 -0
- package/dist/routes/auth.js.map +1 -1
- package/dist/routes/bug-hunt.d.ts +17 -5
- package/dist/routes/bug-hunt.d.ts.map +1 -1
- package/dist/routes/execution.d.ts +48 -0
- package/dist/routes/execution.d.ts.map +1 -1
- package/dist/routes/human-review.d.ts +6 -0
- package/dist/routes/human-review.d.ts.map +1 -1
- package/dist/routes/human-test.d.ts +30 -0
- package/dist/routes/human-test.d.ts.map +1 -1
- package/dist/routes/localModels.d.ts +3 -0
- package/dist/routes/localModels.d.ts.map +1 -1
- package/dist/routes/recurring.d.ts +18 -6
- package/dist/routes/recurring.d.ts.map +1 -1
- package/dist/routes/tasks.d.ts +14 -14
- package/dist/routes/visual-confirm.d.ts +18 -0
- package/dist/routes/visual-confirm.d.ts.map +1 -1
- package/dist/routes/workspaces.d.ts +18 -2
- package/dist/routes/workspaces.d.ts.map +1 -1
- package/dist/snapshot.d.ts +9 -1
- package/dist/snapshot.d.ts.map +1 -1
- package/dist/tasks.d.ts +43 -12
- package/dist/tasks.d.ts.map +1 -1
- package/dist/tasks.js +40 -3
- package/dist/tasks.js.map +1 -1
- package/package.json +1 -1
package/dist/recurring.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export type ScheduleTemplate = v.InferOutput<typeof scheduleTemplateSchema>;
|
|
|
19
19
|
*/
|
|
20
20
|
export declare const issueIntakeConfigSchema: v.ObjectSchema<{
|
|
21
21
|
/** Which connected task source the intake searches. */
|
|
22
|
-
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
22
|
+
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
23
23
|
/** The vendor's "board"/project scope; exactly the field for `source` is meaningful. */
|
|
24
24
|
readonly board: v.ObjectSchema<{
|
|
25
25
|
/** Jira project key, e.g. `PROJ`. */
|
|
@@ -28,6 +28,16 @@ export declare const issueIntakeConfigSchema: v.ObjectSchema<{
|
|
|
28
28
|
readonly linearTeamId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
29
29
|
/** GitHub repository as `owner/name`. */
|
|
30
30
|
readonly githubRepo: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
31
|
+
/**
|
|
32
|
+
* A DEPLOYMENT-REGISTERED source's board scope, held opaquely: only that provider knows what
|
|
33
|
+
* its board id means, so the platform carries the string and never interprets it.
|
|
34
|
+
*
|
|
35
|
+
* Its own field rather than reusing a built-in's. The three above are named for the vendor
|
|
36
|
+
* whose provider reads them, so putting a registered source's id on one of them would hand a
|
|
37
|
+
* provider a scope belonging to a different tracker — silently, since every one of them is a
|
|
38
|
+
* plain string. A built-in source never sets this and a registered one never sets the others.
|
|
39
|
+
*/
|
|
40
|
+
readonly boardId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
31
41
|
}, undefined>;
|
|
32
42
|
/** Which open issues qualify. All present predicates must match. */
|
|
33
43
|
readonly predicates: v.ObjectSchema<{
|
|
@@ -43,8 +53,43 @@ export declare const issueIntakeConfigSchema: v.ObjectSchema<{
|
|
|
43
53
|
* has no native workflow status). Absent ⇒ `in-progress`.
|
|
44
54
|
*/
|
|
45
55
|
readonly inProgressLabel: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
56
|
+
/**
|
|
57
|
+
* What a WEBHOOK-pushed issue event that matches these predicates actually does. Absent ⇒
|
|
58
|
+
* `queue`, so every existing schedule is unchanged.
|
|
59
|
+
*
|
|
60
|
+
* - **`queue`** fires this schedule, and the run's `bug-intake` step drains the board
|
|
61
|
+
* oldest-first. The pushed issue is not necessarily the one picked up: intake is fair
|
|
62
|
+
* queueing and the webhook's job is to drain the queue promptly, not to reorder it. This is
|
|
63
|
+
* the right shape for a bug backlog, where WHICH bug is worked next is the platform's call.
|
|
64
|
+
* - **`per-ticket`** dispatches THAT ticket: it is imported, materialised as its own task
|
|
65
|
+
* under the schedule's frame, and started on the schedule's pipeline. This is the shape for
|
|
66
|
+
* tickets a human already triaged — a feature request enters the platform from the tracker
|
|
67
|
+
* it was filed in rather than through an API call.
|
|
68
|
+
*
|
|
69
|
+
* They are different enough to be a mode rather than a knob: `queue` reuses ONE block and
|
|
70
|
+
* competes for it, while `per-ticket` creates a block per ticket and never queues. A
|
|
71
|
+
* `per-ticket` config therefore requires `onDemand` (see `assertValidIssueIntake`), because a
|
|
72
|
+
* CADENCE tick has no triggering ticket and would otherwise silently fall back to draining the
|
|
73
|
+
* queue — the same rule under a different name.
|
|
74
|
+
*/
|
|
75
|
+
readonly dispatch: v.OptionalSchema<v.PicklistSchema<["queue", "per-ticket"], undefined>, undefined>;
|
|
46
76
|
}, undefined>;
|
|
47
77
|
export type IssueIntakeConfig = v.InferOutput<typeof issueIntakeConfigSchema>;
|
|
78
|
+
/**
|
|
79
|
+
* Why a schedule's issue-intake configuration was refused, as `error.details.reason`.
|
|
80
|
+
*
|
|
81
|
+
* The backend does not localize prose, so a refusal that carried only its `message` would reach a
|
|
82
|
+
* non-English user as English. These are the machine-readable half the SPA maps to translated copy
|
|
83
|
+
* through an exhaustive `Record`, which is why the vocabulary lives HERE rather than as string
|
|
84
|
+
* literals at the throw site: both sides import the same union, and adding a member fails the SPA's
|
|
85
|
+
* typecheck until it has copy.
|
|
86
|
+
*
|
|
87
|
+
* Both members describe the same underlying rule (the two dispatch modes are exclusive) from the
|
|
88
|
+
* two directions an author can hit it, and they are kept apart because the fix differs: one is
|
|
89
|
+
* "make the schedule on-demand", the other is "pick a pipeline with no `bug-intake` step".
|
|
90
|
+
*/
|
|
91
|
+
export declare const issueIntakeRefusalReasonSchema: v.PicklistSchema<["per_ticket_requires_on_demand", "per_ticket_conflicts_with_bug_intake"], undefined>;
|
|
92
|
+
export type IssueIntakeRefusalReason = v.InferOutput<typeof issueIntakeRefusalReasonSchema>;
|
|
48
93
|
/**
|
|
49
94
|
* How often a schedule fires and when it is allowed to. `intervalHours` is the
|
|
50
95
|
* base cadence; `weekdays` (0=Sunday..6=Saturday; empty = every day) and the
|
|
@@ -106,7 +151,7 @@ export declare const pipelineScheduleSchema: v.ObjectSchema<{
|
|
|
106
151
|
/** Issue-intake scope + predicates, for a pipeline with a `bug-intake` step. */
|
|
107
152
|
readonly issueIntake: v.OptionalSchema<v.ObjectSchema<{
|
|
108
153
|
/** Which connected task source the intake searches. */
|
|
109
|
-
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
154
|
+
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
110
155
|
/** The vendor's "board"/project scope; exactly the field for `source` is meaningful. */
|
|
111
156
|
readonly board: v.ObjectSchema<{
|
|
112
157
|
/** Jira project key, e.g. `PROJ`. */
|
|
@@ -115,6 +160,16 @@ export declare const pipelineScheduleSchema: v.ObjectSchema<{
|
|
|
115
160
|
readonly linearTeamId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
116
161
|
/** GitHub repository as `owner/name`. */
|
|
117
162
|
readonly githubRepo: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
163
|
+
/**
|
|
164
|
+
* A DEPLOYMENT-REGISTERED source's board scope, held opaquely: only that provider knows what
|
|
165
|
+
* its board id means, so the platform carries the string and never interprets it.
|
|
166
|
+
*
|
|
167
|
+
* Its own field rather than reusing a built-in's. The three above are named for the vendor
|
|
168
|
+
* whose provider reads them, so putting a registered source's id on one of them would hand a
|
|
169
|
+
* provider a scope belonging to a different tracker — silently, since every one of them is a
|
|
170
|
+
* plain string. A built-in source never sets this and a registered one never sets the others.
|
|
171
|
+
*/
|
|
172
|
+
readonly boardId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
118
173
|
}, undefined>;
|
|
119
174
|
/** Which open issues qualify. All present predicates must match. */
|
|
120
175
|
readonly predicates: v.ObjectSchema<{
|
|
@@ -130,6 +185,26 @@ export declare const pipelineScheduleSchema: v.ObjectSchema<{
|
|
|
130
185
|
* has no native workflow status). Absent ⇒ `in-progress`.
|
|
131
186
|
*/
|
|
132
187
|
readonly inProgressLabel: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
188
|
+
/**
|
|
189
|
+
* What a WEBHOOK-pushed issue event that matches these predicates actually does. Absent ⇒
|
|
190
|
+
* `queue`, so every existing schedule is unchanged.
|
|
191
|
+
*
|
|
192
|
+
* - **`queue`** fires this schedule, and the run's `bug-intake` step drains the board
|
|
193
|
+
* oldest-first. The pushed issue is not necessarily the one picked up: intake is fair
|
|
194
|
+
* queueing and the webhook's job is to drain the queue promptly, not to reorder it. This is
|
|
195
|
+
* the right shape for a bug backlog, where WHICH bug is worked next is the platform's call.
|
|
196
|
+
* - **`per-ticket`** dispatches THAT ticket: it is imported, materialised as its own task
|
|
197
|
+
* under the schedule's frame, and started on the schedule's pipeline. This is the shape for
|
|
198
|
+
* tickets a human already triaged — a feature request enters the platform from the tracker
|
|
199
|
+
* it was filed in rather than through an API call.
|
|
200
|
+
*
|
|
201
|
+
* They are different enough to be a mode rather than a knob: `queue` reuses ONE block and
|
|
202
|
+
* competes for it, while `per-ticket` creates a block per ticket and never queues. A
|
|
203
|
+
* `per-ticket` config therefore requires `onDemand` (see `assertValidIssueIntake`), because a
|
|
204
|
+
* CADENCE tick has no triggering ticket and would otherwise silently fall back to draining the
|
|
205
|
+
* queue — the same rule under a different name.
|
|
206
|
+
*/
|
|
207
|
+
readonly dispatch: v.OptionalSchema<v.PicklistSchema<["queue", "per-ticket"], undefined>, undefined>;
|
|
133
208
|
}, undefined>, undefined>;
|
|
134
209
|
readonly enabled: v.BooleanSchema<undefined>;
|
|
135
210
|
readonly lastRunAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
@@ -179,7 +254,7 @@ export declare const createScheduleSchema: v.ObjectSchema<{
|
|
|
179
254
|
/** Issue-intake scope + predicates (required by Phase E's validation for a `bug-intake` pipeline). */
|
|
180
255
|
readonly issueIntake: v.OptionalSchema<v.ObjectSchema<{
|
|
181
256
|
/** Which connected task source the intake searches. */
|
|
182
|
-
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
257
|
+
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
183
258
|
/** The vendor's "board"/project scope; exactly the field for `source` is meaningful. */
|
|
184
259
|
readonly board: v.ObjectSchema<{
|
|
185
260
|
/** Jira project key, e.g. `PROJ`. */
|
|
@@ -188,6 +263,16 @@ export declare const createScheduleSchema: v.ObjectSchema<{
|
|
|
188
263
|
readonly linearTeamId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
189
264
|
/** GitHub repository as `owner/name`. */
|
|
190
265
|
readonly githubRepo: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
266
|
+
/**
|
|
267
|
+
* A DEPLOYMENT-REGISTERED source's board scope, held opaquely: only that provider knows what
|
|
268
|
+
* its board id means, so the platform carries the string and never interprets it.
|
|
269
|
+
*
|
|
270
|
+
* Its own field rather than reusing a built-in's. The three above are named for the vendor
|
|
271
|
+
* whose provider reads them, so putting a registered source's id on one of them would hand a
|
|
272
|
+
* provider a scope belonging to a different tracker — silently, since every one of them is a
|
|
273
|
+
* plain string. A built-in source never sets this and a registered one never sets the others.
|
|
274
|
+
*/
|
|
275
|
+
readonly boardId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
191
276
|
}, undefined>;
|
|
192
277
|
/** Which open issues qualify. All present predicates must match. */
|
|
193
278
|
readonly predicates: v.ObjectSchema<{
|
|
@@ -203,6 +288,26 @@ export declare const createScheduleSchema: v.ObjectSchema<{
|
|
|
203
288
|
* has no native workflow status). Absent ⇒ `in-progress`.
|
|
204
289
|
*/
|
|
205
290
|
readonly inProgressLabel: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
291
|
+
/**
|
|
292
|
+
* What a WEBHOOK-pushed issue event that matches these predicates actually does. Absent ⇒
|
|
293
|
+
* `queue`, so every existing schedule is unchanged.
|
|
294
|
+
*
|
|
295
|
+
* - **`queue`** fires this schedule, and the run's `bug-intake` step drains the board
|
|
296
|
+
* oldest-first. The pushed issue is not necessarily the one picked up: intake is fair
|
|
297
|
+
* queueing and the webhook's job is to drain the queue promptly, not to reorder it. This is
|
|
298
|
+
* the right shape for a bug backlog, where WHICH bug is worked next is the platform's call.
|
|
299
|
+
* - **`per-ticket`** dispatches THAT ticket: it is imported, materialised as its own task
|
|
300
|
+
* under the schedule's frame, and started on the schedule's pipeline. This is the shape for
|
|
301
|
+
* tickets a human already triaged — a feature request enters the platform from the tracker
|
|
302
|
+
* it was filed in rather than through an API call.
|
|
303
|
+
*
|
|
304
|
+
* They are different enough to be a mode rather than a knob: `queue` reuses ONE block and
|
|
305
|
+
* competes for it, while `per-ticket` creates a block per ticket and never queues. A
|
|
306
|
+
* `per-ticket` config therefore requires `onDemand` (see `assertValidIssueIntake`), because a
|
|
307
|
+
* CADENCE tick has no triggering ticket and would otherwise silently fall back to draining the
|
|
308
|
+
* queue — the same rule under a different name.
|
|
309
|
+
*/
|
|
310
|
+
readonly dispatch: v.OptionalSchema<v.PicklistSchema<["queue", "per-ticket"], undefined>, undefined>;
|
|
206
311
|
}, undefined>, undefined>;
|
|
207
312
|
readonly enabled: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
208
313
|
/**
|
|
@@ -231,7 +336,7 @@ export declare const updateScheduleSchema: v.ObjectSchema<{
|
|
|
231
336
|
/** New intake config, or null to clear it. Omitted ⇒ unchanged. */
|
|
232
337
|
readonly issueIntake: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
233
338
|
/** Which connected task source the intake searches. */
|
|
234
|
-
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
339
|
+
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
235
340
|
/** The vendor's "board"/project scope; exactly the field for `source` is meaningful. */
|
|
236
341
|
readonly board: v.ObjectSchema<{
|
|
237
342
|
/** Jira project key, e.g. `PROJ`. */
|
|
@@ -240,6 +345,16 @@ export declare const updateScheduleSchema: v.ObjectSchema<{
|
|
|
240
345
|
readonly linearTeamId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
241
346
|
/** GitHub repository as `owner/name`. */
|
|
242
347
|
readonly githubRepo: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
348
|
+
/**
|
|
349
|
+
* A DEPLOYMENT-REGISTERED source's board scope, held opaquely: only that provider knows what
|
|
350
|
+
* its board id means, so the platform carries the string and never interprets it.
|
|
351
|
+
*
|
|
352
|
+
* Its own field rather than reusing a built-in's. The three above are named for the vendor
|
|
353
|
+
* whose provider reads them, so putting a registered source's id on one of them would hand a
|
|
354
|
+
* provider a scope belonging to a different tracker — silently, since every one of them is a
|
|
355
|
+
* plain string. A built-in source never sets this and a registered one never sets the others.
|
|
356
|
+
*/
|
|
357
|
+
readonly boardId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
243
358
|
}, undefined>;
|
|
244
359
|
/** Which open issues qualify. All present predicates must match. */
|
|
245
360
|
readonly predicates: v.ObjectSchema<{
|
|
@@ -255,6 +370,26 @@ export declare const updateScheduleSchema: v.ObjectSchema<{
|
|
|
255
370
|
* has no native workflow status). Absent ⇒ `in-progress`.
|
|
256
371
|
*/
|
|
257
372
|
readonly inProgressLabel: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
373
|
+
/**
|
|
374
|
+
* What a WEBHOOK-pushed issue event that matches these predicates actually does. Absent ⇒
|
|
375
|
+
* `queue`, so every existing schedule is unchanged.
|
|
376
|
+
*
|
|
377
|
+
* - **`queue`** fires this schedule, and the run's `bug-intake` step drains the board
|
|
378
|
+
* oldest-first. The pushed issue is not necessarily the one picked up: intake is fair
|
|
379
|
+
* queueing and the webhook's job is to drain the queue promptly, not to reorder it. This is
|
|
380
|
+
* the right shape for a bug backlog, where WHICH bug is worked next is the platform's call.
|
|
381
|
+
* - **`per-ticket`** dispatches THAT ticket: it is imported, materialised as its own task
|
|
382
|
+
* under the schedule's frame, and started on the schedule's pipeline. This is the shape for
|
|
383
|
+
* tickets a human already triaged — a feature request enters the platform from the tracker
|
|
384
|
+
* it was filed in rather than through an API call.
|
|
385
|
+
*
|
|
386
|
+
* They are different enough to be a mode rather than a knob: `queue` reuses ONE block and
|
|
387
|
+
* competes for it, while `per-ticket` creates a block per ticket and never queues. A
|
|
388
|
+
* `per-ticket` config therefore requires `onDemand` (see `assertValidIssueIntake`), because a
|
|
389
|
+
* CADENCE tick has no triggering ticket and would otherwise silently fall back to draining the
|
|
390
|
+
* queue — the same rule under a different name.
|
|
391
|
+
*/
|
|
392
|
+
readonly dispatch: v.OptionalSchema<v.PicklistSchema<["queue", "per-ticket"], undefined>, undefined>;
|
|
258
393
|
}, undefined>, undefined>, undefined>;
|
|
259
394
|
readonly enabled: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
260
395
|
}, undefined>;
|
package/dist/recurring.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recurring.d.ts","sourceRoot":"","sources":["../src/recurring.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAkB5B;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,kFAKjC,CAAA;AACF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAI3E;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB;IAClC,uDAAuD;;IAEvD,wFAAwF;;QAEtF,qCAAqC;;QAErC,6BAA6B;;QAE7B,yCAAyC;;;
|
|
1
|
+
{"version":3,"file":"recurring.d.ts","sourceRoot":"","sources":["../src/recurring.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAkB5B;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,kFAKjC,CAAA;AACF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAI3E;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB;IAClC,uDAAuD;;IAEvD,wFAAwF;;QAEtF,qCAAqC;;QAErC,6BAA6B;;QAE7B,yCAAyC;;QAEzC;;;;;;;;WAQG;;;IAGL,oEAAoE;;QAElE,qDAAqD;;QAErD,sDAAsD;;QAEtD,2FAA2F;;;IAG7F;;;OAGG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EH,qDAAqD;;QAErD,qFAAqF;;QAErF,mFAAmF;;QAEnF,6DAA6D;;;IAwE7D;;;OAGG;;IAEH,sGAAsG;;QA5KtG,uDAAuD;;QAEvD,wFAAwF;;YAEtF,qCAAqC;;YAErC,6BAA6B;;YAE7B,yCAAyC;;YAEzC;;;;;;;;eAQG;;;QAGL,oEAAoE;;YAElE,qDAAqD;;YAErD,sDAAsD;;YAEtD,2FAA2F;;;QAG7F;;;WAGG;;QAEH;;;;;;;;;;;;;;;;;;WAkBG;;;;IA0HH;;;;OAIG;;aAEH,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAE5E,wDAAwD;AACxD,eAAO,MAAM,oBAAoB;;;;;QAhG/B,qDAAqD;;QAErD,qFAAqF;;QAErF,mFAAmF;;QAEnF,6DAA6D;;;IA8F7D,mEAAmE;;QA7LnE,uDAAuD;;QAEvD,wFAAwF;;YAEtF,qCAAqC;;YAErC,6BAA6B;;YAE7B,yCAAyC;;YAEzC;;;;;;;;eAQG;;;QAGL,oEAAoE;;YAElE,qDAAqD;;YAErD,sDAAsD;;YAEtD,2FAA2F;;;QAG7F;;;WAGG;;QAEH;;;;;;;;;;;;;;;;;;WAkBG;;;;aA2IH,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,oBAAoB,CAAC,CAAA"}
|
package/dist/recurring.js
CHANGED
|
@@ -48,6 +48,16 @@ export const issueIntakeConfigSchema = v.object({
|
|
|
48
48
|
linearTeamId: v.optional(intakePredicateStringSchema),
|
|
49
49
|
/** GitHub repository as `owner/name`. */
|
|
50
50
|
githubRepo: v.optional(intakePredicateStringSchema),
|
|
51
|
+
/**
|
|
52
|
+
* A DEPLOYMENT-REGISTERED source's board scope, held opaquely: only that provider knows what
|
|
53
|
+
* its board id means, so the platform carries the string and never interprets it.
|
|
54
|
+
*
|
|
55
|
+
* Its own field rather than reusing a built-in's. The three above are named for the vendor
|
|
56
|
+
* whose provider reads them, so putting a registered source's id on one of them would hand a
|
|
57
|
+
* provider a scope belonging to a different tracker — silently, since every one of them is a
|
|
58
|
+
* plain string. A built-in source never sets this and a registered one never sets the others.
|
|
59
|
+
*/
|
|
60
|
+
boardId: v.optional(intakePredicateStringSchema),
|
|
51
61
|
}),
|
|
52
62
|
/** Which open issues qualify. All present predicates must match. */
|
|
53
63
|
predicates: v.object({
|
|
@@ -63,7 +73,44 @@ export const issueIntakeConfigSchema = v.object({
|
|
|
63
73
|
* has no native workflow status). Absent ⇒ `in-progress`.
|
|
64
74
|
*/
|
|
65
75
|
inProgressLabel: v.optional(intakePredicateStringSchema),
|
|
76
|
+
/**
|
|
77
|
+
* What a WEBHOOK-pushed issue event that matches these predicates actually does. Absent ⇒
|
|
78
|
+
* `queue`, so every existing schedule is unchanged.
|
|
79
|
+
*
|
|
80
|
+
* - **`queue`** fires this schedule, and the run's `bug-intake` step drains the board
|
|
81
|
+
* oldest-first. The pushed issue is not necessarily the one picked up: intake is fair
|
|
82
|
+
* queueing and the webhook's job is to drain the queue promptly, not to reorder it. This is
|
|
83
|
+
* the right shape for a bug backlog, where WHICH bug is worked next is the platform's call.
|
|
84
|
+
* - **`per-ticket`** dispatches THAT ticket: it is imported, materialised as its own task
|
|
85
|
+
* under the schedule's frame, and started on the schedule's pipeline. This is the shape for
|
|
86
|
+
* tickets a human already triaged — a feature request enters the platform from the tracker
|
|
87
|
+
* it was filed in rather than through an API call.
|
|
88
|
+
*
|
|
89
|
+
* They are different enough to be a mode rather than a knob: `queue` reuses ONE block and
|
|
90
|
+
* competes for it, while `per-ticket` creates a block per ticket and never queues. A
|
|
91
|
+
* `per-ticket` config therefore requires `onDemand` (see `assertValidIssueIntake`), because a
|
|
92
|
+
* CADENCE tick has no triggering ticket and would otherwise silently fall back to draining the
|
|
93
|
+
* queue — the same rule under a different name.
|
|
94
|
+
*/
|
|
95
|
+
dispatch: v.optional(v.picklist(['queue', 'per-ticket'])),
|
|
66
96
|
});
|
|
97
|
+
/**
|
|
98
|
+
* Why a schedule's issue-intake configuration was refused, as `error.details.reason`.
|
|
99
|
+
*
|
|
100
|
+
* The backend does not localize prose, so a refusal that carried only its `message` would reach a
|
|
101
|
+
* non-English user as English. These are the machine-readable half the SPA maps to translated copy
|
|
102
|
+
* through an exhaustive `Record`, which is why the vocabulary lives HERE rather than as string
|
|
103
|
+
* literals at the throw site: both sides import the same union, and adding a member fails the SPA's
|
|
104
|
+
* typecheck until it has copy.
|
|
105
|
+
*
|
|
106
|
+
* Both members describe the same underlying rule (the two dispatch modes are exclusive) from the
|
|
107
|
+
* two directions an author can hit it, and they are kept apart because the fix differs: one is
|
|
108
|
+
* "make the schedule on-demand", the other is "pick a pipeline with no `bug-intake` step".
|
|
109
|
+
*/
|
|
110
|
+
export const issueIntakeRefusalReasonSchema = v.picklist([
|
|
111
|
+
'per_ticket_requires_on_demand',
|
|
112
|
+
'per_ticket_conflicts_with_bug_intake',
|
|
113
|
+
]);
|
|
67
114
|
const hourOfDaySchema = v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(23));
|
|
68
115
|
const weekdaySchema = v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(6));
|
|
69
116
|
/**
|
package/dist/recurring.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recurring.js","sourceRoot":"","sources":["../src/recurring.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAEjD,8EAA8E;AAC9E,+EAA+E;AAC/E,kFAAkF;AAClF,iFAAiF;AACjF,mFAAmF;AACnF,kFAAkF;AAClF,gFAAgF;AAChF,eAAe;AACf,EAAE;AACF,2EAA2E;AAC3E,8EAA8E;AAC9E,kFAAkF;AAClF,uDAAuD;AACvD,8EAA8E;AAE9E;;;;;;;;GAQG;AACH,MAAM,CAAC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IAClC,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IACxC,mEAAmE;IACnE,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAC;IAC5D,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;CACjC,CAAC,CAAA"}
|
|
@@ -752,6 +752,12 @@ export declare const retryAgentRunContract: {
|
|
|
752
752
|
readonly jobId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
753
753
|
readonly startedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
754
754
|
readonly finishedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
755
|
+
readonly firstStartedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
756
|
+
readonly attempts: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
757
|
+
readonly dispatches: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
758
|
+
readonly agentKind: v.StringSchema<undefined>;
|
|
759
|
+
readonly count: v.NumberSchema<undefined>;
|
|
760
|
+
}, undefined>, undefined>, undefined>;
|
|
755
761
|
readonly lastActivityAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
756
762
|
readonly pausedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
757
763
|
readonly evictionRecoveries: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
@@ -1867,6 +1873,12 @@ export declare const stopAgentRunContract: {
|
|
|
1867
1873
|
readonly jobId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1868
1874
|
readonly startedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1869
1875
|
readonly finishedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1876
|
+
readonly firstStartedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1877
|
+
readonly attempts: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1878
|
+
readonly dispatches: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1879
|
+
readonly agentKind: v.StringSchema<undefined>;
|
|
1880
|
+
readonly count: v.NumberSchema<undefined>;
|
|
1881
|
+
}, undefined>, undefined>, undefined>;
|
|
1870
1882
|
readonly lastActivityAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1871
1883
|
readonly pausedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1872
1884
|
readonly evictionRecoveries: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-runs.d.ts","sourceRoot":"","sources":["../../src/routes/agent-runs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAsB5B,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"agent-runs.d.ts","sourceRoot":"","sources":["../../src/routes/agent-runs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAsB5B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM/B,CAAA"}
|
package/dist/routes/auth.d.ts
CHANGED
|
@@ -547,6 +547,88 @@ export declare const mintMachineTokenContract: {
|
|
|
547
547
|
}, undefined>;
|
|
548
548
|
};
|
|
549
549
|
};
|
|
550
|
+
export declare const machineNodeViewSchema: v.ObjectSchema<{
|
|
551
|
+
readonly nodeId: v.StringSchema<undefined>;
|
|
552
|
+
readonly accountIds: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
553
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
554
|
+
readonly lastMintedAt: v.NumberSchema<undefined>;
|
|
555
|
+
readonly exp: v.NumberSchema<undefined>;
|
|
556
|
+
readonly revokedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
557
|
+
}, undefined>;
|
|
558
|
+
export type MachineNodeView = v.InferOutput<typeof machineNodeViewSchema>;
|
|
559
|
+
export declare const listMachineNodesContract: {
|
|
560
|
+
readonly method: "get";
|
|
561
|
+
readonly pathResolver: () => string;
|
|
562
|
+
readonly responsesByStatusCode: {
|
|
563
|
+
readonly '4xx': v.ObjectSchema<{
|
|
564
|
+
readonly error: v.ObjectSchema<{
|
|
565
|
+
readonly code: v.StringSchema<undefined>;
|
|
566
|
+
readonly message: v.StringSchema<undefined>;
|
|
567
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
568
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
569
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
570
|
+
readonly message: v.StringSchema<undefined>;
|
|
571
|
+
}, undefined>, undefined>, undefined>;
|
|
572
|
+
}, undefined>;
|
|
573
|
+
}, undefined>;
|
|
574
|
+
readonly '5xx': v.ObjectSchema<{
|
|
575
|
+
readonly error: v.ObjectSchema<{
|
|
576
|
+
readonly code: v.StringSchema<undefined>;
|
|
577
|
+
readonly message: v.StringSchema<undefined>;
|
|
578
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
579
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
580
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
581
|
+
readonly message: v.StringSchema<undefined>;
|
|
582
|
+
}, undefined>, undefined>, undefined>;
|
|
583
|
+
}, undefined>;
|
|
584
|
+
}, undefined>;
|
|
585
|
+
readonly 200: v.ObjectSchema<{
|
|
586
|
+
readonly nodes: v.ArraySchema<v.ObjectSchema<{
|
|
587
|
+
readonly nodeId: v.StringSchema<undefined>;
|
|
588
|
+
readonly accountIds: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
589
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
590
|
+
readonly lastMintedAt: v.NumberSchema<undefined>;
|
|
591
|
+
readonly exp: v.NumberSchema<undefined>;
|
|
592
|
+
readonly revokedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
593
|
+
}, undefined>, undefined>;
|
|
594
|
+
}, undefined>;
|
|
595
|
+
};
|
|
596
|
+
};
|
|
597
|
+
export declare const revokeMachineNodeContract: {
|
|
598
|
+
readonly method: "post";
|
|
599
|
+
readonly requestPathParamsSchema: v.ObjectSchema<{
|
|
600
|
+
nodeId: v.StringSchema<undefined>;
|
|
601
|
+
}, undefined> & import("@toad-contracts/core").StandardObjectKeysV1<unknown, unknown>;
|
|
602
|
+
readonly pathResolver: ({ nodeId }: {
|
|
603
|
+
nodeId: string;
|
|
604
|
+
}) => string;
|
|
605
|
+
readonly requestBodySchema: typeof ContractNoBody;
|
|
606
|
+
readonly responsesByStatusCode: {
|
|
607
|
+
readonly '4xx': v.ObjectSchema<{
|
|
608
|
+
readonly error: v.ObjectSchema<{
|
|
609
|
+
readonly code: v.StringSchema<undefined>;
|
|
610
|
+
readonly message: v.StringSchema<undefined>;
|
|
611
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
612
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
613
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
614
|
+
readonly message: v.StringSchema<undefined>;
|
|
615
|
+
}, undefined>, undefined>, undefined>;
|
|
616
|
+
}, undefined>;
|
|
617
|
+
}, undefined>;
|
|
618
|
+
readonly '5xx': v.ObjectSchema<{
|
|
619
|
+
readonly error: v.ObjectSchema<{
|
|
620
|
+
readonly code: v.StringSchema<undefined>;
|
|
621
|
+
readonly message: v.StringSchema<undefined>;
|
|
622
|
+
readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
623
|
+
readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
624
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
625
|
+
readonly message: v.StringSchema<undefined>;
|
|
626
|
+
}, undefined>, undefined>, undefined>;
|
|
627
|
+
}, undefined>;
|
|
628
|
+
}, undefined>;
|
|
629
|
+
readonly 204: typeof ContractNoBody;
|
|
630
|
+
};
|
|
631
|
+
};
|
|
550
632
|
export declare const connectMothershipContract: {
|
|
551
633
|
readonly method: "post";
|
|
552
634
|
readonly pathResolver: () => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/routes/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AA4B5B;;;;;GAKG;AACH;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,mDAAmC,CAAA;AACjE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAErE,eAAO,MAAM,qBAAqB;IAChC,4FAA4F;;IAE5F;;;;;;OAMG;;IAEH;;;;OAIG;;IA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AAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIrB,CAAA;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKzB,CAAA"}
|
package/dist/routes/auth.js
CHANGED
|
@@ -257,6 +257,35 @@ export const mintMachineTokenContract = defineApiContract({
|
|
|
257
257
|
...errorResponses,
|
|
258
258
|
},
|
|
259
259
|
});
|
|
260
|
+
// The machine-node roster: every mint records the node against the minting user, and these
|
|
261
|
+
// two endpoints are how that user sees and kills their nodes (SEC-5). Revocation is a
|
|
262
|
+
// tombstone consulted by every `/internal/*` machine gate, so a leaked machine token stops
|
|
263
|
+
// working everywhere at once instead of staying valid for its full TTL.
|
|
264
|
+
export const machineNodeViewSchema = v.object({
|
|
265
|
+
nodeId: v.string(),
|
|
266
|
+
accountIds: v.array(v.string()),
|
|
267
|
+
createdAt: v.number(),
|
|
268
|
+
lastMintedAt: v.number(),
|
|
269
|
+
exp: v.number(),
|
|
270
|
+
revokedAt: v.nullable(v.number()),
|
|
271
|
+
});
|
|
272
|
+
export const listMachineNodesContract = defineApiContract({
|
|
273
|
+
method: 'get',
|
|
274
|
+
pathResolver: () => '/machine-nodes',
|
|
275
|
+
responsesByStatusCode: {
|
|
276
|
+
200: v.object({ nodes: v.array(machineNodeViewSchema) }),
|
|
277
|
+
...errorResponses,
|
|
278
|
+
},
|
|
279
|
+
});
|
|
280
|
+
// Owner-scoped: only the user a node was minted for may revoke it; anyone else's nodeId is a
|
|
281
|
+
// 404 (the existence-non-leak policy). Idempotent: revoking an already-revoked node is 204.
|
|
282
|
+
export const revokeMachineNodeContract = defineApiContract({
|
|
283
|
+
method: 'post',
|
|
284
|
+
requestPathParamsSchema: singleStringParam('nodeId'),
|
|
285
|
+
pathResolver: ({ nodeId }) => `/machine-nodes/${nodeId}/revoke`,
|
|
286
|
+
requestBodySchema: ContractNoBody,
|
|
287
|
+
responsesByStatusCode: { 204: ContractNoBody, ...errorResponses },
|
|
288
|
+
});
|
|
260
289
|
// Local-mode ONLY: hand the local node a mothership SESSION token (captured by the SPA from
|
|
261
290
|
// the mothership OAuth redirect fragment). The node forwards it to the mothership's
|
|
262
291
|
// `/auth/machine-token`, caches the returned opaque machine token in its local store, and
|
package/dist/routes/auth.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../src/routes/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,GACb,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAA;AACzD,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAEhE,8EAA8E;AAC9E,+EAA+E;AAC/E,iFAAiF;AACjF,+EAA+E;AAC/E,4EAA4E;AAC5E,gFAAgF;AAChF,sEAAsE;AACtE,8EAA8E;AAE9E,oEAAoE;AACpE,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC5B,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACjC,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;CAC1C,CAAC,CAAA;AAEF;;;;;GAKG;AACH;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,QAAQ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