connected-spaces-platform.web 6.3.0 → 6.4.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.
- package/Debug/ConnectedSpacesPlatform_WASM.js +23 -9
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/README.md +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.js +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +75 -15
- package/connectedspacesplatform.js +166 -19
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +262 -25
- package/package.json +1 -1
|
@@ -1623,6 +1623,14 @@ function csp_systems_TokenInfoParamsFactory(
|
|
|
1623
1623
|
ProxyClassFactories["csp_systems_TokenInfoParams"] =
|
|
1624
1624
|
csp_systems_TokenInfoParamsFactory;
|
|
1625
1625
|
|
|
1626
|
+
function csp_systems_TokenOptionsFactory(
|
|
1627
|
+
nativePointer: NativePointer,
|
|
1628
|
+
): NativeClassWrapper {
|
|
1629
|
+
return new Systems.TokenOptions(nativePointer);
|
|
1630
|
+
}
|
|
1631
|
+
ProxyClassFactories["csp_systems_TokenOptions"] =
|
|
1632
|
+
csp_systems_TokenOptionsFactory;
|
|
1633
|
+
|
|
1626
1634
|
function csp_systems_BasicProfileFactory(
|
|
1627
1635
|
nativePointer: NativePointer,
|
|
1628
1636
|
): NativeClassWrapper {
|
|
@@ -1989,6 +1997,14 @@ function csp_systems_HTTPHeadersResultFactory(
|
|
|
1989
1997
|
ProxyClassFactories["csp_systems_HTTPHeadersResult"] =
|
|
1990
1998
|
csp_systems_HTTPHeadersResultFactory;
|
|
1991
1999
|
|
|
2000
|
+
function csp_systems_AnalyticsSystemFactory(
|
|
2001
|
+
nativePointer: NativePointer,
|
|
2002
|
+
): NativeClassWrapper {
|
|
2003
|
+
return new Systems.AnalyticsSystem(nativePointer);
|
|
2004
|
+
}
|
|
2005
|
+
ProxyClassFactories["csp_systems_AnalyticsSystem"] =
|
|
2006
|
+
csp_systems_AnalyticsSystemFactory;
|
|
2007
|
+
|
|
1992
2008
|
function csp_systems_AlphaVideoMaterialFactory(
|
|
1993
2009
|
nativePointer: NativePointer,
|
|
1994
2010
|
): NativeClassWrapper {
|
|
@@ -23980,18 +23996,21 @@ export namespace Multiplayer {
|
|
|
23980
23996
|
}
|
|
23981
23997
|
|
|
23982
23998
|
/**
|
|
23983
|
-
* @description Constructor for CSPSceneDescription by deserializing a SceneDescription json file.
|
|
23984
|
-
* @param sceneDescriptionJson - The SceneDescription to
|
|
23999
|
+
* @description Constructor for CSPSceneDescription by deserializing a SceneDescription json file.
|
|
24000
|
+
* @param sceneDescriptionJson - The SceneDescription to parse.
|
|
24001
|
+
@warning The expression of this interface as a list is a wrapper generator workaround, so
|
|
24002
|
+
* whilst you may split your string into many elements, it is not advisable. You should prefer
|
|
24003
|
+
* inserting your entire string as the first, single, and only element of the list.
|
|
23985
24004
|
*/
|
|
23986
24005
|
static create_sceneDescriptionJson(
|
|
23987
|
-
sceneDescriptionJson: string
|
|
24006
|
+
sceneDescriptionJson: Common.List<string>,
|
|
23988
24007
|
): CSPSceneDescription {
|
|
23989
24008
|
var _ptr = Module._malloc(8);
|
|
23990
24009
|
Module.ccall(
|
|
23991
|
-
"
|
|
24010
|
+
"csp_multiplayer_CSPSceneDescription_Ctor_ListRC",
|
|
23992
24011
|
"void",
|
|
23993
|
-
["number", "
|
|
23994
|
-
[_ptr, sceneDescriptionJson],
|
|
24012
|
+
["number", "number"],
|
|
24013
|
+
[_ptr, sceneDescriptionJson.pointer],
|
|
23995
24014
|
);
|
|
23996
24015
|
var _nPtr = getNativePointer(_ptr);
|
|
23997
24016
|
|
|
@@ -26678,18 +26697,21 @@ export namespace Systems {
|
|
|
26678
26697
|
}
|
|
26679
26698
|
|
|
26680
26699
|
/**
|
|
26681
|
-
* @description Constructor for CSPSceneData by deserializing a SceneDescription json file.
|
|
26682
|
-
* @param sceneDescriptionJson - The SceneDescription to
|
|
26700
|
+
* @description Constructor for CSPSceneData by deserializing a SceneDescription json file.
|
|
26701
|
+
* @param sceneDescriptionJson - The SceneDescription to parse.
|
|
26702
|
+
@warning The expression of this interface as a list is a wrapper generator workaround, so
|
|
26703
|
+
* whilst you may split your string into many elements, it is not advisable. You should prefer
|
|
26704
|
+
* inserting your entire string as the first, single, and only element of the list.
|
|
26683
26705
|
*/
|
|
26684
26706
|
static create_sceneDescriptionJson(
|
|
26685
|
-
sceneDescriptionJson: string
|
|
26707
|
+
sceneDescriptionJson: Common.List<string>,
|
|
26686
26708
|
): CSPSceneData {
|
|
26687
26709
|
var _ptr = Module._malloc(8);
|
|
26688
26710
|
Module.ccall(
|
|
26689
|
-
"
|
|
26711
|
+
"csp_systems_CSPSceneData_Ctor_ListRC",
|
|
26690
26712
|
"void",
|
|
26691
|
-
["number", "
|
|
26692
|
-
[_ptr, sceneDescriptionJson],
|
|
26713
|
+
["number", "number"],
|
|
26714
|
+
[_ptr, sceneDescriptionJson.pointer],
|
|
26693
26715
|
);
|
|
26694
26716
|
var _nPtr = getNativePointer(_ptr);
|
|
26695
26717
|
|
|
@@ -27544,6 +27566,26 @@ export namespace Systems {
|
|
|
27544
27566
|
return _nPtr;
|
|
27545
27567
|
}
|
|
27546
27568
|
|
|
27569
|
+
/**
|
|
27570
|
+
* @description Retrieves the AnalyticsSystem system.
|
|
27571
|
+
* @return Pointer to the analyticssystem system class
|
|
27572
|
+
*/
|
|
27573
|
+
|
|
27574
|
+
getAnalyticsSystem(): Systems.AnalyticsSystem {
|
|
27575
|
+
var _ret = Module._malloc(8);
|
|
27576
|
+
|
|
27577
|
+
Module.ccall(
|
|
27578
|
+
"csp_systems_SystemsManager_GetAnalyticsSystem_AnalyticsSystemP",
|
|
27579
|
+
"void",
|
|
27580
|
+
["number", "number"],
|
|
27581
|
+
[_ret, this.pointer],
|
|
27582
|
+
);
|
|
27583
|
+
var _nPtr = new Systems.AnalyticsSystem(getNativePointer(_ret));
|
|
27584
|
+
Module._free(_ret);
|
|
27585
|
+
|
|
27586
|
+
return _nPtr;
|
|
27587
|
+
}
|
|
27588
|
+
|
|
27547
27589
|
getMultiplayerConnection(): Multiplayer.MultiplayerConnection {
|
|
27548
27590
|
var _ret = Module._malloc(8);
|
|
27549
27591
|
|
|
@@ -34218,6 +34260,62 @@ export namespace Systems {
|
|
|
34218
34260
|
}
|
|
34219
34261
|
}
|
|
34220
34262
|
|
|
34263
|
+
export namespace Systems {
|
|
34264
|
+
/**
|
|
34265
|
+
* @description Data structure for overrides to the default token options
|
|
34266
|
+
*/
|
|
34267
|
+
export class TokenOptions
|
|
34268
|
+
extends NativeClassWrapper
|
|
34269
|
+
implements INativeResource
|
|
34270
|
+
{
|
|
34271
|
+
/** @internal */
|
|
34272
|
+
constructor(pointer: NativePointer) {
|
|
34273
|
+
super(pointer);
|
|
34274
|
+
}
|
|
34275
|
+
|
|
34276
|
+
static create(): TokenOptions {
|
|
34277
|
+
var _ptr = Module._malloc(8);
|
|
34278
|
+
Module.ccall("csp_systems_TokenOptions_Ctor", "void", ["number"], [_ptr]);
|
|
34279
|
+
var _nPtr = getNativePointer(_ptr);
|
|
34280
|
+
|
|
34281
|
+
return new TokenOptions(_nPtr);
|
|
34282
|
+
}
|
|
34283
|
+
|
|
34284
|
+
delete(): void {
|
|
34285
|
+
if (this.ownsPointer && !this.disposed) {
|
|
34286
|
+
Module.ccall(
|
|
34287
|
+
"csp_systems_TokenOptions_Dtor",
|
|
34288
|
+
"void",
|
|
34289
|
+
["number"],
|
|
34290
|
+
[this.pointer],
|
|
34291
|
+
);
|
|
34292
|
+
|
|
34293
|
+
this.disposed = true;
|
|
34294
|
+
}
|
|
34295
|
+
}
|
|
34296
|
+
|
|
34297
|
+
get expiryLength(): string {
|
|
34298
|
+
let _result = Module.ccall(
|
|
34299
|
+
"csp_systems_TokenOptions__Get_ExpiryLength",
|
|
34300
|
+
"string",
|
|
34301
|
+
["number"],
|
|
34302
|
+
[this.pointer],
|
|
34303
|
+
);
|
|
34304
|
+
|
|
34305
|
+
return _result;
|
|
34306
|
+
}
|
|
34307
|
+
|
|
34308
|
+
set expiryLength(value: string) {
|
|
34309
|
+
Module.ccall(
|
|
34310
|
+
"csp_systems_TokenOptions__Set_ExpiryLength",
|
|
34311
|
+
"void",
|
|
34312
|
+
["number", "string"],
|
|
34313
|
+
[this.pointer, value],
|
|
34314
|
+
);
|
|
34315
|
+
}
|
|
34316
|
+
}
|
|
34317
|
+
}
|
|
34318
|
+
|
|
34221
34319
|
export namespace Systems {
|
|
34222
34320
|
/**
|
|
34223
34321
|
* @description A basic class abstraction for a user profile, including User Id and name, a display name, avatar information
|
|
@@ -48134,6 +48232,62 @@ export namespace Systems {
|
|
|
48134
48232
|
}
|
|
48135
48233
|
}
|
|
48136
48234
|
|
|
48235
|
+
export namespace Systems {
|
|
48236
|
+
/**
|
|
48237
|
+
@ingroup Analytics System
|
|
48238
|
+
* @description Public facing system that allows AnalyticsRecords to be sent to MCS.
|
|
48239
|
+
*/
|
|
48240
|
+
export class AnalyticsSystem extends Systems.SystemBase {
|
|
48241
|
+
/** @internal */
|
|
48242
|
+
constructor(pointer: NativePointer) {
|
|
48243
|
+
super(pointer);
|
|
48244
|
+
}
|
|
48245
|
+
|
|
48246
|
+
static fromSystemBase(
|
|
48247
|
+
baseInstance: Systems.SystemBase,
|
|
48248
|
+
): Systems.AnalyticsSystem {
|
|
48249
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
48250
|
+
return new Systems.AnalyticsSystem(
|
|
48251
|
+
new NativePointer(
|
|
48252
|
+
nativeClassWrapper.pointer,
|
|
48253
|
+
nativeClassWrapper.ownsPointer,
|
|
48254
|
+
),
|
|
48255
|
+
);
|
|
48256
|
+
}
|
|
48257
|
+
|
|
48258
|
+
sendAnalyticsEvent(
|
|
48259
|
+
productContextSection: string,
|
|
48260
|
+
category: string,
|
|
48261
|
+
interactionType: string,
|
|
48262
|
+
subCategory: string,
|
|
48263
|
+
metadata: Common.Map<string, string>,
|
|
48264
|
+
callback: (result: Systems.NullResult) => void,
|
|
48265
|
+
): void {
|
|
48266
|
+
var _callback = (_stateObject__: number, result) => {
|
|
48267
|
+
var _result = new Systems.NullResult(getNativePointer(result));
|
|
48268
|
+
callback(_result);
|
|
48269
|
+
};
|
|
48270
|
+
|
|
48271
|
+
var callbackPtr = Module.addFunction(_callback, "vii");
|
|
48272
|
+
|
|
48273
|
+
Module.ccall(
|
|
48274
|
+
"csp_systems_AnalyticsSystem_SendAnalyticsEvent_void_StringRC_StringRC_StringRC_StringRC_MapRC_NullResultCallback",
|
|
48275
|
+
"void",
|
|
48276
|
+
["number", "string", "string", "string", "string", "number", "number"],
|
|
48277
|
+
[
|
|
48278
|
+
this.pointer,
|
|
48279
|
+
productContextSection,
|
|
48280
|
+
category,
|
|
48281
|
+
interactionType,
|
|
48282
|
+
subCategory,
|
|
48283
|
+
metadata.pointer,
|
|
48284
|
+
callbackPtr,
|
|
48285
|
+
],
|
|
48286
|
+
);
|
|
48287
|
+
}
|
|
48288
|
+
}
|
|
48289
|
+
}
|
|
48290
|
+
|
|
48137
48291
|
export namespace Systems {
|
|
48138
48292
|
/**
|
|
48139
48293
|
@ingroup Asset System
|
|
@@ -60651,7 +60805,7 @@ export namespace Systems {
|
|
|
60651
60805
|
export namespace Systems {
|
|
60652
60806
|
/**
|
|
60653
60807
|
@ingroup User System
|
|
60654
|
-
* @description Public facing system that allows interfacing with Magnopus
|
|
60808
|
+
* @description Public facing system that allows interfacing with Magnopus Cloud Services' user service.
|
|
60655
60809
|
* Offers methods for creating accounts, authenticating, and retrieving user profiles.
|
|
60656
60810
|
*/
|
|
60657
60811
|
export class UserSystem extends Systems.SystemBase {
|
|
@@ -60722,7 +60876,7 @@ export namespace Systems {
|
|
|
60722
60876
|
}
|
|
60723
60877
|
|
|
60724
60878
|
/**
|
|
60725
|
-
* @description Log in to Magnopus
|
|
60879
|
+
* @description Log in to Magnopus Cloud Services services using a username-password or email-password combination.
|
|
60726
60880
|
* @param userName - Csp::common::string
|
|
60727
60881
|
* @param email - Csp::common::string
|
|
60728
60882
|
* @param password - Csp::common::string
|
|
@@ -60730,6 +60884,9 @@ export namespace Systems {
|
|
|
60730
60884
|
* connection to backend services, and thus be unable to receive messages or events. This session will also be unable to enter online spaces via
|
|
60731
60885
|
* a csp::multiplayer::OnlineRealtimeEngine. If true, this session will receive events, and may enter both online and offline spaces.
|
|
60732
60886
|
* @param userHasVerifiedAge - An optional bool to specify whether or not the user has verified that they are over 18
|
|
60887
|
+
* @param tokenOptions - Optional override for default token options.
|
|
60888
|
+
* The default token expiry length is configured by MCS and defaults to 30 minutes. Value must be less than the default expiry length, or it will
|
|
60889
|
+
* be ignored.
|
|
60733
60890
|
* @param callback - Callback to call when a response is received
|
|
60734
60891
|
@pre One of either UserName or Email must not be empty.
|
|
60735
60892
|
@pre Password must not be empty.
|
|
@@ -60741,6 +60898,7 @@ export namespace Systems {
|
|
|
60741
60898
|
password: string,
|
|
60742
60899
|
createMultiplayerConnection: boolean,
|
|
60743
60900
|
userHasVerifiedAge: boolean | null,
|
|
60901
|
+
tokenOptions: Systems.TokenOptions | null,
|
|
60744
60902
|
): Promise<Systems.LoginStateResult> {
|
|
60745
60903
|
var _resolve;
|
|
60746
60904
|
|
|
@@ -60775,7 +60933,7 @@ export namespace Systems {
|
|
|
60775
60933
|
}
|
|
60776
60934
|
|
|
60777
60935
|
Module.ccall(
|
|
60778
|
-
"
|
|
60936
|
+
"csp_systems_UserSystem_Login_void_StringRC_StringRC_StringRC_bool_boolRC_TokenOptionsRC_LoginStateResultCallback",
|
|
60779
60937
|
"void",
|
|
60780
60938
|
[
|
|
60781
60939
|
"number",
|
|
@@ -60786,6 +60944,7 @@ export namespace Systems {
|
|
|
60786
60944
|
"boolean",
|
|
60787
60945
|
"number",
|
|
60788
60946
|
"number",
|
|
60947
|
+
"number",
|
|
60789
60948
|
],
|
|
60790
60949
|
[
|
|
60791
60950
|
this.pointer,
|
|
@@ -60794,6 +60953,7 @@ export namespace Systems {
|
|
|
60794
60953
|
password,
|
|
60795
60954
|
createMultiplayerConnection,
|
|
60796
60955
|
userHasVerifiedAgePointer,
|
|
60956
|
+
tokenOptions != null ? tokenOptions.pointer : 0,
|
|
60797
60957
|
_callbackPtr,
|
|
60798
60958
|
0,
|
|
60799
60959
|
],
|
|
@@ -60814,6 +60974,9 @@ export namespace Systems {
|
|
|
60814
60974
|
* @param createMultiplayerConnection - Whether to create a multiplayer connection. If false, this session will not establish a SignalR
|
|
60815
60975
|
* connection to backend services, and thus be unable to receive messages or events. This session will also be unable to enter online spaces via
|
|
60816
60976
|
* a csp::multiplayer::OnlineRealtimeEngine. If true, this session will receive events, and may enter both online and offline spaces.
|
|
60977
|
+
* @param tokenOptions - Optional override for default token options.
|
|
60978
|
+
* The default token expiry length is configured by MCS and defaults to 30 minutes. Value must be less than the default expiry length, or it will
|
|
60979
|
+
* be ignored.
|
|
60817
60980
|
* @param callback - Callback when asynchronous task finishes
|
|
60818
60981
|
@pre UserId must not be empty.
|
|
60819
60982
|
*/
|
|
@@ -60822,6 +60985,7 @@ export namespace Systems {
|
|
|
60822
60985
|
userId: string,
|
|
60823
60986
|
refreshToken: string,
|
|
60824
60987
|
createMultiplayerConnection: boolean,
|
|
60988
|
+
tokenOptions: Systems.TokenOptions | null,
|
|
60825
60989
|
): Promise<Systems.LoginStateResult> {
|
|
60826
60990
|
var _resolve;
|
|
60827
60991
|
|
|
@@ -60846,14 +61010,15 @@ export namespace Systems {
|
|
|
60846
61010
|
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
60847
61011
|
|
|
60848
61012
|
Module.ccall(
|
|
60849
|
-
"
|
|
61013
|
+
"csp_systems_UserSystem_LoginWithRefreshToken_void_StringRC_StringRC_bool_TokenOptionsRC_LoginStateResultCallback",
|
|
60850
61014
|
"void",
|
|
60851
|
-
["number", "string", "string", "boolean", "number", "number"],
|
|
61015
|
+
["number", "string", "string", "boolean", "number", "number", "number"],
|
|
60852
61016
|
[
|
|
60853
61017
|
this.pointer,
|
|
60854
61018
|
userId,
|
|
60855
61019
|
refreshToken,
|
|
60856
61020
|
createMultiplayerConnection,
|
|
61021
|
+
tokenOptions != null ? tokenOptions.pointer : 0,
|
|
60857
61022
|
_callbackPtr,
|
|
60858
61023
|
0,
|
|
60859
61024
|
],
|
|
@@ -60863,17 +61028,21 @@ export namespace Systems {
|
|
|
60863
61028
|
}
|
|
60864
61029
|
|
|
60865
61030
|
/**
|
|
60866
|
-
* @description Log in to Magnopus
|
|
61031
|
+
* @description Log in to Magnopus Cloud Services as a guest.
|
|
60867
61032
|
* @param createMultiplayerConnection - Whether to create a multiplayer connection. If false, this session will not establish a SignalR
|
|
60868
61033
|
* connection to backend services, and thus be unable to receive messages or events. This session will also be unable to enter online spaces via
|
|
60869
61034
|
* a csp::multiplayer::OnlineRealtimeEngine. If true, this session will receive events, and may enter both online and offline spaces.
|
|
60870
61035
|
* @param userHasVerifiedAge - An optional bool to specify whether or not the user has verified that they are over 18
|
|
61036
|
+
* @param tokenOptions - Optional override for default token options.
|
|
61037
|
+
* The default token expiry length is configured by MCS and defaults to 30 minutes. Value must be less than the default expiry length, or it will
|
|
61038
|
+
* be ignored.
|
|
60871
61039
|
* @param callback - Callback to call when a response is received
|
|
60872
61040
|
*/
|
|
60873
61041
|
|
|
60874
61042
|
async loginAsGuest(
|
|
60875
61043
|
createMultiplayerConnection: boolean,
|
|
60876
61044
|
userHasVerifiedAge: boolean | null,
|
|
61045
|
+
tokenOptions: Systems.TokenOptions | null,
|
|
60877
61046
|
): Promise<Systems.LoginStateResult> {
|
|
60878
61047
|
var _resolve;
|
|
60879
61048
|
|
|
@@ -60908,13 +61077,14 @@ export namespace Systems {
|
|
|
60908
61077
|
}
|
|
60909
61078
|
|
|
60910
61079
|
Module.ccall(
|
|
60911
|
-
"
|
|
61080
|
+
"csp_systems_UserSystem_LoginAsGuest_void_bool_boolRC_TokenOptionsRC_LoginStateResultCallback",
|
|
60912
61081
|
"void",
|
|
60913
|
-
["number", "boolean", "boolean", "number", "number"],
|
|
61082
|
+
["number", "boolean", "boolean", "number", "number", "number"],
|
|
60914
61083
|
[
|
|
60915
61084
|
this.pointer,
|
|
60916
61085
|
createMultiplayerConnection,
|
|
60917
61086
|
userHasVerifiedAgePointer,
|
|
61087
|
+
tokenOptions != null ? tokenOptions.pointer : 0,
|
|
60918
61088
|
_callbackPtr,
|
|
60919
61089
|
0,
|
|
60920
61090
|
],
|
|
@@ -60927,6 +61097,67 @@ export namespace Systems {
|
|
|
60927
61097
|
return _promise;
|
|
60928
61098
|
}
|
|
60929
61099
|
|
|
61100
|
+
/**
|
|
61101
|
+
* @description Log in to Magnopus Cloud Services as a guest, allowing the backend to defer profile creation and perform other optimizations.
|
|
61102
|
+
* This login method is intended only for use with offline realtime engines, and as such does not start a multiplayer connection.
|
|
61103
|
+
@warning Unless you have a good reason, you should prefer the regular LoginAsGuest function. This method is designed for specific
|
|
61104
|
+
* non-multiplayer cases where the backend services are expecting a huge amount of anonymous profiles and wish to be allowed to buffer profile
|
|
61105
|
+
* creation. For this reason, there is an undefined delay after calling this function until the session can be thought to be conceptually "logged
|
|
61106
|
+
* in". Beware if you are calling user system methods after having logged in using this method. If you find yourself doing that, you may wish to
|
|
61107
|
+
* use the regular LoginAsGuest method instead.
|
|
61108
|
+
* @param userHasVerifiedAge - An optional bool to specify whether or not the user has verified that they are over 18
|
|
61109
|
+
* @param callback - Callback to call when a response is received
|
|
61110
|
+
*/
|
|
61111
|
+
|
|
61112
|
+
async loginAsGuestWithDeferredProfileCreation(
|
|
61113
|
+
userHasVerifiedAge: boolean | null,
|
|
61114
|
+
): Promise<Systems.LoginStateResult> {
|
|
61115
|
+
var _resolve;
|
|
61116
|
+
|
|
61117
|
+
var _promise = new Promise<Systems.LoginStateResult>((_r) => {
|
|
61118
|
+
_resolve = _r;
|
|
61119
|
+
});
|
|
61120
|
+
|
|
61121
|
+
var _callbackPtr: number;
|
|
61122
|
+
var _callback = (_stateObject__: number, result) => {
|
|
61123
|
+
var _resultPtr = getNativePointer(result);
|
|
61124
|
+
var _resultInstance = new Systems.LoginStateResult(_resultPtr);
|
|
61125
|
+
|
|
61126
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
61127
|
+
return;
|
|
61128
|
+
}
|
|
61129
|
+
|
|
61130
|
+
_resolve(_resultInstance);
|
|
61131
|
+
|
|
61132
|
+
Module.removeFunction(_callbackPtr);
|
|
61133
|
+
};
|
|
61134
|
+
|
|
61135
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
61136
|
+
|
|
61137
|
+
var userHasVerifiedAgePointer = 0;
|
|
61138
|
+
if (userHasVerifiedAge != null) {
|
|
61139
|
+
userHasVerifiedAgePointer = Module._malloc(4);
|
|
61140
|
+
Module.setValue(
|
|
61141
|
+
userHasVerifiedAgePointer,
|
|
61142
|
+
userHasVerifiedAge ? 1 : 0,
|
|
61143
|
+
"i32",
|
|
61144
|
+
);
|
|
61145
|
+
}
|
|
61146
|
+
|
|
61147
|
+
Module.ccall(
|
|
61148
|
+
"csp_systems_UserSystem_LoginAsGuestWithDeferredProfileCreation_void_boolRC_LoginStateResultCallback",
|
|
61149
|
+
"void",
|
|
61150
|
+
["number", "boolean", "number", "number"],
|
|
61151
|
+
[this.pointer, userHasVerifiedAgePointer, _callbackPtr, 0],
|
|
61152
|
+
);
|
|
61153
|
+
|
|
61154
|
+
if (userHasVerifiedAgePointer) {
|
|
61155
|
+
Module._free(userHasVerifiedAgePointer);
|
|
61156
|
+
}
|
|
61157
|
+
|
|
61158
|
+
return _promise;
|
|
61159
|
+
}
|
|
61160
|
+
|
|
60930
61161
|
/**
|
|
60931
61162
|
@ingroup Third Party Authentication
|
|
60932
61163
|
* @description As a Connected Spaces Platform user the 3rd party authentication flow consists of two steps, first calling
|
|
@@ -61009,7 +61240,10 @@ export namespace Systems {
|
|
|
61009
61240
|
* connection to backend services, and thus be unable to receive messages or events. This session will also be unable to enter online spaces via
|
|
61010
61241
|
* a csp::multiplayer::OnlineRealtimeEngine. If true, this session will receive events, and may enter both online and offline spaces.
|
|
61011
61242
|
* @param userHasVerifiedAge - An optional bool to specify whether or not the user has verified that they are over 18
|
|
61012
|
-
* @param
|
|
61243
|
+
* @param tokenOptions - Optional override for default token options.
|
|
61244
|
+
* The default token expiry length is configured by MCS and defaults to 30 minutes. Value must be less than the default expiry length, or it will
|
|
61245
|
+
* be ignored.
|
|
61246
|
+
* @param callback - Callback that contains the result of the magnopus cloud services authentication operation
|
|
61013
61247
|
*/
|
|
61014
61248
|
|
|
61015
61249
|
async loginToThirdPartyAuthenticationProvider(
|
|
@@ -61017,6 +61251,7 @@ export namespace Systems {
|
|
|
61017
61251
|
thirdPartyStateId: string,
|
|
61018
61252
|
createMultiplayerConnection: boolean,
|
|
61019
61253
|
userHasVerifiedAge: boolean | null,
|
|
61254
|
+
tokenOptions: Systems.TokenOptions | null,
|
|
61020
61255
|
): Promise<Systems.LoginStateResult> {
|
|
61021
61256
|
var _resolve;
|
|
61022
61257
|
|
|
@@ -61051,7 +61286,7 @@ export namespace Systems {
|
|
|
61051
61286
|
}
|
|
61052
61287
|
|
|
61053
61288
|
Module.ccall(
|
|
61054
|
-
"
|
|
61289
|
+
"csp_systems_UserSystem_LoginToThirdPartyAuthenticationProvider_void_StringRC_StringRC_bool_boolRC_TokenOptionsRC_LoginStateResultCallback",
|
|
61055
61290
|
"void",
|
|
61056
61291
|
[
|
|
61057
61292
|
"number",
|
|
@@ -61061,6 +61296,7 @@ export namespace Systems {
|
|
|
61061
61296
|
"boolean",
|
|
61062
61297
|
"number",
|
|
61063
61298
|
"number",
|
|
61299
|
+
"number",
|
|
61064
61300
|
],
|
|
61065
61301
|
[
|
|
61066
61302
|
this.pointer,
|
|
@@ -61068,6 +61304,7 @@ export namespace Systems {
|
|
|
61068
61304
|
thirdPartyStateId,
|
|
61069
61305
|
createMultiplayerConnection,
|
|
61070
61306
|
userHasVerifiedAgePointer,
|
|
61307
|
+
tokenOptions != null ? tokenOptions.pointer : 0,
|
|
61071
61308
|
_callbackPtr,
|
|
61072
61309
|
0,
|
|
61073
61310
|
],
|
|
@@ -61081,7 +61318,7 @@ export namespace Systems {
|
|
|
61081
61318
|
}
|
|
61082
61319
|
|
|
61083
61320
|
/**
|
|
61084
|
-
* @description Logout from Magnopus
|
|
61321
|
+
* @description Logout from Magnopus Cloud Services.
|
|
61085
61322
|
* @param callback - Callback to call when a response is received
|
|
61086
61323
|
*/
|
|
61087
61324
|
|
|
@@ -61124,7 +61361,7 @@ export namespace Systems {
|
|
|
61124
61361
|
* @param displayName - User display name associated with the new profile
|
|
61125
61362
|
* @param email - Email address associated with the new profile
|
|
61126
61363
|
* @param password - Password associated with the new profile
|
|
61127
|
-
* @param receiveNewsletter - `true` if the user wants to receive the Magnopus
|
|
61364
|
+
* @param receiveNewsletter - `true` if the user wants to receive the Magnopus Cloud Services newsletter
|
|
61128
61365
|
* @param userHasVerifiedAge - An optional bool to specify whether or not the user has verified that they are over 18
|
|
61129
61366
|
* @param redirectUrl - The url to redirect the user to after they have registered
|
|
61130
61367
|
* @param inviteToken - A token provided to the user that can be used to auto-confirm their account
|
|
@@ -61584,7 +61821,7 @@ export namespace Systems {
|
|
|
61584
61821
|
}
|
|
61585
61822
|
|
|
61586
61823
|
/**
|
|
61587
|
-
* @description Ping Magnopus
|
|
61824
|
+
* @description Ping Magnopus Cloud Services
|
|
61588
61825
|
* @param callback - Callback to call when a response is received
|
|
61589
61826
|
*/
|
|
61590
61827
|
|
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.
|
|
4
|
+
"version": "6.4.0+612",
|
|
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": {
|