@deadair/sdk 0.56.0 → 0.58.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 { ClockBandInput, ClockBandList } from './types/clock.types.js';
3
- import type { AddStationSegmentInput, AddStationTrackInput, ArtistRoute, ExtendStationInput, HoldStationInput, MoveStationItemInput, PutOnAirInput, ReplanStationInput, RoutePreviewInput, SetStationAirInput, SetStationHostInput, StationAir, StationOrder } from './types/director.types.js';
3
+ import type { AddStationSegmentInput, AddStationTrackInput, ArtistRoute, ExtendStationInput, HoldStationInput, MoveStationItemInput, PutOnAirInput, ReplanStationInput, RequestStationBreakInput, RoutePreviewInput, SetStationAirInput, SetStationHostInput, StationAir, StationBreakRequest, StationOrder } from './types/director.types.js';
4
4
  import type { BlockRuleInput, BlockRuleList, GenreSteerInput, GenreSteerReading } from './types/rules.types.js';
5
5
  export declare class DirectorClient {
6
6
  private fetch;
@@ -60,6 +60,11 @@ export declare class DirectorClient {
60
60
  * @description Queues a fresh set for everything the player is not already holding, and swaps it in once it exists. The old tail keeps playing until then, because emptying the running order first would take the station off air while the model was still choosing
61
61
  */
62
62
  replanTheRunningOrder(body: ReplanStationInput): Promise<void>;
63
+ /**
64
+ * @name Request a break
65
+ * @description Asks the station to say something now rather than when the format clock next calls for it: the news, the weather, a word from the host. The director decides where it goes. A decline is answered rather than thrown, with the station's reason, because "breaks are off" and "it was asked for a moment ago" are things the person pressing the button needs to read
66
+ */
67
+ requestABreak(body: RequestStationBreakInput): Promise<StationBreakRequest>;
63
68
  /**
64
69
  * @name Preview an artist route
65
70
  * @description Finds a route from one artist to another through artists the library holds, and says how each stop connects to the one before. Nothing goes on air: this is what a route would be
@@ -1 +1 @@
1
- {"version":3,"file":"director.client.d.ts","sourceRoot":"","sources":["../../src/director/director.client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ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M,EAAE,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IASpF;;;OAGG;IACG,oBAAoB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;CAIjE"}
1
+ {"version":3,"file":"director.client.d.ts","sourceRoot":"","sources":["../../src/director/director.client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,KAAK,EACR,sBAAsB,EACtB,oBAAoB,EACpB,WAAW,EACX,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EACpB,aAAa,EACb,kBAAkB,EAClB,wBAAwB,EACxB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,UAAU,EACV,mBAAmB,EACnB,YAAY,EACf,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAGhH,qBAAa,cAAc;IACX,OAAO,CAAC,KAAK;gBAAL,KAAK,EAAE,QAAQ;IAEnC;;;OAGG;IACG,cAAc,IAAI,OAAO,CAAC,aAAa,CAAC;IAK9C;;;OAGG;IACG,eAAe,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IASnE;;;OAGG;IACG,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IAS/E;;;OAGG;IACG,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;IAKzD;;;OAGG;IACG,aAAa,IAAI,OAAO,CAAC,UAAU,CAAC;IAK1C;;;OAGG;IACG,kBAAkB,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,UAAU,CAAC;IASlE;;;OAG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,OAAO,CAAC,aAAa,CAAC;IAKlD;;;OAGG;IACG,iBAAiB,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IASrE;;;OAGG;IACG,iBAAiB,IAAI,OAAO,CAAC,iBAAiB,CAAC;IAKrD;;;OAGG;IACG,iBAAiB,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAS1E;;;OAGG;IACG,YAAY,IAAI,OAAO,CAAC,iBAAiB,CAAC;IAKhD;;;OAGG;IACG,oBAAoB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IASpF;;;OAGG;IACG,oBAAoB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;CAIjE"}
@@ -84,6 +84,32 @@ export interface ReplanStationInput {
84
84
  /** What the station should play from here on, in your own words. Absent keeps whatever this broadcast was already asked for; an empty string CLEARS it, which hands the programming back to the station's ordinary rotation. It steers every later refill too, not just this one batch */
85
85
  brief?: string;
86
86
  }
87
+ /**
88
+ * A kind of break an operator can ask for by name. Only the kinds that need nothing but a moment to be written: a welcome, a changeover or a dedication is ABOUT something that happened, and the station asks for those itself
89
+ * generated from [RequestableBreakKind](../../../../../apps/api/data/contracts/director/director.types.ck)
90
+ */
91
+ export type RequestableBreakKind = 'news' | 'weather' | 'almanac' | 'talkbreak' | 'story' | 'jingle';
92
+ /**
93
+ * How soon a requested break wants to be heard. `interrupt` and `next` are written and spoken before they take a place in the running order, so they cannot reach their slot unready; `interrupt` lands at the first boundary that leaves time to write and speak it, `next` between the record on air and the one after. `soon` and `whenever` are planted like a break the station planned for itself, within a few records or at the next ordinary slot
94
+ * generated from [BreakUrgency](../../../../../apps/api/data/contracts/director/director.types.ck)
95
+ */
96
+ export type BreakUrgency = 'interrupt' | 'next' | 'soon' | 'whenever';
97
+ /**
98
+ * What the station made of a request to say something
99
+ * generated from [StationBreakRequest](../../../../../apps/api/data/contracts/director/director.types.ck)
100
+ */
101
+ export interface StationBreakRequest {
102
+ /** False is an ordinary answer rather than a failure: breaks are off, there is no voice, nothing on this station writes that kind, the same request was taken moments ago, or the running order has no room */
103
+ accepted: boolean;
104
+ /** The request as it was written down. Present whenever accepted */
105
+ requestId?: string;
106
+ /** The break it became. Present whenever accepted. Accepted is not aired: a bulletin with no story left unread is still passed over when it is written */
107
+ segmentId?: string;
108
+ /** Where it went in the running order. Absent for `interrupt` and `next`, which take a place only once their audio exists */
109
+ atIndex?: number;
110
+ /** Why it was declined, in the station's own words */
111
+ reason?: string;
112
+ }
87
113
  /**
88
114
  * Where a route starts and where it ends, as artist names
89
115
  * generated from [RoutePreviewInput](../../../../../apps/api/data/contracts/director/director.types.ck)
@@ -240,6 +266,16 @@ export interface StationOrderItem {
240
266
  /** Heard OVER the record that follows, this far into it, with the music ducked under it. Such an item is never handed to the player in its own right */
241
267
  overAtMs?: number;
242
268
  }
