@deadair/sdk 0.57.0 → 0.58.1
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/index.js +183 -73
- package/dist/index.js.map +1 -1
- package/dist/podcasts/podcasts.client.d.ts +32 -1
- package/dist/podcasts/podcasts.client.d.ts.map +1 -1
- package/dist/podcasts/types/podcasts.types.d.ts +78 -0
- package/dist/podcasts/types/podcasts.types.d.ts.map +1 -1
- package/dist/productions/types/productions.types.d.ts +46 -16
- package/dist/productions/types/productions.types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { SdkFetch } from '../sdk-options.js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { Production, ProductionList } from '../productions/types/productions.types.js';
|
|
3
|
+
import type { OwnEpisodeRequest, OwnShow, OwnShowInput, OwnShowList, StationDirectoryPage, StationDirectoryQuery, StationEpisode, StationEpisodePage, StationEpisodeQuery, StationShowList } from './types/podcasts.types.js';
|
|
3
4
|
export declare class PodcastsClient {
|
|
4
5
|
private fetch;
|
|
5
6
|
constructor(fetch: SdkFetch);
|
|
@@ -28,5 +29,35 @@ export declare class PodcastsClient {
|
|
|
28
29
|
* @description Reads every show's feed again, in the background, rather than waiting for the next scheduled refresh
|
|
29
30
|
*/
|
|
30
31
|
refreshPodcasts(): Promise<void>;
|
|
32
|
+
/**
|
|
33
|
+
* @name List own shows
|
|
34
|
+
* @description The shows the station makes for itself
|
|
35
|
+
*/
|
|
36
|
+
listOwnShows(): Promise<OwnShowList>;
|
|
37
|
+
/**
|
|
38
|
+
* @name Create own show
|
|
39
|
+
* @description Makes a new show. Nothing is made until an episode is asked for
|
|
40
|
+
*/
|
|
41
|
+
createOwnShow(body: OwnShowInput): Promise<OwnShow>;
|
|
42
|
+
/**
|
|
43
|
+
* @name Update own show
|
|
44
|
+
* @description Rewrites a show. Episodes already asked for keep what they were asked with
|
|
45
|
+
*/
|
|
46
|
+
updateOwnShow(id: string, body: OwnShowInput): Promise<OwnShow>;
|
|
47
|
+
/**
|
|
48
|
+
* @name Delete own show
|
|
49
|
+
* @description Removes a show. Its episodes stay on the Productions page, no longer filed under it
|
|
50
|
+
*/
|
|
51
|
+
deleteOwnShow(id: string): Promise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* @name List own show episodes
|
|
54
|
+
* @description A show's episodes, newest first, with how far along each is
|
|
55
|
+
*/
|
|
56
|
+
listOwnShowEpisodes(id: string): Promise<ProductionList>;
|
|
57
|
+
/**
|
|
58
|
+
* @name Request own show episode
|
|
59
|
+
* @description Asks the show for an episode. It is queued, not started, and airs when it is made or at the time given
|
|
60
|
+
*/
|
|
61
|
+
requestOwnShowEpisode(id: string, body: OwnEpisodeRequest): Promise<Production>;
|
|
31
62
|
}
|
|
32
63
|
//# sourceMappingURL=podcasts.client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"podcasts.client.d.ts","sourceRoot":"","sources":["../../src/podcasts/podcasts.client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,KAAK,EACR,oBAAoB,EACpB,qBAAqB,EACrB,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EAClB,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"podcasts.client.d.ts","sourceRoot":"","sources":["../../src/podcasts/podcasts.client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAE5F,OAAO,KAAK,EACR,iBAAiB,EACjB,OAAO,EACP,YAAY,EACZ,WAAW,EACX,oBAAoB,EACpB,qBAAqB,EACrB,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EAClB,MAAM,2BAA2B,CAAC;AAGnC,qBAAa,cAAc;IACX,OAAO,CAAC,KAAK;gBAAL,KAAK,EAAE,QAAQ;IAEnC;;;OAGG;IACG,SAAS,IAAI,OAAO,CAAC,eAAe,CAAC;IAK3C;;;OAGG;IACG,sBAAsB,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAQ1F;;;OAGG;IACG,YAAY,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAQ5E;;;OAGG;IACG,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IAKvD;;;OAGG;IACG,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC;IAItC;;;OAGG;IACG,YAAY,IAAI,OAAO,CAAC,WAAW,CAAC;IAK1C;;;OAGG;IACG,aAAa,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC;IASzD;;;OAGG;IACG,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC;IASrE;;;OAGG;IACG,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI9C;;;OAGG;IACG,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IAK9D;;;OAGG;IACG,qBAAqB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,UAAU,CAAC;CAQxF"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DateTime } from 'luxon';
|
|
1
2
|
/**
|
|
2
3
|
* A programme the station carries, as one installed plugin describes it
|
|
3
4
|
* generated from [StationShow](../../../../../apps/api/data/contracts/podcasts/podcasts.types.ck)
|
|
@@ -91,6 +92,72 @@ export interface StationEpisodeQuery {
|
|
|
91
92
|
showId?: string;
|
|
92
93
|
limit?: number;
|
|
93
94
|
}
|
|
95
|
+
/**
|
|
96
|
+
* A show the station makes for itself: a saved recipe for a podcast, whose every episode is a production
|
|
97
|
+
* generated from [OwnShow](../../../../../apps/api/data/contracts/podcasts/podcasts.types.ck)
|
|
98
|
+
*/
|
|
99
|
+
export interface OwnShow {
|
|
100
|
+
id: string;
|
|
101
|
+
/** What the show is called. Each episode's title starts with it */
|
|
102
|
+
title: string;
|
|
103
|
+
/** What the show is, for the console. Never read out */
|
|
104
|
+
description?: string;
|
|
105
|
+
/** What an episode is about when it is asked for with no subject of its own */
|
|
106
|
+
subject?: string;
|
|
107
|
+
/** Who presents it. Absent is whoever is presenting when it is made */
|
|
108
|
+
personaId?: string;
|
|
109
|
+
/** How long an episode runs. Absent is the station's production length */
|
|
110
|
+
targetMs?: number;
|
|
111
|
+
/** How much of the model an episode is worth. Absent is the station's default */
|
|
112
|
+
writingMode?: 'quick' | 'outlined' | 'polished';
|
|
113
|
+
/** The station's news feeds an episode reads, by their qualified ids. Absent or empty is a show that does not read the news */
|
|
114
|
+
newsFeedIds?: string[];
|
|
115
|
+
/** How many hours of news an episode reads. Absent is a day */
|
|
116
|
+
newsHours?: number;
|
|
117
|
+
/** Whether an episode given nothing to read finds its own sources on the operator's trusted sites */
|
|
118
|
+
research?: boolean;
|
|
119
|
+
createdAt: DateTime;
|
|
120
|
+
}
|
|
121
|
+
export interface OwnShowInput {
|
|
122
|
+
/** What the show is called. Each episode's title starts with it */
|
|
123
|
+
title: string;
|
|
124
|
+
/** What the show is, for the console. Never read out */
|
|
125
|
+
description?: string;
|
|
126
|
+
/** What an episode is about when it is asked for with no subject of its own */
|
|
127
|
+
subject?: string;
|
|
128
|
+
/** Who presents it. Absent is whoever is presenting when it is made */
|
|
129
|
+
personaId?: string;
|
|
130
|
+
/** How long an episode runs. Absent is the station's production length */
|
|
131
|
+
targetMs?: number;
|
|
132
|
+
/** How much of the model an episode is worth. Absent is the station's default */
|
|
133
|
+
writingMode?: 'quick' | 'outlined' | 'polished';
|
|
134
|
+
/** The station's news feeds an episode reads, by their qualified ids. Absent or empty is a show that does not read the news */
|
|
135
|
+
newsFeedIds?: string[];
|
|
136
|
+
/** How many hours of news an episode reads. Absent is a day */
|
|
137
|
+
newsHours?: number;
|
|
138
|
+
/** Whether an episode given nothing to read finds its own sources on the operator's trusted sites */
|
|
139
|
+
research?: boolean;
|
|
140
|
+
}
|
|
141
|
+
/** Rehydrates every wire-encoded scalar in a OwnShow into its runtime type. Mutates and returns `raw`. */
|
|
142
|
+
export declare function reviveOwnShow(raw: OwnShow): OwnShow;
|
|
143
|
+
/**
|
|
144
|
+
* Asks one of the station's own shows for an episode. Everything is optional: a show with a standing subject needs nothing
|
|
145
|
+
* generated from [OwnEpisodeRequest](../../../../../apps/api/data/contracts/podcasts/podcasts.types.ck)
|
|
146
|
+
*/
|
|
147
|
+
export interface OwnEpisodeRequest {
|
|
148
|
+
/** What this episode is about. Absent is the show's own subject */
|
|
149
|
+
topic?: string;
|
|
150
|
+
/** A page for it to read first, by its address. The episode states only what it can find there */
|
|
151
|
+
url?: string;
|
|
152
|
+
/** What the pasted text is called */
|
|
153
|
+
sourceTitle?: string;
|
|
154
|
+
/** Something for it to read first. The episode states only what it can find in this. Given text, a show that reads the news reads this instead */
|
|
155
|
+
text?: string;
|
|
156
|
+
/** When it should air. Absent is as soon as it is made */
|
|
157
|
+
airAt?: DateTime;
|
|
158
|
+
}
|
|
159
|
+
/** Rehydrates every wire-encoded scalar in a OwnEpisodeRequest into its runtime type. Mutates and returns `raw`. */
|
|
160
|
+
export declare function reviveOwnEpisodeRequest(raw: OwnEpisodeRequest): OwnEpisodeRequest;
|
|
94
161
|
/**
|
|
95
162
|
* generated from [StationShowList](../../../../../apps/api/data/contracts/podcasts/podcasts.types.ck)
|
|
96
163
|
*/
|
|
@@ -111,4 +178,15 @@ export interface StationDirectoryPage {
|
|
|
111
178
|
/** Empty when nothing matched or no directory could be asked, which is not an error */
|
|
112
179
|
results: StationDirectoryEntry[];
|
|
113
180
|
}
|
|
181
|
+
/**
|
|
182
|
+
* generated from [OwnShowList](../../../../../apps/api/data/contracts/podcasts/podcasts.types.ck)
|
|
183
|
+
*/
|
|
184
|
+
export interface OwnShowList {
|
|
185
|
+
shows: OwnShow[];
|
|
186
|
+
}
|
|
187
|
+
export interface OwnShowListInput {
|
|
188
|
+
shows: OwnShowInput[];
|
|
189
|
+
}
|
|
190
|
+
/** Rehydrates every wire-encoded scalar in a OwnShowList into its runtime type. Mutates and returns `raw`. */
|
|
191
|
+
export declare function reviveOwnShowList(raw: OwnShowList): OwnShowList;
|
|
114
192
|
//# sourceMappingURL=podcasts.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"podcasts.types.d.ts","sourceRoot":"","sources":["../../../src/podcasts/types/podcasts.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,WAAW;IACxB,6GAA6G;IAC7G,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,uEAAuE;IACvE,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qDAAqD;IACrD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mDAAmD;IACnD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,mIAAmI;IACnI,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC3B,4CAA4C;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,2CAA2C;IAC3C,MAAM,EAAE,MAAM,CAAC;IACf,mEAAmE;IACnE,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAA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ChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,KAAK,EAAE,WAAW,EAAE,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B,gFAAgF;IAChF,QAAQ,EAAE,cAAc,EAAE,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC,uFAAuF;IACvF,OAAO,EAAE,qBAAqB,EAAE,CAAC;CACpC"}
|
|
1
|
+
{"version":3,"file":"podcasts.types.d.ts","sourceRoot":"","sources":["../../../src/podcasts/types/podcasts.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAUjC;;;GAGG;AACH,MAAM,WAAW,WAAW;IACxB,6GAA6G;IAC7G,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,uEAAuE;IACvE,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,qDAAqD;IACrD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mDAAmD;IACnD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,mIAAmI;IACnI,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC3B,4CAA4C;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,2CAA2C;IAC3C,MAAM,EAAE,MAAM,CAAC;IACf,mEAAmE;IACnE,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,yDAAyD;IACzD,OAAO,CAAC,EAAE,M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AAC,EAAE,MAAM,CAAC;IACf,kGAAkG;IAClG,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,qCAAqC;IACrC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kJAAkJ;IAClJ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,0DAA0D;IAC1D,KAAK,CAAC,EAAE,QAAQ,CAAC;CACpB;AAED,oHAAoH;AACpH,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,iBAAiB,GAAG,iBAAiB,CAMjF;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,KAAK,EAAE,WAAW,EAAE,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B,gFAAgF;IAChF,QAAQ,EAAE,cAAc,EAAE,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC,uFAAuF;IACvF,OAAO,EAAE,qBAAqB,EAAE,CAAC;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IACxB,KAAK,EAAE,OAAO,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC7B,KAAK,EAAE,YAAY,EAAE,CAAC;CACzB;AAED,8GAA8G;AAC9G,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,WAAW,GAAG,WAAW,CAS/D"}
|
|
@@ -13,22 +13,17 @@ export interface ProductionCastMember {
|
|
|
13
13
|
persona?: string;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
17
|
-
* generated from [
|
|
16
|
+
* Something a production was handed to read. The research pass takes the notes it states as fact out of these, keeping only claims whose words really are in the text
|
|
17
|
+
* generated from [ProductionSource](../../../../../apps/api/data/contracts/productions/productions.types.ck)
|
|
18
18
|
*/
|
|
19
|
-
export interface
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
writingMode?: 'quick' | 'outlined' | 'polished';
|
|
27
|
-
targetMs?: number;
|
|
28
|
-
scheduledFor?: DateTime;
|
|
19
|
+
export interface ProductionSource {
|
|
20
|
+
/** What the source is called, for the console and for the research pass's sense of what it is reading */
|
|
21
|
+
title: string;
|
|
22
|
+
/** Where it came from, when it came from somewhere */
|
|
23
|
+
url?: string;
|
|
24
|
+
/** What it says. Absent for a source given only by its address, which the research pass reads through whichever installed plugin can open a page */
|
|
25
|
+
text?: string;
|
|
29
26
|
}
|
|
30
|
-
/** Rehydrates every wire-encoded scalar in a ProductionRequest into its runtime type. Mutates and returns `raw`. */
|
|
31
|
-
export declare function reviveProductionRequest(raw: ProductionRequest): ProductionRequest;
|
|
32
27
|
/**
|
|
33
28
|
* Something the station makes rather than something it says: several beats of speech, written in several passes, that airs as one block
|
|
34
29
|
* generated from [Production](../../../../../apps/api/data/contracts/productions/productions.types.ck)
|
|
@@ -40,14 +35,20 @@ export interface Production {
|
|
|
40
35
|
title: string;
|
|
41
36
|
/** What was asked for, in the operator's own words. Distinct from the title, which is only a label */
|
|
42
37
|
brief?: string;
|
|
38
|
+
/** What it may state as fact, one short note each. The outline divides them between the beats, and nothing else it says is offered as fact */
|
|
39
|
+
notes?: string[];
|
|
40
|
+
/** What it was handed to read. Its notes are taken from these by the research pass when nobody gave it any */
|
|
41
|
+
sources?: ProductionSource[];
|
|
42
|
+
/** Whether it was asked to find its own sources on the operator's trusted sites */
|
|
43
|
+
research?: boolean;
|
|
43
44
|
/** Who presents it. Absent falls back to the station's active persona when a pass runs */
|
|
44
45
|
personaId?: string;
|
|
45
46
|
/** How many passes to spend on it */
|
|
46
47
|
writingMode: 'quick' | 'outlined' | 'polished';
|
|
47
48
|
/** How long it should run. What the beat count and the per-beat word budgets are computed from */
|
|
48
49
|
targetMs: number;
|
|
49
|
-
/** `stitching` is the beats being joined into one piece of audio, and it leads to `ready` whether that worked or not */
|
|
50
|
-
state: 'planned' | 'outlining' | 'drafting' | 'checking' | 'rendering' | 'stitching' | 'ready' | 'aired' | 'failed' | 'cancelled';
|
|
50
|
+
/** `researching` is its sources being read for notes. `stitching` is the beats being joined into one piece of audio, and it leads to `ready` whether that worked or not */
|
|
51
|
+
state: 'planned' | 'researching' | 'outlining' | 'drafting' | 'checking' | 'rendering' | 'stitching' | 'ready' | 'aired' | 'failed' | 'cancelled';
|
|
51
52
|
/** Why making it did not work */
|
|
52
53
|
error?: string;
|
|
53
54
|
/** When it should air. Absent means as soon as it is made */
|
|
@@ -55,6 +56,8 @@ export interface Production {
|
|
|
55
56
|
cancelledAt?: DateTime;
|
|
56
57
|
/** How many beats exist so far, which is how far along the drafting is */
|
|
57
58
|
beats: number;
|
|
59
|
+
/** The station's own show this is an episode of, when it is one */
|
|
60
|
+
showId?: string;
|
|
58
61
|
/** Who is on it, decided by the first pass that ran. Empty for one nobody has started, and for a programme the presenter reads alone */
|
|
59
62
|
cast: ProductionCastMember[];
|
|
60
63
|
createdAt: DateTime;
|
|
@@ -65,6 +68,10 @@ export interface ProductionInput {
|
|
|
65
68
|
title: string;
|
|
66
69
|
/** What was asked for, in the operator's own words. Distinct from the title, which is only a label */
|
|
67
70
|
brief?: string;
|
|
71
|
+
/** What it may state as fact, one short note each. The outline divides them between the beats, and nothing else it says is offered as fact */
|
|
72
|
+
notes?: string[];
|
|
73
|
+
/** What it was handed to read. Its notes are taken from these by the research pass when nobody gave it any */
|
|
74
|
+
sources?: ProductionSource[];
|
|
68
75
|
/** Who presents it. Absent falls back to the station's active persona when a pass runs */
|
|
69
76
|
personaId?: string;
|
|
70
77
|
/** How many passes to spend on it */
|
|
@@ -76,6 +83,29 @@ export interface ProductionInput {
|
|
|
76
83
|
}
|
|
77
84
|
/** Rehydrates every wire-encoded scalar in a Production into its runtime type. Mutates and returns `raw`. */
|
|
78
85
|
export declare function reviveProduction(raw: Production): Production;
|
|
86
|
+
/**
|
|
87
|
+
* What an operator asks for. Everything else about a production is decided by the passes that make it
|
|
88
|
+
* generated from [ProductionRequest](../../../../../apps/api/data/contracts/productions/productions.types.ck)
|
|
89
|
+
*/
|
|
90
|
+
export interface ProductionRequest {
|
|
91
|
+
kind?: string;
|
|
92
|
+
/** Absent is named after its kind and the moment it was asked for, which is what somebody taking a call now wants rather than a box to fill in */
|
|
93
|
+
title?: string;
|
|
94
|
+
brief?: string;
|
|
95
|
+
/** What it may state as fact, one short note each. Absent leaves it to general knowledge, said vaguely */
|
|
96
|
+
notes?: string[];
|
|
97
|
+
/** What to read before writing it. Given sources and no notes, a research pass takes the notes out of these first */
|
|
98
|
+
sources?: ProductionSource[];
|
|
99
|
+
/** Given nothing to read, search the operator's trusted sites for its subject and read what comes back. Needs an enrichment plugin that can, such as the web search one with trusted sites */
|
|
100
|
+
research?: boolean;
|
|
101
|
+
personaId?: string;
|
|
102
|
+
/** Absent takes the station's `render.productionWritingMode` */
|
|
103
|
+
writingMode?: 'quick' | 'outlined' | 'polished';
|
|
104
|
+
targetMs?: number;
|
|
105
|
+
scheduledFor?: DateTime;
|
|
106
|
+
}
|
|
107
|
+
/** Rehydrates every wire-encoded scalar in a ProductionRequest into its runtime type. Mutates and returns `raw`. */
|
|
108
|
+
export declare function reviveProductionRequest(raw: ProductionRequest): ProductionRequest;
|
|
79
109
|
/**
|
|
80
110
|
* generated from [ProductionList](../../../../../apps/api/data/contracts/productions/productions.types.ck)
|
|
81
111
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"productions.types.d.ts","sourceRoot":"","sources":["../../../src/productions/types/productions.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAUjC;;;;;GAKG;AACH,MAAM,WAAW,oBAAoB;IACjC,IAAI,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;IAC7C,kCAAkC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wDAAwD;IACxD,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file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