@casual-simulation/aux-runtime 4.2.3-alpha.24150048572 → 4.2.3-alpha.24210455205

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@casual-simulation/aux-runtime",
3
- "version": "4.2.3-alpha.24150048572",
3
+ "version": "4.2.3-alpha.24210455205",
4
4
  "description": "Runtime for AUX projects",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -25,8 +25,8 @@
25
25
  "access": "public"
26
26
  },
27
27
  "dependencies": {
28
- "@casual-simulation/aux-common": "^4.2.3-alpha.24150048572",
29
- "@casual-simulation/aux-records": "^4.2.3-alpha.24150048572",
28
+ "@casual-simulation/aux-common": "^4.2.3-alpha.24210455205",
29
+ "@casual-simulation/aux-records": "^4.2.3-alpha.24210455205",
30
30
  "@casual-simulation/crypto": "^4.0.5",
31
31
  "@casual-simulation/engine262": "0.0.1-4de2170374e22761996e46eb1362f4496ee57f8f",
32
32
  "@casual-simulation/error-stack-parser": "^2.0.7",
@@ -1,7 +1,7 @@
1
1
  import type { AuxGlobalContext } from './AuxGlobalContext';
2
2
  import { DEBUG_STRING } from './AuxGlobalContext';
3
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, ShowAlertOptions, StoredAux, Geolocation, OpenPhotoCameraOptions, Photo, Point2D, RecordLoomOptions, LoomVideo, LoomVideoEmbedMetadata, InstallAuxFileMode, LoadServerConfigAction, InstConfig, UnloadServerConfigAction, Point3D, MapLayer, DynamicListener, TrackConfigBotTagsAction, GenerateQRCodeOptions, ConfigureTypeCheckingOptions } 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, ListPermissionsRequest, ListedChatModel, StoreItem, PurchasableItemReference, InstallPackageOptions } from './RecordsEvents';
4
+ import type { AIChatOptions, AIGenerateSkyboxOptions, AIGenerateImageOptions, JoinRoomActionOptions, RoomOptions, RoomTrackOptions, SetRoomTrackOptions, RoomRemoteOptions, DataRecordOptions, RecordActionOptions, ListDataOptions, AISloydGenerateModelOptions, ListWebhooksOptions, ListNotificationsOptions, SendNotificationOptions, GrantEntitlementsRequest, GrantEntitlementsResult, InstallPackageResult, ListPermissionsRequest, ListedChatModel, StoreItem, PurchasableItemReference, InstallPackageOptions, GetAccountBalancesActionOptions, AIListChatModelsOptions } from './RecordsEvents';
5
5
  import type { RemoteAction, AvailablePermissions, Entitlement, VersionNumber, GenericResult, SimpleError, JSONAccountBalance } 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';
@@ -2351,7 +2351,7 @@ export declare function createDefaultLibrary(context: AuxGlobalContext): {
2351
2351
  (message: AIChatMessage, options?: AIChatOptions): Promise<AIChatMessage>;
2352
2352
  (messages: AIChatMessage[], options?: AIChatOptions): Promise<AIChatMessage>;
2353
2353
  };
2354
- listChatModels: (options?: RecordActionOptions) => Promise<ListedChatModel[]>;
2354
+ listChatModels: (options?: AIListChatModelsOptions) => Promise<ListedChatModel[]>;
2355
2355
  generateSkybox: {
2356
2356
  (prompt: string, negativePrompt?: string, options?: AIGenerateSkyboxOptions): Promise<string>;
2357
2357
  (request: AIGenerateSkyboxRequest): Promise<AIGenerateSkyboxResult>;
@@ -2879,7 +2879,7 @@ export declare function createDefaultLibrary(context: AuxGlobalContext): {
2879
2879
  listInvoices: (contractId: string, options?: RecordActionOptions) => Promise<GenericResult<ContractInvoice[], SimpleError>>;
2880
2880
  payInvoice: (invoiceId: string, options?: RecordActionOptions) => Promise<GenericResult<void, SimpleError>>;
2881
2881
  payout: (request: APIPayoutRequest, options?: RecordActionOptions) => Promise<GenericResult<void, SimpleError>>;
2882
- getAccountBalances: (options?: RecordActionOptions) => Promise<GenericResult<JSONAccountBalance, SimpleError>>;
2882
+ getAccountBalances: (options?: GetAccountBalancesActionOptions) => Promise<GenericResult<JSONAccountBalance, SimpleError>>;
2883
2883
  };
2884
2884
  portal: {
2885
2885
  registerPrefix: (prefix: string, options?: RegisterPrefixOptions) => Promise<void>;
@@ -17,7 +17,6 @@ import { encrypt as realEncrypt, decrypt as realDecrypt, keypair as realKeypair,
17
17
  import { apply, del, insert, isTagEdit, preserve, } from '@casual-simulation/aux-common/bots';
18
18
  import { Vector3 as ThreeVector3, Plane, Ray } from '@casual-simulation/three';
19
19
  import mime from 'mime';
20
- import TWEEN from '@tweenjs/tween.js';
21
20
  import './PerformanceNowPolyfill';
22
21
  import '@casual-simulation/aux-common/BlobPolyfill';
23
22
  import { Vector3, Vector2, Quaternion, Rotation, } from '@casual-simulation/aux-common/math';
@@ -27,6 +26,7 @@ import { fromByteArray, toByteArray } from 'base64-js';
27
26
  import { parseRecordKey, isRecordKey as calcIsRecordKey, } from '@casual-simulation/aux-common';
28
27
  import SeedRandom from 'seedrandom';
29
28
  import { DateTime } from 'luxon';
29
+ import TWEEN from '@tweenjs/tween.js';
30
30
  import * as hooks from 'preact/hooks';
31
31
  import { render, createRef, createContext } from 'preact';
32
32
  import * as compat from 'preact/compat';
@@ -5359,7 +5359,7 @@ export function createDefaultLibrary(context) {
5359
5359
  return addAsyncAction(task, event);
5360
5360
  }
5361
5361
  /**
5362
- * Attempts to retrieve the account balances for the user's account.
5362
+ * Attempts to retrieve the account balances for the account.
5363
5363
  *
5364
5364
  * @param options The options for the request.
5365
5365
  * @returns A promise that resolves with the account balances.
@@ -5369,11 +5369,16 @@ export function createDefaultLibrary(context) {
5369
5369
  */
5370
5370
  function xpGetAccountBalances(options = {}) {
5371
5371
  const task = context.createTask();
5372
+ const { userId, studioId, contractId, ...rest } = options;
5372
5373
  const event = recordsCallProcedure({
5373
5374
  getBalances: {
5374
- input: {},
5375
+ input: {
5376
+ userId,
5377
+ studioId,
5378
+ contractId,
5379
+ },
5375
5380
  },
5376
- }, options, task.taskId);
5381
+ }, rest, task.taskId);
5377
5382
  return addAsyncAction(task, event);
5378
5383
  }
5379
5384
  /**
@@ -9739,6 +9744,7 @@ export function createDefaultLibrary(context) {
9739
9744
  .duration(options.duration * 1000)
9740
9745
  .easing(easing)
9741
9746
  .onUpdate((obj, elapsed) => {
9747
+ void obj;
9742
9748
  if (options.tagMaskSpace === false ||
9743
9749
  options.tagMaskSpace === getBotSpace(bot)) {
9744
9750
  setTag(bot, tag, getValue(elapsed));