connected-spaces-platform.web 6.12.0 → 6.14.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.
@@ -599,9 +599,9 @@ export declare namespace Multiplayer {
599
599
  AvatarId = 0,
600
600
  UserId = 1,
601
601
  State = 2,
602
- AvatarMeshIndex = 3,
602
+ AvatarMeshIndex_DEPRECATED = 3,
603
603
  AgoraUserId = 4,
604
- CustomAvatarUrl = 5,
604
+ CustomAvatarUrl_DEPRECATED = 5,
605
605
  IsHandIKEnabled = 6,
606
606
  TargetHandIKTargetLocation = 7,
607
607
  HandRotation = 8,
@@ -614,7 +614,8 @@ export declare namespace Multiplayer {
614
614
  IsVisible = 15,
615
615
  IsARVisible = 16,
616
616
  IsVirtualVisible = 17,
617
- Num = 18
617
+ AvatarUrl = 18,
618
+ Num = 19
618
619
  }
619
620
  }
620
621
  export declare namespace Multiplayer {
@@ -1888,8 +1889,12 @@ export declare namespace Common {
1888
1889
  set state(value: Common.ELoginState);
1889
1890
  get accessToken(): string;
1890
1891
  set accessToken(value: string);
1892
+ get accessTokenExpiryLength(): string;
1893
+ set accessTokenExpiryLength(value: string);
1891
1894
  get refreshToken(): string;
1892
1895
  set refreshToken(value: string);
1896
+ get refreshTokenExpiryLength(): string;
1897
+ set refreshTokenExpiryLength(value: string);
1893
1898
  get userId(): string;
1894
1899
  set userId(value: string);
1895
1900
  get deviceId(): string;
@@ -4333,6 +4338,7 @@ export declare namespace Multiplayer {
4333
4338
  * exiting a space.
4334
4339
  */
4335
4340
  getOnlineRealtimeEngine(): Multiplayer.OnlineRealtimeEngine;
4341
+ __CauseFailure(): void;
4336
4342
  delete(): void;
4337
4343
  }
4338
4344
  }
@@ -6292,8 +6298,10 @@ export declare namespace Systems {
6292
6298
  constructor(pointer: NativePointer);
6293
6299
  static create(): TokenOptions;
6294
6300
  delete(): void;
6295
- get expiryLength(): string;
6296
- set expiryLength(value: string);
6301
+ get accessTokenExpiryLength(): string;
6302
+ set accessTokenExpiryLength(value: string);
6303
+ get refreshTokenExpiryLength(): string;
6304
+ set refreshTokenExpiryLength(value: string);
6297
6305
  }
6298
6306
  }
