connected-spaces-platform.web 5.11.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 -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 +31 -15
- package/connectedspacesplatform.js +95 -35
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +198 -63
- 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
|
|
@@ -42999,43 +43130,6 @@ export namespace Multiplayer {
|
|
|
42999
43130
|
);
|
|
43000
43131
|
}
|
|
43001
43132
|
|
|
43002
|
-
/**
|
|
43003
|
-
* @description Gets the Id of the mesh component that the video should be rendered to
|
|
43004
|
-
*/
|
|
43005
|
-
|
|
43006
|
-
getMeshComponentId(): number {
|
|
43007
|
-
let _result = Module.ccall(
|
|
43008
|
-
"csp_multiplayer_VideoPlayerSpaceComponent_GetMeshComponentIdC_uint16_t",
|
|
43009
|
-
"number",
|
|
43010
|
-
["number"],
|
|
43011
|
-
[this.pointer],
|
|
43012
|
-
);
|
|
43013
|
-
|
|
43014
|
-
const _unfixedValue = _result;
|
|
43015
|
-
let _fixedValue =
|
|
43016
|
-
_unfixedValue < 0 ? _unfixedValue + 2 ** 16 : _unfixedValue;
|
|
43017
|
-
_result = _fixedValue;
|
|
43018
|
-
|
|
43019
|
-
return _result;
|
|
43020
|
-
}
|
|
43021
|
-
|
|
43022
|
-
/**
|
|
43023
|
-
* @description Sets the Id of the mesh component that the video should be rendered to
|
|
43024
|
-
*/
|
|
43025
|
-
|
|
43026
|
-
setMeshComponentId(id: number): void {
|
|
43027
|
-
assert(Number.isInteger(id));
|
|
43028
|
-
assert(id >= Limits.UINT16_MIN);
|
|
43029
|
-
assert(id <= Limits.UINT16_MAX);
|
|
43030
|
-
|
|
43031
|
-
Module.ccall(
|
|
43032
|
-
"csp_multiplayer_VideoPlayerSpaceComponent_SetMeshComponentId_void_uint16_t",
|
|
43033
|
-
"void",
|
|
43034
|
-
["number", "number"],
|
|
43035
|
-
[this.pointer, id],
|
|
43036
|
-
);
|
|
43037
|
-
}
|
|
43038
|
-
|
|
43039
43133
|
/**
|
|
43040
43134
|
* \addtogroup IVisibleComponent
|
|
43041
43135
|
@{
|
|
@@ -56946,6 +57040,47 @@ export namespace Systems {
|
|
|
56946
57040
|
return _promise;
|
|
56947
57041
|
}
|
|
56948
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
|
+
|
|
56949
57084
|
/**
|
|
56950
57085
|
* @description Re-send user verification email
|
|
56951
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": {
|