@deadair/sdk 0.96.5 → 0.97.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.
- package/dist/director/director.client.d.ts +16 -0
- package/dist/director/director.client.d.ts.map +1 -1
- package/dist/director/types/direction.types.d.ts +36 -0
- package/dist/director/types/direction.types.d.ts.map +1 -0
- package/dist/director/types/index.d.ts +1 -0
- package/dist/director/types/index.d.ts.map +1 -1
- package/dist/index.js +207 -132
- package/dist/index.js.map +1 -1
- package/dist/render/render.client.d.ts +6 -1
- package/dist/render/render.client.d.ts.map +1 -1
- package/dist/render/types/render.types.d.ts +14 -0
- package/dist/render/types/render.types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1635,7 +1635,7 @@ var ChartsClient = class {
|
|
|
1635
1635
|
}
|
|
1636
1636
|
};
|
|
1637
1637
|
|
|
1638
|
-
// src/director/types/
|
|
1638
|
+
// src/director/types/direction.types.ts
|
|
1639
1639
|
import { DateTime as DateTime5 } from "luxon";
|
|
1640
1640
|
var __dt5 = /* @__PURE__ */ __name((v, path) => {
|
|
1641
1641
|
if (typeof v !== "string") {
|
|
@@ -1645,17 +1645,42 @@ var __dt5 = /* @__PURE__ */ __name((v, path) => {
|
|
|
1645
1645
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
1646
1646
|
return d;
|
|
1647
1647
|
}, "__dt");
|
|
1648
|
+
function reviveTalkDirection(raw) {
|
|
1649
|
+
const __o0 = raw;
|
|
1650
|
+
__o0["endsAt"] = __dt5(__o0["endsAt"], "TalkDirection.endsAt");
|
|
1651
|
+
return raw;
|
|
1652
|
+
}
|
|
1653
|
+
__name(reviveTalkDirection, "reviveTalkDirection");
|
|
1654
|
+
function reviveTalkDirectionReading(raw) {
|
|
1655
|
+
const __o0 = raw;
|
|
1656
|
+
if (__o0["direction"] != null) {
|
|
1657
|
+
reviveTalkDirection(__o0["direction"]);
|
|
1658
|
+
}
|
|
1659
|
+
return raw;
|
|
1660
|
+
}
|
|
1661
|
+
__name(reviveTalkDirectionReading, "reviveTalkDirectionReading");
|
|
1662
|
+
|
|
1663
|
+
// src/director/types/rules.types.ts
|
|
1664
|
+
import { DateTime as DateTime6 } from "luxon";
|
|
1665
|
+
var __dt6 = /* @__PURE__ */ __name((v, path) => {
|
|
1666
|
+
if (typeof v !== "string") {
|
|
1667
|
+
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
1668
|
+
}
|
|
1669
|
+
const d = DateTime6.fromISO(v);
|
|
1670
|
+
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
1671
|
+
return d;
|
|
1672
|
+
}, "__dt");
|
|
1648
1673
|
function reviveBlockRule(raw) {
|
|
1649
1674
|
const __o0 = raw;
|
|
1650
1675
|
if (__o0["endsAt"] != null) {
|
|
1651
|
-
__o0["endsAt"] =
|
|
1676
|
+
__o0["endsAt"] = __dt6(__o0["endsAt"], "BlockRule.endsAt");
|
|
1652
1677
|
}
|
|
1653
1678
|
return raw;
|
|
1654
1679
|
}
|
|
1655
1680
|
__name(reviveBlockRule, "reviveBlockRule");
|
|
1656
1681
|
function reviveGenreSteer(raw) {
|
|
1657
1682
|
const __o0 = raw;
|
|
1658
|
-
__o0["endsAt"] =
|
|
1683
|
+
__o0["endsAt"] = __dt6(__o0["endsAt"], "GenreSteer.endsAt");
|
|
1659
1684
|
return raw;
|
|
1660
1685
|
}
|
|
1661
1686
|
__name(reviveGenreSteer, "reviveGenreSteer");
|
|
@@ -1884,6 +1909,40 @@ var DirectorClient = class {
|
|
|
1884
1909
|
});
|
|
1885
1910
|
return await parseJson(result);
|
|
1886
1911
|
}
|
|
1912
|
+
/**
|
|
1913
|
+
* @name Read the talk direction
|
|
1914
|
+
* @description The direction in force, if any
|
|
1915
|
+
*/
|
|
1916
|
+
async readTheTalkDirection() {
|
|
1917
|
+
const result = await this.fetch(`/direction`, {
|
|
1918
|
+
method: "GET"
|
|
1919
|
+
});
|
|
1920
|
+
return reviveTalkDirectionReading(await parseJson(result));
|
|
1921
|
+
}
|
|
1922
|
+
/**
|
|
1923
|
+
* @name Direct the presenters
|
|
1924
|
+
* @description Gives the presenters a line to lean on for a number of hours, replacing any direction already in force. Breaks already written are not rewritten
|
|
1925
|
+
*/
|
|
1926
|
+
async directThePresenters(body) {
|
|
1927
|
+
const result = await this.fetch(`/direction`, {
|
|
1928
|
+
method: "PUT",
|
|
1929
|
+
headers: {
|
|
1930
|
+
"Content-Type": "application/json"
|
|
1931
|
+
},
|
|
1932
|
+
body: JSON.stringify(body, bigIntReplacer)
|
|
1933
|
+
});
|
|
1934
|
+
return reviveTalkDirectionReading(await parseJson(result));
|
|
1935
|
+
}
|
|
1936
|
+
/**
|
|
1937
|
+
* @name Stop directing the presenters
|
|
1938
|
+
* @description Ends the direction now. Breaks already written are not rewritten
|
|
1939
|
+
*/
|
|
1940
|
+
async stopDirectingThePresenters() {
|
|
1941
|
+
const result = await this.fetch(`/direction`, {
|
|
1942
|
+
method: "DELETE"
|
|
1943
|
+
});
|
|
1944
|
+
return reviveTalkDirectionReading(await parseJson(result));
|
|
1945
|
+
}
|
|
1887
1946
|
/**
|
|
1888
1947
|
* @name Get station air
|
|
1889
1948
|
* @description What the station is airing, and whether it is driving at all
|
|
@@ -2215,31 +2274,31 @@ var DirectorClient = class {
|
|
|
2215
2274
|
};
|
|
2216
2275
|
|
|
2217
2276
|
// src/events/types/events.types.ts
|
|
2218
|
-
import { DateTime as
|
|
2219
|
-
var
|
|
2277
|
+
import { DateTime as DateTime7 } from "luxon";
|
|
2278
|
+
var __dt7 = /* @__PURE__ */ __name((v, path) => {
|
|
2220
2279
|
if (typeof v !== "string") {
|
|
2221
2280
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
2222
2281
|
}
|
|
2223
|
-
const d =
|
|
2282
|
+
const d = DateTime7.fromISO(v);
|
|
2224
2283
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
2225
2284
|
return d;
|
|
2226
2285
|
}, "__dt");
|
|
2227
2286
|
function reviveEventDestination(raw) {
|
|
2228
2287
|
const __o0 = raw;
|
|
2229
2288
|
if (__o0["lastDeliveredAt"] != null) {
|
|
2230
|
-
__o0["lastDeliveredAt"] =
|
|
2289
|
+
__o0["lastDeliveredAt"] = __dt7(__o0["lastDeliveredAt"], "EventDestination.lastDeliveredAt");
|
|
2231
2290
|
}
|
|
2232
2291
|
if (__o0["lastFailedAt"] != null) {
|
|
2233
|
-
__o0["lastFailedAt"] =
|
|
2292
|
+
__o0["lastFailedAt"] = __dt7(__o0["lastFailedAt"], "EventDestination.lastFailedAt");
|
|
2234
2293
|
}
|
|
2235
|
-
__o0["createdAt"] =
|
|
2236
|
-
__o0["updatedAt"] =
|
|
2294
|
+
__o0["createdAt"] = __dt7(__o0["createdAt"], "EventDestination.createdAt");
|
|
2295
|
+
__o0["updatedAt"] = __dt7(__o0["updatedAt"], "EventDestination.updatedAt");
|
|
2237
2296
|
return raw;
|
|
2238
2297
|
}
|
|
2239
2298
|
__name(reviveEventDestination, "reviveEventDestination");
|
|
2240
2299
|
function reviveEventDelivery(raw) {
|
|
2241
2300
|
const __o0 = raw;
|
|
2242
|
-
__o0["createdAt"] =
|
|
2301
|
+
__o0["createdAt"] = __dt7(__o0["createdAt"], "EventDelivery.createdAt");
|
|
2243
2302
|
return raw;
|
|
2244
2303
|
}
|
|
2245
2304
|
__name(reviveEventDelivery, "reviveEventDelivery");
|
|
@@ -2373,25 +2432,25 @@ var EventsClient = class {
|
|
|
2373
2432
|
};
|
|
2374
2433
|
|
|
2375
2434
|
// src/history/types/history.types.ts
|
|
2376
|
-
import { DateTime as
|
|
2377
|
-
var
|
|
2435
|
+
import { DateTime as DateTime8 } from "luxon";
|
|
2436
|
+
var __dt8 = /* @__PURE__ */ __name((v, path) => {
|
|
2378
2437
|
if (typeof v !== "string") {
|
|
2379
2438
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
2380
2439
|
}
|
|
2381
|
-
const d =
|
|
2440
|
+
const d = DateTime8.fromISO(v);
|
|
2382
2441
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
2383
2442
|
return d;
|
|
2384
2443
|
}, "__dt");
|
|
2385
2444
|
function reviveHistoryEntry(raw) {
|
|
2386
2445
|
const __o0 = raw;
|
|
2387
|
-
__o0["airedAt"] =
|
|
2446
|
+
__o0["airedAt"] = __dt8(__o0["airedAt"], "HistoryEntry.airedAt");
|
|
2388
2447
|
return raw;
|
|
2389
2448
|
}
|
|
2390
2449
|
__name(reviveHistoryEntry, "reviveHistoryEntry");
|
|
2391
2450
|
function reviveAsRunQuery(raw) {
|
|
2392
2451
|
const __o0 = raw;
|
|
2393
2452
|
if (__o0["until"] != null) {
|
|
2394
|
-
__o0["until"] =
|
|
2453
|
+
__o0["until"] = __dt8(__o0["until"], "AsRunQuery.until");
|
|
2395
2454
|
}
|
|
2396
2455
|
return raw;
|
|
2397
2456
|
}
|
|
@@ -2409,9 +2468,9 @@ function reviveHistoryPage(raw) {
|
|
|
2409
2468
|
__name(reviveHistoryPage, "reviveHistoryPage");
|
|
2410
2469
|
function reviveAsRunEntry(raw) {
|
|
2411
2470
|
const __o0 = raw;
|
|
2412
|
-
__o0["at"] =
|
|
2471
|
+
__o0["at"] = __dt8(__o0["at"], "AsRunEntry.at");
|
|
2413
2472
|
if (__o0["endedAt"] != null) {
|
|
2414
|
-
__o0["endedAt"] =
|
|
2473
|
+
__o0["endedAt"] = __dt8(__o0["endedAt"], "AsRunEntry.endedAt");
|
|
2415
2474
|
}
|
|
2416
2475
|
return raw;
|
|
2417
2476
|
}
|
|
@@ -2462,18 +2521,18 @@ var HistoryClient = class {
|
|
|
2462
2521
|
};
|
|
2463
2522
|
|
|
2464
2523
|
// src/languages/types/languages.types.ts
|
|
2465
|
-
import { DateTime as
|
|
2466
|
-
var
|
|
2524
|
+
import { DateTime as DateTime9 } from "luxon";
|
|
2525
|
+
var __dt9 = /* @__PURE__ */ __name((v, path) => {
|
|
2467
2526
|
if (typeof v !== "string") {
|
|
2468
2527
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
2469
2528
|
}
|
|
2470
|
-
const d =
|
|
2529
|
+
const d = DateTime9.fromISO(v);
|
|
2471
2530
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
2472
2531
|
return d;
|
|
2473
2532
|
}, "__dt");
|
|
2474
2533
|
function reviveConsoleLanguage(raw) {
|
|
2475
2534
|
const __o0 = raw;
|
|
2476
|
-
__o0["importedAt"] =
|
|
2535
|
+
__o0["importedAt"] = __dt9(__o0["importedAt"], "ConsoleLanguage.importedAt");
|
|
2477
2536
|
return raw;
|
|
2478
2537
|
}
|
|
2479
2538
|
__name(reviveConsoleLanguage, "reviveConsoleLanguage");
|
|
@@ -2569,24 +2628,24 @@ var LanguagesClient = class {
|
|
|
2569
2628
|
};
|
|
2570
2629
|
|
|
2571
2630
|
// src/messaging/types/messaging.types.ts
|
|
2572
|
-
import { DateTime as
|
|
2573
|
-
var
|
|
2631
|
+
import { DateTime as DateTime10 } from "luxon";
|
|
2632
|
+
var __dt10 = /* @__PURE__ */ __name((v, path) => {
|
|
2574
2633
|
if (typeof v !== "string") {
|
|
2575
2634
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
2576
2635
|
}
|
|
2577
|
-
const d =
|
|
2636
|
+
const d = DateTime10.fromISO(v);
|
|
2578
2637
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
2579
2638
|
return d;
|
|
2580
2639
|
}, "__dt");
|
|
2581
2640
|
function reviveMessagingLinkCode(raw) {
|
|
2582
2641
|
const __o0 = raw;
|
|
2583
|
-
__o0["expiresAt"] =
|
|
2642
|
+
__o0["expiresAt"] = __dt10(__o0["expiresAt"], "MessagingLinkCode.expiresAt");
|
|
2584
2643
|
return raw;
|
|
2585
2644
|
}
|
|
2586
2645
|
__name(reviveMessagingLinkCode, "reviveMessagingLinkCode");
|
|
2587
2646
|
function reviveMessagingLink(raw) {
|
|
2588
2647
|
const __o0 = raw;
|
|
2589
|
-
__o0["createdAt"] =
|
|
2648
|
+
__o0["createdAt"] = __dt10(__o0["createdAt"], "MessagingLink.createdAt");
|
|
2590
2649
|
return raw;
|
|
2591
2650
|
}
|
|
2592
2651
|
__name(reviveMessagingLink, "reviveMessagingLink");
|
|
@@ -2643,31 +2702,31 @@ var MessagingClient = class {
|
|
|
2643
2702
|
};
|
|
2644
2703
|
|
|
2645
2704
|
// src/metrics/types/metrics.types.ts
|
|
2646
|
-
import { DateTime as
|
|
2647
|
-
var
|
|
2705
|
+
import { DateTime as DateTime11 } from "luxon";
|
|
2706
|
+
var __dt11 = /* @__PURE__ */ __name((v, path) => {
|
|
2648
2707
|
if (typeof v !== "string") {
|
|
2649
2708
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
2650
2709
|
}
|
|
2651
|
-
const d =
|
|
2710
|
+
const d = DateTime11.fromISO(v);
|
|
2652
2711
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
2653
2712
|
return d;
|
|
2654
2713
|
}, "__dt");
|
|
2655
2714
|
function reviveMetricSeriesQuery(raw) {
|
|
2656
2715
|
const __o0 = raw;
|
|
2657
|
-
__o0["from"] =
|
|
2658
|
-
__o0["to"] =
|
|
2716
|
+
__o0["from"] = __dt11(__o0["from"], "MetricSeriesQuery.from");
|
|
2717
|
+
__o0["to"] = __dt11(__o0["to"], "MetricSeriesQuery.to");
|
|
2659
2718
|
return raw;
|
|
2660
2719
|
}
|
|
2661
2720
|
__name(reviveMetricSeriesQuery, "reviveMetricSeriesQuery");
|
|
2662
2721
|
function reviveMetricPoint(raw) {
|
|
2663
2722
|
const __o0 = raw;
|
|
2664
|
-
__o0["at"] =
|
|
2723
|
+
__o0["at"] = __dt11(__o0["at"], "MetricPoint.at");
|
|
2665
2724
|
return raw;
|
|
2666
2725
|
}
|
|
2667
2726
|
__name(reviveMetricPoint, "reviveMetricPoint");
|
|
2668
2727
|
function reviveMetricName(raw) {
|
|
2669
2728
|
const __o0 = raw;
|
|
2670
|
-
__o0["lastSeen"] =
|
|
2729
|
+
__o0["lastSeen"] = __dt11(__o0["lastSeen"], "MetricName.lastSeen");
|
|
2671
2730
|
return raw;
|
|
2672
2731
|
}
|
|
2673
2732
|
__name(reviveMetricName, "reviveMetricName");
|
|
@@ -2695,8 +2754,8 @@ function reviveMetricNames(raw) {
|
|
|
2695
2754
|
__name(reviveMetricNames, "reviveMetricNames");
|
|
2696
2755
|
function reviveMetricSeriesPage(raw) {
|
|
2697
2756
|
const __o0 = raw;
|
|
2698
|
-
__o0["from"] =
|
|
2699
|
-
__o0["to"] =
|
|
2757
|
+
__o0["from"] = __dt11(__o0["from"], "MetricSeriesPage.from");
|
|
2758
|
+
__o0["to"] = __dt11(__o0["to"], "MetricSeriesPage.to");
|
|
2700
2759
|
{
|
|
2701
2760
|
const __a1 = __o0["series"];
|
|
2702
2761
|
for (let __i2 = 0; __i2 < __a1.length; __i2++) {
|
|
@@ -2854,32 +2913,32 @@ var NowplayingClient = class {
|
|
|
2854
2913
|
};
|
|
2855
2914
|
|
|
2856
2915
|
// src/oauth/types/oauth.types.ts
|
|
2857
|
-
import { DateTime as
|
|
2858
|
-
var
|
|
2916
|
+
import { DateTime as DateTime12 } from "luxon";
|
|
2917
|
+
var __dt12 = /* @__PURE__ */ __name((v, path) => {
|
|
2859
2918
|
if (typeof v !== "string") {
|
|
2860
2919
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
2861
2920
|
}
|
|
2862
|
-
const d =
|
|
2921
|
+
const d = DateTime12.fromISO(v);
|
|
2863
2922
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
2864
2923
|
return d;
|
|
2865
2924
|
}, "__dt");
|
|
2866
2925
|
function reviveOAuthGrant(raw) {
|
|
2867
2926
|
const __o0 = raw;
|
|
2868
|
-
__o0["createdAt"] =
|
|
2927
|
+
__o0["createdAt"] = __dt12(__o0["createdAt"], "OAuthGrant.createdAt");
|
|
2869
2928
|
if (__o0["lastUsedAt"] != null) {
|
|
2870
|
-
__o0["lastUsedAt"] =
|
|
2929
|
+
__o0["lastUsedAt"] = __dt12(__o0["lastUsedAt"], "OAuthGrant.lastUsedAt");
|
|
2871
2930
|
}
|
|
2872
2931
|
return raw;
|
|
2873
2932
|
}
|
|
2874
2933
|
__name(reviveOAuthGrant, "reviveOAuthGrant");
|
|
2875
2934
|
function reviveOAuthClientSummary(raw) {
|
|
2876
2935
|
const __o0 = raw;
|
|
2877
|
-
__o0["createdAt"] =
|
|
2936
|
+
__o0["createdAt"] = __dt12(__o0["createdAt"], "OAuthClientSummary.createdAt");
|
|
2878
2937
|
if (__o0["lastUsedAt"] != null) {
|
|
2879
|
-
__o0["lastUsedAt"] =
|
|
2938
|
+
__o0["lastUsedAt"] = __dt12(__o0["lastUsedAt"], "OAuthClientSummary.lastUsedAt");
|
|
2880
2939
|
}
|
|
2881
2940
|
if (__o0["expiresAt"] != null) {
|
|
2882
|
-
__o0["expiresAt"] =
|
|
2941
|
+
__o0["expiresAt"] = __dt12(__o0["expiresAt"], "OAuthClientSummary.expiresAt");
|
|
2883
2942
|
}
|
|
2884
2943
|
return raw;
|
|
2885
2944
|
}
|
|
@@ -3048,18 +3107,18 @@ var OnboardingClient = class {
|
|
|
3048
3107
|
};
|
|
3049
3108
|
|
|
3050
3109
|
// src/outputs/types/outputs.types.ts
|
|
3051
|
-
import { DateTime as
|
|
3052
|
-
var
|
|
3110
|
+
import { DateTime as DateTime13 } from "luxon";
|
|
3111
|
+
var __dt13 = /* @__PURE__ */ __name((v, path) => {
|
|
3053
3112
|
if (typeof v !== "string") {
|
|
3054
3113
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
3055
3114
|
}
|
|
3056
|
-
const d =
|
|
3115
|
+
const d = DateTime13.fromISO(v);
|
|
3057
3116
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
3058
3117
|
return d;
|
|
3059
3118
|
}, "__dt");
|
|
3060
3119
|
function reviveOutputCast(raw) {
|
|
3061
3120
|
const __o0 = raw;
|
|
3062
|
-
__o0["startedAt"] =
|
|
3121
|
+
__o0["startedAt"] = __dt13(__o0["startedAt"], "OutputCast.startedAt");
|
|
3063
3122
|
return raw;
|
|
3064
3123
|
}
|
|
3065
3124
|
__name(reviveOutputCast, "reviveOutputCast");
|
|
@@ -3612,18 +3671,18 @@ var PersonasClient = class {
|
|
|
3612
3671
|
};
|
|
3613
3672
|
|
|
3614
3673
|
// src/playlists/types/playlists.types.ts
|
|
3615
|
-
import { DateTime as
|
|
3616
|
-
var
|
|
3674
|
+
import { DateTime as DateTime14 } from "luxon";
|
|
3675
|
+
var __dt14 = /* @__PURE__ */ __name((v, path) => {
|
|
3617
3676
|
if (typeof v !== "string") {
|
|
3618
3677
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
3619
3678
|
}
|
|
3620
|
-
const d =
|
|
3679
|
+
const d = DateTime14.fromISO(v);
|
|
3621
3680
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
3622
3681
|
return d;
|
|
3623
3682
|
}, "__dt");
|
|
3624
3683
|
function reviveCatalogPlaylistSource(raw) {
|
|
3625
3684
|
const __o0 = raw;
|
|
3626
|
-
__o0["listedAt"] =
|
|
3685
|
+
__o0["listedAt"] = __dt14(__o0["listedAt"], "CatalogPlaylistSource.listedAt");
|
|
3627
3686
|
return raw;
|
|
3628
3687
|
}
|
|
3629
3688
|
__name(reviveCatalogPlaylistSource, "reviveCatalogPlaylistSource");
|
|
@@ -3642,19 +3701,19 @@ function reviveCatalogPlaylistPage(raw) {
|
|
|
3642
3701
|
__name(reviveCatalogPlaylistPage, "reviveCatalogPlaylistPage");
|
|
3643
3702
|
|
|
3644
3703
|
// src/playlists/types/station.playlists.types.ts
|
|
3645
|
-
import { DateTime as
|
|
3646
|
-
var
|
|
3704
|
+
import { DateTime as DateTime15 } from "luxon";
|
|
3705
|
+
var __dt15 = /* @__PURE__ */ __name((v, path) => {
|
|
3647
3706
|
if (typeof v !== "string") {
|
|
3648
3707
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
3649
3708
|
}
|
|
3650
|
-
const d =
|
|
3709
|
+
const d = DateTime15.fromISO(v);
|
|
3651
3710
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
3652
3711
|
return d;
|
|
3653
3712
|
}, "__dt");
|
|
3654
3713
|
function reviveStationPlaylist(raw) {
|
|
3655
3714
|
const __o0 = raw;
|
|
3656
|
-
__o0["createdAt"] =
|
|
3657
|
-
__o0["updatedAt"] =
|
|
3715
|
+
__o0["createdAt"] = __dt15(__o0["createdAt"], "StationPlaylist.createdAt");
|
|
3716
|
+
__o0["updatedAt"] = __dt15(__o0["updatedAt"], "StationPlaylist.updatedAt");
|
|
3658
3717
|
return raw;
|
|
3659
3718
|
}
|
|
3660
3719
|
__name(reviveStationPlaylist, "reviveStationPlaylist");
|
|
@@ -3987,22 +4046,22 @@ var PlayoutClient = class {
|
|
|
3987
4046
|
};
|
|
3988
4047
|
|
|
3989
4048
|
// src/plugins/types/plugins.types.ts
|
|
3990
|
-
import { DateTime as
|
|
3991
|
-
var
|
|
4049
|
+
import { DateTime as DateTime16 } from "luxon";
|
|
4050
|
+
var __dt16 = /* @__PURE__ */ __name((v, path) => {
|
|
3992
4051
|
if (typeof v !== "string") {
|
|
3993
4052
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
3994
4053
|
}
|
|
3995
|
-
const d =
|
|
4054
|
+
const d = DateTime16.fromISO(v);
|
|
3996
4055
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
3997
4056
|
return d;
|
|
3998
4057
|
}, "__dt");
|
|
3999
4058
|
function revivePluginSummary(raw) {
|
|
4000
4059
|
const __o0 = raw;
|
|
4001
4060
|
if (__o0["firstEnabledAt"] != null) {
|
|
4002
|
-
__o0["firstEnabledAt"] =
|
|
4061
|
+
__o0["firstEnabledAt"] = __dt16(__o0["firstEnabledAt"], "PluginSummary.firstEnabledAt");
|
|
4003
4062
|
}
|
|
4004
4063
|
if (__o0["nextProbeAt"] != null) {
|
|
4005
|
-
__o0["nextProbeAt"] =
|
|
4064
|
+
__o0["nextProbeAt"] = __dt16(__o0["nextProbeAt"], "PluginSummary.nextProbeAt");
|
|
4006
4065
|
}
|
|
4007
4066
|
return raw;
|
|
4008
4067
|
}
|
|
@@ -4257,31 +4316,31 @@ var PluginsClient = class {
|
|
|
4257
4316
|
};
|
|
4258
4317
|
|
|
4259
4318
|
// src/productions/types/productions.types.ts
|
|
4260
|
-
import { DateTime as
|
|
4261
|
-
var
|
|
4319
|
+
import { DateTime as DateTime17 } from "luxon";
|
|
4320
|
+
var __dt17 = /* @__PURE__ */ __name((v, path) => {
|
|
4262
4321
|
if (typeof v !== "string") {
|
|
4263
4322
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
4264
4323
|
}
|
|
4265
|
-
const d =
|
|
4324
|
+
const d = DateTime17.fromISO(v);
|
|
4266
4325
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
4267
4326
|
return d;
|
|
4268
4327
|
}, "__dt");
|
|
4269
4328
|
function reviveProduction(raw) {
|
|
4270
4329
|
const __o0 = raw;
|
|
4271
4330
|
if (__o0["scheduledFor"] != null) {
|
|
4272
|
-
__o0["scheduledFor"] =
|
|
4331
|
+
__o0["scheduledFor"] = __dt17(__o0["scheduledFor"], "Production.scheduledFor");
|
|
4273
4332
|
}
|
|
4274
4333
|
if (__o0["cancelledAt"] != null) {
|
|
4275
|
-
__o0["cancelledAt"] =
|
|
4334
|
+
__o0["cancelledAt"] = __dt17(__o0["cancelledAt"], "Production.cancelledAt");
|
|
4276
4335
|
}
|
|
4277
|
-
__o0["createdAt"] =
|
|
4336
|
+
__o0["createdAt"] = __dt17(__o0["createdAt"], "Production.createdAt");
|
|
4278
4337
|
return raw;
|
|
4279
4338
|
}
|
|
4280
4339
|
__name(reviveProduction, "reviveProduction");
|
|
4281
4340
|
function reviveProductionRequest(raw) {
|
|
4282
4341
|
const __o0 = raw;
|
|
4283
4342
|
if (__o0["scheduledFor"] != null) {
|
|
4284
|
-
__o0["scheduledFor"] =
|
|
4343
|
+
__o0["scheduledFor"] = __dt17(__o0["scheduledFor"], "ProductionRequest.scheduledFor");
|
|
4285
4344
|
}
|
|
4286
4345
|
return raw;
|
|
4287
4346
|
}
|
|
@@ -4299,25 +4358,25 @@ function reviveProductionList(raw) {
|
|
|
4299
4358
|
__name(reviveProductionList, "reviveProductionList");
|
|
4300
4359
|
|
|
4301
4360
|
// src/podcasts/types/podcasts.types.ts
|
|
4302
|
-
import { DateTime as
|
|
4303
|
-
var
|
|
4361
|
+
import { DateTime as DateTime18 } from "luxon";
|
|
4362
|
+
var __dt18 = /* @__PURE__ */ __name((v, path) => {
|
|
4304
4363
|
if (typeof v !== "string") {
|
|
4305
4364
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
4306
4365
|
}
|
|
4307
|
-
const d =
|
|
4366
|
+
const d = DateTime18.fromISO(v);
|
|
4308
4367
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
4309
4368
|
return d;
|
|
4310
4369
|
}, "__dt");
|
|
4311
4370
|
function reviveOwnShow(raw) {
|
|
4312
4371
|
const __o0 = raw;
|
|
4313
|
-
__o0["createdAt"] =
|
|
4372
|
+
__o0["createdAt"] = __dt18(__o0["createdAt"], "OwnShow.createdAt");
|
|
4314
4373
|
return raw;
|
|
4315
4374
|
}
|
|
4316
4375
|
__name(reviveOwnShow, "reviveOwnShow");
|
|
4317
4376
|
function reviveOwnEpisodeRequest(raw) {
|
|
4318
4377
|
const __o0 = raw;
|
|
4319
4378
|
if (__o0["airAt"] != null) {
|
|
4320
|
-
__o0["airAt"] =
|
|
4379
|
+
__o0["airAt"] = __dt18(__o0["airAt"], "OwnEpisodeRequest.airAt");
|
|
4321
4380
|
}
|
|
4322
4381
|
return raw;
|
|
4323
4382
|
}
|
|
@@ -4513,25 +4572,25 @@ var ProductionsClient = class {
|
|
|
4513
4572
|
};
|
|
4514
4573
|
|
|
4515
4574
|
// src/render/types/render.types.ts
|
|
4516
|
-
import { DateTime as
|
|
4517
|
-
var
|
|
4575
|
+
import { DateTime as DateTime19 } from "luxon";
|
|
4576
|
+
var __dt19 = /* @__PURE__ */ __name((v, path) => {
|
|
4518
4577
|
if (typeof v !== "string") {
|
|
4519
4578
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
4520
4579
|
}
|
|
4521
|
-
const d =
|
|
4580
|
+
const d = DateTime19.fromISO(v);
|
|
4522
4581
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
4523
4582
|
return d;
|
|
4524
4583
|
}, "__dt");
|
|
4525
4584
|
function reviveScriptAttempt(raw) {
|
|
4526
4585
|
const __o0 = raw;
|
|
4527
|
-
__o0["at"] =
|
|
4586
|
+
__o0["at"] = __dt19(__o0["at"], "ScriptAttempt.at");
|
|
4528
4587
|
return raw;
|
|
4529
4588
|
}
|
|
4530
4589
|
__name(reviveScriptAttempt, "reviveScriptAttempt");
|
|
4531
4590
|
function revivePad(raw) {
|
|
4532
4591
|
const __o0 = raw;
|
|
4533
4592
|
if (__o0["lastUsedAt"] != null) {
|
|
4534
|
-
__o0["lastUsedAt"] =
|
|
4593
|
+
__o0["lastUsedAt"] = __dt19(__o0["lastUsedAt"], "Pad.lastUsedAt");
|
|
4535
4594
|
}
|
|
4536
4595
|
return raw;
|
|
4537
4596
|
}
|
|
@@ -4753,6 +4812,20 @@ var RenderClient = class {
|
|
|
4753
4812
|
});
|
|
4754
4813
|
return await parseJson(result);
|
|
4755
4814
|
}
|
|
4815
|
+
/**
|
|
4816
|
+
* @name Scope segment
|
|
4817
|
+
* @description Sets which shows and presenters a recording is for. An empty scope makes it a recording for every show
|
|
4818
|
+
*/
|
|
4819
|
+
async scopeSegment(id, body) {
|
|
4820
|
+
const result = await this.fetch(`/segments/${encodeURIComponent(id)}/scope`, {
|
|
4821
|
+
method: "PUT",
|
|
4822
|
+
headers: {
|
|
4823
|
+
"Content-Type": "application/json"
|
|
4824
|
+
},
|
|
4825
|
+
body: JSON.stringify(body, bigIntReplacer)
|
|
4826
|
+
});
|
|
4827
|
+
return await parseJson(result);
|
|
4828
|
+
}
|
|
4756
4829
|
/**
|
|
4757
4830
|
* @name Read segment sources
|
|
4758
4831
|
* @description The stored facts a written break was handed, the ones it said first
|
|
@@ -5067,33 +5140,33 @@ var RenderClient = class {
|
|
|
5067
5140
|
};
|
|
5068
5141
|
|
|
5069
5142
|
// src/requests/types/requests.types.ts
|
|
5070
|
-
import { DateTime as
|
|
5071
|
-
var
|
|
5143
|
+
import { DateTime as DateTime20 } from "luxon";
|
|
5144
|
+
var __dt20 = /* @__PURE__ */ __name((v, path) => {
|
|
5072
5145
|
if (typeof v !== "string") {
|
|
5073
5146
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
5074
5147
|
}
|
|
5075
|
-
const d =
|
|
5148
|
+
const d = DateTime20.fromISO(v);
|
|
5076
5149
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
5077
5150
|
return d;
|
|
5078
5151
|
}, "__dt");
|
|
5079
5152
|
function revivePartyPass(raw) {
|
|
5080
5153
|
const __o0 = raw;
|
|
5081
|
-
__o0["createdAt"] =
|
|
5082
|
-
__o0["expiresAt"] =
|
|
5154
|
+
__o0["createdAt"] = __dt20(__o0["createdAt"], "PartyPass.createdAt");
|
|
5155
|
+
__o0["expiresAt"] = __dt20(__o0["expiresAt"], "PartyPass.expiresAt");
|
|
5083
5156
|
return raw;
|
|
5084
5157
|
}
|
|
5085
5158
|
__name(revivePartyPass, "revivePartyPass");
|
|
5086
5159
|
function revivePartyGuestSession(raw) {
|
|
5087
5160
|
const __o0 = raw;
|
|
5088
|
-
__o0["expiresAt"] =
|
|
5161
|
+
__o0["expiresAt"] = __dt20(__o0["expiresAt"], "PartyGuestSession.expiresAt");
|
|
5089
5162
|
return raw;
|
|
5090
5163
|
}
|
|
5091
5164
|
__name(revivePartyGuestSession, "revivePartyGuestSession");
|
|
5092
5165
|
function reviveListenerRequest(raw) {
|
|
5093
5166
|
const __o0 = raw;
|
|
5094
|
-
__o0["createdAt"] =
|
|
5167
|
+
__o0["createdAt"] = __dt20(__o0["createdAt"], "ListenerRequest.createdAt");
|
|
5095
5168
|
if (__o0["airedAt"] != null) {
|
|
5096
|
-
__o0["airedAt"] =
|
|
5169
|
+
__o0["airedAt"] = __dt20(__o0["airedAt"], "ListenerRequest.airedAt");
|
|
5097
5170
|
}
|
|
5098
5171
|
return raw;
|
|
5099
5172
|
}
|
|
@@ -5573,19 +5646,19 @@ var SettingsClient = class {
|
|
|
5573
5646
|
};
|
|
5574
5647
|
|
|
5575
5648
|
// src/station/types/logs.types.ts
|
|
5576
|
-
import { DateTime as
|
|
5577
|
-
var
|
|
5649
|
+
import { DateTime as DateTime21 } from "luxon";
|
|
5650
|
+
var __dt21 = /* @__PURE__ */ __name((v, path) => {
|
|
5578
5651
|
if (typeof v !== "string") {
|
|
5579
5652
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
5580
5653
|
}
|
|
5581
|
-
const d =
|
|
5654
|
+
const d = DateTime21.fromISO(v);
|
|
5582
5655
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
5583
5656
|
return d;
|
|
5584
5657
|
}, "__dt");
|
|
5585
5658
|
function reviveLogSource(raw) {
|
|
5586
5659
|
const __o0 = raw;
|
|
5587
5660
|
if (__o0["lastWriteAt"] != null) {
|
|
5588
|
-
__o0["lastWriteAt"] =
|
|
5661
|
+
__o0["lastWriteAt"] = __dt21(__o0["lastWriteAt"], "LogSource.lastWriteAt");
|
|
5589
5662
|
}
|
|
5590
5663
|
return raw;
|
|
5591
5664
|
}
|
|
@@ -5603,12 +5676,12 @@ function reviveLogSourceList(raw) {
|
|
|
5603
5676
|
__name(reviveLogSourceList, "reviveLogSourceList");
|
|
5604
5677
|
|
|
5605
5678
|
// src/station/types/station.types.ts
|
|
5606
|
-
import { DateTime as
|
|
5607
|
-
var
|
|
5679
|
+
import { DateTime as DateTime22 } from "luxon";
|
|
5680
|
+
var __dt22 = /* @__PURE__ */ __name((v, path) => {
|
|
5608
5681
|
if (typeof v !== "string") {
|
|
5609
5682
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
5610
5683
|
}
|
|
5611
|
-
const d =
|
|
5684
|
+
const d = DateTime22.fromISO(v);
|
|
5612
5685
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
5613
5686
|
return d;
|
|
5614
5687
|
}, "__dt");
|
|
@@ -5616,22 +5689,22 @@ var __dtf = /* @__PURE__ */ __name((v, path, fmt) => {
|
|
|
5616
5689
|
if (typeof v !== "string") {
|
|
5617
5690
|
throw new TypeError(`ContractKit: expected a string at '${path}' in format ${fmt}, received ${typeof v}.`);
|
|
5618
5691
|
}
|
|
5619
|
-
const d =
|
|
5692
|
+
const d = DateTime22.fromFormat(v, fmt);
|
|
5620
5693
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' does not match format ${fmt}.`);
|
|
5621
5694
|
return d;
|
|
5622
5695
|
}, "__dtf");
|
|
5623
5696
|
function reviveStationHeartbeat(raw) {
|
|
5624
5697
|
const __o0 = raw;
|
|
5625
|
-
__o0["startedAt"] =
|
|
5698
|
+
__o0["startedAt"] = __dt22(__o0["startedAt"], "StationHeartbeat.startedAt");
|
|
5626
5699
|
if (__o0["lastBeat"] != null) {
|
|
5627
|
-
__o0["lastBeat"] =
|
|
5700
|
+
__o0["lastBeat"] = __dt22(__o0["lastBeat"], "StationHeartbeat.lastBeat");
|
|
5628
5701
|
}
|
|
5629
5702
|
return raw;
|
|
5630
5703
|
}
|
|
5631
5704
|
__name(reviveStationHeartbeat, "reviveStationHeartbeat");
|
|
5632
5705
|
function reviveStationModelHolder(raw) {
|
|
5633
5706
|
const __o0 = raw;
|
|
5634
|
-
__o0["heldSince"] =
|
|
5707
|
+
__o0["heldSince"] = __dt22(__o0["heldSince"], "StationModelHolder.heldSince");
|
|
5635
5708
|
return raw;
|
|
5636
5709
|
}
|
|
5637
5710
|
__name(reviveStationModelHolder, "reviveStationModelHolder");
|
|
@@ -5660,7 +5733,7 @@ function reviveStationReleases(raw) {
|
|
|
5660
5733
|
}
|
|
5661
5734
|
}
|
|
5662
5735
|
if (__o0["checkedAt"] != null) {
|
|
5663
|
-
__o0["checkedAt"] =
|
|
5736
|
+
__o0["checkedAt"] = __dt22(__o0["checkedAt"], "StationReleases.checkedAt");
|
|
5664
5737
|
}
|
|
5665
5738
|
{
|
|
5666
5739
|
const __a3 = __o0["available"];
|
|
@@ -5673,7 +5746,7 @@ function reviveStationReleases(raw) {
|
|
|
5673
5746
|
__name(reviveStationReleases, "reviveStationReleases");
|
|
5674
5747
|
function reviveStationCheckup(raw) {
|
|
5675
5748
|
const __o0 = raw;
|
|
5676
|
-
__o0["readAt"] =
|
|
5749
|
+
__o0["readAt"] = __dt22(__o0["readAt"], "StationCheckup.readAt");
|
|
5677
5750
|
if (__o0["heartbeats"] != null) {
|
|
5678
5751
|
{
|
|
5679
5752
|
const __a1 = __o0["heartbeats"];
|
|
@@ -5690,24 +5763,24 @@ function reviveStationCheckup(raw) {
|
|
|
5690
5763
|
__name(reviveStationCheckup, "reviveStationCheckup");
|
|
5691
5764
|
|
|
5692
5765
|
// src/station/types/traces.types.ts
|
|
5693
|
-
import { DateTime as
|
|
5694
|
-
var
|
|
5766
|
+
import { DateTime as DateTime23 } from "luxon";
|
|
5767
|
+
var __dt23 = /* @__PURE__ */ __name((v, path) => {
|
|
5695
5768
|
if (typeof v !== "string") {
|
|
5696
5769
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
5697
5770
|
}
|
|
5698
|
-
const d =
|
|
5771
|
+
const d = DateTime23.fromISO(v);
|
|
5699
5772
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
5700
5773
|
return d;
|
|
5701
5774
|
}, "__dt");
|
|
5702
5775
|
function reviveTraceDecision(raw) {
|
|
5703
5776
|
const __o0 = raw;
|
|
5704
|
-
__o0["at"] =
|
|
5777
|
+
__o0["at"] = __dt23(__o0["at"], "TraceDecision.at");
|
|
5705
5778
|
return raw;
|
|
5706
5779
|
}
|
|
5707
5780
|
__name(reviveTraceDecision, "reviveTraceDecision");
|
|
5708
5781
|
function reviveTraceSpan(raw) {
|
|
5709
5782
|
const __o0 = raw;
|
|
5710
|
-
__o0["at"] =
|
|
5783
|
+
__o0["at"] = __dt23(__o0["at"], "TraceSpan.at");
|
|
5711
5784
|
return raw;
|
|
5712
5785
|
}
|
|
5713
5786
|
__name(reviveTraceSpan, "reviveTraceSpan");
|
|
@@ -5863,18 +5936,18 @@ var StationClient = class {
|
|
|
5863
5936
|
};
|
|
5864
5937
|
|
|
5865
5938
|
// src/storage/types/storage.types.ts
|
|
5866
|
-
import { DateTime as
|
|
5867
|
-
var
|
|
5939
|
+
import { DateTime as DateTime24 } from "luxon";
|
|
5940
|
+
var __dt24 = /* @__PURE__ */ __name((v, path) => {
|
|
5868
5941
|
if (typeof v !== "string") {
|
|
5869
5942
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
5870
5943
|
}
|
|
5871
|
-
const d =
|
|
5944
|
+
const d = DateTime24.fromISO(v);
|
|
5872
5945
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
5873
5946
|
return d;
|
|
5874
5947
|
}, "__dt");
|
|
5875
5948
|
function reviveStorageReport(raw) {
|
|
5876
5949
|
const __o0 = raw;
|
|
5877
|
-
__o0["readAt"] =
|
|
5950
|
+
__o0["readAt"] = __dt24(__o0["readAt"], "StorageReport.readAt");
|
|
5878
5951
|
return raw;
|
|
5879
5952
|
}
|
|
5880
5953
|
__name(reviveStorageReport, "reviveStorageReport");
|
|
@@ -5901,37 +5974,37 @@ var StorageClient = class {
|
|
|
5901
5974
|
};
|
|
5902
5975
|
|
|
5903
5976
|
// src/stream/types/stream.listeners.types.ts
|
|
5904
|
-
import { DateTime as
|
|
5905
|
-
var
|
|
5977
|
+
import { DateTime as DateTime25 } from "luxon";
|
|
5978
|
+
var __dt25 = /* @__PURE__ */ __name((v, path) => {
|
|
5906
5979
|
if (typeof v !== "string") {
|
|
5907
5980
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
5908
5981
|
}
|
|
5909
|
-
const d =
|
|
5982
|
+
const d = DateTime25.fromISO(v);
|
|
5910
5983
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
5911
5984
|
return d;
|
|
5912
5985
|
}, "__dt");
|
|
5913
5986
|
function reviveStreamListeners(raw) {
|
|
5914
5987
|
const __o0 = raw;
|
|
5915
|
-
__o0["readAt"] =
|
|
5988
|
+
__o0["readAt"] = __dt25(__o0["readAt"], "StreamListeners.readAt");
|
|
5916
5989
|
return raw;
|
|
5917
5990
|
}
|
|
5918
5991
|
__name(reviveStreamListeners, "reviveStreamListeners");
|
|
5919
5992
|
|
|
5920
5993
|
// src/stream/types/stream.archive.types.ts
|
|
5921
|
-
import { DateTime as
|
|
5922
|
-
var
|
|
5994
|
+
import { DateTime as DateTime26 } from "luxon";
|
|
5995
|
+
var __dt26 = /* @__PURE__ */ __name((v, path) => {
|
|
5923
5996
|
if (typeof v !== "string") {
|
|
5924
5997
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
5925
5998
|
}
|
|
5926
|
-
const d =
|
|
5999
|
+
const d = DateTime26.fromISO(v);
|
|
5927
6000
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
5928
6001
|
return d;
|
|
5929
6002
|
}, "__dt");
|
|
5930
6003
|
function reviveRecording(raw) {
|
|
5931
6004
|
const __o0 = raw;
|
|
5932
|
-
__o0["startedAt"] =
|
|
6005
|
+
__o0["startedAt"] = __dt26(__o0["startedAt"], "Recording.startedAt");
|
|
5933
6006
|
if (__o0["endedAt"] != null) {
|
|
5934
|
-
__o0["endedAt"] =
|
|
6007
|
+
__o0["endedAt"] = __dt26(__o0["endedAt"], "Recording.endedAt");
|
|
5935
6008
|
}
|
|
5936
6009
|
return raw;
|
|
5937
6010
|
}
|
|
@@ -6213,27 +6286,27 @@ var TopicsClient = class {
|
|
|
6213
6286
|
};
|
|
6214
6287
|
|
|
6215
6288
|
// src/users/types/users.types.ts
|
|
6216
|
-
import { DateTime as
|
|
6217
|
-
var
|
|
6289
|
+
import { DateTime as DateTime27 } from "luxon";
|
|
6290
|
+
var __dt27 = /* @__PURE__ */ __name((v, path) => {
|
|
6218
6291
|
if (typeof v !== "string") {
|
|
6219
6292
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
6220
6293
|
}
|
|
6221
|
-
const d =
|
|
6294
|
+
const d = DateTime27.fromISO(v);
|
|
6222
6295
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
6223
6296
|
return d;
|
|
6224
6297
|
}, "__dt");
|
|
6225
6298
|
function reviveUserSummary(raw) {
|
|
6226
6299
|
const __o0 = raw;
|
|
6227
|
-
__o0["createdAt"] =
|
|
6300
|
+
__o0["createdAt"] = __dt27(__o0["createdAt"], "UserSummary.createdAt");
|
|
6228
6301
|
if (__o0["lastSignInAt"] != null) {
|
|
6229
|
-
__o0["lastSignInAt"] =
|
|
6302
|
+
__o0["lastSignInAt"] = __dt27(__o0["lastSignInAt"], "UserSummary.lastSignInAt");
|
|
6230
6303
|
}
|
|
6231
6304
|
return raw;
|
|
6232
6305
|
}
|
|
6233
6306
|
__name(reviveUserSummary, "reviveUserSummary");
|
|
6234
6307
|
function reviveUserSignIn(raw) {
|
|
6235
6308
|
const __o0 = raw;
|
|
6236
|
-
__o0["occurredAt"] =
|
|
6309
|
+
__o0["occurredAt"] = __dt27(__o0["occurredAt"], "UserSignIn.occurredAt");
|
|
6237
6310
|
return raw;
|
|
6238
6311
|
}
|
|
6239
6312
|
__name(reviveUserSignIn, "reviveUserSignIn");
|
|
@@ -6268,30 +6341,30 @@ function reviveUserDetail(raw) {
|
|
|
6268
6341
|
__name(reviveUserDetail, "reviveUserDetail");
|
|
6269
6342
|
|
|
6270
6343
|
// src/users/types/invitations.types.ts
|
|
6271
|
-
import { DateTime as
|
|
6272
|
-
var
|
|
6344
|
+
import { DateTime as DateTime28 } from "luxon";
|
|
6345
|
+
var __dt28 = /* @__PURE__ */ __name((v, path) => {
|
|
6273
6346
|
if (typeof v !== "string") {
|
|
6274
6347
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
6275
6348
|
}
|
|
6276
|
-
const d =
|
|
6349
|
+
const d = DateTime28.fromISO(v);
|
|
6277
6350
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
6278
6351
|
return d;
|
|
6279
6352
|
}, "__dt");
|
|
6280
6353
|
function reviveInvitationDetails(raw) {
|
|
6281
6354
|
const __o0 = raw;
|
|
6282
|
-
__o0["expiresAt"] =
|
|
6355
|
+
__o0["expiresAt"] = __dt28(__o0["expiresAt"], "InvitationDetails.expiresAt");
|
|
6283
6356
|
return raw;
|
|
6284
6357
|
}
|
|
6285
6358
|
__name(reviveInvitationDetails, "reviveInvitationDetails");
|
|
6286
6359
|
function reviveInvitation(raw) {
|
|
6287
6360
|
const __o0 = raw;
|
|
6288
|
-
__o0["createdAt"] =
|
|
6289
|
-
__o0["expiresAt"] =
|
|
6361
|
+
__o0["createdAt"] = __dt28(__o0["createdAt"], "Invitation.createdAt");
|
|
6362
|
+
__o0["expiresAt"] = __dt28(__o0["expiresAt"], "Invitation.expiresAt");
|
|
6290
6363
|
if (__o0["acceptedAt"] != null) {
|
|
6291
|
-
__o0["acceptedAt"] =
|
|
6364
|
+
__o0["acceptedAt"] = __dt28(__o0["acceptedAt"], "Invitation.acceptedAt");
|
|
6292
6365
|
}
|
|
6293
6366
|
if (__o0["revokedAt"] != null) {
|
|
6294
|
-
__o0["revokedAt"] =
|
|
6367
|
+
__o0["revokedAt"] = __dt28(__o0["revokedAt"], "Invitation.revokedAt");
|
|
6295
6368
|
}
|
|
6296
6369
|
return raw;
|
|
6297
6370
|
}
|
|
@@ -6723,6 +6796,8 @@ export {
|
|
|
6723
6796
|
reviveStepUpStartResponseOutput,
|
|
6724
6797
|
reviveStorageReport,
|
|
6725
6798
|
reviveStreamListeners,
|
|
6799
|
+
reviveTalkDirection,
|
|
6800
|
+
reviveTalkDirectionReading,
|
|
6726
6801
|
reviveTraceDecision,
|
|
6727
6802
|
reviveTraceDetail,
|
|
6728
6803
|
reviveTraceSpan,
|