connected-spaces-platform.web 4.17.1 → 4.19.0

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.
@@ -374,6 +374,14 @@ function csp_multiplayer_ConnectionStateFactory(
374
374
  ProxyClassFactories["csp_multiplayer_ConnectionState"] =
375
375
  csp_multiplayer_ConnectionStateFactory;
376
376
 
377
+ function csp_multiplayer_ErrorCodeFactory(
378
+ nativePointer: NativePointer,
379
+ ): Multiplayer.ErrorCode {
380
+ return nativePointer.pointer as Multiplayer.ErrorCode;
381
+ }
382
+ ProxyClassFactories["csp_multiplayer_ErrorCode"] =
383
+ csp_multiplayer_ErrorCodeFactory;
384
+
377
385
  function csp_multiplayer_ReplicatedValueTypeFactory(
378
386
  nativePointer: NativePointer,
379
387
  ): Multiplayer.ReplicatedValueType {
@@ -808,6 +816,13 @@ function csp_systems_TierNamesFactory(
808
816
  }
809
817
  ProxyClassFactories["csp_systems_TierNames"] = csp_systems_TierNamesFactory;
810
818
 
819
+ function csp_systems_AvatarTypeFactory(
820
+ nativePointer: NativePointer,
821
+ ): Systems.AvatarType {
822
+ return nativePointer.pointer as Systems.AvatarType;
823
+ }
824
+ ProxyClassFactories["csp_systems_AvatarType"] = csp_systems_AvatarTypeFactory;
825
+
811
826
  function csp_systems_SpaceAttributesFactory(
812
827
  nativePointer: NativePointer,
813
828
  ): Systems.SpaceAttributes {
@@ -976,14 +991,6 @@ function csp_multiplayer_ReplicatedValueFactory(
976
991
  ProxyClassFactories["csp_multiplayer_ReplicatedValue"] =
977
992
  csp_multiplayer_ReplicatedValueFactory;
978
993
 
979
- function csp_multiplayer_PropertyUpdateInfoFactory(
980
- nativePointer: NativePointer,
981
- ): NativeClassWrapper {
982
- return new Multiplayer.PropertyUpdateInfo(nativePointer);
983
- }
984
- ProxyClassFactories["csp_multiplayer_PropertyUpdateInfo"] =
985
- csp_multiplayer_PropertyUpdateInfoFactory;
986
-
987
994
  function csp_multiplayer_ComponentUpdateInfoFactory(
988
995
  nativePointer: NativePointer,
989
996
  ): NativeClassWrapper {
@@ -1898,6 +1905,14 @@ function csp_systems_SettingsCollectionResultFactory(
1898
1905
  ProxyClassFactories["csp_systems_SettingsCollectionResult"] =
1899
1906
  csp_systems_SettingsCollectionResultFactory;
1900
1907
 
1908
+ function csp_systems_AvatarInfoResultFactory(
1909
+ nativePointer: NativePointer,
1910
+ ): NativeClassWrapper {
1911
+ return new Systems.AvatarInfoResult(nativePointer);
1912
+ }
1913
+ ProxyClassFactories["csp_systems_AvatarInfoResult"] =
1914
+ csp_systems_AvatarInfoResultFactory;
1915
+
1901
1916
  function csp_systems_SettingsSystemFactory(
1902
1917
  nativePointer: NativePointer,
1903
1918
  ): NativeClassWrapper {
@@ -2077,53 +2092,13 @@ function csp_systems_LoginStateResultFactory(
2077
2092
  ProxyClassFactories["csp_systems_LoginStateResult"] =
2078
2093
  csp_systems_LoginStateResultFactory;
2079
2094
 
2080
- function csp_systems_LogoutResultFactory(
2095
+ function csp_systems_LoginTokenInfoResultFactory(
2081
2096
  nativePointer: NativePointer,
2082
2097
  ): NativeClassWrapper {
2083
- return new Systems.LogoutResult(nativePointer);
2098
+ return new Systems.LoginTokenInfoResult(nativePointer);
2084
2099
  }
2085
- ProxyClassFactories["csp_systems_LogoutResult"] =
2086
- csp_systems_LogoutResultFactory;
2087
-
2088
- function csp_systems_LoginTokenReceivedFactory(
2089
- nativePointer: NativePointer,
2090
- ): NativeClassWrapper {
2091
- return new Systems.LoginTokenReceived(nativePointer);
2092
- }
2093
- ProxyClassFactories["csp_systems_LoginTokenReceived"] =
2094
- csp_systems_LoginTokenReceivedFactory;
2095
-
2096
- function csp_systems_PingResponseReceivedFactory(
2097
- nativePointer: NativePointer,
2098
- ): NativeClassWrapper {
2099
- return new Systems.PingResponseReceived(nativePointer);
2100
- }
2101
- ProxyClassFactories["csp_systems_PingResponseReceived"] =
2102
- csp_systems_PingResponseReceivedFactory;
2103
-
2104
- function csp_systems_AgoraUserTokenResultFactory(
2105
- nativePointer: NativePointer,
2106
- ): NativeClassWrapper {
2107
- return new Systems.AgoraUserTokenResult(nativePointer);
2108
- }
2109
- ProxyClassFactories["csp_systems_AgoraUserTokenResult"] =
2110
- csp_systems_AgoraUserTokenResultFactory;
2111
-
2112
- function csp_systems_CheckoutSessionUrlResultFactory(
2113
- nativePointer: NativePointer,
2114
- ): NativeClassWrapper {
2115
- return new Systems.CheckoutSessionUrlResult(nativePointer);
2116
- }
2117
- ProxyClassFactories["csp_systems_CheckoutSessionUrlResult"] =
2118
- csp_systems_CheckoutSessionUrlResultFactory;
2119
-
2120
- function csp_systems_CustomerPortalUrlResultFactory(
2121
- nativePointer: NativePointer,
2122
- ): NativeClassWrapper {
2123
- return new Systems.CustomerPortalUrlResult(nativePointer);
2124
- }
2125
- ProxyClassFactories["csp_systems_CustomerPortalUrlResult"] =
2126
- csp_systems_CustomerPortalUrlResultFactory;
2100
+ ProxyClassFactories["csp_systems_LoginTokenInfoResult"] =
2101
+ csp_systems_LoginTokenInfoResultFactory;
2127
2102
 
2128
2103
  function csp_systems_ProfileFactory(
2129
2104
  nativePointer: NativePointer,
@@ -2254,6 +2229,18 @@ function csp_common_Array_csp_systems_AssetCollectionFactory(
2254
2229
  ProxyClassFactories["csp_common_Array_csp_systems_AssetCollection"] =
2255
2230
  csp_common_Array_csp_systems_AssetCollectionFactory;
2256
2231
 
2232
+ function csp_common_Array_csp_systems_EAssetCollectionTypeFactory(
2233
+ nativePointer: NativePointer,
2234
+ ): NativeClassWrapper {
2235
+ return new Common.Array<Systems.EAssetCollectionType>(
2236
+ nativePointer,
2237
+ csp_systems_EAssetCollectionTypeFactory,
2238
+ "csp_systems_EAssetCollectionType",
2239
+ );
2240
+ }
2241
+ ProxyClassFactories["csp_common_Array_csp_systems_EAssetCollectionType"] =
2242
+ csp_common_Array_csp_systems_EAssetCollectionTypeFactory;
2243
+
2257
2244
  function csp_common_Array_csp_systems_EAssetTypeFactory(
2258
2245
  nativePointer: NativePointer,
2259
2246
  ): NativeClassWrapper {
@@ -2721,7 +2708,7 @@ export namespace Multiplayer {
2721
2708
 
2722
2709
  export namespace Multiplayer {
2723
2710
  /**
2724
- * @description Enum used to specify the current state of the muiltiplayer connection.
2711
+ * @description Enum used to specify the current state of the multiplayer connection.
2725
2712
  */
2726
2713
  export enum ConnectionState {
2727
2714
  Connecting,
@@ -2731,6 +2718,19 @@ export namespace Multiplayer {
2731
2718
  }
2732
2719
  }
2733
2720
 
2721
+ export namespace Multiplayer {
2722
+ /**
2723
+ * @description Enum used to indicate the failure state of a multiplayer request.
2724
+ */
2725
+ export enum ErrorCode {
2726
+ None,
2727
+ Unknown,
2728
+ NotConnected,
2729
+ AlreadyConnected,
2730
+ SpaceUserLimitExceeded,
2731
+ }
2732
+ }
2733
+
2734
2734
  export namespace Multiplayer {
2735
2735
  /**
2736
2736
  * @description Enum representing the type of a replicated value.
@@ -2760,7 +2760,13 @@ export namespace Multiplayer {
2760
2760
 
2761
2761
  export namespace Multiplayer {
2762
2762
  /**
2763
- * @description Enum used to specify the type of an update operation
2763
+ * @description This Enum should be used to determine what kind of operation the component update represents.
2764
+ * Update means properties on the component have updated, all need to be checked as we do not provide reference of specific property updates.
2765
+ * Add means the component is newly added, clients should ensure that this triggers appropriate instantiation of wrapping objects.
2766
+ * All properties for the component should be included.
2767
+ * Delete means the component has been marked for deletion. It is likely that some other clients will not have the component at the point this is
2768
+ * recieved. Any wrapping data objects should be deleted when this is recieved, and clients should cease updating this component as any call would
2769
+ * fail. The CSP representation of the component has been removed at this point.
2764
2770
  */
2765
2771
  export enum ComponentUpdateType {
2766
2772
  Update,
@@ -2770,6 +2776,11 @@ export namespace Multiplayer {
2770
2776
  }
2771
2777
 
2772
2778
  export namespace Multiplayer {
2779
+ /**
2780
+ * @description Enum used to specify what part of a SpaceEntity was updated when deserialising.
2781
+ * Use this to determine which parts of an entity to copy values from when an update occurs.
2782
+ * It is a bitwise flag enum, so values are additive, the value may represent several flags.
2783
+ */
2773
2784
  export enum SpaceEntityUpdateFlags {
2774
2785
  UPDATE_FLAGS_NAME = 1,
2775
2786
  UPDATE_FLAGS_POSITION = 2,
@@ -3228,7 +3239,7 @@ export namespace Multiplayer {
3228
3239
  ReflectionAssetId,
3229
3240
  AssetCollectionId,
3230
3241
  Position,
3231
- Rotation,
3242
+ Rotation_NOT_USED,
3232
3243
  Scale,
3233
3244
  ReflectionShape,
3234
3245
  ThirdPartyComponentRef,
@@ -3425,6 +3436,7 @@ export namespace Systems {
3425
3436
  ShopifyConnectionBroken,
3426
3437
  ShopifyInvalidStoreName,
3427
3438
  UserShopifyLimitReached,
3439
+ UserTokenRefreshFailed,
3428
3440
  }
3429
3441
  }
3430
3442
 
@@ -3537,6 +3549,18 @@ export namespace Systems {
3537
3549
  }
3538
3550
  }
3539
3551
 
3552
+ export namespace Systems {
3553
+ /**
3554
+ * @description Used to specify the type of the user's avatar
3555
+ */
3556
+ export enum AvatarType {
3557
+ None,
3558
+ Premade,
3559
+ ReadyPlayerMe,
3560
+ Custom,
3561
+ }
3562
+ }
3563
+
3540
3564
  export namespace Systems {
3541
3565
  export enum SpaceAttributes {
3542
3566
  None = 0,
@@ -4613,26 +4637,6 @@ export class CSPFoundation {
4613
4637
  return _result;
4614
4638
  }
4615
4639
 
4616
- /**
4617
- * @description Gets the EntitySystemVersion number.
4618
- * This represents the system used to parse data for Entities,
4619
- * and is used to prevent conflicting entity data versions from being used together where we cannot parse both.
4620
- * This is currently unused.
4621
- * @return The system version number, a manually incremented counter that changes when significant breaking changes occur in the entity
4622
- * parsing systems
4623
- */
4624
-
4625
- static getEntitySystemVersion(): number {
4626
- let _result = Module.ccall(
4627
- "csp_CSPFoundation_GetEntitySystemVersion_int32_t",
4628
- "number",
4629
- [],
4630
- [],
4631
- );
4632
-
4633
- return _result;
4634
- }
4635
-
4636
4640
  /**
4637
4641
  * @description Unique identifier for the current device.
4638
4642
  * Used internally by certain user authentication endpoints.
@@ -21420,19 +21424,19 @@ export namespace Multiplayer {
21420
21424
 
21421
21425
  /**
21422
21426
  * @description Start the connection and register to start receiving updates from the server.
21423
- * @param callback - A callback with success status.
21427
+ * @param callback - A callback with failure state.
21424
21428
  */
21425
21429
 
21426
- async connect(): Promise<boolean> {
21430
+ async connect(): Promise<Multiplayer.ErrorCode> {
21427
21431
  var _resolve;
21428
21432
 
21429
- var _promise = new Promise<boolean>((_r) => {
21433
+ var _promise = new Promise<Multiplayer.ErrorCode>((_r) => {
21430
21434
  _resolve = _r;
21431
21435
  });
21432
21436
 
21433
21437
  var _callbackPtr: number;
21434
21438
  var _callback = (_stateObject__: number, arg1) => {
21435
- _resolve(!!arg1);
21439
+ _resolve(arg1);
21436
21440
 
21437
21441
  Module.removeFunction(_callbackPtr);
21438
21442
  };
@@ -21440,7 +21444,7 @@ export namespace Multiplayer {
21440
21444
  _callbackPtr = Module.addFunction(_callback, "vii");
21441
21445
 
21442
21446
  Module.ccall(
21443
- "csp_multiplayer_MultiplayerConnection_Connect_void_CallbackHandler",
21447
+ "csp_multiplayer_MultiplayerConnection_Connect_void_ErrorCodeCallbackHandler",
21444
21448
  "void",
21445
21449
  ["number", "number", "number"],
21446
21450
  [this.pointer, _callbackPtr, 0],
@@ -21451,19 +21455,19 @@ export namespace Multiplayer {
21451
21455
 
21452
21456
  /**
21453
21457
  * @description End the multiplayer connection.
21454
- * @param callback - A callback with success status.
21458
+ * @param callback - A callback with failure state.
21455
21459
  */
21456
21460
 
21457
- async disconnect(): Promise<boolean> {
21461
+ async disconnect(): Promise<Multiplayer.ErrorCode> {
21458
21462
  var _resolve;
21459
21463
 
21460
- var _promise = new Promise<boolean>((_r) => {
21464
+ var _promise = new Promise<Multiplayer.ErrorCode>((_r) => {
21461
21465
  _resolve = _r;
21462
21466
  });
21463
21467
 
21464
21468
  var _callbackPtr: number;
21465
21469
  var _callback = (_stateObject__: number, arg1) => {
21466
- _resolve(!!arg1);
21470
+ _resolve(arg1);
21467
21471
 
21468
21472
  Module.removeFunction(_callbackPtr);
21469
21473
  };
@@ -21471,7 +21475,7 @@ export namespace Multiplayer {
21471
21475
  _callbackPtr = Module.addFunction(_callback, "vii");
21472
21476
 
21473
21477
  Module.ccall(
21474
- "csp_multiplayer_MultiplayerConnection_Disconnect_void_CallbackHandler",
21478
+ "csp_multiplayer_MultiplayerConnection_Disconnect_void_ErrorCodeCallbackHandler",
21475
21479
  "void",
21476
21480
  ["number", "number", "number"],
21477
21481
  [this.pointer, _callbackPtr, 0],
@@ -21482,19 +21486,19 @@ export namespace Multiplayer {
21482
21486
 
21483
21487
  /**
21484
21488
  * @description Initialise the connection and get initial entity data from the server.
21485
- * @param callback - A callback with success status.
21489
+ * @param callback - A callback with failure state.
21486
21490
  */
21487
21491
 
21488
- async initialiseConnection(): Promise<boolean> {
21492
+ async initialiseConnection(): Promise<Multiplayer.ErrorCode> {
21489
21493
  var _resolve;
21490
21494
 
21491
- var _promise = new Promise<boolean>((_r) => {
21495
+ var _promise = new Promise<Multiplayer.ErrorCode>((_r) => {
21492
21496
  _resolve = _r;
21493
21497
  });
21494
21498
 
21495
21499
  var _callbackPtr: number;
21496
21500
  var _callback = (_stateObject__: number, arg1) => {
21497
- _resolve(!!arg1);
21501
+ _resolve(arg1);
21498
21502
 
21499
21503
  Module.removeFunction(_callbackPtr);
21500
21504
  };
@@ -21502,7 +21506,7 @@ export namespace Multiplayer {
21502
21506
  _callbackPtr = Module.addFunction(_callback, "vii");
21503
21507
 
21504
21508
  Module.ccall(
21505
- "csp_multiplayer_MultiplayerConnection_InitialiseConnection_void_CallbackHandler",
21509
+ "csp_multiplayer_MultiplayerConnection_InitialiseConnection_void_ErrorCodeCallbackHandler",
21506
21510
  "void",
21507
21511
  ["number", "number", "number"],
21508
21512
  [this.pointer, _callbackPtr, 0],
@@ -21515,22 +21519,22 @@ export namespace Multiplayer {
21515
21519
  * @description Sends a network event by EventName to all currently connected clients.
21516
21520
  * @param eventName - The identifying name for the event.
21517
21521
  * @param args - An array of arguments (ReplicatedValue) to be passed as part of the event payload.
21518
- * @param callback - A status callback which indicates if the event successfully sent.
21522
+ * @param callback - A callback with failure state.
21519
21523
  */
21520
21524
 
21521
21525
  async sendNetworkEvent(
21522
21526
  eventName: string,
21523
21527
  args: Common.Array<Multiplayer.ReplicatedValue>,
21524
- ): Promise<boolean> {
21528
+ ): Promise<Multiplayer.ErrorCode> {
21525
21529
  var _resolve;
21526
21530
 
21527
- var _promise = new Promise<boolean>((_r) => {
21531
+ var _promise = new Promise<Multiplayer.ErrorCode>((_r) => {
21528
21532
  _resolve = _r;
21529
21533
  });
21530
21534
 
21531
21535
  var _callbackPtr: number;
21532
21536
  var _callback = (_stateObject__: number, arg1) => {
21533
- _resolve(!!arg1);
21537
+ _resolve(arg1);
21534
21538
 
21535
21539
  Module.removeFunction(_callbackPtr);
21536
21540
  };
@@ -21538,7 +21542,7 @@ export namespace Multiplayer {
21538
21542
  _callbackPtr = Module.addFunction(_callback, "vii");
21539
21543
 
21540
21544
  Module.ccall(
21541
- "csp_multiplayer_MultiplayerConnection_SendNetworkEvent_void_StringRC_ArrayRC_CallbackHandler",
21545
+ "csp_multiplayer_MultiplayerConnection_SendNetworkEvent_void_StringRC_ArrayRC_ErrorCodeCallbackHandler",
21542
21546
  "void",
21543
21547
  ["number", "string", "number", "number", "number"],
21544
21548
  [this.pointer, eventName, args.pointer, _callbackPtr, 0],
@@ -21552,23 +21556,23 @@ export namespace Multiplayer {
21552
21556
  * @param eventName - The identifying name for the event.
21553
21557
  * @param args - An array of arguments (ReplicatedValue) to be passed as part of the event payload.
21554
21558
  * @param targetClientId - The client ID to send the event to.
21555
- * @param callback - A status callback which indicates if the event successfully sent.
21559
+ * @param callback - A callback with failure state.
21556
21560
  */
21557
21561
 
21558
21562
  async sendNetworkEventToClient(
21559
21563
  eventName: string,
21560
21564
  args: Common.Array<Multiplayer.ReplicatedValue>,
21561
21565
  targetClientId: bigint,
21562
- ): Promise<boolean> {
21566
+ ): Promise<Multiplayer.ErrorCode> {
21563
21567
  var _resolve;
21564
21568
 
21565
- var _promise = new Promise<boolean>((_r) => {
21569
+ var _promise = new Promise<Multiplayer.ErrorCode>((_r) => {
21566
21570
  _resolve = _r;
21567
21571
  });
21568
21572
 
21569
21573
  var _callbackPtr: number;
21570
21574
  var _callback = (_stateObject__: number, arg1) => {
21571
- _resolve(!!arg1);
21575
+ _resolve(arg1);
21572
21576
 
21573
21577
  Module.removeFunction(_callbackPtr);
21574
21578
  };
@@ -21576,7 +21580,7 @@ export namespace Multiplayer {
21576
21580
  _callbackPtr = Module.addFunction(_callback, "vii");
21577
21581
 
21578
21582
  Module.ccall(
21579
- "csp_multiplayer_MultiplayerConnection_SendNetworkEventToClient_void_StringRC_ArrayRC_uint64_t_CallbackHandler",
21583
+ "csp_multiplayer_MultiplayerConnection_SendNetworkEventToClient_void_StringRC_ArrayRC_uint64_t_ErrorCodeCallbackHandler",
21580
21584
  "void",
21581
21585
  ["number", "string", "number", "bigint", "number", "number"],
21582
21586
  [
@@ -21646,8 +21650,8 @@ export namespace Multiplayer {
21646
21650
 
21647
21651
  /**
21648
21652
  * @description Sets a callback for a network interruption event.
21649
- * /// Connection isn't recoverable after this point and Disconnect should be called.
21650
- * /// @param Callback NetworkInterruptionCallbackHandler : The callback for network interruption, contains a string showing failure.
21653
+ * Connection isn't recoverable after this point and Disconnect should be called.
21654
+ * @param callback - The callback for network interruption, contains a string showing failure.
21651
21655
  */
21652
21656
  setNetworkInterruptionCallback(callback: (arg1: string) => void) {
21653
21657
  var _callback = (_stateObject__: number, arg1) => {
@@ -21871,25 +21875,25 @@ export namespace Multiplayer {
21871
21875
  }
21872
21876
 
21873
21877
  /**
21874
- * @description Sets the Self Messaging flag for this client.
21875
- * /// This allows a client to declare that it wishes to recieve every patch and object message it sends.
21876
- * /// @warning Don't use this function if you aren't sure of the consequences, it's very unlikely that a client would want to use this!
21878
+ * @description Sets the Self Messaging flag for this client.
21879
+ * This allows a client to declare that it wishes to recieve every patch and object message it sends.
21880
+ @warning Don't use this function if you aren't sure of the consequences, it's very unlikely that a client would want to use this!
21877
21881
  * @param allowSelfMessaging - True to allow and false to disallow.
21878
- * @param callback - Callback providing success/fail boolean.
21882
+ * @param callback - A callback with failure state.
21879
21883
  */
21880
21884
 
21881
21885
  async setAllowSelfMessagingFlag(
21882
21886
  allowSelfMessaging: boolean,
21883
- ): Promise<boolean> {
21887
+ ): Promise<Multiplayer.ErrorCode> {
21884
21888
  var _resolve;
21885
21889
 
21886
- var _promise = new Promise<boolean>((_r) => {
21890
+ var _promise = new Promise<Multiplayer.ErrorCode>((_r) => {
21887
21891
  _resolve = _r;
21888
21892
  });
21889
21893
 
21890
21894
  var _callbackPtr: number;
21891
21895
  var _callback = (_stateObject__: number, arg1) => {
21892
- _resolve(!!arg1);
21896
+ _resolve(arg1);
21893
21897
 
21894
21898
  Module.removeFunction(_callbackPtr);
21895
21899
  };
@@ -21897,7 +21901,7 @@ export namespace Multiplayer {
21897
21901
  _callbackPtr = Module.addFunction(_callback, "vii");
21898
21902
 
21899
21903
  Module.ccall(
21900
- "csp_multiplayer_MultiplayerConnection_SetAllowSelfMessagingFlag_void_boolC_CallbackHandler",
21904
+ "csp_multiplayer_MultiplayerConnection_SetAllowSelfMessagingFlag_void_boolC_ErrorCodeCallbackHandler",
21901
21905
  "void",
21902
21906
  ["number", "boolean", "number", "number"],
21903
21907
  [this.pointer, allowSelfMessaging, _callbackPtr, 0],
@@ -22324,90 +22328,6 @@ export namespace Multiplayer {
22324
22328
  }
22325
22329
  }
22326
22330
 
22327
- export namespace Multiplayer {
22328
- export class PropertyUpdateInfo
22329
- extends NativeClassWrapper
22330
- implements INativeResource
22331
- {
22332
- /** @internal */
22333
- constructor(pointer: NativePointer) {
22334
- super(pointer);
22335
- }
22336
-
22337
- static create(): PropertyUpdateInfo {
22338
- var _ptr = Module._malloc(8);
22339
- Module.ccall(
22340
- "csp_multiplayer_PropertyUpdateInfo_Ctor",
22341
- "void",
22342
- ["number"],
22343
- [_ptr],
22344
- );
22345
- var _nPtr = getNativePointer(_ptr);
22346
-
22347
- return new PropertyUpdateInfo(_nPtr);
22348
- }
22349
-
22350
- delete(): void {
22351
- if (this.ownsPointer && !this.disposed) {
22352
- Module.ccall(
22353
- "csp_multiplayer_PropertyUpdateInfo_Dtor",
22354
- "void",
22355
- ["number"],
22356
- [this.pointer],
22357
- );
22358
-
22359
- this.disposed = true;
22360
- }
22361
- }
22362
-
22363
- get propertyId(): number {
22364
- let _result = Module.ccall(
22365
- "csp_multiplayer_PropertyUpdateInfo__Get_PropertyId",
22366
- "number",
22367
- ["number"],
22368
- [this.pointer],
22369
- );
22370
-
22371
- const _unfixedValue = _result;
22372
- let _fixedValue =
22373
- _unfixedValue < 0 ? _unfixedValue + 2 ** 32 : _unfixedValue;
22374
-
22375
- _result = _fixedValue;
22376
-
22377
- return _result;
22378
- }
22379
-
22380
- set propertyId(value: number) {
22381
- Module.ccall(
22382
- "csp_multiplayer_PropertyUpdateInfo__Set_PropertyId",
22383
- "void",
22384
- ["number", "number"],
22385
- [this.pointer, value],
22386
- );
22387
- }
22388
-
22389
- get updateType(): Multiplayer.ComponentUpdateType {
22390
- let _result = Module.ccall(
22391
- "csp_multiplayer_PropertyUpdateInfo__Get_UpdateType",
22392
- "number",
22393
- ["number"],
22394
- [this.pointer],
22395
- );
22396
-
22397
- return _result;
22398
- }
22399
-
22400
- set updateType(value: Multiplayer.ComponentUpdateType) {
22401
- Module.ccall(
22402
- "csp_multiplayer_PropertyUpdateInfo__Set_UpdateType",
22403
- "void",
22404
- ["number", "number"],
22405
- [this.pointer, value],
22406
- );
22407
- }
22408
- }
22409
- }
22410
-
22411
22331
  export namespace Multiplayer {
22412
22332
  /**
22413
22333
  * @description Info class that specifies a type of update and the ID of a component the update is applied to.
@@ -22929,6 +22849,7 @@ export namespace Multiplayer {
22929
22849
  * @description Set a callback to be executed when a patch message is received for this Entity. Only one callback can be set.
22930
22850
  * @param callback - Contains the SpaceEntity that updated, a set of flags to tell which parts updated
22931
22851
  * and an array of information to tell which components updated.
22852
+ * When this callback is recieved, the flags and arrays should be used to determine which properties have updated data.
22932
22853
  */
22933
22854
  setUpdateCallback(
22934
22855
  callback: (
@@ -23244,6 +23165,23 @@ export namespace Multiplayer {
23244
23165
 
23245
23166
  return _result;
23246
23167
  }
23168
+
23169
+ /**
23170
+ * @description Checks if the entity can be modified.
23171
+ * Specifically whether the local client already owns the entity or can take ownership of the entity.
23172
+ * @return True if the entity can be modified, False if not.
23173
+ */
23174
+
23175
+ isModifiable(): boolean {
23176
+ let _result = Module.ccall(
23177
+ "csp_multiplayer_SpaceEntity_IsModifiable_bool",
23178
+ "boolean",
23179
+ ["number"],
23180
+ [this.pointer],
23181
+ );
23182
+
23183
+ return _result;
23184
+ }
23247
23185
  }
23248
23186
  }
23249
23187
 
@@ -25628,19 +25566,6 @@ export namespace Systems {
25628
25566
  super(pointer);
25629
25567
  }
25630
25568
 
25631
- static create(): AnalyticsSystem {
25632
- var _ptr = Module._malloc(8);
25633
- Module.ccall(
25634
- "csp_systems_AnalyticsSystem_Ctor",
25635
- "void",
25636
- ["number"],
25637
- [_ptr],
25638
- );
25639
- var _nPtr = getNativePointer(_ptr);
25640
-
25641
- return new AnalyticsSystem(_nPtr);
25642
- }
25643
-
25644
25569
  /**
25645
25570
  * @description Send an event
25646
25571
  * @param event - AnalyticsEvent
@@ -26671,25 +26596,23 @@ export namespace Systems {
26671
26596
  );
26672
26597
  }
26673
26598
 
26674
- get spaceIds(): Common.Array<string> {
26675
- const _ptr = Module._malloc(8);
26676
- Module.ccall(
26677
- "csp_systems_AssetCollection__Get_SpaceIds",
26678
- "void",
26679
- ["number", "number"],
26680
- [_ptr, this.pointer],
26599
+ get spaceId(): string {
26600
+ let _result = Module.ccall(
26601
+ "csp_systems_AssetCollection__Get_SpaceId",
26602
+ "string",
26603
+ ["number"],
26604
+ [this.pointer],
26681
26605
  );
26682
26606
 
26683
- const _nPtr = getNativePointer(_ptr);
26684
- return new Common.Array<string>(_nPtr, StringFactory, "String");
26607
+ return _result;
26685
26608
  }
26686
26609
 
26687
- set spaceIds(value: Common.Array<string>) {
26610
+ set spaceId(value: string) {
26688
26611
  Module.ccall(
26689
- "csp_systems_AssetCollection__Set_SpaceIds",
26612
+ "csp_systems_AssetCollection__Set_SpaceId",
26690
26613
  "void",
26691
- ["number", "number"],
26692
- [this.pointer, value.pointer],
26614
+ ["number", "string"],
26615
+ [this.pointer, value],
26693
26616
  );
26694
26617
  }
26695
26618
 
@@ -28723,6 +28646,61 @@ export namespace Systems {
28723
28646
  return _result;
28724
28647
  }
28725
28648
 
28649
+ /**
28650
+ * @description Log a message at a specific verbosity level.
28651
+ * @param level - The level to log this message at.
28652
+ * @param inMessage - The message to be logged.
28653
+ */
28654
+
28655
+ logMsg(level: Systems.LogLevel, message: string): void {
28656
+ Module.ccall(
28657
+ "csp_systems_LogSystem_LogMsg_void_LogLevelC_StringRC",
28658
+ "void",
28659
+ ["number", "number", "string"],
28660
+ [this.pointer, level, message],
28661
+ );
28662
+ }
28663
+
28664
+ /**
28665
+ * @description Log an event.
28666
+ * @param inEvent - The event to be logged.
28667
+ */
28668
+
28669
+ logEvent(event: string): void {
28670
+ Module.ccall(
28671
+ "csp_systems_LogSystem_LogEvent_void_StringRC",
28672
+ "void",
28673
+ ["number", "string"],
28674
+ [this.pointer, event],
28675
+ );
28676
+ }
28677
+
28678
+ /**
28679
+ * @description Specify a 'Marker' event which can be used to communicate a certain process occurring, usually for debugging.
28680
+ */
28681
+
28682
+ beginMarker(marker: string): void {
28683
+ Module.ccall(
28684
+ "csp_systems_LogSystem_BeginMarker_void_StringRC",
28685
+ "void",
28686
+ ["number", "string"],
28687
+ [this.pointer, marker],
28688
+ );
28689
+ }
28690
+
28691
+ /**
28692
+ * @description End a 'Marker' event.
28693
+ */
28694
+
28695
+ endMarker(): void {
28696
+ Module.ccall(
28697
+ "csp_systems_LogSystem_EndMarker_void",
28698
+ "void",
28699
+ ["number"],
28700
+ [this.pointer],
28701
+ );
28702
+ }
28703
+
28726
28704
  /**
28727
28705
  * @description Clears all logging callbacks.
28728
28706
  */
@@ -31526,10 +31504,10 @@ export namespace Systems {
31526
31504
  );
31527
31505
  }
31528
31506
 
31529
- get lifespan(): number {
31507
+ get channelName(): string {
31530
31508
  let _result = Module.ccall(
31531
- "csp_systems_AgoraUserTokenParams__Get_Lifespan",
31532
- "number",
31509
+ "csp_systems_AgoraUserTokenParams__Get_ChannelName",
31510
+ "string",
31533
31511
  ["number"],
31534
31512
  [this.pointer],
31535
31513
  );
@@ -31537,19 +31515,19 @@ export namespace Systems {
31537
31515
  return _result;
31538
31516
  }
31539
31517
 
31540
- set lifespan(value: number) {
31518
+ set channelName(value: string) {
31541
31519
  Module.ccall(
31542
- "csp_systems_AgoraUserTokenParams__Set_Lifespan",
31520
+ "csp_systems_AgoraUserTokenParams__Set_ChannelName",
31543
31521
  "void",
31544
- ["number", "number"],
31522
+ ["number", "string"],
31545
31523
  [this.pointer, value],
31546
31524
  );
31547
31525
  }
31548
31526
 
31549
- get channelName(): string {
31527
+ get lifespan(): number {
31550
31528
  let _result = Module.ccall(
31551
- "csp_systems_AgoraUserTokenParams__Get_ChannelName",
31552
- "string",
31529
+ "csp_systems_AgoraUserTokenParams__Get_Lifespan",
31530
+ "number",
31553
31531
  ["number"],
31554
31532
  [this.pointer],
31555
31533
  );
@@ -31557,11 +31535,11 @@ export namespace Systems {
31557
31535
  return _result;
31558
31536
  }
31559
31537
 
31560
- set channelName(value: string) {
31538
+ set lifespan(value: number) {
31561
31539
  Module.ccall(
31562
- "csp_systems_AgoraUserTokenParams__Set_ChannelName",
31540
+ "csp_systems_AgoraUserTokenParams__Set_Lifespan",
31563
31541
  "void",
31564
- ["number", "string"],
31542
+ ["number", "number"],
31565
31543
  [this.pointer, value],
31566
31544
  );
31567
31545
  }
@@ -32002,6 +31980,10 @@ export namespace Multiplayer {
32002
31980
  return new AnimatedModelSpaceComponent(_nPtr);
32003
31981
  }
32004
31982
 
31983
+ /** @deprecated
31984
+ Due to the introduction of LODs it doesn't make sense to set a specific asset anymore
31985
+ */
31986
+
32005
31987
  getExternalResourceAssetId(): string {
32006
31988
  let _result = Module.ccall(
32007
31989
  "csp_multiplayer_AnimatedModelSpaceComponent_GetExternalResourceAssetIdC_StringRC",
@@ -32018,6 +32000,10 @@ export namespace Multiplayer {
32018
32000
  return _result;
32019
32001
  }
32020
32002
 
32003
+ /** @deprecated
32004
+ Due to the introduction of LODs it doesn't make sense to set a specific asset anymore
32005
+ */
32006
+
32021
32007
  setExternalResourceAssetId(value: string): void {
32022
32008
  Module.ccall(
32023
32009
  "csp_multiplayer_AnimatedModelSpaceComponent_SetExternalResourceAssetId_void_StringRC",
@@ -32435,6 +32421,7 @@ export namespace Multiplayer {
32435
32421
  extends Multiplayer.ComponentBase
32436
32422
  implements
32437
32423
  Multiplayer.IEnableableComponent,
32424
+ Multiplayer.IPositionComponent,
32438
32425
  Multiplayer.IThirdPartyComponentRef,
32439
32426
  INativeResource
32440
32427
  {
@@ -32473,13 +32460,9 @@ export namespace Multiplayer {
32473
32460
  }
32474
32461
 
32475
32462
  /**
32476
- * @description Gets the position of the origin of this component in world space.
32477
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
32478
- * - Right handed coordinate system
32479
- * - +Y is UP
32480
- * - +X is left (facing forward)
32481
- * - +Z is forward
32482
- * @return The 3D position as vector (left, up, forward) in meters.
32463
+ * \addtogroup IPositionComponent
32464
+ @{
32465
+ @copydoc IPositionComponent::GetPosition()
32483
32466
  */
32484
32467
 
32485
32468
  getPosition(): Common.Vector3 {
@@ -32498,12 +32481,7 @@ export namespace Multiplayer {
32498
32481
  }
32499
32482
 
32500
32483
  /**
32501
- * @description Sets the position of the origin of this component in world space.
32502
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
32503
- * - Right handed coordinate system
32504
- * - +Y is UP
32505
- * - +X is left (facing forward)
32506
- * - +Z is forward
32484
+ @copydoc IPositionComponent::SetPosition()
32507
32485
  */
32508
32486
 
32509
32487
  setPosition(value: Common.Vector3): void {
@@ -32516,7 +32494,8 @@ export namespace Multiplayer {
32516
32494
  }
32517
32495
 
32518
32496
  /**
32519
- * @description Gets the current playback state of the audio of this audio component.
32497
+ @}
32498
+ * @description Gets the current playback state of the audio of this audio component.
32520
32499
  * @return The current playback state of the audio of this audio component.
32521
32500
  */
32522
32501
 
@@ -33488,6 +33467,7 @@ export namespace Multiplayer {
33488
33467
  extends Multiplayer.ComponentBase
33489
33468
  implements
33490
33469
  Multiplayer.IEnableableComponent,
33470
+ Multiplayer.ITransformComponent,
33491
33471
  Multiplayer.IVisibleComponent,
33492
33472
  INativeResource
33493
33473
  {
@@ -33637,13 +33617,9 @@ export namespace Multiplayer {
33637
33617
  }
33638
33618
 
33639
33619
  /**
33640
- * @description Gets the position of the origin of this component in world space.
33641
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
33642
- * - Right handed coordinate system
33643
- * - +Y is UP
33644
- * - +X is left (facing forward)
33645
- * - +Z is forward
33646
- * @return The 3D position as vector (left, up, forward) in meters.
33620
+ * \addtogroup ITransformComponent
33621
+ @{
33622
+ @copydoc IPositionComponent::GetPosition()
33647
33623
  */
33648
33624
 
33649
33625
  getPosition(): Common.Vector3 {
@@ -33662,12 +33638,7 @@ export namespace Multiplayer {
33662
33638
  }
33663
33639
 
33664
33640
  /**
33665
- * @description Sets the position of the origin of this component in world space.
33666
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
33667
- * - Right handed coordinate system
33668
- * - +Y is UP
33669
- * - +X is left (facing forward)
33670
- * - +Z is forward
33641
+ @copydoc IPositionComponent::SetPosition()
33671
33642
  */
33672
33643
 
33673
33644
  setPosition(value: Common.Vector3): void {
@@ -33680,15 +33651,7 @@ export namespace Multiplayer {
33680
33651
  }
33681
33652
 
33682
33653
  /**
33683
- * @description Gets a quaternion representing the rotation of the origin of this component, expressed in radians.
33684
- * NOTE: The coordinate system respects the following conventions:
33685
- * - Right handed coordinate system
33686
- * - Positive rotation is counterclockwise
33687
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
33688
- * - North: +Z
33689
- * - East: -X
33690
- * - South: -Z
33691
- * - West: +X
33654
+ @copydoc IRotationComponent::GetRotation()
33692
33655
  */
33693
33656
 
33694
33657
  getRotation(): Common.Vector4 {
@@ -33707,16 +33670,7 @@ export namespace Multiplayer {
33707
33670
  }
33708
33671
 
33709
33672
  /**
33710
- * @description Sets the rotation of the origin of this component according to the specified quaternion "Value", expressed in radians.
33711
- * NOTE: The coordinate system respects the following conventions:
33712
- * - Right handed coordinate system
33713
- * - Positive rotation is counterclockwise
33714
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
33715
- * - North: +Z
33716
- * - East: -X
33717
- * - South: -Z
33718
- * - West: +X
33719
- * @param value - The quaternion in radians to use as new rotation of this component.
33673
+ @copydoc IRotationComponent::SetRotation()
33720
33674
  */
33721
33675
 
33722
33676
  setRotation(value: Common.Vector4): void {
@@ -33729,13 +33683,7 @@ export namespace Multiplayer {
33729
33683
  }
33730
33684
 
33731
33685
  /**
33732
- * @description Gets the scale of the origin of this component in world space.
33733
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
33734
- * - Right handed coordinate system
33735
- * - +Y is UP
33736
- * - +X is left (facing forward)
33737
- * - +Z is forward
33738
- * @return The 3D scale as vector (left, up, forward).
33686
+ @copydoc IScaleComponent::GetScale()
33739
33687
  */
33740
33688
 
33741
33689
  getScale(): Common.Vector3 {
@@ -33754,13 +33702,7 @@ export namespace Multiplayer {
33754
33702
  }
33755
33703
 
33756
33704
  /**
33757
- * @description Sets the scale of the origin of this component in world space to the specified "Value".
33758
- * @param value - The new value expressed as vector (left, up, forward).
33759
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
33760
- * - Right handed coordinate system
33761
- * - +Y is UP
33762
- * - +X is left (facing forward)
33763
- * - +Z is forward
33705
+ @copydoc IScaleComponent::SetScale()
33764
33706
  */
33765
33707
 
33766
33708
  setScale(value: Common.Vector3): void {
@@ -33773,6 +33715,38 @@ export namespace Multiplayer {
33773
33715
  }
33774
33716
 
33775
33717
  /**
33718
+ @copydoc ITransformComponent::GetTransform()
33719
+ */
33720
+
33721
+ getTransform(): Multiplayer.SpaceTransform {
33722
+ var _ret = Module._malloc(8);
33723
+
33724
+ Module.ccall(
33725
+ "csp_multiplayer_ButtonSpaceComponent_GetTransformC_SpaceTransform",
33726
+ "void",
33727
+ ["number", "number"],
33728
+ [_ret, this.pointer],
33729
+ );
33730
+ var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
33731
+ Module._free(_ret);
33732
+ return _nPtr;
33733
+ }
33734
+
33735
+ /**
33736
+ @copydoc ITransformComonent::SetTransform()
33737
+ */
33738
+
33739
+ setTransform(value: Multiplayer.SpaceTransform): void {
33740
+ Module.ccall(
33741
+ "csp_multiplayer_ButtonSpaceComponent_SetTransform_void_SpaceTransformRC",
33742
+ "void",
33743
+ ["number", "number"],
33744
+ [this.pointer, value.pointer],
33745
+ );
33746
+ }
33747
+
33748
+ /**
33749
+ @}
33776
33750
  * \addtogroup IClickableComponent
33777
33751
  @{
33778
33752
  @copydoc IClickableComponent::GetIsEnabled()
@@ -33883,7 +33857,10 @@ export namespace Multiplayer {
33883
33857
  */
33884
33858
  export class CollisionSpaceComponent
33885
33859
  extends Multiplayer.ComponentBase
33886
- implements Multiplayer.IThirdPartyComponentRef, INativeResource
33860
+ implements
33861
+ Multiplayer.IThirdPartyComponentRef,
33862
+ Multiplayer.ITransformComponent,
33863
+ INativeResource
33887
33864
  {
33888
33865
  /** @internal */
33889
33866
  constructor(pointer: NativePointer) {
@@ -33922,13 +33899,9 @@ export namespace Multiplayer {
33922
33899
  }
33923
33900
 
33924
33901
  /**
33925
- * @description Gets the position of the origin of this component in world space.
33926
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
33927
- * - Right handed coordinate system
33928
- * - +Y is UP
33929
- * - +X is left (facing forward)
33930
- * - +Z is forward
33931
- * @return The 3D position as vector (left, up, forward) in meters.
33902
+ * \addtogroup ITransformComponent
33903
+ @{
33904
+ @copydoc IPositionComponent::GetPosition()
33932
33905
  */
33933
33906
 
33934
33907
  getPosition(): Common.Vector3 {
@@ -33947,12 +33920,7 @@ export namespace Multiplayer {
33947
33920
  }
33948
33921
 
33949
33922
  /**
33950
- * @description Sets the position of the origin of this component in world space.
33951
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
33952
- * - Right handed coordinate system
33953
- * - +Y is UP
33954
- * - +X is left (facing forward)
33955
- * - +Z is forward
33923
+ @copydoc IPositionComponent::SetPosition()
33956
33924
  */
33957
33925
 
33958
33926
  setPosition(value: Common.Vector3): void {
@@ -33965,15 +33933,7 @@ export namespace Multiplayer {
33965
33933
  }
33966
33934
 
33967
33935
  /**
33968
- * @description Gets a quaternion representing the rotation of the origin of this component, expressed in radians.
33969
- * NOTE: The coordinate system respects the following conventions:
33970
- * - Right handed coordinate system
33971
- * - Positive rotation is counterclockwise
33972
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
33973
- * - North: +Z
33974
- * - East: -X
33975
- * - South: -Z
33976
- * - West: +X
33936
+ @copydoc IRotationComponent::GetRotation()
33977
33937
  */
33978
33938
 
33979
33939
  getRotation(): Common.Vector4 {
@@ -33992,16 +33952,7 @@ export namespace Multiplayer {
33992
33952
  }
33993
33953
 
33994
33954
  /**
33995
- * @description Sets the rotation of the origin of this component according to the specified quaternion "Value", expressed in radians.
33996
- * NOTE: The coordinate system respects the following conventions:
33997
- * - Right handed coordinate system
33998
- * - Positive rotation is counterclockwise
33999
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
34000
- * - North: +Z
34001
- * - East: -X
34002
- * - South: -Z
34003
- * - West: +X
34004
- * @param value - The quaternion in radians to use as new rotation of this component.
33955
+ @copydoc IRotationComponent::SetRotation()
34005
33956
  */
34006
33957
 
34007
33958
  setRotation(value: Common.Vector4): void {
@@ -34014,13 +33965,7 @@ export namespace Multiplayer {
34014
33965
  }
34015
33966
 
34016
33967
  /**
34017
- * @description Gets the scale of the origin of this component in world space.
34018
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
34019
- * - Right handed coordinate system
34020
- * - +Y is UP
34021
- * - +X is left (facing forward)
34022
- * - +Z is forward
34023
- * @return The 3D scale as vector (left, up, forward).
33968
+ @copydoc IScaleComponent::GetScale()
34024
33969
  */
34025
33970
 
34026
33971
  getScale(): Common.Vector3 {
@@ -34039,13 +33984,7 @@ export namespace Multiplayer {
34039
33984
  }
34040
33985
 
34041
33986
  /**
34042
- * @description Sets the scale of the origin of this component in world space to the specified "Value".
34043
- * @param value - The new value expressed as vector (left, up, forward).
34044
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
34045
- * - Right handed coordinate system
34046
- * - +Y is UP
34047
- * - +X is left (facing forward)
34048
- * - +Z is forward
33987
+ @copydoc IScaleComponent::SetScale()
34049
33988
  */
34050
33989
 
34051
33990
  setScale(value: Common.Vector3): void {
@@ -34058,7 +33997,39 @@ export namespace Multiplayer {
34058
33997
  }
34059
33998
 
34060
33999
  /**
34061
- * @description Gets the collision shape used by this collision component.
34000
+ @copydoc ITransformComponent::GetTransform()
34001
+ */
34002
+
34003
+ getTransform(): Multiplayer.SpaceTransform {
34004
+ var _ret = Module._malloc(8);
34005
+
34006
+ Module.ccall(
34007
+ "csp_multiplayer_CollisionSpaceComponent_GetTransformC_SpaceTransform",
34008
+ "void",
34009
+ ["number", "number"],
34010
+ [_ret, this.pointer],
34011
+ );
34012
+ var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
34013
+ Module._free(_ret);
34014
+ return _nPtr;
34015
+ }
34016
+
34017
+ /**
34018
+ @copydoc ITransformComonent::SetTransform()
34019
+ */
34020
+
34021
+ setTransform(value: Multiplayer.SpaceTransform): void {
34022
+ Module.ccall(
34023
+ "csp_multiplayer_CollisionSpaceComponent_SetTransform_void_SpaceTransformRC",
34024
+ "void",
34025
+ ["number", "number"],
34026
+ [this.pointer, value.pointer],
34027
+ );
34028
+ }
34029
+
34030
+ /**
34031
+ @}
34032
+ * @description Gets the collision shape used by this collision component.
34062
34033
  * @return The colllision shape used by this collision component.
34063
34034
  */
34064
34035
 
@@ -34370,7 +34341,10 @@ export namespace Multiplayer {
34370
34341
  */
34371
34342
  export class ConversationSpaceComponent
34372
34343
  extends Multiplayer.ComponentBase
34373
- implements INativeResource
34344
+ implements
34345
+ Multiplayer.IPositionComponent,
34346
+ Multiplayer.IRotationComponent,
34347
+ INativeResource
34374
34348
  {
34375
34349
  /** @internal */
34376
34350
  constructor(pointer: NativePointer) {
@@ -34807,7 +34781,9 @@ export namespace Multiplayer {
34807
34781
  }
34808
34782
 
34809
34783
  /**
34810
- * @description Gets the relative 3D position of this component.
34784
+ * \addtogroup IPositionComponent
34785
+ @{
34786
+ @copydoc IPositionComponent::GetPosition()
34811
34787
  */
34812
34788
 
34813
34789
  getPosition(): Common.Vector3 {
@@ -34826,8 +34802,7 @@ export namespace Multiplayer {
34826
34802
  }
34827
34803
 
34828
34804
  /**
34829
- * @description Sets the relative 3D position of this component.
34830
- * @param value - - The new 3D position assigned to the origin of this component.
34805
+ @copydoc IPositionComponent::SetPosition()
34831
34806
  */
34832
34807
 
34833
34808
  setPosition(value: Common.Vector3): void {
@@ -34840,7 +34815,10 @@ export namespace Multiplayer {
34840
34815
  }
34841
34816
 
34842
34817
  /**
34843
- * @description Gets the quaternion of the rotation of the origin of this component.
34818
+ @}
34819
+ * \addtogroup IRotationComponent
34820
+ @{
34821
+ @copydoc IRotationComponent::GetRotation()
34844
34822
  */
34845
34823
 
34846
34824
  getRotation(): Common.Vector4 {
@@ -34859,8 +34837,7 @@ export namespace Multiplayer {
34859
34837
  }
34860
34838
 
34861
34839
  /**
34862
- * @description Sets the quaternion of the rotation of the origin of this component.
34863
- * @param value - - The new rotation assigned to the origin of this component.
34840
+ @copydoc IRotationComponent::SetRotation()
34864
34841
  */
34865
34842
 
34866
34843
  setRotation(value: Common.Vector4): void {
@@ -34872,6 +34849,10 @@ export namespace Multiplayer {
34872
34849
  );
34873
34850
  }
34874
34851
 
34852
+ /**
34853
+ @}
34854
+ */
34855
+
34875
34856
  getIsVisible(): boolean {
34876
34857
  let _result = Module.ccall(
34877
34858
  "csp_multiplayer_ConversationSpaceComponent_GetIsVisibleC_bool",
@@ -35277,7 +35258,7 @@ export namespace Multiplayer {
35277
35258
  */
35278
35259
  export class ECommerceSpaceComponent
35279
35260
  extends Multiplayer.ComponentBase
35280
- implements INativeResource
35261
+ implements Multiplayer.IPositionComponent, INativeResource
35281
35262
  {
35282
35263
  /** @internal */
35283
35264
  constructor(pointer: NativePointer) {
@@ -35316,13 +35297,9 @@ export namespace Multiplayer {
35316
35297
  }
35317
35298
 
35318
35299
  /**
35319
- * @description Gets the position of the origin of this component in world space.
35320
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
35321
- * - Right handed coordinate system
35322
- * - +Y is UP
35323
- * - +X is left (facing forward)
35324
- * - +Z is forward
35325
- * @return The 3D position as vector (left, up, forward) in meters.
35300
+ * \addtogroup ITransformComponent
35301
+ @{
35302
+ @copydoc IPositionComponent::GetPosition()
35326
35303
  */
35327
35304
 
35328
35305
  getPosition(): Common.Vector3 {
@@ -35341,12 +35318,7 @@ export namespace Multiplayer {
35341
35318
  }
35342
35319
 
35343
35320
  /**
35344
- * @description Sets the position of the origin of this component in world space.
35345
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
35346
- * - Right handed coordinate system
35347
- * - +Y is UP
35348
- * - +X is left (facing forward)
35349
- * - +Z is forward
35321
+ @copydoc IPositionComponent::SetPosition()
35350
35322
  */
35351
35323
 
35352
35324
  setPosition(value: Common.Vector3): void {
@@ -35359,7 +35331,8 @@ export namespace Multiplayer {
35359
35331
  }
35360
35332
 
35361
35333
  /**
35362
- * @description Gets the product ID associated with the ECommerce component.
35334
+ @}
35335
+ * @description Gets the product ID associated with the ECommerce component.
35363
35336
  * @return The product ID associated with the ECommerce component.
35364
35337
  */
35365
35338
 
@@ -35418,6 +35391,7 @@ export namespace Multiplayer {
35418
35391
  extends Multiplayer.ComponentBase
35419
35392
  implements
35420
35393
  Multiplayer.IEnableableComponent,
35394
+ Multiplayer.ITransformComponent,
35421
35395
  Multiplayer.IVisibleComponent,
35422
35396
  INativeResource
35423
35397
  {
@@ -35526,7 +35500,9 @@ export namespace Multiplayer {
35526
35500
  }
35527
35501
 
35528
35502
  /**
35529
- * @description Gets the 3D position in world coordinates where the origin of this component is located.
35503
+ * \addtogroup ITransformComponent
35504
+ @{
35505
+ @copydoc IPositionComponent::GetPosition()
35530
35506
  */
35531
35507
 
35532
35508
  getPosition(): Common.Vector3 {
@@ -35545,8 +35521,7 @@ export namespace Multiplayer {
35545
35521
  }
35546
35522
 
35547
35523
  /**
35548
- * @description Sets the 3D position in world coordinates where the origin of this component will be located.
35549
- * @param value - - The new 3D position assigned to the origin of this component.
35524
+ @copydoc IPositionComponent::SetPosition()
35550
35525
  */
35551
35526
 
35552
35527
  setPosition(value: Common.Vector3): void {
@@ -35559,7 +35534,7 @@ export namespace Multiplayer {
35559
35534
  }
35560
35535
 
35561
35536
  /**
35562
- * @description Gets the quaternion of the rotation of the origin of this component.
35537
+ @copydoc IRotationComponent::GetRotation()
35563
35538
  */
35564
35539
 
35565
35540
  getRotation(): Common.Vector4 {
@@ -35578,8 +35553,7 @@ export namespace Multiplayer {
35578
35553
  }
35579
35554
 
35580
35555
  /**
35581
- * @description Sets the quaternion of the rotation of the origin of this component.
35582
- * @param value - - The new rotation assigned to the origin of this component.
35556
+ @copydoc IRotationComponent::SetRotation()
35583
35557
  */
35584
35558
 
35585
35559
  setRotation(value: Common.Vector4): void {
@@ -35592,7 +35566,7 @@ export namespace Multiplayer {
35592
35566
  }
35593
35567
 
35594
35568
  /**
35595
- * @description Gets the 3D scale of this component.
35569
+ @copydoc IScaleComponent::GetScale()
35596
35570
  */
35597
35571
 
35598
35572
  getScale(): Common.Vector3 {
@@ -35611,8 +35585,7 @@ export namespace Multiplayer {
35611
35585
  }
35612
35586
 
35613
35587
  /**
35614
- * @description Sets the 3D scale of this component.
35615
- * @param value - - The new 3D scale assigned to this component.
35588
+ @copydoc IScaleComponent::SetScale()
35616
35589
  */
35617
35590
 
35618
35591
  setScale(value: Common.Vector3): void {
@@ -35625,7 +35598,39 @@ export namespace Multiplayer {
35625
35598
  }
35626
35599
 
35627
35600
  /**
35628
- * @description Gets the text that will be displayed by the component as hyperlink to the URL it redirects to.
35601
+ @copydoc ITransformComponent::GetTransform()
35602
+ */
35603
+
35604
+ getTransform(): Multiplayer.SpaceTransform {
35605
+ var _ret = Module._malloc(8);
35606
+
35607
+ Module.ccall(
35608
+ "csp_multiplayer_ExternalLinkSpaceComponent_GetTransformC_SpaceTransform",
35609
+ "void",
35610
+ ["number", "number"],
35611
+ [_ret, this.pointer],
35612
+ );
35613
+ var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
35614
+ Module._free(_ret);
35615
+ return _nPtr;
35616
+ }
35617
+
35618
+ /**
35619
+ @copydoc ITransformComonent::SetTransform()
35620
+ */
35621
+
35622
+ setTransform(value: Multiplayer.SpaceTransform): void {
35623
+ Module.ccall(
35624
+ "csp_multiplayer_ExternalLinkSpaceComponent_SetTransform_void_SpaceTransformRC",
35625
+ "void",
35626
+ ["number", "number"],
35627
+ [this.pointer, value.pointer],
35628
+ );
35629
+ }
35630
+
35631
+ /**
35632
+ @}
35633
+ * @description Gets the text that will be displayed by the component as hyperlink to the URL it redirects to.
35629
35634
  */
35630
35635
 
35631
35636
  getDisplayText(): string {
@@ -35769,7 +35774,10 @@ export namespace Multiplayer {
35769
35774
  */
35770
35775
  export class FiducialMarkerSpaceComponent
35771
35776
  extends Multiplayer.ComponentBase
35772
- implements Multiplayer.IVisibleComponent, INativeResource
35777
+ implements
35778
+ Multiplayer.ITransformComponent,
35779
+ Multiplayer.IVisibleComponent,
35780
+ INativeResource
35773
35781
  {
35774
35782
  /** @internal */
35775
35783
  constructor(pointer: NativePointer) {
@@ -35915,13 +35923,9 @@ export namespace Multiplayer {
35915
35923
  }
35916
35924
 
35917
35925
  /**
35918
- * @description Gets the position of the origin of this component in world space.
35919
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
35920
- * - Right handed coordinate system
35921
- * - +Y is UP
35922
- * - +X is left (facing forward)
35923
- * - +Z is forward
35924
- * @return The 3D position as vector (left, up, forward) in meters.
35926
+ * \addtogroup ITransformComponent
35927
+ @{
35928
+ @copydoc IPositionComponent::GetPosition()
35925
35929
  */
35926
35930
 
35927
35931
  getPosition(): Common.Vector3 {
@@ -35940,12 +35944,7 @@ export namespace Multiplayer {
35940
35944
  }
35941
35945
 
35942
35946
  /**
35943
- * @description Sets the position of the origin of this component in world space.
35944
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
35945
- * - Right handed coordinate system
35946
- * - +Y is UP
35947
- * - +X is left (facing forward)
35948
- * - +Z is forward
35947
+ @copydoc IPositionComponent::SetPosition()
35949
35948
  */
35950
35949
 
35951
35950
  setPosition(value: Common.Vector3): void {
@@ -35958,15 +35957,7 @@ export namespace Multiplayer {
35958
35957
  }
35959
35958
 
35960
35959
  /**
35961
- * @description Gets a quaternion representing the rotation of the origin of this component, expressed in radians.
35962
- * NOTE: The coordinate system respects the following conventions:
35963
- * - Right handed coordinate system
35964
- * - Positive rotation is counterclockwise
35965
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
35966
- * - North: +Z
35967
- * - East: -X
35968
- * - South: -Z
35969
- * - West: +X
35960
+ @copydoc IRotationComponent::GetRotation()
35970
35961
  */
35971
35962
 
35972
35963
  getRotation(): Common.Vector4 {
@@ -35985,16 +35976,7 @@ export namespace Multiplayer {
35985
35976
  }
35986
35977
 
35987
35978
  /**
35988
- * @description Sets the rotation of the origin of this component according to the specified quaternion "Value", expressed in radians.
35989
- * NOTE: The coordinate system respects the following conventions:
35990
- * - Right handed coordinate system
35991
- * - Positive rotation is counterclockwise
35992
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
35993
- * - North: +Z
35994
- * - East: -X
35995
- * - South: -Z
35996
- * - West: +X
35997
- * @param value - The quaternion in radians to use as new rotation of this component.
35979
+ @copydoc IRotationComponent::SetRotation()
35998
35980
  */
35999
35981
 
36000
35982
  setRotation(value: Common.Vector4): void {
@@ -36007,13 +35989,7 @@ export namespace Multiplayer {
36007
35989
  }
36008
35990
 
36009
35991
  /**
36010
- * @description Gets the scale of the origin of this component in world space.
36011
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
36012
- * - Right handed coordinate system
36013
- * - +Y is UP
36014
- * - +X is left (facing forward)
36015
- * - +Z is forward
36016
- * @return The 3D scale as vector (left, up, forward).
35992
+ @copydoc IScaleComponent::GetScale()
36017
35993
  */
36018
35994
 
36019
35995
  getScale(): Common.Vector3 {
@@ -36032,13 +36008,7 @@ export namespace Multiplayer {
36032
36008
  }
36033
36009
 
36034
36010
  /**
36035
- * @description Sets the scale of the origin of this component in world space to the specified "Value".
36036
- * @param value - The new value expressed as vector (left, up, forward).
36037
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
36038
- * - Right handed coordinate system
36039
- * - +Y is UP
36040
- * - +X is left (facing forward)
36041
- * - +Z is forward
36011
+ @copydoc IScaleComponent::SetScale()
36042
36012
  */
36043
36013
 
36044
36014
  setScale(value: Common.Vector3): void {
@@ -36051,6 +36021,38 @@ export namespace Multiplayer {
36051
36021
  }
36052
36022
 
36053
36023
  /**
36024
+ @copydoc ITransformComponent::GetTransform()
36025
+ */
36026
+
36027
+ getTransform(): Multiplayer.SpaceTransform {
36028
+ var _ret = Module._malloc(8);
36029
+
36030
+ Module.ccall(
36031
+ "csp_multiplayer_FiducialMarkerSpaceComponent_GetTransformC_SpaceTransform",
36032
+ "void",
36033
+ ["number", "number"],
36034
+ [_ret, this.pointer],
36035
+ );
36036
+ var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
36037
+ Module._free(_ret);
36038
+ return _nPtr;
36039
+ }
36040
+
36041
+ /**
36042
+ @copydoc ITransformComonent::SetTransform()
36043
+ */
36044
+
36045
+ setTransform(value: Multiplayer.SpaceTransform): void {
36046
+ Module.ccall(
36047
+ "csp_multiplayer_FiducialMarkerSpaceComponent_SetTransform_void_SpaceTransformRC",
36048
+ "void",
36049
+ ["number", "number"],
36050
+ [this.pointer, value.pointer],
36051
+ );
36052
+ }
36053
+
36054
+ /**
36055
+ @}
36054
36056
  * \addtogroup IVisibleComponent
36055
36057
  @{
36056
36058
  @copydoc IVisibleComponent::GetIsVisible()
@@ -36131,8 +36133,9 @@ export namespace Multiplayer {
36131
36133
  export class FogSpaceComponent
36132
36134
  extends Multiplayer.ComponentBase
36133
36135
  implements
36134
- Multiplayer.IVisibleComponent,
36135
36136
  Multiplayer.IThirdPartyComponentRef,
36137
+ Multiplayer.ITransformComponent,
36138
+ Multiplayer.IVisibleComponent,
36136
36139
  INativeResource
36137
36140
  {
36138
36141
  /** @internal */
@@ -36200,13 +36203,9 @@ export namespace Multiplayer {
36200
36203
  }
36201
36204
 
36202
36205
  /**
36203
- * @description Gets the position of the origin of this component in world space.
36204
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
36205
- * - Right handed coordinate system
36206
- * - +Y is UP
36207
- * - +X is left (facing forward)
36208
- * - +Z is forward
36209
- * @return The 3D position as vector (left, up, forward) in meters.
36206
+ * \addtogroup ITransformComponent
36207
+ @{
36208
+ @copydoc IPositionComponent::GetPosition()
36210
36209
  */
36211
36210
 
36212
36211
  getPosition(): Common.Vector3 {
@@ -36225,12 +36224,7 @@ export namespace Multiplayer {
36225
36224
  }
36226
36225
 
36227
36226
  /**
36228
- * @description Sets the position of the origin of this component in world space.
36229
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
36230
- * - Right handed coordinate system
36231
- * - +Y is UP
36232
- * - +X is left (facing forward)
36233
- * - +Z is forward
36227
+ @copydoc IPositionComponent::SetPosition()
36234
36228
  */
36235
36229
 
36236
36230
  setPosition(value: Common.Vector3): void {
@@ -36243,15 +36237,7 @@ export namespace Multiplayer {
36243
36237
  }
36244
36238
 
36245
36239
  /**
36246
- * @description Gets a quaternion representing the rotation of the origin of this component, expressed in radians.
36247
- * NOTE: The coordinate system respects the following conventions:
36248
- * - Right handed coordinate system
36249
- * - Positive rotation is counterclockwise
36250
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
36251
- * - North: +Z
36252
- * - East: -X
36253
- * - South: -Z
36254
- * - West: +X
36240
+ @copydoc IRotationComponent::GetRotation()
36255
36241
  */
36256
36242
 
36257
36243
  getRotation(): Common.Vector4 {
@@ -36270,16 +36256,7 @@ export namespace Multiplayer {
36270
36256
  }
36271
36257
 
36272
36258
  /**
36273
- * @description Sets the rotation of the origin of this component according to the specified quaternion "Value", expressed in radians.
36274
- * NOTE: The coordinate system respects the following conventions:
36275
- * - Right handed coordinate system
36276
- * - Positive rotation is counterclockwise
36277
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
36278
- * - North: +Z
36279
- * - East: -X
36280
- * - South: -Z
36281
- * - West: +X
36282
- * @param value - The quaternion in radians to use as new rotation of this component.
36259
+ @copydoc IRotationComponent::SetRotation()
36283
36260
  */
36284
36261
 
36285
36262
  setRotation(value: Common.Vector4): void {
@@ -36292,13 +36269,7 @@ export namespace Multiplayer {
36292
36269
  }
36293
36270
 
36294
36271
  /**
36295
- * @description Gets the scale of the origin of this component in world space.
36296
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
36297
- * - Right handed coordinate system
36298
- * - +Y is UP
36299
- * - +X is left (facing forward)
36300
- * - +Z is forward
36301
- * @return The 3D scale as vector (left, up, forward).
36272
+ @copydoc IScaleComponent::GetScale()
36302
36273
  */
36303
36274
 
36304
36275
  getScale(): Common.Vector3 {
@@ -36317,13 +36288,7 @@ export namespace Multiplayer {
36317
36288
  }
36318
36289
 
36319
36290
  /**
36320
- * @description Sets the scale of the origin of this component in world space to the specified "Value".
36321
- * @param value - The new value expressed as vector (left, up, forward).
36322
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
36323
- * - Right handed coordinate system
36324
- * - +Y is UP
36325
- * - +X is left (facing forward)
36326
- * - +Z is forward
36291
+ @copydoc IScaleComponent::SetScale()
36327
36292
  */
36328
36293
 
36329
36294
  setScale(value: Common.Vector3): void {
@@ -36336,9 +36301,41 @@ export namespace Multiplayer {
36336
36301
  }
36337
36302
 
36338
36303
  /**
36339
- * @description Get start sistance
36340
- * Note: Distance from camera that the fog will start.
36341
- * Note: 0 = this property has no effect.
36304
+ @copydoc ITransformComponent::GetTransform()
36305
+ */
36306
+
36307
+ getTransform(): Multiplayer.SpaceTransform {
36308
+ var _ret = Module._malloc(8);
36309
+
36310
+ Module.ccall(
36311
+ "csp_multiplayer_FogSpaceComponent_GetTransformC_SpaceTransform",
36312
+ "void",
36313
+ ["number", "number"],
36314
+ [_ret, this.pointer],
36315
+ );
36316
+ var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
36317
+ Module._free(_ret);
36318
+ return _nPtr;
36319
+ }
36320
+
36321
+ /**
36322
+ @copydoc ITransformComonent::SetTransform()
36323
+ */
36324
+
36325
+ setTransform(value: Multiplayer.SpaceTransform): void {
36326
+ Module.ccall(
36327
+ "csp_multiplayer_FogSpaceComponent_SetTransform_void_SpaceTransformRC",
36328
+ "void",
36329
+ ["number", "number"],
36330
+ [this.pointer, value.pointer],
36331
+ );
36332
+ }
36333
+
36334
+ /**
36335
+ @}
36336
+ * @description Get start sistance
36337
+ * Note: Distance from camera that the fog will start.
36338
+ * Note: 0 = this property has no effect.
36342
36339
  * @return Current start distance
36343
36340
  */
36344
36341
 
@@ -36695,7 +36692,10 @@ export namespace Multiplayer {
36695
36692
  */
36696
36693
  export class ImageSpaceComponent
36697
36694
  extends Multiplayer.ComponentBase
36698
- implements Multiplayer.IVisibleComponent, INativeResource
36695
+ implements
36696
+ Multiplayer.ITransformComponent,
36697
+ Multiplayer.IVisibleComponent,
36698
+ INativeResource
36699
36699
  {
36700
36700
  /** @internal */
36701
36701
  constructor(pointer: NativePointer) {
@@ -36839,13 +36839,9 @@ export namespace Multiplayer {
36839
36839
  }
36840
36840
 
36841
36841
  /**
36842
- * @description Gets the position of the origin of this component in world space.
36843
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
36844
- * - Right handed coordinate system
36845
- * - +Y is UP
36846
- * - +X is left (facing forward)
36847
- * - +Z is forward
36848
- * @return The 3D position as vector (left, up, forward) in meters.
36842
+ * \addtogroup ITransformComponent
36843
+ @{
36844
+ @copydoc IPositionComponent::GetPosition()
36849
36845
  */
36850
36846
 
36851
36847
  getPosition(): Common.Vector3 {
@@ -36864,12 +36860,7 @@ export namespace Multiplayer {
36864
36860
  }
36865
36861
 
36866
36862
  /**
36867
- * @description Sets the position of the origin of this component in world space.
36868
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
36869
- * - Right handed coordinate system
36870
- * - +Y is UP
36871
- * - +X is left (facing forward)
36872
- * - +Z is forward
36863
+ @copydoc IPositionComponent::SetPosition()
36873
36864
  */
36874
36865
 
36875
36866
  setPosition(value: Common.Vector3): void {
@@ -36882,15 +36873,7 @@ export namespace Multiplayer {
36882
36873
  }
36883
36874
 
36884
36875
  /**
36885
- * @description Gets a quaternion representing the rotation of the origin of this component, expressed in radians.
36886
- * NOTE: The coordinate system respects the following conventions:
36887
- * - Right handed coordinate system
36888
- * - Positive rotation is counterclockwise
36889
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
36890
- * - North: +Z
36891
- * - East: -X
36892
- * - South: -Z
36893
- * - West: +X
36876
+ @copydoc IRotationComponent::GetRotation()
36894
36877
  */
36895
36878
 
36896
36879
  getRotation(): Common.Vector4 {
@@ -36909,16 +36892,7 @@ export namespace Multiplayer {
36909
36892
  }
36910
36893
 
36911
36894
  /**
36912
- * @description Sets the rotation of the origin of this component according to the specified quaternion "Value", expressed in radians.
36913
- * NOTE: The coordinate system respects the following conventions:
36914
- * - Right handed coordinate system
36915
- * - Positive rotation is counterclockwise
36916
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
36917
- * - North: +Z
36918
- * - East: -X
36919
- * - South: -Z
36920
- * - West: +X
36921
- * @param value - The quaternion in radians to use as new rotation of this component.
36895
+ @copydoc IRotationComponent::SetRotation()
36922
36896
  */
36923
36897
 
36924
36898
  setRotation(value: Common.Vector4): void {
@@ -36931,13 +36905,7 @@ export namespace Multiplayer {
36931
36905
  }
36932
36906
 
36933
36907
  /**
36934
- * @description Gets the scale of the origin of this component in world space.
36935
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
36936
- * - Right handed coordinate system
36937
- * - +Y is UP
36938
- * - +X is left (facing forward)
36939
- * - +Z is forward
36940
- * @return The 3D scale as vector (left, up, forward).
36908
+ @copydoc IScaleComponent::GetScale()
36941
36909
  */
36942
36910
 
36943
36911
  getScale(): Common.Vector3 {
@@ -36956,13 +36924,7 @@ export namespace Multiplayer {
36956
36924
  }
36957
36925
 
36958
36926
  /**
36959
- * @description Sets the scale of the origin of this component in world space to the specified "Value".
36960
- * @param value - The new value expressed as vector (left, up, forward).
36961
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
36962
- * - Right handed coordinate system
36963
- * - +Y is UP
36964
- * - +X is left (facing forward)
36965
- * - +Z is forward
36927
+ @copydoc IScaleComponent::SetScale()
36966
36928
  */
36967
36929
 
36968
36930
  setScale(value: Common.Vector3): void {
@@ -36975,7 +36937,39 @@ export namespace Multiplayer {
36975
36937
  }
36976
36938
 
36977
36939
  /**
36978
- * @description Gets the billboard mode used by this image component.
36940
+ @copydoc ITransformComponent::GetTransform()
36941
+ */
36942
+
36943
+ getTransform(): Multiplayer.SpaceTransform {
36944
+ var _ret = Module._malloc(8);
36945
+
36946
+ Module.ccall(
36947
+ "csp_multiplayer_ImageSpaceComponent_GetTransformC_SpaceTransform",
36948
+ "void",
36949
+ ["number", "number"],
36950
+ [_ret, this.pointer],
36951
+ );
36952
+ var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
36953
+ Module._free(_ret);
36954
+ return _nPtr;
36955
+ }
36956
+
36957
+ /**
36958
+ @copydoc ITransformComonent::SetTransform()
36959
+ */
36960
+
36961
+ setTransform(value: Multiplayer.SpaceTransform): void {
36962
+ Module.ccall(
36963
+ "csp_multiplayer_ImageSpaceComponent_SetTransform_void_SpaceTransformRC",
36964
+ "void",
36965
+ ["number", "number"],
36966
+ [this.pointer, value.pointer],
36967
+ );
36968
+ }
36969
+
36970
+ /**
36971
+ @}
36972
+ * @description Gets the billboard mode used by this image component.
36979
36973
  * @return The billboard mode used by this image component.
36980
36974
  */
36981
36975
 
@@ -37145,8 +37139,10 @@ export namespace Multiplayer {
37145
37139
  export class LightSpaceComponent
37146
37140
  extends Multiplayer.ComponentBase
37147
37141
  implements
37148
- Multiplayer.IVisibleComponent,
37142
+ Multiplayer.IPositionComponent,
37143
+ Multiplayer.IRotationComponent,
37149
37144
  Multiplayer.IThirdPartyComponentRef,
37145
+ Multiplayer.IVisibleComponent,
37150
37146
  INativeResource
37151
37147
  {
37152
37148
  /** @internal */
@@ -37410,13 +37406,9 @@ export namespace Multiplayer {
37410
37406
  }
37411
37407
 
37412
37408
  /**
37413
- * @description Gets the position of the origin of this component in world space.
37414
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
37415
- * - Right handed coordinate system
37416
- * - +Y is UP
37417
- * - +X is left (facing forward)
37418
- * - +Z is forward
37419
- * @return The 3D position as vector (left, up, forward) in meters.
37409
+ * \addtogroup IPositionComponent
37410
+ @{
37411
+ @copydoc IPositionComponent::GetPosition()
37420
37412
  */
37421
37413
 
37422
37414
  getPosition(): Common.Vector3 {
@@ -37435,12 +37427,7 @@ export namespace Multiplayer {
37435
37427
  }
37436
37428
 
37437
37429
  /**
37438
- * @description Sets the position of the origin of this component in world space.
37439
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
37440
- * - Right handed coordinate system
37441
- * - +Y is UP
37442
- * - +X is left (facing forward)
37443
- * - +Z is forward
37430
+ @copydoc IPositionComponent::SetPosition()
37444
37431
  */
37445
37432
 
37446
37433
  setPosition(value: Common.Vector3): void {
@@ -37453,15 +37440,10 @@ export namespace Multiplayer {
37453
37440
  }
37454
37441
 
37455
37442
  /**
37456
- * @description Gets a quaternion representing the rotation of the origin of this component, expressed in radians.
37457
- * NOTE: The coordinate system respects the following conventions:
37458
- * - Right handed coordinate system
37459
- * - Positive rotation is counterclockwise
37460
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
37461
- * - North: +Z
37462
- * - East: -X
37463
- * - South: -Z
37464
- * - West: +X
37443
+ @}
37444
+ * \addtogroup IRotationComponent
37445
+ @{
37446
+ @copydoc IRotationComponent::GetRotation()
37465
37447
  */
37466
37448
 
37467
37449
  getRotation(): Common.Vector4 {
@@ -37480,16 +37462,7 @@ export namespace Multiplayer {
37480
37462
  }
37481
37463
 
37482
37464
  /**
37483
- * @description Sets the rotation of the origin of this component according to the specified quaternion "Value", expressed in radians.
37484
- * NOTE: The coordinate system respects the following conventions:
37485
- * - Right handed coordinate system
37486
- * - Positive rotation is counterclockwise
37487
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
37488
- * - North: +Z
37489
- * - East: -X
37490
- * - South: -Z
37491
- * - West: +X
37492
- * @param value - The quaternion in radians to use as new rotation of this component.
37465
+ @copydoc IRotationComponent::SetRotation()
37493
37466
  */
37494
37467
 
37495
37468
  setRotation(value: Common.Vector4): void {
@@ -37502,7 +37475,8 @@ export namespace Multiplayer {
37502
37475
  }
37503
37476
 
37504
37477
  /**
37505
- * @description Gets the ID of the asset used for the light cookie of this light component.
37478
+ @}
37479
+ * @description Gets the ID of the asset used for the light cookie of this light component.
37506
37480
  * @return The ID of the asset used for the light cookie of this light component.
37507
37481
  */
37508
37482
 
@@ -37713,7 +37687,10 @@ export namespace Multiplayer {
37713
37687
  export namespace Multiplayer {
37714
37688
  export class PortalSpaceComponent
37715
37689
  extends Multiplayer.ComponentBase
37716
- implements Multiplayer.IEnableableComponent, INativeResource
37690
+ implements
37691
+ Multiplayer.IEnableableComponent,
37692
+ Multiplayer.IPositionComponent,
37693
+ INativeResource
37717
37694
  {
37718
37695
  /** @internal */
37719
37696
  constructor(pointer: NativePointer) {
@@ -37791,13 +37768,9 @@ export namespace Multiplayer {
37791
37768
  }
37792
37769
 
37793
37770
  /**
37794
- * @description Gets the position of the origin of this component in world space.
37795
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
37796
- * - Right handed coordinate system
37797
- * - +Y is UP
37798
- * - +X is left (facing forward)
37799
- * - +Z is forward
37800
- * @return The 3D position as vector (left, up, forward) in meters.
37771
+ * \addtogroup IPositionComponent
37772
+ @{
37773
+ @copydoc IPositionComponent::GetPosition()
37801
37774
  */
37802
37775
 
37803
37776
  getPosition(): Common.Vector3 {
@@ -37816,12 +37789,7 @@ export namespace Multiplayer {
37816
37789
  }
37817
37790
 
37818
37791
  /**
37819
- * @description Sets the position of the origin of this component in world space.
37820
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
37821
- * - Right handed coordinate system
37822
- * - +Y is UP
37823
- * - +X is left (facing forward)
37824
- * - +Z is forward
37792
+ @copydoc IPositionComponent::SetPosition()
37825
37793
  */
37826
37794
 
37827
37795
  setPosition(value: Common.Vector3): void {
@@ -37834,7 +37802,8 @@ export namespace Multiplayer {
37834
37802
  }
37835
37803
 
37836
37804
  /**
37837
- * @description Gets the radius of this portal.
37805
+ @}
37806
+ * @description Gets the radius of this portal.
37838
37807
  * @return The radius of this portal.
37839
37808
  */
37840
37809
 
@@ -37959,7 +37928,11 @@ export namespace Multiplayer {
37959
37928
  */
37960
37929
  export class ReflectionSpaceComponent
37961
37930
  extends Multiplayer.ComponentBase
37962
- implements Multiplayer.IThirdPartyComponentRef, INativeResource
37931
+ implements
37932
+ Multiplayer.IPositionComponent,
37933
+ Multiplayer.IScaleComponent,
37934
+ Multiplayer.IThirdPartyComponentRef,
37935
+ INativeResource
37963
37936
  {
37964
37937
  /** @internal */
37965
37938
  constructor(pointer: NativePointer) {
@@ -38104,7 +38077,9 @@ export namespace Multiplayer {
38104
38077
  }
38105
38078
 
38106
38079
  /**
38107
- * @description Position of the Reflection component.
38080
+ * \addtogroup IPositionComponent
38081
+ @{
38082
+ @copydoc IPositionComponent::GetPosition()
38108
38083
  */
38109
38084
 
38110
38085
  getPosition(): Common.Vector3 {
@@ -38123,8 +38098,7 @@ export namespace Multiplayer {
38123
38098
  }
38124
38099
 
38125
38100
  /**
38126
- * @description Set the position of the Reflection component.
38127
- * @param value - Position of the Reflection Component.
38101
+ @copydoc IPositionComponent::SetPosition()
38128
38102
  */
38129
38103
 
38130
38104
  setPosition(value: Common.Vector3): void {
@@ -38137,28 +38111,10 @@ export namespace Multiplayer {
38137
38111
  }
38138
38112
 
38139
38113
  /**
38140
- * @description Rotation of the Reflection component.
38141
- * @return Will return an Identity Quaternion (0, 0, 0, 1).
38142
- */
38143
-
38144
- getRotation(): Common.Vector4 {
38145
- var _ret = Module._malloc(8);
38146
-
38147
- Module.ccall(
38148
- "csp_multiplayer_ReflectionSpaceComponent_GetRotationC_Vector4RC",
38149
- "void",
38150
- ["number", "number"],
38151
- [_ret, this.pointer],
38152
- );
38153
- var _nPtr = new Common.Vector4(getNativePointer(_ret));
38154
- Module._free(_ret);
38155
-
38156
- return _nPtr;
38157
- }
38158
-
38159
- /**
38160
- * @description Scale of the Reflection components spatial extents over which the reflection should apply.
38161
- * UnitBox/Sphere * Scale == Spatial Extents.
38114
+ @}
38115
+ * \addtogroup IScaleComponent
38116
+ @{
38117
+ @copydoc IScaleComponent::GetScale()
38162
38118
  */
38163
38119
 
38164
38120
  getScale(): Common.Vector3 {
@@ -38177,9 +38133,7 @@ export namespace Multiplayer {
38177
38133
  }
38178
38134
 
38179
38135
  /**
38180
- * @description Set the scale of the Reflection components spatial extents.
38181
- * @param value - Scale extents of the Reflection Component.
38182
- * UnitBox/Sphere * Scale == Spatial Extents.
38136
+ @copydoc IScaleComponent::SetScale()
38183
38137
  */
38184
38138
 
38185
38139
  setScale(value: Common.Vector3): void {
@@ -38192,9 +38146,10 @@ export namespace Multiplayer {
38192
38146
  }
38193
38147
 
38194
38148
  /**
38195
- * @description Get the reflection shape enum value.
38196
- * ReflectionShape.UnitBox: Projects a texture in a planar fashion from all six directions (like an inward facing cube).
38197
- * ReflectionShape.UnitSphere: Warps the texture into a spherical shape and projects it onto a surface.
38149
+ @}
38150
+ * @description Get the reflection shape enum value.
38151
+ * ReflectionShape.UnitBox: Projects a texture in a planar fashion from all six directions (like an inward facing cube).
38152
+ * ReflectionShape.UnitSphere: Warps the texture into a spherical shape and projects it onto a surface.
38198
38153
  * @return Enum specifying whether the captured reflections are box projected (UnitCube) or spherical projected (UnitSphere).
38199
38154
  */
38200
38155
 
@@ -38560,11 +38515,11 @@ export namespace Multiplayer {
38560
38515
  export class StaticModelSpaceComponent
38561
38516
  extends Multiplayer.ComponentBase
38562
38517
  implements
38563
- Multiplayer.ITransformComponent,
38564
- Multiplayer.IVisibleComponent,
38565
38518
  Multiplayer.IExternalResourceComponent,
38566
- Multiplayer.IThirdPartyComponentRef,
38567
38519
  Multiplayer.IShadowCasterComponent,
38520
+ Multiplayer.IThirdPartyComponentRef,
38521
+ Multiplayer.ITransformComponent,
38522
+ Multiplayer.IVisibleComponent,
38568
38523
  INativeResource
38569
38524
  {
38570
38525
  /** @internal */
@@ -38603,6 +38558,10 @@ export namespace Multiplayer {
38603
38558
  return new StaticModelSpaceComponent(_nPtr);
38604
38559
  }
38605
38560
 
38561
+ /** @deprecated
38562
+ Due to the introduction of LODs it doesn't make sense to set a specific asset anymore
38563
+ */
38564
+
38606
38565
  getExternalResourceAssetId(): string {
38607
38566
  let _result = Module.ccall(
38608
38567
  "csp_multiplayer_StaticModelSpaceComponent_GetExternalResourceAssetIdC_StringRC",
@@ -38619,6 +38578,10 @@ export namespace Multiplayer {
38619
38578
  return _result;
38620
38579
  }
38621
38580
 
38581
+ /** @deprecated
38582
+ Due to the introduction of LODs it doesn't make sense to set a specific asset anymore
38583
+ */
38584
+
38622
38585
  setExternalResourceAssetId(value: string): void {
38623
38586
  Module.ccall(
38624
38587
  "csp_multiplayer_StaticModelSpaceComponent_SetExternalResourceAssetId_void_StringRC",
@@ -38943,8 +38906,9 @@ export namespace Multiplayer {
38943
38906
  export class VideoPlayerSpaceComponent
38944
38907
  extends Multiplayer.ComponentBase
38945
38908
  implements
38946
- Multiplayer.IVisibleComponent,
38947
38909
  Multiplayer.IEnableableComponent,
38910
+ Multiplayer.ITransformComponent,
38911
+ Multiplayer.IVisibleComponent,
38948
38912
  INativeResource
38949
38913
  {
38950
38914
  /** @internal */
@@ -39126,13 +39090,9 @@ export namespace Multiplayer {
39126
39090
  }
39127
39091
 
39128
39092
  /**
39129
- * @description Gets the position of the origin of this component in world space.
39130
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
39131
- * - Right handed coordinate system
39132
- * - +Y is UP
39133
- * - +X is left (facing forward)
39134
- * - +Z is forward
39135
- * @return The 3D position as vector (left, up, forward) in meters.
39093
+ * \addtogroup ITransformComponent
39094
+ @{
39095
+ @copydoc IPositionComponent::GetPosition()
39136
39096
  */
39137
39097
 
39138
39098
  getPosition(): Common.Vector3 {
@@ -39151,12 +39111,7 @@ export namespace Multiplayer {
39151
39111
  }
39152
39112
 
39153
39113
  /**
39154
- * @description Sets the position of the origin of this component in world space.
39155
- * NOTE: The coordinate system used follows the glTF 2.0 specification, in meters.
39156
- * - Right handed coordinate system
39157
- * - +Y is UP
39158
- * - +X is left (facing forward)
39159
- * - +Z is forward
39114
+ @copydoc IPositionComponent::SetPosition()
39160
39115
  */
39161
39116
 
39162
39117
  setPosition(value: Common.Vector3): void {
@@ -39169,15 +39124,7 @@ export namespace Multiplayer {
39169
39124
  }
39170
39125
 
39171
39126
  /**
39172
- * @description Gets a quaternion representing the rotation of the origin of this component, expressed in radians.
39173
- * NOTE: The coordinate system respects the following conventions:
39174
- * - Right handed coordinate system
39175
- * - Positive rotation is counterclockwise
39176
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
39177
- * - North: +Z
39178
- * - East: -X
39179
- * - South: -Z
39180
- * - West: +X
39127
+ @copydoc IRotationComponent::GetRotation()
39181
39128
  */
39182
39129
 
39183
39130
  getRotation(): Common.Vector4 {
@@ -39196,16 +39143,7 @@ export namespace Multiplayer {
39196
39143
  }
39197
39144
 
39198
39145
  /**
39199
- * @description Sets the rotation of the origin of this component according to the specified quaternion "Value", expressed in radians.
39200
- * NOTE: The coordinate system respects the following conventions:
39201
- * - Right handed coordinate system
39202
- * - Positive rotation is counterclockwise
39203
- * - The geographic North is along the positive Z axis (+Z) at an orientation of 0 degrees.
39204
- * - North: +Z
39205
- * - East: -X
39206
- * - South: -Z
39207
- * - West: +X
39208
- * @param value - The quaternion in radians to use as new rotation of this component.
39146
+ @copydoc IRotationComponent::SetRotation()
39209
39147
  */
39210
39148
 
39211
39149
  setRotation(value: Common.Vector4): void {
@@ -39218,13 +39156,7 @@ export namespace Multiplayer {
39218
39156
  }
39219
39157
 
39220
39158
  /**
39221
- * @description Gets the scale of the origin of this component in world space.
39222
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
39223
- * - Right handed coordinate system
39224
- * - +Y is UP
39225
- * - +X is left (facing forward)
39226
- * - +Z is forward
39227
- * @return The 3D scale as vector (left, up, forward).
39159
+ @copydoc IScaleComponent::GetScale()
39228
39160
  */
39229
39161
 
39230
39162
  getScale(): Common.Vector3 {
@@ -39243,13 +39175,7 @@ export namespace Multiplayer {
39243
39175
  }
39244
39176
 
39245
39177
  /**
39246
- * @description Sets the scale of the origin of this component in world space to the specified "Value".
39247
- * @param value - The new value expressed as vector (left, up, forward).
39248
- * NOTE: The coordinate system used follows the glTF 2.0 specification.
39249
- * - Right handed coordinate system
39250
- * - +Y is UP
39251
- * - +X is left (facing forward)
39252
- * - +Z is forward
39178
+ @copydoc IScaleComponent::SetScale()
39253
39179
  */
39254
39180
 
39255
39181
  setScale(value: Common.Vector3): void {
@@ -39262,7 +39188,39 @@ export namespace Multiplayer {
39262
39188
  }
39263
39189
 
39264
39190
  /**
39265
- * @description Checks if the playback state of this video player needs to be shared with other users through replication.
39191
+ @copydoc ITransformComponent::GetTransform()
39192
+ */
39193
+
39194
+ getTransform(): Multiplayer.SpaceTransform {
39195
+ var _ret = Module._malloc(8);
39196
+
39197
+ Module.ccall(
39198
+ "csp_multiplayer_VideoPlayerSpaceComponent_GetTransformC_SpaceTransform",
39199
+ "void",
39200
+ ["number", "number"],
39201
+ [_ret, this.pointer],
39202
+ );
39203
+ var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
39204
+ Module._free(_ret);
39205
+ return _nPtr;
39206
+ }
39207
+
39208
+ /**
39209
+ @copydoc ITransformComonent::SetTransform()
39210
+ */
39211
+
39212
+ setTransform(value: Multiplayer.SpaceTransform): void {
39213
+ Module.ccall(
39214
+ "csp_multiplayer_VideoPlayerSpaceComponent_SetTransform_void_SpaceTransformRC",
39215
+ "void",
39216
+ ["number", "number"],
39217
+ [this.pointer, value.pointer],
39218
+ );
39219
+ }
39220
+
39221
+ /**
39222
+ @}
39223
+ * @description Checks if the playback state of this video player needs to be shared with other users through replication.
39266
39224
  * @return True if the playback state of the video needs to be shared among all users, false otherwise.
39267
39225
  */
39268
39226
 
@@ -40630,6 +40588,15 @@ export namespace Systems {
40630
40588
  return _result;
40631
40589
  }
40632
40590
 
40591
+ setUri(value: string): void {
40592
+ Module.ccall(
40593
+ "csp_systems_UriResult_SetUri_void_StringRC",
40594
+ "void",
40595
+ ["number", "string"],
40596
+ [this.pointer, value],
40597
+ );
40598
+ }
40599
+
40633
40600
  delete(): void {
40634
40601
  if (this.ownsPointer && !this.disposed) {
40635
40602
  Module.ccall(
@@ -41023,24 +40990,30 @@ export namespace Systems {
41023
40990
  }
41024
40991
 
41025
40992
  /**
41026
- * @description Finds an asset collection by its Id.
41027
- * @param assetCollectionId - Asset collection to delete
40993
+ * @description Copies an array of asset collections to another space. Note that all source asset collections must belong to the same space.
40994
+ * @param sourceAssetCollections - The array of asset collections to copy. They must all belong to the same
40995
+ * space.
40996
+ * @param destSpaceId - The unique identifier of the space to copy these asset collections to.
40997
+ * @param copyAsync - Whether to instruct the services to perform the copy of the asset collections
40998
+ * asynchronously.
41028
40999
  * @param callback - Callback when asynchronous task finishes
41029
41000
  */
41030
41001
 
41031
- async getAssetCollectionById(
41032
- assetCollectionId: string,
41033
- ): Promise<Systems.AssetCollectionResult> {
41002
+ async copyAssetCollectionsToSpace(
41003
+ sourceAssetCollections: Common.Array<Systems.AssetCollection>,
41004
+ destSpaceId: string,
41005
+ copyAsync: boolean,
41006
+ ): Promise<Systems.AssetCollectionsResult> {
41034
41007
  var _resolve;
41035
41008
 
41036
- var _promise = new Promise<Systems.AssetCollectionResult>((_r) => {
41009
+ var _promise = new Promise<Systems.AssetCollectionsResult>((_r) => {
41037
41010
  _resolve = _r;
41038
41011
  });
41039
41012
 
41040
41013
  var _callbackPtr: number;
41041
41014
  var _callback = (_stateObject__: number, result) => {
41042
41015
  var _resultPtr = getNativePointer(result);
41043
- var _resultInstance = new Systems.AssetCollectionResult(_resultPtr);
41016
+ var _resultInstance = new Systems.AssetCollectionsResult(_resultPtr);
41044
41017
 
41045
41018
  if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
41046
41019
  return;
@@ -41054,23 +41027,30 @@ export namespace Systems {
41054
41027
  _callbackPtr = Module.addFunction(_callback, "vii");
41055
41028
 
41056
41029
  Module.ccall(
41057
- "csp_systems_AssetSystem_GetAssetCollectionById_void_StringRC_AssetCollectionResultCallback",
41030
+ "csp_systems_AssetSystem_CopyAssetCollectionsToSpace_void_ArrayR_StringRC_bool_AssetCollectionsResultCallback",
41058
41031
  "void",
41059
- ["number", "string", "number", "number"],
41060
- [this.pointer, assetCollectionId, _callbackPtr, 0],
41032
+ ["number", "number", "string", "boolean", "number", "number"],
41033
+ [
41034
+ this.pointer,
41035
+ sourceAssetCollections.pointer,
41036
+ destSpaceId,
41037
+ copyAsync,
41038
+ _callbackPtr,
41039
+ 0,
41040
+ ],
41061
41041
  );
41062
41042
 
41063
41043
  return _promise;
41064
41044
  }
41065
41045
 
41066
41046
  /**
41067
- * @description Finds an asset collection by its Name.
41068
- * @param assetCollectionName - Name of the asset collection to be retrieved
41047
+ * @description Finds an asset collection by its Id.
41048
+ * @param assetCollectionId - Asset collection to delete
41069
41049
  * @param callback - Callback when asynchronous task finishes
41070
41050
  */
41071
41051
 
41072
- async getAssetCollectionByName(
41073
- assetCollectionName: string,
41052
+ async getAssetCollectionById(
41053
+ assetCollectionId: string,
41074
41054
  ): Promise<Systems.AssetCollectionResult> {
41075
41055
  var _resolve;
41076
41056
 
@@ -41095,34 +41075,34 @@ export namespace Systems {
41095
41075
  _callbackPtr = Module.addFunction(_callback, "vii");
41096
41076
 
41097
41077
  Module.ccall(
41098
- "csp_systems_AssetSystem_GetAssetCollectionByName_void_StringRC_AssetCollectionResultCallback",
41078
+ "csp_systems_AssetSystem_GetAssetCollectionById_void_StringRC_AssetCollectionResultCallback",
41099
41079
  "void",
41100
41080
  ["number", "string", "number", "number"],
41101
- [this.pointer, assetCollectionName, _callbackPtr, 0],
41081
+ [this.pointer, assetCollectionId, _callbackPtr, 0],
41102
41082
  );
41103
41083
 
41104
41084
  return _promise;
41105
41085
  }
41106
41086
 
41107
41087
  /**
41108
- * @description Finds a collection of asset collections by their Ids.
41109
- * @param assetCollectionIds - An array of ids to search for
41088
+ * @description Finds an asset collection by its Name.
41089
+ * @param assetCollectionName - Name of the asset collection to be retrieved
41110
41090
  * @param callback - Callback when asynchronous task finishes
41111
41091
  */
41112
41092
 
41113
- async getAssetCollectionsByIds(
41114
- assetCollectionIds: Common.Array<string>,
41115
- ): Promise<Systems.AssetCollectionsResult> {
41093
+ async getAssetCollectionByName(
41094
+ assetCollectionName: string,
41095
+ ): Promise<Systems.AssetCollectionResult> {
41116
41096
  var _resolve;
41117
41097
 
41118
- var _promise = new Promise<Systems.AssetCollectionsResult>((_r) => {
41098
+ var _promise = new Promise<Systems.AssetCollectionResult>((_r) => {
41119
41099
  _resolve = _r;
41120
41100
  });
41121
41101
 
41122
41102
  var _callbackPtr: number;
41123
41103
  var _callback = (_stateObject__: number, result) => {
41124
41104
  var _resultPtr = getNativePointer(result);
41125
- var _resultInstance = new Systems.AssetCollectionsResult(_resultPtr);
41105
+ var _resultInstance = new Systems.AssetCollectionResult(_resultPtr);
41126
41106
 
41127
41107
  if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
41128
41108
  return;
@@ -41136,10 +41116,10 @@ export namespace Systems {
41136
41116
  _callbackPtr = Module.addFunction(_callback, "vii");
41137
41117
 
41138
41118
  Module.ccall(
41139
- "csp_systems_AssetSystem_GetAssetCollectionsByIds_void_ArrayRC_AssetCollectionsResultCallback",
41119
+ "csp_systems_AssetSystem_GetAssetCollectionByName_void_StringRC_AssetCollectionResultCallback",
41140
41120
  "void",
41141
- ["number", "number", "number", "number"],
41142
- [this.pointer, assetCollectionIds.pointer, _callbackPtr, 0],
41121
+ ["number", "string", "number", "number"],
41122
+ [this.pointer, assetCollectionName, _callbackPtr, 0],
41143
41123
  );
41144
41124
 
41145
41125
  return _promise;
@@ -41161,12 +41141,13 @@ export namespace Systems {
41161
41141
  * @param callback - Callback when asynchronous task finishes
41162
41142
  */
41163
41143
 
41164
- async getAssetCollectionsByCriteria(
41165
- spaceId: string | null,
41166
- assetCollectionParentId: string | null,
41167
- assetCollectionType: Systems.EAssetCollectionType | null,
41168
- assetCollectionTags: Common.Array<string> | null,
41169
- assetCollectionNames: Common.Array<string> | null,
41144
+ async findAssetCollections(
41145
+ ids: Common.Array<string> | null,
41146
+ parentId: string | null,
41147
+ names: Common.Array<string> | null,
41148
+ types: Common.Array<Systems.EAssetCollectionType> | null,
41149
+ tags: Common.Array<string> | null,
41150
+ spaceIds: Common.Array<string> | null,
41170
41151
  resultsSkipNumber: number | null,
41171
41152
  resultsMaxNumber: number | null,
41172
41153
  ): Promise<Systems.AssetCollectionsResult> {
@@ -41192,12 +41173,6 @@ export namespace Systems {
41192
41173
 
41193
41174
  _callbackPtr = Module.addFunction(_callback, "vii");
41194
41175
 
41195
- var assetCollectionTypePointer = 0;
41196
- if (assetCollectionType != null) {
41197
- assetCollectionTypePointer = Module._malloc(4);
41198
- Module.setValue(assetCollectionTypePointer, assetCollectionType, "i32");
41199
- }
41200
-
41201
41176
  var resultsSkipNumberPointer = 0;
41202
41177
  if (resultsSkipNumber != null) {
41203
41178
  resultsSkipNumberPointer = Module._malloc(4);
@@ -41211,12 +41186,13 @@ export namespace Systems {
41211
41186
  }
41212
41187
 
41213
41188
  Module.ccall(
41214
- "csp_systems_AssetSystem_GetAssetCollectionsByCriteria_void_StringRC_StringRC_EAssetCollectionTypeRC_ArrayRC_ArrayRC_intRC_intRC_AssetCollectionsResultCallback",
41189
+ "csp_systems_AssetSystem_FindAssetCollections_void_ArrayRC_StringRC_ArrayRC_ArrayRC_ArrayRC_ArrayRC_intRC_intRC_AssetCollectionsResultCallback",
41215
41190
  "void",
41216
41191
  [
41192
+ "number",
41217
41193
  "number",
41218
41194
  "string",
41219
- "string",
41195
+ "number",
41220
41196
  "number",
41221
41197
  "number",
41222
41198
  "number",
@@ -41227,11 +41203,12 @@ export namespace Systems {
41227
41203
  ],
41228
41204
  [
41229
41205
  this.pointer,
41230
- spaceId,
41231
- assetCollectionParentId,
41232
- assetCollectionTypePointer,
41233
- assetCollectionTags != null ? assetCollectionTags.pointer : 0,
41234
- assetCollectionNames != null ? assetCollectionNames.pointer : 0,
41206
+ ids != null ? ids.pointer : 0,
41207
+ parentId,
41208
+ names != null ? names.pointer : 0,
41209
+ types != null ? types.pointer : 0,
41210
+ tags != null ? tags.pointer : 0,
41211
+ spaceIds != null ? spaceIds.pointer : 0,
41235
41212
  resultsSkipNumberPointer,
41236
41213
  resultsMaxNumberPointer,
41237
41214
  _callbackPtr,
@@ -41239,9 +41216,6 @@ export namespace Systems {
41239
41216
  ],
41240
41217
  );
41241
41218
 
41242
- if (assetCollectionTypePointer) {
41243
- Module._free(assetCollectionTypePointer);
41244
- }
41245
41219
  if (resultsSkipNumberPointer) {
41246
41220
  Module._free(resultsSkipNumberPointer);
41247
41221
  }
@@ -42385,19 +42359,6 @@ export namespace Systems {
42385
42359
  );
42386
42360
  }
42387
42361
 
42388
- static create(): ECommerceSystem {
42389
- var _ptr = Module._malloc(8);
42390
- Module.ccall(
42391
- "csp_systems_ECommerceSystem_Ctor",
42392
- "void",
42393
- ["number"],
42394
- [_ptr],
42395
- );
42396
- var _nPtr = getNativePointer(_ptr);
42397
-
42398
- return new ECommerceSystem(_nPtr);
42399
- }
42400
-
42401
42362
  /**
42402
42363
  * @description Get product information from a shopify store within a space
42403
42364
  * @param spaceId - Space id of product
@@ -43627,48 +43588,6 @@ export namespace Systems {
43627
43588
  );
43628
43589
  }
43629
43590
 
43630
- static create(): MaintenanceInfoResult {
43631
- var _ptr = Module._malloc(8);
43632
- Module.ccall(
43633
- "csp_systems_MaintenanceInfoResult_Ctor",
43634
- "void",
43635
- ["number"],
43636
- [_ptr],
43637
- );
43638
- var _nPtr = getNativePointer(_ptr);
43639
-
43640
- return new MaintenanceInfoResult(_nPtr);
43641
- }
43642
-
43643
- static create_arg1(arg1: number): MaintenanceInfoResult {
43644
- var _ptr = Module._malloc(8);
43645
- Module.ccall(
43646
- "csp_systems_MaintenanceInfoResult_Ctor_voidP",
43647
- "void",
43648
- ["number", "void"],
43649
- [_ptr, arg1],
43650
- );
43651
- var _nPtr = getNativePointer(_ptr);
43652
-
43653
- return new MaintenanceInfoResult(_nPtr);
43654
- }
43655
-
43656
- static create_resCode_httpResCode(
43657
- resCode: Systems.EResultCode,
43658
- httpResCode: number,
43659
- ): MaintenanceInfoResult {
43660
- var _ptr = Module._malloc(8);
43661
- Module.ccall(
43662
- "csp_systems_MaintenanceInfoResult_Ctor_EResultCode_uint16_t",
43663
- "void",
43664
- ["number", "number", "number"],
43665
- [_ptr, resCode, httpResCode],
43666
- );
43667
- var _nPtr = getNativePointer(_ptr);
43668
-
43669
- return new MaintenanceInfoResult(_nPtr);
43670
- }
43671
-
43672
43591
  /**
43673
43592
  * @description Retrieves response data from the Maintenance Window Server
43674
43593
  * @return Return all maintenance information available in date order
@@ -44555,6 +44474,76 @@ export namespace Systems {
44555
44474
  }
44556
44475
  }
44557
44476
 
44477
+ export namespace Systems {
44478
+ /**
44479
+ * @description A result handler that is used to notify a user of an error while passing a String value.
44480
+ */
44481
+ export class AvatarInfoResult
44482
+ extends Systems.ResultBase
44483
+ implements INativeResource
44484
+ {
44485
+ /** @internal */
44486
+ constructor(pointer: NativePointer) {
44487
+ super(pointer);
44488
+ }
44489
+
44490
+ static fromResultBase(
44491
+ baseInstance: Systems.ResultBase,
44492
+ ): Systems.AvatarInfoResult {
44493
+ const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
44494
+ return new Systems.AvatarInfoResult(
44495
+ new NativePointer(
44496
+ nativeClassWrapper.pointer,
44497
+ nativeClassWrapper.ownsPointer,
44498
+ ),
44499
+ );
44500
+ }
44501
+
44502
+ /**
44503
+ * @description A getter which returns the String passed via the result.
44504
+ */
44505
+
44506
+ getAvatarType(): Systems.AvatarType {
44507
+ let _result = Module.ccall(
44508
+ "csp_systems_AvatarInfoResult_GetAvatarTypeC_AvatarType",
44509
+ "number",
44510
+ ["number"],
44511
+ [this.pointer],
44512
+ );
44513
+
44514
+ return _result;
44515
+ }
44516
+
44517
+ getAvatarIdentifier(): Common.Variant {
44518
+ var _ret = Module._malloc(8);
44519
+
44520
+ Module.ccall(
44521
+ "csp_systems_AvatarInfoResult_GetAvatarIdentifierC_VariantRC",
44522
+ "void",
44523
+ ["number", "number"],
44524
+ [_ret, this.pointer],
44525
+ );
44526
+ var _nPtr = new Common.Variant(getNativePointer(_ret));
44527
+ Module._free(_ret);
44528
+
44529
+ return _nPtr;
44530
+ }
44531
+
44532
+ delete(): void {
44533
+ if (this.ownsPointer && !this.disposed) {
44534
+ Module.ccall(
44535
+ "csp_systems_AvatarInfoResult_Dtor",
44536
+ "void",
44537
+ ["number"],
44538
+ [this.pointer],
44539
+ );
44540
+
44541
+ this.disposed = true;
44542
+ }
44543
+ }
44544
+ }
44545
+ }
44546
+
44558
44547
  export namespace Systems {
44559
44548
  /**
44560
44549
  @ingroup Settings System
@@ -44586,10 +44575,7 @@ export namespace Systems {
44586
44575
  * @param callback - Callback when asynchronous task finishes.
44587
44576
  */
44588
44577
 
44589
- async setNDAStatus(
44590
- userId: string,
44591
- value: boolean,
44592
- ): Promise<Systems.NullResult> {
44578
+ async setNDAStatus(value: boolean): Promise<Systems.NullResult> {
44593
44579
  var _resolve;
44594
44580
 
44595
44581
  var _promise = new Promise<Systems.NullResult>((_r) => {
@@ -44613,10 +44599,10 @@ export namespace Systems {
44613
44599
  _callbackPtr = Module.addFunction(_callback, "vii");
44614
44600
 
44615
44601
  Module.ccall(
44616
- "csp_systems_SettingsSystem_SetNDAStatus_void_StringRC_bool_NullResultCallback",
44602
+ "csp_systems_SettingsSystem_SetNDAStatus_void_bool_NullResultCallback",
44617
44603
  "void",
44618
- ["number", "string", "boolean", "number", "number"],
44619
- [this.pointer, userId, value, _callbackPtr, 0],
44604
+ ["number", "boolean", "number", "number"],
44605
+ [this.pointer, value, _callbackPtr, 0],
44620
44606
  );
44621
44607
 
44622
44608
  return _promise;
@@ -44627,7 +44613,7 @@ export namespace Systems {
44627
44613
  * @param callback - Callback to call when a response is received.
44628
44614
  */
44629
44615
 
44630
- async getNDAStatus(userId: string): Promise<Systems.BooleanResult> {
44616
+ async getNDAStatus(): Promise<Systems.BooleanResult> {
44631
44617
  var _resolve;
44632
44618
 
44633
44619
  var _promise = new Promise<Systems.BooleanResult>((_r) => {
@@ -44651,10 +44637,10 @@ export namespace Systems {
44651
44637
  _callbackPtr = Module.addFunction(_callback, "vii");
44652
44638
 
44653
44639
  Module.ccall(
44654
- "csp_systems_SettingsSystem_GetNDAStatus_void_StringRC_BooleanResultCallback",
44640
+ "csp_systems_SettingsSystem_GetNDAStatus_void_BooleanResultCallback",
44655
44641
  "void",
44656
- ["number", "string", "number", "number"],
44657
- [this.pointer, userId, _callbackPtr, 0],
44642
+ ["number", "number", "number"],
44643
+ [this.pointer, _callbackPtr, 0],
44658
44644
  );
44659
44645
 
44660
44646
  return _promise;
@@ -44667,10 +44653,7 @@ export namespace Systems {
44667
44653
  * @param callback - Callback when asynchronous task finishes
44668
44654
  */
44669
44655
 
44670
- async setNewsletterStatus(
44671
- userId: string,
44672
- value: boolean,
44673
- ): Promise<Systems.NullResult> {
44656
+ async setNewsletterStatus(value: boolean): Promise<Systems.NullResult> {
44674
44657
  var _resolve;
44675
44658
 
44676
44659
  var _promise = new Promise<Systems.NullResult>((_r) => {
@@ -44694,10 +44677,10 @@ export namespace Systems {
44694
44677
  _callbackPtr = Module.addFunction(_callback, "vii");
44695
44678
 
44696
44679
  Module.ccall(
44697
- "csp_systems_SettingsSystem_SetNewsletterStatus_void_StringRC_bool_NullResultCallback",
44680
+ "csp_systems_SettingsSystem_SetNewsletterStatus_void_bool_NullResultCallback",
44698
44681
  "void",
44699
- ["number", "string", "boolean", "number", "number"],
44700
- [this.pointer, userId, value, _callbackPtr, 0],
44682
+ ["number", "boolean", "number", "number"],
44683
+ [this.pointer, value, _callbackPtr, 0],
44701
44684
  );
44702
44685
 
44703
44686
  return _promise;
@@ -44708,7 +44691,7 @@ export namespace Systems {
44708
44691
  * @param callback - Callback to call when a response is received.
44709
44692
  */
44710
44693
 
44711
- async getNewsletterStatus(userId: string): Promise<Systems.BooleanResult> {
44694
+ async getNewsletterStatus(): Promise<Systems.BooleanResult> {
44712
44695
  var _resolve;
44713
44696
 
44714
44697
  var _promise = new Promise<Systems.BooleanResult>((_r) => {
@@ -44732,10 +44715,10 @@ export namespace Systems {
44732
44715
  _callbackPtr = Module.addFunction(_callback, "vii");
44733
44716
 
44734
44717
  Module.ccall(
44735
- "csp_systems_SettingsSystem_GetNewsletterStatus_void_StringRC_BooleanResultCallback",
44718
+ "csp_systems_SettingsSystem_GetNewsletterStatus_void_BooleanResultCallback",
44736
44719
  "void",
44737
- ["number", "string", "number", "number"],
44738
- [this.pointer, userId, _callbackPtr, 0],
44720
+ ["number", "number", "number"],
44721
+ [this.pointer, _callbackPtr, 0],
44739
44722
  );
44740
44723
 
44741
44724
  return _promise;
@@ -44750,7 +44733,6 @@ export namespace Systems {
44750
44733
  */
44751
44734
 
44752
44735
  async addRecentlyVisitedSpace(
44753
- userId: string,
44754
44736
  spaceID: string,
44755
44737
  ): Promise<Systems.NullResult> {
44756
44738
  var _resolve;
@@ -44776,10 +44758,10 @@ export namespace Systems {
44776
44758
  _callbackPtr = Module.addFunction(_callback, "vii");
44777
44759
 
44778
44760
  Module.ccall(
44779
- "csp_systems_SettingsSystem_AddRecentlyVisitedSpace_void_StringRC_StringC_NullResultCallback",
44761
+ "csp_systems_SettingsSystem_AddRecentlyVisitedSpace_void_StringC_NullResultCallback",
44780
44762
  "void",
44781
- ["number", "string", "string", "number", "number"],
44782
- [this.pointer, userId, spaceID, _callbackPtr, 0],
44763
+ ["number", "string", "number", "number"],
44764
+ [this.pointer, spaceID, _callbackPtr, 0],
44783
44765
  );
44784
44766
 
44785
44767
  return _promise;
@@ -44791,9 +44773,7 @@ export namespace Systems {
44791
44773
  * @param callback - Callback to call when a response is received.
44792
44774
  */
44793
44775
 
44794
- async getRecentlyVisitedSpaces(
44795
- userId: string,
44796
- ): Promise<Systems.StringArrayResult> {
44776
+ async getRecentlyVisitedSpaces(): Promise<Systems.StringArrayResult> {
44797
44777
  var _resolve;
44798
44778
 
44799
44779
  var _promise = new Promise<Systems.StringArrayResult>((_r) => {
@@ -44817,10 +44797,10 @@ export namespace Systems {
44817
44797
  _callbackPtr = Module.addFunction(_callback, "vii");
44818
44798
 
44819
44799
  Module.ccall(
44820
- "csp_systems_SettingsSystem_GetRecentlyVisitedSpaces_void_StringRC_StringArrayResultCallback",
44800
+ "csp_systems_SettingsSystem_GetRecentlyVisitedSpaces_void_StringArrayResultCallback",
44821
44801
  "void",
44822
- ["number", "string", "number", "number"],
44823
- [this.pointer, userId, _callbackPtr, 0],
44802
+ ["number", "number", "number"],
44803
+ [this.pointer, _callbackPtr, 0],
44824
44804
  );
44825
44805
 
44826
44806
  return _promise;
@@ -44831,9 +44811,7 @@ export namespace Systems {
44831
44811
  * @param callback - Callback when asynchronous task finishes.
44832
44812
  */
44833
44813
 
44834
- async clearRecentlyVisitedSpaces(
44835
- userId: string,
44836
- ): Promise<Systems.NullResult> {
44814
+ async clearRecentlyVisitedSpaces(): Promise<Systems.NullResult> {
44837
44815
  var _resolve;
44838
44816
 
44839
44817
  var _promise = new Promise<Systems.NullResult>((_r) => {
@@ -44857,10 +44835,10 @@ export namespace Systems {
44857
44835
  _callbackPtr = Module.addFunction(_callback, "vii");
44858
44836
 
44859
44837
  Module.ccall(
44860
- "csp_systems_SettingsSystem_ClearRecentlyVisitedSpaces_void_StringRC_NullResultCallback",
44838
+ "csp_systems_SettingsSystem_ClearRecentlyVisitedSpaces_void_NullResultCallback",
44861
44839
  "void",
44862
- ["number", "string", "number", "number"],
44863
- [this.pointer, userId, _callbackPtr, 0],
44840
+ ["number", "number", "number"],
44841
+ [this.pointer, _callbackPtr, 0],
44864
44842
  );
44865
44843
 
44866
44844
  return _promise;
@@ -44874,10 +44852,7 @@ export namespace Systems {
44874
44852
  * @param callback - Callback when asynchronous task finishes
44875
44853
  */
44876
44854
 
44877
- async addBlockedSpace(
44878
- userId: string,
44879
- spaceID: string,
44880
- ): Promise<Systems.NullResult> {
44855
+ async addBlockedSpace(spaceID: string): Promise<Systems.NullResult> {
44881
44856
  var _resolve;
44882
44857
 
44883
44858
  var _promise = new Promise<Systems.NullResult>((_r) => {
@@ -44901,10 +44876,10 @@ export namespace Systems {
44901
44876
  _callbackPtr = Module.addFunction(_callback, "vii");
44902
44877
 
44903
44878
  Module.ccall(
44904
- "csp_systems_SettingsSystem_AddBlockedSpace_void_StringRC_StringC_NullResultCallback",
44879
+ "csp_systems_SettingsSystem_AddBlockedSpace_void_StringC_NullResultCallback",
44905
44880
  "void",
44906
- ["number", "string", "string", "number", "number"],
44907
- [this.pointer, userId, spaceID, _callbackPtr, 0],
44881
+ ["number", "string", "number", "number"],
44882
+ [this.pointer, spaceID, _callbackPtr, 0],
44908
44883
  );
44909
44884
 
44910
44885
  return _promise;
@@ -44916,10 +44891,7 @@ export namespace Systems {
44916
44891
  * @param callback - Callback when asynchronous task finishes
44917
44892
  */
44918
44893
 
44919
- async removeBlockedSpace(
44920
- userId: string,
44921
- spaceID: string,
44922
- ): Promise<Systems.NullResult> {
44894
+ async removeBlockedSpace(spaceID: string): Promise<Systems.NullResult> {
44923
44895
  var _resolve;
44924
44896
 
44925
44897
  var _promise = new Promise<Systems.NullResult>((_r) => {
@@ -44943,10 +44915,10 @@ export namespace Systems {
44943
44915
  _callbackPtr = Module.addFunction(_callback, "vii");
44944
44916
 
44945
44917
  Module.ccall(
44946
- "csp_systems_SettingsSystem_RemoveBlockedSpace_void_StringRC_StringC_NullResultCallback",
44918
+ "csp_systems_SettingsSystem_RemoveBlockedSpace_void_StringC_NullResultCallback",
44947
44919
  "void",
44948
- ["number", "string", "string", "number", "number"],
44949
- [this.pointer, userId, spaceID, _callbackPtr, 0],
44920
+ ["number", "string", "number", "number"],
44921
+ [this.pointer, spaceID, _callbackPtr, 0],
44950
44922
  );
44951
44923
 
44952
44924
  return _promise;
@@ -44958,7 +44930,7 @@ export namespace Systems {
44958
44930
  * @param callback - Callback to call when a response is received.
44959
44931
  */
44960
44932
 
44961
- async getBlockedSpaces(userId: string): Promise<Systems.StringArrayResult> {
44933
+ async getBlockedSpaces(): Promise<Systems.StringArrayResult> {
44962
44934
  var _resolve;
44963
44935
 
44964
44936
  var _promise = new Promise<Systems.StringArrayResult>((_r) => {
@@ -44982,10 +44954,10 @@ export namespace Systems {
44982
44954
  _callbackPtr = Module.addFunction(_callback, "vii");
44983
44955
 
44984
44956
  Module.ccall(
44985
- "csp_systems_SettingsSystem_GetBlockedSpaces_void_StringRC_StringArrayResultCallback",
44957
+ "csp_systems_SettingsSystem_GetBlockedSpaces_void_StringArrayResultCallback",
44986
44958
  "void",
44987
- ["number", "string", "number", "number"],
44988
- [this.pointer, userId, _callbackPtr, 0],
44959
+ ["number", "number", "number"],
44960
+ [this.pointer, _callbackPtr, 0],
44989
44961
  );
44990
44962
 
44991
44963
  return _promise;
@@ -44996,7 +44968,7 @@ export namespace Systems {
44996
44968
  * @param callback - Callback when asynchronous task finishes.
44997
44969
  */
44998
44970
 
44999
- async clearBlockedSpaces(userId: string): Promise<Systems.NullResult> {
44971
+ async clearBlockedSpaces(): Promise<Systems.NullResult> {
45000
44972
  var _resolve;
45001
44973
 
45002
44974
  var _promise = new Promise<Systems.NullResult>((_r) => {
@@ -45020,10 +44992,10 @@ export namespace Systems {
45020
44992
  _callbackPtr = Module.addFunction(_callback, "vii");
45021
44993
 
45022
44994
  Module.ccall(
45023
- "csp_systems_SettingsSystem_ClearBlockedSpaces_void_StringRC_NullResultCallback",
44995
+ "csp_systems_SettingsSystem_ClearBlockedSpaces_void_NullResultCallback",
45024
44996
  "void",
45025
- ["number", "string", "number", "number"],
45026
- [this.pointer, userId, _callbackPtr, 0],
44997
+ ["number", "number", "number"],
44998
+ [this.pointer, _callbackPtr, 0],
45027
44999
  );
45028
45000
 
45029
45001
  return _promise;
@@ -45031,13 +45003,11 @@ export namespace Systems {
45031
45003
 
45032
45004
  /**
45033
45005
  * @description Updates the Portrait Avatar image or adds one if it didn't have it previously using FileAssetDataSource
45034
- * @param userId - UserId of Avatar Portrait
45035
45006
  * @param newAvatarPortrait - New Portrait Avatar information
45036
45007
  * @param callback - Callback when asynchronous task finishes
45037
45008
  */
45038
45009
 
45039
45010
  async updateAvatarPortrait(
45040
- userId: string,
45041
45011
  newAvatarPortrait: Systems.FileAssetDataSource,
45042
45012
  ): Promise<Systems.NullResult> {
45043
45013
  var _resolve;
@@ -45063,10 +45033,10 @@ export namespace Systems {
45063
45033
  _callbackPtr = Module.addFunction(_callback, "vii");
45064
45034
 
45065
45035
  Module.ccall(
45066
- "csp_systems_SettingsSystem_UpdateAvatarPortrait_void_StringRC_FileAssetDataSourceRC_NullResultCallback",
45036
+ "csp_systems_SettingsSystem_UpdateAvatarPortrait_void_FileAssetDataSourceRC_NullResultCallback",
45067
45037
  "void",
45068
- ["number", "string", "number", "number", "number"],
45069
- [this.pointer, userId, newAvatarPortrait.pointer, _callbackPtr, 0],
45038
+ ["number", "number", "number", "number"],
45039
+ [this.pointer, newAvatarPortrait.pointer, _callbackPtr, 0],
45070
45040
  );
45071
45041
 
45072
45042
  return _promise;
@@ -45076,11 +45046,10 @@ export namespace Systems {
45076
45046
  * @description Retrieves the Avatar Portrait information associated with the space
45077
45047
  * If the user of the Avatar portrait associated with it the result callback will be successful, the HTTP res code will be ResponseNotFound
45078
45048
  * and the Uri field inside the UriResult will be empty
45079
- * @param userId - UserId of Avatar Portrait
45080
45049
  * @param callback - Callback when asynchronous task finishes
45081
45050
  */
45082
45051
 
45083
- async getAvatarPortrait(userId: string): Promise<Systems.UriResult> {
45052
+ async getAvatarPortrait(): Promise<Systems.UriResult> {
45084
45053
  var _resolve;
45085
45054
 
45086
45055
  var _promise = new Promise<Systems.UriResult>((_r) => {
@@ -45104,10 +45073,10 @@ export namespace Systems {
45104
45073
  _callbackPtr = Module.addFunction(_callback, "vii");
45105
45074
 
45106
45075
  Module.ccall(
45107
- "csp_systems_SettingsSystem_GetAvatarPortrait_void_StringRC_UriResultCallback",
45076
+ "csp_systems_SettingsSystem_GetAvatarPortrait_void_UriResultCallback",
45108
45077
  "void",
45109
- ["number", "string", "number", "number"],
45110
- [this.pointer, userId, _callbackPtr, 0],
45078
+ ["number", "number", "number"],
45079
+ [this.pointer, _callbackPtr, 0],
45111
45080
  );
45112
45081
 
45113
45082
  return _promise;
@@ -45115,13 +45084,11 @@ export namespace Systems {
45115
45084
 
45116
45085
  /**
45117
45086
  * @description Updates the Avatar Portrait image or adds one if it didn't have it previously using BufferAssetDataSource
45118
- * @param userId - UserId of Avatar Portrait
45119
45087
  * @param newAvatarPortrait - New Avatar Portrait information
45120
45088
  * @param callback - Callback when asynchronous task finishes
45121
45089
  */
45122
45090
 
45123
45091
  async updateAvatarPortraitWithBuffer(
45124
- userId: string,
45125
45092
  newAvatarPortrait: Systems.BufferAssetDataSource,
45126
45093
  ): Promise<Systems.NullResult> {
45127
45094
  var _resolve;
@@ -45147,10 +45114,91 @@ export namespace Systems {
45147
45114
  _callbackPtr = Module.addFunction(_callback, "vii");
45148
45115
 
45149
45116
  Module.ccall(
45150
- "csp_systems_SettingsSystem_UpdateAvatarPortraitWithBuffer_void_StringRC_BufferAssetDataSourceRC_NullResultCallback",
45117
+ "csp_systems_SettingsSystem_UpdateAvatarPortraitWithBuffer_void_BufferAssetDataSourceRC_NullResultCallback",
45151
45118
  "void",
45152
- ["number", "string", "number", "number", "number"],
45153
- [this.pointer, userId, newAvatarPortrait.pointer, _callbackPtr, 0],
45119
+ ["number", "number", "number", "number"],
45120
+ [this.pointer, newAvatarPortrait.pointer, _callbackPtr, 0],
45121
+ );
45122
+
45123
+ return _promise;
45124
+ }
45125
+
45126
+ /**
45127
+ * @description Sets the avatar type and identifier for a user.
45128
+ * @param inType - The type of avatar (predefined, Ready Player Me, or custom).
45129
+ * @param inIdentifier - A value used to identify or locate the avatar. Differs depending on the value of InType.
45130
+ * @param callback - Callback to call when task finishes.
45131
+ */
45132
+
45133
+ async setAvatarInfo(
45134
+ type: Systems.AvatarType,
45135
+ identifier: Common.Variant,
45136
+ ): Promise<Systems.NullResult> {
45137
+ var _resolve;
45138
+
45139
+ var _promise = new Promise<Systems.NullResult>((_r) => {
45140
+ _resolve = _r;
45141
+ });
45142
+
45143
+ var _callbackPtr: number;
45144
+ var _callback = (_stateObject__: number, result) => {
45145
+ var _resultPtr = getNativePointer(result);
45146
+ var _resultInstance = new Systems.NullResult(_resultPtr);
45147
+
45148
+ if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
45149
+ return;
45150
+ }
45151
+
45152
+ _resolve(_resultInstance);
45153
+
45154
+ Module.removeFunction(_callbackPtr);
45155
+ };
45156
+
45157
+ _callbackPtr = Module.addFunction(_callback, "vii");
45158
+
45159
+ Module.ccall(
45160
+ "csp_systems_SettingsSystem_SetAvatarInfo_void_AvatarType_VariantRC_NullResultCallback",
45161
+ "void",
45162
+ ["number", "number", "number", "number", "number"],
45163
+ [this.pointer, type, identifier.pointer, _callbackPtr, 0],
45164
+ );
45165
+
45166
+ return _promise;
45167
+ }
45168
+
45169
+ /**
45170
+ * @description Retrieves the avatar type and identifier for a user.
45171
+ * @param callback - Callback to call when task finishes.
45172
+ */
45173
+
45174
+ async getAvatarInfo(): Promise<Systems.AvatarInfoResult> {
45175
+ var _resolve;
45176
+
45177
+ var _promise = new Promise<Systems.AvatarInfoResult>((_r) => {
45178
+ _resolve = _r;
45179
+ });
45180
+
45181
+ var _callbackPtr: number;
45182
+ var _callback = (_stateObject__: number, result) => {
45183
+ var _resultPtr = getNativePointer(result);
45184
+ var _resultInstance = new Systems.AvatarInfoResult(_resultPtr);
45185
+
45186
+ if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
45187
+ return;
45188
+ }
45189
+
45190
+ _resolve(_resultInstance);
45191
+
45192
+ Module.removeFunction(_callbackPtr);
45193
+ };
45194
+
45195
+ _callbackPtr = Module.addFunction(_callback, "vii");
45196
+
45197
+ Module.ccall(
45198
+ "csp_systems_SettingsSystem_GetAvatarInfo_void_AvatarInfoResultCallback",
45199
+ "void",
45200
+ ["number", "number", "number"],
45201
+ [this.pointer, _callbackPtr, 0],
45154
45202
  );
45155
45203
 
45156
45204
  return _promise;
@@ -48776,7 +48824,7 @@ export namespace Systems {
48776
48824
  var _ret = Module._malloc(8);
48777
48825
 
48778
48826
  Module.ccall(
48779
- "csp_systems_LoginStateResult_GetLoginState_LoginStateR",
48827
+ "csp_systems_LoginStateResult_GetLoginStateC_LoginStateRC",
48780
48828
  "void",
48781
48829
  ["number", "number"],
48782
48830
  [_ret, this.pointer],
@@ -48802,52 +48850,12 @@ export namespace Systems {
48802
48850
  }
48803
48851
  }
48804
48852
 
48805
- export namespace Systems {
48806
- /**
48807
- * @description Result structure for a logout state request.
48808
- */
48809
- export class LogoutResult
48810
- extends Systems.NullResult
48811
- implements INativeResource
48812
- {
48813
- /** @internal */
48814
- constructor(pointer: NativePointer) {
48815
- super(pointer);
48816
- }
48817
-
48818
- static fromNullResult(
48819
- baseInstance: Systems.NullResult,
48820
- ): Systems.LogoutResult {
48821
- const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
48822
- return new Systems.LogoutResult(
48823
- new NativePointer(
48824
- nativeClassWrapper.pointer,
48825
- nativeClassWrapper.ownsPointer,
48826
- ),
48827
- );
48828
- }
48829
-
48830
- delete(): void {
48831
- if (this.ownsPointer && !this.disposed) {
48832
- Module.ccall(
48833
- "csp_systems_LogoutResult_Dtor",
48834
- "void",
48835
- ["number"],
48836
- [this.pointer],
48837
- );
48838
-
48839
- this.disposed = true;
48840
- }
48841
- }
48842
- }
48843
- }
48844
-
48845
48853
  export namespace Systems {
48846
48854
  /**
48847
48855
  @ingroup User System
48848
48856
  * @description @brief Data class used to contain information when the login token has changed
48849
48857
  */
48850
- export class LoginTokenReceived
48858
+ export class LoginTokenInfoResult
48851
48859
  extends Systems.ResultBase
48852
48860
  implements INativeResource
48853
48861
  {
@@ -48858,9 +48866,9 @@ export namespace Systems {
48858
48866
 
48859
48867
  static fromResultBase(
48860
48868
  baseInstance: Systems.ResultBase,
48861
- ): Systems.LoginTokenReceived {
48869
+ ): Systems.LoginTokenInfoResult {
48862
48870
  const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
48863
- return new Systems.LoginTokenReceived(
48871
+ return new Systems.LoginTokenInfoResult(
48864
48872
  new NativePointer(
48865
48873
  nativeClassWrapper.pointer,
48866
48874
  nativeClassWrapper.ownsPointer,
@@ -48872,7 +48880,7 @@ export namespace Systems {
48872
48880
  var _ret = Module._malloc(8);
48873
48881
 
48874
48882
  Module.ccall(
48875
- "csp_systems_LoginTokenReceived_GetLoginTokenInfo_LoginTokenInfoR",
48883
+ "csp_systems_LoginTokenInfoResult_GetLoginTokenInfoC_LoginTokenInfoRC",
48876
48884
  "void",
48877
48885
  ["number", "number"],
48878
48886
  [_ret, this.pointer],
@@ -48886,269 +48894,7 @@ export namespace Systems {
48886
48894
  delete(): void {
48887
48895
  if (this.ownsPointer && !this.disposed) {
48888
48896
  Module.ccall(
48889
- "csp_systems_LoginTokenReceived_Dtor",
48890
- "void",
48891
- ["number"],
48892
- [this.pointer],
48893
- );
48894
-
48895
- this.disposed = true;
48896
- }
48897
- }
48898
- }
48899
- }
48900
-
48901
- export namespace Systems {
48902
- /**
48903
- @ingroup User System
48904
- * @description @brief Data class used to contain information when a ping response is received
48905
- */
48906
- export class PingResponseReceived
48907
- extends Systems.ResultBase
48908
- implements INativeResource
48909
- {
48910
- /** @internal */
48911
- constructor(pointer: NativePointer) {
48912
- super(pointer);
48913
- }
48914
-
48915
- static fromResultBase(
48916
- baseInstance: Systems.ResultBase,
48917
- ): Systems.PingResponseReceived {
48918
- const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
48919
- return new Systems.PingResponseReceived(
48920
- new NativePointer(
48921
- nativeClassWrapper.pointer,
48922
- nativeClassWrapper.ownsPointer,
48923
- ),
48924
- );
48925
- }
48926
-
48927
- delete(): void {
48928
- if (this.ownsPointer && !this.disposed) {
48929
- Module.ccall(
48930
- "csp_systems_PingResponseReceived_Dtor",
48931
- "void",
48932
- ["number"],
48933
- [this.pointer],
48934
- );
48935
-
48936
- this.disposed = true;
48937
- }
48938
- }
48939
- }
48940
- }
48941
-
48942
- export namespace Systems {
48943
- /**
48944
- @ingroup User System
48945
- * @description @brief Data class used to contain information requesting a user token
48946
- */
48947
- export class AgoraUserTokenResult
48948
- extends Systems.ResultBase
48949
- implements INativeResource
48950
- {
48951
- /** @internal */
48952
- constructor(pointer: NativePointer) {
48953
- super(pointer);
48954
- }
48955
-
48956
- static fromResultBase(
48957
- baseInstance: Systems.ResultBase,
48958
- ): Systems.AgoraUserTokenResult {
48959
- const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
48960
- return new Systems.AgoraUserTokenResult(
48961
- new NativePointer(
48962
- nativeClassWrapper.pointer,
48963
- nativeClassWrapper.ownsPointer,
48964
- ),
48965
- );
48966
- }
48967
-
48968
- getUserToken(): string {
48969
- let _result = Module.ccall(
48970
- "csp_systems_AgoraUserTokenResult_GetUserTokenC_StringRC",
48971
- "number",
48972
- ["number"],
48973
- [this.pointer],
48974
- );
48975
-
48976
- const _resultString = Module.UTF8ToString(_result);
48977
- free(_result);
48978
-
48979
- _result = _resultString;
48980
-
48981
- return _result;
48982
- }
48983
-
48984
- delete(): void {
48985
- if (this.ownsPointer && !this.disposed) {
48986
- Module.ccall(
48987
- "csp_systems_AgoraUserTokenResult_Dtor",
48988
- "void",
48989
- ["number"],
48990
- [this.pointer],
48991
- );
48992
-
48993
- this.disposed = true;
48994
- }
48995
- }
48996
- }
48997
- }
48998
-
48999
- export namespace Systems {
49000
- /**
49001
- * @description Result url for a tier checkout session request
49002
- */
49003
- export class CheckoutSessionUrlResult
49004
- extends Systems.ResultBase
49005
- implements INativeResource
49006
- {
49007
- /** @internal */
49008
- constructor(pointer: NativePointer) {
49009
- super(pointer);
49010
- }
49011
-
49012
- static fromResultBase(
49013
- baseInstance: Systems.ResultBase,
49014
- ): Systems.CheckoutSessionUrlResult {
49015
- const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
49016
- return new Systems.CheckoutSessionUrlResult(
49017
- new NativePointer(
49018
- nativeClassWrapper.pointer,
49019
- nativeClassWrapper.ownsPointer,
49020
- ),
49021
- );
49022
- }
49023
-
49024
- static create(): CheckoutSessionUrlResult {
49025
- var _ptr = Module._malloc(8);
49026
- Module.ccall(
49027
- "csp_systems_CheckoutSessionUrlResult_Ctor",
49028
- "void",
49029
- ["number"],
49030
- [_ptr],
49031
- );
49032
- var _nPtr = getNativePointer(_ptr);
49033
-
49034
- return new CheckoutSessionUrlResult(_nPtr);
49035
- }
49036
-
49037
- static create_arg1(arg1: number): CheckoutSessionUrlResult {
49038
- var _ptr = Module._malloc(8);
49039
- Module.ccall(
49040
- "csp_systems_CheckoutSessionUrlResult_Ctor_voidP",
49041
- "void",
49042
- ["number", "void"],
49043
- [_ptr, arg1],
49044
- );
49045
- var _nPtr = getNativePointer(_ptr);
49046
-
49047
- return new CheckoutSessionUrlResult(_nPtr);
49048
- }
49049
-
49050
- getUrl(): string {
49051
- let _result = Module.ccall(
49052
- "csp_systems_CheckoutSessionUrlResult_GetUrl_StringRC",
49053
- "number",
49054
- ["number"],
49055
- [this.pointer],
49056
- );
49057
-
49058
- const _resultString = Module.UTF8ToString(_result);
49059
- free(_result);
49060
-
49061
- _result = _resultString;
49062
-
49063
- return _result;
49064
- }
49065
-
49066
- delete(): void {
49067
- if (this.ownsPointer && !this.disposed) {
49068
- Module.ccall(
49069
- "csp_systems_CheckoutSessionUrlResult_Dtor",
49070
- "void",
49071
- ["number"],
49072
- [this.pointer],
49073
- );
49074
-
49075
- this.disposed = true;
49076
- }
49077
- }
49078
- }
49079
- }
49080
-
49081
- export namespace Systems {
49082
- /**
49083
- * @description Result url for a user customer portal request
49084
- */
49085
- export class CustomerPortalUrlResult
49086
- extends Systems.ResultBase
49087
- implements INativeResource
49088
- {
49089
- /** @internal */
49090
- constructor(pointer: NativePointer) {
49091
- super(pointer);
49092
- }
49093
-
49094
- static fromResultBase(
49095
- baseInstance: Systems.ResultBase,
49096
- ): Systems.CustomerPortalUrlResult {
49097
- const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
49098
- return new Systems.CustomerPortalUrlResult(
49099
- new NativePointer(
49100
- nativeClassWrapper.pointer,
49101
- nativeClassWrapper.ownsPointer,
49102
- ),
49103
- );
49104
- }
49105
-
49106
- static create(): CustomerPortalUrlResult {
49107
- var _ptr = Module._malloc(8);
49108
- Module.ccall(
49109
- "csp_systems_CustomerPortalUrlResult_Ctor",
49110
- "void",
49111
- ["number"],
49112
- [_ptr],
49113
- );
49114
- var _nPtr = getNativePointer(_ptr);
49115
-
49116
- return new CustomerPortalUrlResult(_nPtr);
49117
- }
49118
-
49119
- static create_arg1(arg1: number): CustomerPortalUrlResult {
49120
- var _ptr = Module._malloc(8);
49121
- Module.ccall(
49122
- "csp_systems_CustomerPortalUrlResult_Ctor_voidP",
49123
- "void",
49124
- ["number", "void"],
49125
- [_ptr, arg1],
49126
- );
49127
- var _nPtr = getNativePointer(_ptr);
49128
-
49129
- return new CustomerPortalUrlResult(_nPtr);
49130
- }
49131
-
49132
- getUrl(): string {
49133
- let _result = Module.ccall(
49134
- "csp_systems_CustomerPortalUrlResult_GetUrl_StringRC",
49135
- "number",
49136
- ["number"],
49137
- [this.pointer],
49138
- );
49139
-
49140
- const _resultString = Module.UTF8ToString(_result);
49141
- free(_result);
49142
-
49143
- _result = _resultString;
49144
-
49145
- return _result;
49146
- }
49147
-
49148
- delete(): void {
49149
- if (this.ownsPointer && !this.disposed) {
49150
- Module.ccall(
49151
- "csp_systems_CustomerPortalUrlResult_Dtor",
48897
+ "csp_systems_LoginTokenInfoResult_Dtor",
49152
48898
  "void",
49153
48899
  ["number"],
49154
48900
  [this.pointer],
@@ -49615,10 +49361,12 @@ export namespace Systems {
49615
49361
  * @param callback - Callback that gets called as described above
49616
49362
  */
49617
49363
  setNewLoginTokenReceivedCallback(
49618
- callback: (result: Systems.LoginTokenReceived) => void,
49364
+ callback: (result: Systems.LoginTokenInfoResult) => void,
49619
49365
  ) {
49620
49366
  var _callback = (_stateObject__: number, result) => {
49621
- var _result = new Systems.LoginTokenReceived(getNativePointer(result));
49367
+ var _result = new Systems.LoginTokenInfoResult(
49368
+ getNativePointer(result),
49369
+ );
49622
49370
 
49623
49371
  callback(_result);
49624
49372
  };
@@ -49626,7 +49374,7 @@ export namespace Systems {
49626
49374
  var _callbackPtr = Module.addFunction(_callback, "vii");
49627
49375
 
49628
49376
  Module.ccall(
49629
- "csp_systems_UserSystem_SetNewLoginTokenReceivedCallback_void_NewLoginTokenReceivedCallback",
49377
+ "csp_systems_UserSystem_SetNewLoginTokenReceivedCallback_void_LoginTokenInfoResultCallback",
49630
49378
  "void",
49631
49379
  ["number", "number", "number"],
49632
49380
  [this.pointer, _callbackPtr, 0],
@@ -49703,17 +49451,16 @@ export namespace Systems {
49703
49451
  }
49704
49452
 
49705
49453
  /**
49706
- * @description Log in to Magnopus Connected Services using a login token
49707
- * The login token can be obtained after using the Login API with credentials and having registered a callback through
49708
- * SetNewLoginTokenReceivedCallback. If the login is successful in the callback result the token and it's expiration time will be provided.
49709
- * @param userId - The user id associated with this login token
49710
- * @param loginToken - Token to be used for authenticating
49454
+ * @description Resume a previous session for the associated user ID using a refresh token
49455
+ * The refresh token can be obtained after registering a callback with `SetNewLoginTokenReceivedCallback` and logging in regularly.
49456
+ * @param userId - User ID for the previous session
49457
+ * @param refreshToken - Refresh token to be used for refreshing the authentication token
49711
49458
  * @param callback - Callback when asynchronous task finishes
49712
49459
  */
49713
49460
 
49714
- async loginWithToken(
49461
+ async refreshSession(
49715
49462
  userId: string,
49716
- loginToken: string,
49463
+ refreshToken: string,
49717
49464
  ): Promise<Systems.LoginStateResult> {
49718
49465
  var _resolve;
49719
49466
 
@@ -49738,10 +49485,10 @@ export namespace Systems {
49738
49485
  _callbackPtr = Module.addFunction(_callback, "vii");
49739
49486
 
49740
49487
  Module.ccall(
49741
- "csp_systems_UserSystem_LoginWithToken_void_StringRC_StringRC_LoginStateResultCallback",
49488
+ "csp_systems_UserSystem_RefreshSession_void_StringRC_StringRC_LoginStateResultCallback",
49742
49489
  "void",
49743
49490
  ["number", "string", "string", "number", "number"],
49744
- [this.pointer, userId, loginToken, _callbackPtr, 0],
49491
+ [this.pointer, userId, refreshToken, _callbackPtr, 0],
49745
49492
  );
49746
49493
 
49747
49494
  return _promise;
@@ -49990,17 +49737,17 @@ export namespace Systems {
49990
49737
  * @param callback - Callback to call when a response is received
49991
49738
  */
49992
49739
 
49993
- async logout(): Promise<Systems.LogoutResult> {
49740
+ async logout(): Promise<Systems.NullResult> {
49994
49741
  var _resolve;
49995
49742
 
49996
- var _promise = new Promise<Systems.LogoutResult>((_r) => {
49743
+ var _promise = new Promise<Systems.NullResult>((_r) => {
49997
49744
  _resolve = _r;
49998
49745
  });
49999
49746
 
50000
49747
  var _callbackPtr: number;
50001
49748
  var _callback = (_stateObject__: number, result) => {
50002
49749
  var _resultPtr = getNativePointer(result);
50003
- var _resultInstance = new Systems.LogoutResult(_resultPtr);
49750
+ var _resultInstance = new Systems.NullResult(_resultPtr);
50004
49751
 
50005
49752
  if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
50006
49753
  return;
@@ -50014,7 +49761,7 @@ export namespace Systems {
50014
49761
  _callbackPtr = Module.addFunction(_callback, "vii");
50015
49762
 
50016
49763
  Module.ccall(
50017
- "csp_systems_UserSystem_Logout_void_LogoutResultCallback",
49764
+ "csp_systems_UserSystem_Logout_void_NullResultCallback",
50018
49765
  "void",
50019
49766
  ["number", "number", "number"],
50020
49767
  [this.pointer, _callbackPtr, 0],
@@ -50276,7 +50023,7 @@ export namespace Systems {
50276
50023
  }
50277
50024
 
50278
50025
  /**
50279
- * @description Delete the user.
50026
+ * @description Delete the user. Note that you need permission to be able to delete the user (You can delete the user you are logged in as).
50280
50027
  * @param userId - Id of the user that will be deleted
50281
50028
  * @param callback - Callback when asynchronous task finishes
50282
50029
  */
@@ -50454,17 +50201,17 @@ export namespace Systems {
50454
50201
  * @param callback - Callback to call when a response is received
50455
50202
  */
50456
50203
 
50457
- async ping(): Promise<Systems.PingResponseReceived> {
50204
+ async ping(): Promise<Systems.NullResult> {
50458
50205
  var _resolve;
50459
50206
 
50460
- var _promise = new Promise<Systems.PingResponseReceived>((_r) => {
50207
+ var _promise = new Promise<Systems.NullResult>((_r) => {
50461
50208
  _resolve = _r;
50462
50209
  });
50463
50210
 
50464
50211
  var _callbackPtr: number;
50465
50212
  var _callback = (_stateObject__: number, result) => {
50466
50213
  var _resultPtr = getNativePointer(result);
50467
- var _resultInstance = new Systems.PingResponseReceived(_resultPtr);
50214
+ var _resultInstance = new Systems.NullResult(_resultPtr);
50468
50215
 
50469
50216
  if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
50470
50217
  return;
@@ -50478,7 +50225,7 @@ export namespace Systems {
50478
50225
  _callbackPtr = Module.addFunction(_callback, "vii");
50479
50226
 
50480
50227
  Module.ccall(
50481
- "csp_systems_UserSystem_Ping_void_PingResponseReceivedCallback",
50228
+ "csp_systems_UserSystem_Ping_void_NullResultCallback",
50482
50229
  "void",
50483
50230
  ["number", "number", "number"],
50484
50231
  [this.pointer, _callbackPtr, 0],
@@ -50495,17 +50242,17 @@ export namespace Systems {
50495
50242
 
50496
50243
  async getAgoraUserToken(
50497
50244
  params: Systems.AgoraUserTokenParams,
50498
- ): Promise<Systems.AgoraUserTokenResult> {
50245
+ ): Promise<Systems.StringResult> {
50499
50246
  var _resolve;
50500
50247
 
50501
- var _promise = new Promise<Systems.AgoraUserTokenResult>((_r) => {
50248
+ var _promise = new Promise<Systems.StringResult>((_r) => {
50502
50249
  _resolve = _r;
50503
50250
  });
50504
50251
 
50505
50252
  var _callbackPtr: number;
50506
50253
  var _callback = (_stateObject__: number, result) => {
50507
50254
  var _resultPtr = getNativePointer(result);
50508
- var _resultInstance = new Systems.AgoraUserTokenResult(_resultPtr);
50255
+ var _resultInstance = new Systems.StringResult(_resultPtr);
50509
50256
 
50510
50257
  if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
50511
50258
  return;
@@ -50519,7 +50266,7 @@ export namespace Systems {
50519
50266
  _callbackPtr = Module.addFunction(_callback, "vii");
50520
50267
 
50521
50268
  Module.ccall(
50522
- "csp_systems_UserSystem_GetAgoraUserToken_void_AgoraUserTokenParamsRC_UserTokenResultCallback",
50269
+ "csp_systems_UserSystem_GetAgoraUserToken_void_AgoraUserTokenParamsRC_StringResultCallback",
50523
50270
  "void",
50524
50271
  ["number", "number", "number", "number"],
50525
50272
  [this.pointer, params.pointer, _callbackPtr, 0],
@@ -50577,19 +50324,17 @@ export namespace Systems {
50577
50324
  * @param callback - Callback that contains the customer portal url of the user
50578
50325
  */
50579
50326
 
50580
- async getCustomerPortalUrl(
50581
- userId: string,
50582
- ): Promise<Systems.CustomerPortalUrlResult> {
50327
+ async getCustomerPortalUrl(userId: string): Promise<Systems.StringResult> {
50583
50328
  var _resolve;
50584
50329
 
50585
- var _promise = new Promise<Systems.CustomerPortalUrlResult>((_r) => {
50330
+ var _promise = new Promise<Systems.StringResult>((_r) => {
50586
50331
  _resolve = _r;
50587
50332
  });
50588
50333
 
50589
50334
  var _callbackPtr: number;
50590
50335
  var _callback = (_stateObject__: number, result) => {
50591
50336
  var _resultPtr = getNativePointer(result);
50592
- var _resultInstance = new Systems.CustomerPortalUrlResult(_resultPtr);
50337
+ var _resultInstance = new Systems.StringResult(_resultPtr);
50593
50338
 
50594
50339
  if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
50595
50340
  return;
@@ -50603,7 +50348,7 @@ export namespace Systems {
50603
50348
  _callbackPtr = Module.addFunction(_callback, "vii");
50604
50349
 
50605
50350
  Module.ccall(
50606
- "csp_systems_UserSystem_GetCustomerPortalUrl_void_StringRC_CustomerPortalUrlResultCallback",
50351
+ "csp_systems_UserSystem_GetCustomerPortalUrl_void_StringRC_StringResultCallback",
50607
50352
  "void",
50608
50353
  ["number", "string", "number", "number"],
50609
50354
  [this.pointer, userId, _callbackPtr, 0],
@@ -50620,17 +50365,17 @@ export namespace Systems {
50620
50365
 
50621
50366
  async getCheckoutSessionUrl(
50622
50367
  tier: Systems.TierNames,
50623
- ): Promise<Systems.CheckoutSessionUrlResult> {
50368
+ ): Promise<Systems.StringResult> {
50624
50369
  var _resolve;
50625
50370
 
50626
- var _promise = new Promise<Systems.CheckoutSessionUrlResult>((_r) => {
50371
+ var _promise = new Promise<Systems.StringResult>((_r) => {
50627
50372
  _resolve = _r;
50628
50373
  });
50629
50374
 
50630
50375
  var _callbackPtr: number;
50631
50376
  var _callback = (_stateObject__: number, result) => {
50632
50377
  var _resultPtr = getNativePointer(result);
50633
- var _resultInstance = new Systems.CheckoutSessionUrlResult(_resultPtr);
50378
+ var _resultInstance = new Systems.StringResult(_resultPtr);
50634
50379
 
50635
50380
  if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
50636
50381
  return;
@@ -50644,7 +50389,7 @@ export namespace Systems {
50644
50389
  _callbackPtr = Module.addFunction(_callback, "vii");
50645
50390
 
50646
50391
  Module.ccall(
50647
- "csp_systems_UserSystem_GetCheckoutSessionUrl_void_TierNames_CheckoutSessionUrlResultCallback",
50392
+ "csp_systems_UserSystem_GetCheckoutSessionUrl_void_TierNames_StringResultCallback",
50648
50393
  "void",
50649
50394
  ["number", "number", "number", "number"],
50650
50395
  [this.pointer, tier, _callbackPtr, 0],
@@ -50810,6 +50555,24 @@ export namespace Common {
50810
50555
  return _inst;
50811
50556
  }
50812
50557
 
50558
+ static ofcsp_systems_EAssetCollectionType(): Array<Systems.EAssetCollectionType> {
50559
+ var _ret = Module._malloc(8);
50560
+ Module.ccall(
50561
+ "csp_common_Array_Ctor_csp_systems_EAssetCollectionType",
50562
+ "void",
50563
+ ["number"],
50564
+ [_ret],
50565
+ );
50566
+ var _inst = new Array<Systems.EAssetCollectionType>(
50567
+ getNativePointer(_ret),
50568
+ csp_systems_EAssetCollectionTypeFactory,
50569
+ "csp_systems_EAssetCollectionType",
50570
+ );
50571
+ Module._free(_ret);
50572
+
50573
+ return _inst;
50574
+ }
50575
+
50813
50576
  static ofcsp_systems_EAssetType(): Array<Systems.EAssetType> {
50814
50577
  var _ret = Module._malloc(8);
50815
50578
  Module.ccall(
@@ -51424,6 +51187,26 @@ export namespace Common {
51424
51187
  return _inst;
51425
51188
  }
51426
51189
 
51190
+ static ofcsp_systems_EAssetCollectionType_number(
51191
+ size: number,
51192
+ ): Array<Systems.EAssetCollectionType> {
51193
+ var _ret = Module._malloc(8);
51194
+ Module.ccall(
51195
+ "csp_common_Array_Conv_size_tC_csp_systems_EAssetCollectionType",
51196
+ "void",
51197
+ ["number", "number"],
51198
+ [_ret, size],
51199
+ );
51200
+ var _inst = new Array<Systems.EAssetCollectionType>(
51201
+ getNativePointer(_ret),
51202
+ csp_systems_EAssetCollectionTypeFactory,
51203
+ "csp_systems_EAssetCollectionType",
51204
+ );
51205
+ Module._free(_ret);
51206
+
51207
+ return _inst;
51208
+ }
51209
+
51427
51210
  static ofcsp_systems_EAssetType_number(
51428
51211
  size: number,
51429
51212
  ): Array<Systems.EAssetType> {