@deadair/sdk 0.46.1 → 0.47.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.
@@ -30,6 +30,11 @@ export declare class StationClient {
30
30
  * @description Everything wrong or waiting, worst first, each with the console page that can act on it
31
31
  */
32
32
  readStationAttention(): Promise<StationAttention>;
33
+ /**
34
+ * @name Dismiss station attention
35
+ * @description Accept an attention row as it stands, until something new joins it
36
+ */
37
+ dismissStationAttention(code: string): Promise<void>;
33
38
  /**
34
39
  * @name Read station checkup
35
40
  * @description The loops the station runs and how much of the library it has looked at
@@ -1 +1 @@
1
- {"version":3,"file":"station.client.d.ts","sourceRoot":"","sources":["../../src/station/station.client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE9E,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAElG,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGpF,qBAAa,aAAa;IACV,OAAO,CAAC,KAAK;gBAAL,KAAK,EAAE,QAAQ;IAEnC;;;OAGG;IACG,QAAQ,IAAI,OAAO,CAAC,aAAa,CAAC;IAKxC;;;OAGG;IACG,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC;IAQ7D;;;OAGG;IACG,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE;YAAE,kBAAkB,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,CAAC;IAMlG;;;OAGG;IACG,oBAAoB,IAAI,OAAO,CA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IAKvD;;;OAGG;IACG,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI1D;;;OAGG;IACG,kBAAkB,IAAI,OAAO,CAAC,cAAc,CAAC;IAKnD;;;OAGG;IACG,mBAAmB,IAAI,OAAO,CAAC,eAAe,CAAC;IAKrD;;;OAGG;IACG,oBAAoB,IAAI,OAAO,CAAC,eAAe,CAAC;IAKtD;;;OAGG;IACG,UAAU,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC;IAQ1D;;;OAGG;IACG,SAAS,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;CAIpD"}
@@ -27,7 +27,7 @@ export interface AttentionEvidence {
27
27
  *
28
28
  * `lastBeat` is absent until a loop finishes its first pass, which is why `startedAt` is there: from
29
29
  * the two of them a reader can tell a loop that has never completed anything from one that stopped.
30
- * generated from [StationHeartbeat](../../../../../apps/api/data/contracts/station/station.types.ck#L45)
30
+ * generated from [StationHeartbeat](../../../../../apps/api/data/contracts/station/station.types.ck#L46)
31
31
  */
32
32
  export interface StationHeartbeat {
33
33
  name: string;
@@ -45,7 +45,7 @@ export declare function reviveStationHeartbeat(raw: StationHeartbeat): StationHe
45
45
  *
46
46
  * The counts `/catalog/tracks` already answers with, lifted out of a page of rows: a check-up wants
47
47
  * the sentence "13 of 581 measured" without asking for thirteen tracks to get it.
48
- * generated from [StationBacklog](../../../../../apps/api/data/contracts/station/station.types.ck#L55)
48
+ * generated from [StationBacklog](../../../../../apps/api/data/contracts/station/station.types.ck#L56)
49
49
  */
50
50
  export interface StationBacklog {
51
51
  total: number;
@@ -60,7 +60,7 @@ export interface StationBacklogInput {
60
60
  * The model is shared by every break, every programme refill and every production, one generation at
61
61
  * a time, so a slot held for far longer than any generation takes is the station's ability to speak
62
62
  * stuck behind one answer. Nothing else exposes it.
63
- * generated from [StationModelHolder](../../../../../apps/api/data/contracts/station/station.types.ck#L66)
63
+ * generated from [StationModelHolder](../../../../../apps/api/data/contracts/station/station.types.ck#L67)
64
64
  */
65
65
  export interface StationModelHolder {
66
66
  /** Whose work it is: `breaking` and `air` have a deadline, `background` (a refill, a production) does not, `preview` is an operator trying something */
@@ -76,7 +76,7 @@ export interface StationModelHolderInput {
76
76
  export declare function reviveStationModelHolder(raw: StationModelHolder): StationModelHolder;
77
77
  /**
78
78
  * One release of the station, in the words its changelog entry used
79
- * generated from [StationRelease](../../../../../apps/api/data/contracts/station/station.types.ck#L107)
79
+ * generated from [StationRelease](../../../../../apps/api/data/contracts/station/station.types.ck#L108)
80
80
  */
81
81
  export interface StationRelease {
82
82
  /** The release, as its tag names it without the leading `v` */
@@ -109,12 +109,14 @@ export interface AttentionItem {
109
109
  route: string;
110
110
  /** How many things this is about, where that is a number rather than a state */
111
111
  count?: number;
112
+ /** The operator may accept this row as it stands, through `POST /station/attention/{code}/dismiss`. It comes back by itself when something new joins it. Absent on a row that only goes away when its cause does */
113
+ dismissible?: boolean;
112
114
  /** A HANDFUL of the things this row is about, never all of them: this answer is polled and a row about four hundred records must not be four hundred sentences. `count` stays the true figure, and a console showing fewer than it says so */
113
115
  evidence?: AttentionEvidence[];
114
116
  }
115
117
  /**
116
118
  * The model slot and its queue
117
- * generated from [StationModel](../../../../../apps/api/data/contracts/station/station.types.ck#L73)
119
+ * generated from [StationModel](../../../../../apps/api/data/contracts/station/station.types.ck#L74)
118
120
  */
119
121
  export interface StationModel {
120
122
  /** Callers queued behind whoever holds the slot */
@@ -128,7 +130,7 @@ export interface StationModelInput {
128
130
  export declare function reviveStationModel(raw: StationModel): StationModel;
129
131
  /**
130
132
  * What this build is, and what changed in it
131
- * generated from [StationReleases](../../../../../apps/api/data/contracts/station/station.types.ck#L115)
133
+ * generated from [StationReleases](../../../../../apps/api/data/contracts/station/station.types.ck#L116)
132
134
  */
133
135
  export interface StationReleases {
134
136
  /** The newest release this build contains, read off the changelog it was built with. Present on a build that follows `main` too, where `version` on the check-up is absent: every build carries the entry of the last release merged before it. Absent only when the build carries no changelog to read */
@@ -148,7 +150,7 @@ export interface StationReleasesInput {
148
150
  export declare function reviveStationReleases(raw: StationReleases): StationReleases;
149
151
  /**
150
152
  * Everything wrong or waiting, worst first
151
- * generated from [StationAttention](../../../../../apps/api/data/contracts/station/station.types.ck#L32)
153
+ * generated from [StationAttention](../../../../../apps/api/data/contracts/station/station.types.ck#L33)
152
154
  */
153
155
  export interface StationAttention {
154
156
  items: AttentionItem[];
@@ -173,7 +175,7 @@ export interface StationAttention {
173
175
  * `operation(internal)`, deliberately, so it generates no SDK method and the console cannot call it
174
176
  * — which would leave "which build is this" answerable only from a shell, the one thing carrying it
175
177
  * here exists to fix.
176
- * generated from [StationCheckup](../../../../../apps/api/data/contracts/station/station.types.ck#L97)
178
+ * generated from [StationCheckup](../../../../../apps/api/data/contracts/station/station.types.ck#L98)
177
179
  */
178
180
  export interface StationCheckup {
179
181
  /** When this reading was taken, so a stale page cannot pass itself off as now */
@@ -1 +1 @@
1
- {"version":3,"file":"station.types.d.ts","sourceRoot":"","sources":["../../../src/station/types/station.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAkBjC;;;;;;;;;GASG;AACH,MAAM,WAAW,iBAAiB;IAC9B,uFAAuF;IACvF,KAAK,EAAE,MAAM,CAAC;IACd,iIAAiI;IACjI,MAAM,EAAE,MAAM,CAAC;IACf,6JAA6J;IAC7J,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,gBAAgB;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,sEAAsE;IACtE,SAAS,EAAE,QAAQ,CAAC;IACpB,yEAAyE;IACzE,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACvB;AAED,MAAM,WAAW,qBAAqB;CAAG;AAEzC,mHAAmH;AACnH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,gBAAgB,GAAG,gBA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AAc,CAexE"}
1
+ {"version":3,"file":"station.types.d.ts","sourceRoot":"","sources":["../../../src/station/types/station.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAkBjC;;;;;;;;;GASG;AACH,MAAM,WAAW,iBAAiB;IAC9B,uFAAuF;IACvF,KAAK,EAAE,MAAM,CAAC;IACd,iIAAiI;IACjI,MAAM,EAAE,MAAM,CAAC;IACf,6JAA6J;IAC7J,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,gBAAgB;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,sEAAsE;IACtE,SAAS,EAAE,QAAQ,CAAC;IACpB,yEAAyE;IACzE,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACvB;AAED,MAAM,WAAW,qBAAqB;CAAG;AAEzC,mHAAmH;AACnH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,gBAAgB,GAAG,gBAAgB,CAO9E;AAED;;;;;;GAMG;AACH,MAAM,WAAW,cAAc;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,mBAAmB;CAAG;AAEvC;;;;;;;GAOG;AACH,MAAM,WAAW,kBAAkB;IAC/B,wJAAwJ;IACxJ,QAAQ,EAAE,UAAU,GAAG,KAAK,GAAG,YAAY,GAAG,SAAS,CAAC;IACxD,uIAAuI;IACvI,SAAS,EAAE,QAAQ,CAAC;IACpB,oCAAoC;IACpC,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,uBAAuB;CAAG;AAE3C,qHAAqH;AACrH,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,kBAAkB,GAAG,kBAAkB,CAIpF;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC3B,+DAA+D;IAC/D,OAAO,EAAE,MAAM,CA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ACvK,SAAS,EAAE,cAAc,EAAE,CAAC;CAC/B;AAED,MAAM,WAAW,oBAAoB;CAAG;AAExC,kHAAkH;AAClH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,eAAe,GAAG,eAAe,CAkB3E;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC7B,KAAK,EAAE,aAAa,EAAE,CAAC;CAC1B;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,WAAW,cAAc;IAC3B,iFAAiF;IACjF,MAAM,EAAE,QAAQ,CAAC;IACjB,gRAAgR;IAChR,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qQAAqQ;IACrQ,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAChC,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,KAAK,CAAC,EAAE,YAAY,CAAC;CACxB;AAED,MAAM,WAAW,mBAAmB;CAAG;AAEvC,iHAAiH;AACjH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,cAAc,CAexE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deadair/sdk",
3
- "version": "0.46.1",
3
+ "version": "0.47.0",
4
4
  "description": "A typed client for the deadair station's HTTP API, generated from the same contracts the station serves.",
5
5
  "keywords": [
6
6
  "deadair",