269
+ /**
270
+ * Ask the station to say something. The station decides where it goes, and may decline
271
+ * generated from [RequestStationBreakInput](../../../../../apps/api/data/contracts/director/director.types.ck)
272
+ */
273
+ export interface RequestStationBreakInput {
274
+ kind: RequestableBreakKind;
275
+ urgency?: BreakUrgency;
276
+ /** What it is about, as a format clock band names it: a news category's key for a bulletin, a place's key for a forecast. A key that matches nothing is passed over when the break is written rather than read out under the wrong name */
277
+ topic?: string;
278
+ }
243
279
  /**
244
280
  * A route between two artists, or the news that there is none
245
281
  * generated from [ArtistRoute](../../../../../apps/api/data/contracts/director/director.types.ck)
@@ -1 +1 @@
1
- {"version":3,"file":"director.types.d.ts","sourceRoot":"","sources":["../../../src/director/types/director.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAEnE;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;AAE7D;;;GAGG;AACH,MAAM,MAAM,OAAO,GAA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,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY;IACzB,4GAA4G;IAC5G,IAAI,EAAE,MAAM,CAAC;IACb,oMAAoM;IACpM,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mHAAmH;IACnH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0HAA0H;IAC1H,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kIAAkI;IAClI,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,EAAE,YAAY,CAAC;IACpB,oDAAoD;IACpD,MAAM,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4FAA4F;IAC5F,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,+MAA+M;IAC/M,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gIAAgI;IAChI,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kFAAkF;IAClF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,gBAAgB,EAAE,CAAC;CAC7B"}
1
+ {"version":3,"file":"director.types.d.ts","sourceRoot":"","sources":["../../../src/director/types/director.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sCAAsC,CAAC;AAEnE;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,CAAC;AAE7D;;;GAGG;AACH,MAAM,MAAM,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC;AAE5C;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,KAAK,GAAG,UAAU,GAAG,YAAY,GAAG,UAAU,CAAC;AAEvE;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC7B,2OAA2O;IAC3O,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,MAAM,MAAM,YAAY,GAA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,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACrC,IAAI,EAAE,oBAAoB,CAAC;IAC3B,OAAO,CAAC,EAAE,YAAY,CAAC;IACvB,2OAA2O;IAC3O,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;GAGG;AACH,MAAM,WAAW,WAAW;IACxB,6HAA6H;IAC7H,KAAK,EAAE,OAAO,CAAC;IACf,qEAAqE;IACrE,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,2DAA2D;IAC3D,OAAO,EAAE,MAAM,CAAC;IAChB,0DAA0D;IAC1D,OAAO,EAAE,MAAM,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY;IACzB,4GAA4G;IAC5G,IAAI,EAAE,MAAM,CAAC;IACb,oMAAoM;IACpM,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mHAAmH;IACnH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0HAA0H;IAC1H,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kIAAkI;IAClI,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,EAAE,YAAY,CAAC;IACpB,oDAAoD;IACpD,MAAM,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4FAA4F;IAC5F,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,+MAA+M;IAC/M,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gIAAgI;IAChI,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kFAAkF;IAClF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,gBAAgB,EAAE,CAAC;CAC7B"}
package/dist/index.js CHANGED
@@ -1608,6 +1608,20 @@ var DirectorClient = class {
1608
1608
  body: JSON.stringify(body, bigIntReplacer)
1609
1609
  });
1610
1610
  }
1611
+ /**
1612
+ * @name Request a break
1613
+ * @description Asks the station to say something now rather than when the format clock next calls for it: the news, the weather, a word from the host. The director decides where it goes. A decline is answered rather than thrown, with the station's reason, because "breaks are off" and "it was asked for a moment ago" are things the person pressing the button needs to read
1614
+ */
1615
+ async requestABreak(body) {
1616
+ const result = await this.fetch(`/director/air/breaks`, {
1617
+ method: "POST",
1618
+ headers: {
1619
+ "Content-Type": "application/json"
1620
+ },
1621
+ body: JSON.stringify(body, bigIntReplacer)
1622
+ });
1623
+ return await parseJson(result);
1624
+ }
1611
1625
  /**
1612
1626
  * @name Preview an artist route
1613
1627
  * @description Finds a route from one artist to another through artists the library holds, and says how each stop connects to the one before. Nothing goes on air: this is what a route would be
@@ -3505,6 +3519,84 @@ var PluginsClient = class {
3505
3519
  }
3506
3520
  };
3507
3521
 
3522
+ // src/productions/types/productions.types.ts
3523
+ import { DateTime as DateTime14 } from "luxon";
3524
+ var __dt14 = /* @__PURE__ */ __name((v, path) => {
3525
+ if (typeof v !== "string") {
3526
+ throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
3527
+ }
3528
+ const d = DateTime14.fromISO(v);
3529
+ if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
3530
+ return d;
3531
+ }, "__dt");
3532
+ function reviveProduction(raw) {
3533
+ const __o0 = raw;
3534
+ if (__o0["scheduledFor"] != null) {
3535
+ __o0["scheduledFor"] = __dt14(__o0["scheduledFor"], "Production.scheduledFor");
3536
+ }
3537
+ if (__o0["cancelledAt"] != null) {
3538
+ __o0["cancelledAt"] = __dt14(__o0["cancelledAt"], "Production.cancelledAt");
3539
+ }
3540
+ __o0["createdAt"] = __dt14(__o0["createdAt"], "Production.createdAt");
3541
+ return raw;
3542
+ }
3543
+ __name(reviveProduction, "reviveProduction");
3544
+ function reviveProductionRequest(raw) {
3545
+ const __o0 = raw;
3546
+ if (__o0["scheduledFor"] != null) {
3547
+ __o0["scheduledFor"] = __dt14(__o0["scheduledFor"], "ProductionRequest.scheduledFor");
3548
+ }
3549
+ return raw;
3550
+ }
3551
+ __name(reviveProductionRequest, "reviveProductionRequest");
3552
+ function reviveProductionList(raw) {
3553
+ const __o0 = raw;
3554
+ {
3555
+ const __a1 = __o0["productions"];
3556
+ for (let __i2 = 0; __i2 < __a1.length; __i2++) {
3557
+ reviveProduction(__a1[__i2]);
3558
+ }
3559
+ }
3560
+ return raw;
3561
+ }
3562
+ __name(reviveProductionList, "reviveProductionList");
3563
+
3564
+ // src/podcasts/types/podcasts.types.ts
3565
+ import { DateTime as DateTime15 } from "luxon";
3566
+ var __dt15 = /* @__PURE__ */ __name((v, path) => {
3567
+ if (typeof v !== "string") {
3568
+ throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
3569
+ }
3570
+ const d = DateTime15.fromISO(v);
3571
+ if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
3572
+ return d;
3573
+ }, "__dt");
3574
+ function reviveOwnShow(raw) {
3575
+ const __o0 = raw;
3576
+ __o0["createdAt"] = __dt15(__o0["createdAt"], "OwnShow.createdAt");
3577
+ return raw;
3578
+ }
3579
+ __name(reviveOwnShow, "reviveOwnShow");
3580
+ function reviveOwnEpisodeRequest(raw) {
3581
+ const __o0 = raw;
3582
+ if (__o0["airAt"] != null) {
3583
+ __o0["airAt"] = __dt15(__o0["airAt"], "OwnEpisodeRequest.airAt");
3584
+ }
3585
+ return raw;
3586
+ }
3587
+ __name(reviveOwnEpisodeRequest, "reviveOwnEpisodeRequest");
3588
+ function reviveOwnShowList(raw) {
3589
+ const __o0 = raw;
3590
+ {
3591
+ const __a1 = __o0["shows"];
3592
+ for (let __i2 = 0; __i2 < __a1.length; __i2++) {
3593
+ reviveOwnShow(__a1[__i2]);
3594
+ }
3595
+ }
3596
+ return raw;
3597
+ }
3598
+ __name(reviveOwnShowList, "reviveOwnShowList");
3599
+
3508
3600
  // src/podcasts/podcasts.client.ts
