@casual-simulation/aux-runtime 3.2.7-alpha.6226622763
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/LICENSE.txt +21 -0
- package/README.md +82 -0
- package/index.d.ts +26 -0
- package/index.js +26 -0
- package/index.js.map +1 -0
- package/package.json +79 -0
- package/runtime/AuxCompiler.d.ts +258 -0
- package/runtime/AuxCompiler.js +722 -0
- package/runtime/AuxCompiler.js.map +1 -0
- package/runtime/AuxDevice.d.ts +28 -0
- package/runtime/AuxDevice.js +2 -0
- package/runtime/AuxDevice.js.map +1 -0
- package/runtime/AuxGlobalContext.d.ts +572 -0
- package/runtime/AuxGlobalContext.js +606 -0
- package/runtime/AuxGlobalContext.js.map +1 -0
- package/runtime/AuxLibrary.d.ts +2566 -0
- package/runtime/AuxLibrary.js +10210 -0
- package/runtime/AuxLibrary.js.map +1 -0
- package/runtime/AuxLibraryDefinitions.def +12288 -0
- package/runtime/AuxPartitionRealtimeEditModeProvider.d.ts +9 -0
- package/runtime/AuxPartitionRealtimeEditModeProvider.js +21 -0
- package/runtime/AuxPartitionRealtimeEditModeProvider.js.map +1 -0
- package/runtime/AuxRealtimeEditModeProvider.d.ts +35 -0
- package/runtime/AuxRealtimeEditModeProvider.js +34 -0
- package/runtime/AuxRealtimeEditModeProvider.js.map +1 -0
- package/runtime/AuxResults.d.ts +77 -0
- package/runtime/AuxResults.js +6 -0
- package/runtime/AuxResults.js.map +1 -0
- package/runtime/AuxRuntime.d.ts +252 -0
- package/runtime/AuxRuntime.js +2688 -0
- package/runtime/AuxRuntime.js.map +1 -0
- package/runtime/AuxRuntimeDynamicImports.d.ts +14 -0
- package/runtime/AuxRuntimeDynamicImports.js +24 -0
- package/runtime/AuxRuntimeDynamicImports.js.map +1 -0
- package/runtime/AuxVersion.d.ts +39 -0
- package/runtime/AuxVersion.js +2 -0
- package/runtime/AuxVersion.js.map +1 -0
- package/runtime/CasualOSError.d.ts +37 -0
- package/runtime/CasualOSError.js +25 -0
- package/runtime/CasualOSError.js.map +1 -0
- package/runtime/CompiledBot.d.ts +107 -0
- package/runtime/CompiledBot.js +44 -0
- package/runtime/CompiledBot.js.map +1 -0
- package/runtime/PerformanceNowPolyfill.d.ts +1 -0
- package/runtime/PerformanceNowPolyfill.js +8 -0
- package/runtime/PerformanceNowPolyfill.js.map +1 -0
- package/runtime/RecordsEvents.d.ts +1025 -0
- package/runtime/RecordsEvents.js +449 -0
- package/runtime/RecordsEvents.js.map +1 -0
- package/runtime/RuntimeBot.d.ts +177 -0
- package/runtime/RuntimeBot.js +732 -0
- package/runtime/RuntimeBot.js.map +1 -0
- package/runtime/RuntimeEvents.d.ts +126 -0
- package/runtime/RuntimeEvents.js +29 -0
- package/runtime/RuntimeEvents.js.map +1 -0
- package/runtime/RuntimeStateVersion.d.ts +23 -0
- package/runtime/RuntimeStateVersion.js +22 -0
- package/runtime/RuntimeStateVersion.js.map +1 -0
- package/runtime/Transpiler.d.ts +174 -0
- package/runtime/Transpiler.js +611 -0
- package/runtime/Transpiler.js.map +1 -0
- package/runtime/Utils.d.ts +44 -0
- package/runtime/Utils.js +253 -0
- package/runtime/Utils.js.map +1 -0
- package/runtime/index.d.ts +13 -0
- package/runtime/index.js +13 -0
- package/runtime/index.js.map +1 -0
- package/runtime/test/TestScriptBotFactory.d.ts +16 -0
- package/runtime/test/TestScriptBotFactory.js +107 -0
- package/runtime/test/TestScriptBotFactory.js.map +1 -0
|
@@ -0,0 +1,1025 @@
|
|
|
1
|
+
import type { AIChatMessage, RecordFileFailure } from '@casual-simulation/aux-records';
|
|
2
|
+
import { APPROVED_SYMBOL, AsyncAction, Record } from '@casual-simulation/aux-common';
|
|
3
|
+
export type RecordsActions = RecordsAsyncActions;
|
|
4
|
+
export type RecordsAsyncActions = RecordDataAction | GetRecordDataAction | ListRecordDataAction | EraseRecordDataAction | RecordFileAction | GetFileAction | EraseFileAction | RecordEventAction | GetEventCountAction | AIChatAction | AIGenerateImageAction | AIGenerateSkyboxAction | ListUserStudiosAction | GetPublicRecordKeyAction | GrantRecordMarkerPermissionAction | RevokeRecordMarkerPermissionAction | GrantInstAdminPermissionAction | GrantRoleAction | RevokeRoleAction | JoinRoomAction | LeaveRoomAction | SetRoomOptionsAction | GetRoomOptionsAction | GetRoomTrackOptionsAction | SetRoomTrackOptionsAction | GetRoomRemoteOptionsAction;
|
|
5
|
+
/**
|
|
6
|
+
* An event that is used to chat with an AI.
|
|
7
|
+
*/
|
|
8
|
+
export interface AIChatAction extends AsyncAction {
|
|
9
|
+
type: 'ai_chat';
|
|
10
|
+
/**
|
|
11
|
+
* The options for the action.
|
|
12
|
+
*/
|
|
13
|
+
options: AIChatOptions;
|
|
14
|
+
/**
|
|
15
|
+
* The list of messages comprising the conversation so far.
|
|
16
|
+
*/
|
|
17
|
+
messages: AIChatMessage[];
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Defines an interface that represents options for {@link ai.chat-string}.
|
|
21
|
+
*
|
|
22
|
+
* @dochash types/ai
|
|
23
|
+
* @doctitle AI Types
|
|
24
|
+
* @docsidebar AI
|
|
25
|
+
* @docdescription Types that are used in AI actions.
|
|
26
|
+
* @docname AIChatOptions
|
|
27
|
+
*/
|
|
28
|
+
export interface AIChatOptions extends RecordActionOptions {
|
|
29
|
+
/**
|
|
30
|
+
* The model that should be used.
|
|
31
|
+
*
|
|
32
|
+
* If not specified, then a default will be used.
|
|
33
|
+
*
|
|
34
|
+
* Currently, the following models are supported:
|
|
35
|
+
*
|
|
36
|
+
* - `gpt-4`
|
|
37
|
+
* - `gpt-3.5-turbo`
|
|
38
|
+
*/
|
|
39
|
+
preferredModel?: 'gpt-4' | 'gpt-3.5-turbo';
|
|
40
|
+
/**
|
|
41
|
+
* The temperature that should be used.
|
|
42
|
+
*
|
|
43
|
+
* If not specified, then a default will be used.
|
|
44
|
+
*/
|
|
45
|
+
temperature?: number;
|
|
46
|
+
/**
|
|
47
|
+
* The nucleus sampling probability.
|
|
48
|
+
*/
|
|
49
|
+
topP?: number;
|
|
50
|
+
/**
|
|
51
|
+
* The presence penalty.
|
|
52
|
+
*
|
|
53
|
+
* Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
|
|
54
|
+
*/
|
|
55
|
+
presencePenalty?: number;
|
|
56
|
+
/**
|
|
57
|
+
* The frequency penalty.
|
|
58
|
+
*
|
|
59
|
+
* Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
|
|
60
|
+
*/
|
|
61
|
+
frequencyPenalty?: number;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* An event that is used to generate a skybox using AI.
|
|
65
|
+
*
|
|
66
|
+
* @dochash types/ai
|
|
67
|
+
* @docname AIGenerateSkyboxAction
|
|
68
|
+
*/
|
|
69
|
+
export interface AIGenerateSkyboxAction extends AsyncAction {
|
|
70
|
+
type: 'ai_generate_skybox';
|
|
71
|
+
/**
|
|
72
|
+
* The prompt to use for the skybox.
|
|
73
|
+
*
|
|
74
|
+
* Describes things that you want the skybox to look like.
|
|
75
|
+
*/
|
|
76
|
+
prompt: string;
|
|
77
|
+
/**
|
|
78
|
+
* The negative prompt to use for the skybox.
|
|
79
|
+
*
|
|
80
|
+
* Describes the things that you don't want the skybox to look like.
|
|
81
|
+
*/
|
|
82
|
+
negativePrompt?: string;
|
|
83
|
+
/**
|
|
84
|
+
* The options that should be included in the request.
|
|
85
|
+
*/
|
|
86
|
+
options: AIGenerateSkyboxOptions;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Defines an interface that represents options for {@link ai.generateSkybox-string}.
|
|
90
|
+
*
|
|
91
|
+
* @dochash types/ai
|
|
92
|
+
* @docname AIGenerateSkyboxOptions
|
|
93
|
+
*/
|
|
94
|
+
export interface AIGenerateSkyboxOptions extends RecordActionOptions {
|
|
95
|
+
/**
|
|
96
|
+
* Options that are specific to blockade-labs.
|
|
97
|
+
*/
|
|
98
|
+
blockadeLabs?: AIGenerateSkyboxBlockadeLabsOptions;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Options that are specific to Blockade Labs implementations for {@link ai.generateSkybox-string}.
|
|
102
|
+
*
|
|
103
|
+
* @dochash types/ai
|
|
104
|
+
* @docname AIGenerateSkyboxOptions
|
|
105
|
+
*/
|
|
106
|
+
export interface AIGenerateSkyboxBlockadeLabsOptions {
|
|
107
|
+
/**
|
|
108
|
+
* The pre-defined style ID for the skybox.
|
|
109
|
+
*/
|
|
110
|
+
skyboxStyleId?: number;
|
|
111
|
+
/**
|
|
112
|
+
* The ID of a previously generated skybox.
|
|
113
|
+
*/
|
|
114
|
+
remixImagineId?: number;
|
|
115
|
+
/**
|
|
116
|
+
* The random seed to use for generating the skybox.
|
|
117
|
+
*/
|
|
118
|
+
seed?: number;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* An event that is used to generate an image using AI.
|
|
122
|
+
*/
|
|
123
|
+
export interface AIGenerateImageAction extends AsyncAction, AIGenerateImageOptions {
|
|
124
|
+
type: 'ai_generate_image';
|
|
125
|
+
/**
|
|
126
|
+
* The options for the action.
|
|
127
|
+
*/
|
|
128
|
+
options: RecordActionOptions;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Defines an interface that represents options for {@link ai.generateImage-string}.
|
|
132
|
+
*
|
|
133
|
+
* @dochash types/ai
|
|
134
|
+
* @docname AIGenerateImageOptions
|
|
135
|
+
*/
|
|
136
|
+
export interface AIGenerateImageOptions {
|
|
137
|
+
/**
|
|
138
|
+
* The description of what the generated image(s) should look like.
|
|
139
|
+
*/
|
|
140
|
+
prompt: string;
|
|
141
|
+
/**
|
|
142
|
+
* The description of what the generated image(s) should not look like.
|
|
143
|
+
*/
|
|
144
|
+
negativePrompt?: string;
|
|
145
|
+
/**
|
|
146
|
+
* The model that should be used to generate the image(s).
|
|
147
|
+
*/
|
|
148
|
+
model?: string;
|
|
149
|
+
/**
|
|
150
|
+
* The desired width of the image(s) in pixels.
|
|
151
|
+
*/
|
|
152
|
+
width?: number;
|
|
153
|
+
/**
|
|
154
|
+
* The desired height of the image(s) in pixels.
|
|
155
|
+
*/
|
|
156
|
+
height?: number;
|
|
157
|
+
/**
|
|
158
|
+
* The number of images that should be generated.
|
|
159
|
+
*/
|
|
160
|
+
numberOfImages?: number;
|
|
161
|
+
/**
|
|
162
|
+
* The random noise seed that should be used.
|
|
163
|
+
*/
|
|
164
|
+
seed?: number;
|
|
165
|
+
/**
|
|
166
|
+
* The number of diffusion steps to run.
|
|
167
|
+
*/
|
|
168
|
+
steps?: number;
|
|
169
|
+
/**
|
|
170
|
+
* How strictly the diffusion process adheres to the prompt text.
|
|
171
|
+
* Higher values keep the image closer to the prompt.
|
|
172
|
+
*/
|
|
173
|
+
cfgScale?: number;
|
|
174
|
+
/**
|
|
175
|
+
* The sampler to use for the diffusion process.
|
|
176
|
+
*/
|
|
177
|
+
sampler?: string;
|
|
178
|
+
/**
|
|
179
|
+
* The clip guidance preset.
|
|
180
|
+
*/
|
|
181
|
+
clipGuidancePreset?: string;
|
|
182
|
+
/**
|
|
183
|
+
* The style preset that should be used to guide the image model torwards a specific style.
|
|
184
|
+
*/
|
|
185
|
+
stylePreset?: string;
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Defines an interface that represents the base for options for a records action.
|
|
189
|
+
*
|
|
190
|
+
* @dochash types/records/extra
|
|
191
|
+
* @doctitle Extra Record Types
|
|
192
|
+
* @docsidebar Extra
|
|
193
|
+
* @docdescription Extra types that are used for records.
|
|
194
|
+
* @docname RecordActionOptions
|
|
195
|
+
*/
|
|
196
|
+
export interface RecordActionOptions {
|
|
197
|
+
/**
|
|
198
|
+
* The HTTP endpoint that the request should interface with.
|
|
199
|
+
*/
|
|
200
|
+
endpoint?: string;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Defines an interface that represents the base for actions that deal with records.
|
|
204
|
+
*/
|
|
205
|
+
export interface RecordsAction extends AsyncAction {
|
|
206
|
+
/**
|
|
207
|
+
* The options that the action should use.
|
|
208
|
+
*/
|
|
209
|
+
options: RecordActionOptions;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Defines a type that represents a policy that indicates which users are allowed to affect a record.
|
|
213
|
+
*
|
|
214
|
+
* - `true` indicates that any user can edit the record.
|
|
215
|
+
* - An array of strings indicates the list of users that are allowed to edit the record.
|
|
216
|
+
*
|
|
217
|
+
* @dochash types/records
|
|
218
|
+
* @docname RecordUserPolicyType
|
|
219
|
+
*/
|
|
220
|
+
export type RecordUserPolicyType = true | string[];
|
|
221
|
+
/**
|
|
222
|
+
* The options for data record actions.
|
|
223
|
+
*
|
|
224
|
+
* @dochash types/records
|
|
225
|
+
* @docName DataRecordOptions
|
|
226
|
+
*/
|
|
227
|
+
export interface DataRecordOptions extends RecordActionOptions {
|
|
228
|
+
/**
|
|
229
|
+
* The policy that should be used for updating the record.
|
|
230
|
+
*/
|
|
231
|
+
updatePolicy?: RecordUserPolicyType;
|
|
232
|
+
/**
|
|
233
|
+
* The policy that should be used for deleting the record.
|
|
234
|
+
*/
|
|
235
|
+
deletePolicy?: RecordUserPolicyType;
|
|
236
|
+
/**
|
|
237
|
+
* The markers that should be applied to the record.
|
|
238
|
+
*/
|
|
239
|
+
markers?: string[];
|
|
240
|
+
/**
|
|
241
|
+
* The marker that should be applied to the record.
|
|
242
|
+
*/
|
|
243
|
+
marker?: string;
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Defines an interface that represents the base for actions that deal with data records.
|
|
247
|
+
*/
|
|
248
|
+
export interface DataRecordAction extends RecordsAction {
|
|
249
|
+
/**
|
|
250
|
+
* Whether this action is trying to publish data that requires manual approval.
|
|
251
|
+
*/
|
|
252
|
+
requiresApproval: boolean;
|
|
253
|
+
/**
|
|
254
|
+
* Whether this action has been manually approved.
|
|
255
|
+
*
|
|
256
|
+
* Uses a symbol to ensure that it cannot be copied across security boundaries.
|
|
257
|
+
* As a result, it should be impossible to generate actions that are pre-approved.
|
|
258
|
+
*/
|
|
259
|
+
[APPROVED_SYMBOL]?: boolean;
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Defines an event that publishes data to a record.
|
|
263
|
+
*/
|
|
264
|
+
export interface RecordDataAction extends DataRecordAction {
|
|
265
|
+
type: 'record_data';
|
|
266
|
+
/**
|
|
267
|
+
* The record key that should be used to publish the data.
|
|
268
|
+
*/
|
|
269
|
+
recordKey: string;
|
|
270
|
+
/**
|
|
271
|
+
* The address that the data should be recorded to.
|
|
272
|
+
*/
|
|
273
|
+
address: string;
|
|
274
|
+
/**
|
|
275
|
+
* The data that should be recorded.
|
|
276
|
+
*/
|
|
277
|
+
data: any;
|
|
278
|
+
options: DataRecordOptions;
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Defines an event that requests some data in a record.
|
|
282
|
+
*/
|
|
283
|
+
export interface GetRecordDataAction extends DataRecordAction {
|
|
284
|
+
type: 'get_record_data';
|
|
285
|
+
/**
|
|
286
|
+
* The name of the record.
|
|
287
|
+
*/
|
|
288
|
+
recordName: string;
|
|
289
|
+
/**
|
|
290
|
+
* The address of the data that should be retrieved.
|
|
291
|
+
*/
|
|
292
|
+
address: string;
|
|
293
|
+
}
|
|
294
|
+
export interface ListRecordDataAction extends DataRecordAction {
|
|
295
|
+
type: 'list_record_data';
|
|
296
|
+
/**
|
|
297
|
+
* The name of the record.
|
|
298
|
+
*/
|
|
299
|
+
recordName: string;
|
|
300
|
+
/**
|
|
301
|
+
* The address that the list should start with.
|
|
302
|
+
*/
|
|
303
|
+
startingAddress?: string;
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* Defines an event that erases some data in a record.
|
|
307
|
+
*/
|
|
308
|
+
export interface EraseRecordDataAction extends DataRecordAction {
|
|
309
|
+
type: 'erase_record_data';
|
|
310
|
+
/**
|
|
311
|
+
* The record key that should be used to erase the data.
|
|
312
|
+
*/
|
|
313
|
+
recordKey: string;
|
|
314
|
+
/**
|
|
315
|
+
* The address that the data from.
|
|
316
|
+
*/
|
|
317
|
+
address: string;
|
|
318
|
+
}
|
|
319
|
+
export interface RecordFileActionOptions extends RecordActionOptions {
|
|
320
|
+
/**
|
|
321
|
+
* The markers that should be applied to the record.
|
|
322
|
+
*/
|
|
323
|
+
markers?: string[];
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* Defines an event that publishes a file to a record.
|
|
327
|
+
*/
|
|
328
|
+
export interface RecordFileAction extends RecordsAction {
|
|
329
|
+
type: 'record_file';
|
|
330
|
+
/**
|
|
331
|
+
* The record key that should be used to publish the file.
|
|
332
|
+
*/
|
|
333
|
+
recordKey: string;
|
|
334
|
+
/**
|
|
335
|
+
* The data that should be recorded.
|
|
336
|
+
*/
|
|
337
|
+
data: any;
|
|
338
|
+
/**
|
|
339
|
+
* The description of the file.
|
|
340
|
+
*/
|
|
341
|
+
description: string;
|
|
342
|
+
/**
|
|
343
|
+
* The MIME type of the uploaded file.
|
|
344
|
+
*/
|
|
345
|
+
mimeType?: string;
|
|
346
|
+
/**
|
|
347
|
+
* The options for the action.
|
|
348
|
+
*/
|
|
349
|
+
options: RecordFileActionOptions;
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* Defines an event that requests a file from a record.
|
|
353
|
+
*/
|
|
354
|
+
export interface GetFileAction extends RecordsAction {
|
|
355
|
+
type: 'get_file';
|
|
356
|
+
/**
|
|
357
|
+
* The URL that the file is stored at.
|
|
358
|
+
*/
|
|
359
|
+
fileUrl: string;
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Defines an event that erases a file from a record.
|
|
363
|
+
*/
|
|
364
|
+
export interface EraseFileAction extends RecordsAction {
|
|
365
|
+
type: 'erase_file';
|
|
366
|
+
/**
|
|
367
|
+
* The record key that should be used to erase the file.
|
|
368
|
+
*/
|
|
369
|
+
recordKey: string;
|
|
370
|
+
/**
|
|
371
|
+
* The URL that the file is stored at.
|
|
372
|
+
*/
|
|
373
|
+
fileUrl: string;
|
|
374
|
+
}
|
|
375
|
+
export type FileRecordedResult = FileRecordedSuccess | FileRecordedFailure;
|
|
376
|
+
export interface FileRecordedSuccess {
|
|
377
|
+
success: true;
|
|
378
|
+
url: string;
|
|
379
|
+
sha256Hash: string;
|
|
380
|
+
}
|
|
381
|
+
export interface FileRecordedFailure {
|
|
382
|
+
success: false;
|
|
383
|
+
errorCode: RecordFileFailure['errorCode'] | 'upload_failed';
|
|
384
|
+
errorMessage: string;
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Defines an action that records that an event happened.
|
|
388
|
+
*/
|
|
389
|
+
export interface RecordEventAction extends RecordsAction {
|
|
390
|
+
type: 'record_event';
|
|
391
|
+
/**
|
|
392
|
+
* The key that should be used to access the record.
|
|
393
|
+
*/
|
|
394
|
+
recordKey: string;
|
|
395
|
+
/**
|
|
396
|
+
* The name of the event.
|
|
397
|
+
*/
|
|
398
|
+
eventName: string;
|
|
399
|
+
/**
|
|
400
|
+
* The number of events to record.
|
|
401
|
+
*/
|
|
402
|
+
count: number;
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* Defines an action that retrieves the number of times an event has happened.
|
|
406
|
+
*/
|
|
407
|
+
export interface GetEventCountAction extends RecordsAction {
|
|
408
|
+
type: 'get_event_count';
|
|
409
|
+
/**
|
|
410
|
+
* The name of the record.
|
|
411
|
+
*/
|
|
412
|
+
recordName: string;
|
|
413
|
+
/**
|
|
414
|
+
* The name of the event.
|
|
415
|
+
*/
|
|
416
|
+
eventName: string;
|
|
417
|
+
}
|
|
418
|
+
export interface GetRecordsActionResult {
|
|
419
|
+
records: Record[];
|
|
420
|
+
hasMoreRecords: boolean;
|
|
421
|
+
totalCount: number;
|
|
422
|
+
cursor?: string;
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
* Defines an action that retrieves the list of studios that the user has access to.
|
|
426
|
+
*/
|
|
427
|
+
export interface ListUserStudiosAction extends RecordsAction {
|
|
428
|
+
type: 'list_user_studios';
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* Defines a type that represents the different kinds of policies that a record key can have.
|
|
432
|
+
*
|
|
433
|
+
* - null and "subjectfull" indicate that actions performed with this key must require a subject to provide their access token in order for operations to succeed.
|
|
434
|
+
* - "subjectless" indicates that actions may be performed with key despite not having an access key from a subject.
|
|
435
|
+
*/
|
|
436
|
+
export type PublicRecordKeyPolicy = null | 'subjectfull' | 'subjectless';
|
|
437
|
+
/**
|
|
438
|
+
* Defines an interface that represents an action that requests a key to a public record.
|
|
439
|
+
*/
|
|
440
|
+
export interface GetPublicRecordKeyAction extends AsyncAction {
|
|
441
|
+
type: 'get_public_record_key';
|
|
442
|
+
/**
|
|
443
|
+
* The name of the record.
|
|
444
|
+
*/
|
|
445
|
+
recordName: string;
|
|
446
|
+
/**
|
|
447
|
+
* The policy that the record key should have.
|
|
448
|
+
*/
|
|
449
|
+
policy?: PublicRecordKeyPolicy;
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* Defines an interface that represents an action that grants a permission to a record marker.
|
|
453
|
+
*/
|
|
454
|
+
export interface GrantRecordMarkerPermissionAction extends RecordsAction {
|
|
455
|
+
type: 'grant_record_marker_permission';
|
|
456
|
+
/**
|
|
457
|
+
* The name of the record.
|
|
458
|
+
*/
|
|
459
|
+
recordName: string;
|
|
460
|
+
/**
|
|
461
|
+
* The marker that should be granted permission.
|
|
462
|
+
*/
|
|
463
|
+
marker: string;
|
|
464
|
+
/**
|
|
465
|
+
* The permission that should be granted.
|
|
466
|
+
*/
|
|
467
|
+
permission: object;
|
|
468
|
+
}
|
|
469
|
+
/**
|
|
470
|
+
* Defines an interface that represents an action that revokes a permission from a record marker.
|
|
471
|
+
*/
|
|
472
|
+
export interface RevokeRecordMarkerPermissionAction extends RecordsAction {
|
|
473
|
+
type: 'revoke_record_marker_permission';
|
|
474
|
+
/**
|
|
475
|
+
* The name of the record.
|
|
476
|
+
*/
|
|
477
|
+
recordName: string;
|
|
478
|
+
/**
|
|
479
|
+
* The marker that should be revoked permission.
|
|
480
|
+
*/
|
|
481
|
+
marker: string;
|
|
482
|
+
/**
|
|
483
|
+
* The permission that should be revoked.
|
|
484
|
+
*/
|
|
485
|
+
permission: object;
|
|
486
|
+
}
|
|
487
|
+
/**
|
|
488
|
+
* Defines an action that represents an action that grants admin permissions to the inst for the day.
|
|
489
|
+
*/
|
|
490
|
+
export interface GrantInstAdminPermissionAction extends RecordsAction {
|
|
491
|
+
type: 'grant_inst_admin_permission';
|
|
492
|
+
/**
|
|
493
|
+
* The name of the record.
|
|
494
|
+
*/
|
|
495
|
+
recordName: string;
|
|
496
|
+
/**
|
|
497
|
+
* Whether this action has been manually approved.
|
|
498
|
+
*
|
|
499
|
+
* Uses a symbol to ensure that it cannot be copied across security boundaries.
|
|
500
|
+
* As a result, it should be impossible to generate actions that are pre-approved.
|
|
501
|
+
*/
|
|
502
|
+
[APPROVED_SYMBOL]?: boolean;
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* Defines an action that grants a role to a user or inst.
|
|
506
|
+
*/
|
|
507
|
+
export interface GrantRoleAction extends RecordsAction {
|
|
508
|
+
type: 'grant_role';
|
|
509
|
+
/**
|
|
510
|
+
* The name of the record.
|
|
511
|
+
*/
|
|
512
|
+
recordName: string;
|
|
513
|
+
/**
|
|
514
|
+
* The role that should be granted.
|
|
515
|
+
*/
|
|
516
|
+
role: string;
|
|
517
|
+
/**
|
|
518
|
+
* The ID of the user that should be granted the role.
|
|
519
|
+
*/
|
|
520
|
+
userId?: string;
|
|
521
|
+
/**
|
|
522
|
+
* The ID of the inst that should be granted the role.
|
|
523
|
+
*/
|
|
524
|
+
inst?: string;
|
|
525
|
+
/**
|
|
526
|
+
* The Unix time (in miliseconds) that the role grant expires.
|
|
527
|
+
*/
|
|
528
|
+
expireTimeMs: number | null;
|
|
529
|
+
}
|
|
530
|
+
/**
|
|
531
|
+
* Defines an action that revokes a role from a user or inst.
|
|
532
|
+
*/
|
|
533
|
+
export interface RevokeRoleAction extends RecordsAction {
|
|
534
|
+
type: 'revoke_role';
|
|
535
|
+
/**
|
|
536
|
+
* The name of the record.
|
|
537
|
+
*/
|
|
538
|
+
recordName: string;
|
|
539
|
+
/**
|
|
540
|
+
* The role that should be revoked.
|
|
541
|
+
*/
|
|
542
|
+
role: string;
|
|
543
|
+
/**
|
|
544
|
+
* The ID of the user that should be revoked the role.
|
|
545
|
+
*/
|
|
546
|
+
userId?: string;
|
|
547
|
+
/**
|
|
548
|
+
* The ID of the inst that should be revoked the role.
|
|
549
|
+
*/
|
|
550
|
+
inst?: string;
|
|
551
|
+
}
|
|
552
|
+
/**
|
|
553
|
+
* @docid JoinRoomActionOptions
|
|
554
|
+
* @docrename RoomJoinOptions
|
|
555
|
+
*/
|
|
556
|
+
export type JoinRoomActionOptions = RecordActionOptions & Partial<RoomJoinOptions>;
|
|
557
|
+
/**
|
|
558
|
+
* Defines an event that attempts to join a meeting room.
|
|
559
|
+
*/
|
|
560
|
+
export interface JoinRoomAction extends RecordsAction {
|
|
561
|
+
type: 'join_room';
|
|
562
|
+
/**
|
|
563
|
+
* The name of the room that should be joined.
|
|
564
|
+
*/
|
|
565
|
+
roomName: string;
|
|
566
|
+
/**
|
|
567
|
+
* The options that should be used to join the room.
|
|
568
|
+
*/
|
|
569
|
+
options: JoinRoomActionOptions;
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* Defines an event that attempts to leave a meeting room.
|
|
573
|
+
*/
|
|
574
|
+
export interface LeaveRoomAction extends RecordsAction {
|
|
575
|
+
type: 'leave_room';
|
|
576
|
+
/**
|
|
577
|
+
* The name of the room that should be exited.
|
|
578
|
+
*/
|
|
579
|
+
roomName: string;
|
|
580
|
+
}
|
|
581
|
+
/**
|
|
582
|
+
* Defines an event that attempts to set some options on a meeting room.
|
|
583
|
+
*/
|
|
584
|
+
export interface SetRoomOptionsAction extends AsyncAction {
|
|
585
|
+
type: 'set_room_options';
|
|
586
|
+
/**
|
|
587
|
+
* The name of the room whose options should be changed.
|
|
588
|
+
*/
|
|
589
|
+
roomName: string;
|
|
590
|
+
/**
|
|
591
|
+
* The options that should be set.
|
|
592
|
+
*/
|
|
593
|
+
options: Partial<RoomOptions>;
|
|
594
|
+
}
|
|
595
|
+
/**
|
|
596
|
+
* Defines a set of options that the local user can have for a room.
|
|
597
|
+
*
|
|
598
|
+
* @dochash types/os
|
|
599
|
+
* @docname RoomOptions
|
|
600
|
+
*/
|
|
601
|
+
export interface RoomOptions {
|
|
602
|
+
/**
|
|
603
|
+
* Whether to stream video.
|
|
604
|
+
*/
|
|
605
|
+
video: boolean;
|
|
606
|
+
/**
|
|
607
|
+
* Whether to stream audio.
|
|
608
|
+
*/
|
|
609
|
+
audio: boolean;
|
|
610
|
+
/**
|
|
611
|
+
* Whether to stream the screen.
|
|
612
|
+
*/
|
|
613
|
+
screen: boolean;
|
|
614
|
+
}
|
|
615
|
+
/**
|
|
616
|
+
* Defines a set of options that the local usr can specify when joining a room.
|
|
617
|
+
*
|
|
618
|
+
* @dochash types/os
|
|
619
|
+
* @docname RoomJoinOptions
|
|
620
|
+
*/
|
|
621
|
+
export interface RoomJoinOptions extends RoomOptions {
|
|
622
|
+
/**
|
|
623
|
+
* The defaults that should be used for recording audio.
|
|
624
|
+
* Should be an object.
|
|
625
|
+
* See https://docs.livekit.io/client-sdk-js/interfaces/AudioCaptureOptions.html for a full list of properties.
|
|
626
|
+
*/
|
|
627
|
+
audioCaptureDefaults: object;
|
|
628
|
+
/**
|
|
629
|
+
* The defaults that should be used for recording video. Should be an object.
|
|
630
|
+
* See https://docs.livekit.io/client-sdk-js/interfaces/VideoCaptureOptions.html for a full list of properties.
|
|
631
|
+
*/
|
|
632
|
+
videoCaptureDefaults: object;
|
|
633
|
+
/**
|
|
634
|
+
* The defaults that should be used for uploading audio/video content.
|
|
635
|
+
* See https://docs.livekit.io/client-sdk-js/interfaces/TrackPublishDefaults.html for a full list of properties.
|
|
636
|
+
*/
|
|
637
|
+
publishDefaults: object;
|
|
638
|
+
/**
|
|
639
|
+
* Whether to enable dynacast.
|
|
640
|
+
* See https://docs.livekit.io/client-sdk-js/interfaces/RoomOptions.html#dynacast for more info.
|
|
641
|
+
*/
|
|
642
|
+
dynacast: boolean;
|
|
643
|
+
/**
|
|
644
|
+
* Whether to enable adaptive streaming. Alternatively accepts an object with properties from this page: https://docs.livekit.io/client-sdk-js/modules.html#AdaptiveStreamSettings
|
|
645
|
+
*/
|
|
646
|
+
adaptiveStream: boolean | object;
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* Defines an event that retrieves the set of options that the local user has for a room.
|
|
650
|
+
*/
|
|
651
|
+
export interface GetRoomOptionsAction extends AsyncAction {
|
|
652
|
+
type: 'get_room_options';
|
|
653
|
+
/**
|
|
654
|
+
* The name of the room.
|
|
655
|
+
*/
|
|
656
|
+
roomName: string;
|
|
657
|
+
}
|
|
658
|
+
/**
|
|
659
|
+
* Defines an event that retrieves the set of options that the local user has for a track.
|
|
660
|
+
*/
|
|
661
|
+
export interface GetRoomTrackOptionsAction extends AsyncAction {
|
|
662
|
+
type: 'get_room_track_options';
|
|
663
|
+
/**
|
|
664
|
+
* The name of the room.
|
|
665
|
+
*/
|
|
666
|
+
roomName: string;
|
|
667
|
+
/**
|
|
668
|
+
* The address of the track.
|
|
669
|
+
*/
|
|
670
|
+
address: string;
|
|
671
|
+
}
|
|
672
|
+
export interface SetRoomTrackOptionsAction extends AsyncAction {
|
|
673
|
+
type: 'set_room_track_options';
|
|
674
|
+
/**
|
|
675
|
+
* The name of the room.
|
|
676
|
+
*/
|
|
677
|
+
roomName: string;
|
|
678
|
+
/**
|
|
679
|
+
* The address of the track.
|
|
680
|
+
*/
|
|
681
|
+
address: string;
|
|
682
|
+
/**
|
|
683
|
+
* The options that should be set for the track.
|
|
684
|
+
*/
|
|
685
|
+
options: SetRoomTrackOptions;
|
|
686
|
+
}
|
|
687
|
+
/**
|
|
688
|
+
* Defines an interface that represents the set of options that can be set on a room video/audio track.
|
|
689
|
+
*
|
|
690
|
+
* @dochash types/os
|
|
691
|
+
* @docname SetRoomTrackOptions
|
|
692
|
+
*/
|
|
693
|
+
export interface SetRoomTrackOptions {
|
|
694
|
+
/**
|
|
695
|
+
* Whether to mute the track locally.
|
|
696
|
+
* This will prevent the track from streaming from the server to this device.
|
|
697
|
+
*/
|
|
698
|
+
muted?: boolean;
|
|
699
|
+
/**
|
|
700
|
+
* The video quality that the track should stream at.
|
|
701
|
+
*/
|
|
702
|
+
videoQuality?: TrackVideoQuality;
|
|
703
|
+
}
|
|
704
|
+
/**
|
|
705
|
+
* Defines an interface that represents the options that a audio/video track has.
|
|
706
|
+
*
|
|
707
|
+
* @dochash types/os
|
|
708
|
+
* @docname RoomTrackOptions
|
|
709
|
+
*/
|
|
710
|
+
export interface RoomTrackOptions {
|
|
711
|
+
/**
|
|
712
|
+
* Whether the track is being sourced from a remote user.
|
|
713
|
+
*/
|
|
714
|
+
isRemote: boolean;
|
|
715
|
+
/**
|
|
716
|
+
* The ID of the remote that is publishing this track.
|
|
717
|
+
*/
|
|
718
|
+
remoteId: string;
|
|
719
|
+
/**
|
|
720
|
+
* Whether the track is muted locally.
|
|
721
|
+
*/
|
|
722
|
+
muted: boolean;
|
|
723
|
+
/**
|
|
724
|
+
* The type of the track.
|
|
725
|
+
*/
|
|
726
|
+
kind: TrackKind;
|
|
727
|
+
/**
|
|
728
|
+
* The source of the track.
|
|
729
|
+
*/
|
|
730
|
+
source: TrackSource;
|
|
731
|
+
/**
|
|
732
|
+
* The video quality of the track if the track represents video.
|
|
733
|
+
*/
|
|
734
|
+
videoQuality?: TrackVideoQuality;
|
|
735
|
+
/**
|
|
736
|
+
* The dimensions of the video if the track represents a video.
|
|
737
|
+
*/
|
|
738
|
+
dimensions?: {
|
|
739
|
+
width: number;
|
|
740
|
+
height: number;
|
|
741
|
+
};
|
|
742
|
+
/**
|
|
743
|
+
* The aspect ratio of the video if the track represents a video.
|
|
744
|
+
*/
|
|
745
|
+
aspectRatio?: number;
|
|
746
|
+
}
|
|
747
|
+
export type TrackKind = 'video' | 'audio';
|
|
748
|
+
export type TrackSource = 'camera' | 'microphone' | 'screen_share' | 'screen_share_audio';
|
|
749
|
+
/**
|
|
750
|
+
* Defines the possible qualities that a track can stream at.
|
|
751
|
+
*
|
|
752
|
+
* @dochash types/os
|
|
753
|
+
* @docname TrackVideoQuality
|
|
754
|
+
*/
|
|
755
|
+
export type TrackVideoQuality = 'high' | 'medium' | 'low' | 'off';
|
|
756
|
+
/**
|
|
757
|
+
* Defines an event that retrieves the options for a remote multimedia chat room user.
|
|
758
|
+
*/
|
|
759
|
+
export interface GetRoomRemoteOptionsAction extends AsyncAction {
|
|
760
|
+
type: 'get_room_remote_options';
|
|
761
|
+
/**
|
|
762
|
+
* The name of the room.
|
|
763
|
+
*/
|
|
764
|
+
roomName: string;
|
|
765
|
+
/**
|
|
766
|
+
* The ID of the remote user.
|
|
767
|
+
*/
|
|
768
|
+
remoteId: string;
|
|
769
|
+
}
|
|
770
|
+
/**
|
|
771
|
+
* Defines an interface that contains options for a remote room user.
|
|
772
|
+
*
|
|
773
|
+
* @dochash types/os
|
|
774
|
+
* @docname RoomRemoteOptions
|
|
775
|
+
*/
|
|
776
|
+
export interface RoomRemoteOptions {
|
|
777
|
+
/**
|
|
778
|
+
* Gets the connection quality of the remote user.
|
|
779
|
+
*/
|
|
780
|
+
connectionQuality: 'excellent' | 'good' | 'poor' | 'unknown';
|
|
781
|
+
/**
|
|
782
|
+
* Whether the remote user has enabled their camera video.
|
|
783
|
+
*/
|
|
784
|
+
video: boolean;
|
|
785
|
+
/**
|
|
786
|
+
* Whether the remote user has enabled their microphone audio.
|
|
787
|
+
*/
|
|
788
|
+
audio: boolean;
|
|
789
|
+
/**
|
|
790
|
+
* Whether the remote user has enabled their screen share.
|
|
791
|
+
*/
|
|
792
|
+
screen: boolean;
|
|
793
|
+
/**
|
|
794
|
+
* The audio level that is being transmitted by the user.
|
|
795
|
+
* Between 0 and 1 with 1 being the loudest and 0 being the quietest.
|
|
796
|
+
*/
|
|
797
|
+
audioLevel: number;
|
|
798
|
+
}
|
|
799
|
+
/**
|
|
800
|
+
* Creates a new AIChatAction.
|
|
801
|
+
*
|
|
802
|
+
* @param messages The messages to include in the chat.
|
|
803
|
+
* @param options The options for the chat.
|
|
804
|
+
* @param taskId The ID of the async task.
|
|
805
|
+
*/
|
|
806
|
+
export declare function aiChat(messages: AIChatMessage[], options?: AIChatOptions, taskId?: number | string): AIChatAction;
|
|
807
|
+
/**
|
|
808
|
+
* Creates a new AIGenerateSkyboxAction.
|
|
809
|
+
* @param prompt The prompt that describes what the generated skybox should look like.
|
|
810
|
+
* @param negativePrompt The negative prompt that describes what the generated skybox should not look like.
|
|
811
|
+
* @param options The options for the skybox.
|
|
812
|
+
* @param taskId The ID of the async task.
|
|
813
|
+
*/
|
|
814
|
+
export declare function aiGenerateSkybox(prompt: string, negativePrompt: string | null | undefined, options?: AIGenerateSkyboxOptions, taskId?: number | string): AIGenerateSkyboxAction;
|
|
815
|
+
/**
|
|
816
|
+
* Creates a new AIGenerateImageAction.
|
|
817
|
+
* @param options The options.
|
|
818
|
+
* @param taskId The ID of the async task.
|
|
819
|
+
*/
|
|
820
|
+
export declare function aiGenerateImage(parameters: AIGenerateImageOptions, options?: RecordActionOptions, taskId?: number | string): AIGenerateImageAction;
|
|
821
|
+
/**
|
|
822
|
+
* Creates a GetPublicRecordKeyAction.
|
|
823
|
+
* @param recordName The name of the record.
|
|
824
|
+
* @param policy The policy that the requested record key should have.
|
|
825
|
+
* @param taskId The ID of the task.
|
|
826
|
+
*/
|
|
827
|
+
export declare function getPublicRecordKey(recordName: string, policy: PublicRecordKeyPolicy, taskId: number | string): GetPublicRecordKeyAction;
|
|
828
|
+
/**
|
|
829
|
+
* Creates a GrantRecordMarkerPermissionAction.
|
|
830
|
+
* @param recordName The name of the record.
|
|
831
|
+
* @param marker The marker.
|
|
832
|
+
* @param permission The permission that should be granted.
|
|
833
|
+
* @param options The options for the action.
|
|
834
|
+
* @param taskId The ID of the task.
|
|
835
|
+
*/
|
|
836
|
+
export declare function grantRecordMarkerPermission(recordName: string, marker: string, permission: object, options: RecordActionOptions, taskId: number | string): GrantRecordMarkerPermissionAction;
|
|
837
|
+
/**
|
|
838
|
+
* Creates a RevokeRecordMarkerPermissionAction.
|
|
839
|
+
* @param recordName The name of the record.
|
|
840
|
+
* @param marker The marker.
|
|
841
|
+
* @param permission The permission that should be granted.
|
|
842
|
+
* @param options The options for the action.
|
|
843
|
+
* @param taskId The ID of the task.
|
|
844
|
+
*/
|
|
845
|
+
export declare function revokeRecordMarkerPermission(recordName: string, marker: string, permission: object, options: RecordActionOptions, taskId: number | string): RevokeRecordMarkerPermissionAction;
|
|
846
|
+
/**
|
|
847
|
+
* Creates a GrantRoleAction for a user.
|
|
848
|
+
* @param recordName The name of the record.
|
|
849
|
+
* @param role The role that should be granted.
|
|
850
|
+
* @param userId The ID of the user.
|
|
851
|
+
* @param expireTimeMs The Unix time (in miliseconds) that the role grant expires.
|
|
852
|
+
* @param options The options for the action.
|
|
853
|
+
* @param taskId The ID of the task.
|
|
854
|
+
*/
|
|
855
|
+
export declare function grantUserRole(recordName: string, role: string, userId: string, expireTimeMs: number | null, options: RecordActionOptions, taskId: number | string): GrantRoleAction;
|
|
856
|
+
/**
|
|
857
|
+
* Creates a GrantRoleAction for an inst.
|
|
858
|
+
* @param recordName The name of the record.
|
|
859
|
+
* @param role The role that should be granted.
|
|
860
|
+
* @param inst The ID of the inst.
|
|
861
|
+
* @param expireTimeMs The Unix time (in miliseconds) that the role grant expires.
|
|
862
|
+
* @param options The options for the action.
|
|
863
|
+
* @param taskId The ID of the task.
|
|
864
|
+
*/
|
|
865
|
+
export declare function grantInstRole(recordName: string, role: string, inst: string, expireTimeMs: number | null, options: RecordActionOptions, taskId: number | string): GrantRoleAction;
|
|
866
|
+
/**
|
|
867
|
+
* Creates a GrantRoleAction for a user.
|
|
868
|
+
* @param recordName The name of the record.
|
|
869
|
+
* @param role The role that should be granted.
|
|
870
|
+
* @param userId The ID of the user.
|
|
871
|
+
* @param options The options for the action.
|
|
872
|
+
* @param taskId The ID of the task.
|
|
873
|
+
*/
|
|
874
|
+
export declare function revokeUserRole(recordName: string, role: string, userId: string, options: RecordActionOptions, taskId: number | string): RevokeRoleAction;
|
|
875
|
+
/**
|
|
876
|
+
* Creates a revokeRoleAction for an inst.
|
|
877
|
+
* @param recordName The name of the record.
|
|
878
|
+
* @param role The role that should be revokeed.
|
|
879
|
+
* @param inst The ID of the inst.
|
|
880
|
+
* @param options The options for the action.
|
|
881
|
+
* @param taskId The ID of the task.
|
|
882
|
+
*/
|
|
883
|
+
export declare function revokeInstRole(recordName: string, role: string, inst: string, options: RecordActionOptions, taskId: number | string): RevokeRoleAction;
|
|
884
|
+
/**
|
|
885
|
+
* Creates a GrantInstAdminPermissionAction.
|
|
886
|
+
* @param recordName The name of the record.
|
|
887
|
+
* @param options The options for the action.
|
|
888
|
+
* @param taskId The ID of the task.
|
|
889
|
+
*/
|
|
890
|
+
export declare function grantInstAdminPermission(recordName: string, options: RecordActionOptions, taskId: number | string): GrantInstAdminPermissionAction;
|
|
891
|
+
/**
|
|
892
|
+
* Creates a RecordDataAction.
|
|
893
|
+
* @param recordKey The key that should be used to access the record.
|
|
894
|
+
* @param address The address that the data should be stored at in the record.
|
|
895
|
+
* @param data The data to store.
|
|
896
|
+
* @param requiresApproval Whether to try to record data that requires approval.
|
|
897
|
+
* @param options The options that should be used for the action.
|
|
898
|
+
* @param taskId The ID of the task.
|
|
899
|
+
*/
|
|
900
|
+
export declare function recordData(recordKey: string, address: string, data: any, requiresApproval: boolean, options: DataRecordOptions, taskId: number | string): RecordDataAction;
|
|
901
|
+
/**
|
|
902
|
+
* Creates a GetRecordDataAction.
|
|
903
|
+
* @param recordName The name of the record to retrieve.
|
|
904
|
+
* @param address The address of the data to retrieve.
|
|
905
|
+
* @param requiresApproval Whether to try to get a record that requires manual approval.
|
|
906
|
+
* @param options The options that should be used for the action.
|
|
907
|
+
* @param taskId The ID of the task.
|
|
908
|
+
*/
|
|
909
|
+
export declare function getRecordData(recordName: string, address: string, requiresApproval: boolean, options: RecordActionOptions, taskId?: number | string): GetRecordDataAction;
|
|
910
|
+
/**
|
|
911
|
+
* Creates a ListRecordDataAction.
|
|
912
|
+
* @param recordName The name of the record.
|
|
913
|
+
* @param startingAddress The address that the list should start with.
|
|
914
|
+
* @param options The options that should be used for the action.
|
|
915
|
+
* @param taskId The ID of the task.
|
|
916
|
+
*/
|
|
917
|
+
export declare function listDataRecord(recordName: string, startingAddress: string, options: RecordActionOptions, taskId?: number | string): ListRecordDataAction;
|
|
918
|
+
/**
|
|
919
|
+
* Creates a EraseRecordDataAction.
|
|
920
|
+
* @param recordKey The key that should be used to access the record.
|
|
921
|
+
* @param address The address of the data to erase.
|
|
922
|
+
* @param requiresApproval Whether to try to erase a record that requires manual approval.
|
|
923
|
+
* @param options The options that should be used for the action.
|
|
924
|
+
* @param taskId The ID of the task.
|
|
925
|
+
*/
|
|
926
|
+
export declare function eraseRecordData(recordKey: string, address: string, requiresApproval: boolean, options: RecordActionOptions, taskId?: number | string): EraseRecordDataAction;
|
|
927
|
+
/**
|
|
928
|
+
* Creates a RecordFileAction.
|
|
929
|
+
* @param recordKey The key that should be used to access the record.
|
|
930
|
+
* @param data The data to store.
|
|
931
|
+
* @param description The description of the file.
|
|
932
|
+
* @param mimeType The MIME type of the file.
|
|
933
|
+
* @param markers The markers to associate with the file.
|
|
934
|
+
* @param options The options that should be used for the action.
|
|
935
|
+
*/
|
|
936
|
+
export declare function recordFile(recordKey: string, data: any, description: string, mimeType: string, options: RecordFileActionOptions, taskId?: number | string): RecordFileAction;
|
|
937
|
+
/**
|
|
938
|
+
* Creates a GetFileAction.
|
|
939
|
+
* @param recordKey The key that should be used to access the record.
|
|
940
|
+
* @param fileUrl The URL that the file was stored at.
|
|
941
|
+
* @param options The options that should be used for the action.
|
|
942
|
+
* @param taskId The ID of the task.
|
|
943
|
+
*/
|
|
944
|
+
export declare function getFile(fileUrl: string, options: RecordActionOptions, taskId?: number | string): GetFileAction;
|
|
945
|
+
/**
|
|
946
|
+
* Creates a EraseFileAction.
|
|
947
|
+
* @param recordKey The key that should be used to access the record.
|
|
948
|
+
* @param fileUrl The URL that the file was stored at.
|
|
949
|
+
* @param options The options that should be used for the action.
|
|
950
|
+
* @param taskId The ID of the task.
|
|
951
|
+
*/
|
|
952
|
+
export declare function eraseFile(recordKey: string, fileUrl: string, options: RecordActionOptions, taskId?: number | string): EraseFileAction;
|
|
953
|
+
/**
|
|
954
|
+
* Creates a RecordEventAction.
|
|
955
|
+
* @param recordKey The key that should be used to access the record.
|
|
956
|
+
* @param eventName The name of the event.
|
|
957
|
+
* @param count The number of times that the event occurred.
|
|
958
|
+
* @param options The options that should be used for the action.
|
|
959
|
+
* @param taskId The Id of the task.
|
|
960
|
+
*/
|
|
961
|
+
export declare function recordEvent(recordKey: string, eventName: string, count: number, options: RecordActionOptions, taskId?: number | string): RecordEventAction;
|
|
962
|
+
/**
|
|
963
|
+
* Creates a GetEventCountAction.
|
|
964
|
+
* @param recordName The name of the record.
|
|
965
|
+
* @param eventName The name of the events.
|
|
966
|
+
* @param options The options that should be used for the action.
|
|
967
|
+
* @param taskId The ID.
|
|
968
|
+
*/
|
|
969
|
+
export declare function getEventCount(recordName: string, eventName: string, options: RecordActionOptions, taskId?: number | string): GetEventCountAction;
|
|
970
|
+
/**
|
|
971
|
+
* Creates a ListUserStudiosAction.
|
|
972
|
+
* @param options The options that should be used for the action.
|
|
973
|
+
* @param taskId The ID of the task.
|
|
974
|
+
*/
|
|
975
|
+
export declare function listUserStudios(options: RecordActionOptions, taskId?: number | string): ListUserStudiosAction;
|
|
976
|
+
/**
|
|
977
|
+
* Creates a new JoinRoomAction.
|
|
978
|
+
* @param roomName The name of the room.
|
|
979
|
+
* @param options The options to use for the event.
|
|
980
|
+
* @param taskId The ID of the async task.
|
|
981
|
+
*/
|
|
982
|
+
export declare function joinRoom(roomName: string, options: JoinRoomActionOptions, taskId?: number | string): JoinRoomAction;
|
|
983
|
+
/**
|
|
984
|
+
* Creates a new LeaveRoomAction.
|
|
985
|
+
* @param roomName The name of the room.
|
|
986
|
+
* @param options The options to use for the event.
|
|
987
|
+
* @param taskId The ID of the async task.
|
|
988
|
+
*/
|
|
989
|
+
export declare function leaveRoom(roomName: string, options: RecordActionOptions, taskId?: number | string): LeaveRoomAction;
|
|
990
|
+
/**
|
|
991
|
+
* Creates a new SetRoomOptionsAction.
|
|
992
|
+
* @param roomName The name of the room.
|
|
993
|
+
* @param options The options to use for the event.
|
|
994
|
+
* @param taskId The ID of the async task.
|
|
995
|
+
*/
|
|
996
|
+
export declare function setRoomOptions(roomName: string, options: Partial<RoomOptions>, taskId?: number | string): SetRoomOptionsAction;
|
|
997
|
+
/**
|
|
998
|
+
* Creates a new GetRoomOptionsAction.
|
|
999
|
+
* @param roomName The name of the room.
|
|
1000
|
+
* @param taskId The ID of the async task.
|
|
1001
|
+
*/
|
|
1002
|
+
export declare function getRoomOptions(roomName: string, taskId?: number | string): GetRoomOptionsAction;
|
|
1003
|
+
/**
|
|
1004
|
+
* Creates a new GetRoomTrackOptionsAction.
|
|
1005
|
+
* @param roomName The name of the room.
|
|
1006
|
+
* @param address The address of the track.
|
|
1007
|
+
* @param taskId The ID of the task.
|
|
1008
|
+
*/
|
|
1009
|
+
export declare function getRoomTrackOptions(roomName: string, address: string, taskId?: number | string): GetRoomTrackOptionsAction;
|
|
1010
|
+
/**
|
|
1011
|
+
* Creates a new SetRoomTrackOptionsAction.
|
|
1012
|
+
* @param roomName The name of the room.
|
|
1013
|
+
* @param address The address of the track.
|
|
1014
|
+
* @param options The options that should be set.
|
|
1015
|
+
* @param taskId The ID of the task.
|
|
1016
|
+
*/
|
|
1017
|
+
export declare function setRoomTrackOptions(roomName: string, address: string, options: SetRoomTrackOptions, taskId?: number | string): SetRoomTrackOptionsAction;
|
|
1018
|
+
/**
|
|
1019
|
+
* Creates a new GetRoomRemoteOptionsAction.
|
|
1020
|
+
* @param roomName The name of the room.
|
|
1021
|
+
* @param remoteId The ID of the remote user.
|
|
1022
|
+
* @param taskId The ID of the task.
|
|
1023
|
+
*/
|
|
1024
|
+
export declare function getRoomRemoteOptions(roomName: string, remoteId: string, taskId?: number | string): GetRoomRemoteOptionsAction;
|
|
1025
|
+
//# sourceMappingURL=RecordsEvents.d.ts.map
|