@casual-simulation/aux-runtime 3.4.6-alpha.14601027727 → 3.5.0-alpha.15117651144
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 +8 -8
- package/runtime/AuxCompiler.d.ts +0 -1
- package/runtime/AuxCompiler.js.map +1 -1
- package/runtime/AuxGlobalContext.d.ts +1 -1
- package/runtime/AuxGlobalContext.js +3 -1
- package/runtime/AuxGlobalContext.js.map +1 -1
- package/runtime/AuxLibrary.d.ts +125 -65
- package/runtime/AuxLibrary.js +510 -167
- package/runtime/AuxLibrary.js.map +1 -1
- package/runtime/AuxLibraryDefinitions.def +782 -0
- package/runtime/AuxResults.js.map +1 -1
- package/runtime/AuxRuntime.js +545 -512
- package/runtime/AuxRuntime.js.map +1 -1
- package/runtime/AuxRuntimeDynamicImports.js +2 -13
- package/runtime/AuxRuntimeDynamicImports.js.map +1 -1
- package/runtime/CompiledBot.js +1 -1
- package/runtime/CompiledBot.js.map +1 -1
- package/runtime/RecordsEvents.d.ts +162 -3
- package/runtime/RecordsEvents.js +162 -3
- package/runtime/RecordsEvents.js.map +1 -1
- package/runtime/RuntimeBot.js +3 -1
- package/runtime/RuntimeBot.js.map +1 -1
- package/runtime/RuntimeStateVersion.js +3 -1
- package/runtime/RuntimeStateVersion.js.map +1 -1
- package/runtime/Transpiler.js +10 -1
- package/runtime/Transpiler.js.map +1 -1
- package/runtime/Utils.d.ts +1 -1
- package/runtime/Utils.js.map +1 -1
- package/runtime/test/TestScriptBotFactory.js.map +1 -1
package/runtime/AuxLibrary.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { AuxGlobalContext } from './AuxGlobalContext';
|
|
2
2
|
import { DEBUG_STRING } from './AuxGlobalContext';
|
|
3
|
-
import type { BotTags, Bot, ShowChatOptions, BotAction, BotsState, CameraType, BarcodeFormat, PortalType, ShowInputOptions, LocalFormAnimationAction, ShareOptions, Easing, BotAnchorPoint, RuntimeBot, BotSpace, EaseType, RegisterPrefixOptions, OpenCircleWipeOptions, SuperShoutAction, ShowToastAction, ShowJoinCodeAction, RequestFullscreenAction, ExitFullscreenAction, ShowHtmlAction, HideHtmlAction, SetClipboardAction, FocusOnBotAction, ShowChatBarAction, EnableARAction, EnableVRAction, DownloadAction, ShowUploadAuxFileAction, OpenQRCodeScannerAction, ShowQRCodeAction, OpenBarcodeScannerAction, ShowBarcodeAction, LoadServerAction, UnloadServerAction, ReplaceDragBotAction, ShowInputForTagAction, GoToDimensionAction, GoToURLAction, OpenURLAction, OpenConsoleAction, RejectAction, FocusOnOptions, SnapTarget, AddDropSnapTargetsAction, RecordingOptions, Recording, SyntheticVoice, EnablePOVAction, EnableCustomDraggingAction, SetAppOutputAction, PartialBotsState, ParsedBotLink, ConvertGeolocationToWhat3WordsOptions, BeginAudioRecordingAction, MediaPermssionOptions, ImageClassifierOptions, ClassifyImagesOptions, ClassifyImagesResult, AddDropGridTargetsAction, InstUpdate, StartFormAnimationOptions, StopFormAnimationOptions, FormAnimationData, WakeLockConfiguration, EnableXROptions, ShowConfirmOptions, Geolocation, OpenPhotoCameraOptions, Photo, Point2D, RecordLoomOptions, LoomVideo, LoomVideoEmbedMetadata } from '@casual-simulation/aux-common/bots';
|
|
4
|
-
import type { AIChatOptions, AIGenerateSkyboxOptions, AIGenerateImageOptions, JoinRoomActionOptions, RoomOptions, RoomTrackOptions, SetRoomTrackOptions, RoomRemoteOptions, DataRecordOptions, RecordActionOptions, ListDataOptions, AISloydGenerateModelOptions, ListWebhooksOptions, ListNotificationsOptions, SendNotificationOptions } from './RecordsEvents';
|
|
5
|
-
import type { RemoteAction, AvailablePermissions } from '@casual-simulation/aux-common';
|
|
3
|
+
import type { BotTags, Bot, ShowChatOptions, BotAction, BotsState, CameraType, BarcodeFormat, PortalType, ShowInputOptions, LocalFormAnimationAction, ShareOptions, Easing, BotAnchorPoint, RuntimeBot, BotSpace, EaseType, RegisterPrefixOptions, OpenCircleWipeOptions, SuperShoutAction, ShowToastAction, ShowJoinCodeAction, RequestFullscreenAction, ExitFullscreenAction, ShowHtmlAction, HideHtmlAction, SetClipboardAction, FocusOnBotAction, ShowChatBarAction, EnableARAction, EnableVRAction, DownloadAction, ShowUploadAuxFileAction, OpenQRCodeScannerAction, ShowQRCodeAction, OpenBarcodeScannerAction, ShowBarcodeAction, LoadServerAction, UnloadServerAction, ReplaceDragBotAction, ShowInputForTagAction, GoToDimensionAction, GoToURLAction, OpenURLAction, OpenConsoleAction, RejectAction, FocusOnOptions, SnapTarget, AddDropSnapTargetsAction, RecordingOptions, Recording, SyntheticVoice, EnablePOVAction, EnableCustomDraggingAction, SetAppOutputAction, PartialBotsState, ParsedBotLink, ConvertGeolocationToWhat3WordsOptions, BeginAudioRecordingAction, MediaPermssionOptions, ImageClassifierOptions, ClassifyImagesOptions, ClassifyImagesResult, AddDropGridTargetsAction, InstUpdate, StartFormAnimationOptions, StopFormAnimationOptions, FormAnimationData, WakeLockConfiguration, EnableXROptions, ShowConfirmOptions, StoredAux, Geolocation, OpenPhotoCameraOptions, Photo, Point2D, RecordLoomOptions, LoomVideo, LoomVideoEmbedMetadata, InstallAuxFileMode } from '@casual-simulation/aux-common/bots';
|
|
4
|
+
import type { AIChatOptions, AIGenerateSkyboxOptions, AIGenerateImageOptions, JoinRoomActionOptions, RoomOptions, RoomTrackOptions, SetRoomTrackOptions, RoomRemoteOptions, DataRecordOptions, RecordActionOptions, ListDataOptions, AISloydGenerateModelOptions, ListWebhooksOptions, ListNotificationsOptions, SendNotificationOptions, GrantEntitlementsRequest, GrantEntitlementsResult, InstallPackageResult } from './RecordsEvents';
|
|
5
|
+
import type { RemoteAction, AvailablePermissions, Entitlement, VersionNumber } from '@casual-simulation/aux-common';
|
|
6
6
|
import '@casual-simulation/aux-common/polyfill/Array.first.polyfill';
|
|
7
7
|
import '@casual-simulation/aux-common/polyfill/Array.last.polyfill';
|
|
8
8
|
import { isAsymmetricKeypair, isAsymmetricEncrypted, isEncrypted } from '@casual-simulation/crypto';
|
|
@@ -11,12 +11,13 @@ import '@casual-simulation/aux-common/BlobPolyfill';
|
|
|
11
11
|
import type { AuxDevice } from './AuxDevice';
|
|
12
12
|
import type { AuxVersion } from './AuxVersion';
|
|
13
13
|
import { Vector3, Vector2, Quaternion, Rotation } from '@casual-simulation/aux-common/math';
|
|
14
|
-
import type { AIChatMessage, GrantResourcePermissionResult, ListStudiosResult, ListSubscriptionsResult, NotificationRecord, PushNotificationPayload, RevokePermissionResult, SendNotificationResult, SubscribeToNotificationResult, UnsubscribeToNotificationResult, WebhookRecord, CreatePublicRecordKeyResult, GetDataResult, RecordDataResult, RecordFileFailure, EraseDataResult, EraseFileResult, ListDataResult, AddCountResult, GetCountResult, GrantMarkerPermissionResult, GrantRoleResult, RevokeRoleResult } from '@casual-simulation/aux-records';
|
|
14
|
+
import type { AIChatMessage, GrantResourcePermissionResult, ListStudiosResult, ListSubscriptionsResult, NotificationRecord, PushNotificationPayload, RevokePermissionResult, SendNotificationResult, SubscribeToNotificationResult, UnsubscribeToNotificationResult, WebhookRecord, CreatePublicRecordKeyResult, GetDataResult, RecordDataResult, RecordFileFailure, EraseDataResult, EraseFileResult, ListDataResult, AddCountResult, GetCountResult, GrantMarkerPermissionResult, GrantRoleResult, RevokeRoleResult, PackageRecord, ListInstalledPackagesResult } from '@casual-simulation/aux-records';
|
|
15
15
|
import { DateTime } from 'luxon';
|
|
16
16
|
import * as hooks from 'preact/hooks';
|
|
17
17
|
import { render, createRef, createContext } from 'preact';
|
|
18
18
|
import * as compat from 'preact/compat';
|
|
19
19
|
import type { Breakpoint, InterpreterContinuation, InterpreterStop } from '@casual-simulation/js-interpreter';
|
|
20
|
+
import { UNCOPIABLE } from '@casual-simulation/js-interpreter/InterpreterUtils';
|
|
20
21
|
import { INTERPRETABLE_FUNCTION } from './AuxCompiler';
|
|
21
22
|
import type { AuxRuntime } from './AuxRuntime';
|
|
22
23
|
import type { AICreateOpenAIRealtimeSessionTokenResult, AIHumeGetAccessTokenResult, AISloydGenerateModelResponse } from '@casual-simulation/aux-records/AIController';
|
|
@@ -25,6 +26,7 @@ import type { CrudEraseItemResult, CrudGetItemResult, CrudListItemsResult, CrudR
|
|
|
25
26
|
import type { HandleWebhookResult } from '@casual-simulation/aux-records/webhooks/WebhookRecordsController';
|
|
26
27
|
import type { SharedDocument } from '@casual-simulation/aux-common/documents/SharedDocument';
|
|
27
28
|
import type { CreateRealtimeSessionTokenRequest } from '@casual-simulation/aux-records/AIOpenAIRealtimeInterface';
|
|
29
|
+
import type { PackageRecordVersion, PackageRecordVersionKey, PackageRecordVersionKeySpecifier, RecordPackageVersionResult } from '@casual-simulation/aux-records/packages/version';
|
|
28
30
|
/**
|
|
29
31
|
* Defines an interface for a function that provides HTML VDOM capabilities to bots.
|
|
30
32
|
*/
|
|
@@ -218,6 +220,37 @@ export interface AIGeneratedImageAPI {
|
|
|
218
220
|
*/
|
|
219
221
|
mimeType: string;
|
|
220
222
|
}
|
|
223
|
+
export interface RecordPackageVersionApiRequest {
|
|
224
|
+
/**
|
|
225
|
+
* The name of the record that the package version should be recorded to.
|
|
226
|
+
*/
|
|
227
|
+
recordName: string;
|
|
228
|
+
/**
|
|
229
|
+
* The address that the package version should be recorded to.
|
|
230
|
+
*/
|
|
231
|
+
address: string;
|
|
232
|
+
/**
|
|
233
|
+
* The version of the package that should be recorded.
|
|
234
|
+
*/
|
|
235
|
+
key: PackageRecordVersionKey;
|
|
236
|
+
/**
|
|
237
|
+
* The description that should be included in the package version.
|
|
238
|
+
*/
|
|
239
|
+
description: string;
|
|
240
|
+
/**
|
|
241
|
+
* The list of entitlements for the package version.
|
|
242
|
+
* If omitted, then the package version will be recorded without any entitlements.
|
|
243
|
+
*/
|
|
244
|
+
entitlements?: Entitlement[];
|
|
245
|
+
/**
|
|
246
|
+
* The bots that should be saved to the package.
|
|
247
|
+
*/
|
|
248
|
+
bots: Bot[];
|
|
249
|
+
/**
|
|
250
|
+
* The markers that should be applied to the package version.
|
|
251
|
+
*/
|
|
252
|
+
markers?: string[];
|
|
253
|
+
}
|
|
221
254
|
/**
|
|
222
255
|
* Defines a set of options for {@link animateTag-byTag}.
|
|
223
256
|
*
|
|
@@ -998,6 +1031,17 @@ export interface PausableDebugger extends DebuggerBase {
|
|
|
998
1031
|
*/
|
|
999
1032
|
changeState(bot: Bot, stateName: string, groupName?: string): Promise<void>;
|
|
1000
1033
|
}
|
|
1034
|
+
export interface AuxFileOptions {
|
|
1035
|
+
/**
|
|
1036
|
+
* The version that should be used for the output file.
|
|
1037
|
+
*
|
|
1038
|
+
* Version 1 stores bots as pure JSON and is the original version of the file format.
|
|
1039
|
+
* Version 2 stores bots as updates and is the new version of the file format.
|
|
1040
|
+
*
|
|
1041
|
+
* If not specifed, then version 2 will be used.
|
|
1042
|
+
*/
|
|
1043
|
+
version?: 1 | 2;
|
|
1044
|
+
}
|
|
1001
1045
|
/**
|
|
1002
1046
|
* Defines an interface for a possible pause trigger location.
|
|
1003
1047
|
*
|
|
@@ -2013,7 +2057,7 @@ export declare function createDefaultLibrary(context: AuxGlobalContext): {
|
|
|
2013
2057
|
inDimension: (dimension: string) => BotFilter;
|
|
2014
2058
|
atPosition: (dimension: string, x: number, y: number) => BotFilter;
|
|
2015
2059
|
inStack: (bot: Bot, dimension: string) => BotFilter;
|
|
2016
|
-
neighboring: (bot: Bot, dimension: string, direction?:
|
|
2060
|
+
neighboring: (bot: Bot, dimension: string, direction?: "front" | "left" | "right" | "back") => BotFilter;
|
|
2017
2061
|
bySpace: (space: string) => BotFilter;
|
|
2018
2062
|
byCreator: (bot: Bot | string) => BotFilter;
|
|
2019
2063
|
either: (...filters: BotFilter[]) => BotFilter;
|
|
@@ -2099,7 +2143,7 @@ export declare function createDefaultLibrary(context: AuxGlobalContext): {
|
|
|
2099
2143
|
};
|
|
2100
2144
|
};
|
|
2101
2145
|
os: {
|
|
2102
|
-
[
|
|
2146
|
+
[UNCOPIABLE]: boolean;
|
|
2103
2147
|
sleep: (time: number) => Promise<void>;
|
|
2104
2148
|
toast: (message: string | number | boolean | object | Array<any> | null, duration?: number) => ShowToastAction;
|
|
2105
2149
|
getScriptIssues: (bot: Bot | string, tag: string) => Promise<string[]>;
|
|
@@ -2153,6 +2197,8 @@ export declare function createDefaultLibrary(context: AuxGlobalContext): {
|
|
|
2153
2197
|
download: (data: string | object | ArrayBuffer | Blob, filename: string, mimeType?: string) => DownloadAction;
|
|
2154
2198
|
downloadBots: (bots: Bot[], filename: string) => DownloadAction;
|
|
2155
2199
|
downloadBotsAsInitialzationUpdate: (bots: Bot[], filename: string) => DownloadAction;
|
|
2200
|
+
getAuxFileForBots: (bots: Bot[], options?: AuxFileOptions) => StoredAux;
|
|
2201
|
+
installAuxFile: (aux: StoredAux, mode?: InstallAuxFileMode) => Promise<void>;
|
|
2156
2202
|
downloadServer: () => DownloadAction;
|
|
2157
2203
|
downloadInst: () => DownloadAction;
|
|
2158
2204
|
showUploadAuxFile: () => ShowUploadAuxFileAction;
|
|
@@ -2280,21 +2326,21 @@ export declare function createDefaultLibrary(context: AuxGlobalContext): {
|
|
|
2280
2326
|
log: (...args: any[]) => void;
|
|
2281
2327
|
getGeolocation: () => Promise<Geolocation>;
|
|
2282
2328
|
inSheet: () => boolean;
|
|
2283
|
-
getCameraPosition: (portal?:
|
|
2284
|
-
getCameraRotation: (portal?:
|
|
2329
|
+
getCameraPosition: (portal?: "grid" | "miniGrid") => Vector3;
|
|
2330
|
+
getCameraRotation: (portal?: "grid" | "miniGrid") => {
|
|
2285
2331
|
x: number;
|
|
2286
2332
|
y: number;
|
|
2287
2333
|
z: number;
|
|
2288
2334
|
};
|
|
2289
|
-
getFocusPoint: (portal?:
|
|
2290
|
-
getPointerPosition: (pointer?:
|
|
2291
|
-
getPointerRotation: (pointer?:
|
|
2335
|
+
getFocusPoint: (portal?: "grid" | "miniGrid") => Vector3;
|
|
2336
|
+
getPointerPosition: (pointer?: "mouse" | "left" | "right") => Vector3;
|
|
2337
|
+
getPointerRotation: (pointer?: "mouse" | "left" | "right") => {
|
|
2292
2338
|
x: number;
|
|
2293
2339
|
y: number;
|
|
2294
2340
|
z: number;
|
|
2295
2341
|
};
|
|
2296
|
-
getPointerDirection: (pointer?:
|
|
2297
|
-
getInputState: (controller: string, button: string) => null |
|
|
2342
|
+
getPointerDirection: (pointer?: "mouse" | "left" | "right") => Vector3;
|
|
2343
|
+
getInputState: (controller: string, button: string) => null | "down" | "held";
|
|
2298
2344
|
getInputList: () => string[];
|
|
2299
2345
|
getMediaPermission: (options: MediaPermssionOptions) => Promise<any>;
|
|
2300
2346
|
getAverageFrameRate: () => Promise<number>;
|
|
@@ -2314,42 +2360,42 @@ export declare function createDefaultLibrary(context: AuxGlobalContext): {
|
|
|
2314
2360
|
createRef: typeof createRef;
|
|
2315
2361
|
createContext: typeof createContext;
|
|
2316
2362
|
useState<S>(initialState: S | (() => S)): [S, hooks.StateUpdater<S>];
|
|
2317
|
-
useState<
|
|
2318
|
-
useReducer<
|
|
2319
|
-
useReducer<
|
|
2363
|
+
useState<S = undefined>(): [S | undefined, hooks.StateUpdater<S | undefined>];
|
|
2364
|
+
useReducer<S, A>(reducer: hooks.Reducer<S, A>, initialState: S): [S, hooks.Dispatch<A>];
|
|
2365
|
+
useReducer<S, A, I>(reducer: hooks.Reducer<S, A>, initialArg: I, init: (arg: I) => S): [S, hooks.Dispatch<A>];
|
|
2320
2366
|
useRef<T>(initialValue: T): hooks.MutableRef<T>;
|
|
2321
|
-
useRef<
|
|
2322
|
-
useRef<
|
|
2367
|
+
useRef<T>(initialValue: T | null): hooks.Ref<T>;
|
|
2368
|
+
useRef<T = undefined>(): hooks.MutableRef<T | undefined>;
|
|
2323
2369
|
useEffect(effect: hooks.EffectCallback, inputs?: hooks.Inputs): void;
|
|
2324
|
-
useImperativeHandle<
|
|
2370
|
+
useImperativeHandle<T, R extends T>(ref: import("preact").Ref<T>, create: () => R, inputs?: hooks.Inputs): void;
|
|
2325
2371
|
useLayoutEffect(effect: hooks.EffectCallback, inputs?: hooks.Inputs): void;
|
|
2326
|
-
useCallback<
|
|
2327
|
-
useMemo<
|
|
2328
|
-
useContext<
|
|
2329
|
-
useDebugValue<
|
|
2330
|
-
useErrorBoundary(callback?: (error: any, errorInfo: import("preact").ErrorInfo) => void |
|
|
2372
|
+
useCallback<T extends Function>(callback: T, inputs: hooks.Inputs): T;
|
|
2373
|
+
useMemo<T>(factory: () => T, inputs: hooks.Inputs | undefined): T;
|
|
2374
|
+
useContext<T>(context: import("preact").PreactContext<T>): T;
|
|
2375
|
+
useDebugValue<T>(value: T, formatter?: (value: T) => any): void;
|
|
2376
|
+
useErrorBoundary(callback?: (error: any, errorInfo: import("preact").ErrorInfo) => Promise<void> | void): [any, () => void];
|
|
2331
2377
|
useId(): string;
|
|
2332
2378
|
};
|
|
2333
2379
|
appCompat: {
|
|
2334
2380
|
useTransition(): [false, typeof compat.startTransition];
|
|
2335
|
-
useDeferredValue<
|
|
2336
|
-
useSyncExternalStore<
|
|
2381
|
+
useDeferredValue<T = any>(val: T): T;
|
|
2382
|
+
useSyncExternalStore<T>(subscribe: (flush: () => void) => () => void, getSnapshot: () => T): T;
|
|
2337
2383
|
startTransition(cb: () => void): void;
|
|
2338
|
-
createPortal(vnode:
|
|
2339
|
-
render(vnode:
|
|
2340
|
-
hydrate(vnode:
|
|
2341
|
-
unmountComponentAtNode(container:
|
|
2342
|
-
createFactory(type:
|
|
2384
|
+
createPortal(vnode: preact.VNode, container: preact.ContainerNode): preact.VNode<any>;
|
|
2385
|
+
render(vnode: preact.VNode<any>, parent: preact.ContainerNode, callback?: () => void): compat.Component | null;
|
|
2386
|
+
hydrate(vnode: preact.VNode<any>, parent: preact.ContainerNode, callback?: () => void): compat.Component | null;
|
|
2387
|
+
unmountComponentAtNode(container: preact.ContainerNode): boolean;
|
|
2388
|
+
createFactory(type: preact.VNode<any>["type"]): (props?: any, ...children: preact.ComponentChildren[]) => preact.VNode<any>;
|
|
2343
2389
|
isValidElement(element: any): boolean;
|
|
2344
2390
|
isFragment(element: any): boolean;
|
|
2345
|
-
findDOMNode(component:
|
|
2346
|
-
memo<P = {}>(component:
|
|
2347
|
-
memo<C extends
|
|
2348
|
-
forwardRef<
|
|
2349
|
-
ref?:
|
|
2391
|
+
findDOMNode(component: preact.Component | Element): Element | null;
|
|
2392
|
+
memo<P = {}>(component: preact.FunctionalComponent<P>, comparer?: (prev: P, next: P) => boolean): preact.FunctionComponent<P>;
|
|
2393
|
+
memo<C extends preact.FunctionalComponent<any>>(component: C, comparer?: (prev: preact.ComponentProps<C>, next: preact.ComponentProps<C>) => boolean): C;
|
|
2394
|
+
forwardRef<R, P = {}>(fn: compat.ForwardFn<P, R>): preact.FunctionalComponent<compat.PropsWithoutRef<P> & {
|
|
2395
|
+
ref?: preact.Ref<R>;
|
|
2350
2396
|
}>;
|
|
2351
|
-
flushSync<
|
|
2352
|
-
flushSync<
|
|
2397
|
+
flushSync<R>(fn: () => R): R;
|
|
2398
|
+
flushSync<A, R>(fn: (a: A) => R, a: A): R;
|
|
2353
2399
|
unstable_batchedUpdates(callback: (arg?: any) => void, arg?: any): void;
|
|
2354
2400
|
unstable_runWithPriority(priority: number, callback: () => void): void;
|
|
2355
2401
|
useCallback: typeof hooks.useCallback;
|
|
@@ -2377,11 +2423,11 @@ export declare function createDefaultLibrary(context: AuxGlobalContext): {
|
|
|
2377
2423
|
version: string;
|
|
2378
2424
|
PureComponent: typeof compat.PureComponent;
|
|
2379
2425
|
Children: {
|
|
2380
|
-
map<
|
|
2381
|
-
forEach<
|
|
2382
|
-
count: (children:
|
|
2383
|
-
only: (children:
|
|
2384
|
-
toArray: (children:
|
|
2426
|
+
map<T extends preact.ComponentChild, R>(children: T | T[], fn: (child: T, i: number) => R): R[];
|
|
2427
|
+
forEach<T extends preact.ComponentChild>(children: T | T[], fn: (child: T, i: number) => void): void;
|
|
2428
|
+
count: (children: preact.ComponentChildren) => number;
|
|
2429
|
+
only: (children: preact.ComponentChildren) => preact.ComponentChild;
|
|
2430
|
+
toArray: (children: preact.ComponentChildren) => preact.VNode<{}>[];
|
|
2385
2431
|
};
|
|
2386
2432
|
unstable_ImmediatePriority: number;
|
|
2387
2433
|
unstable_UserBlockingPriority: number;
|
|
@@ -2447,15 +2493,29 @@ export declare function createDefaultLibrary(context: AuxGlobalContext): {
|
|
|
2447
2493
|
};
|
|
2448
2494
|
recordEvent: (recordKeyOrName: string, eventName: string, endpoint?: string) => Promise<AddCountResult>;
|
|
2449
2495
|
countEvents: (recordNameOrKey: string, eventName: string, endpoint?: string) => Promise<GetCountResult>;
|
|
2496
|
+
parseVersionKey: (version: string) => VersionNumber;
|
|
2497
|
+
formatVersionKey: (key: PackageRecordVersionKey) => string;
|
|
2498
|
+
grantEntitlements: (request: GrantEntitlementsRequest, options?: RecordActionOptions) => Promise<GrantEntitlementsResult>;
|
|
2499
|
+
recordPackageVersion: (request: RecordPackageVersionApiRequest, options?: RecordActionOptions) => Promise<RecordPackageVersionResult>;
|
|
2500
|
+
erasePackageVersion: (recordName: string, address: string, key: PackageRecordVersionKey, options?: RecordActionOptions) => Promise<CrudEraseItemResult>;
|
|
2501
|
+
listPackageVersions: (recordName: string, address: string, options?: RecordActionOptions) => Promise<CrudListItemsResult<PackageRecordVersion>>;
|
|
2502
|
+
getPackageVersion: (recordName: string, address: string, key?: string | PackageRecordVersionKeySpecifier, options?: RecordActionOptions) => Promise<CrudGetItemResult<PackageRecordVersion>>;
|
|
2503
|
+
recordPackageContainer: (recordName: string, address: string, markers?: string | string[], options?: RecordActionOptions) => Promise<CrudRecordItemResult>;
|
|
2504
|
+
erasePackageContainer: (recordName: string, address: string, options?: RecordActionOptions) => Promise<CrudEraseItemResult>;
|
|
2505
|
+
listPackageContainers: (recordName: string, startingAddress?: string, options?: ListDataOptions) => Promise<CrudListItemsResult<PackageRecord>>;
|
|
2506
|
+
listPackageContainersByMarker: (recordName: string, marker: string, startingAddress?: string, options?: ListDataOptions) => Promise<CrudListItemsResult<PackageRecord>>;
|
|
2507
|
+
getPackageContainer: (recordName: string, address: string, options?: RecordActionOptions) => Promise<CrudGetItemResult<PackageRecord>>;
|
|
2508
|
+
installPackage: (recordName: string, address: string, key?: string | PackageRecordVersionKeySpecifier, options?: RecordActionOptions) => Promise<InstallPackageResult>;
|
|
2509
|
+
listInstalledPackages: (options?: RecordActionOptions) => Promise<ListInstalledPackagesResult>;
|
|
2450
2510
|
listUserStudios: (endpoint?: string) => Promise<ListStudiosResult>;
|
|
2451
2511
|
getRecordsEndpoint: () => Promise<string>;
|
|
2452
2512
|
convertGeolocationToWhat3Words: (location: ConvertGeolocationToWhat3WordsOptions) => Promise<string>;
|
|
2453
|
-
raycastFromCamera: (portal:
|
|
2454
|
-
raycast: (portal:
|
|
2455
|
-
calculateRayFromCamera: (portal:
|
|
2456
|
-
calculateViewportCoordinatesFromPosition: (portal:
|
|
2457
|
-
calculateScreenCoordinatesFromViewportCoordinates: (portal:
|
|
2458
|
-
calculateViewportCoordinatesFromScreenCoordinates: (portal:
|
|
2513
|
+
raycastFromCamera: (portal: "grid" | "miniGrid" | "map" | "miniMap", viewportCoordinates: Vector2) => Promise<RaycastResult>;
|
|
2514
|
+
raycast: (portal: "grid" | "miniGrid" | "map" | "miniMap", origin: Vector3, direction: Vector3) => Promise<RaycastResult>;
|
|
2515
|
+
calculateRayFromCamera: (portal: "grid" | "miniGrid" | "map" | "miniMap", viewportCoordinates: Vector2) => Promise<RaycastRay>;
|
|
2516
|
+
calculateViewportCoordinatesFromPosition: (portal: "grid" | "miniGrid" | "map" | "miniMap", position: Vector3) => Promise<Vector2>;
|
|
2517
|
+
calculateScreenCoordinatesFromViewportCoordinates: (portal: "grid" | "miniGrid" | "map" | "miniMap", coordinates: Point2D) => Promise<Vector2>;
|
|
2518
|
+
calculateViewportCoordinatesFromScreenCoordinates: (portal: "grid" | "miniGrid" | "map" | "miniMap", coordinates: Point2D) => Promise<Vector2>;
|
|
2459
2519
|
bufferFormAddressGLTF: (address: string) => Promise<void>;
|
|
2460
2520
|
startFormAnimation: (botOrBots: Bot | string | (Bot | string)[], nameOrIndex: string | number, options?: StartFormAnimationOptions) => Promise<void>;
|
|
2461
2521
|
stopFormAnimation: (botOrBots: Bot | string | (Bot | string)[], options?: StopFormAnimationOptions) => Promise<void>;
|
|
@@ -2479,7 +2539,7 @@ export declare function createDefaultLibrary(context: AuxGlobalContext): {
|
|
|
2479
2539
|
};
|
|
2480
2540
|
getLocalDocument: (name: string) => Promise<SharedDocument>;
|
|
2481
2541
|
getMemoryDocument: () => Promise<SharedDocument>;
|
|
2482
|
-
beginAudioRecording: (options?: Omit<BeginAudioRecordingAction,
|
|
2542
|
+
beginAudioRecording: (options?: Omit<BeginAudioRecordingAction, "type" | "taskId">) => Promise<void>;
|
|
2483
2543
|
endAudioRecording: () => Promise<Blob>;
|
|
2484
2544
|
meetCommand: (command: string, ...args: any) => Promise<void>;
|
|
2485
2545
|
meetFunction: (functionName: string, ...args: any[]) => Promise<any>;
|
|
@@ -2524,7 +2584,7 @@ export declare function createDefaultLibrary(context: AuxGlobalContext): {
|
|
|
2524
2584
|
z: number;
|
|
2525
2585
|
};
|
|
2526
2586
|
createStaticHtmlFromBots: (bots: Bot[], templateUrl?: string) => Promise<string>;
|
|
2527
|
-
beginAudioRecording: (options?: Omit<BeginAudioRecordingAction,
|
|
2587
|
+
beginAudioRecording: (options?: Omit<BeginAudioRecordingAction, "type" | "taskId">) => Promise<void>;
|
|
2528
2588
|
endAudioRecording: () => Promise<Blob>;
|
|
2529
2589
|
beginRecording: (options?: RecordingOptions) => Promise<void>;
|
|
2530
2590
|
endRecording: () => Promise<Recording>;
|
|
@@ -2578,12 +2638,12 @@ export declare function createDefaultLibrary(context: AuxGlobalContext): {
|
|
|
2578
2638
|
z: number;
|
|
2579
2639
|
}) => Vector3;
|
|
2580
2640
|
getAnchorPointOffset: (anchorPoint: BotAnchorPoint) => Vector3;
|
|
2581
|
-
addVectors: <
|
|
2582
|
-
subtractVectors: <
|
|
2583
|
-
negateVector: <
|
|
2584
|
-
normalizeVector: <
|
|
2585
|
-
vectorLength: <
|
|
2586
|
-
scaleVector: <
|
|
2641
|
+
addVectors: <T>(...vectors: T[]) => T;
|
|
2642
|
+
subtractVectors: <T>(...vectors: T[]) => T;
|
|
2643
|
+
negateVector: <T>(vector: T) => T;
|
|
2644
|
+
normalizeVector: <T>(vector: T) => T;
|
|
2645
|
+
vectorLength: <T>(vector: T) => number;
|
|
2646
|
+
scaleVector: <T>(vector: T, scale: number) => T;
|
|
2587
2647
|
areClose: (first: number, second: number) => boolean;
|
|
2588
2648
|
};
|
|
2589
2649
|
mod: {
|
|
@@ -2607,19 +2667,19 @@ export declare function createDefaultLibrary(context: AuxGlobalContext): {
|
|
|
2607
2667
|
fromBase64Url: (url: string) => Blob;
|
|
2608
2668
|
};
|
|
2609
2669
|
crypto: {
|
|
2610
|
-
_hash_raw: (algorithm:
|
|
2611
|
-
_hash_string: (algorithm:
|
|
2670
|
+
_hash_raw: (algorithm: "sha256" | "sha512" | "sha1", format: "raw", ...data: unknown[]) => Uint8Array;
|
|
2671
|
+
_hash_string: (algorithm: "sha256" | "sha512" | "sha1", format: "hex" | "base64", ...data: unknown[]) => string;
|
|
2612
2672
|
hash: {
|
|
2613
|
-
(algorithm:
|
|
2614
|
-
(algorithm:
|
|
2673
|
+
(algorithm: "sha256" | "sha512" | "sha1", format: "hex" | "base64", ...data: unknown[]): string;
|
|
2674
|
+
(algorithm: "sha256" | "sha512" | "sha1", format: "raw", ...data: unknown[]): Uint8Array;
|
|
2615
2675
|
};
|
|
2616
2676
|
sha256: (...data: unknown[]) => string;
|
|
2617
2677
|
sha512: (...data: unknown[]) => string;
|
|
2618
|
-
_hmac_string: (algorithm:
|
|
2619
|
-
_hmac_raw: (algorithm:
|
|
2678
|
+
_hmac_string: (algorithm: "sha256" | "sha512" | "sha1", format: "hex" | "base64", key: string, ...data: unknown[]) => string;
|
|
2679
|
+
_hmac_raw: (algorithm: "sha256" | "sha512" | "sha1", format: "raw", key: string, ...data: unknown[]) => Uint8Array;
|
|
2620
2680
|
hmac: {
|
|
2621
|
-
(algorithm:
|
|
2622
|
-
(algorithm:
|
|
2681
|
+
(algorithm: "hmac-sha256" | "hmac-sha512" | "hmac-sha1", format: "hex" | "base64", key: string, ...data: unknown[]): string;
|
|
2682
|
+
(algorithm: "hmac-sha256" | "hmac-sha512" | "hmac-sha1", format: "raw", key: string, ...data: unknown[]): Uint8Array;
|
|
2623
2683
|
};
|
|
2624
2684
|
hmacSha256: (key: string, ...data: unknown[]) => string;
|
|
2625
2685
|
hmacSha512: (key: string, ...data: unknown[]) => string;
|