@deadair/sdk 0.22.0 → 0.24.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.
@@ -3,7 +3,7 @@ import { DateTime } from 'luxon';
3
3
  * Which part of the station an entry came from, and the console's one filter axis
4
4
  * generated from [ActivityModule](../../../../../apps/api/data/contracts/activity/activity.types.ck#L8)
5
5
  */
6
- export type ActivityModule = 'playout' | 'director' | 'render' | 'catalog' | 'plugins';
6
+ export type ActivityModule = 'playout' | 'director' | 'render' | 'catalog' | 'plugins' | 'storage';
7
7
  /**
8
8
  * How an entry reads, not how bad it is. There is deliberately no `waiting`: a station idling for
9
9
  * want of a listener says so in its own words and stays `info`, for the same reason the transport
@@ -1 +1 @@
1
- {"version":3,"file":"activity.types.d.ts","sourceRoot":"","sources":["../../../src/activity/types/activity.types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAYjC;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;AAEvF;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAEzD;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC1B,iEAAiE;IACjE,EAAE,EAAE,MAAM,CAAC;IACX,oDAAoD;IACpD,EAAE,EAAE,QAAQ,CAAC;IACb,MAAM,EAAE,cAAc,CAAC;IACvB,4JAA4J;IAC5J,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,mEAAmE;IACnE,MAAM,EAAE,MAAM,CAAC;IACf,uFAAuF;IACvF,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,iEAAiE;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,gHAAgH;AAChH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,aAAa,GAAG,aAAa,CAIrE;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2PAA2P;IAC3P,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,oGAAoG;IACpG,WAAW,CAAC,EAAE,gBAAgB,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,4FAA4F;IAC5F,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,+GAA+G;AAC/G,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,YAAY,GAAG,YAAY,CASlE"}
1
+ {"version":3,"file":"activity.types.d.ts","sourceRoot":"","sources":["../../../src/activity/types/activity.types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAYjC;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;AAEnG;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;AAEzD;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC1B,iEAAiE;IACjE,EAAE,EAAE,MAAM,CAAC;IACX,oDAAoD;IACpD,EAAE,EAAE,QAAQ,CAAC;IACb,MAAM,EAAE,cAAc,CAAC;IACvB,4JAA4J;IAC5J,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,mEAAmE;IACnE,MAAM,EAAE,MAAM,CAAC;IACf,uFAAuF;IACvF,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,iEAAiE;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uEAAuE;IACvE,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,gHAAgH;AAChH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,aAAa,GAAG,aAAa,CAIrE;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2PAA2P;IAC3P,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,oGAAoG;IACpG,WAAW,CAAC,EAAE,gBAAgB,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,4FAA4F;IAC5F,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,+GAA+G;AAC/G,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,YAAY,GAAG,YAAY,CASlE"}
package/dist/index.js CHANGED
@@ -2080,6 +2080,93 @@ var PersonasClient = class {
2080
2080
  });
2081
2081
  return await parseJson(result);
2082
2082
  }
2083
+ /**
2084
+ * @name Add persona story beat
2085
+ * @description Adds one part to an arc. A script rather than a summary: the floor speaks it as it stands
2086
+ */
2087
+ async addPersonaStoryBeat(id, storyId, body) {
2088
+ const result = await this.fetch(`/personas/${encodeURIComponent(id)}/stories/${encodeURIComponent(storyId)}/beats`, {
2089
+ method: "POST",
2090
+ headers: {
2091
+ "Content-Type": "application/json"
2092
+ },
2093
+ body: JSON.stringify(body, bigIntReplacer)
2094
+ });
2095
+ return await parseJson(result);
2096
+ }
2097
+ /**
2098
+ * @name Update persona story beat
2099
+ * @description Rewrites one part's words, or moves it in the order
2100
+ */
2101
+ async updatePersonaStoryBeat(id, storyId, beatId, body) {
2102
+ const result = await this.fetch(`/personas/${encodeURIComponent(id)}/stories/${encodeURIComponent(storyId)}/beats/${encodeURIComponent(beatId)}`, {
2103
+ method: "PUT",
2104
+ headers: {
2105
+ "Content-Type": "application/json"
2106
+ },
2107
+ body: JSON.stringify(body, bigIntReplacer)
2108
+ });
2109
+ return await parseJson(result);
2110
+ }
2111
+ /**
2112
+ * @name Delete persona story beat
2113
+ * @description Removes one part outright, leaving the arc standing. Turning down a PROPOSAL is a state instead
2114
+ */
2115
+ async deletePersonaStoryBeat(id, storyId, beatId) {
2116
+ const result = await this.fetch(`/personas/${encodeURIComponent(id)}/stories/${encodeURIComponent(storyId)}/beats/${encodeURIComponent(beatId)}`, {
2117
+ method: "DELETE"
2118
+ });
2119
+ return await parseJson(result);
2120
+ }
2121
+ /**
2122
+ * @name Set persona story beat state
2123
+ * @description Accepts a proposed part, or turns it down without losing that it was turned down
2124
+ */
2125
+ async setPersonaStoryBeatState(id, storyId, beatId, body) {
2126
+ const result = await this.fetch(`/personas/${encodeURIComponent(id)}/stories/${encodeURIComponent(storyId)}/beats/${encodeURIComponent(beatId)}/state`, {
2127
+ method: "PUT",
2128
+ headers: {
2129
+ "Content-Type": "application/json"
2130
+ },
2131
+ body: JSON.stringify(body, bigIntReplacer)
2132
+ });
2133
+ return await parseJson(result);
2134
+ }
2135
+ /**
2136
+ * @name Read persona memory
2137
+ * @description What this character has told, newest first. The timeline a moment is picked from
2138
+ */
2139
+ async readPersonaMemory(id) {
2140
+ const result = await this.fetch(`/personas/${encodeURIComponent(id)}/memory`, {
2141
+ method: "GET"
2142
+ });
2143
+ return await parseJson(result);
2144
+ }
2145
+ /**
2146
+ * @name Preview persona memory rollback
2147
+ * @description What rolling back to a moment would undo, without undoing it
2148
+ */
2149
+ async previewPersonaMemoryRollback(id, query) {
2150
+ const qs = buildQueryString(query);
2151
+ const result = await this.fetch(`/personas/${encodeURIComponent(id)}/memory/preview${qs}`, {
2152
+ method: "GET"
2153
+ });
2154
+ return await parseJson(result);
2155
+ }
2156
+ /**
2157
+ * @name Roll back persona memory
2158
+ * @description Undo it. Everything the station accrued after that moment goes; everything an operator wrote stays
2159
+ */
2160
+ async rollBackPersonaMemory(id, body) {
2161
+ const result = await this.fetch(`/personas/${encodeURIComponent(id)}/memory/rollback`, {
2162
+ method: "POST",
2163
+ headers: {
2164
+ "Content-Type": "application/json"
2165
+ },
2166
+ body: JSON.stringify(body, bigIntReplacer)
2167
+ });
2168
+ return await parseJson(result);
2169
+ }
2083
2170
  };
2084
2171
 
2085
2172
  // src/playlists/playlists.client.ts