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.
@@ -4006,9 +4006,9 @@ export namespace Multiplayer {
4006
4006
  AvatarId = 0,
4007
4007
  UserId,
4008
4008
  State,
4009
- AvatarMeshIndex,
4009
+ AvatarMeshIndex_DEPRECATED,
4010
4010
  AgoraUserId,
4011
- CustomAvatarUrl,
4011
+ CustomAvatarUrl_DEPRECATED,
4012
4012
  IsHandIKEnabled,
4013
4013
  TargetHandIKTargetLocation,
4014
4014
  HandRotation,
@@ -4021,6 +4021,7 @@ export namespace Multiplayer {
4021
4021
  IsVisible,
4022
4022
  IsARVisible,
4023
4023
  IsVirtualVisible,
4024
+ AvatarUrl,
4024
4025
  Num,
4025
4026
  }
4026
4027
  }
@@ -6238,6 +6239,26 @@ export namespace Common {
6238
6239
  );
6239
6240
  }
6240
6241
 
6242
+ get accessTokenExpiryLength(): string {
6243
+ let _result = Module.ccall(
6244
+ "csp_common_LoginState__Get_AccessTokenExpiryLength",
6245
+ "string",
6246
+ ["number"],
6247
+ [this.pointer],
6248
+ );
6249
+
6250
+ return _result;
6251
+ }
6252
+
6253
+ set accessTokenExpiryLength(value: string) {
6254
+ Module.ccall(
6255
+ "csp_common_LoginState__Set_AccessTokenExpiryLength",
6256
+ "void",
6257
+ ["number", "string"],
6258
+ [this.pointer, value],
6259
+ );
6260
+ }
6261
+
6241
6262
  get refreshToken(): string {
6242
6263
  let _result = Module.ccall(
6243
6264
  "csp_common_LoginState__Get_RefreshToken",
@@ -6258,6 +6279,26 @@ export namespace Common {
6258
6279
  );
6259
6280
  }
6260
6281
 
6282
+ get refreshTokenExpiryLength(): string {
6283
+ let _result = Module.ccall(
6284
+ "csp_common_LoginState__Get_RefreshTokenExpiryLength",
6285
+ "string",
6286
+ ["number"],
6287
+ [this.pointer],
6288
+ );
6289
+
6290
+ return _result;
6291
+ }
6292
+
6293
+ set refreshTokenExpiryLength(value: string) {
6294
+ Module.ccall(
6295
+ "csp_common_LoginState__Set_RefreshTokenExpiryLength",
6296
+ "void",
6297
+ ["number", "string"],
6298
+ [this.pointer, value],
6299
+ );
6300
+ }
6301
+
6261
6302
  get userId(): string {
6262
6303
  let _result = Module.ccall(
6263
6304
  "csp_common_LoginState__Get_UserId",
@@ -24970,6 +25011,15 @@ export namespace Multiplayer {
24970
25011
  return _nPtr;
24971
25012
  }
24972
25013
 
25014
+ __CauseFailure(): void {
25015
+ Module.ccall(
25016
+ "csp_multiplayer_MultiplayerConnection___CauseFailure_void",
25017
+ "void",
25018
+ ["number"],
25019
+ [this.pointer],
25020
+ );
25021
+ }
25022
+
24973
25023
  delete(): void {
24974
25024
  if (this.ownsPointer && !this.disposed) {
24975
25025
  Module.ccall(
@@ -35046,9 +35096,29 @@ export namespace Systems {
35046
35096
  }
35047
35097
  }
35048
35098
 
35049
- get expiryLength(): string {
35099
+ get accessTokenExpiryLength(): string {
35100
+ let _result = Module.ccall(
35101
+ "csp_systems_TokenOptions__Get_AccessTokenExpiryLength",
35102
+ "string",
35103
+ ["number"],
35104
+ [this.pointer],
35105
+ );
35106
+
35107
+ return _result;
35108
+ }
35109
+
35110
+ set accessTokenExpiryLength(value: string) {
35111
+ Module.ccall(
35112
+ "csp_systems_TokenOptions__Set_AccessTokenExpiryLength",
35113
+ "void",
35114
+ ["number", "string"],
35115
+ [this.pointer, value],
35116
+ );
35117
+ }
35118
+
35119
+ get refreshTokenExpiryLength(): string {
35050
35120
  let _result = Module.ccall(
35051
- "csp_systems_TokenOptions__Get_ExpiryLength",
35121
+ "csp_systems_TokenOptions__Get_RefreshTokenExpiryLength",
35052
35122
  "string",
35053
35123
  ["number"],
35054
35124
  [this.pointer],
@@ -35057,9 +35127,9 @@ export namespace Systems {
35057
35127
  return _result;
35058
35128
  }
35059
35129
 
35060
- set expiryLength(value: string) {
35130
+ set refreshTokenExpiryLength(value: string) {
35061
35131
  Module.ccall(
35062
- "csp_systems_TokenOptions__Set_ExpiryLength",
35132
+ "csp_systems_TokenOptions__Set_RefreshTokenExpiryLength",
35063
35133
  "void",
35064
35134
  ["number", "string"],
35065
35135
  [this.pointer, value],
@@ -38698,41 +38768,6 @@ export namespace Multiplayer {
38698
38768
  );
38699
38769
  }
38700
38770
 
38701
- /**
38702
- * @description Gets the ID of the mesh of the avatar of this component.
38703
- * NOTE: Used to establish which mesh this avatar should use among a collection of predefined meshes.
38704
- * @return The ID of the mesh of the avatar of this component.
38705
- */
38706
-
38707
- getAvatarMeshIndex(): bigint {
38708
- let _result = Module.ccall(
38709
- "csp_multiplayer_AvatarSpaceComponent_GetAvatarMeshIndexC_int64_t",
38710
- "bigint",
38711
- ["number"],
38712
- [this.pointer],
38713
- );
38714
-
38715
- return _result;
38716
- }
38717
-
38718
- /**
38719
- * @description Sets the ID of the mesh of the avatar of this component.
38720
- * NOTE: Used to establish which mesh this avatar should use among a collection of predefined meshes.
38721
- * @param value - The ID of the mesh of the avatar of this component.
38722
- */
38723
-
38724
- setAvatarMeshIndex(value: bigint): void {
38725
- assert(value >= Limits.INT64_MIN);
38726
- assert(value <= Limits.INT64_MAX);
38727
-
38728
- Module.ccall(
38729
- "csp_multiplayer_AvatarSpaceComponent_SetAvatarMeshIndex_void_int64_t",
38730
- "void",
38731
- ["number", "bigint"],
38732
- [this.pointer, value],
38733
- );
38734
- }
38735
-
38736
38771
  /**
38737
38772
  * @description Gets the ID of the Agora user bounded to this avatar.
38738
38773
  * NOTE: When using voice chat, an Agora user is associated with a specific avatar component, so that
@@ -38772,43 +38807,6 @@ export namespace Multiplayer {
38772
38807
  );
38773
38808
  }
38774
38809
 
38775
- /**
38776
- * @description Gets the URL of a custom mesh for this avatar.
38777
- * NOTE: This is intended for use with external avatar managers, such as ReadyPlayerMe.
38778
- * @return The URL of the custom mesh this avatar component uses for its avatar.
38779
- */
38780
-
38781
- getCustomAvatarUrl(): string {
38782
- let _result = Module.ccall(
38783
- "csp_multiplayer_AvatarSpaceComponent_GetCustomAvatarUrlC_StringRC",
38784
- "number",
38785
- ["number"],
38786
- [this.pointer],
38787
- );
38788
-
38789
- const _resultString = Module.UTF8ToString(_result);
38790
- free(_result);
38791
-
38792
- _result = _resultString;
38793
-
38794
- return _result;
38795
- }
38796
-
38797
- /**
38798
- * @description Sets the URL of a custom mesh for this avatar.
38799
- * NOTE: This is intended for use with external avatar managers, such as ReadyPlayerMe.
38800
- * @param value - The URL of the custom mesh this avatar component uses for its avatar.
38801
- */
38802
-
38803
- setCustomAvatarUrl(value: string): void {
38804
- Module.ccall(
38805
- "csp_multiplayer_AvatarSpaceComponent_SetCustomAvatarUrl_void_StringRC",
38806
- "void",
38807
- ["number", "string"],
38808
- [this.pointer, value],
38809
- );
38810
- }
38811
-
38812
38810
  /**
38813
38811
  * @description Checks if the Hands Inverse Kinematics (IK) are enabled for this avatar.
38814
38812
  * NOTE: Intended for use in VR or with virtual hands controllers.
@@ -39205,6 +39203,44 @@ export namespace Multiplayer {
39205
39203
  );
39206
39204
  }
39207
39205
 
39206
+ /**
39207
+ @}
39208
+ * @description Gets the URL of a mesh for this avatar.
39209
+ * NOTE: This is intended for use with external avatar managers, such as ReadyPlayerMe.
39210
+ * @return The URL of the mesh this avatar component uses for its avatar.
39211
+ */
39212
+
39213
+ getAvatarUrl(): string {
39214
+ let _result = Module.ccall(
39215
+ "csp_multiplayer_AvatarSpaceComponent_GetAvatarUrlC_StringRC",
39216
+ "number",
39217
+ ["number"],
39218
+ [this.pointer],
39219
+ );
39220
+
39221
+ const _resultString = Module.UTF8ToString(_result);
39222
+ free(_result);
39223
+
39224
+ _result = _resultString;
39225
+
39226
+ return _result;
39227
+ }
39228
+
39229
+ /**
39230
+ * @description Sets the URL of a mesh for this avatar.
39231
+ * NOTE: This is intended for use with external avatar managers, such as ReadyPlayerMe.
39232
+ * @param value - The URL of the mesh this avatar component uses for its avatar.
39233
+ */
39234
+
39235
+ setAvatarUrl(value: string): void {
39236
+ Module.ccall(
39237
+ "csp_multiplayer_AvatarSpaceComponent_SetAvatarUrl_void_StringRC",
39238
+ "void",
39239
+ ["number", "string"],
39240
+ [this.pointer, value],
39241
+ );
39242
+ }
39243
+
39208
39244
  delete(): void {
39209
39245
  if (this.ownsPointer && !this.disposed) {
39210
39246
  Module.ccall(
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "connected-spaces-platform.web",
3
3
  "displayName": "connected-spaces-platform.web",
4
- "version": "6.12.0",
4
+ "version": "6.14.0",
5
5
  "description": "This package provides the binaries required to interface with the Connected Spaces Platform API.",
6
6
  "license": "Apache-2.0",
7
7
  "dependencies": {