@casual-simulation/aux-common 2.0.28 → 2.0.32
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/bots/Bot.d.ts +24 -0
- package/bots/Bot.js +34 -0
- package/bots/Bot.js.map +1 -1
- package/bots/BotEvents.d.ts +119 -6
- package/bots/BotEvents.js +75 -2
- package/bots/BotEvents.js.map +1 -1
- package/package.json +4 -4
- package/partitions/AuxPartitionConfig.d.ts +8 -8
- package/runtime/AuxLibrary.d.ts +13 -35
- package/runtime/AuxLibrary.js +137 -5
- package/runtime/AuxLibrary.js.map +1 -1
- package/runtime/AuxLibraryDefinitions.def +160 -48
- package/runtime/Utils.d.ts +1 -0
- package/runtime/Utils.js +13 -0
- package/runtime/Utils.js.map +1 -1
- package/state-machine/StateMachine.js.map +1 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
type MaskFunc<Func extends ((...args: any[]) => any)> = {
|
|
3
2
|
(...args: Parameters<Func>): ReturnType<Func>;
|
|
4
3
|
|
|
@@ -233,7 +232,8 @@ declare type ExtraActions =
|
|
|
233
232
|
| AddDropSnapTargetsAction
|
|
234
233
|
| EnableCustomDraggingAction
|
|
235
234
|
| EnablePOVAction
|
|
236
|
-
| SetAppOutputAction
|
|
235
|
+
| SetAppOutputAction
|
|
236
|
+
| MeetCommandAction;
|
|
237
237
|
|
|
238
238
|
/**
|
|
239
239
|
* Defines a set of possible async action types.
|
|
@@ -258,7 +258,9 @@ declare type AsyncActions =
|
|
|
258
258
|
| EndRecordingAction
|
|
259
259
|
| SpeakTextAction
|
|
260
260
|
| GetVoicesAction
|
|
261
|
-
| GetGeolocationAction
|
|
261
|
+
| GetGeolocationAction
|
|
262
|
+
| ARSupportedAction
|
|
263
|
+
| VRSupportedAction;
|
|
262
264
|
|
|
263
265
|
/**
|
|
264
266
|
* Defines an interface for actions that represent asynchronous tasks.
|
|
@@ -1754,10 +1756,24 @@ declare interface EnableVRAction {
|
|
|
1754
1756
|
enabled: boolean;
|
|
1755
1757
|
}
|
|
1756
1758
|
|
|
1759
|
+
/**
|
|
1760
|
+
* Defines an event that checks for AR support on the device.
|
|
1761
|
+
*/
|
|
1762
|
+
declare interface ARSupportedAction extends AsyncAction {
|
|
1763
|
+
type: 'ar_supported';
|
|
1764
|
+
}
|
|
1765
|
+
|
|
1766
|
+
/**
|
|
1767
|
+
* Defines an event that checks for VR support on the device.
|
|
1768
|
+
*/
|
|
1769
|
+
declare interface VRSupportedAction extends AsyncAction {
|
|
1770
|
+
type: 'vr_supported';
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1757
1773
|
/**
|
|
1758
1774
|
* Defines an event that enables POV on the device.
|
|
1759
1775
|
*/
|
|
1760
|
-
|
|
1776
|
+
declare interface EnablePOVAction {
|
|
1761
1777
|
type: 'enable_pov';
|
|
1762
1778
|
|
|
1763
1779
|
/**
|
|
@@ -1771,6 +1787,23 @@ declare interface EnableVRAction {
|
|
|
1771
1787
|
center?: { x: number, y: number, z: number };
|
|
1772
1788
|
}
|
|
1773
1789
|
|
|
1790
|
+
/**
|
|
1791
|
+
* An event that is used to send a command to the Jitsi Meet API.
|
|
1792
|
+
*/
|
|
1793
|
+
declare interface MeetCommandAction{
|
|
1794
|
+
type: 'meet_command',
|
|
1795
|
+
|
|
1796
|
+
/**
|
|
1797
|
+
* The name of the command to execute.
|
|
1798
|
+
*/
|
|
1799
|
+
command: string;
|
|
1800
|
+
|
|
1801
|
+
/**
|
|
1802
|
+
* The arguments for the command (if any).
|
|
1803
|
+
*/
|
|
1804
|
+
args?: any[];
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1774
1807
|
/**
|
|
1775
1808
|
* Defines an event that shows a QR code that is a link to a inst & dimension.
|
|
1776
1809
|
*/
|
|
@@ -2760,45 +2793,6 @@ declare interface PerformanceStats {
|
|
|
2760
2793
|
numberOfActiveTimers: number;
|
|
2761
2794
|
}
|
|
2762
2795
|
|
|
2763
|
-
/**
|
|
2764
|
-
* Defines an interface that represents the list of bots and tags that are included in a bundle.
|
|
2765
|
-
*/
|
|
2766
|
-
export interface BundleModules {
|
|
2767
|
-
[id: string]: Set<string>;
|
|
2768
|
-
}
|
|
2769
|
-
|
|
2770
|
-
/**
|
|
2771
|
-
* Defines an interface that represents a bundle of code.
|
|
2772
|
-
*/
|
|
2773
|
-
export interface CodeBundle {
|
|
2774
|
-
/**
|
|
2775
|
-
* The tag the bundle was built from.
|
|
2776
|
-
*/
|
|
2777
|
-
tag: string;
|
|
2778
|
-
|
|
2779
|
-
/**
|
|
2780
|
-
* The source code that the bundle contains.
|
|
2781
|
-
* If an error occurred, then this will be null/undefined.
|
|
2782
|
-
*/
|
|
2783
|
-
source?: string;
|
|
2784
|
-
|
|
2785
|
-
/**
|
|
2786
|
-
* The error that occurred while building the bundle.
|
|
2787
|
-
* Null/Undefined if an error did not happen.
|
|
2788
|
-
*/
|
|
2789
|
-
error?: string;
|
|
2790
|
-
|
|
2791
|
-
/**
|
|
2792
|
-
* The list of warnings that occurred while building the bundle.
|
|
2793
|
-
*/
|
|
2794
|
-
warnings: string[];
|
|
2795
|
-
|
|
2796
|
-
/**
|
|
2797
|
-
* The list of modules that the bundle contains.
|
|
2798
|
-
*/
|
|
2799
|
-
modules: BundleModules;
|
|
2800
|
-
}
|
|
2801
|
-
|
|
2802
2796
|
/**
|
|
2803
2797
|
* Defines an interface for a function that provides HTML VDOM capabilities to bots.
|
|
2804
2798
|
*/
|
|
@@ -2931,6 +2925,7 @@ export interface RecordDataFailure {
|
|
|
2931
2925
|
| InvalidRecordKey
|
|
2932
2926
|
| RecordNotFoundError
|
|
2933
2927
|
| NotSupportedError
|
|
2928
|
+
| 'not_authorized'
|
|
2934
2929
|
| 'data_too_large';
|
|
2935
2930
|
errorMessage: string;
|
|
2936
2931
|
}
|
|
@@ -2966,7 +2961,27 @@ export interface GetDataSuccess {
|
|
|
2966
2961
|
|
|
2967
2962
|
export interface GetDataFailure {
|
|
2968
2963
|
success: false;
|
|
2969
|
-
errorCode: ServerError | 'data_not_found' | NotSupportedError;
|
|
2964
|
+
errorCode: ServerError | 'data_not_found' | 'not_authorized' | NotSupportedError;
|
|
2965
|
+
errorMessage: string;
|
|
2966
|
+
}
|
|
2967
|
+
|
|
2968
|
+
export type EraseDataResult = EraseDataSuccess | EraseDataFailure;
|
|
2969
|
+
|
|
2970
|
+
export interface EraseDataSuccess {
|
|
2971
|
+
success: true;
|
|
2972
|
+
recordName: string;
|
|
2973
|
+
address: string;
|
|
2974
|
+
}
|
|
2975
|
+
|
|
2976
|
+
export interface EraseDataFailure {
|
|
2977
|
+
success: false;
|
|
2978
|
+
errorCode: ServerError
|
|
2979
|
+
| NotLoggedInError
|
|
2980
|
+
| InvalidRecordKey
|
|
2981
|
+
| RecordNotFoundError
|
|
2982
|
+
| NotSupportedError
|
|
2983
|
+
| 'not_authorized'
|
|
2984
|
+
| 'data_not_found';
|
|
2970
2985
|
errorMessage: string;
|
|
2971
2986
|
}
|
|
2972
2987
|
|
|
@@ -3001,6 +3016,25 @@ export interface RecordFileFailure {
|
|
|
3001
3016
|
errorMessage: string;
|
|
3002
3017
|
}
|
|
3003
3018
|
|
|
3019
|
+
|
|
3020
|
+
export type EraseFileResult = EraseFileSuccess | EraseFileFailure;
|
|
3021
|
+
export interface EraseFileSuccess {
|
|
3022
|
+
success: true;
|
|
3023
|
+
recordName: string;
|
|
3024
|
+
fileName: string;
|
|
3025
|
+
}
|
|
3026
|
+
|
|
3027
|
+
export interface EraseFileFailure {
|
|
3028
|
+
success: false;
|
|
3029
|
+
errorCode: ServerError
|
|
3030
|
+
| InvalidRecordKey
|
|
3031
|
+
| RecordNotFoundError
|
|
3032
|
+
| NotLoggedInError
|
|
3033
|
+
| NotSupportedError
|
|
3034
|
+
| 'file_not_found';
|
|
3035
|
+
errorMessage: string;
|
|
3036
|
+
}
|
|
3037
|
+
|
|
3004
3038
|
export interface AudioRecordingOptions {
|
|
3005
3039
|
/**
|
|
3006
3040
|
* Whether to stream the audio recording.
|
|
@@ -4650,6 +4684,16 @@ interface Os {
|
|
|
4650
4684
|
*/
|
|
4651
4685
|
disableVR(): EnableVRAction;
|
|
4652
4686
|
|
|
4687
|
+
/**
|
|
4688
|
+
* Promise that returns wether or not AR is supported on the device.
|
|
4689
|
+
*/
|
|
4690
|
+
arSupported(): Promise<boolean>;
|
|
4691
|
+
|
|
4692
|
+
/**
|
|
4693
|
+
* Promise that returns wether or not VR is supported on the device.
|
|
4694
|
+
*/
|
|
4695
|
+
vrSupported(): Promise<boolean>;
|
|
4696
|
+
|
|
4653
4697
|
/**
|
|
4654
4698
|
* Enables Point-of-View mode.
|
|
4655
4699
|
* @param center The position that the camera should be placed at. Defaults to (0,0,0)
|
|
@@ -4824,6 +4868,13 @@ interface Os {
|
|
|
4824
4868
|
*/
|
|
4825
4869
|
endAudioRecording(): Promise<Blob>;
|
|
4826
4870
|
|
|
4871
|
+
/**
|
|
4872
|
+
* Sends a command to the Jitsi Meet API.
|
|
4873
|
+
* @param command The name of the command to execute.
|
|
4874
|
+
* @param args The arguments for the command (if any).
|
|
4875
|
+
*/
|
|
4876
|
+
meetCommand(command: string, ...args: any[]): MeetCommandAction;
|
|
4877
|
+
|
|
4827
4878
|
/**
|
|
4828
4879
|
* Shows a QR Code that contains a link to a inst and dimension.
|
|
4829
4880
|
* @param inst The inst that should be joined. Defaults to the current inst.
|
|
@@ -5246,7 +5297,7 @@ interface Os {
|
|
|
5246
5297
|
* @param address The address that the data should be stored at inside the record.
|
|
5247
5298
|
* @param data The data that should be stored.
|
|
5248
5299
|
*/
|
|
5249
|
-
|
|
5300
|
+
recordData(
|
|
5250
5301
|
recordKey: string,
|
|
5251
5302
|
address: string,
|
|
5252
5303
|
data: any
|
|
@@ -5262,6 +5313,48 @@ interface Os {
|
|
|
5262
5313
|
address: string
|
|
5263
5314
|
): Promise<GetDataResult>;
|
|
5264
5315
|
|
|
5316
|
+
/**
|
|
5317
|
+
* Erases the data stored in the given record at the given address.
|
|
5318
|
+
* @param recordKey The key that should be used to access the record.
|
|
5319
|
+
* @param address The address that the data should be erased from.
|
|
5320
|
+
*/
|
|
5321
|
+
eraseData(recordKey: string, address: string): Promise<EraseDataResult>;
|
|
5322
|
+
|
|
5323
|
+
/**
|
|
5324
|
+
* Records the given data to the given address inside the record for the given record key.
|
|
5325
|
+
* This data needs to be manually approved when reading, writing, or erasing it.
|
|
5326
|
+
*
|
|
5327
|
+
* @param recordKey The key that should be used to access the record.
|
|
5328
|
+
* @param address The address that the data should be stored at inside the record.
|
|
5329
|
+
* @param data The data that should be stored.
|
|
5330
|
+
*/
|
|
5331
|
+
recordManualApprovalData(
|
|
5332
|
+
recordKey: string,
|
|
5333
|
+
address: string,
|
|
5334
|
+
data: any
|
|
5335
|
+
): Promise<RecordDataResult>;
|
|
5336
|
+
|
|
5337
|
+
/**
|
|
5338
|
+
* Gets the data stored in the given record at the given address.
|
|
5339
|
+
* This data needs to be manually approved when reading, writing, or erasing it.
|
|
5340
|
+
*
|
|
5341
|
+
* @param recordKeyOrName The record that the data should be retrieved from.
|
|
5342
|
+
* @param address The address that the data is stored at.
|
|
5343
|
+
*/
|
|
5344
|
+
getManualApprovalData(
|
|
5345
|
+
recordKeyOrName: string,
|
|
5346
|
+
address: string
|
|
5347
|
+
): Promise<GetDataResult>;
|
|
5348
|
+
|
|
5349
|
+
/**
|
|
5350
|
+
* Erases the data stored in the given record at the given address.
|
|
5351
|
+
* This data needs to be manually approved when reading, writing, or erasing it.
|
|
5352
|
+
*
|
|
5353
|
+
* @param recordKey The key that should be used to access the record.
|
|
5354
|
+
* @param address The address that the data should be erased from.
|
|
5355
|
+
*/
|
|
5356
|
+
eraseManualApprovalData(recordKey: string, address: string): Promise<EraseDataResult>;
|
|
5357
|
+
|
|
5265
5358
|
/**
|
|
5266
5359
|
* Records the given data as a file.
|
|
5267
5360
|
* @param recordKey The record that the file should be recorded in.
|
|
@@ -5278,17 +5371,36 @@ interface Os {
|
|
|
5278
5371
|
* Gets the data stored in the given file.
|
|
5279
5372
|
* @param result The successful result of a os.recordFile() call.
|
|
5280
5373
|
*/
|
|
5281
|
-
|
|
5374
|
+
getFile(result: RecordFileSuccess): Promise<any>;
|
|
5282
5375
|
/**
|
|
5283
5376
|
* Gets the data stored in the given file.
|
|
5284
5377
|
* @param url The URL that the file is stored at.
|
|
5285
5378
|
*/
|
|
5286
|
-
|
|
5379
|
+
getFile(url: string): Promise<any>;
|
|
5287
5380
|
/**
|
|
5288
5381
|
* Gets the data stored in the given file.
|
|
5289
5382
|
* @param urlOrRecordFileResult The URL or the successful result of the record file operation.
|
|
5290
5383
|
*/
|
|
5291
|
-
|
|
5384
|
+
getFile(urlOrRecordFileResult: string | RecordFileSuccess): Promise<any>;
|
|
5385
|
+
|
|
5386
|
+
/**
|
|
5387
|
+
* Deletes the specified file using the given record key.
|
|
5388
|
+
* @param recordKey The key that should be used to delete the file.
|
|
5389
|
+
* @param result The successful result of a os.recordFile() call.
|
|
5390
|
+
*/
|
|
5391
|
+
eraseFile(recordKey: string, result: RecordFileSuccess): Promise<EraseFileResult>;
|
|
5392
|
+
/**
|
|
5393
|
+
* Deletes the specified file using the given record key.
|
|
5394
|
+
* @param recordKey The key that should be used to delete the file.
|
|
5395
|
+
* @param url The URL that the file is stored at.
|
|
5396
|
+
*/
|
|
5397
|
+
eraseFile(recordKey: string, url: string): Promise<EraseFileResult>;
|
|
5398
|
+
/**
|
|
5399
|
+
* Deletes the specified file using the given record key.
|
|
5400
|
+
* @param recordKey The key that should be used to delete the file.
|
|
5401
|
+
* @param urlOrRecordFileResult The URL or the successful result of the record file operation.
|
|
5402
|
+
*/
|
|
5403
|
+
eraseFile(recordKey: string, fileUrlOrRecordFileResult: string | RecordFileSuccess): Promise<EraseFileResult>;
|
|
5292
5404
|
|
|
5293
5405
|
/**
|
|
5294
5406
|
* Converts the given geolocation to a what3words (https://what3words.com/) address.
|
package/runtime/Utils.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { RealtimeEditMode } from './RuntimeBot';
|
|
2
2
|
import { AuxPartitionRealtimeStrategy } from '../partitions/AuxPartition';
|
|
3
3
|
import { Easing, EaseType } from '../bots';
|
|
4
|
+
import './BlobPolyfill';
|
|
4
5
|
/**
|
|
5
6
|
* Converts the given error to a copiable value.
|
|
6
7
|
* Returns a new value that can be sent over to web workers.
|
package/runtime/Utils.js
CHANGED
|
@@ -2,6 +2,7 @@ import { RealtimeEditMode } from './RuntimeBot';
|
|
|
2
2
|
import { hasValue, isBot, isRuntimeBot } from '../bots/BotCalculations';
|
|
3
3
|
import { forOwn } from 'lodash';
|
|
4
4
|
import TWEEN from '@tweenjs/tween.js';
|
|
5
|
+
import './BlobPolyfill';
|
|
5
6
|
/**
|
|
6
7
|
* Converts the given error to a copiable value.
|
|
7
8
|
* Returns a new value that can be sent over to web workers.
|
|
@@ -65,6 +66,9 @@ function _convertToCopiableValue(value, depth, map) {
|
|
|
65
66
|
id: value.id,
|
|
66
67
|
tags: value.tags.toJSON(),
|
|
67
68
|
};
|
|
69
|
+
if (hasValue(value.space)) {
|
|
70
|
+
result.space = value.space;
|
|
71
|
+
}
|
|
68
72
|
map.set(value, result);
|
|
69
73
|
return result;
|
|
70
74
|
}
|
|
@@ -88,6 +92,15 @@ function _convertToCopiableValue(value, depth, map) {
|
|
|
88
92
|
else if (value instanceof Date) {
|
|
89
93
|
return value;
|
|
90
94
|
}
|
|
95
|
+
else if (value instanceof Blob) {
|
|
96
|
+
return value;
|
|
97
|
+
}
|
|
98
|
+
else if (value instanceof ArrayBuffer) {
|
|
99
|
+
return value;
|
|
100
|
+
}
|
|
101
|
+
else if (ArrayBuffer.isView(value)) {
|
|
102
|
+
return value;
|
|
103
|
+
}
|
|
91
104
|
else {
|
|
92
105
|
let result = {};
|
|
93
106
|
map.set(value, result);
|
package/runtime/Utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Utils.js","sourceRoot":"","sources":["Utils.ts"],"names":[],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