wicked-crew-api-types 0.143.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.
Files changed (2) hide show
  1. package/index.d.ts +57 -4
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -318,6 +318,24 @@ export interface HealthCapabilities {
318
318
  * chat instead.
319
319
  */
320
320
  chatWorkflows?: string[];
321
+ /**
322
+ * (api-types 0.145.0) The default evals are served: `GET /testing/default-evals/suites`,
323
+ * `POST /testing/default-evals/run` and `GET /testing/default-evals[/:id]` (api-types 0.143.0).
324
+ * ABSENT on an older daemon — read as `false`: probe the route or hide the default-evals view.
325
+ */
326
+ defaultEvals?: boolean;
327
+ /**
328
+ * (api-types 0.145.0) The run insights are served: `GET /insights` and
329
+ * `POST /insights/recommendations/:id/{accept,dismiss}`. ABSENT on an older daemon — read as
330
+ * `false`: hide the Insights link.
331
+ */
332
+ insights?: boolean;
333
+ /**
334
+ * (api-types 0.145.0) The workflow schedules are served: `GET /schedules`,
335
+ * `PUT|DELETE /schedules/:id` and `POST /schedules/:id/run`. ABSENT on an older daemon — read as
336
+ * `false`: hide the schedules view.
337
+ */
338
+ schedules?: boolean;
321
339
  }
322
340
 
323
341
  /** One `GET /health.warnings[]` entry (additive; wicked-core#411 / wicked-crew#497). */
@@ -325,7 +343,8 @@ export interface HealthWarning {
325
343
  /** `state-home.unregistered` today; open for later kinds (e.g. `seat.work_default`,
326
344
  * api-types 0.133.0 — see `DiagnosticsSeatGovernance.roleFindings`). */
327
345
  kind: string;
328
- severity: 'warning' | 'error';
346
+ /** `info` (api-types 0.144.0, crew#1149): a notice, never a blocker — `skills.publishing` today. */
347
+ severity: 'info' | 'warning' | 'error';
329
348
  message: string;
330
349
  }
331
350
 
@@ -1666,6 +1685,37 @@ export interface GateInfo {
1666
1685
  * readiness read (then `rejudge` is not offered).
1667
1686
  */
1668
1687
  rejudge?: RejudgeOffer;
1688
+ /**
1689
+ * (api-types 0.146.0; studio#923) On a DELIVER gate whose delivery QE acceptance refuses (no
1690
+ * attributed PASS, an INCONCLUSIVE or unbound review, a FAIL): the operator's skip of QE
1691
+ * acceptance IN PLACE, on this gate — no relaunch. Answer it with
1692
+ * `POST /runs/:id/gate {approve: true, action: 'skip_qe', amend: '<reason>', ord}` (the reason is
1693
+ * required). The run's QE decision becomes `skipped` by the operator and the delivery goes,
1694
+ * labelled "QE acceptance skipped by operator: <reason>" on the run, every later gate and the
1695
+ * delivery. Only a human operator may take it: an operator-trust actor that is not human (a seat's
1696
+ * token, a standing order) gets a 403 `{code: 'human_operator_only'}`, audited as
1697
+ * `gate.skip_qe_refused`; an actor below operator trust is refused 403 by the daemon's trust check
1698
+ * before the route runs, as for every gate answer. The skip is audited as `gate.qe_skipped`. Read each time: ABSENT once QE passes, on every
1699
+ * other gate, on a run that does not require QE acceptance, and on an older daemon.
1700
+ */
1701
+ skipQe?: SkipQeOffer;
1702
+ }
1703
+
1704
+ /**
1705
+ * (api-types 0.146.0; studio#923) The operator's in-place QE skip a deliver gate offers
1706
+ * ({@link GateInfo.skipQe}). `action` is the stable choice key (the {@link GateDecision.action}
1707
+ * token); `qeAcceptance` is the check that refuses the delivery now, so the card can say why (an
1708
+ * INCONCLUSIVE review means a re-run of QE may hit the same wall).
1709
+ */
1710
+ export interface SkipQeOffer {
1711
+ action: 'skip_qe';
1712
+ /** Always `true`: `amend` must carry a non-empty reason (a 400 otherwise). */
1713
+ reasonRequired: true;
1714
+ /** Always `'human_operator'`: who may take it. */
1715
+ actor: 'human_operator';
1716
+ /** The label the skip carries: `QE acceptance skipped by operator`. */
1717
+ label: string;
1718
+ qeAcceptance: QeAcceptanceCheck;
1669
1719
  }
1670
1720
 
1671
1721
  /**
@@ -8070,7 +8120,9 @@ export interface DiagnosticsSkillsFinding {
8070
8120
  * not the baseline the published generation was built from — runs use the published (older)
8071
8121
  * skills; `message` names both versions and the remedy (refresh-baseline, then publish). A
8072
8122
  * daemon boot refreshes and publishes on its own when nothing in the catalog is user-edited
8073
- * (`WICKED_CREW_SKILLS_AUTO_REFRESH=0` turns that off); when it did not, the message says why. */
8123
+ * (`WICKED_CREW_SKILLS_AUTO_REFRESH=0` turns that off); `skills.publishing` (`info`, api-types 0.144.0, crew#1149) =
8124
+ * the boot ladder is still publishing (state `publishing`): the only finding then, in place of a
8125
+ * `skills.base-skill` error — launches wait until it lands. */
8074
8126
  kind:
8075
8127
  | 'skills.fallback'
8076
8128
  | 'skills.blocked'
@@ -8082,8 +8134,9 @@ export interface DiagnosticsSkillsFinding {
8082
8134
  | 'skills.phase-skill'
8083
8135
  | 'skills.garden'
8084
8136
  | 'skills.publish-warning'
8085
- | 'skills.installed-ahead';
8086
- severity: 'warning' | 'error';
8137
+ | 'skills.installed-ahead'
8138
+ | 'skills.publishing';
8139
+ severity: 'info' | 'warning' | 'error';
8087
8140
  message: string;
8088
8141
  }
8089
8142
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wicked-crew-api-types",
3
- "version": "0.143.0",
3
+ "version": "0.146.0",
4
4
  "description": "The wire contract of the wicked-crew daemon's /api/v1 REST surface and /ws CoreEvent frames \u2014 types only, zero runtime",
5
5
  "type": "module",
6
6
  "types": "./index.d.ts",