connected-spaces-platform.web 5.19.0 → 5.20.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.
@@ -260,11 +260,10 @@ function NumberFactory(nativePointer) {
260
260
  return nativePointer.pointer;
261
261
  }
262
262
  ProxyClassFactories["Number"] = NumberFactory;
263
- function csp_systems_EThirdPartyPlatformFactory(nativePointer) {
263
+ function csp_common_ELoginStateFactory(nativePointer) {
264
264
  return nativePointer.pointer;
265
265
  }
266
- ProxyClassFactories["csp_systems_EThirdPartyPlatform"] =
267
- csp_systems_EThirdPartyPlatformFactory;
266
+ ProxyClassFactories["csp_common_ELoginState"] = csp_common_ELoginStateFactory;
268
267
  function csp_web_EResponseCodesFactory(nativePointer) {
269
268
  return nativePointer.pointer;
270
269
  }
@@ -274,6 +273,11 @@ function csp_multiplayer_ErrorCodeFactory(nativePointer) {
274
273
  }
275
274
  ProxyClassFactories["csp_multiplayer_ErrorCode"] =
276
275
  csp_multiplayer_ErrorCodeFactory;
276
+ function csp_systems_EThirdPartyPlatformFactory(nativePointer) {
277
+ return nativePointer.pointer;
278
+ }
279
+ ProxyClassFactories["csp_systems_EThirdPartyPlatform"] =
280
+ csp_systems_EThirdPartyPlatformFactory;
277
281
  function csp_systems_EResultCodeFactory(nativePointer) {
278
282
  return nativePointer.pointer;
279
283
  }
@@ -321,6 +325,11 @@ function csp_multiplayer_ConnectionStateFactory(nativePointer) {
321
325
  }
322
326
  ProxyClassFactories["csp_multiplayer_ConnectionState"] =
323
327
  csp_multiplayer_ConnectionStateFactory;
328
+ function csp_multiplayer_MultiplayerHubMethodFactory(nativePointer) {
329
+ return nativePointer.pointer;
330
+ }
331
+ ProxyClassFactories["csp_multiplayer_MultiplayerHubMethod"] =
332
+ csp_multiplayer_MultiplayerHubMethodFactory;
324
333
  function csp_multiplayer_ReplicatedValueTypeFactory(nativePointer) {
325
334
  return nativePointer.pointer;
326
335
  }
@@ -648,15 +657,15 @@ function csp_systems_EPointOfInterestTypeFactory(nativePointer) {
648
657
  }
649
658
  ProxyClassFactories["csp_systems_EPointOfInterestType"] =
650
659
  csp_systems_EPointOfInterestTypeFactory;
651
- function csp_systems_ELoginStateFactory(nativePointer) {
652
- return nativePointer.pointer;
653
- }
654
- ProxyClassFactories["csp_systems_ELoginState"] = csp_systems_ELoginStateFactory;
655
660
  function csp_systems_EThirdPartyAuthenticationProvidersFactory(nativePointer) {
656
661
  return nativePointer.pointer;
657
662
  }
658
663
  ProxyClassFactories["csp_systems_EThirdPartyAuthenticationProviders"] =
659
664
  csp_systems_EThirdPartyAuthenticationProvidersFactory;
665
+ function csp_ServiceDefinitionFactory(nativePointer) {
666
+ return new ServiceDefinition(nativePointer);
667
+ }
668
+ ProxyClassFactories["csp_ServiceDefinition"] = csp_ServiceDefinitionFactory;
660
669
  function csp_EndpointURIsFactory(nativePointer) {
661
670
  return new EndpointURIs(nativePointer);
662
671
  }
@@ -670,6 +679,10 @@ function csp_common_CancellationTokenFactory(nativePointer) {
670
679
  }
671
680
  ProxyClassFactories["csp_common_CancellationToken"] =
672
681
  csp_common_CancellationTokenFactory;
682
+ function csp_common_LoginStateFactory(nativePointer) {
683
+ return new Common.LoginState(nativePointer);
684
+ }
685
+ ProxyClassFactories["csp_common_LoginState"] = csp_common_LoginStateFactory;
673
686
  function csp_common_MimeTypesFactory(nativePointer) {
674
687
  return new Common.MimeTypes(nativePointer);
675
688
  }
@@ -700,6 +713,16 @@ function csp_common_Vector4Factory(nativePointer) {
700
713
  return new Common.Vector4(nativePointer);
701
714
  }
702
715
  ProxyClassFactories["csp_common_Vector4"] = csp_common_Vector4Factory;
716
+ function csp_common_InvalidInterfaceUseErrorFactory(nativePointer) {
717
+ return new Common.InvalidInterfaceUseError(nativePointer);
718
+ }
719
+ ProxyClassFactories["csp_common_InvalidInterfaceUseError"] =
720
+ csp_common_InvalidInterfaceUseErrorFactory;
721
+ function csp_common_IJSScriptRunnerFactory(nativePointer) {
722
+ return new Common.IJSScriptRunner(nativePointer);
723
+ }
724
+ ProxyClassFactories["csp_common_IJSScriptRunner"] =
725
+ csp_common_IJSScriptRunnerFactory;
703
726
  function csp_common_IRealtimeEngineFactory(nativePointer) {
704
727
  return new Common.IRealtimeEngine(nativePointer);
705
728
  }
@@ -948,11 +971,6 @@ function csp_systems_FeatureQuotaInfoFactory(nativePointer) {
948
971
  }
949
972
  ProxyClassFactories["csp_systems_FeatureQuotaInfo"] =
950
973
  csp_systems_FeatureQuotaInfoFactory;
951
- function csp_systems_ScriptSystemFactory(nativePointer) {
952
- return new Systems.ScriptSystem(nativePointer);
953
- }
954
- ProxyClassFactories["csp_systems_ScriptSystem"] =
955
- csp_systems_ScriptSystemFactory;
956
974
  function csp_systems_SequenceFactory(nativePointer) {
957
975
  return new Systems.Sequence(nativePointer);
958
976
  }
@@ -1017,10 +1035,6 @@ function csp_systems_OlyRotationFactory(nativePointer) {
1017
1035
  return new Systems.OlyRotation(nativePointer);
1018
1036
  }
1019
1037
  ProxyClassFactories["csp_systems_OlyRotation"] = csp_systems_OlyRotationFactory;
1020
- function csp_systems_LoginStateFactory(nativePointer) {
1021
- return new Systems.LoginState(nativePointer);
1022
- }
1023
- ProxyClassFactories["csp_systems_LoginState"] = csp_systems_LoginStateFactory;
1024
1038
  function csp_systems_LoginTokenInfoFactory(nativePointer) {
1025
1039
  return new Systems.LoginTokenInfo(nativePointer);
1026
1040
  }
@@ -1420,6 +1434,11 @@ function csp_systems_QuotaSystemFactory(nativePointer) {
1420
1434
  return new Systems.QuotaSystem(nativePointer);
1421
1435
  }
1422
1436
  ProxyClassFactories["csp_systems_QuotaSystem"] = csp_systems_QuotaSystemFactory;
1437
+ function csp_systems_ScriptSystemFactory(nativePointer) {
1438
+ return new Systems.ScriptSystem(nativePointer);
1439
+ }
1440
+ ProxyClassFactories["csp_systems_ScriptSystem"] =
1441
+ csp_systems_ScriptSystemFactory;
1423
1442
  function csp_systems_SequenceResultFactory(nativePointer) {
1424
1443
  return new Systems.SequenceResult(nativePointer);
1425
1444
  }
@@ -1838,20 +1857,21 @@ function csp_common_Map_String_csp_common_Array_StringFactory(nativePointer) {
1838
1857
  }
1839
1858
  ProxyClassFactories["csp_common_Map_String_csp_common_Array_String"] =
1840
1859
  csp_common_Map_String_csp_common_Array_StringFactory;
1841
- export var Systems;
1842
- (function (Systems) {
1860
+ export var Common;
1861
+ (function (Common) {
1843
1862
  /**
1844
- * @description Enum for setting csp::systems::Asset third party platform type.
1845
- * NONE indicates that the asset will work on any platform.
1846
- * Any other value indicates it will only work with this platform.
1863
+ * @description Enum which represents possible login states of a CSP client.
1847
1864
  */
1848
- let EThirdPartyPlatform;
1849
- (function (EThirdPartyPlatform) {
1850
- EThirdPartyPlatform[EThirdPartyPlatform["NONE"] = 0] = "NONE";
1851
- EThirdPartyPlatform[EThirdPartyPlatform["UNREAL"] = 1] = "UNREAL";
1852
- EThirdPartyPlatform[EThirdPartyPlatform["UNITY"] = 2] = "UNITY";
1853
- })(EThirdPartyPlatform = Systems.EThirdPartyPlatform || (Systems.EThirdPartyPlatform = {}));
1854
- })(Systems || (Systems = {}));
1865
+ let ELoginState;
1866
+ (function (ELoginState) {
1867
+ ELoginState[ELoginState["LoginThirdPartyProviderDetailsRequested"] = 0] = "LoginThirdPartyProviderDetailsRequested";
1868
+ ELoginState[ELoginState["LoginRequested"] = 1] = "LoginRequested";
1869
+ ELoginState[ELoginState["LoggedIn"] = 2] = "LoggedIn";
1870
+ ELoginState[ELoginState["LogoutRequested"] = 3] = "LogoutRequested";
1871
+ ELoginState[ELoginState["LoggedOut"] = 4] = "LoggedOut";
1872
+ ELoginState[ELoginState["Error"] = 5] = "Error";
1873
+ })(ELoginState = Common.ELoginState || (Common.ELoginState = {}));
1874
+ })(Common || (Common = {}));
1855
1875
  export var Web;
1856
1876
  (function (Web) {
1857
1877
  /**
@@ -1937,6 +1957,19 @@ export var Multiplayer;
1937
1957
  ErrorCode[ErrorCode["SpaceUserLimitExceeded"] = 4] = "SpaceUserLimitExceeded";
1938
1958
  })(ErrorCode = Multiplayer.ErrorCode || (Multiplayer.ErrorCode = {}));
1939
1959
  })(Multiplayer || (Multiplayer = {}));
1960
+ export var Systems;
1961
+ (function (Systems) {
1962
+ /**
1963
+ * @description Indicates special handling for any thirdparty platform
1964
+ * NOTE: We may remove this soon, as it's deceptive implying these are the only platforms we support.
1965
+ */
1966
+ let EThirdPartyPlatform;
1967
+ (function (EThirdPartyPlatform) {
1968
+ EThirdPartyPlatform[EThirdPartyPlatform["NONE"] = 0] = "NONE";
1969
+ EThirdPartyPlatform[EThirdPartyPlatform["UNREAL"] = 1] = "UNREAL";
1970
+ EThirdPartyPlatform[EThirdPartyPlatform["UNITY"] = 2] = "UNITY";
1971
+ })(EThirdPartyPlatform = Systems.EThirdPartyPlatform || (Systems.EThirdPartyPlatform = {}));
1972
+ })(Systems || (Systems = {}));
1940
1973
  (function (Systems) {
1941
1974
  /**
1942
1975
  * @description Code to indicate the result of a request.
@@ -1992,7 +2025,6 @@ export var Multiplayer;
1992
2025
  ERequestFailureReason[ERequestFailureReason["InvalidSequenceKey"] = 35] = "InvalidSequenceKey";
1993
2026
  })(ERequestFailureReason = Systems.ERequestFailureReason || (Systems.ERequestFailureReason = {}));
1994
2027
  })(Systems || (Systems = {}));
1995
- export var Common;
1996
2028
  (function (Common) {
1997
2029
  /**
1998
2030
  * @description enum for representing a type stored by a csp::common::Variant.
@@ -2121,6 +2153,28 @@ export var Common;
2121
2153
  ConnectionState[ConnectionState["Disconnected"] = 3] = "Disconnected";
2122
2154
  })(ConnectionState = Multiplayer.ConnectionState || (Multiplayer.ConnectionState = {}));
2123
2155
  })(Multiplayer || (Multiplayer = {}));
2156
+ (function (Multiplayer) {
2157
+ /**
2158
+ * @description Enum used to specify the SignalR method to invoke in the multiplayer connection.
2159
+ */
2160
+ let MultiplayerHubMethod;
2161
+ (function (MultiplayerHubMethod) {
2162
+ MultiplayerHubMethod[MultiplayerHubMethod["DELETE_OBJECTS"] = 0] = "DELETE_OBJECTS";
2163
+ MultiplayerHubMethod[MultiplayerHubMethod["GENERATE_OBJECT_IDS"] = 1] = "GENERATE_OBJECT_IDS";
2164
+ MultiplayerHubMethod[MultiplayerHubMethod["GET_CLIENT_ID"] = 2] = "GET_CLIENT_ID";
2165
+ MultiplayerHubMethod[MultiplayerHubMethod["PAGE_SCOPED_OBJECTS"] = 3] = "PAGE_SCOPED_OBJECTS";
2166
+ MultiplayerHubMethod[MultiplayerHubMethod["RESET_SCOPES"] = 4] = "RESET_SCOPES";
2167
+ MultiplayerHubMethod[MultiplayerHubMethod["SEND_EVENT_MESSAGE"] = 5] = "SEND_EVENT_MESSAGE";
2168
+ MultiplayerHubMethod[MultiplayerHubMethod["SEND_OBJECT_MESSAGE"] = 6] = "SEND_OBJECT_MESSAGE";
2169
+ MultiplayerHubMethod[MultiplayerHubMethod["SEND_OBJECT_NOT_FOUND"] = 7] = "SEND_OBJECT_NOT_FOUND";
2170
+ MultiplayerHubMethod[MultiplayerHubMethod["SEND_OBJECT_PATCH"] = 8] = "SEND_OBJECT_PATCH";
2171
+ MultiplayerHubMethod[MultiplayerHubMethod["SEND_OBJECT_PATCHES"] = 9] = "SEND_OBJECT_PATCHES";
2172
+ MultiplayerHubMethod[MultiplayerHubMethod["SET_ALLOW_SELF_MESSAGING"] = 10] = "SET_ALLOW_SELF_MESSAGING";
2173
+ MultiplayerHubMethod[MultiplayerHubMethod["SET_SCOPES"] = 11] = "SET_SCOPES";
2174
+ MultiplayerHubMethod[MultiplayerHubMethod["START_LISTENING"] = 12] = "START_LISTENING";
2175
+ MultiplayerHubMethod[MultiplayerHubMethod["STOP_LISTENING"] = 13] = "STOP_LISTENING";
2176
+ })(MultiplayerHubMethod = Multiplayer.MultiplayerHubMethod || (Multiplayer.MultiplayerHubMethod = {}));
2177
+ })(Multiplayer || (Multiplayer = {}));
2124
2178
  (function (Multiplayer) {
2125
2179
  /**
2126
2180
  * @description Enum representing the type of a replicated value.
@@ -3088,17 +3142,6 @@ export var Common;
3088
3142
  EPointOfInterestType[EPointOfInterestType["SPACE"] = 1] = "SPACE";
3089
3143
  })(EPointOfInterestType = Systems.EPointOfInterestType || (Systems.EPointOfInterestType = {}));
3090
3144
  })(Systems || (Systems = {}));
3091
- (function (Systems) {
3092
- let ELoginState;
3093
- (function (ELoginState) {
3094
- ELoginState[ELoginState["LoginThirdPartyProviderDetailsRequested"] = 0] = "LoginThirdPartyProviderDetailsRequested";
3095
- ELoginState[ELoginState["LoginRequested"] = 1] = "LoginRequested";
3096
- ELoginState[ELoginState["LoggedIn"] = 2] = "LoggedIn";
3097
- ELoginState[ELoginState["LogoutRequested"] = 3] = "LogoutRequested";
3098
- ELoginState[ELoginState["LoggedOut"] = 4] = "LoggedOut";
3099
- ELoginState[ELoginState["Error"] = 5] = "Error";
3100
- })(ELoginState = Systems.ELoginState || (Systems.ELoginState = {}));
3101
- })(Systems || (Systems = {}));
3102
3145
  (function (Systems) {
3103
3146
  /**
3104
3147
  * @description FDN supported Authentication Providers, the ones that can be used are the ones above Num
@@ -3114,6 +3157,59 @@ export var Common;
3114
3157
  EThirdPartyAuthenticationProviders[EThirdPartyAuthenticationProviders["Invalid"] = 3] = "Invalid";
3115
3158
  })(EThirdPartyAuthenticationProviders = Systems.EThirdPartyAuthenticationProviders || (Systems.EThirdPartyAuthenticationProviders = {}));
3116
3159
  })(Systems || (Systems = {}));
3160
+ /**
3161
+ * @description Represents definition for identifying and versioning an external service endpoint..
3162
+ */
3163
+ export class ServiceDefinition extends NativeClassWrapper {
3164
+ /** @internal */
3165
+ constructor(pointer) {
3166
+ super(pointer);
3167
+ }
3168
+ static create() {
3169
+ var _ptr = Module._malloc(8);
3170
+ Module.ccall("csp_ServiceDefinition_Ctor", "void", ["number"], [_ptr]);
3171
+ var _nPtr = getNativePointer(_ptr);
3172
+ return new ServiceDefinition(_nPtr);
3173
+ }
3174
+ static create_uRI_version(uRI, version) {
3175
+ var _ptr = Module._malloc(8);
3176
+ Module.ccall("csp_ServiceDefinition_Ctor_StringRC_uint32_tC", "void", ["number", "string", "number"], [_ptr, uRI, version]);
3177
+ var _nPtr = getNativePointer(_ptr);
3178
+ return new ServiceDefinition(_nPtr);
3179
+ }
3180
+ /**
3181
+ * @description Gets the URI for the service endpoint.
3182
+ * @return URI of the service endpoint.
3183
+ */
3184
+ getURI() {
3185
+ let _result = Module.ccall("csp_ServiceDefinition_GetURIC_String", "number", ["number"], [this.pointer]);
3186
+ const _resultString = Module.UTF8ToString(_result);
3187
+ free(_result);
3188
+ _result = _resultString;
3189
+ return _result;
3190
+ }
3191
+ /**
3192
+ * @description Sets the URI for the service endpoint.
3193
+ * @param inURI - URI for service endpoint.
3194
+ */
3195
+ setURI(uRI) {
3196
+ Module.ccall("csp_ServiceDefinition_SetURI_void_StringRC", "void", ["number", "string"], [this.pointer, uRI]);
3197
+ }
3198
+ /**
3199
+ * @description Gets the current version of the service endpoint.
3200
+ * @return Representing the current version of the service endpoint.
3201
+ */
3202
+ getVersion() {
3203
+ let _result = Module.ccall("csp_ServiceDefinition_GetVersionC_int32_t", "number", ["number"], [this.pointer]);
3204
+ return _result;
3205
+ }
3206
+ delete() {
3207
+ if (this.ownsPointer && !this.disposed) {
3208
+ Module.ccall("csp_ServiceDefinition_Dtor", "void", ["number"], [this.pointer]);
3209
+ this.disposed = true;
3210
+ }
3211
+ }
3212
+ }
3117
3213
  /**
3118
3214
  * @description Holds supported endpoint uris used by Foundation.
3119
3215
  */
@@ -3134,54 +3230,68 @@ export class EndpointURIs extends NativeClassWrapper {
3134
3230
  this.disposed = true;
3135
3231
  }
3136
3232
  }
3137
- get userServiceURI() {
3138
- let _result = Module.ccall("csp_EndpointURIs__Get_UserServiceURI", "string", ["number"], [this.pointer]);
3139
- return _result;
3233
+ get userService() {
3234
+ const _ptr = Module._malloc(8);
3235
+ Module.ccall("csp_EndpointURIs__Get_UserService", "void", ["number", "number"], [_ptr, this.pointer]);
3236
+ const _nPtr = getNativePointer(_ptr);
3237
+ return new ServiceDefinition(_nPtr);
3140
3238
  }
3141
- set userServiceURI(value) {
3142
- Module.ccall("csp_EndpointURIs__Set_UserServiceURI", "void", ["number", "string"], [this.pointer, value]);
3239
+ set userService(value) {
3240
+ Module.ccall("csp_EndpointURIs__Set_UserService", "void", ["number", "number"], [this.pointer, value.pointer]);
3143
3241
  }
3144
- get prototypeServiceURI() {
3145
- let _result = Module.ccall("csp_EndpointURIs__Get_PrototypeServiceURI", "string", ["number"], [this.pointer]);
3146
- return _result;
3242
+ get prototypeService() {
3243
+ const _ptr = Module._malloc(8);
3244
+ Module.ccall("csp_EndpointURIs__Get_PrototypeService", "void", ["number", "number"], [_ptr, this.pointer]);
3245
+ const _nPtr = getNativePointer(_ptr);
3246
+ return new ServiceDefinition(_nPtr);
3147
3247
  }
3148
- set prototypeServiceURI(value) {
3149
- Module.ccall("csp_EndpointURIs__Set_PrototypeServiceURI", "void", ["number", "string"], [this.pointer, value]);
3248
+ set prototypeService(value) {
3249
+ Module.ccall("csp_EndpointURIs__Set_PrototypeService", "void", ["number", "number"], [this.pointer, value.pointer]);
3150
3250
  }
3151
- get spatialDataServiceURI() {
3152
- let _result = Module.ccall("csp_EndpointURIs__Get_SpatialDataServiceURI", "string", ["number"], [this.pointer]);
3153
- return _result;
3251
+ get spatialDataService() {
3252
+ const _ptr = Module._malloc(8);
3253
+ Module.ccall("csp_EndpointURIs__Get_SpatialDataService", "void", ["number", "number"], [_ptr, this.pointer]);
3254
+ const _nPtr = getNativePointer(_ptr);
3255
+ return new ServiceDefinition(_nPtr);
3154
3256
  }
3155
- set spatialDataServiceURI(value) {
3156
- Module.ccall("csp_EndpointURIs__Set_SpatialDataServiceURI", "void", ["number", "string"], [this.pointer, value]);
3257
+ set spatialDataService(value) {
3258
+ Module.ccall("csp_EndpointURIs__Set_SpatialDataService", "void", ["number", "number"], [this.pointer, value.pointer]);
3157
3259
  }
3158
- get multiplayerServiceURI() {
3159
- let _result = Module.ccall("csp_EndpointURIs__Get_MultiplayerServiceURI", "string", ["number"], [this.pointer]);
3160
- return _result;
3260
+ get multiplayerService() {
3261
+ const _ptr = Module._malloc(8);
3262
+ Module.ccall("csp_EndpointURIs__Get_MultiplayerService", "void", ["number", "number"], [_ptr, this.pointer]);
3263
+ const _nPtr = getNativePointer(_ptr);
3264
+ return new ServiceDefinition(_nPtr);
3161
3265
  }
3162
- set multiplayerServiceURI(value) {
3163
- Module.ccall("csp_EndpointURIs__Set_MultiplayerServiceURI", "void", ["number", "string"], [this.pointer, value]);
3266
+ set multiplayerService(value) {
3267
+ Module.ccall("csp_EndpointURIs__Set_MultiplayerService", "void", ["number", "number"], [this.pointer, value.pointer]);
3164
3268
  }
3165
- get aggregationServiceURI() {
3166
- let _result = Module.ccall("csp_EndpointURIs__Get_AggregationServiceURI", "string", ["number"], [this.pointer]);
3167
- return _result;
3269
+ get aggregationService() {
3270
+ const _ptr = Module._malloc(8);
3271
+ Module.ccall("csp_EndpointURIs__Get_AggregationService", "void", ["number", "number"], [_ptr, this.pointer]);
3272
+ const _nPtr = getNativePointer(_ptr);
3273
+ return new ServiceDefinition(_nPtr);
3168
3274
  }
3169
- set aggregationServiceURI(value) {
3170
- Module.ccall("csp_EndpointURIs__Set_AggregationServiceURI", "void", ["number", "string"], [this.pointer, value]);
3275
+ set aggregationService(value) {
3276
+ Module.ccall("csp_EndpointURIs__Set_AggregationService", "void", ["number", "number"], [this.pointer, value.pointer]);
3171
3277
  }
3172
- get trackingServiceURI() {
3173
- let _result = Module.ccall("csp_EndpointURIs__Get_TrackingServiceURI", "string", ["number"], [this.pointer]);
3174
- return _result;
3278
+ get trackingService() {
3279
+ const _ptr = Module._malloc(8);
3280
+ Module.ccall("csp_EndpointURIs__Get_TrackingService", "void", ["number", "number"], [_ptr, this.pointer]);
3281
+ const _nPtr = getNativePointer(_ptr);
3282
+ return new ServiceDefinition(_nPtr);
3175
3283
  }
3176
- set trackingServiceURI(value) {
3177
- Module.ccall("csp_EndpointURIs__Set_TrackingServiceURI", "void", ["number", "string"], [this.pointer, value]);
3284
+ set trackingService(value) {
3285
+ Module.ccall("csp_EndpointURIs__Set_TrackingService", "void", ["number", "number"], [this.pointer, value.pointer]);
3178
3286
  }
3179
- get maintenanceWindowURI() {
3180
- let _result = Module.ccall("csp_EndpointURIs__Get_MaintenanceWindowURI", "string", ["number"], [this.pointer]);
3181
- return _result;
3287
+ get maintenanceWindow() {
3288
+ const _ptr = Module._malloc(8);
3289
+ Module.ccall("csp_EndpointURIs__Get_MaintenanceWindow", "void", ["number", "number"], [_ptr, this.pointer]);
3290
+ const _nPtr = getNativePointer(_ptr);
3291
+ return new ServiceDefinition(_nPtr);
3182
3292
  }
3183
- set maintenanceWindowURI(value) {
3184
- Module.ccall("csp_EndpointURIs__Set_MaintenanceWindowURI", "void", ["number", "string"], [this.pointer, value]);
3293
+ set maintenanceWindow(value) {
3294
+ Module.ccall("csp_EndpointURIs__Set_MaintenanceWindow", "void", ["number", "number"], [this.pointer, value.pointer]);
3185
3295
  }
3186
3296
  }
3187
3297
  /**
@@ -3455,6 +3565,80 @@ export class CSPFoundation {
3455
3565
  }
3456
3566
  Common.CancellationToken = CancellationToken;
3457
3567
  })(Common || (Common = {}));
3568
+ (function (Common) {
3569
+ /**
3570
+ * @description Data structure representing the user login state, including detection of access token expiry
3571
+ */
3572
+ class LoginState extends NativeClassWrapper {
3573
+ /** @internal */
3574
+ constructor(pointer) {
3575
+ super(pointer);
3576
+ }
3577
+ static create() {
3578
+ var _ptr = Module._malloc(8);
3579
+ Module.ccall("csp_common_LoginState_Ctor", "void", ["number"], [_ptr]);
3580
+ var _nPtr = getNativePointer(_ptr);
3581
+ return new LoginState(_nPtr);
3582
+ }
3583
+ delete() {
3584
+ if (this.ownsPointer && !this.disposed) {
3585
+ Module.ccall("csp_common_LoginState_Dtor", "void", ["number"], [this.pointer]);
3586
+ this.disposed = true;
3587
+ }
3588
+ }
3589
+ static create_otherState(otherState) {
3590
+ var _ptr = Module._malloc(8);
3591
+ Module.ccall("csp_common_LoginState_Ctor_LoginStateRC", "void", ["number", "number"], [_ptr, otherState.pointer]);
3592
+ var _nPtr = getNativePointer(_ptr);
3593
+ return new LoginState(_nPtr);
3594
+ }
3595
+ // operator=
3596
+ /**
3597
+ * @description Check if the access token for the login is expired.
3598
+ * @return Is the token expired.
3599
+ */
3600
+ refreshNeeded() {
3601
+ let _result = Module.ccall("csp_common_LoginState_RefreshNeededC_bool", "boolean", ["number"], [this.pointer]);
3602
+ return _result;
3603
+ }
3604
+ get state() {
3605
+ let _result = Module.ccall("csp_common_LoginState__Get_State", "number", ["number"], [this.pointer]);
3606
+ return _result;
3607
+ }
3608
+ set state(value) {
3609
+ Module.ccall("csp_common_LoginState__Set_State", "void", ["number", "number"], [this.pointer, value]);
3610
+ }
3611
+ get accessToken() {
3612
+ let _result = Module.ccall("csp_common_LoginState__Get_AccessToken", "string", ["number"], [this.pointer]);
3613
+ return _result;
3614
+ }
3615
+ set accessToken(value) {
3616
+ Module.ccall("csp_common_LoginState__Set_AccessToken", "void", ["number", "string"], [this.pointer, value]);
3617
+ }
3618
+ get refreshToken() {
3619
+ let _result = Module.ccall("csp_common_LoginState__Get_RefreshToken", "string", ["number"], [this.pointer]);
3620
+ return _result;
3621
+ }
3622
+ set refreshToken(value) {
3623
+ Module.ccall("csp_common_LoginState__Set_RefreshToken", "void", ["number", "string"], [this.pointer, value]);
3624
+ }
3625
+ get userId() {
3626
+ let _result = Module.ccall("csp_common_LoginState__Get_UserId", "string", ["number"], [this.pointer]);
3627
+ return _result;
3628
+ }
3629
+ set userId(value) {
3630
+ Module.ccall("csp_common_LoginState__Set_UserId", "void", ["number", "string"], [this.pointer, value]);
3631
+ }
3632
+ get deviceId() {
3633
+ let _result = Module.ccall("csp_common_LoginState__Get_DeviceId", "string", ["number"], [this.pointer]);
3634
+ return _result;
3635
+ }
3636
+ set deviceId(value) {
3637
+ Module.ccall("csp_common_LoginState__Set_DeviceId", "void", ["number", "string"], [this.pointer, value]);
3638
+ }
3639
+ }
3640
+ Common.LoginState = LoginState;
3641
+ })(Common || (Common = {}));
3458
3642
  (function (Common) {
3459
3643
  /**
3460
3644
  * @description Holds all valid mime types.
@@ -9370,6 +9554,58 @@ export class CSPFoundation {
9370
9554
  }
9371
9555
  Common.Vector4 = Vector4;
9372
9556
  })(Common || (Common = {}));
9557
+ (function (Common) {
9558
+ class InvalidInterfaceUseError extends NativeClassWrapper {
9559
+ /** @internal */
9560
+ constructor(pointer) {
9561
+ super(pointer);
9562
+ }
9563
+ static create_msg(msg) {
9564
+ var _ptr = Module._malloc(8);
9565
+ Module.ccall("csp_common_InvalidInterfaceUseError_Ctor_StringRC", "void", ["number", "string"], [_ptr, msg]);
9566
+ var _nPtr = getNativePointer(_ptr);
9567
+ return new InvalidInterfaceUseError(_nPtr);
9568
+ }
9569
+ delete() {
9570
+ if (this.ownsPointer && !this.disposed) {
9571
+ Module.ccall("csp_common_InvalidInterfaceUseError_Dtor", "void", ["number"], [this.pointer]);
9572
+ this.disposed = true;
9573
+ }
9574
+ }
9575
+ get msg() {
9576
+ let _result = Module.ccall("csp_common_InvalidInterfaceUseError__Get_msg", "string", ["number"], [this.pointer]);
9577
+ return _result;
9578
+ }
9579
+ set msg(value) {
9580
+ Module.ccall("csp_common_InvalidInterfaceUseError__Set_msg", "void", ["number", "string"], [this.pointer, value]);
9581
+ }
9582
+ }
9583
+ Common.InvalidInterfaceUseError = InvalidInterfaceUseError;
9584
+ })(Common || (Common = {}));
9585
+ (function (Common) {
9586
+ class IJSScriptRunner extends NativeClassWrapper {
9587
+ /** @internal */
9588
+ constructor(pointer) {
9589
+ super(pointer);
9590
+ }
9591
+ /**
9592
+ * @description Virtual destructor.
9593
+ */
9594
+ delete() {
9595
+ if (this.ownsPointer && !this.disposed) {
9596
+ Module.ccall("csp_common_IJSScriptRunner_Dtor", "void", ["number"], [this.pointer]);
9597
+ this.disposed = true;
9598
+ }
9599
+ }
9600
+ runScript(contextId, scriptText) {
9601
+ assert(contextId >= Limits.INT64_MIN);
9602
+ assert(contextId <= Limits.INT64_MAX);
9603
+ let _result = Module.ccall("csp_common_IJSScriptRunner_RunScript_bool_int64_t_StringRC", "boolean", ["number", "bigint", "string"], [this.pointer, contextId, scriptText]);
9604
+ return _result;
9605
+ }
9606
+ }
9607
+ Common.IJSScriptRunner = IJSScriptRunner;
9608
+ })(Common || (Common = {}));
9373
9609
  (function (Common) {
9374
9610
  class IRealtimeEngine extends NativeClassWrapper {
9375
9611
  /** @internal */
@@ -10764,9 +11000,9 @@ export class CSPFoundation {
10764
11000
  /**
10765
11001
  * @description Creates a SpaceEntity instance using the space entity system provided.
10766
11002
  */
10767
- static create_entitySystem_logSystem(entitySystem, logSystem) {
11003
+ static create_entitySystem_scriptRunner_logSystem(entitySystem, scriptRunner, logSystem) {
10768
11004
  var _ptr = Module._malloc(8);
10769
- Module.ccall("csp_multiplayer_SpaceEntity_Ctor_SpaceEntitySystemP_LogSystemP", "void", ["number", "number", "number"], [_ptr, entitySystem.pointer, logSystem.pointer]);
11005
+ Module.ccall("csp_multiplayer_SpaceEntity_Ctor_SpaceEntitySystemP_IJSScriptRunnerR_LogSystemP", "void", ["number", "number", "number", "number"], [_ptr, entitySystem.pointer, scriptRunner.pointer, logSystem.pointer]);
10770
11006
  var _nPtr = getNativePointer(_ptr);
10771
11007
  return new SpaceEntity(_nPtr);
10772
11008
  }
@@ -11280,7 +11516,7 @@ export class CSPFoundation {
11280
11516
  * @param callback - EntityCreatedCallback A callback that executes when the creation is complete,
11281
11517
  * which contains a pointer to the new SpaceEntity so that it can be used on the local client.
11282
11518
  */
11283
- async createAvatar(name, spaceTransform, isVisible, state, avatarId, avatarPlayMode) {
11519
+ async createAvatar(name, loginState, spaceTransform, isVisible, state, avatarId, avatarPlayMode) {
11284
11520
  var _resolve;
11285
11521
  var _promise = new Promise((_r) => {
11286
11522
  _resolve = _r;
@@ -11293,10 +11529,11 @@ export class CSPFoundation {
11293
11529
  Module.removeFunction(_callbackPtr);
11294
11530
  };
11295
11531
  _callbackPtr = Module.addFunction(_callback, "vii");
11296
- Module.ccall("csp_multiplayer_SpaceEntitySystem_CreateAvatar_void_StringRC_SpaceTransformRC_bool_AvatarState_StringRC_AvatarPlayMode_EntityCreatedCallback", "void", [
11532
+ Module.ccall("csp_multiplayer_SpaceEntitySystem_CreateAvatar_void_StringRC_LoginStateRC_SpaceTransformRC_bool_AvatarState_StringRC_AvatarPlayMode_EntityCreatedCallback", "void", [
11297
11533
  "number",
11298
11534
  "string",
11299
11535
  "number",
11536
+ "number",
11300
11537
  "boolean",
11301
11538
  "number",
11302
11539
  "string",
@@ -11306,6 +11543,7 @@ export class CSPFoundation {
11306
11543
  ], [
11307
11544
  this.pointer,
11308
11545
  name,
11546
+ loginState.pointer,
11309
11547
  spaceTransform.pointer,
11310
11548
  isVisible,
11311
11549
  state,
@@ -14384,54 +14622,6 @@ export class CSPFoundation {
14384
14622
  }
14385
14623
  Systems.FeatureQuotaInfo = FeatureQuotaInfo;
14386
14624
  })(Systems || (Systems = {}));
14387
- (function (Systems) {
14388
- /**
14389
- * @description A JavaScript based scripting system that can be used to create advanced behaviours and interactions between entities in spaces.
14390
- */
14391
- class ScriptSystem extends NativeClassWrapper {
14392
- /** @internal */
14393
- constructor(pointer) {
14394
- super(pointer);
14395
- }
14396
- /**
14397
- * @description Starts up the JavaScript runtime context.
14398
- */
14399
- initialise() {
14400
- Module.ccall("csp_systems_ScriptSystem_Initialise_void", "void", ["number"], [this.pointer]);
14401
- }
14402
- /**
14403
- * @description Shuts down and deletes the JavaScript runtime context.
14404
- */
14405
- shutdown() {
14406
- Module.ccall("csp_systems_ScriptSystem_Shutdown_void", "void", ["number"], [this.pointer]);
14407
- }
14408
- /**
14409
- * @description Attempts to execute a script in a given context.
14410
- * @param contextId - The context in which to run the script. If the provided context does not exist, the script run will fail.
14411
- * @param scriptText - The script to execute.
14412
- * @return A boolean representing success running the script.
14413
- */
14414
- runScript(contextId, scriptText) {
14415
- assert(contextId >= Limits.INT64_MIN);
14416
- assert(contextId <= Limits.INT64_MAX);
14417
- let _result = Module.ccall("csp_systems_ScriptSystem_RunScript_bool_int64_t_StringRC", "boolean", ["number", "bigint", "string"], [this.pointer, contextId, scriptText]);
14418
- return _result;
14419
- }
14420
- /**
14421
- * @description Attempts to execute a script from a given file path in the given context.
14422
- * @param contextId - The context in which to run the script. If the provided context does not exist, the script run will fail.
14423
- * @param scriptFilePath - The file path of the script to execute.
14424
- * @return A boolean representing success running the script.
14425
- */
14426
- runScriptFile(contextId, scriptFilePath) {
14427
- assert(contextId >= Limits.INT64_MIN);
14428
- assert(contextId <= Limits.INT64_MAX);
14429
- let _result = Module.ccall("csp_systems_ScriptSystem_RunScriptFile_bool_int64_t_StringRC", "boolean", ["number", "bigint", "string"], [this.pointer, contextId, scriptFilePath]);
14430
- return _result;
14431
- }
14432
- }
14433
- Systems.ScriptSystem = ScriptSystem;
14434
- })(Systems || (Systems = {}));
14435
14625
  (function (Systems) {
14436
14626
  /**
14437
14627
  @ingroup Sequence System
@@ -15350,80 +15540,6 @@ export class CSPFoundation {
15350
15540
  }
15351
15541
  Systems.OlyRotation = OlyRotation;
15352
15542
  })(Systems || (Systems = {}));
15353
- (function (Systems) {
15354
- /**
15355
- * @description Data structure representing the user login state, including detection of access token expiry
15356
- */
15357
- class LoginState extends NativeClassWrapper {
15358
- /** @internal */
15359
- constructor(pointer) {
15360
- super(pointer);
15361
- }
15362
- static create() {
15363
- var _ptr = Module._malloc(8);
15364
- Module.ccall("csp_systems_LoginState_Ctor", "void", ["number"], [_ptr]);
15365
- var _nPtr = getNativePointer(_ptr);
15366
- return new LoginState(_nPtr);
15367
- }
15368
- delete() {
15369
- if (this.ownsPointer && !this.disposed) {
15370
- Module.ccall("csp_systems_LoginState_Dtor", "void", ["number"], [this.pointer]);
15371
- this.disposed = true;
15372
- }
15373
- }
15374
- static create_otherState(otherState) {
15375
- var _ptr = Module._malloc(8);
15376
- Module.ccall("csp_systems_LoginState_Ctor_LoginStateRC", "void", ["number", "number"], [_ptr, otherState.pointer]);
15377
- var _nPtr = getNativePointer(_ptr);
15378
- return new LoginState(_nPtr);
15379
- }
15380
- // operator=
15381
- /**
15382
- * @description Check if the access token for the login is expired.
15383
- * @return Is the token expired.
15384
- */
15385
- refreshNeeded() {
15386
- let _result = Module.ccall("csp_systems_LoginState_RefreshNeededC_bool", "boolean", ["number"], [this.pointer]);
15387
- return _result;
15388
- }
15389
- get state() {
15390
- let _result = Module.ccall("csp_systems_LoginState__Get_State", "number", ["number"], [this.pointer]);
15391
- return _result;
15392
- }
15393
- set state(value) {
15394
- Module.ccall("csp_systems_LoginState__Set_State", "void", ["number", "number"], [this.pointer, value]);
15395
- }
15396
- get accessToken() {
15397
- let _result = Module.ccall("csp_systems_LoginState__Get_AccessToken", "string", ["number"], [this.pointer]);
15398
- return _result;
15399
- }
15400
- set accessToken(value) {
15401
- Module.ccall("csp_systems_LoginState__Set_AccessToken", "void", ["number", "string"], [this.pointer, value]);
15402
- }
15403
- get refreshToken() {
15404
- let _result = Module.ccall("csp_systems_LoginState__Get_RefreshToken", "string", ["number"], [this.pointer]);
15405
- return _result;
15406
- }
15407
- set refreshToken(value) {
15408
- Module.ccall("csp_systems_LoginState__Set_RefreshToken", "void", ["number", "string"], [this.pointer, value]);
15409
- }
15410
- get userId() {
15411
- let _result = Module.ccall("csp_systems_LoginState__Get_UserId", "string", ["number"], [this.pointer]);
15412
- return _result;
15413
- }
15414
- set userId(value) {
15415
- Module.ccall("csp_systems_LoginState__Set_UserId", "void", ["number", "string"], [this.pointer, value]);
15416
- }
15417
- get deviceId() {
15418
- let _result = Module.ccall("csp_systems_LoginState__Get_DeviceId", "string", ["number"], [this.pointer]);
15419
- return _result;
15420
- }
15421
- set deviceId(value) {
15422
- Module.ccall("csp_systems_LoginState__Set_DeviceId", "void", ["number", "string"], [this.pointer, value]);
15423
- }
15424
- }
15425
- Systems.LoginState = LoginState;
15426
- })(Systems || (Systems = {}));
15427
15543
  (function (Systems) {
15428
15544
  /**
15429
15545
  * @description Data for access and refresh tokens, and their expiry times.
@@ -24636,10 +24752,11 @@ export class CSPFoundation {
24636
24752
  /**
24637
24753
  * @description This will delete any groups which only contain this item
24638
24754
  * For any groups which contanin the given item and additional items, it will just update the group by removing the given item.
24639
- * @param itemName - An item to update all sequences containing.
24755
+ * @param itemID - An item to update all sequences containing. Can be retrieved from a HotspotSpaceComponent via
24756
+ * HotspotSpaceComponent::GetUniqueComponentId
24640
24757
  * @param callback - Callback to call when a response is received
24641
24758
  */
24642
- async removeItemFromGroups(itemName) {
24759
+ async removeItemFromGroups(itemID) {
24643
24760
  var _resolve;
24644
24761
  var _promise = new Promise((_r) => {
24645
24762
  _resolve = _r;
@@ -24655,7 +24772,7 @@ export class CSPFoundation {
24655
24772
  Module.removeFunction(_callbackPtr);
24656
24773
  };
24657
24774
  _callbackPtr = Module.addFunction(_callback, "vii");
24658
- Module.ccall("csp_systems_HotspotSequenceSystem_RemoveItemFromGroups_void_StringRC_NullResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, itemName, _callbackPtr, 0]);
24775
+ Module.ccall("csp_systems_HotspotSequenceSystem_RemoveItemFromGroups_void_StringRC_NullResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, itemID, _callbackPtr, 0]);
24659
24776
  return _promise;
24660
24777
  }
24661
24778
  /**
@@ -25171,6 +25288,58 @@ export class CSPFoundation {
25171
25288
  }
25172
25289
  Systems.QuotaSystem = QuotaSystem;
25173
25290
  })(Systems || (Systems = {}));
25291
+ (function (Systems) {
25292
+ /**
25293
+ * @description A JavaScript based scripting system that can be used to create advanced behaviours and interactions between entities in spaces.
25294
+ */
25295
+ class ScriptSystem extends Common.IJSScriptRunner {
25296
+ /** @internal */
25297
+ constructor(pointer) {
25298
+ super(pointer);
25299
+ }
25300
+ static fromIJSScriptRunner(baseInstance) {
25301
+ const nativeClassWrapper = baseInstance;
25302
+ return new Systems.ScriptSystem(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
25303
+ }
25304
+ /**
25305
+ * @description Starts up the JavaScript runtime context.
25306
+ */
25307
+ initialise() {
25308
+ Module.ccall("csp_systems_ScriptSystem_Initialise_void", "void", ["number"], [this.pointer]);
25309
+ }
25310
+ /**
25311
+ * @description Shuts down and deletes the JavaScript runtime context.
25312
+ */
25313
+ shutdown() {
25314
+ Module.ccall("csp_systems_ScriptSystem_Shutdown_void", "void", ["number"], [this.pointer]);
25315
+ }
25316
+ /**
25317
+ * @description Attempts to execute a script in a given context.
25318
+ * @param contextId - The context in which to run the script. If the provided context does not exist, the script run will fail.
25319
+ * @param scriptText - The script to execute.
25320
+ * @return A boolean representing success running the script.
25321
+ */
25322
+ runScript(contextId, scriptText) {
25323
+ assert(contextId >= Limits.INT64_MIN);
25324
+ assert(contextId <= Limits.INT64_MAX);
25325
+ let _result = Module.ccall("csp_systems_ScriptSystem_RunScript_bool_int64_t_StringRC", "boolean", ["number", "bigint", "string"], [this.pointer, contextId, scriptText]);
25326
+ return _result;
25327
+ }
25328
+ /**
25329
+ * @description Attempts to execute a script from a given file path in the given context.
25330
+ * @param contextId - The context in which to run the script. If the provided context does not exist, the script run will fail.
25331
+ * @param scriptFilePath - The file path of the script to execute.
25332
+ * @return A boolean representing success running the script.
25333
+ */
25334
+ runScriptFile(contextId, scriptFilePath) {
25335
+ assert(contextId >= Limits.INT64_MIN);
25336
+ assert(contextId <= Limits.INT64_MAX);
25337
+ let _result = Module.ccall("csp_systems_ScriptSystem_RunScriptFile_bool_int64_t_StringRC", "boolean", ["number", "bigint", "string"], [this.pointer, contextId, scriptFilePath]);
25338
+ return _result;
25339
+ }
25340
+ }
25341
+ Systems.ScriptSystem = ScriptSystem;
25342
+ })(Systems || (Systems = {}));
25174
25343
  (function (Systems) {
25175
25344
  /**
25176
25345
  @ingroup Sequence System
@@ -28362,7 +28531,7 @@ export class CSPFoundation {
28362
28531
  getLoginState() {
28363
28532
  var _ret = Module._malloc(8);
28364
28533
  Module.ccall("csp_systems_LoginStateResult_GetLoginStateC_LoginStateRC", "void", ["number", "number"], [_ret, this.pointer]);
28365
- var _nPtr = new Systems.LoginState(getNativePointer(_ret));
28534
+ var _nPtr = new Common.LoginState(getNativePointer(_ret));
28366
28535
  Module._free(_ret);
28367
28536
  return _nPtr;
28368
28537
  }
@@ -28612,7 +28781,7 @@ export class CSPFoundation {
28612
28781
  getLoginState() {
28613
28782
  var _ret = Module._malloc(8);
28614
28783
  Module.ccall("csp_systems_UserSystem_GetLoginStateC_LoginStateRC", "void", ["number", "number"], [_ret, this.pointer]);
28615
- var _nPtr = new Systems.LoginState(getNativePointer(_ret));
28784
+ var _nPtr = new Common.LoginState(getNativePointer(_ret));
28616
28785
  Module._free(_ret);
28617
28786
  return _nPtr;
28618
28787
  }