6299
6307
  export declare namespace Systems {
@@ -7204,18 +7212,6 @@ export declare namespace Multiplayer {
7204
7212
  * @param value - The play mode used by this avatar.
7205
7213
  */
7206
7214
  setAvatarPlayMode(value: Multiplayer.AvatarPlayMode): void;
7207
- /**
7208
- * @description Gets the ID of the mesh of the avatar of this component.
7209
- * NOTE: Used to establish which mesh this avatar should use among a collection of predefined meshes.
7210
- * @return The ID of the mesh of the avatar of this component.
7211
- */
7212
- getAvatarMeshIndex(): bigint;
7213
- /**
7214
- * @description Sets the ID of the mesh of the avatar of this component.
7215
- * NOTE: Used to establish which mesh this avatar should use among a collection of predefined meshes.
7216
- * @param value - The ID of the mesh of the avatar of this component.
7217
- */
7218
- setAvatarMeshIndex(value: bigint): void;
7219
7215
  /**
7220
7216
  * @description Gets the ID of the Agora user bounded to this avatar.
7221
7217
  * NOTE: When using voice chat, an Agora user is associated with a specific avatar component, so that
@@ -7230,18 +7226,6 @@ export declare namespace Multiplayer {
7230
7226
  * @param value - The ID of the Agora user associated with this avatar component.
7231
7227
  */
7232
7228
  setAgoraUserId(value: string): void;
7233
- /**
7234
- * @description Gets the URL of a custom mesh for this avatar.
7235
- * NOTE: This is intended for use with external avatar managers, such as ReadyPlayerMe.
7236
- * @return The URL of the custom mesh this avatar component uses for its avatar.
7237
- */
7238
- getCustomAvatarUrl(): string;
7239
- /**
7240
- * @description Sets the URL of a custom mesh for this avatar.
7241
- * NOTE: This is intended for use with external avatar managers, such as ReadyPlayerMe.
7242
- * @param value - The URL of the custom mesh this avatar component uses for its avatar.
7243
- */
7244
- setCustomAvatarUrl(value: string): void;
7245
7229
  /**
7246
7230
  * @description Checks if the Hands Inverse Kinematics (IK) are enabled for this avatar.
7247
7231
  * NOTE: Intended for use in VR or with virtual hands controllers.
@@ -7396,6 +7380,19 @@ export declare namespace Multiplayer {
7396
7380
  @copydoc IVisibleComponent::SetIsVirtualVisible()
7397
7381
  */
7398
7382
  setIsVirtualVisible(value: boolean): void;
7383
+ /**
7384
+ @}
7385
+ * @description Gets the URL of a mesh for this avatar.
7386
+ * NOTE: This is intended for use with external avatar managers, such as ReadyPlayerMe.
7387
+ * @return The URL of the mesh this avatar component uses for its avatar.
7388
+ */
7389
+ getAvatarUrl(): string;
7390
+ /**
7391
+ * @description Sets the URL of a mesh for this avatar.
7392
+ * NOTE: This is intended for use with external avatar managers, such as ReadyPlayerMe.
7393
+ * @param value - The URL of the mesh this avatar component uses for its avatar.
7394
+ */
7395
+ setAvatarUrl(value: string): void;
7399
7396
  delete(): void;
7400
7397
  }
7401
7398
  }
@@ -2605,9 +2605,9 @@ export var Systems;
2605
2605
  AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["AvatarId"] = 0] = "AvatarId";
2606
2606
  AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["UserId"] = 1] = "UserId";
2607
2607
  AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["State"] = 2] = "State";
2608
- AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["AvatarMeshIndex"] = 3] = "AvatarMeshIndex";
2608
+ AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["AvatarMeshIndex_DEPRECATED"] = 3] = "AvatarMeshIndex_DEPRECATED";
2609
2609
  AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["AgoraUserId"] = 4] = "AgoraUserId";
2610
- AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["CustomAvatarUrl"] = 5] = "CustomAvatarUrl";
2610
+ AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["CustomAvatarUrl_DEPRECATED"] = 5] = "CustomAvatarUrl_DEPRECATED";
2611
2611
  AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["IsHandIKEnabled"] = 6] = "IsHandIKEnabled";
2612
2612
  AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["TargetHandIKTargetLocation"] = 7] = "TargetHandIKTargetLocation";
2613
2613
  AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["HandRotation"] = 8] = "HandRotation";
@@ -2620,7 +2620,8 @@ export var Systems;
2620
2620
  AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["IsVisible"] = 15] = "IsVisible";
2621
2621
  AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["IsARVisible"] = 16] = "IsARVisible";
2622
2622
  AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["IsVirtualVisible"] = 17] = "IsVirtualVisible";
2623
- AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["Num"] = 18] = "Num";
2623
+ AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["AvatarUrl"] = 18] = "AvatarUrl";
2624
+ AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["Num"] = 19] = "Num";
2624
2625
  })(AvatarComponentPropertyKeys = Multiplayer.AvatarComponentPropertyKeys || (Multiplayer.AvatarComponentPropertyKeys = {}));
2625
2626
  })(Multiplayer || (Multiplayer = {}));
