connected-spaces-platform.web 5.10.0 → 5.12.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 +27 -13
- 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 +34 -17
- package/connectedspacesplatform.js +98 -42
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +204 -86
- package/package.json +1 -1
|
@@ -1521,6 +1521,14 @@ function csp_systems_AgoraUserTokenParamsFactory(
|
|
|
1521
1521
|
ProxyClassFactories["csp_systems_AgoraUserTokenParams"] =
|
|
1522
1522
|
csp_systems_AgoraUserTokenParamsFactory;
|
|
1523
1523
|
|
|
1524
|
+
function csp_systems_TokenInfoParamsFactory(
|
|
1525
|
+
nativePointer: NativePointer,
|
|
1526
|
+
): NativeClassWrapper {
|
|
1527
|
+
return new Systems.TokenInfoParams(nativePointer);
|
|
1528
|
+
}
|
|
1529
|
+
ProxyClassFactories["csp_systems_TokenInfoParams"] =
|
|
1530
|
+
csp_systems_TokenInfoParamsFactory;
|
|
1531
|
+
|
|
1524
1532
|
function csp_systems_BasicProfileFactory(
|
|
1525
1533
|
nativePointer: NativePointer,
|
|
1526
1534
|
): NativeClassWrapper {
|
|
@@ -5223,6 +5231,26 @@ export class CSPFoundation {
|
|
|
5223
5231
|
return _nPtr;
|
|
5224
5232
|
}
|
|
5225
5233
|
|
|
5234
|
+
/**
|
|
5235
|
+
* @description Create an EndpointsURIs object containing URIs to the various services needed by CSP.
|
|
5236
|
+
* @param endpointRootURI - URI to the root of the cloud services.
|
|
5237
|
+
* @return EndpointURIs class with deduced endpoint URIs.
|
|
5238
|
+
*/
|
|
5239
|
+
|
|
5240
|
+
static createEndpointsFromRoot(endpointRootURI: string): EndpointURIs {
|
|
5241
|
+
var _ret = Module._malloc(8);
|
|
5242
|
+
|
|
5243
|
+
Module.ccall(
|
|
5244
|
+
"csp_CSPFoundation_CreateEndpointsFromRoot_EndpointURIs_StringRC",
|
|
5245
|
+
"void",
|
|
5246
|
+
["number", "string"],
|
|
5247
|
+
[_ret, endpointRootURI],
|
|
5248
|
+
);
|
|
5249
|
+
var _nPtr = new EndpointURIs(getNativePointer(_ret));
|
|
5250
|
+
Module._free(_ret);
|
|
5251
|
+
return _nPtr;
|
|
5252
|
+
}
|
|
5253
|
+
|
|
5226
5254
|
/**
|
|
5227
5255
|
* @description Sets a class containing all relevant Client info currently set for Foundation.
|
|
5228
5256
|
* Used internally to generate ClientUserAgentString.
|
|
@@ -25100,32 +25128,6 @@ export namespace Multiplayer {
|
|
|
25100
25128
|
return _result;
|
|
25101
25129
|
}
|
|
25102
25130
|
|
|
25103
|
-
/**
|
|
25104
|
-
* @description Finds a component by the given id.
|
|
25105
|
-
* /// Searchs through all components of all entites so should be used sparingly.
|
|
25106
|
-
* /// @param Id The id of the component to find.
|
|
25107
|
-
* @return A pointer to the found component which can be nullptr if the component is not found.
|
|
25108
|
-
*/
|
|
25109
|
-
|
|
25110
|
-
findComponentById(id: number): Multiplayer.ComponentBase {
|
|
25111
|
-
assert(Number.isInteger(id));
|
|
25112
|
-
assert(id >= Limits.UINT16_MIN);
|
|
25113
|
-
assert(id <= Limits.UINT16_MAX);
|
|
25114
|
-
|
|
25115
|
-
var _ret = Module._malloc(8);
|
|
25116
|
-
|
|
25117
|
-
Module.ccall(
|
|
25118
|
-
"csp_multiplayer_SpaceEntitySystem_FindComponentById_ComponentBaseP_uint16_t",
|
|
25119
|
-
"void",
|
|
25120
|
-
["number", "number", "number"],
|
|
25121
|
-
[_ret, this.pointer, id],
|
|
25122
|
-
);
|
|
25123
|
-
var _nPtr = new Multiplayer.ComponentBase(getNativePointer(_ret));
|
|
25124
|
-
Module._free(_ret);
|
|
25125
|
-
|
|
25126
|
-
return _nPtr;
|
|
25127
|
-
}
|
|
25128
|
-
|
|
25129
25131
|
/**
|
|
25130
25132
|
* @description Retrieve the state of the patch rate limiter. If true, patches are limited for each individual entity to a fixed rate.
|
|
25131
25133
|
* @return True if enabled, false otherwise.
|
|
@@ -33272,6 +33274,135 @@ export namespace Systems {
|
|
|
33272
33274
|
}
|
|
33273
33275
|
}
|
|
33274
33276
|
|
|
33277
|
+
export namespace Systems {
|
|
33278
|
+
/**
|
|
33279
|
+
* @description Data structure for a custom service proxy posting, giving service name, operation name, set help and parameters
|
|
33280
|
+
*/
|
|
33281
|
+
export class TokenInfoParams
|
|
33282
|
+
extends NativeClassWrapper
|
|
33283
|
+
implements INativeResource
|
|
33284
|
+
{
|
|
33285
|
+
/** @internal */
|
|
33286
|
+
constructor(pointer: NativePointer) {
|
|
33287
|
+
super(pointer);
|
|
33288
|
+
}
|
|
33289
|
+
|
|
33290
|
+
static create(): TokenInfoParams {
|
|
33291
|
+
var _ptr = Module._malloc(8);
|
|
33292
|
+
Module.ccall(
|
|
33293
|
+
"csp_systems_TokenInfoParams_Ctor",
|
|
33294
|
+
"void",
|
|
33295
|
+
["number"],
|
|
33296
|
+
[_ptr],
|
|
33297
|
+
);
|
|
33298
|
+
var _nPtr = getNativePointer(_ptr);
|
|
33299
|
+
|
|
33300
|
+
return new TokenInfoParams(_nPtr);
|
|
33301
|
+
}
|
|
33302
|
+
|
|
33303
|
+
delete(): void {
|
|
33304
|
+
if (this.ownsPointer && !this.disposed) {
|
|
33305
|
+
Module.ccall(
|
|
33306
|
+
"csp_systems_TokenInfoParams_Dtor",
|
|
33307
|
+
"void",
|
|
33308
|
+
["number"],
|
|
33309
|
+
[this.pointer],
|
|
33310
|
+
);
|
|
33311
|
+
|
|
33312
|
+
this.disposed = true;
|
|
33313
|
+
}
|
|
33314
|
+
}
|
|
33315
|
+
|
|
33316
|
+
get serviceName(): string {
|
|
33317
|
+
let _result = Module.ccall(
|
|
33318
|
+
"csp_systems_TokenInfoParams__Get_ServiceName",
|
|
33319
|
+
"string",
|
|
33320
|
+
["number"],
|
|
33321
|
+
[this.pointer],
|
|
33322
|
+
);
|
|
33323
|
+
|
|
33324
|
+
return _result;
|
|
33325
|
+
}
|
|
33326
|
+
|
|
33327
|
+
set serviceName(value: string) {
|
|
33328
|
+
Module.ccall(
|
|
33329
|
+
"csp_systems_TokenInfoParams__Set_ServiceName",
|
|
33330
|
+
"void",
|
|
33331
|
+
["number", "string"],
|
|
33332
|
+
[this.pointer, value],
|
|
33333
|
+
);
|
|
33334
|
+
}
|
|
33335
|
+
|
|
33336
|
+
get operationName(): string {
|
|
33337
|
+
let _result = Module.ccall(
|
|
33338
|
+
"csp_systems_TokenInfoParams__Get_OperationName",
|
|
33339
|
+
"string",
|
|
33340
|
+
["number"],
|
|
33341
|
+
[this.pointer],
|
|
33342
|
+
);
|
|
33343
|
+
|
|
33344
|
+
return _result;
|
|
33345
|
+
}
|
|
33346
|
+
|
|
33347
|
+
set operationName(value: string) {
|
|
33348
|
+
Module.ccall(
|
|
33349
|
+
"csp_systems_TokenInfoParams__Set_OperationName",
|
|
33350
|
+
"void",
|
|
33351
|
+
["number", "string"],
|
|
33352
|
+
[this.pointer, value],
|
|
33353
|
+
);
|
|
33354
|
+
}
|
|
33355
|
+
|
|
33356
|
+
get setHelp(): boolean {
|
|
33357
|
+
let _result = Module.ccall(
|
|
33358
|
+
"csp_systems_TokenInfoParams__Get_SetHelp",
|
|
33359
|
+
"boolean",
|
|
33360
|
+
["number"],
|
|
33361
|
+
[this.pointer],
|
|
33362
|
+
);
|
|
33363
|
+
|
|
33364
|
+
return _result;
|
|
33365
|
+
}
|
|
33366
|
+
|
|
33367
|
+
set setHelp(value: boolean) {
|
|
33368
|
+
Module.ccall(
|
|
33369
|
+
"csp_systems_TokenInfoParams__Set_SetHelp",
|
|
33370
|
+
"void",
|
|
33371
|
+
["number", "boolean"],
|
|
33372
|
+
[this.pointer, value],
|
|
33373
|
+
);
|
|
33374
|
+
}
|
|
33375
|
+
|
|
33376
|
+
get parameters(): Common.Map<string, string> {
|
|
33377
|
+
const _ptr = Module._malloc(8);
|
|
33378
|
+
Module.ccall(
|
|
33379
|
+
"csp_systems_TokenInfoParams__Get_Parameters",
|
|
33380
|
+
"void",
|
|
33381
|
+
["number", "number"],
|
|
33382
|
+
[_ptr, this.pointer],
|
|
33383
|
+
);
|
|
33384
|
+
|
|
33385
|
+
const _nPtr = getNativePointer(_ptr);
|
|
33386
|
+
return new Common.Map<string, string>(
|
|
33387
|
+
_nPtr,
|
|
33388
|
+
StringFactory,
|
|
33389
|
+
"String",
|
|
33390
|
+
StringFactory,
|
|
33391
|
+
"String",
|
|
33392
|
+
);
|
|
33393
|
+
}
|
|
33394
|
+
|
|
33395
|
+
set parameters(value: Common.Map<string, string>) {
|
|
33396
|
+
Module.ccall(
|
|
33397
|
+
"csp_systems_TokenInfoParams__Set_Parameters",
|
|
33398
|
+
"void",
|
|
33399
|
+
["number", "number"],
|
|
33400
|
+
[this.pointer, value.pointer],
|
|
33401
|
+
);
|
|
33402
|
+
}
|
|
33403
|
+
}
|
|
33404
|
+
}
|
|
33405
|
+
|
|
33275
33406
|
export namespace Systems {
|
|
33276
33407
|
/**
|
|
33277
33408
|
* @description A basic class abstraction for a user profile, including User Id and name, a display name, avatar information
|
|
@@ -33386,26 +33517,6 @@ export namespace Systems {
|
|
|
33386
33517
|
[this.pointer, value],
|
|
33387
33518
|
);
|
|
33388
33519
|
}
|
|
33389
|
-
|
|
33390
|
-
get lastPlatform(): string {
|
|
33391
|
-
let _result = Module.ccall(
|
|
33392
|
-
"csp_systems_BasicProfile__Get_LastPlatform",
|
|
33393
|
-
"string",
|
|
33394
|
-
["number"],
|
|
33395
|
-
[this.pointer],
|
|
33396
|
-
);
|
|
33397
|
-
|
|
33398
|
-
return _result;
|
|
33399
|
-
}
|
|
33400
|
-
|
|
33401
|
-
set lastPlatform(value: string) {
|
|
33402
|
-
Module.ccall(
|
|
33403
|
-
"csp_systems_BasicProfile__Set_LastPlatform",
|
|
33404
|
-
"void",
|
|
33405
|
-
["number", "string"],
|
|
33406
|
-
[this.pointer, value],
|
|
33407
|
-
);
|
|
33408
|
-
}
|
|
33409
33520
|
}
|
|
33410
33521
|
}
|
|
33411
33522
|
|
|
@@ -43019,43 +43130,6 @@ export namespace Multiplayer {
|
|
|
43019
43130
|
);
|
|
43020
43131
|
}
|
|
43021
43132
|
|
|
43022
|
-
/**
|
|
43023
|
-
* @description Gets the Id of the mesh component that the video should be rendered to
|
|
43024
|
-
*/
|
|
43025
|
-
|
|
43026
|
-
getMeshComponentId(): number {
|
|
43027
|
-
let _result = Module.ccall(
|
|
43028
|
-
"csp_multiplayer_VideoPlayerSpaceComponent_GetMeshComponentIdC_uint16_t",
|
|
43029
|
-
"number",
|
|
43030
|
-
["number"],
|
|
43031
|
-
[this.pointer],
|
|
43032
|
-
);
|
|
43033
|
-
|
|
43034
|
-
const _unfixedValue = _result;
|
|
43035
|
-
let _fixedValue =
|
|
43036
|
-
_unfixedValue < 0 ? _unfixedValue + 2 ** 16 : _unfixedValue;
|
|
43037
|
-
_result = _fixedValue;
|
|
43038
|
-
|
|
43039
|
-
return _result;
|
|
43040
|
-
}
|
|
43041
|
-
|
|
43042
|
-
/**
|
|
43043
|
-
* @description Sets the Id of the mesh component that the video should be rendered to
|
|
43044
|
-
*/
|
|
43045
|
-
|
|
43046
|
-
setMeshComponentId(id: number): void {
|
|
43047
|
-
assert(Number.isInteger(id));
|
|
43048
|
-
assert(id >= Limits.UINT16_MIN);
|
|
43049
|
-
assert(id <= Limits.UINT16_MAX);
|
|
43050
|
-
|
|
43051
|
-
Module.ccall(
|
|
43052
|
-
"csp_multiplayer_VideoPlayerSpaceComponent_SetMeshComponentId_void_uint16_t",
|
|
43053
|
-
"void",
|
|
43054
|
-
["number", "number"],
|
|
43055
|
-
[this.pointer, id],
|
|
43056
|
-
);
|
|
43057
|
-
}
|
|
43058
|
-
|
|
43059
43133
|
/**
|
|
43060
43134
|
* \addtogroup IVisibleComponent
|
|
43061
43135
|
@{
|
|
@@ -56074,12 +56148,14 @@ export namespace Systems {
|
|
|
56074
56148
|
}
|
|
56075
56149
|
|
|
56076
56150
|
/**
|
|
56077
|
-
* @description Log in to Magnopus Connected Services services using a username-password or email-password combination.
|
|
56151
|
+
* @description Log in to Magnopus Connected Services services using a username-password or email-password combination.
|
|
56078
56152
|
* @param userName - Csp::common::string
|
|
56079
56153
|
* @param email - Csp::common::string
|
|
56080
56154
|
* @param password - Csp::common::string
|
|
56081
56155
|
* @param userHasVerifiedAge - An optional bool to specify whether or not the user has verified that they are over 18
|
|
56082
56156
|
* @param callback - Callback to call when a response is received
|
|
56157
|
+
@pre One of either UserName or Email must not be empty.
|
|
56158
|
+
@pre Password must not be empty.
|
|
56083
56159
|
*/
|
|
56084
56160
|
|
|
56085
56161
|
async login(
|
|
@@ -56143,11 +56219,12 @@ export namespace Systems {
|
|
|
56143
56219
|
}
|
|
56144
56220
|
|
|
56145
56221
|
/**
|
|
56146
|
-
* @description Resume a previous session for the associated user ID using a refresh token
|
|
56147
|
-
* The refresh token can be obtained after registering a callback with `SetNewLoginTokenReceivedCallback` and logging in regularly.
|
|
56222
|
+
* @description Resume a previous session for the associated user ID using a refresh token
|
|
56223
|
+
* The refresh token can be obtained after registering a callback with `SetNewLoginTokenReceivedCallback` and logging in regularly.
|
|
56148
56224
|
* @param userId - User ID for the previous session
|
|
56149
56225
|
* @param refreshToken - Refresh token to be used for refreshing the authentication token
|
|
56150
56226
|
* @param callback - Callback when asynchronous task finishes
|
|
56227
|
+
@pre UserId must not be empty.
|
|
56151
56228
|
*/
|
|
56152
56229
|
|
|
56153
56230
|
async loginWithRefreshToken(
|
|
@@ -56963,6 +57040,47 @@ export namespace Systems {
|
|
|
56963
57040
|
return _promise;
|
|
56964
57041
|
}
|
|
56965
57042
|
|
|
57043
|
+
/**
|
|
57044
|
+
* @description Post Service Proxy to perform specified operation of specified service
|
|
57045
|
+
* @param params - Params to specify service, operation, set help and parameters
|
|
57046
|
+
* @param callback - Callback to call when a response is received
|
|
57047
|
+
*/
|
|
57048
|
+
|
|
57049
|
+
async postServiceProxy(
|
|
57050
|
+
params: Systems.TokenInfoParams,
|
|
57051
|
+
): Promise<Systems.StringResult> {
|
|
57052
|
+
var _resolve;
|
|
57053
|
+
|
|
57054
|
+
var _promise = new Promise<Systems.StringResult>((_r) => {
|
|
57055
|
+
_resolve = _r;
|
|
57056
|
+
});
|
|
57057
|
+
|
|
57058
|
+
var _callbackPtr: number;
|
|
57059
|
+
var _callback = (_stateObject__: number, result) => {
|
|
57060
|
+
var _resultPtr = getNativePointer(result);
|
|
57061
|
+
var _resultInstance = new Systems.StringResult(_resultPtr);
|
|
57062
|
+
|
|
57063
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
57064
|
+
return;
|
|
57065
|
+
}
|
|
57066
|
+
|
|
57067
|
+
_resolve(_resultInstance);
|
|
57068
|
+
|
|
57069
|
+
Module.removeFunction(_callbackPtr);
|
|
57070
|
+
};
|
|
57071
|
+
|
|
57072
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
57073
|
+
|
|
57074
|
+
Module.ccall(
|
|
57075
|
+
"csp_systems_UserSystem_PostServiceProxy_void_TokenInfoParamsRC_StringResultCallback",
|
|
57076
|
+
"void",
|
|
57077
|
+
["number", "number", "number", "number"],
|
|
57078
|
+
[this.pointer, params.pointer, _callbackPtr, 0],
|
|
57079
|
+
);
|
|
57080
|
+
|
|
57081
|
+
return _promise;
|
|
57082
|
+
}
|
|
57083
|
+
|
|
56966
57084
|
/**
|
|
56967
57085
|
* @description Re-send user verification email
|
|
56968
57086
|
* @param inEmail - User's email address
|
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": "5.
|
|
4
|
+
"version": "5.12.0+586",
|
|
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": {
|