@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/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
All notable changes to `@wave/sdk` are documented in this file.
|
|
3
|
+
All notable changes to `@wave-av/sdk` are documented in this file.
|
|
4
4
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
package/README.md
CHANGED
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
# WAVE SDK for TypeScript
|
|
1
|
+
# @wave-av/sdk — WAVE SDK for TypeScript
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/@wave-av/sdk)
|
|
4
|
+
[](https://www.npmjs.com/package/@wave-av/sdk)
|
|
5
|
+
[](https://github.com/wave-av/sdk/blob/main/LICENSE)
|
|
6
|
+
|
|
7
|
+
Official TypeScript SDK for the WAVE API. 34 API modules covering streaming, production, analytics, and more.
|
|
4
8
|
|
|
5
9
|
## Installation
|
|
6
10
|
|
|
7
11
|
```bash
|
|
8
|
-
pnpm add @wave/sdk
|
|
12
|
+
pnpm add @wave-av/sdk
|
|
9
13
|
# or
|
|
10
|
-
npm install @wave/sdk
|
|
14
|
+
npm install @wave-av/sdk
|
|
11
15
|
```
|
|
12
16
|
|
|
13
|
-
## Quick
|
|
17
|
+
## Quick start
|
|
14
18
|
|
|
15
19
|
```typescript
|
|
16
|
-
import { Wave } from "@wave/sdk";
|
|
20
|
+
import { Wave } from "@wave-av/sdk";
|
|
17
21
|
|
|
18
22
|
const wave = new Wave({
|
|
19
23
|
apiKey: process.env.WAVE_API_KEY!,
|
|
@@ -98,7 +102,7 @@ console.log(`Peak concurrent: ${viewers.peak_concurrent}`);
|
|
|
98
102
|
| `wave.slides` | `SlidesAPI` | Presentation-to-video conversion |
|
|
99
103
|
| `wave.usb` | `UsbAPI` | USB device relay and management |
|
|
100
104
|
|
|
101
|
-
## Product
|
|
105
|
+
## Product examples
|
|
102
106
|
|
|
103
107
|
- [Streams (Pipeline)](#streams-pipeline)
|
|
104
108
|
- [Clips](#clips)
|
|
@@ -119,7 +123,7 @@ console.log(`Peak concurrent: ${viewers.peak_concurrent}`);
|
|
|
119
123
|
### Streams (Pipeline)
|
|
120
124
|
|
|
121
125
|
```typescript
|
|
122
|
-
import { Wave } from "@wave/sdk";
|
|
126
|
+
import { Wave } from "@wave-av/sdk";
|
|
123
127
|
|
|
124
128
|
const wave = new Wave({ apiKey: process.env.WAVE_API_KEY! });
|
|
125
129
|
|
|
@@ -137,7 +141,7 @@ await wave.pipeline.stop(stream.id);
|
|
|
137
141
|
### Clips
|
|
138
142
|
|
|
139
143
|
```typescript
|
|
140
|
-
import { Wave } from "@wave/sdk";
|
|
144
|
+
import { Wave } from "@wave-av/sdk";
|
|
141
145
|
|
|
142
146
|
const wave = new Wave({ apiKey: process.env.WAVE_API_KEY! });
|
|
143
147
|
|
|
@@ -152,7 +156,7 @@ console.log(`Clip URL: ${ready.playback_url}`);
|
|
|
152
156
|
### Captions
|
|
153
157
|
|
|
154
158
|
```typescript
|
|
155
|
-
import { Wave } from "@wave/sdk";
|
|
159
|
+
import { Wave } from "@wave-av/sdk";
|
|
156
160
|
|
|
157
161
|
const wave = new Wave({ apiKey: process.env.WAVE_API_KEY! });
|
|
158
162
|
|
|
@@ -169,7 +173,7 @@ await wave.captions.translate(ready.id, { target_language: "es" });
|
|
|
169
173
|
### Chapters
|
|
170
174
|
|
|
171
175
|
```typescript
|
|
172
|
-
import { Wave } from "@wave/sdk";
|
|
176
|
+
import { Wave } from "@wave-av/sdk";
|
|
173
177
|
|
|
174
178
|
const wave = new Wave({ apiKey: process.env.WAVE_API_KEY! });
|
|
175
179
|
|
|
@@ -186,7 +190,7 @@ console.log(`Found ${ready.chapter_count} chapters`);
|
|
|
186
190
|
### Voice
|
|
187
191
|
|
|
188
192
|
```typescript
|
|
189
|
-
import { Wave } from "@wave/sdk";
|
|
193
|
+
import { Wave } from "@wave-av/sdk";
|
|
190
194
|
|
|
191
195
|
const wave = new Wave({ apiKey: process.env.WAVE_API_KEY! });
|
|
192
196
|
|
|
@@ -203,7 +207,7 @@ console.log(`Audio: ${audio.audio_url}`);
|
|
|
203
207
|
### Transcription
|
|
204
208
|
|
|
205
209
|
```typescript
|
|
206
|
-
import { Wave } from "@wave/sdk";
|
|
210
|
+
import { Wave } from "@wave-av/sdk";
|
|
207
211
|
|
|
208
212
|
const wave = new Wave({ apiKey: process.env.WAVE_API_KEY! });
|
|
209
213
|
|
|
@@ -221,7 +225,7 @@ console.log(text);
|
|
|
221
225
|
### Editor
|
|
222
226
|
|
|
223
227
|
```typescript
|
|
224
|
-
import { Wave } from "@wave/sdk";
|
|
228
|
+
import { Wave } from "@wave-av/sdk";
|
|
225
229
|
|
|
226
230
|
const wave = new Wave({ apiKey: process.env.WAVE_API_KEY! });
|
|
227
231
|
|
|
@@ -246,7 +250,7 @@ console.log(`Output: ${rendered.output_url}`);
|
|
|
246
250
|
### Phone
|
|
247
251
|
|
|
248
252
|
```typescript
|
|
249
|
-
import { Wave } from "@wave/sdk";
|
|
253
|
+
import { Wave } from "@wave-av/sdk";
|
|
250
254
|
|
|
251
255
|
const wave = new Wave({ apiKey: process.env.WAVE_API_KEY! });
|
|
252
256
|
|
|
@@ -261,7 +265,7 @@ console.log(`Call ${call.id} status: ${call.status}`);
|
|
|
261
265
|
### Podcast
|
|
262
266
|
|
|
263
267
|
```typescript
|
|
264
|
-
import { Wave } from "@wave/sdk";
|
|
268
|
+
import { Wave } from "@wave-av/sdk";
|
|
265
269
|
|
|
266
270
|
const wave = new Wave({ apiKey: process.env.WAVE_API_KEY! });
|
|
267
271
|
|
|
@@ -281,7 +285,7 @@ await wave.podcast.publishEpisode(episode.id);
|
|
|
281
285
|
### Collab
|
|
282
286
|
|
|
283
287
|
```typescript
|
|
284
|
-
import { Wave } from "@wave/sdk";
|
|
288
|
+
import { Wave } from "@wave-av/sdk";
|
|
285
289
|
|
|
286
290
|
const wave = new Wave({ apiKey: process.env.WAVE_API_KEY! });
|
|
287
291
|
|
|
@@ -297,7 +301,7 @@ console.log(`Room: ${room.id} (${room.participant_count} participants)`);
|
|
|
297
301
|
### Analytics (Pulse)
|
|
298
302
|
|
|
299
303
|
```typescript
|
|
300
|
-
import { Wave } from "@wave/sdk";
|
|
304
|
+
import { Wave } from "@wave-av/sdk";
|
|
301
305
|
|
|
302
306
|
const wave = new Wave({ apiKey: process.env.WAVE_API_KEY! });
|
|
303
307
|
|
|
@@ -312,7 +316,7 @@ console.log(`Quality score: ${stream.quality_score}`);
|
|
|
312
316
|
### VOD (Vault)
|
|
313
317
|
|
|
314
318
|
```typescript
|
|
315
|
-
import { Wave } from "@wave/sdk";
|
|
319
|
+
import { Wave } from "@wave-av/sdk";
|
|
316
320
|
|
|
317
321
|
const wave = new Wave({ apiKey: process.env.WAVE_API_KEY! });
|
|
318
322
|
|
|
@@ -330,7 +334,7 @@ console.log(`Storage: ${usage.usage_percent}% used`);
|
|
|
330
334
|
### Studio AI
|
|
331
335
|
|
|
332
336
|
```typescript
|
|
333
|
-
import { Wave } from "@wave/sdk";
|
|
337
|
+
import { Wave } from "@wave-av/sdk";
|
|
334
338
|
|
|
335
339
|
const wave = new Wave({ apiKey: process.env.WAVE_API_KEY! });
|
|
336
340
|
|
|
@@ -361,17 +365,17 @@ const wave = new Wave({
|
|
|
361
365
|
## Individual API Imports
|
|
362
366
|
|
|
363
367
|
```typescript
|
|
364
|
-
import { WaveClient, PipelineAPI, PrismAPI } from "@wave/sdk";
|
|
368
|
+
import { WaveClient, PipelineAPI, PrismAPI } from "@wave-av/sdk";
|
|
365
369
|
|
|
366
370
|
const client = new WaveClient({ apiKey: "key" });
|
|
367
371
|
const pipeline = new PipelineAPI(client);
|
|
368
372
|
const prism = new PrismAPI(client);
|
|
369
373
|
```
|
|
370
374
|
|
|
371
|
-
## Error
|
|
375
|
+
## Error handling
|
|
372
376
|
|
|
373
377
|
```typescript
|
|
374
|
-
import { WaveError, RateLimitError } from "@wave/sdk";
|
|
378
|
+
import { WaveError, RateLimitError } from "@wave-av/sdk";
|
|
375
379
|
|
|
376
380
|
try {
|
|
377
381
|
await wave.pipeline.get("invalid-id");
|
package/dist/audience.js
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
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/audience.ts
|
|
21
|
+
var audience_exports = {};
|
|
22
|
+
__export(audience_exports, {
|
|
23
|
+
AudienceAPI: () => AudienceAPI,
|
|
24
|
+
createAudienceAPI: () => createAudienceAPI
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(audience_exports);
|
|
27
|
+
var AudienceAPI = class {
|
|
28
|
+
client;
|
|
29
|
+
basePath = "/v1/audience";
|
|
30
|
+
constructor(client) {
|
|
31
|
+
this.client = client;
|
|
32
|
+
}
|
|
33
|
+
async createPoll(request) {
|
|
34
|
+
return this.client.post(`${this.basePath}/polls`, request);
|
|
35
|
+
}
|
|
36
|
+
async getPoll(pollId) {
|
|
37
|
+
return this.client.get(`${this.basePath}/polls/${pollId}`);
|
|
38
|
+
}
|
|
39
|
+
async closePoll(pollId) {
|
|
40
|
+
return this.client.post(`${this.basePath}/polls/${pollId}/close`);
|
|
41
|
+
}
|
|
42
|
+
async getPollResults(pollId) {
|
|
43
|
+
return this.client.get(`${this.basePath}/polls/${pollId}/results`);
|
|
44
|
+
}
|
|
45
|
+
async vote(pollId, optionIds) {
|
|
46
|
+
await this.client.post(`${this.basePath}/polls/${pollId}/vote`, { option_ids: optionIds });
|
|
47
|
+
}
|
|
48
|
+
async createQA(request) {
|
|
49
|
+
return this.client.post(`${this.basePath}/qa`, request);
|
|
50
|
+
}
|
|
51
|
+
async getQA(sessionId) {
|
|
52
|
+
return this.client.get(`${this.basePath}/qa/${sessionId}`);
|
|
53
|
+
}
|
|
54
|
+
async closeQA(sessionId) {
|
|
55
|
+
return this.client.post(`${this.basePath}/qa/${sessionId}/close`);
|
|
56
|
+
}
|
|
57
|
+
async submitQuestion(sessionId, text) {
|
|
58
|
+
return this.client.post(`${this.basePath}/qa/${sessionId}/questions`, { text });
|
|
59
|
+
}
|
|
60
|
+
async answerQuestion(sessionId, questionId, answer) {
|
|
61
|
+
return this.client.post(
|
|
62
|
+
`${this.basePath}/qa/${sessionId}/questions/${questionId}/answer`,
|
|
63
|
+
{ answer }
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
async upvoteQuestion(sessionId, questionId) {
|
|
67
|
+
return this.client.post(
|
|
68
|
+
`${this.basePath}/qa/${sessionId}/questions/${questionId}/upvote`
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
async pinQuestion(sessionId, questionId) {
|
|
72
|
+
return this.client.post(
|
|
73
|
+
`${this.basePath}/qa/${sessionId}/questions/${questionId}/pin`
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
async sendReaction(streamId, type) {
|
|
77
|
+
await this.client.post(`${this.basePath}/reactions`, { stream_id: streamId, type });
|
|
78
|
+
}
|
|
79
|
+
async getReactionMetrics(streamId) {
|
|
80
|
+
return this.client.get(`${this.basePath}/reactions/${streamId}`);
|
|
81
|
+
}
|
|
82
|
+
async getEngagementMetrics(streamId) {
|
|
83
|
+
return this.client.get(`${this.basePath}/engagement/${streamId}`);
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
function createAudienceAPI(client) {
|
|
87
|
+
return new AudienceAPI(client);
|
|
88
|
+
}
|
|
89
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
90
|
+
0 && (module.exports = {
|
|
91
|
+
AudienceAPI,
|
|
92
|
+
createAudienceAPI
|
|
93
|
+
});
|
|
@@ -0,0 +1,95 @@
|
|
|
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/camera-control.ts
|
|
21
|
+
var camera_control_exports = {};
|
|
22
|
+
__export(camera_control_exports, {
|
|
23
|
+
CameraControlAPI: () => CameraControlAPI,
|
|
24
|
+
createCameraControlAPI: () => createCameraControlAPI
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(camera_control_exports);
|
|
27
|
+
var CameraControlAPI = class {
|
|
28
|
+
client;
|
|
29
|
+
basePath = "/v1/cameras";
|
|
30
|
+
constructor(client) {
|
|
31
|
+
this.client = client;
|
|
32
|
+
}
|
|
33
|
+
async discover() {
|
|
34
|
+
return this.client.post(`${this.basePath}/discover`, {});
|
|
35
|
+
}
|
|
36
|
+
async list() {
|
|
37
|
+
return this.client.get(this.basePath);
|
|
38
|
+
}
|
|
39
|
+
async get(cameraId) {
|
|
40
|
+
return this.client.get(`${this.basePath}/${cameraId}`);
|
|
41
|
+
}
|
|
42
|
+
async control(cameraId, params) {
|
|
43
|
+
const controlPath = `${this.basePath}/${cameraId}/control`;
|
|
44
|
+
const commands = [];
|
|
45
|
+
if (params.iris !== void 0) {
|
|
46
|
+
commands.push(this.client.post(controlPath, { type: "set_iris", value: params.iris }));
|
|
47
|
+
}
|
|
48
|
+
if (params.focus !== void 0) {
|
|
49
|
+
commands.push(this.client.post(controlPath, { type: "set_focus", value: params.focus }));
|
|
50
|
+
}
|
|
51
|
+
if (params.zoom !== void 0) {
|
|
52
|
+
commands.push(this.client.post(controlPath, { type: "set_zoom", value: params.zoom }));
|
|
53
|
+
}
|
|
54
|
+
if (params.whiteBalance) {
|
|
55
|
+
commands.push(this.client.post(controlPath, {
|
|
56
|
+
type: "set_white_balance",
|
|
57
|
+
temperature: params.whiteBalance.temperature,
|
|
58
|
+
tint: params.whiteBalance.tint
|
|
59
|
+
}));
|
|
60
|
+
}
|
|
61
|
+
if (params.gain !== void 0) {
|
|
62
|
+
commands.push(this.client.post(controlPath, { type: "set_gain", value: params.gain }));
|
|
63
|
+
}
|
|
64
|
+
if (params.panTilt) {
|
|
65
|
+
commands.push(this.client.post(controlPath, { type: "set_pan_tilt", ...params.panTilt }));
|
|
66
|
+
}
|
|
67
|
+
await Promise.all(commands);
|
|
68
|
+
}
|
|
69
|
+
async autofocus(cameraId) {
|
|
70
|
+
await this.client.post(`${this.basePath}/${cameraId}/control`, { type: "autofocus_trigger" });
|
|
71
|
+
}
|
|
72
|
+
async savePreset(cameraId, name, slot) {
|
|
73
|
+
return this.client.post(`${this.basePath}/${cameraId}/presets`, { name, slot });
|
|
74
|
+
}
|
|
75
|
+
async recallPreset(cameraId, presetId) {
|
|
76
|
+
await this.client.post(`${this.basePath}/${cameraId}/control`, { type: "recall_preset", presetId });
|
|
77
|
+
}
|
|
78
|
+
async listPresets(cameraId) {
|
|
79
|
+
return this.client.get(`${this.basePath}/${cameraId}/presets`);
|
|
80
|
+
}
|
|
81
|
+
async startRecording(cameraId) {
|
|
82
|
+
await this.client.post(`${this.basePath}/${cameraId}/control`, { type: "start_recording" });
|
|
83
|
+
}
|
|
84
|
+
async stopRecording(cameraId) {
|
|
85
|
+
await this.client.post(`${this.basePath}/${cameraId}/control`, { type: "stop_recording" });
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
function createCameraControlAPI(client) {
|
|
89
|
+
return new CameraControlAPI(client);
|
|
90
|
+
}
|
|
91
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
92
|
+
0 && (module.exports = {
|
|
93
|
+
CameraControlAPI,
|
|
94
|
+
createCameraControlAPI
|
|
95
|
+
});
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import "./chunk-Y6FXYEAI.mjs";
|
|
2
|
+
|
|
3
|
+
// src/camera-control.ts
|
|
4
|
+
var CameraControlAPI = class {
|
|
5
|
+
client;
|
|
6
|
+
basePath = "/v1/cameras";
|
|
7
|
+
constructor(client) {
|
|
8
|
+
this.client = client;
|
|
9
|
+
}
|
|
10
|
+
async discover() {
|
|
11
|
+
return this.client.post(`${this.basePath}/discover`, {});
|
|
12
|
+
}
|
|
13
|
+
async list() {
|
|
14
|
+
return this.client.get(this.basePath);
|
|
15
|
+
}
|
|
16
|
+
async get(cameraId) {
|
|
17
|
+
return this.client.get(`${this.basePath}/${cameraId}`);
|
|
18
|
+
}
|
|
19
|
+
async control(cameraId, params) {
|
|
20
|
+
const controlPath = `${this.basePath}/${cameraId}/control`;
|
|
21
|
+
const commands = [];
|
|
22
|
+
if (params.iris !== void 0) {
|
|
23
|
+
commands.push(this.client.post(controlPath, { type: "set_iris", value: params.iris }));
|
|
24
|
+
}
|
|
25
|
+
if (params.focus !== void 0) {
|
|
26
|
+
commands.push(this.client.post(controlPath, { type: "set_focus", value: params.focus }));
|
|
27
|
+
}
|
|
28
|
+
if (params.zoom !== void 0) {
|
|
29
|
+
commands.push(this.client.post(controlPath, { type: "set_zoom", value: params.zoom }));
|
|
30
|
+
}
|
|
31
|
+
if (params.whiteBalance) {
|
|
32
|
+
commands.push(this.client.post(controlPath, {
|
|
33
|
+
type: "set_white_balance",
|
|
34
|
+
temperature: params.whiteBalance.temperature,
|
|
35
|
+
tint: params.whiteBalance.tint
|
|
36
|
+
}));
|
|
37
|
+
}
|
|
38
|
+
if (params.gain !== void 0) {
|
|
39
|
+
commands.push(this.client.post(controlPath, { type: "set_gain", value: params.gain }));
|
|
40
|
+
}
|
|
41
|
+
if (params.panTilt) {
|
|
42
|
+
commands.push(this.client.post(controlPath, { type: "set_pan_tilt", ...params.panTilt }));
|
|
43
|
+
}
|
|
44
|
+
await Promise.all(commands);
|
|
45
|
+
}
|
|
46
|
+
async autofocus(cameraId) {
|
|
47
|
+
await this.client.post(`${this.basePath}/${cameraId}/control`, { type: "autofocus_trigger" });
|
|
48
|
+
}
|
|
49
|
+
async savePreset(cameraId, name, slot) {
|
|
50
|
+
return this.client.post(`${this.basePath}/${cameraId}/presets`, { name, slot });
|
|
51
|
+
}
|
|
52
|
+
async recallPreset(cameraId, presetId) {
|
|
53
|
+
await this.client.post(`${this.basePath}/${cameraId}/control`, { type: "recall_preset", presetId });
|
|
54
|
+
}
|
|
55
|
+
async listPresets(cameraId) {
|
|
56
|
+
return this.client.get(`${this.basePath}/${cameraId}/presets`);
|
|
57
|
+
}
|
|
58
|
+
async startRecording(cameraId) {
|
|
59
|
+
await this.client.post(`${this.basePath}/${cameraId}/control`, { type: "start_recording" });
|
|
60
|
+
}
|
|
61
|
+
async stopRecording(cameraId) {
|
|
62
|
+
await this.client.post(`${this.basePath}/${cameraId}/control`, { type: "stop_recording" });
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
function createCameraControlAPI(client) {
|
|
66
|
+
return new CameraControlAPI(client);
|
|
67
|
+
}
|
|
68
|
+
export {
|
|
69
|
+
CameraControlAPI,
|
|
70
|
+
createCameraControlAPI
|
|
71
|
+
};
|
|
@@ -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/captions-types.ts
|
|
17
|
+
var captions_types_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(captions_types_exports);
|
|
File without changes
|