@deadair/sdk 0.26.3 → 0.27.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { SdkFetch } from '../sdk-options.js';
|
|
2
2
|
import type { LogPage, LogQuery, LogSourceList } from './types/logs.types.js';
|
|
3
|
-
import type { StationAttention, StationCheckup } from './types/station.types.js';
|
|
3
|
+
import type { StationAttention, StationCheckup, StationReleases } from './types/station.types.js';
|
|
4
4
|
import type { TraceDetail, TracesPage, TracesQuery } from './types/traces.types.js';
|
|
5
5
|
export declare class StationClient {
|
|
6
6
|
private fetch;
|
|
@@ -35,6 +35,16 @@ export declare class StationClient {
|
|
|
35
35
|
* @description The loops the station runs and how much of the library it has looked at
|
|
36
36
|
*/
|
|
37
37
|
readStationCheckup(): Promise<StationCheckup>;
|
|
38
|
+
/**
|
|
39
|
+
* @name Read station releases
|
|
40
|
+
* @description The releases this build contains and what each one changed, newest first
|
|
41
|
+
*/
|
|
42
|
+
readStationReleases(): Promise<StationReleases>;
|
|
43
|
+
/**
|
|
44
|
+
* @name Check station releases
|
|
45
|
+
* @description Asks GitHub for newer releases now, and answers with what the station then knows
|
|
46
|
+
*/
|
|
47
|
+
checkStationReleases(): Promise<StationReleases>;
|
|
38
48
|
/**
|
|
39
49
|
* @name Read traces
|
|
40
50
|
* @description Recent decisions, newest first, folded to one row each
|
|
@@ -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,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"station.client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
|
|
54
54
|
}
|
|
55
55
|
export interface StationBacklogInput {
|
|
56
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* One release of the station, in the words its changelog entry used
|
|
59
|
+
* generated from [StationRelease](../../../../../apps/api/data/contracts/station/station.types.ck#L89)
|
|
60
|
+
*/
|
|
61
|
+
export interface StationRelease {
|
|
62
|
+
/** The release, as its tag names it without the leading `v` */
|
|
63
|
+
version: string;
|
|
64
|
+
/** The day it went out. Absent where the entry named none */
|
|
65
|
+
date?: DateTime;
|
|
66
|
+
/** What changed, as the Markdown of its changelog entry. Empty for a release that recorded nothing */
|
|
67
|
+
notes: string;
|
|
68
|
+
/** The release's page on GitHub. Present on a release this station does not contain yet, which is where its notes came from */
|
|
69
|
+
url?: string;
|
|
70
|
+
}
|
|
71
|
+
export interface StationReleaseInput {
|
|
72
|
+
}
|
|
73
|
+
/** Rehydrates every wire-encoded scalar in a StationRelease into its runtime type. Mutates and returns `raw`. */
|
|
74
|
+
export declare function reviveStationRelease(raw: StationRelease): StationRelease;
|
|
57
75
|
/**
|
|
58
76
|
* One thing that wants the operator's attention, or the fact that nothing does
|
|
59
77
|
* generated from [AttentionItem](../../../../../apps/api/data/contracts/station/station.types.ck#L21)
|
|
@@ -110,6 +128,26 @@ export interface StationCheckupInput {
|
|
|
110
128
|
}
|
|
111
129
|
/** Rehydrates every wire-encoded scalar in a StationCheckup into its runtime type. Mutates and returns `raw`. */
|
|
112
130
|
export declare function reviveStationCheckup(raw: StationCheckup): StationCheckup;
|
|
131
|
+
/**
|
|
132
|
+
* What this build is, and what changed in it
|
|
133
|
+
* generated from [StationReleases](../../../../../apps/api/data/contracts/station/station.types.ck#L97)
|
|
134
|
+
*/
|
|
135
|
+
export interface StationReleases {
|
|
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 */
|
|
137
|
+
current?: string;
|
|
138
|
+
/** Every release this build contains, newest first */
|
|
139
|
+
notes: StationRelease[];
|
|
140
|
+
/** Whether the station asks GitHub for newer releases, which the operator switches under Settings, Station */
|
|
141
|
+
checks: boolean;
|
|
142
|
+
/** When GitHub last answered. Absent until it has, and while the check is switched off */
|
|
143
|
+
checkedAt?: DateTime;
|
|
144
|
+
/** Releases newer than this build, newest first, each with its notes and its page. Empty when there are none, while the check is off, and until GitHub has answered */
|
|
145
|
+
available: StationRelease[];
|
|
146
|
+
}
|
|
147
|
+
export interface StationReleasesInput {
|
|
148
|
+
}
|
|
149
|
+
/** Rehydrates every wire-encoded scalar in a StationReleases into its runtime type. Mutates and returns `raw`. */
|
|
150
|
+
export declare function reviveStationReleases(raw: StationReleases): StationReleases;
|
|
113
151
|
/**
|
|
114
152
|
* Everything wrong or waiting, worst first
|
|
115
153
|
* generated from [StationAttention](../../../../../apps/api/data/contracts/station/station.types.ck#L32)
|
|
@@ -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;
|
|
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,q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