3509
3601
  var PodcastsClient = class {
3510
3602
  static {
@@ -3565,49 +3657,78 @@ var PodcastsClient = class {
3565
3657
  method: "POST"
3566
3658
  });
3567
3659
  }
3568
- };
3569
-
3570
- // src/productions/types/productions.types.ts
3571
- import { DateTime as DateTime14 } from "luxon";
3572
- var __dt14 = /* @__PURE__ */ __name((v, path) => {
3573
- if (typeof v !== "string") {
3574
- throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
3660
+ /**
3661
+ * @name List own shows
3662
+ * @description The shows the station makes for itself
3663
+ */
3664
+ async listOwnShows() {
3665
+ const result = await this.fetch(`/podcasts/own`, {
3666
+ method: "GET"
3667
+ });
3668
+ return reviveOwnShowList(await parseJson(result));
3575
3669
  }
3576
- const d = DateTime14.fromISO(v);
3577
- if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
3578
- return d;
3579
- }, "__dt");
3580
- function reviveProductionRequest(raw) {
3581
- const __o0 = raw;
3582
- if (__o0["scheduledFor"] != null) {
3583
- __o0["scheduledFor"] = __dt14(__o0["scheduledFor"], "ProductionRequest.scheduledFor");
3670
+ /**
3671
+ * @name Create own show
3672
+ * @description Makes a new show. Nothing is made until an episode is asked for
3673
+ */
3674
+ async createOwnShow(body) {
3675
+ const result = await this.fetch(`/podcasts/own`, {
3676
+ method: "POST",
3677
+ headers: {
3678
+ "Content-Type": "application/json"
3679
+ },
3680
+ body: JSON.stringify(body, bigIntReplacer)
3681
+ });
3682
+ return reviveOwnShow(await parseJson(result));
3584
3683
  }
3585
- return raw;
3586
- }
3587
- __name(reviveProductionRequest, "reviveProductionRequest");
3588
- function reviveProduction(raw) {
3589
- const __o0 = raw;
3590
- if (__o0["scheduledFor"] != null) {
3591
- __o0["scheduledFor"] = __dt14(__o0["scheduledFor"], "Production.scheduledFor");
3684
+ /**
3685
+ * @name Update own show
3686
+ * @description Rewrites a show. Episodes already asked for keep what they were asked with
3687
+ */
3688
+ async updateOwnShow(id, body) {
3689
+ const result = await this.fetch(`/podcasts/own/${encodeURIComponent(id)}`, {
3690
+ method: "PUT",
3691
+ headers: {
3692
+ "Content-Type": "application/json"
3693
+ },
3694
+ body: JSON.stringify(body, bigIntReplacer)
3695
+ });
3696
+ return reviveOwnShow(await parseJson(result));
3592
3697
  }
3593
- if (__o0["cancelledAt"] != null) {
3594
- __o0["cancelledAt"] = __dt14(__o0["cancelledAt"], "Production.cancelledAt");
3698
+ /**
3699
+ * @name Delete own show
3700
+ * @description Removes a show. Its episodes stay on the Productions page, no longer filed under it
3701
+ */
3702
+ async deleteOwnShow(id) {
3703
+ await this.fetch(`/podcasts/own/${encodeURIComponent(id)}`, {
3704
+ method: "DELETE"
3705
+ });
3595
3706
  }
3596
- __o0["createdAt"] = __dt14(__o0["createdAt"], "Production.createdAt");
3597
- return raw;
3598
- }
3599
- __name(reviveProduction, "reviveProduction");
3600
- function reviveProductionList(raw) {
3601
- const __o0 = raw;
3602
- {
3603
- const __a1 = __o0["productions"];
3604
- for (let __i2 = 0; __i2 < __a1.length; __i2++) {
3605
- reviveProduction(__a1[__i2]);
3606
- }
3707
+ /**
3708
+ * @name List own show episodes
3709
+ * @description A show's episodes, newest first, with how far along each is
3710
+ */
3711
+ async listOwnShowEpisodes(id) {
3712
+ const result = await this.fetch(`/podcasts/own/${encodeURIComponent(id)}/episodes`, {
3713
+ method: "GET"
3714
+ });
3715
+ return reviveProductionList(await parseJson(result));
3607
3716
  }
3608
- return raw;
3609
- }
3610
- __name(reviveProductionList, "reviveProductionList");
3717
+ /**
3718
+ * @name Request own show episode
3719
+ * @description Asks the show for an episode. It is queued, not started, and airs when it is made or at the time given
3720
+ */
3721
+ async requestOwnShowEpisode(id, body) {
3722
+ const result = await this.fetch(`/podcasts/own/${encodeURIComponent(id)}/episodes`, {
3723
+ method: "POST",
3724
+ headers: {
3725
+ "Content-Type": "application/json"
3726
+ },
3727
+ body: JSON.stringify(body, bigIntReplacer)
3728
+ });
3729
+ return reviveProduction(await parseJson(result));
3730
+ }
3731
+ };
3611
3732
 
3612
3733
  // src/productions/productions.client.ts
3613
3734
  var ProductionsClient = class {
@@ -3655,25 +3776,25 @@ var ProductionsClient = class {
3655
3776
  };
3656
3777
 
3657
3778
  // src/render/types/render.types.ts
3658
- import { DateTime as DateTime15 } from "luxon";
3659
- var __dt15 = /* @__PURE__ */ __name((v, path) => {
3779
+ import { DateTime as DateTime16 } from "luxon";
3780
+ var __dt16 = /* @__PURE__ */ __name((v, path) => {
3660
3781
  if (typeof v !== "string") {
3661
3782
  throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
3662
3783
  }
3663
- const d = DateTime15.fromISO(v);
3784
+ const d = DateTime16.fromISO(v);
3664
3785
  if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
3665
3786
  return d;
3666
3787
  }, "__dt");
3667
3788
  function reviveScriptAttempt(raw) {
3668
3789
  const __o0 = raw;
3669
- __o0["at"] = __dt15(__o0["at"], "ScriptAttempt.at");
3790
+ __o0["at"] = __dt16(__o0["at"], "ScriptAttempt.at");
3670
3791
  return raw;
3671
3792
  }
3672
3793
  __name(reviveScriptAttempt, "reviveScriptAttempt");
3673
3794
  function revivePad(raw) {
3674
3795
  const __o0 = raw;
3675
3796
  if (__o0["lastUsedAt"] != null) {
3676
- __o0["lastUsedAt"] = __dt15(__o0["lastUsedAt"], "Pad.lastUsedAt");
3797
+ __o0["lastUsedAt"] = __dt16(__o0["lastUsedAt"], "Pad.lastUsedAt");
3677
3798
  }
3678
3799
  return raw;
3679
3800
  }
@@ -4171,33 +4292,33 @@ var RenderClient = class {
4171
4292
  };
4172
4293
 
4173
4294
  // src/requests/types/requests.types.ts
4174
- import { DateTime as DateTime16 } from "luxon";
4175
- var __dt16 = /* @__PURE__ */ __name((v, path) => {
4295
+ import { DateTime as DateTime17 } from "luxon";
4296
+ var __dt17 = /* @__PURE__ */ __name((v, path) => {
4176
4297
  if (typeof v !== "string") {
4177
4298
  throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
4178
4299
  }
4179
- const d = DateTime16.fromISO(v);
4300
+ const d = DateTime17.fromISO(v);
4180
4301
  if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
4181
4302
  return d;
4182
4303
  }, "__dt");
4183
4304
  function revivePartyPass(raw) {
4184
4305
  const __o0 = raw;
4185
- __o0["createdAt"] = __dt16(__o0["createdAt"], "PartyPass.createdAt");
4186
- __o0["expiresAt"] = __dt16(__o0["expiresAt"], "PartyPass.expiresAt");
4306
+ __o0["createdAt"] = __dt17(__o0["createdAt"], "PartyPass.createdAt");
4307
+ __o0["expiresAt"] = __dt17(__o0["expiresAt"], "PartyPass.expiresAt");
4187
4308
  return raw;
4188
4309
  }
4189
4310
  __name(revivePartyPass, "revivePartyPass");
4190
4311
  function revivePartyGuestSession(raw) {
4191
4312
  const __o0 = raw;
4192
- __o0["expiresAt"] = __dt16(__o0["expiresAt"], "PartyGuestSession.expiresAt");
4313
+ __o0["expiresAt"] = __dt17(__o0["expiresAt"], "PartyGuestSession.expiresAt");
4193
4314
  return raw;
4194
4315
  }
4195
4316
  __name(revivePartyGuestSession, "revivePartyGuestSession");
4196
4317
  function reviveListenerRequest(raw) {
4197
4318
  const __o0 = raw;
4198
- __o0["createdAt"] = __dt16(__o0["createdAt"], "ListenerRequest.createdAt");
4319
+ __o0["createdAt"] = __dt17(__o0["createdAt"], "ListenerRequest.createdAt");
4199
4320
  if (__o0["airedAt"] != null) {
4200
- __o0["airedAt"] = __dt16(__o0["airedAt"], "ListenerRequest.airedAt");
4321
+ __o0["airedAt"] = __dt17(__o0["airedAt"], "ListenerRequest.airedAt");
4201
4322
  }
4202
4323
  return raw;
4203
4324
  }
@@ -4489,19 +4610,19 @@ var SettingsClient = class {
4489
4610
  };
4490
4611
 
4491
4612
  // src/station/types/logs.types.ts
4492
- import { DateTime as DateTime17 } from "luxon";
4493
- var __dt17 = /* @__PURE__ */ __name((v, path) => {
4613
+ import { DateTime as DateTime18 } from "luxon";
4614
+ var __dt18 = /* @__PURE__ */ __name((v, path) => {
4494
4615
  if (typeof v !== "string") {
4495
4616
  throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
4496
4617
  }
4497
- const d = DateTime17.fromISO(v);
4618
+ const d = DateTime18.fromISO(v);
4498
4619
  if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
4499
4620
  return d;
4500
4621
  }, "__dt");
4501
4622
  function reviveLogSource(raw) {
4502
4623
  const __o0 = raw;
4503
4624
  if (__o0["lastWriteAt"] != null) {
4504
- __o0["lastWriteAt"] = __dt17(__o0["lastWriteAt"], "LogSource.lastWriteAt");
4625
+ __o0["lastWriteAt"] = __dt18(__o0["lastWriteAt"], "LogSource.lastWriteAt");
4505
4626
  }
4506
4627
  return raw;
4507
4628
  }
@@ -4519,12 +4640,12 @@ function reviveLogSourceList(raw) {
4519
4640
  __name(reviveLogSourceList, "reviveLogSourceList");
4520
4641
 
4521
4642
  // src/station/types/station.types.ts
4522
- import { DateTime as DateTime18 } from "luxon";
4523
- var __dt18 = /* @__PURE__ */ __name((v, path) => {
4643
+ import { DateTime as DateTime19 } from "luxon";
4644
+ var __dt19 = /* @__PURE__ */ __name((v, path) => {
4524
4645
  if (typeof v !== "string") {
4525
4646
  throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
4526
4647
  }
4527
- const d = DateTime18.fromISO(v);
4648
+ const d = DateTime19.fromISO(v);
4528
4649
  if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
4529
4650
  return d;
4530
4651
  }, "__dt");
@@ -4532,22 +4653,22 @@ var __dtf = /* @__PURE__ */ __name((v, path, fmt) => {
4532
4653
  if (typeof v !== "string") {
4533
4654
  throw new TypeError(`ContractKit: expected a string at '${path}' in format ${fmt}, received ${typeof v}.`);
4534
4655
  }
4535
- const d = DateTime18.fromFormat(v, fmt);
4656
+ const d = DateTime19.fromFormat(v, fmt);
4536
4657
  if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' does not match format ${fmt}.`);
4537
4658
  return d;
4538
4659
  }, "__dtf");
4539
4660
  function reviveStationHeartbeat(raw) {
4540
4661
  const __o0 = raw;
4541
- __o0["startedAt"] = __dt18(__o0["startedAt"], "StationHeartbeat.startedAt");
4662
+ __o0["startedAt"] = __dt19(__o0["startedAt"], "StationHeartbeat.startedAt");
4542
4663
  if (__o0["lastBeat"] != null) {
4543
- __o0["lastBeat"] = __dt18(__o0["lastBeat"], "StationHeartbeat.lastBeat");
4664
+ __o0["lastBeat"] = __dt19(__o0["lastBeat"], "StationHeartbeat.lastBeat");
4544
4665
  }
4545
4666
  return raw;
4546
4667
  }
4547
4668
  __name(reviveStationHeartbeat, "reviveStationHeartbeat");
4548
4669
  function reviveStationModelHolder(raw) {
4549
4670
  const __o0 = raw;
4550
- __o0["heldSince"] = __dt18(__o0["heldSince"], "StationModelHolder.heldSince");
4671
+ __o0["heldSince"] = __dt19(__o0["heldSince"], "StationModelHolder.heldSince");
4551
4672
  return raw;
4552
4673
  }
4553
4674
  __name(reviveStationModelHolder, "reviveStationModelHolder");
@@ -4576,7 +4697,7 @@ function reviveStationReleases(raw) {
4576
4697
  }
4577
4698
  }
4578
4699
  if (__o0["checkedAt"] != null) {
4579
- __o0["checkedAt"] = __dt18(__o0["checkedAt"], "StationReleases.checkedAt");
4700
+ __o0["checkedAt"] = __dt19(__o0["checkedAt"], "StationReleases.checkedAt");
4580
4701
  }
4581
4702
  {
4582
4703
  const __a3 = __o0["available"];
@@ -4589,7 +4710,7 @@ function reviveStationReleases(raw) {
4589
4710
  __name(reviveStationReleases, "reviveStationReleases");
4590
4711
  function reviveStationCheckup(raw) {
4591
4712
  const __o0 = raw;
4592
- __o0["readAt"] = __dt18(__o0["readAt"], "StationCheckup.readAt");
4713
+ __o0["readAt"] = __dt19(__o0["readAt"], "StationCheckup.readAt");
4593
4714
  if (__o0["heartbeats"] != null) {
4594
4715
  {
4595
4716
  const __a1 = __o0["heartbeats"];
@@ -4606,24 +4727,24 @@ function reviveStationCheckup(raw) {
4606
4727
  __name(reviveStationCheckup, "reviveStationCheckup");
4607
4728
 
4608
4729
  // src/station/types/traces.types.ts
4609
- import { DateTime as DateTime19 } from "luxon";
4610
- var __dt19 = /* @__PURE__ */ __name((v, path) => {
4730
+ import { DateTime as DateTime20 } from "luxon";
4731
+ var __dt20 = /* @__PURE__ */ __name((v, path) => {
4611
4732
  if (typeof v !== "string") {
4612
4733
  throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
4613
4734
  }
4614
- const d = DateTime19.fromISO(v);
4735
+ const d = DateTime20.fromISO(v);
4615
4736
  if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
4616
4737
  return d;
4617
4738
  }, "__dt");
4618
4739
  function reviveTraceDecision(raw) {
4619
4740
  const __o0 = raw;
4620
- __o0["at"] = __dt19(__o0["at"], "TraceDecision.at");
4741
+ __o0["at"] = __dt20(__o0["at"], "TraceDecision.at");
4621
4742
  return raw;
4622
4743
  }
4623
4744
  __name(reviveTraceDecision, "reviveTraceDecision");
4624
4745
  function reviveTraceSpan(raw) {
4625
4746
  const __o0 = raw;
4626
- __o0["at"] = __dt19(__o0["at"], "TraceSpan.at");
4747
+ __o0["at"] = __dt20(__o0["at"], "TraceSpan.at");
4627
4748
  return raw;
4628
4749
  }
4629
4750
  __name(reviveTraceSpan, "reviveTraceSpan");
@@ -4779,18 +4900,18 @@ var StationClient = class {
4779
4900
  };
4780
4901
 
4781
4902
  // src/storage/types/storage.types.ts
4782
- import { DateTime as DateTime20 } from "luxon";
4783
- var __dt20 = /* @__PURE__ */ __name((v, path) => {
4903
+ import { DateTime as DateTime21 } from "luxon";
4904
+ var __dt21 = /* @__PURE__ */ __name((v, path) => {
4784
4905
  if (typeof v !== "string") {
4785
4906
  throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
4786
4907
  }
4787
- const d = DateTime20.fromISO(v);
4908
+ const d = DateTime21.fromISO(v);
4788
4909
  if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
4789
4910
  return d;
4790
4911
  }, "__dt");
4791
4912
  function reviveStorageReport(raw) {
4792
4913
  const __o0 = raw;
4793
- __o0["readAt"] = __dt20(__o0["readAt"], "StorageReport.readAt");
4914
+ __o0["readAt"] = __dt21(__o0["readAt"], "StorageReport.readAt");
4794
4915
  return raw;
4795
4916
  }
4796
4917
  __name(reviveStorageReport, "reviveStorageReport");
@@ -5141,6 +5262,9 @@ export {
5141
5262
  reviveOidcFactorRegistrationResponse,
5142
5263
  reviveOutputCast,
5143
5264
  reviveOutputCastList,
5265
+ reviveOwnEpisodeRequest,
5266
+ reviveOwnShow,
5267
+ reviveOwnShowList,
5144
5268
  revivePad,
5145
5269
  revivePadList,
5146
5270
  revivePartyGuestSession,