@casual-simulation/aux-runtime 3.8.0-alpha.18508342733 → 3.8.1-alpha.18755991904
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/package.json +4 -4
- package/runtime/AuxLibrary.d.ts +2 -1
- package/runtime/AuxLibrary.js +36 -1
- package/runtime/AuxLibrary.js.map +1 -1
- package/runtime/AuxLibraryDefinitions.def +232 -194
- package/runtime/RecordsEvents.js +1 -1
- package/runtime/RecordsEvents.js.map +1 -1
- package/runtime/Transpiler.js +1 -1
- package/runtime/Transpiler.js.map +1 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
// Preact Hooks Types
|
|
3
2
|
type Inputs = ReadonlyArray<unknown>;
|
|
4
3
|
|
|
@@ -6,11 +5,11 @@ export type StateUpdater<S> = (value: S | ((prevState: S) => S)) => void;
|
|
|
6
5
|
|
|
7
6
|
export type Reducer<S, A> = (prevState: S, action: A) => S;
|
|
8
7
|
interface Ref<T> {
|
|
9
|
-
|
|
8
|
+
readonly current: T | null;
|
|
10
9
|
}
|
|
11
10
|
|
|
12
11
|
interface MutableRef<T> {
|
|
13
|
-
|
|
12
|
+
current: T;
|
|
14
13
|
}
|
|
15
14
|
// End Preact Hooks Types
|
|
16
15
|
|
|
@@ -262,6 +261,7 @@ declare type AsyncActions =
|
|
|
262
261
|
| AsyncErrorAction
|
|
263
262
|
| ShowInputAction
|
|
264
263
|
| ShowConfirmAction
|
|
264
|
+
| ShowAlertAction
|
|
265
265
|
| ShareAction
|
|
266
266
|
| CreateCertificateAction
|
|
267
267
|
| SignTagAction
|
|
@@ -580,25 +580,25 @@ export interface FocusOnOptions {
|
|
|
580
580
|
* The tag that should be focused.
|
|
581
581
|
* Only supported by the system portal.
|
|
582
582
|
*/
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
583
|
+
tag?: string;
|
|
584
|
+
|
|
585
|
+
/**
|
|
586
|
+
* The space of the tag that should be focused.
|
|
587
|
+
* Only supported by the system portal.
|
|
588
|
+
*/
|
|
589
|
+
space?: string;
|
|
590
|
+
|
|
591
|
+
/**
|
|
592
|
+
* The line number that should be focued.
|
|
593
|
+
* Only supported by the system portal.
|
|
594
|
+
*/
|
|
595
|
+
lineNumber?: number;
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* The column number that should be focused.
|
|
599
|
+
* Only supported by the system portal.
|
|
600
|
+
*/
|
|
601
|
+
columnNumber?: number;
|
|
602
602
|
|
|
603
603
|
/**
|
|
604
604
|
* The portal that the bot should be focused in.
|
|
@@ -1506,6 +1506,38 @@ declare interface ShowConfirmOptions {
|
|
|
1506
1506
|
cancelText?: string;
|
|
1507
1507
|
}
|
|
1508
1508
|
|
|
1509
|
+
/**
|
|
1510
|
+
* Defines an event that is used to show an alert dialog.
|
|
1511
|
+
*/
|
|
1512
|
+
declare interface ShowAlertAction extends AsyncAction {
|
|
1513
|
+
type: 'show_alert';
|
|
1514
|
+
|
|
1515
|
+
/**
|
|
1516
|
+
* The options for the alert dialog.
|
|
1517
|
+
*/
|
|
1518
|
+
options: ShowAlertOptions;
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
/**
|
|
1522
|
+
* Defines an interface that represents the options that can be used for an alert dialog.
|
|
1523
|
+
*/
|
|
1524
|
+
declare interface ShowAlertOptions {
|
|
1525
|
+
/**
|
|
1526
|
+
* The title that should be shown for the dialog.
|
|
1527
|
+
*/
|
|
1528
|
+
title: string;
|
|
1529
|
+
|
|
1530
|
+
/**
|
|
1531
|
+
* The content of the dialog.
|
|
1532
|
+
*/
|
|
1533
|
+
content: string;
|
|
1534
|
+
|
|
1535
|
+
/**
|
|
1536
|
+
* The text that should be shown on the dismiss button.
|
|
1537
|
+
*/
|
|
1538
|
+
dismissText?: string;
|
|
1539
|
+
}
|
|
1540
|
+
|
|
1509
1541
|
/**
|
|
1510
1542
|
* Defines an event for actions.
|
|
1511
1543
|
* Actions are basically user-defined events.
|
|
@@ -2014,7 +2046,7 @@ export interface AddDropSnapAction extends Action {
|
|
|
2014
2046
|
* The ID of the bot that, when it is a drop target, the snap points should be enabled.
|
|
2015
2047
|
* If null, then the targets apply globally during the drag operation.
|
|
2016
2048
|
*/
|
|
2017
|
-
|
|
2049
|
+
botId?: string;
|
|
2018
2050
|
}
|
|
2019
2051
|
|
|
2020
2052
|
/**
|
|
@@ -2287,7 +2319,7 @@ declare interface RegisterPrefixOptions {
|
|
|
2287
2319
|
/**
|
|
2288
2320
|
* The name of the prefix.
|
|
2289
2321
|
*/
|
|
2290
|
-
|
|
2322
|
+
name?: string;
|
|
2291
2323
|
}
|
|
2292
2324
|
|
|
2293
2325
|
|
|
@@ -3045,15 +3077,15 @@ export interface CreatePublicRecordKeyFailure {
|
|
|
3045
3077
|
/**
|
|
3046
3078
|
* The type of error that occurred.
|
|
3047
3079
|
*/
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3080
|
+
errorCode:
|
|
3081
|
+
| UnauthorizedToCreateRecordKeyError
|
|
3082
|
+
| NotLoggedInError
|
|
3083
|
+
| 'unacceptable_session_key'
|
|
3084
|
+
| 'invalid_key'
|
|
3085
|
+
| 'session_expired'
|
|
3086
|
+
| 'invalid_policy'
|
|
3087
|
+
| ServerError
|
|
3088
|
+
| 'not_supported';
|
|
3057
3089
|
|
|
3058
3090
|
/**
|
|
3059
3091
|
* The error message.
|
|
@@ -3063,7 +3095,7 @@ export interface CreatePublicRecordKeyFailure {
|
|
|
3063
3095
|
/**
|
|
3064
3096
|
* The unique reason as to why the error occurred.
|
|
3065
3097
|
*/
|
|
3066
|
-
errorReason:
|
|
3098
|
+
errorReason:
|
|
3067
3099
|
| 'user_denied'
|
|
3068
3100
|
| NotLoggedInError
|
|
3069
3101
|
| 'record_owned_by_different_user'
|
|
@@ -3108,12 +3140,12 @@ export type NotAuthorizedError = 'not_authorized';
|
|
|
3108
3140
|
|
|
3109
3141
|
|
|
3110
3142
|
export type AuthorizeDeniedError = ServerError
|
|
3111
|
-
| CreatePublicRecordKeyFailure['errorCode']
|
|
3112
|
-
| 'action_not_supported'
|
|
3113
|
-
| 'not_logged_in'
|
|
3114
|
-
| NotAuthorizedError
|
|
3115
|
-
| 'unacceptable_request'
|
|
3116
|
-
| 'subscription_limit_reached';
|
|
3143
|
+
| CreatePublicRecordKeyFailure['errorCode']
|
|
3144
|
+
| 'action_not_supported'
|
|
3145
|
+
| 'not_logged_in'
|
|
3146
|
+
| NotAuthorizedError
|
|
3147
|
+
| 'unacceptable_request'
|
|
3148
|
+
| 'subscription_limit_reached';
|
|
3117
3149
|
|
|
3118
3150
|
export type UpdateUserPolicyError = 'policy_too_large';
|
|
3119
3151
|
|
|
@@ -3492,8 +3524,8 @@ export interface GrantMarkerPermissionFailure {
|
|
|
3492
3524
|
* The error code that indicates why the request failed.
|
|
3493
3525
|
*/
|
|
3494
3526
|
errorCode:
|
|
3495
|
-
|
|
3496
|
-
|
|
3527
|
+
| ServerError
|
|
3528
|
+
| AuthorizeDeniedError;
|
|
3497
3529
|
|
|
3498
3530
|
/**
|
|
3499
3531
|
* The error message that indicates why the request failed.
|
|
@@ -3539,8 +3571,8 @@ export interface GrantResourcePermissionFailure {
|
|
|
3539
3571
|
* The error code that indicates why the request failed.
|
|
3540
3572
|
*/
|
|
3541
3573
|
errorCode:
|
|
3542
|
-
|
|
3543
|
-
|
|
3574
|
+
| ServerError
|
|
3575
|
+
| AuthorizeDeniedError;
|
|
3544
3576
|
|
|
3545
3577
|
/**
|
|
3546
3578
|
* The error message that indicates why the request failed.
|
|
@@ -3587,9 +3619,9 @@ export interface RevokePermissionFailure {
|
|
|
3587
3619
|
* The error code that indicates why the request failed.
|
|
3588
3620
|
*/
|
|
3589
3621
|
errorCode:
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3622
|
+
| ServerError
|
|
3623
|
+
| 'permission_not_found'
|
|
3624
|
+
| AuthorizeDeniedError;
|
|
3593
3625
|
|
|
3594
3626
|
/**
|
|
3595
3627
|
* The error message that indicates why the request failed.
|
|
@@ -3669,9 +3701,9 @@ export interface ListPermissionsSuccess {
|
|
|
3669
3701
|
export interface ListPermissionsFailure {
|
|
3670
3702
|
success: false;
|
|
3671
3703
|
errorCode:
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3704
|
+
| ServerError
|
|
3705
|
+
| ValidatePublicRecordKeyFailure['errorCode']
|
|
3706
|
+
| AuthorizeSubjectFailure['errorCode'];
|
|
3675
3707
|
errorMessage: string;
|
|
3676
3708
|
}
|
|
3677
3709
|
|
|
@@ -3712,8 +3744,8 @@ export interface RevokeRoleFailure {
|
|
|
3712
3744
|
* The error code that indicates why the request failed.
|
|
3713
3745
|
*/
|
|
3714
3746
|
errorCode:
|
|
3715
|
-
|
|
3716
|
-
|
|
3747
|
+
| ServerError
|
|
3748
|
+
| AuthorizeDeniedError;
|
|
3717
3749
|
|
|
3718
3750
|
/**
|
|
3719
3751
|
* The error message that indicates why the request failed.
|
|
@@ -3730,9 +3762,9 @@ export interface GrantRoleSuccess {
|
|
|
3730
3762
|
export interface GrantRoleFailure {
|
|
3731
3763
|
success: false;
|
|
3732
3764
|
errorCode:
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3765
|
+
| ServerError
|
|
3766
|
+
| AuthorizeDeniedError
|
|
3767
|
+
| 'roles_too_large';
|
|
3736
3768
|
errorMessage: string;
|
|
3737
3769
|
}
|
|
3738
3770
|
|
|
@@ -3767,13 +3799,13 @@ export interface EraseInstFailure {
|
|
|
3767
3799
|
* The error code that indicates why the request failed.
|
|
3768
3800
|
*/
|
|
3769
3801
|
errorCode:
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3802
|
+
| ServerError
|
|
3803
|
+
| 'inst_not_found'
|
|
3804
|
+
| NotSupportedError
|
|
3805
|
+
| NotLoggedInError
|
|
3806
|
+
| InvalidRecordKey
|
|
3807
|
+
| RecordNotFoundError
|
|
3808
|
+
| 'not_authorized';
|
|
3777
3809
|
|
|
3778
3810
|
/**
|
|
3779
3811
|
* The error message that indicates why the request failed.
|
|
@@ -3784,7 +3816,7 @@ export interface EraseInstFailure {
|
|
|
3784
3816
|
/**
|
|
3785
3817
|
* The options for data record actions.
|
|
3786
3818
|
*/
|
|
3787
|
-
|
|
3819
|
+
export interface RecordDataOptions {
|
|
3788
3820
|
/**
|
|
3789
3821
|
* The HTTP Endpoint that should be queried.
|
|
3790
3822
|
*/
|
|
@@ -3908,24 +3940,24 @@ export interface SearchCollectionField {
|
|
|
3908
3940
|
* The type of the field.
|
|
3909
3941
|
*/
|
|
3910
3942
|
type:
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3943
|
+
| 'string'
|
|
3944
|
+
| 'string[]'
|
|
3945
|
+
| 'int32'
|
|
3946
|
+
| 'int32[]'
|
|
3947
|
+
| 'int64'
|
|
3948
|
+
| 'int64[]'
|
|
3949
|
+
| 'float'
|
|
3950
|
+
| 'float[]'
|
|
3951
|
+
| 'bool'
|
|
3952
|
+
| 'bool[]'
|
|
3953
|
+
| 'geopoint'
|
|
3954
|
+
| 'geopoint[]'
|
|
3955
|
+
| 'geopolygon'
|
|
3956
|
+
| 'object'
|
|
3957
|
+
| 'object[]'
|
|
3958
|
+
| 'string*'
|
|
3959
|
+
| 'image'
|
|
3960
|
+
| 'auto';
|
|
3929
3961
|
|
|
3930
3962
|
/**
|
|
3931
3963
|
* Enables faceting on the field.
|
|
@@ -4261,7 +4293,7 @@ export interface ListStudiosSuccess {
|
|
|
4261
4293
|
*/
|
|
4262
4294
|
export interface ListStudiosFailure {
|
|
4263
4295
|
success: false;
|
|
4264
|
-
|
|
4296
|
+
|
|
4265
4297
|
/**
|
|
4266
4298
|
* The error code.
|
|
4267
4299
|
*/
|
|
@@ -4379,19 +4411,19 @@ export interface RoomOptions {
|
|
|
4379
4411
|
* Whether to stream video.
|
|
4380
4412
|
* Defaults to true.
|
|
4381
4413
|
*/
|
|
4382
|
-
|
|
4414
|
+
video?: boolean;
|
|
4383
4415
|
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4416
|
+
/**
|
|
4417
|
+
* Whether to stream audio.
|
|
4418
|
+
* Defaults to true.
|
|
4419
|
+
*/
|
|
4420
|
+
audio?: boolean;
|
|
4421
|
+
|
|
4422
|
+
/**
|
|
4423
|
+
* Whether to stream the screen.
|
|
4424
|
+
* Defaults to false.
|
|
4425
|
+
*/
|
|
4426
|
+
screen?: boolean;
|
|
4395
4427
|
}
|
|
4396
4428
|
|
|
4397
4429
|
|
|
@@ -4508,37 +4540,37 @@ export interface JoinRoomActionOptions extends Partial<RoomOptions> {
|
|
|
4508
4540
|
* The HTTP endpoint of the records website that should host the meeting.
|
|
4509
4541
|
* If omitted, then the preconfigured records endpoint will be used.
|
|
4510
4542
|
*/
|
|
4511
|
-
|
|
4543
|
+
endpoint?: string;
|
|
4512
4544
|
|
|
4513
4545
|
/**
|
|
4514
4546
|
* The defaults that should be used for recording audio.
|
|
4515
4547
|
* Should be an object.
|
|
4516
4548
|
* See https://docs.livekit.io/client-sdk-js/interfaces/AudioCaptureOptions.html for a full list of properties.
|
|
4517
4549
|
*/
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4550
|
+
audioCaptureDefaults: object;
|
|
4551
|
+
|
|
4552
|
+
/**
|
|
4553
|
+
* The defaults that should be used for recording video. Should be an object.
|
|
4554
|
+
* See https://docs.livekit.io/client-sdk-js/interfaces/VideoCaptureOptions.html for a full list of properties.
|
|
4555
|
+
*/
|
|
4556
|
+
videoCaptureDefaults: object;
|
|
4557
|
+
|
|
4558
|
+
/**
|
|
4559
|
+
* The defaults that should be used for uploading audio/video content.
|
|
4560
|
+
* See https://docs.livekit.io/client-sdk-js/interfaces/TrackPublishDefaults.html for a full list of properties.
|
|
4561
|
+
*/
|
|
4562
|
+
publishDefaults: object;
|
|
4563
|
+
|
|
4564
|
+
/**
|
|
4565
|
+
* Whether to enable dynacast.
|
|
4566
|
+
* See https://docs.livekit.io/client-sdk-js/interfaces/RoomOptions.html#dynacast for more info.
|
|
4567
|
+
*/
|
|
4568
|
+
dynacast: boolean;
|
|
4569
|
+
|
|
4570
|
+
/**
|
|
4571
|
+
* Whether to enable adaptive streaming. Alternatively accepts an object with properties from this page: https://docs.livekit.io/client-sdk-js/modules.html#AdaptiveStreamSettings
|
|
4572
|
+
*/
|
|
4573
|
+
adaptiveStream: boolean | object;
|
|
4542
4574
|
}
|
|
4543
4575
|
|
|
4544
4576
|
export interface LeaveRoomActionOptions {
|
|
@@ -4546,7 +4578,7 @@ export interface LeaveRoomActionOptions {
|
|
|
4546
4578
|
* The HTTP endpoint of the records website that should host the meeting.
|
|
4547
4579
|
* If omitted, then the preconfigured records endpoint will be used.
|
|
4548
4580
|
*/
|
|
4549
|
-
|
|
4581
|
+
endpoint?: string;
|
|
4550
4582
|
}
|
|
4551
4583
|
|
|
4552
4584
|
export type GetRoomRemoteOptionsResult =
|
|
@@ -4602,7 +4634,7 @@ export interface RoomRemoteOptions {
|
|
|
4602
4634
|
/**
|
|
4603
4635
|
* Defines an interface that represents an update that has been applied to an inst.
|
|
4604
4636
|
*/
|
|
4605
|
-
|
|
4637
|
+
export interface InstUpdate {
|
|
4606
4638
|
/**
|
|
4607
4639
|
* The ID of the update.
|
|
4608
4640
|
*/
|
|
@@ -7998,7 +8030,7 @@ export interface QuaternionRotation {
|
|
|
7998
8030
|
/**
|
|
7999
8031
|
* Defines an interface that represents a rotation transforms (0, 1, 0) and (0, 0, 1) to look along the given direction and upwards axes.
|
|
8000
8032
|
*/
|
|
8001
|
-
|
|
8033
|
+
export interface LookRotation {
|
|
8002
8034
|
/**
|
|
8003
8035
|
* The direction that (0, 1, 0) should be pointing along after the rotation is applied.
|
|
8004
8036
|
*/
|
|
@@ -8034,7 +8066,7 @@ export interface QuaternionRotation {
|
|
|
8034
8066
|
/**
|
|
8035
8067
|
* Defines an interface that represents the result of a raycast operation.
|
|
8036
8068
|
*/
|
|
8037
|
-
|
|
8069
|
+
export interface RaycastResult {
|
|
8038
8070
|
/**
|
|
8039
8071
|
* The list of intersections.
|
|
8040
8072
|
*/
|
|
@@ -8085,9 +8117,9 @@ export interface BotIntersection {
|
|
|
8085
8117
|
*/
|
|
8086
8118
|
portal: string;
|
|
8087
8119
|
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
8120
|
+
/**
|
|
8121
|
+
* The dimension that the bot is in.
|
|
8122
|
+
*/
|
|
8091
8123
|
dimension: string;
|
|
8092
8124
|
}
|
|
8093
8125
|
|
|
@@ -9486,7 +9518,7 @@ interface DebuggerBase {
|
|
|
9486
9518
|
* Creates a tag value that can be used to link to the given bots.
|
|
9487
9519
|
* @param bots The bots that the link should point to.
|
|
9488
9520
|
*/
|
|
9489
|
-
|
|
9521
|
+
getLink(...bots: (Bot | string | (Bot | string)[])[]): string;
|
|
9490
9522
|
|
|
9491
9523
|
/**
|
|
9492
9524
|
* Gets the list of bot links that are stored in this bot's tags.
|
|
@@ -10051,7 +10083,7 @@ interface DebuggerBase {
|
|
|
10051
10083
|
* Defines a set of functions that are used to create and transform mods.
|
|
10052
10084
|
*/
|
|
10053
10085
|
mod: ModFuncs;
|
|
10054
|
-
|
|
10086
|
+
|
|
10055
10087
|
/**
|
|
10056
10088
|
* Defines a set of functions that are used to transform byte arrays.
|
|
10057
10089
|
*/
|
|
@@ -10100,18 +10132,18 @@ interface Debugger extends DebuggerBase {
|
|
|
10100
10132
|
*/
|
|
10101
10133
|
create(...mods: Mod[]): Bot | Bot[];
|
|
10102
10134
|
|
|
10103
|
-
|
|
10104
|
-
|
|
10105
|
-
|
|
10106
|
-
|
|
10135
|
+
/**
|
|
10136
|
+
* Destroys the given bot, bot ID, or list of bots.
|
|
10137
|
+
* @param bot The bot, bot ID, or list of bots to destroy.
|
|
10138
|
+
*/
|
|
10107
10139
|
destroy(bot: Bot | string | Bot[]): void;
|
|
10108
10140
|
|
|
10109
|
-
|
|
10110
|
-
|
|
10111
|
-
|
|
10112
|
-
|
|
10113
|
-
|
|
10114
|
-
|
|
10141
|
+
/**
|
|
10142
|
+
* Shouts the given events in order until a bot returns a result.
|
|
10143
|
+
* Returns the result that was produced or undefined if no result was produced.
|
|
10144
|
+
* @param eventNames The names of the events to shout.
|
|
10145
|
+
* @param arg The argument to shout.
|
|
10146
|
+
*/
|
|
10115
10147
|
priorityShout(eventNames: string[], arg?: any): any;
|
|
10116
10148
|
|
|
10117
10149
|
/**
|
|
@@ -10196,18 +10228,18 @@ interface PausableDebugger extends DebuggerBase {
|
|
|
10196
10228
|
*/
|
|
10197
10229
|
create(...mods: Mod[]): Promise<Bot | Bot[]>;
|
|
10198
10230
|
|
|
10199
|
-
|
|
10200
|
-
|
|
10201
|
-
|
|
10202
|
-
|
|
10231
|
+
/**
|
|
10232
|
+
* Destroys the given bot, bot ID, or list of bots.
|
|
10233
|
+
* @param bot The bot, bot ID, or list of bots to destroy.
|
|
10234
|
+
*/
|
|
10203
10235
|
destroy(bot: Bot | string | Bot[]): Promise<void>;
|
|
10204
10236
|
|
|
10205
|
-
|
|
10206
|
-
|
|
10207
|
-
|
|
10208
|
-
|
|
10209
|
-
|
|
10210
|
-
|
|
10237
|
+
/**
|
|
10238
|
+
* Shouts the given events in order until a bot returns a result.
|
|
10239
|
+
* Returns the result that was produced or undefined if no result was produced.
|
|
10240
|
+
* @param eventNames The names of the events to shout.
|
|
10241
|
+
* @param arg The argument to shout.
|
|
10242
|
+
*/
|
|
10211
10243
|
priorityShout(eventNames: string[], arg?: any): Promise<any>;
|
|
10212
10244
|
|
|
10213
10245
|
/**
|
|
@@ -10370,7 +10402,7 @@ export interface StopFormAnimationOptions {
|
|
|
10370
10402
|
/**
|
|
10371
10403
|
* Defines an interface that contains animation information.
|
|
10372
10404
|
*/
|
|
10373
|
-
|
|
10405
|
+
export interface FormAnimationData {
|
|
10374
10406
|
/**
|
|
10375
10407
|
* The name of the animation.
|
|
10376
10408
|
*/
|
|
@@ -10751,11 +10783,11 @@ export interface AIHumeGetAccessTokenFailure {
|
|
|
10751
10783
|
success: false;
|
|
10752
10784
|
|
|
10753
10785
|
errorCode:
|
|
10754
|
-
|
|
10755
|
-
|
|
10756
|
-
|
|
10757
|
-
|
|
10758
|
-
|
|
10786
|
+
| ServerError
|
|
10787
|
+
| NotLoggedInError
|
|
10788
|
+
| NotSupportedError
|
|
10789
|
+
| NotAuthorizedError
|
|
10790
|
+
| 'hume_api_error';
|
|
10759
10791
|
errorMessage: string;
|
|
10760
10792
|
}
|
|
10761
10793
|
|
|
@@ -10825,10 +10857,10 @@ export interface AISloydGenerateModelFailure {
|
|
|
10825
10857
|
* The error code.
|
|
10826
10858
|
*/
|
|
10827
10859
|
errorCode:
|
|
10828
|
-
|
|
10829
|
-
|
|
10830
|
-
|
|
10831
|
-
|
|
10860
|
+
| ServerError
|
|
10861
|
+
| NotLoggedInError
|
|
10862
|
+
| NotSupportedError
|
|
10863
|
+
| NotAuthorizedError;
|
|
10832
10864
|
|
|
10833
10865
|
/**
|
|
10834
10866
|
* The error message.
|
|
@@ -11274,17 +11306,17 @@ export interface CrudListItemsSuccess<T> {
|
|
|
11274
11306
|
export interface CrudListItemsFailure {
|
|
11275
11307
|
success: false;
|
|
11276
11308
|
errorCode:
|
|
11277
|
-
|
|
11278
|
-
|
|
11279
|
-
|
|
11280
|
-
|
|
11309
|
+
| ServerError
|
|
11310
|
+
| NotLoggedInError
|
|
11311
|
+
| NotAuthorizedError
|
|
11312
|
+
| 'data_not_found';
|
|
11281
11313
|
errorMessage: string;
|
|
11282
11314
|
}
|
|
11283
11315
|
|
|
11284
11316
|
/**
|
|
11285
11317
|
* Defines a record that represents a database that can be queried using SQL.
|
|
11286
11318
|
*/
|
|
11287
|
-
export interface DatabaseRecord extends CrudRecord {}
|
|
11319
|
+
export interface DatabaseRecord extends CrudRecord { }
|
|
11288
11320
|
|
|
11289
11321
|
/**
|
|
11290
11322
|
* Defines a statement that can be sent to the database.
|
|
@@ -11315,12 +11347,12 @@ export type GenericSuccess<T> = T extends Array<any>
|
|
|
11315
11347
|
? { success: true; items: T }
|
|
11316
11348
|
: T extends object
|
|
11317
11349
|
? {
|
|
11318
|
-
|
|
11319
|
-
|
|
11350
|
+
success: true;
|
|
11351
|
+
} & T
|
|
11320
11352
|
: {
|
|
11321
|
-
|
|
11322
|
-
|
|
11323
|
-
|
|
11353
|
+
success: true;
|
|
11354
|
+
value: T;
|
|
11355
|
+
};
|
|
11324
11356
|
|
|
11325
11357
|
export type GenericFailure<E extends ErrorType> = {
|
|
11326
11358
|
success: false;
|
|
@@ -11524,10 +11556,10 @@ export interface HandleWebhookFailure {
|
|
|
11524
11556
|
* The error code if the webhook was not successfully handled.
|
|
11525
11557
|
*/
|
|
11526
11558
|
errorCode:
|
|
11527
|
-
|
|
11528
|
-
|
|
11529
|
-
|
|
11530
|
-
|
|
11559
|
+
| ServerError
|
|
11560
|
+
| 'not_found'
|
|
11561
|
+
| NotAuthorizedError
|
|
11562
|
+
| 'invalid_webhook_target';
|
|
11531
11563
|
|
|
11532
11564
|
/**
|
|
11533
11565
|
* The error message if the webhook was not successfully handled.
|
|
@@ -12373,7 +12405,7 @@ export interface SharedTextDeleteOp {
|
|
|
12373
12405
|
count: number;
|
|
12374
12406
|
}
|
|
12375
12407
|
|
|
12376
|
-
export interface RelativePosition {}
|
|
12408
|
+
export interface RelativePosition { }
|
|
12377
12409
|
|
|
12378
12410
|
/**
|
|
12379
12411
|
* Defines a record that represents a notification.
|
|
@@ -13400,7 +13432,7 @@ interface Os {
|
|
|
13400
13432
|
* @docid os.addBotListener
|
|
13401
13433
|
*/
|
|
13402
13434
|
addBotListener(bot: Bot, tagName: string, listener: DynamicListener): void;
|
|
13403
|
-
|
|
13435
|
+
|
|
13404
13436
|
/**
|
|
13405
13437
|
* Removes the given listener from a bot for a specific tag.
|
|
13406
13438
|
* @param bot The bot that the listener should be removed from.
|
|
@@ -13574,11 +13606,11 @@ interface Os {
|
|
|
13574
13606
|
*/
|
|
13575
13607
|
joinRoom(roomName: string, options?: JoinRoomActionOptions): Promise<JoinRoomResult>;
|
|
13576
13608
|
|
|
13577
|
-
|
|
13578
|
-
|
|
13579
|
-
|
|
13580
|
-
|
|
13581
|
-
|
|
13609
|
+
/**
|
|
13610
|
+
* Attempts to leave the given meeting room.
|
|
13611
|
+
* @param roomName The name of the meeting room to leave.
|
|
13612
|
+
* @param options The options.
|
|
13613
|
+
*/
|
|
13582
13614
|
leaveRoom(roomName: string, options?: LeaveRoomActionOptions): Promise<LeaveRoomResult>;
|
|
13583
13615
|
|
|
13584
13616
|
/**
|
|
@@ -13813,7 +13845,7 @@ interface Os {
|
|
|
13813
13845
|
* Exits fullscreen mode.
|
|
13814
13846
|
*/
|
|
13815
13847
|
exitFullscreenMode(): ExitFullscreenAction;
|
|
13816
|
-
|
|
13848
|
+
|
|
13817
13849
|
/**
|
|
13818
13850
|
* Hides the loading screen.
|
|
13819
13851
|
*
|
|
@@ -14306,7 +14338,7 @@ interface Os {
|
|
|
14306
14338
|
* @docgroup 10-load-inst
|
|
14307
14339
|
*/
|
|
14308
14340
|
unloadServer(id: string): UnloadServerAction | void;
|
|
14309
|
-
|
|
14341
|
+
|
|
14310
14342
|
/**
|
|
14311
14343
|
* Unloads the given inst from the current browser tab. When the inst is unloaded, the {@tag @onInstLeave} shout will be triggered.
|
|
14312
14344
|
*
|
|
@@ -14448,6 +14480,12 @@ interface Os {
|
|
|
14448
14480
|
*/
|
|
14449
14481
|
showConfirm(options: ShowConfirmOptions): Promise<boolean>;
|
|
14450
14482
|
|
|
14483
|
+
/**
|
|
14484
|
+
* Shows an alert dialog. Returns a promise that resolves when the dialog is dismissed.
|
|
14485
|
+
* @param options The options that indicate how the alert dialog should be customized.
|
|
14486
|
+
*/
|
|
14487
|
+
showAlert(options: ShowAlertOptions): Promise<void>;
|
|
14488
|
+
|
|
14451
14489
|
/**
|
|
14452
14490
|
* Gets the dimension that the player is currently viewing.
|
|
14453
14491
|
*/
|
|
@@ -14792,7 +14830,7 @@ interface Os {
|
|
|
14792
14830
|
getSubjectlessPublicRecordKey(
|
|
14793
14831
|
recordName: string
|
|
14794
14832
|
): Promise<CreatePublicRecordKeyResult>;
|
|
14795
|
-
|
|
14833
|
+
|
|
14796
14834
|
/**
|
|
14797
14835
|
* Grants the given permission in the given record.
|
|
14798
14836
|
*
|
|
@@ -15095,7 +15133,7 @@ interface Os {
|
|
|
15095
15133
|
*/
|
|
15096
15134
|
eraseManualApprovalData(recordKey: string, address: string, endpoint?: string): Promise<EraseDataResult>;
|
|
15097
15135
|
|
|
15098
|
-
|
|
15136
|
+
|
|
15099
15137
|
/**
|
|
15100
15138
|
* Creates or updates a [webhook](glossary:webhook-record) in the given record using the given options.
|
|
15101
15139
|
*
|
|
@@ -15139,7 +15177,7 @@ interface Os {
|
|
|
15139
15177
|
webhook: WebhookRecord,
|
|
15140
15178
|
options?: RecordActionOptions
|
|
15141
15179
|
): Promise<CrudRecordItemResult>;
|
|
15142
|
-
|
|
15180
|
+
|
|
15143
15181
|
/**
|
|
15144
15182
|
* Runs the webhook in the given record with the provided input.
|
|
15145
15183
|
* @param recordName the name of the record.
|
|
@@ -15826,7 +15864,7 @@ interface Os {
|
|
|
15826
15864
|
address: string,
|
|
15827
15865
|
key?: string | PackageRecordVersionKeySpecifier,
|
|
15828
15866
|
): Promise<InstallPackageResult>;
|
|
15829
|
-
|
|
15867
|
+
|
|
15830
15868
|
/**
|
|
15831
15869
|
* Gets the list of packages that are installed in the inst.
|
|
15832
15870
|
* @param options the options for the request.
|
|
@@ -16544,7 +16582,7 @@ interface Os {
|
|
|
16544
16582
|
* This is valuable for situations where you want to ensure that all players observe the same state.
|
|
16545
16583
|
* @param bots The bots.
|
|
16546
16584
|
*/
|
|
16547
|
-
|
|
16585
|
+
createInitializationUpdate(bots: Bot[]): Promise<InstUpdate>;
|
|
16548
16586
|
|
|
16549
16587
|
/**
|
|
16550
16588
|
* Applies the given updates to the inst.
|
|
@@ -16677,7 +16715,7 @@ interface Os {
|
|
|
16677
16715
|
* @docid os.addMapLayer
|
|
16678
16716
|
*/
|
|
16679
16717
|
addMapLayer(portal: 'map' | 'miniMap', layer: MapLayer): Promise<string>;
|
|
16680
|
-
|
|
16718
|
+
|
|
16681
16719
|
/**
|
|
16682
16720
|
* Removes a layer from the map or miniMap portal.
|
|
16683
16721
|
*
|
|
@@ -16944,10 +16982,10 @@ interface Bytes {
|
|
|
16944
16982
|
*/
|
|
16945
16983
|
toBase64String(bytes: Uint8Array): string;
|
|
16946
16984
|
|
|
16947
|
-
|
|
16948
|
-
|
|
16949
|
-
|
|
16950
|
-
|
|
16985
|
+
/**
|
|
16986
|
+
* Converts the given base64 formatted string into an array of bytes.
|
|
16987
|
+
* @param base64 The base64 that should be converted to bytes.
|
|
16988
|
+
*/
|
|
16951
16989
|
fromBase64String(base64: string): Uint8Array;
|
|
16952
16990
|
|
|
16953
16991
|
/**
|
|
@@ -17018,7 +17056,7 @@ interface Crypto {
|
|
|
17018
17056
|
* @param data The data that should be hashed.
|
|
17019
17057
|
*/
|
|
17020
17058
|
hash(algorithm: 'sha256' | 'sha512' | 'sha1', format: 'raw', ...data: unknown[]): Uint8Array;
|
|
17021
|
-
|
|
17059
|
+
|
|
17022
17060
|
/**
|
|
17023
17061
|
* Calculates the cryptographic hash for the given data and returns the result in the specified format.
|
|
17024
17062
|
* @param algorithm The algorithm that should be used to hash the data.
|
|
@@ -17055,7 +17093,7 @@ interface Crypto {
|
|
|
17055
17093
|
* @param data The data that should be hashed.
|
|
17056
17094
|
*/
|
|
17057
17095
|
hmac(algorithm: 'hmac-sha256' | 'hmac-sha512' | 'hmac-sha1', format: 'raw', key: string, ...data: unknown[]): Uint8Array;
|
|
17058
|
-
|
|
17096
|
+
|
|
17059
17097
|
/**
|
|
17060
17098
|
* Calculates the HMAC of the given data and returns the result in the specified format.
|
|
17061
17099
|
* HMAC is commonly used to verify that a message was created with a specific key.
|
|
@@ -17608,7 +17646,7 @@ interface Loom {
|
|
|
17608
17646
|
* @docid loom.watchVideo-sharedUrl
|
|
17609
17647
|
*/
|
|
17610
17648
|
watchVideo(sharedUrl: string): Promise<void>;
|
|
17611
|
-
|
|
17649
|
+
|
|
17612
17650
|
watchVideo(sharedUrlOrVideo: string | LoomVideo): Promise<void>;
|
|
17613
17651
|
|
|
17614
17652
|
/**
|