@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
|
@@ -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/collab-types.ts
|
|
17
|
+
var collab_types_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(collab_types_exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./chunk-YLCQKCZL.mjs";
|
package/dist/collab.js
ADDED
|
@@ -0,0 +1,304 @@
|
|
|
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/collab.ts
|
|
21
|
+
var collab_exports = {};
|
|
22
|
+
__export(collab_exports, {
|
|
23
|
+
CollabAPI: () => CollabAPI,
|
|
24
|
+
createCollabAPI: () => createCollabAPI
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(collab_exports);
|
|
27
|
+
var CollabAPI = class {
|
|
28
|
+
client;
|
|
29
|
+
basePath = "/v1/collab";
|
|
30
|
+
constructor(client) {
|
|
31
|
+
this.client = client;
|
|
32
|
+
}
|
|
33
|
+
// Rooms
|
|
34
|
+
/**
|
|
35
|
+
* Create a collaboration room
|
|
36
|
+
*
|
|
37
|
+
* Requires: collab:create permission
|
|
38
|
+
*/
|
|
39
|
+
async createRoom(request) {
|
|
40
|
+
return this.client.post(`${this.basePath}/rooms`, request);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Get a room by ID
|
|
44
|
+
*
|
|
45
|
+
* Requires: collab:read permission
|
|
46
|
+
*/
|
|
47
|
+
async getRoom(roomId) {
|
|
48
|
+
return this.client.get(`${this.basePath}/rooms/${roomId}`);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Update a room
|
|
52
|
+
*
|
|
53
|
+
* Requires: collab:update permission
|
|
54
|
+
*/
|
|
55
|
+
async updateRoom(roomId, request) {
|
|
56
|
+
return this.client.patch(
|
|
57
|
+
`${this.basePath}/rooms/${roomId}`,
|
|
58
|
+
request
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Close a room
|
|
63
|
+
*
|
|
64
|
+
* Requires: collab:manage permission
|
|
65
|
+
*/
|
|
66
|
+
async closeRoom(roomId) {
|
|
67
|
+
return this.client.post(`${this.basePath}/rooms/${roomId}/close`);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Archive a room
|
|
71
|
+
*
|
|
72
|
+
* Requires: collab:manage permission (server-side RBAC enforced)
|
|
73
|
+
*/
|
|
74
|
+
async archiveRoom(roomId) {
|
|
75
|
+
await this.client.delete(
|
|
76
|
+
`${this.basePath}/rooms/${roomId}`,
|
|
77
|
+
{ method: "DELETE" }
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* List rooms
|
|
82
|
+
*
|
|
83
|
+
* Requires: collab:read permission
|
|
84
|
+
*/
|
|
85
|
+
async listRooms(params) {
|
|
86
|
+
return this.client.get(
|
|
87
|
+
`${this.basePath}/rooms`,
|
|
88
|
+
{ params }
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Get join token for real-time connection
|
|
93
|
+
*
|
|
94
|
+
* Requires: collab:join permission
|
|
95
|
+
*/
|
|
96
|
+
async getJoinToken(roomId, options) {
|
|
97
|
+
return this.client.post(`${this.basePath}/rooms/${roomId}/token`, options);
|
|
98
|
+
}
|
|
99
|
+
// Participants
|
|
100
|
+
/**
|
|
101
|
+
* List participants in a room
|
|
102
|
+
*
|
|
103
|
+
* Requires: collab:read permission
|
|
104
|
+
*/
|
|
105
|
+
async listParticipants(roomId, params) {
|
|
106
|
+
return this.client.get(
|
|
107
|
+
`${this.basePath}/rooms/${roomId}/participants`,
|
|
108
|
+
{ params }
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Get a participant
|
|
113
|
+
*
|
|
114
|
+
* Requires: collab:read permission
|
|
115
|
+
*/
|
|
116
|
+
async getParticipant(roomId, participantId) {
|
|
117
|
+
return this.client.get(
|
|
118
|
+
`${this.basePath}/rooms/${roomId}/participants/${participantId}`
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Update a participant's role
|
|
123
|
+
*
|
|
124
|
+
* Requires: collab:manage permission
|
|
125
|
+
*/
|
|
126
|
+
async updateParticipant(roomId, participantId, updates) {
|
|
127
|
+
return this.client.patch(
|
|
128
|
+
`${this.basePath}/rooms/${roomId}/participants/${participantId}`,
|
|
129
|
+
updates
|
|
130
|
+
);
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Remove a participant from a room
|
|
134
|
+
*
|
|
135
|
+
* Requires: collab:manage permission (server-side RBAC enforced)
|
|
136
|
+
*/
|
|
137
|
+
async removeParticipant(roomId, participantId) {
|
|
138
|
+
await this.client.delete(
|
|
139
|
+
`${this.basePath}/rooms/${roomId}/participants/${participantId}`,
|
|
140
|
+
{ method: "DELETE" }
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Invite users to a room
|
|
145
|
+
*
|
|
146
|
+
* Requires: collab:invite permission
|
|
147
|
+
*/
|
|
148
|
+
async invite(roomId, invites) {
|
|
149
|
+
return this.client.post(`${this.basePath}/rooms/${roomId}/invite`, { invites });
|
|
150
|
+
}
|
|
151
|
+
// Comments
|
|
152
|
+
/**
|
|
153
|
+
* Add a comment
|
|
154
|
+
*
|
|
155
|
+
* Requires: collab:comment permission
|
|
156
|
+
*/
|
|
157
|
+
async addComment(roomId, comment) {
|
|
158
|
+
return this.client.post(
|
|
159
|
+
`${this.basePath}/rooms/${roomId}/comments`,
|
|
160
|
+
comment
|
|
161
|
+
);
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* List comments
|
|
165
|
+
*
|
|
166
|
+
* Requires: collab:read permission
|
|
167
|
+
*/
|
|
168
|
+
async listComments(roomId, params) {
|
|
169
|
+
return this.client.get(
|
|
170
|
+
`${this.basePath}/rooms/${roomId}/comments`,
|
|
171
|
+
{ params }
|
|
172
|
+
);
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Update a comment
|
|
176
|
+
*
|
|
177
|
+
* Requires: collab:comment permission (own comments) or collab:manage
|
|
178
|
+
*/
|
|
179
|
+
async updateComment(roomId, commentId, updates) {
|
|
180
|
+
return this.client.patch(
|
|
181
|
+
`${this.basePath}/rooms/${roomId}/comments/${commentId}`,
|
|
182
|
+
updates
|
|
183
|
+
);
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Remove a comment
|
|
187
|
+
*
|
|
188
|
+
* Requires: collab:comment permission (own) or collab:manage (server-side RBAC enforced)
|
|
189
|
+
*/
|
|
190
|
+
async removeComment(roomId, commentId) {
|
|
191
|
+
await this.client.delete(
|
|
192
|
+
`${this.basePath}/rooms/${roomId}/comments/${commentId}`,
|
|
193
|
+
{ method: "DELETE" }
|
|
194
|
+
);
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Add a reaction to a comment
|
|
198
|
+
*
|
|
199
|
+
* Requires: collab:comment permission
|
|
200
|
+
*/
|
|
201
|
+
async addReaction(roomId, commentId, emoji) {
|
|
202
|
+
return this.client.post(
|
|
203
|
+
`${this.basePath}/rooms/${roomId}/comments/${commentId}/reactions`,
|
|
204
|
+
{ emoji }
|
|
205
|
+
);
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Remove a reaction from a comment
|
|
209
|
+
*
|
|
210
|
+
* Requires: collab:comment permission (server-side RBAC enforced)
|
|
211
|
+
*/
|
|
212
|
+
async removeReaction(roomId, commentId, emoji) {
|
|
213
|
+
await this.client.delete(
|
|
214
|
+
`${this.basePath}/rooms/${roomId}/comments/${commentId}/reactions`,
|
|
215
|
+
{ method: "DELETE", params: { emoji } }
|
|
216
|
+
);
|
|
217
|
+
}
|
|
218
|
+
// Annotations
|
|
219
|
+
/**
|
|
220
|
+
* Add an annotation
|
|
221
|
+
*
|
|
222
|
+
* Requires: collab:annotate permission
|
|
223
|
+
*/
|
|
224
|
+
async addAnnotation(roomId, annotation) {
|
|
225
|
+
return this.client.post(
|
|
226
|
+
`${this.basePath}/rooms/${roomId}/annotations`,
|
|
227
|
+
annotation
|
|
228
|
+
);
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* List annotations
|
|
232
|
+
*
|
|
233
|
+
* Requires: collab:read permission
|
|
234
|
+
*/
|
|
235
|
+
async listAnnotations(roomId, params) {
|
|
236
|
+
return this.client.get(
|
|
237
|
+
`${this.basePath}/rooms/${roomId}/annotations`,
|
|
238
|
+
{ params }
|
|
239
|
+
);
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Update an annotation
|
|
243
|
+
*
|
|
244
|
+
* Requires: collab:annotate permission (own) or collab:manage
|
|
245
|
+
*/
|
|
246
|
+
async updateAnnotation(roomId, annotationId, updates) {
|
|
247
|
+
return this.client.patch(
|
|
248
|
+
`${this.basePath}/rooms/${roomId}/annotations/${annotationId}`,
|
|
249
|
+
updates
|
|
250
|
+
);
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Remove an annotation
|
|
254
|
+
*
|
|
255
|
+
* Requires: collab:annotate permission (own) or collab:manage (server-side RBAC enforced)
|
|
256
|
+
*/
|
|
257
|
+
async removeAnnotation(roomId, annotationId) {
|
|
258
|
+
await this.client.delete(
|
|
259
|
+
`${this.basePath}/rooms/${roomId}/annotations/${annotationId}`,
|
|
260
|
+
{ method: "DELETE" }
|
|
261
|
+
);
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Clear all annotations
|
|
265
|
+
*
|
|
266
|
+
* Requires: collab:manage permission
|
|
267
|
+
*/
|
|
268
|
+
async clearAnnotations(roomId) {
|
|
269
|
+
return this.client.post(`${this.basePath}/rooms/${roomId}/annotations/clear`);
|
|
270
|
+
}
|
|
271
|
+
// Recording
|
|
272
|
+
/**
|
|
273
|
+
* Start recording the collaboration session
|
|
274
|
+
*
|
|
275
|
+
* Requires: collab:record permission
|
|
276
|
+
*/
|
|
277
|
+
async startRecording(roomId) {
|
|
278
|
+
return this.client.post(`${this.basePath}/rooms/${roomId}/recording/start`);
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Stop recording
|
|
282
|
+
*
|
|
283
|
+
* Requires: collab:record permission
|
|
284
|
+
*/
|
|
285
|
+
async stopRecording(roomId) {
|
|
286
|
+
return this.client.post(`${this.basePath}/rooms/${roomId}/recording/stop`);
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Get recording status
|
|
290
|
+
*
|
|
291
|
+
* Requires: collab:read permission
|
|
292
|
+
*/
|
|
293
|
+
async getRecordingStatus(roomId) {
|
|
294
|
+
return this.client.get(`${this.basePath}/rooms/${roomId}/recording`);
|
|
295
|
+
}
|
|
296
|
+
};
|
|
297
|
+
function createCollabAPI(client) {
|
|
298
|
+
return new CollabAPI(client);
|
|
299
|
+
}
|
|
300
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
301
|
+
0 && (module.exports = {
|
|
302
|
+
CollabAPI,
|
|
303
|
+
createCollabAPI
|
|
304
|
+
});
|
package/dist/collab.mjs
ADDED
package/dist/connect.js
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
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/connect.ts
|
|
21
|
+
var connect_exports = {};
|
|
22
|
+
__export(connect_exports, {
|
|
23
|
+
ConnectAPI: () => ConnectAPI,
|
|
24
|
+
createConnectAPI: () => createConnectAPI
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(connect_exports);
|
|
27
|
+
var ConnectAPI = class {
|
|
28
|
+
client;
|
|
29
|
+
basePath = "/v1/integrations";
|
|
30
|
+
constructor(client) {
|
|
31
|
+
this.client = client;
|
|
32
|
+
}
|
|
33
|
+
async list(params) {
|
|
34
|
+
return this.client.get(this.basePath, {
|
|
35
|
+
params
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
async get(integrationId) {
|
|
39
|
+
return this.client.get(`${this.basePath}/${integrationId}`);
|
|
40
|
+
}
|
|
41
|
+
async enable(request) {
|
|
42
|
+
return this.client.post(this.basePath, request);
|
|
43
|
+
}
|
|
44
|
+
async disable(integrationId) {
|
|
45
|
+
await this.client.post(`${this.basePath}/${integrationId}/disable`);
|
|
46
|
+
}
|
|
47
|
+
async configure(integrationId, config) {
|
|
48
|
+
return this.client.patch(`${this.basePath}/${integrationId}`, { config });
|
|
49
|
+
}
|
|
50
|
+
async testConnection(integrationId) {
|
|
51
|
+
return this.client.post(
|
|
52
|
+
`${this.basePath}/${integrationId}/test`
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
async listWebhooks(integrationId) {
|
|
56
|
+
const path = integrationId ? `${this.basePath}/${integrationId}/webhooks` : "/v1/webhooks";
|
|
57
|
+
return this.client.get(path);
|
|
58
|
+
}
|
|
59
|
+
async createWebhook(integrationId, request) {
|
|
60
|
+
return this.client.post(`${this.basePath}/${integrationId}/webhooks`, request);
|
|
61
|
+
}
|
|
62
|
+
async updateWebhook(webhookId, updates) {
|
|
63
|
+
return this.client.patch(`/v1/webhooks/${webhookId}`, updates);
|
|
64
|
+
}
|
|
65
|
+
async removeWebhook(webhookId) {
|
|
66
|
+
await this.client.delete(`/v1/webhooks/${webhookId}`);
|
|
67
|
+
}
|
|
68
|
+
async listDeliveries(webhookId, params) {
|
|
69
|
+
return this.client.get(
|
|
70
|
+
`/v1/webhooks/${webhookId}/deliveries`,
|
|
71
|
+
{ params }
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
async retryDelivery(deliveryId) {
|
|
75
|
+
return this.client.post(`/v1/webhooks/deliveries/${deliveryId}/retry`);
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
function createConnectAPI(client) {
|
|
79
|
+
return new ConnectAPI(client);
|
|
80
|
+
}
|
|
81
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
82
|
+
0 && (module.exports = {
|
|
83
|
+
ConnectAPI,
|
|
84
|
+
createConnectAPI
|
|
85
|
+
});
|
package/dist/connect.mjs
ADDED
package/dist/creator.js
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
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/creator.ts
|
|
21
|
+
var creator_exports = {};
|
|
22
|
+
__export(creator_exports, {
|
|
23
|
+
CreatorAPI: () => CreatorAPI,
|
|
24
|
+
createCreatorAPI: () => createCreatorAPI
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(creator_exports);
|
|
27
|
+
var CreatorAPI = class {
|
|
28
|
+
client;
|
|
29
|
+
basePath = "/v1/creators";
|
|
30
|
+
constructor(client) {
|
|
31
|
+
this.client = client;
|
|
32
|
+
}
|
|
33
|
+
async getProfile(creatorId) {
|
|
34
|
+
return this.client.get(`${this.basePath}/${creatorId}`);
|
|
35
|
+
}
|
|
36
|
+
async updateProfile(creatorId, request) {
|
|
37
|
+
return this.client.patch(`${this.basePath}/${creatorId}`, request);
|
|
38
|
+
}
|
|
39
|
+
async getRevenue(creatorId, params) {
|
|
40
|
+
return this.client.get(`${this.basePath}/${creatorId}/revenue`, {
|
|
41
|
+
params
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
async listSubscriptions(creatorId, params) {
|
|
45
|
+
return this.client.get(
|
|
46
|
+
`${this.basePath}/${creatorId}/subscriptions`,
|
|
47
|
+
{ params }
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
async listTips(creatorId, params) {
|
|
51
|
+
return this.client.get(`${this.basePath}/${creatorId}/tips`, {
|
|
52
|
+
params
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
async createTipJar(creatorId, config) {
|
|
56
|
+
return this.client.post(`${this.basePath}/${creatorId}/tip-jar`, config);
|
|
57
|
+
}
|
|
58
|
+
async listPayouts(creatorId, params) {
|
|
59
|
+
return this.client.get(`${this.basePath}/${creatorId}/payouts`, {
|
|
60
|
+
params
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
async requestPayout(creatorId, request) {
|
|
64
|
+
return this.client.post(`${this.basePath}/${creatorId}/payouts`, request);
|
|
65
|
+
}
|
|
66
|
+
async getAnalytics(creatorId, params) {
|
|
67
|
+
return this.client.get(`${this.basePath}/${creatorId}/analytics`, {
|
|
68
|
+
params
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
function createCreatorAPI(client) {
|
|
73
|
+
return new CreatorAPI(client);
|
|
74
|
+
}
|
|
75
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
76
|
+
0 && (module.exports = {
|
|
77
|
+
CreatorAPI,
|
|
78
|
+
createCreatorAPI
|
|
79
|
+
});
|
package/dist/creator.mjs
ADDED
package/dist/desktop.js
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
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/desktop.ts
|
|
21
|
+
var desktop_exports = {};
|
|
22
|
+
__export(desktop_exports, {
|
|
23
|
+
DesktopAPI: () => DesktopAPI,
|
|
24
|
+
createDesktopAPI: () => createDesktopAPI
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(desktop_exports);
|
|
27
|
+
var DesktopAPI = class {
|
|
28
|
+
client;
|
|
29
|
+
basePath = "/v1/desktop";
|
|
30
|
+
constructor(client) {
|
|
31
|
+
this.client = client;
|
|
32
|
+
}
|
|
33
|
+
async getInfo(nodeId) {
|
|
34
|
+
return this.client.get(`${this.basePath}/nodes/${nodeId}`);
|
|
35
|
+
}
|
|
36
|
+
async getStatus(nodeId) {
|
|
37
|
+
return this.client.get(
|
|
38
|
+
`${this.basePath}/nodes/${nodeId}/status`
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
async listDevices(nodeId) {
|
|
42
|
+
return this.client.get(`${this.basePath}/nodes/${nodeId}/devices`);
|
|
43
|
+
}
|
|
44
|
+
async configure(nodeId, config) {
|
|
45
|
+
return this.client.patch(`${this.basePath}/nodes/${nodeId}/config`, config);
|
|
46
|
+
}
|
|
47
|
+
async getConfig(nodeId) {
|
|
48
|
+
return this.client.get(`${this.basePath}/nodes/${nodeId}/config`);
|
|
49
|
+
}
|
|
50
|
+
async getLogs(nodeId, params) {
|
|
51
|
+
return this.client.get(`${this.basePath}/nodes/${nodeId}/logs`, {
|
|
52
|
+
params
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
async getPerformance(nodeId) {
|
|
56
|
+
return this.client.get(`${this.basePath}/nodes/${nodeId}/performance`);
|
|
57
|
+
}
|
|
58
|
+
async checkForUpdate(nodeId) {
|
|
59
|
+
return this.client.get(
|
|
60
|
+
`${this.basePath}/nodes/${nodeId}/updates`
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
async installUpdate(nodeId) {
|
|
64
|
+
return this.client.post(`${this.basePath}/nodes/${nodeId}/updates/install`);
|
|
65
|
+
}
|
|
66
|
+
async restart(nodeId) {
|
|
67
|
+
return this.client.post(`${this.basePath}/nodes/${nodeId}/restart`);
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
function createDesktopAPI(client) {
|
|
71
|
+
return new DesktopAPI(client);
|
|
72
|
+
}
|
|
73
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
74
|
+
0 && (module.exports = {
|
|
75
|
+
DesktopAPI,
|
|
76
|
+
createDesktopAPI
|
|
77
|
+
});
|
package/dist/desktop.mjs
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
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/distribution.ts
|
|
21
|
+
var distribution_exports = {};
|
|
22
|
+
__export(distribution_exports, {
|
|
23
|
+
DistributionAPI: () => DistributionAPI,
|
|
24
|
+
createDistributionAPI: () => createDistributionAPI
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(distribution_exports);
|
|
27
|
+
var DistributionAPI = class {
|
|
28
|
+
client;
|
|
29
|
+
basePath = "/v1/distribution";
|
|
30
|
+
constructor(client) {
|
|
31
|
+
this.client = client;
|
|
32
|
+
}
|
|
33
|
+
async listDestinations(params) {
|
|
34
|
+
return this.client.get(`${this.basePath}/destinations`, {
|
|
35
|
+
params
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
async getDestination(destId) {
|
|
39
|
+
return this.client.get(`${this.basePath}/destinations/${destId}`);
|
|
40
|
+
}
|
|
41
|
+
async addDestination(request) {
|
|
42
|
+
return this.client.post(`${this.basePath}/destinations`, request);
|
|
43
|
+
}
|
|
44
|
+
async updateDestination(destId, updates) {
|
|
45
|
+
return this.client.patch(`${this.basePath}/destinations/${destId}`, updates);
|
|
46
|
+
}
|
|
47
|
+
async removeDestination(destId) {
|
|
48
|
+
await this.client.delete(`${this.basePath}/destinations/${destId}`);
|
|
49
|
+
}
|
|
50
|
+
async startSimulcast(streamId, destinationIds) {
|
|
51
|
+
return this.client.post(`${this.basePath}/simulcast`, {
|
|
52
|
+
stream_id: streamId,
|
|
53
|
+
destination_ids: destinationIds
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
async stopSimulcast(streamId) {
|
|
57
|
+
return this.client.post(`${this.basePath}/simulcast/stop`, {
|
|
58
|
+
stream_id: streamId
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
async getSimulcastStatus(streamId) {
|
|
62
|
+
return this.client.get(`${this.basePath}/simulcast/${streamId}`);
|
|
63
|
+
}
|
|
64
|
+
async schedulePost(request) {
|
|
65
|
+
return this.client.post(`${this.basePath}/posts`, request);
|
|
66
|
+
}
|
|
67
|
+
async listScheduledPosts(params) {
|
|
68
|
+
return this.client.get(`${this.basePath}/posts`, {
|
|
69
|
+
params
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
async cancelScheduledPost(postId) {
|
|
73
|
+
await this.client.delete(`${this.basePath}/posts/${postId}`);
|
|
74
|
+
}
|
|
75
|
+
async getDistributionAnalytics(params) {
|
|
76
|
+
return this.client.get(`${this.basePath}/analytics`, {
|
|
77
|
+
params
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
function createDistributionAPI(client) {
|
|
82
|
+
return new DistributionAPI(client);
|
|
83
|
+
}
|
|
84
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
85
|
+
0 && (module.exports = {
|
|
86
|
+
DistributionAPI,
|
|
87
|
+
createDistributionAPI
|
|
88
|
+
});
|