2626
2627
  (function (Multiplayer) {
@@ -3989,6 +3990,13 @@ export class CSPFoundation {
3989
3990
  set accessToken(value) {
3990
3991
  Module.ccall("csp_common_LoginState__Set_AccessToken", "void", ["number", "string"], [this.pointer, value]);
3991
3992
  }
3993
+ get accessTokenExpiryLength() {
3994
+ let _result = Module.ccall("csp_common_LoginState__Get_AccessTokenExpiryLength", "string", ["number"], [this.pointer]);
3995
+ return _result;
3996
+ }
3997
+ set accessTokenExpiryLength(value) {
3998
+ Module.ccall("csp_common_LoginState__Set_AccessTokenExpiryLength", "void", ["number", "string"], [this.pointer, value]);
3999
+ }
3992
4000
  get refreshToken() {
3993
4001
  let _result = Module.ccall("csp_common_LoginState__Get_RefreshToken", "string", ["number"], [this.pointer]);
3994
4002
  return _result;
@@ -3996,6 +4004,13 @@ export class CSPFoundation {
3996
4004
  set refreshToken(value) {
3997
4005
  Module.ccall("csp_common_LoginState__Set_RefreshToken", "void", ["number", "string"], [this.pointer, value]);
3998
4006
  }
4007
+ get refreshTokenExpiryLength() {
4008
+ let _result = Module.ccall("csp_common_LoginState__Get_RefreshTokenExpiryLength", "string", ["number"], [this.pointer]);
4009
+ return _result;
4010
+ }
4011
+ set refreshTokenExpiryLength(value) {
4012
+ Module.ccall("csp_common_LoginState__Set_RefreshTokenExpiryLength", "void", ["number", "string"], [this.pointer, value]);
4013
+ }
3999
4014
  get userId() {
4000
4015
  let _result = Module.ccall("csp_common_LoginState__Get_UserId", "string", ["number"], [this.pointer]);
4001
4016
  return _result;
@@ -11244,6 +11259,9 @@ export class CSPFoundation {
11244
11259
  Module._free(_ret);
11245
11260
  return _nPtr;
11246
11261
  }
11262
+ __CauseFailure() {
11263
+ Module.ccall("csp_multiplayer_MultiplayerConnection___CauseFailure_void", "void", ["number"], [this.pointer]);
11264
+ }
11247
11265
  delete() {
11248
11266
  if (this.ownsPointer && !this.disposed) {
11249
11267
  Module.ccall("csp_multiplayer_MultiplayerConnection_Dtor", "void", ["number"], [this.pointer]);
@@ -15986,12 +16004,19 @@ export class CSPFoundation {
15986
16004
  this.disposed = true;
15987
16005
  }
15988
16006
  }
15989
- get expiryLength() {
15990
- let _result = Module.ccall("csp_systems_TokenOptions__Get_ExpiryLength", "string", ["number"], [this.pointer]);
16007
+ get accessTokenExpiryLength() {
16008
+ let _result = Module.ccall("csp_systems_TokenOptions__Get_AccessTokenExpiryLength", "string", ["number"], [this.pointer]);
15991
16009
  return _result;
15992
16010
  }
15993
- set expiryLength(value) {
15994
- Module.ccall("csp_systems_TokenOptions__Set_ExpiryLength", "void", ["number", "string"], [this.pointer, value]);
16011
+ set accessTokenExpiryLength(value) {
16012
+ Module.ccall("csp_systems_TokenOptions__Set_AccessTokenExpiryLength", "void", ["number", "string"], [this.pointer, value]);
16013
+ }
16014
+ get refreshTokenExpiryLength() {
16015
+ let _result = Module.ccall("csp_systems_TokenOptions__Get_RefreshTokenExpiryLength", "string", ["number"], [this.pointer]);
16016
+ return _result;
16017
+ }
16018
+ set refreshTokenExpiryLength(value) {
16019
+ Module.ccall("csp_systems_TokenOptions__Set_RefreshTokenExpiryLength", "void", ["number", "string"], [this.pointer, value]);
15995
16020
  }
15996
16021
  }
15997
16022
  Systems.TokenOptions = TokenOptions;
@@ -17878,25 +17903,6 @@ export class CSPFoundation {
17878
17903
  setAvatarPlayMode(value) {
17879
17904
  Module.ccall("csp_multiplayer_AvatarSpaceComponent_SetAvatarPlayMode_void_AvatarPlayMode", "void", ["number", "number"], [this.pointer, value]);
17880
17905
  }
17881
- /**
17882
- * @description Gets the ID of the mesh of the avatar of this component.
17883
- * NOTE: Used to establish which mesh this avatar should use among a collection of predefined meshes.
17884
- * @return The ID of the mesh of the avatar of this component.
17885
- */
17886
- getAvatarMeshIndex() {
17887
- let _result = Module.ccall("csp_multiplayer_AvatarSpaceComponent_GetAvatarMeshIndexC_int64_t", "bigint", ["number"], [this.pointer]);
17888
- return _result;
17889
- }
17890
- /**
17891
- * @description Sets the ID of the mesh of the avatar of this component.
17892
- * NOTE: Used to establish which mesh this avatar should use among a collection of predefined meshes.
17893
- * @param value - The ID of the mesh of the avatar of this component.
17894
- */
17895
- setAvatarMeshIndex(value) {
17896
- assert(value >= Limits.INT64_MIN);
17897
- assert(value <= Limits.INT64_MAX);
17898
- Module.ccall("csp_multiplayer_AvatarSpaceComponent_SetAvatarMeshIndex_void_int64_t", "void", ["number", "bigint"], [this.pointer, value]);
17899
- }
17900
17906
  /**
17901
17907
  * @description Gets the ID of the Agora user bounded to this avatar.
17902
17908
  * NOTE: When using voice chat, an Agora user is associated with a specific avatar component, so that
@@ -17919,26 +17925,6 @@ export class CSPFoundation {
17919
17925
  setAgoraUserId(value) {
17920
17926
  Module.ccall("csp_multiplayer_AvatarSpaceComponent_SetAgoraUserId_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
17921
17927
  }
17922
- /**
17923
- * @description Gets the URL of a custom mesh for this avatar.
17924
- * NOTE: This is intended for use with external avatar managers, such as ReadyPlayerMe.
17925
- * @return The URL of the custom mesh this avatar component uses for its avatar.
17926
- */
17927
- getCustomAvatarUrl() {
17928
- let _result = Module.ccall("csp_multiplayer_AvatarSpaceComponent_GetCustomAvatarUrlC_StringRC", "number", ["number"], [this.pointer]);
17929
- const _resultString = Module.UTF8ToString(_result);
17930
- free(_result);
17931
- _result = _resultString;
17932
- return _result;
17933
- }
17934
- /**
17935
- * @description Sets the URL of a custom mesh for this avatar.
17936
- * NOTE: This is intended for use with external avatar managers, such as ReadyPlayerMe.
17937
- * @param value - The URL of the custom mesh this avatar component uses for its avatar.
17938
- */
17939
- setCustomAvatarUrl(value) {
17940
- Module.ccall("csp_multiplayer_AvatarSpaceComponent_SetCustomAvatarUrl_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
17941
- }
17942
17928
  /**
17943
17929
  * @description Checks if the Hands Inverse Kinematics (IK) are enabled for this avatar.
17944
17930
  * NOTE: Intended for use in VR or with virtual hands controllers.
@@ -18164,6 +18150,27 @@ export class CSPFoundation {
18164
18150
  setIsVirtualVisible(value) {
18165
18151
  Module.ccall("csp_multiplayer_AvatarSpaceComponent_SetIsVirtualVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
18166
18152
  }
18153
+ /**
18154
+ @}
18155
+ * @description Gets the URL of a mesh for this avatar.
18156
+ * NOTE: This is intended for use with external avatar managers, such as ReadyPlayerMe.
18157
+ * @return The URL of the mesh this avatar component uses for its avatar.
18158
+ */
18159
+ getAvatarUrl() {
18160
+ let _result = Module.ccall("csp_multiplayer_AvatarSpaceComponent_GetAvatarUrlC_StringRC", "number", ["number"], [this.pointer]);
18161
+ const _resultString = Module.UTF8ToString(_result);
18162
+ free(_result);
18163
+ _result = _resultString;
18164
+ return _result;
18165
+ }
18166
+ /**
18167
+ * @description Sets the URL of a mesh for this avatar.
18168
+ * NOTE: This is intended for use with external avatar managers, such as ReadyPlayerMe.
18169
+ * @param value - The URL of the mesh this avatar component uses for its avatar.
18170
+ */
18171
+ setAvatarUrl(value) {
18172
+ Module.ccall("csp_multiplayer_AvatarSpaceComponent_SetAvatarUrl_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
18173
+ }
18167
18174
  delete() {
18168
18175
  if (this.ownsPointer && !this.disposed) {
18169
18176
  Module.ccall("csp_multiplayer_AvatarSpaceComponent_Dtor", "void", ["number"], [this.pointer]);