@wave-av/sdk 2.0.1 → 2.0.2
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/CHANGELOG.md +1 -1
- package/README.md +27 -23
- package/dist/audience.js +93 -0
- package/dist/audience.mjs +9 -0
- package/dist/camera-control.js +95 -0
- package/dist/camera-control.mjs +71 -0
- package/dist/captions-types.js +18 -0
- package/dist/captions-types.mjs +0 -0
- package/dist/captions.js +266 -0
- package/dist/captions.mjs +9 -0
- package/dist/chapters-types.js +18 -0
- package/dist/chapters-types.mjs +0 -0
- package/dist/chapters.js +280 -0
- package/dist/chapters.mjs +9 -0
- package/dist/chunk-362MRITF.mjs +46 -0
- package/dist/chunk-3ZLK4J3V.mjs +69 -0
- package/dist/chunk-4DG4OBRD.mjs +52 -0
- package/dist/chunk-4G7FMCMJ.mjs +68 -0
- package/dist/chunk-4KD5F6E3.mjs +0 -0
- package/dist/chunk-7M6XVUUK.mjs +241 -0
- package/dist/chunk-A344OOT7.mjs +243 -0
- package/dist/chunk-AI64YR5W.mjs +173 -0
- package/dist/chunk-C2GQ756E.mjs +57 -0
- package/dist/chunk-CO2VB72Z.mjs +255 -0
- package/dist/chunk-DWXWAILB.mjs +44 -0
- package/dist/chunk-FLEFYLDM.mjs +71 -0
- package/dist/chunk-H2YYTNUH.mjs +266 -0
- package/dist/chunk-IGDBED5P.mjs +246 -0
- package/dist/chunk-IL2SGWBC.mjs +0 -0
- package/dist/chunk-IVFZ5X4W.mjs +68 -0
- package/dist/chunk-JC32PG3T.mjs +114 -0
- package/dist/chunk-K5X42NLD.mjs +54 -0
- package/dist/chunk-KCEPNS2U.mjs +276 -0
- package/dist/chunk-LVOVF6XC.mjs +54 -0
- package/dist/chunk-M4Z33V3N.mjs +247 -0
- package/dist/chunk-M6FKIX75.mjs +0 -0
- package/dist/chunk-M744Z327.mjs +244 -0
- package/dist/chunk-MRFDPPFK.mjs +61 -0
- package/dist/chunk-MXU3Q23F.mjs +68 -0
- package/dist/chunk-NCVUZ746.mjs +60 -0
- package/dist/chunk-NLQVD2LF.mjs +210 -0
- package/dist/chunk-O6DOGYP5.mjs +238 -0
- package/dist/chunk-S25NY5GE.mjs +124 -0
- package/dist/chunk-TFHXBICQ.mjs +305 -0
- package/dist/chunk-TXWOA2VR.mjs +57 -0
- package/dist/chunk-UCDSNV22.mjs +63 -0
- package/dist/chunk-V5DWA5P4.mjs +279 -0
- package/dist/chunk-VLQQDYGP.mjs +173 -0
- package/dist/chunk-VPKZUXZW.mjs +53 -0
- package/dist/chunk-WS3PEFYJ.mjs +60 -0
- package/dist/chunk-XGAYMWRH.mjs +74 -0
- package/dist/chunk-XMM5J57W.mjs +0 -0
- package/dist/chunk-XWABBOSX.mjs +278 -0
- package/dist/chunk-Y6FXYEAI.mjs +10 -0
- package/dist/chunk-YBLXHI3M.mjs +257 -0
- package/dist/chunk-YEK26SSO.mjs +100 -0
- package/dist/chunk-YLCQKCZL.mjs +0 -0
- package/dist/chunk-YRKO4XI7.mjs +0 -0
- package/dist/chunk-ZJO7AP4Q.mjs +0 -0
- package/dist/client-types.js +18 -0
- package/dist/client-types.mjs +0 -0
- package/dist/client.js +311 -0
- package/dist/client.mjs +14 -0
- package/dist/clips-types.js +18 -0
- package/dist/clips-types.mjs +0 -0
- package/dist/clips.js +198 -0
- package/dist/clips.mjs +9 -0
- package/dist/cloud-switcher.js +80 -0
- package/dist/cloud-switcher.mjs +56 -0
- package/dist/collab-types.js +18 -0
- package/dist/collab-types.mjs +1 -0
- package/dist/collab.js +304 -0
- package/dist/collab.mjs +10 -0
- package/dist/connect.js +85 -0
- package/dist/connect.mjs +9 -0
- package/dist/creator.js +79 -0
- package/dist/creator.mjs +9 -0
- package/dist/desktop.js +77 -0
- package/dist/desktop.mjs +9 -0
- package/dist/distribution.js +88 -0
- package/dist/distribution.mjs +9 -0
- package/dist/drm.js +85 -0
- package/dist/drm.mjs +9 -0
- package/dist/edge.js +93 -0
- package/dist/edge.mjs +9 -0
- package/dist/editor-types.js +18 -0
- package/dist/editor-types.mjs +1 -0
- package/dist/editor.js +330 -0
- package/dist/editor.mjs +10 -0
- package/dist/fleet.js +149 -0
- package/dist/fleet.mjs +9 -0
- package/dist/ghost.js +139 -0
- package/dist/ghost.mjs +9 -0
- package/dist/index.js +0 -250
- package/dist/index.mjs +161 -5445
- package/dist/marketplace.js +82 -0
- package/dist/marketplace.mjs +9 -0
- package/dist/mesh.js +198 -0
- package/dist/mesh.mjs +9 -0
- package/dist/notifications.js +79 -0
- package/dist/notifications.mjs +9 -0
- package/dist/phone-types.js +18 -0
- package/dist/phone-types.mjs +0 -0
- package/dist/phone.js +269 -0
- package/dist/phone.mjs +9 -0
- package/dist/pipeline-types.js +18 -0
- package/dist/pipeline-types.mjs +0 -0
- package/dist/pipeline.js +263 -0
- package/dist/pipeline.mjs +9 -0
- package/dist/podcast.js +94 -0
- package/dist/podcast.mjs +9 -0
- package/dist/prism.js +82 -0
- package/dist/prism.mjs +9 -0
- package/dist/prompter.js +99 -0
- package/dist/prompter.mjs +76 -0
- package/dist/pulse.js +99 -0
- package/dist/pulse.mjs +9 -0
- package/dist/qr.js +71 -0
- package/dist/qr.mjs +9 -0
- package/dist/replay.js +62 -0
- package/dist/replay.mjs +38 -0
- package/dist/scene-types.js +18 -0
- package/dist/scene-types.mjs +1 -0
- package/dist/scene.js +271 -0
- package/dist/scene.mjs +10 -0
- package/dist/search-types.js +18 -0
- package/dist/search-types.mjs +1 -0
- package/dist/search.js +268 -0
- package/dist/search.mjs +10 -0
- package/dist/sentiment-types.js +18 -0
- package/dist/sentiment-types.mjs +0 -0
- package/dist/sentiment.js +235 -0
- package/dist/sentiment.mjs +9 -0
- package/dist/signage.js +93 -0
- package/dist/signage.mjs +9 -0
- package/dist/slides.js +78 -0
- package/dist/slides.mjs +9 -0
- package/dist/studio-ai-types.js +18 -0
- package/dist/studio-ai-types.mjs +1 -0
- package/dist/studio-ai.js +301 -0
- package/dist/studio-ai.mjs +10 -0
- package/dist/studio-types.js +18 -0
- package/dist/studio-types.mjs +1 -0
- package/dist/studio.js +303 -0
- package/dist/studio.mjs +10 -0
- package/dist/telemetry.js +124 -0
- package/dist/telemetry.mjs +15 -0
- package/dist/transcribe-types.js +18 -0
- package/dist/transcribe-types.mjs +1 -0
- package/dist/transcribe.js +282 -0
- package/dist/transcribe.mjs +10 -0
- package/dist/usb.js +69 -0
- package/dist/usb.mjs +9 -0
- package/dist/vault.js +96 -0
- package/dist/vault.mjs +9 -0
- package/dist/voice-types.js +18 -0
- package/dist/voice-types.mjs +0 -0
- package/dist/voice.js +272 -0
- package/dist/voice.mjs +9 -0
- package/dist/zoom.js +86 -0
- package/dist/zoom.mjs +9 -0
- package/package.json +3 -3
- package/dist/audience.d.ts +0 -104
- package/dist/audience.d.ts.map +0 -1
- package/dist/camera-control.d.ts +0 -54
- package/dist/camera-control.d.ts.map +0 -1
- package/dist/captions.d.ts +0 -362
- package/dist/captions.d.ts.map +0 -1
- package/dist/chapters.d.ts +0 -315
- package/dist/chapters.d.ts.map +0 -1
- package/dist/client.d.ts +0 -191
- package/dist/client.d.ts.map +0 -1
- package/dist/clips.d.ts +0 -258
- package/dist/clips.d.ts.map +0 -1
- package/dist/cloud-switcher.d.ts +0 -65
- package/dist/cloud-switcher.d.ts.map +0 -1
- package/dist/collab-types.d.ts +0 -204
- package/dist/collab-types.d.ts.map +0 -1
- package/dist/collab.d.ts +0 -226
- package/dist/collab.d.ts.map +0 -1
- package/dist/connect.d.ts +0 -88
- package/dist/connect.d.ts.map +0 -1
- package/dist/creator.d.ts +0 -109
- package/dist/creator.d.ts.map +0 -1
- package/dist/desktop.d.ts +0 -95
- package/dist/desktop.d.ts.map +0 -1
- package/dist/distribution.d.ts +0 -92
- package/dist/distribution.d.ts.map +0 -1
- package/dist/drm.d.ts +0 -87
- package/dist/drm.d.ts.map +0 -1
- package/dist/edge.d.ts +0 -112
- package/dist/edge.d.ts.map +0 -1
- package/dist/editor-types.d.ts +0 -236
- package/dist/editor-types.d.ts.map +0 -1
- package/dist/editor.d.ts +0 -206
- package/dist/editor.d.ts.map +0 -1
- package/dist/fleet.d.ts +0 -207
- package/dist/fleet.d.ts.map +0 -1
- package/dist/ghost.d.ts +0 -213
- package/dist/ghost.d.ts.map +0 -1
- package/dist/index.d.ts +0 -144
- package/dist/index.d.ts.map +0 -1
- package/dist/marketplace.d.ts +0 -90
- package/dist/marketplace.d.ts.map +0 -1
- package/dist/mesh.d.ts +0 -237
- package/dist/mesh.d.ts.map +0 -1
- package/dist/notifications.d.ts +0 -82
- package/dist/notifications.d.ts.map +0 -1
- package/dist/phone.d.ts +0 -369
- package/dist/phone.d.ts.map +0 -1
- package/dist/pipeline.d.ts +0 -409
- package/dist/pipeline.d.ts.map +0 -1
- package/dist/podcast.d.ts +0 -113
- package/dist/podcast.d.ts.map +0 -1
- package/dist/prism.d.ts +0 -132
- package/dist/prism.d.ts.map +0 -1
- package/dist/prompter.d.ts +0 -184
- package/dist/prompter.d.ts.map +0 -1
- package/dist/pulse.d.ts +0 -156
- package/dist/pulse.d.ts.map +0 -1
- package/dist/qr.d.ts +0 -82
- package/dist/qr.d.ts.map +0 -1
- package/dist/replay.d.ts +0 -52
- package/dist/replay.d.ts.map +0 -1
- package/dist/scene-types.d.ts +0 -190
- package/dist/scene-types.d.ts.map +0 -1
- package/dist/scene.d.ts +0 -213
- package/dist/scene.d.ts.map +0 -1
- package/dist/search-types.d.ts +0 -210
- package/dist/search-types.d.ts.map +0 -1
- package/dist/search.d.ts +0 -250
- package/dist/search.d.ts.map +0 -1
- package/dist/sentiment.d.ts +0 -378
- package/dist/sentiment.d.ts.map +0 -1
- package/dist/signage.d.ts +0 -101
- package/dist/signage.d.ts.map +0 -1
- package/dist/slides.d.ts +0 -68
- package/dist/slides.d.ts.map +0 -1
- package/dist/studio-ai-types.d.ts +0 -198
- package/dist/studio-ai-types.d.ts.map +0 -1
- package/dist/studio-ai.d.ts +0 -218
- package/dist/studio-ai.d.ts.map +0 -1
- package/dist/studio-types.d.ts +0 -267
- package/dist/studio-types.d.ts.map +0 -1
- package/dist/studio.d.ts +0 -234
- package/dist/studio.d.ts.map +0 -1
- package/dist/telemetry.d.ts +0 -76
- package/dist/telemetry.d.ts.map +0 -1
- package/dist/transcribe-types.d.ts +0 -153
- package/dist/transcribe-types.d.ts.map +0 -1
- package/dist/transcribe.d.ts +0 -218
- package/dist/transcribe.d.ts.map +0 -1
- package/dist/usb.d.ts +0 -64
- package/dist/usb.d.ts.map +0 -1
- package/dist/vault.d.ts +0 -121
- package/dist/vault.d.ts.map +0 -1
- package/dist/voice.d.ts +0 -307
- package/dist/voice.d.ts.map +0 -1
- package/dist/zoom.d.ts +0 -91
- package/dist/zoom.d.ts.map +0 -1
package/dist/pulse.js
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/pulse.ts
|
|
21
|
+
var pulse_exports = {};
|
|
22
|
+
__export(pulse_exports, {
|
|
23
|
+
PulseAPI: () => PulseAPI,
|
|
24
|
+
createPulseAPI: () => createPulseAPI
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(pulse_exports);
|
|
27
|
+
var PulseAPI = class {
|
|
28
|
+
client;
|
|
29
|
+
basePath = "/v1/analytics";
|
|
30
|
+
constructor(client) {
|
|
31
|
+
this.client = client;
|
|
32
|
+
}
|
|
33
|
+
async getStreamAnalytics(streamId, params) {
|
|
34
|
+
return this.client.get(`${this.basePath}/streams/${streamId}`, {
|
|
35
|
+
params
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
async getViewerAnalytics(params) {
|
|
39
|
+
return this.client.get(`${this.basePath}/viewers`, {
|
|
40
|
+
params
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
async getQualityMetrics(params) {
|
|
44
|
+
return this.client.get(`${this.basePath}/quality`, {
|
|
45
|
+
params
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
async getEngagementMetrics(params) {
|
|
49
|
+
return this.client.get(`${this.basePath}/engagement`, {
|
|
50
|
+
params
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
async getRevenueMetrics(params) {
|
|
54
|
+
return this.client.get(`${this.basePath}/revenue`, {
|
|
55
|
+
params
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
async getTimeSeries(metric, params) {
|
|
59
|
+
return this.client.get(`${this.basePath}/timeseries/${metric}`, {
|
|
60
|
+
params
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
async createReport(request) {
|
|
64
|
+
return this.client.post(`${this.basePath}/reports`, request);
|
|
65
|
+
}
|
|
66
|
+
async getReport(reportId) {
|
|
67
|
+
return this.client.get(`${this.basePath}/reports/${reportId}`);
|
|
68
|
+
}
|
|
69
|
+
async listReports(params) {
|
|
70
|
+
return this.client.get(`${this.basePath}/reports`, {
|
|
71
|
+
params
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
async listDashboards(params) {
|
|
75
|
+
return this.client.get(`${this.basePath}/dashboards`, {
|
|
76
|
+
params
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
async createDashboard(request) {
|
|
80
|
+
return this.client.post(`${this.basePath}/dashboards`, request);
|
|
81
|
+
}
|
|
82
|
+
async getDashboard(dashboardId) {
|
|
83
|
+
return this.client.get(`${this.basePath}/dashboards/${dashboardId}`);
|
|
84
|
+
}
|
|
85
|
+
async updateDashboard(dashboardId, updates) {
|
|
86
|
+
return this.client.patch(`${this.basePath}/dashboards/${dashboardId}`, updates);
|
|
87
|
+
}
|
|
88
|
+
async removeDashboard(dashboardId) {
|
|
89
|
+
await this.client.delete(`${this.basePath}/dashboards/${dashboardId}`);
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
function createPulseAPI(client) {
|
|
93
|
+
return new PulseAPI(client);
|
|
94
|
+
}
|
|
95
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
96
|
+
0 && (module.exports = {
|
|
97
|
+
PulseAPI,
|
|
98
|
+
createPulseAPI
|
|
99
|
+
});
|
package/dist/pulse.mjs
ADDED
package/dist/qr.js
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/qr.ts
|
|
21
|
+
var qr_exports = {};
|
|
22
|
+
__export(qr_exports, {
|
|
23
|
+
QrAPI: () => QrAPI,
|
|
24
|
+
createQrAPI: () => createQrAPI
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(qr_exports);
|
|
27
|
+
var QrAPI = class {
|
|
28
|
+
client;
|
|
29
|
+
basePath = "/v1/qr";
|
|
30
|
+
constructor(client) {
|
|
31
|
+
this.client = client;
|
|
32
|
+
}
|
|
33
|
+
async create(request) {
|
|
34
|
+
return this.client.post(this.basePath, request);
|
|
35
|
+
}
|
|
36
|
+
async get(qrId) {
|
|
37
|
+
return this.client.get(`${this.basePath}/${qrId}`);
|
|
38
|
+
}
|
|
39
|
+
async update(qrId, updates) {
|
|
40
|
+
return this.client.patch(`${this.basePath}/${qrId}`, updates);
|
|
41
|
+
}
|
|
42
|
+
async remove(qrId) {
|
|
43
|
+
await this.client.delete(`${this.basePath}/${qrId}`);
|
|
44
|
+
}
|
|
45
|
+
async list(params) {
|
|
46
|
+
return this.client.get(this.basePath, {
|
|
47
|
+
params
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
async getAnalytics(qrId, params) {
|
|
51
|
+
return this.client.get(`${this.basePath}/${qrId}/analytics`, {
|
|
52
|
+
params
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
async createBatch(items) {
|
|
56
|
+
return this.client.post(`${this.basePath}/batch`, { items });
|
|
57
|
+
}
|
|
58
|
+
async getImage(qrId, format, size) {
|
|
59
|
+
return this.client.get(`${this.basePath}/${qrId}/image`, {
|
|
60
|
+
params: { format, size }
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
function createQrAPI(client) {
|
|
65
|
+
return new QrAPI(client);
|
|
66
|
+
}
|
|
67
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
68
|
+
0 && (module.exports = {
|
|
69
|
+
QrAPI,
|
|
70
|
+
createQrAPI
|
|
71
|
+
});
|
package/dist/qr.mjs
ADDED
package/dist/replay.js
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/replay.ts
|
|
21
|
+
var replay_exports = {};
|
|
22
|
+
__export(replay_exports, {
|
|
23
|
+
ReplayAPI: () => ReplayAPI,
|
|
24
|
+
createReplayAPI: () => createReplayAPI
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(replay_exports);
|
|
27
|
+
var ReplayAPI = class {
|
|
28
|
+
client;
|
|
29
|
+
basePath = "/v1/replay";
|
|
30
|
+
constructor(client) {
|
|
31
|
+
this.client = client;
|
|
32
|
+
}
|
|
33
|
+
async createSession(switcherId) {
|
|
34
|
+
return this.client.post(this.basePath, { switcherId });
|
|
35
|
+
}
|
|
36
|
+
async getSession(sessionId) {
|
|
37
|
+
return this.client.get(`${this.basePath}/${sessionId}`);
|
|
38
|
+
}
|
|
39
|
+
async markPOI(sessionId, label) {
|
|
40
|
+
return this.client.post(`${this.basePath}/${sessionId}/poi`, { label });
|
|
41
|
+
}
|
|
42
|
+
async listPOIs(sessionId) {
|
|
43
|
+
return this.client.get(`${this.basePath}/${sessionId}/poi`);
|
|
44
|
+
}
|
|
45
|
+
async exportClip(sessionId, options) {
|
|
46
|
+
return this.client.post(`${this.basePath}/${sessionId}/clips`, options);
|
|
47
|
+
}
|
|
48
|
+
async getClip(sessionId, clipId) {
|
|
49
|
+
return this.client.get(`${this.basePath}/${sessionId}/clips/${clipId}`);
|
|
50
|
+
}
|
|
51
|
+
async listClips(sessionId) {
|
|
52
|
+
return this.client.get(`${this.basePath}/${sessionId}/clips`);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
function createReplayAPI(client) {
|
|
56
|
+
return new ReplayAPI(client);
|
|
57
|
+
}
|
|
58
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
59
|
+
0 && (module.exports = {
|
|
60
|
+
ReplayAPI,
|
|
61
|
+
createReplayAPI
|
|
62
|
+
});
|
package/dist/replay.mjs
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import "./chunk-Y6FXYEAI.mjs";
|
|
2
|
+
|
|
3
|
+
// src/replay.ts
|
|
4
|
+
var ReplayAPI = class {
|
|
5
|
+
client;
|
|
6
|
+
basePath = "/v1/replay";
|
|
7
|
+
constructor(client) {
|
|
8
|
+
this.client = client;
|
|
9
|
+
}
|
|
10
|
+
async createSession(switcherId) {
|
|
11
|
+
return this.client.post(this.basePath, { switcherId });
|
|
12
|
+
}
|
|
13
|
+
async getSession(sessionId) {
|
|
14
|
+
return this.client.get(`${this.basePath}/${sessionId}`);
|
|
15
|
+
}
|
|
16
|
+
async markPOI(sessionId, label) {
|
|
17
|
+
return this.client.post(`${this.basePath}/${sessionId}/poi`, { label });
|
|
18
|
+
}
|
|
19
|
+
async listPOIs(sessionId) {
|
|
20
|
+
return this.client.get(`${this.basePath}/${sessionId}/poi`);
|
|
21
|
+
}
|
|
22
|
+
async exportClip(sessionId, options) {
|
|
23
|
+
return this.client.post(`${this.basePath}/${sessionId}/clips`, options);
|
|
24
|
+
}
|
|
25
|
+
async getClip(sessionId, clipId) {
|
|
26
|
+
return this.client.get(`${this.basePath}/${sessionId}/clips/${clipId}`);
|
|
27
|
+
}
|
|
28
|
+
async listClips(sessionId) {
|
|
29
|
+
return this.client.get(`${this.basePath}/${sessionId}/clips`);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
function createReplayAPI(client) {
|
|
33
|
+
return new ReplayAPI(client);
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
ReplayAPI,
|
|
37
|
+
createReplayAPI
|
|
38
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/scene-types.ts
|
|
17
|
+
var scene_types_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(scene_types_exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./chunk-IL2SGWBC.mjs";
|
package/dist/scene.js
ADDED
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/scene.ts
|
|
21
|
+
var scene_exports = {};
|
|
22
|
+
__export(scene_exports, {
|
|
23
|
+
SceneAPI: () => SceneAPI,
|
|
24
|
+
createSceneAPI: () => createSceneAPI
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(scene_exports);
|
|
27
|
+
var SceneAPI = class {
|
|
28
|
+
client;
|
|
29
|
+
basePath = "/v1/scene";
|
|
30
|
+
constructor(client) {
|
|
31
|
+
this.client = client;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Start scene detection
|
|
35
|
+
*
|
|
36
|
+
* Requires: scene:detect permission
|
|
37
|
+
*/
|
|
38
|
+
async detect(request) {
|
|
39
|
+
return this.client.post(`${this.basePath}/detect`, request);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Get scene detection job
|
|
43
|
+
*
|
|
44
|
+
* Requires: scene:read permission
|
|
45
|
+
*/
|
|
46
|
+
async getDetection(detectionId) {
|
|
47
|
+
return this.client.get(`${this.basePath}/${detectionId}`);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Remove scene detection
|
|
51
|
+
*
|
|
52
|
+
* Requires: scene:remove permission (server-side RBAC enforced)
|
|
53
|
+
*/
|
|
54
|
+
async removeDetection(detectionId) {
|
|
55
|
+
await this.client.delete(
|
|
56
|
+
`${this.basePath}/${detectionId}`,
|
|
57
|
+
{ method: "DELETE" }
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* List scene detections
|
|
62
|
+
*
|
|
63
|
+
* Requires: scene:read permission
|
|
64
|
+
*/
|
|
65
|
+
async listDetections(params) {
|
|
66
|
+
return this.client.get(this.basePath, {
|
|
67
|
+
params
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Get scenes for a detection
|
|
72
|
+
*
|
|
73
|
+
* Requires: scene:read permission
|
|
74
|
+
*/
|
|
75
|
+
async getScenes(detectionId, params) {
|
|
76
|
+
return this.client.get(
|
|
77
|
+
`${this.basePath}/${detectionId}/scenes`,
|
|
78
|
+
{ params }
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Get a specific scene
|
|
83
|
+
*
|
|
84
|
+
* Requires: scene:read permission
|
|
85
|
+
*/
|
|
86
|
+
async getScene(detectionId, sceneId) {
|
|
87
|
+
return this.client.get(
|
|
88
|
+
`${this.basePath}/${detectionId}/scenes/${sceneId}`
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Update scene metadata
|
|
93
|
+
*
|
|
94
|
+
* Requires: scene:update permission
|
|
95
|
+
*/
|
|
96
|
+
async updateScene(detectionId, sceneId, updates) {
|
|
97
|
+
return this.client.patch(
|
|
98
|
+
`${this.basePath}/${detectionId}/scenes/${sceneId}`,
|
|
99
|
+
updates
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Get scene at a specific timestamp
|
|
104
|
+
*
|
|
105
|
+
* Requires: scene:read permission
|
|
106
|
+
*/
|
|
107
|
+
async getSceneAtTime(detectionId, timestamp) {
|
|
108
|
+
try {
|
|
109
|
+
return await this.client.get(
|
|
110
|
+
`${this.basePath}/${detectionId}/scenes/at`,
|
|
111
|
+
{ params: { timestamp } }
|
|
112
|
+
);
|
|
113
|
+
} catch (error) {
|
|
114
|
+
if (error.statusCode === 404) {
|
|
115
|
+
return null;
|
|
116
|
+
}
|
|
117
|
+
throw error;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Get scene boundaries (transitions)
|
|
122
|
+
*
|
|
123
|
+
* Requires: scene:read permission
|
|
124
|
+
*/
|
|
125
|
+
async getBoundaries(detectionId, params) {
|
|
126
|
+
return this.client.get(
|
|
127
|
+
`${this.basePath}/${detectionId}/boundaries`,
|
|
128
|
+
{ params }
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Detect scene boundaries only (without full analysis)
|
|
133
|
+
*
|
|
134
|
+
* Requires: scene:detect permission
|
|
135
|
+
*/
|
|
136
|
+
async detectBoundaries(mediaId, mediaType, options) {
|
|
137
|
+
return this.client.post(`${this.basePath}/boundaries`, {
|
|
138
|
+
media_id: mediaId,
|
|
139
|
+
media_type: mediaType,
|
|
140
|
+
...options
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Get shots for a scene
|
|
145
|
+
*
|
|
146
|
+
* Requires: scene:read permission
|
|
147
|
+
*/
|
|
148
|
+
async getShots(detectionId, sceneId, params) {
|
|
149
|
+
return this.client.get(
|
|
150
|
+
`${this.basePath}/${detectionId}/scenes/${sceneId}/shots`,
|
|
151
|
+
{ params }
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Get all shots for a detection
|
|
156
|
+
*
|
|
157
|
+
* Requires: scene:read permission
|
|
158
|
+
*/
|
|
159
|
+
async getAllShots(detectionId, params) {
|
|
160
|
+
return this.client.get(`${this.basePath}/${detectionId}/shots`, { params });
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Get scene summary/statistics
|
|
164
|
+
*
|
|
165
|
+
* Requires: scene:read permission
|
|
166
|
+
*/
|
|
167
|
+
async getSummary(detectionId) {
|
|
168
|
+
return this.client.get(`${this.basePath}/${detectionId}/summary`);
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Get visual timeline
|
|
172
|
+
*
|
|
173
|
+
* Requires: scene:read permission
|
|
174
|
+
*/
|
|
175
|
+
async getTimeline(detectionId, options) {
|
|
176
|
+
return this.client.get(`${this.basePath}/${detectionId}/timeline`, {
|
|
177
|
+
params: options
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Compare scenes between detections
|
|
182
|
+
*
|
|
183
|
+
* Requires: scene:read permission
|
|
184
|
+
*/
|
|
185
|
+
async compareScenes(sourceDetectionId, targetDetectionId, options) {
|
|
186
|
+
return this.client.post(`${this.basePath}/compare`, {
|
|
187
|
+
source_detection_id: sourceDetectionId,
|
|
188
|
+
target_detection_id: targetDetectionId,
|
|
189
|
+
...options
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Find similar scenes across all content
|
|
194
|
+
*
|
|
195
|
+
* Requires: scene:read permission
|
|
196
|
+
*/
|
|
197
|
+
async findSimilarScenes(detectionId, sceneId, options) {
|
|
198
|
+
return this.client.get(`${this.basePath}/${detectionId}/scenes/${sceneId}/similar`, {
|
|
199
|
+
params: options
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Export scene data
|
|
204
|
+
*
|
|
205
|
+
* Requires: scene:read permission
|
|
206
|
+
*/
|
|
207
|
+
async exportDetection(detectionId, format) {
|
|
208
|
+
return this.client.post(`${this.basePath}/${detectionId}/export`, { format });
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Generate scene thumbnails
|
|
212
|
+
*
|
|
213
|
+
* Requires: scene:update permission
|
|
214
|
+
*/
|
|
215
|
+
async generateThumbnails(detectionId, options) {
|
|
216
|
+
return this.client.post(`${this.basePath}/${detectionId}/thumbnails`, options);
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Wait for scene detection to complete
|
|
220
|
+
*/
|
|
221
|
+
async waitForReady(detectionId, options) {
|
|
222
|
+
const pollInterval = options?.pollInterval || 3e3;
|
|
223
|
+
const timeout = options?.timeout || 18e5;
|
|
224
|
+
const startTime = Date.now();
|
|
225
|
+
while (Date.now() - startTime < timeout) {
|
|
226
|
+
const detection = await this.getDetection(detectionId);
|
|
227
|
+
if (options?.onProgress) {
|
|
228
|
+
options.onProgress(detection);
|
|
229
|
+
}
|
|
230
|
+
if (detection.status === "ready") {
|
|
231
|
+
return detection;
|
|
232
|
+
}
|
|
233
|
+
if (detection.status === "failed") {
|
|
234
|
+
throw new Error(
|
|
235
|
+
`Scene detection failed: ${detection.error || "Unknown error"}`
|
|
236
|
+
);
|
|
237
|
+
}
|
|
238
|
+
await new Promise((resolve) => setTimeout(resolve, pollInterval));
|
|
239
|
+
}
|
|
240
|
+
throw new Error(`Scene detection timed out after ${timeout}ms`);
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Merge scenes
|
|
244
|
+
*
|
|
245
|
+
* Requires: scene:update permission
|
|
246
|
+
*/
|
|
247
|
+
async mergeScenes(detectionId, sceneIds, options) {
|
|
248
|
+
return this.client.post(
|
|
249
|
+
`${this.basePath}/${detectionId}/scenes/merge`,
|
|
250
|
+
{ scene_ids: sceneIds, ...options }
|
|
251
|
+
);
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Split scene at timestamp
|
|
255
|
+
*
|
|
256
|
+
* Requires: scene:update permission
|
|
257
|
+
*/
|
|
258
|
+
async splitScene(detectionId, sceneId, splitTime) {
|
|
259
|
+
return this.client.post(`${this.basePath}/${detectionId}/scenes/${sceneId}/split`, {
|
|
260
|
+
split_time: splitTime
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
};
|
|
264
|
+
function createSceneAPI(client) {
|
|
265
|
+
return new SceneAPI(client);
|
|
266
|
+
}
|
|
267
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
268
|
+
0 && (module.exports = {
|
|
269
|
+
SceneAPI,
|
|
270
|
+
createSceneAPI
|
|
271
|
+
});
|
package/dist/scene.mjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/search-types.ts
|
|
17
|
+
var search_types_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(search_types_exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./chunk-ZJO7AP4Q.mjs";
|