connected-spaces-platform.web 6.7.0 → 6.9.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 +93 -67
- 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 +255 -119
- package/connectedspacesplatform.js +563 -297
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +963 -517
- package/package.json +1 -1
|
@@ -365,6 +365,16 @@ function csp_multiplayer_LockTypeFactory(nativePointer) {
|
|
|
365
365
|
}
|
|
366
366
|
ProxyClassFactories["csp_multiplayer_LockType"] =
|
|
367
367
|
csp_multiplayer_LockTypeFactory;
|
|
368
|
+
function csp_multiplayer_AIChatbotPropertyKeysFactory(nativePointer) {
|
|
369
|
+
return nativePointer.pointer;
|
|
370
|
+
}
|
|
371
|
+
ProxyClassFactories["csp_multiplayer_AIChatbotPropertyKeys"] =
|
|
372
|
+
csp_multiplayer_AIChatbotPropertyKeysFactory;
|
|
373
|
+
function csp_multiplayer_AIChatbotVisualStateFactory(nativePointer) {
|
|
374
|
+
return nativePointer.pointer;
|
|
375
|
+
}
|
|
376
|
+
ProxyClassFactories["csp_multiplayer_AIChatbotVisualState"] =
|
|
377
|
+
csp_multiplayer_AIChatbotVisualStateFactory;
|
|
368
378
|
function csp_multiplayer_AnimatedModelActionsFactory(nativePointer) {
|
|
369
379
|
return nativePointer.pointer;
|
|
370
380
|
}
|
|
@@ -956,6 +966,16 @@ function csp_systems_TicketedEventVendorAuthInfoFactory(nativePointer) {
|
|
|
956
966
|
}
|
|
957
967
|
ProxyClassFactories["csp_systems_TicketedEventVendorAuthInfo"] =
|
|
958
968
|
csp_systems_TicketedEventVendorAuthInfoFactory;
|
|
969
|
+
function csp_systems_ExternalServicesOperationParamsFactory(nativePointer) {
|
|
970
|
+
return new Systems.ExternalServicesOperationParams(nativePointer);
|
|
971
|
+
}
|
|
972
|
+
ProxyClassFactories["csp_systems_ExternalServicesOperationParams"] =
|
|
973
|
+
csp_systems_ExternalServicesOperationParamsFactory;
|
|
974
|
+
function csp_systems_AgoraUserTokenParamsFactory(nativePointer) {
|
|
975
|
+
return new Systems.AgoraUserTokenParams(nativePointer);
|
|
976
|
+
}
|
|
977
|
+
ProxyClassFactories["csp_systems_AgoraUserTokenParams"] =
|
|
978
|
+
csp_systems_AgoraUserTokenParamsFactory;
|
|
959
979
|
function csp_systems_HotspotGroupFactory(nativePointer) {
|
|
960
980
|
return new Systems.HotspotGroup(nativePointer);
|
|
961
981
|
}
|
|
@@ -1045,16 +1065,6 @@ function csp_systems_LoginTokenInfoFactory(nativePointer) {
|
|
|
1045
1065
|
}
|
|
1046
1066
|
ProxyClassFactories["csp_systems_LoginTokenInfo"] =
|
|
1047
1067
|
csp_systems_LoginTokenInfoFactory;
|
|
1048
|
-
function csp_systems_AgoraUserTokenParamsFactory(nativePointer) {
|
|
1049
|
-
return new Systems.AgoraUserTokenParams(nativePointer);
|
|
1050
|
-
}
|
|
1051
|
-
ProxyClassFactories["csp_systems_AgoraUserTokenParams"] =
|
|
1052
|
-
csp_systems_AgoraUserTokenParamsFactory;
|
|
1053
|
-
function csp_systems_TokenInfoParamsFactory(nativePointer) {
|
|
1054
|
-
return new Systems.TokenInfoParams(nativePointer);
|
|
1055
|
-
}
|
|
1056
|
-
ProxyClassFactories["csp_systems_TokenInfoParams"] =
|
|
1057
|
-
csp_systems_TokenInfoParamsFactory;
|
|
1058
1068
|
function csp_systems_TokenOptionsFactory(nativePointer) {
|
|
1059
1069
|
return new Systems.TokenOptions(nativePointer);
|
|
1060
1070
|
}
|
|
@@ -1104,6 +1114,11 @@ function csp_multiplayer_OnlineRealtimeEngineFactory(nativePointer) {
|
|
|
1104
1114
|
}
|
|
1105
1115
|
ProxyClassFactories["csp_multiplayer_OnlineRealtimeEngine"] =
|
|
1106
1116
|
csp_multiplayer_OnlineRealtimeEngineFactory;
|
|
1117
|
+
function csp_multiplayer_AIChatbotSpaceComponentFactory(nativePointer) {
|
|
1118
|
+
return new Multiplayer.AIChatbotSpaceComponent(nativePointer);
|
|
1119
|
+
}
|
|
1120
|
+
ProxyClassFactories["csp_multiplayer_AIChatbotSpaceComponent"] =
|
|
1121
|
+
csp_multiplayer_AIChatbotSpaceComponentFactory;
|
|
1107
1122
|
function csp_multiplayer_AnimatedModelSpaceComponentFactory(nativePointer) {
|
|
1108
1123
|
return new Multiplayer.AnimatedModelSpaceComponent(nativePointer);
|
|
1109
1124
|
}
|
|
@@ -1331,6 +1346,11 @@ function csp_systems_AssetCollectionCountResultFactory(nativePointer) {
|
|
|
1331
1346
|
}
|
|
1332
1347
|
ProxyClassFactories["csp_systems_AssetCollectionCountResult"] =
|
|
1333
1348
|
csp_systems_AssetCollectionCountResultFactory;
|
|
1349
|
+
function csp_systems_AssetCollectionsCopyResultFactory(nativePointer) {
|
|
1350
|
+
return new Systems.AssetCollectionsCopyResult(nativePointer);
|
|
1351
|
+
}
|
|
1352
|
+
ProxyClassFactories["csp_systems_AssetCollectionsCopyResult"] =
|
|
1353
|
+
csp_systems_AssetCollectionsCopyResultFactory;
|
|
1334
1354
|
function csp_systems_AssetSystemFactory(nativePointer) {
|
|
1335
1355
|
return new Systems.AssetSystem(nativePointer);
|
|
1336
1356
|
}
|
|
@@ -1425,6 +1445,21 @@ function csp_systems_EventTicketingSystemFactory(nativePointer) {
|
|
|
1425
1445
|
}
|
|
1426
1446
|
ProxyClassFactories["csp_systems_EventTicketingSystem"] =
|
|
1427
1447
|
csp_systems_EventTicketingSystemFactory;
|
|
1448
|
+
function csp_systems_ExternalServiceInvocationResultFactory(nativePointer) {
|
|
1449
|
+
return new Systems.ExternalServiceInvocationResult(nativePointer);
|
|
1450
|
+
}
|
|
1451
|
+
ProxyClassFactories["csp_systems_ExternalServiceInvocationResult"] =
|
|
1452
|
+
csp_systems_ExternalServiceInvocationResultFactory;
|
|
1453
|
+
function csp_systems_GetAgoraTokenResultFactory(nativePointer) {
|
|
1454
|
+
return new Systems.GetAgoraTokenResult(nativePointer);
|
|
1455
|
+
}
|
|
1456
|
+
ProxyClassFactories["csp_systems_GetAgoraTokenResult"] =
|
|
1457
|
+
csp_systems_GetAgoraTokenResultFactory;
|
|
1458
|
+
function csp_systems_ExternalServiceProxySystemFactory(nativePointer) {
|
|
1459
|
+
return new Systems.ExternalServiceProxySystem(nativePointer);
|
|
1460
|
+
}
|
|
1461
|
+
ProxyClassFactories["csp_systems_ExternalServiceProxySystem"] =
|
|
1462
|
+
csp_systems_ExternalServiceProxySystemFactory;
|
|
1428
1463
|
function csp_systems_GraphQLResultFactory(nativePointer) {
|
|
1429
1464
|
return new Systems.GraphQLResult(nativePointer);
|
|
1430
1465
|
}
|
|
@@ -2273,9 +2308,10 @@ export var Systems;
|
|
|
2273
2308
|
ComponentType[ComponentType["Hotspot"] = 26] = "Hotspot";
|
|
2274
2309
|
ComponentType[ComponentType["CinematicCamera"] = 27] = "CinematicCamera";
|
|
2275
2310
|
ComponentType[ComponentType["ScreenSharing"] = 28] = "ScreenSharing";
|
|
2311
|
+
ComponentType[ComponentType["AIChatbot"] = 29] = "AIChatbot";
|
|
2276
2312
|
//,
|
|
2277
|
-
ComponentType[ComponentType["spare"] =
|
|
2278
|
-
ComponentType[ComponentType["values"] =
|
|
2313
|
+
ComponentType[ComponentType["spare"] = 30] = "spare";
|
|
2314
|
+
ComponentType[ComponentType["values"] = 31] = "values";
|
|
2279
2315
|
ComponentType[ComponentType["Delete"] = 56] = "Delete";
|
|
2280
2316
|
})(ComponentType = Multiplayer.ComponentType || (Multiplayer.ComponentType = {}));
|
|
2281
2317
|
})(Multiplayer || (Multiplayer = {}));
|
|
@@ -2332,9 +2368,8 @@ export var Systems;
|
|
|
2332
2368
|
SpaceEntityUpdateFlags[SpaceEntityUpdateFlags["UPDATE_FLAGS_COMPONENTS"] = 16] = "UPDATE_FLAGS_COMPONENTS";
|
|
2333
2369
|
SpaceEntityUpdateFlags[SpaceEntityUpdateFlags["UPDATE_FLAGS_SELECTION_ID"] = 32] = "UPDATE_FLAGS_SELECTION_ID";
|
|
2334
2370
|
SpaceEntityUpdateFlags[SpaceEntityUpdateFlags["UPDATE_FLAGS_THIRD_PARTY_REF"] = 64] = "UPDATE_FLAGS_THIRD_PARTY_REF";
|
|
2335
|
-
SpaceEntityUpdateFlags[SpaceEntityUpdateFlags["
|
|
2336
|
-
SpaceEntityUpdateFlags[SpaceEntityUpdateFlags["
|
|
2337
|
-
SpaceEntityUpdateFlags[SpaceEntityUpdateFlags["UPDATE_FLAGS_LOCK_TYPE"] = 512] = "UPDATE_FLAGS_LOCK_TYPE";
|
|
2371
|
+
SpaceEntityUpdateFlags[SpaceEntityUpdateFlags["UPDATE_FLAGS_PARENT"] = 128] = "UPDATE_FLAGS_PARENT";
|
|
2372
|
+
SpaceEntityUpdateFlags[SpaceEntityUpdateFlags["UPDATE_FLAGS_LOCK_TYPE"] = 256] = "UPDATE_FLAGS_LOCK_TYPE";
|
|
2338
2373
|
})(SpaceEntityUpdateFlags = Multiplayer.SpaceEntityUpdateFlags || (Multiplayer.SpaceEntityUpdateFlags = {}));
|
|
2339
2374
|
})(Multiplayer || (Multiplayer = {}));
|
|
2340
2375
|
(function (Multiplayer) {
|
|
@@ -2377,6 +2412,33 @@ export var Systems;
|
|
|
2377
2412
|
LockType[LockType["UserAgnostic"] = 1] = "UserAgnostic";
|
|
2378
2413
|
})(LockType = Multiplayer.LockType || (Multiplayer.LockType = {}));
|
|
2379
2414
|
})(Multiplayer || (Multiplayer = {}));
|
|
2415
|
+
(function (Multiplayer) {
|
|
2416
|
+
/**
|
|
2417
|
+
* @description Enumerates the list of properties that can be replicated for a AI chatbot component.
|
|
2418
|
+
*/
|
|
2419
|
+
let AIChatbotPropertyKeys;
|
|
2420
|
+
(function (AIChatbotPropertyKeys) {
|
|
2421
|
+
AIChatbotPropertyKeys[AIChatbotPropertyKeys["Position"] = 0] = "Position";
|
|
2422
|
+
AIChatbotPropertyKeys[AIChatbotPropertyKeys["Voice"] = 1] = "Voice";
|
|
2423
|
+
AIChatbotPropertyKeys[AIChatbotPropertyKeys["GuardrailAssetCollectionId"] = 2] = "GuardrailAssetCollectionId";
|
|
2424
|
+
AIChatbotPropertyKeys[AIChatbotPropertyKeys["VisualState"] = 3] = "VisualState";
|
|
2425
|
+
AIChatbotPropertyKeys[AIChatbotPropertyKeys["Num"] = 4] = "Num";
|
|
2426
|
+
})(AIChatbotPropertyKeys = Multiplayer.AIChatbotPropertyKeys || (Multiplayer.AIChatbotPropertyKeys = {}));
|
|
2427
|
+
})(Multiplayer || (Multiplayer = {}));
|
|
2428
|
+
(function (Multiplayer) {
|
|
2429
|
+
/**
|
|
2430
|
+
* @description Enumerates the list of potential visual states that can be replicated for a AI chatbot component.
|
|
2431
|
+
*/
|
|
2432
|
+
let AIChatbotVisualState;
|
|
2433
|
+
(function (AIChatbotVisualState) {
|
|
2434
|
+
AIChatbotVisualState[AIChatbotVisualState["Waiting"] = 0] = "Waiting";
|
|
2435
|
+
AIChatbotVisualState[AIChatbotVisualState["Listening"] = 1] = "Listening";
|
|
2436
|
+
AIChatbotVisualState[AIChatbotVisualState["Thinking"] = 2] = "Thinking";
|
|
2437
|
+
AIChatbotVisualState[AIChatbotVisualState["Speaking"] = 3] = "Speaking";
|
|
2438
|
+
AIChatbotVisualState[AIChatbotVisualState["Unknown"] = 4] = "Unknown";
|
|
2439
|
+
AIChatbotVisualState[AIChatbotVisualState["Num"] = 5] = "Num";
|
|
2440
|
+
})(AIChatbotVisualState = Multiplayer.AIChatbotVisualState || (Multiplayer.AIChatbotVisualState = {}));
|
|
2441
|
+
})(Multiplayer || (Multiplayer = {}));
|
|
2380
2442
|
(function (Multiplayer) {
|
|
2381
2443
|
/**
|
|
2382
2444
|
* @description Enumerates the actions that can be performed on an animated model component.
|
|
@@ -9397,6 +9459,36 @@ export class CSPFoundation {
|
|
|
9397
9459
|
this.disposed = true;
|
|
9398
9460
|
}
|
|
9399
9461
|
}
|
|
9462
|
+
/**
|
|
9463
|
+
* @description Copy constructor
|
|
9464
|
+
* @param other - The value to copy.
|
|
9465
|
+
*/
|
|
9466
|
+
static create_other(other) {
|
|
9467
|
+
var _ptr = Module._malloc(8);
|
|
9468
|
+
Module.ccall("csp_common_ReplicatedValue_Ctor_ReplicatedValueRC", "void", ["number", "number"], [_ptr, other.pointer]);
|
|
9469
|
+
var _nPtr = getNativePointer(_ptr);
|
|
9470
|
+
return new ReplicatedValue(_nPtr);
|
|
9471
|
+
}
|
|
9472
|
+
/**
|
|
9473
|
+
* @description Copy assignment operator overload.
|
|
9474
|
+
* @param inValue - Other replicated value to set from.
|
|
9475
|
+
*/
|
|
9476
|
+
// operator=
|
|
9477
|
+
/**
|
|
9478
|
+
* @description Move assignment operator overload.
|
|
9479
|
+
* @param inValue - Other replicated value to move from.
|
|
9480
|
+
*/
|
|
9481
|
+
// operator=
|
|
9482
|
+
/**
|
|
9483
|
+
* @description Equality operator overload.
|
|
9484
|
+
* @param replicatedValue - Other value to compare to.
|
|
9485
|
+
*/
|
|
9486
|
+
// operator==
|
|
9487
|
+
/**
|
|
9488
|
+
* @description Inequality operator overload.
|
|
9489
|
+
* @param replicatedValue - Other value to compare to.
|
|
9490
|
+
*/
|
|
9491
|
+
// operator!=
|
|
9400
9492
|
/**
|
|
9401
9493
|
* @description Gets the type of replicated value.
|
|
9402
9494
|
* @return Enum representing all supported replication base types.
|
|
@@ -10573,15 +10665,15 @@ export class CSPFoundation {
|
|
|
10573
10665
|
* @param inLogCallback - The callback to execute when a log occurs.
|
|
10574
10666
|
*/
|
|
10575
10667
|
setLogCallback(callback) {
|
|
10576
|
-
var _callback = (_stateObject__, arg1) => {
|
|
10668
|
+
var _callback = (_stateObject__, arg1, arg2) => {
|
|
10577
10669
|
{
|
|
10578
|
-
const _stringValue = Module.UTF8ToString(
|
|
10579
|
-
free(
|
|
10580
|
-
|
|
10670
|
+
const _stringValue = Module.UTF8ToString(arg2);
|
|
10671
|
+
free(arg2);
|
|
10672
|
+
arg2 = _stringValue;
|
|
10581
10673
|
}
|
|
10582
|
-
callback(arg1);
|
|
10674
|
+
callback(arg1, arg2);
|
|
10583
10675
|
};
|
|
10584
|
-
var _callbackPtr = Module.addFunction(_callback, "
|
|
10676
|
+
var _callbackPtr = Module.addFunction(_callback, "viii");
|
|
10585
10677
|
Module.ccall("csp_common_LogSystem_SetLogCallback_void_LogCallbackHandler", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
|
|
10586
10678
|
}
|
|
10587
10679
|
/**
|
|
@@ -11404,23 +11496,6 @@ export class CSPFoundation {
|
|
|
11404
11496
|
let _result = Module.ccall("csp_multiplayer_SpaceEntity_SetThirdPartyRef_bool_StringRC", "boolean", ["number", "string"], [this.pointer, thirdPartyRef]);
|
|
11405
11497
|
return _result;
|
|
11406
11498
|
}
|
|
11407
|
-
/**
|
|
11408
|
-
* @description Get the third party platform type of this entity.
|
|
11409
|
-
* @return A string representing third party platform type set for this entity.
|
|
11410
|
-
*/
|
|
11411
|
-
getThirdPartyPlatformType() {
|
|
11412
|
-
let _result = Module.ccall("csp_multiplayer_SpaceEntity_GetThirdPartyPlatformTypeC_EThirdPartyPlatform", "number", ["number"], [this.pointer]);
|
|
11413
|
-
return _result;
|
|
11414
|
-
}
|
|
11415
|
-
/**
|
|
11416
|
-
* @description Set third party platform type for this entity.
|
|
11417
|
-
* @param inThirdPartyPlatformType - The third party platform type to set.
|
|
11418
|
-
* @return Whether a new value was set, may fail if not modifiable, or if a dirty property is already set to this value.
|
|
11419
|
-
*/
|
|
11420
|
-
setThirdPartyPlatformType(thirdPartyPlatformType) {
|
|
11421
|
-
let _result = Module.ccall("csp_multiplayer_SpaceEntity_SetThirdPartyPlatformType_bool_EThirdPartyPlatformC", "boolean", ["number", "number"], [this.pointer, thirdPartyPlatformType]);
|
|
11422
|
-
return _result;
|
|
11423
|
-
}
|
|
11424
11499
|
/**
|
|
11425
11500
|
* @description Get the type of the Entity.
|
|
11426
11501
|
* @return The SpaceEntityType enum value.
|
|
@@ -12670,6 +12745,17 @@ export class CSPFoundation {
|
|
|
12670
12745
|
Module._free(_ret);
|
|
12671
12746
|
return _nPtr;
|
|
12672
12747
|
}
|
|
12748
|
+
/**
|
|
12749
|
+
* @description Retrieves external services proxy system.
|
|
12750
|
+
* @return Pointer to the external services proxy system class.
|
|
12751
|
+
*/
|
|
12752
|
+
getExternalServicesProxySystem() {
|
|
12753
|
+
var _ret = Module._malloc(8);
|
|
12754
|
+
Module.ccall("csp_systems_SystemsManager_GetExternalServicesProxySystem_ExternalServiceProxySystemP", "void", ["number", "number"], [_ret, this.pointer]);
|
|
12755
|
+
var _nPtr = new Systems.ExternalServiceProxySystem(getNativePointer(_ret));
|
|
12756
|
+
Module._free(_ret);
|
|
12757
|
+
return _nPtr;
|
|
12758
|
+
}
|
|
12673
12759
|
getMultiplayerConnection() {
|
|
12674
12760
|
var _ret = Module._malloc(8);
|
|
12675
12761
|
Module.ccall("csp_systems_SystemsManager_GetMultiplayerConnection_MultiplayerConnectionP", "void", ["number", "number"], [_ret, this.pointer]);
|
|
@@ -14264,6 +14350,142 @@ export class CSPFoundation {
|
|
|
14264
14350
|
}
|
|
14265
14351
|
Systems.TicketedEventVendorAuthInfo = TicketedEventVendorAuthInfo;
|
|
14266
14352
|
})(Systems || (Systems = {}));
|
|
14353
|
+
(function (Systems) {
|
|
14354
|
+
/**
|
|
14355
|
+
* *******************************************************************************************************************
|
|
14356
|
+
* @description Data structure used when making invocations of the external service proxy.
|
|
14357
|
+
*/
|
|
14358
|
+
class ExternalServicesOperationParams extends NativeClassWrapper {
|
|
14359
|
+
/** @internal */
|
|
14360
|
+
constructor(pointer) {
|
|
14361
|
+
super(pointer);
|
|
14362
|
+
}
|
|
14363
|
+
static create() {
|
|
14364
|
+
var _ptr = Module._malloc(8);
|
|
14365
|
+
Module.ccall("csp_systems_ExternalServicesOperationParams_Ctor", "void", ["number"], [_ptr]);
|
|
14366
|
+
var _nPtr = getNativePointer(_ptr);
|
|
14367
|
+
return new ExternalServicesOperationParams(_nPtr);
|
|
14368
|
+
}
|
|
14369
|
+
delete() {
|
|
14370
|
+
if (this.ownsPointer && !this.disposed) {
|
|
14371
|
+
Module.ccall("csp_systems_ExternalServicesOperationParams_Dtor", "void", ["number"], [this.pointer]);
|
|
14372
|
+
this.disposed = true;
|
|
14373
|
+
}
|
|
14374
|
+
}
|
|
14375
|
+
get serviceName() {
|
|
14376
|
+
let _result = Module.ccall("csp_systems_ExternalServicesOperationParams__Get_ServiceName", "string", ["number"], [this.pointer]);
|
|
14377
|
+
return _result;
|
|
14378
|
+
}
|
|
14379
|
+
set serviceName(value) {
|
|
14380
|
+
Module.ccall("csp_systems_ExternalServicesOperationParams__Set_ServiceName", "void", ["number", "string"], [this.pointer, value]);
|
|
14381
|
+
}
|
|
14382
|
+
get operationName() {
|
|
14383
|
+
let _result = Module.ccall("csp_systems_ExternalServicesOperationParams__Get_OperationName", "string", ["number"], [this.pointer]);
|
|
14384
|
+
return _result;
|
|
14385
|
+
}
|
|
14386
|
+
set operationName(value) {
|
|
14387
|
+
Module.ccall("csp_systems_ExternalServicesOperationParams__Set_OperationName", "void", ["number", "string"], [this.pointer, value]);
|
|
14388
|
+
}
|
|
14389
|
+
get setHelp() {
|
|
14390
|
+
let _result = Module.ccall("csp_systems_ExternalServicesOperationParams__Get_SetHelp", "boolean", ["number"], [this.pointer]);
|
|
14391
|
+
return _result;
|
|
14392
|
+
}
|
|
14393
|
+
set setHelp(value) {
|
|
14394
|
+
Module.ccall("csp_systems_ExternalServicesOperationParams__Set_SetHelp", "void", ["number", "boolean"], [this.pointer, value]);
|
|
14395
|
+
}
|
|
14396
|
+
get parameters() {
|
|
14397
|
+
const _ptr = Module._malloc(8);
|
|
14398
|
+
Module.ccall("csp_systems_ExternalServicesOperationParams__Get_Parameters", "void", ["number", "number"], [_ptr, this.pointer]);
|
|
14399
|
+
const _nPtr = getNativePointer(_ptr);
|
|
14400
|
+
return new Common.Map(_nPtr, StringFactory, "String", StringFactory, "String");
|
|
14401
|
+
}
|
|
14402
|
+
set parameters(value) {
|
|
14403
|
+
Module.ccall("csp_systems_ExternalServicesOperationParams__Set_Parameters", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
14404
|
+
}
|
|
14405
|
+
}
|
|
14406
|
+
Systems.ExternalServicesOperationParams = ExternalServicesOperationParams;
|
|
14407
|
+
})(Systems || (Systems = {}));
|
|
14408
|
+
(function (Systems) {
|
|
14409
|
+
/**
|
|
14410
|
+
* *******************************************************************************************************************
|
|
14411
|
+
* @description Specialised data structure that can be used to retrieve an Agora user token via the proxy service.
|
|
14412
|
+
*/
|
|
14413
|
+
class AgoraUserTokenParams extends NativeClassWrapper {
|
|
14414
|
+
/** @internal */
|
|
14415
|
+
constructor(pointer) {
|
|
14416
|
+
super(pointer);
|
|
14417
|
+
}
|
|
14418
|
+
static create() {
|
|
14419
|
+
var _ptr = Module._malloc(8);
|
|
14420
|
+
Module.ccall("csp_systems_AgoraUserTokenParams_Ctor", "void", ["number"], [_ptr]);
|
|
14421
|
+
var _nPtr = getNativePointer(_ptr);
|
|
14422
|
+
return new AgoraUserTokenParams(_nPtr);
|
|
14423
|
+
}
|
|
14424
|
+
delete() {
|
|
14425
|
+
if (this.ownsPointer && !this.disposed) {
|
|
14426
|
+
Module.ccall("csp_systems_AgoraUserTokenParams_Dtor", "void", ["number"], [this.pointer]);
|
|
14427
|
+
this.disposed = true;
|
|
14428
|
+
}
|
|
14429
|
+
}
|
|
14430
|
+
get agoraUserId() {
|
|
14431
|
+
let _result = Module.ccall("csp_systems_AgoraUserTokenParams__Get_AgoraUserId", "string", ["number"], [this.pointer]);
|
|
14432
|
+
return _result;
|
|
14433
|
+
}
|
|
14434
|
+
set agoraUserId(value) {
|
|
14435
|
+
Module.ccall("csp_systems_AgoraUserTokenParams__Set_AgoraUserId", "void", ["number", "string"], [this.pointer, value]);
|
|
14436
|
+
}
|
|
14437
|
+
get channelName() {
|
|
14438
|
+
let _result = Module.ccall("csp_systems_AgoraUserTokenParams__Get_ChannelName", "string", ["number"], [this.pointer]);
|
|
14439
|
+
return _result;
|
|
14440
|
+
}
|
|
14441
|
+
set channelName(value) {
|
|
14442
|
+
Module.ccall("csp_systems_AgoraUserTokenParams__Set_ChannelName", "void", ["number", "string"], [this.pointer, value]);
|
|
14443
|
+
}
|
|
14444
|
+
get referenceId() {
|
|
14445
|
+
let _result = Module.ccall("csp_systems_AgoraUserTokenParams__Get_ReferenceId", "string", ["number"], [this.pointer]);
|
|
14446
|
+
return _result;
|
|
14447
|
+
}
|
|
14448
|
+
set referenceId(value) {
|
|
14449
|
+
Module.ccall("csp_systems_AgoraUserTokenParams__Set_ReferenceId", "void", ["number", "string"], [this.pointer, value]);
|
|
14450
|
+
}
|
|
14451
|
+
get lifespan() {
|
|
14452
|
+
let _result = Module.ccall("csp_systems_AgoraUserTokenParams__Get_Lifespan", "number", ["number"], [this.pointer]);
|
|
14453
|
+
return _result;
|
|
14454
|
+
}
|
|
14455
|
+
set lifespan(value) {
|
|
14456
|
+
Module.ccall("csp_systems_AgoraUserTokenParams__Set_Lifespan", "void", ["number", "number"], [this.pointer, value]);
|
|
14457
|
+
}
|
|
14458
|
+
get readOnly() {
|
|
14459
|
+
let _result = Module.ccall("csp_systems_AgoraUserTokenParams__Get_ReadOnly", "boolean", ["number"], [this.pointer]);
|
|
14460
|
+
return _result;
|
|
14461
|
+
}
|
|
14462
|
+
set readOnly(value) {
|
|
14463
|
+
Module.ccall("csp_systems_AgoraUserTokenParams__Set_ReadOnly", "void", ["number", "boolean"], [this.pointer, value]);
|
|
14464
|
+
}
|
|
14465
|
+
get shareAudio() {
|
|
14466
|
+
let _result = Module.ccall("csp_systems_AgoraUserTokenParams__Get_ShareAudio", "boolean", ["number"], [this.pointer]);
|
|
14467
|
+
return _result;
|
|
14468
|
+
}
|
|
14469
|
+
set shareAudio(value) {
|
|
14470
|
+
Module.ccall("csp_systems_AgoraUserTokenParams__Set_ShareAudio", "void", ["number", "boolean"], [this.pointer, value]);
|
|
14471
|
+
}
|
|
14472
|
+
get shareVideo() {
|
|
14473
|
+
let _result = Module.ccall("csp_systems_AgoraUserTokenParams__Get_ShareVideo", "boolean", ["number"], [this.pointer]);
|
|
14474
|
+
return _result;
|
|
14475
|
+
}
|
|
14476
|
+
set shareVideo(value) {
|
|
14477
|
+
Module.ccall("csp_systems_AgoraUserTokenParams__Set_ShareVideo", "void", ["number", "boolean"], [this.pointer, value]);
|
|
14478
|
+
}
|
|
14479
|
+
get shareScreen() {
|
|
14480
|
+
let _result = Module.ccall("csp_systems_AgoraUserTokenParams__Get_ShareScreen", "boolean", ["number"], [this.pointer]);
|
|
14481
|
+
return _result;
|
|
14482
|
+
}
|
|
14483
|
+
set shareScreen(value) {
|
|
14484
|
+
Module.ccall("csp_systems_AgoraUserTokenParams__Set_ShareScreen", "void", ["number", "boolean"], [this.pointer, value]);
|
|
14485
|
+
}
|
|
14486
|
+
}
|
|
14487
|
+
Systems.AgoraUserTokenParams = AgoraUserTokenParams;
|
|
14488
|
+
})(Systems || (Systems = {}));
|
|
14267
14489
|
(function (Systems) {
|
|
14268
14490
|
/**
|
|
14269
14491
|
@ingroup HotspotSequence System
|
|
@@ -15356,209 +15578,75 @@ export class CSPFoundation {
|
|
|
15356
15578
|
}
|
|
15357
15579
|
set y(value) {
|
|
15358
15580
|
Module.ccall("csp_systems_OlyRotation__Set_Y", "void", ["number", "number"], [this.pointer, value]);
|
|
15359
|
-
}
|
|
15360
|
-
get z() {
|
|
15361
|
-
let _result = Module.ccall("csp_systems_OlyRotation__Get_Z", "number", ["number"], [this.pointer]);
|
|
15362
|
-
return _result;
|
|
15363
|
-
}
|
|
15364
|
-
set z(value) {
|
|
15365
|
-
Module.ccall("csp_systems_OlyRotation__Set_Z", "void", ["number", "number"], [this.pointer, value]);
|
|
15366
|
-
}
|
|
15367
|
-
get w() {
|
|
15368
|
-
let _result = Module.ccall("csp_systems_OlyRotation__Get_W", "number", ["number"], [this.pointer]);
|
|
15369
|
-
return _result;
|
|
15370
|
-
}
|
|
15371
|
-
set w(value) {
|
|
15372
|
-
Module.ccall("csp_systems_OlyRotation__Set_W", "void", ["number", "number"], [this.pointer, value]);
|
|
15373
|
-
}
|
|
15374
|
-
}
|
|
15375
|
-
Systems.OlyRotation = OlyRotation;
|
|
15376
|
-
})(Systems || (Systems = {}));
|
|
15377
|
-
(function (Systems) {
|
|
15378
|
-
/**
|
|
15379
|
-
* @description Data for access and refresh tokens, and their expiry times.
|
|
15380
|
-
*/
|
|
15381
|
-
class LoginTokenInfo extends NativeClassWrapper {
|
|
15382
|
-
/** @internal */
|
|
15383
|
-
constructor(pointer) {
|
|
15384
|
-
super(pointer);
|
|
15385
|
-
}
|
|
15386
|
-
static create() {
|
|
15387
|
-
var _ptr = Module._malloc(8);
|
|
15388
|
-
Module.ccall("csp_systems_LoginTokenInfo_Ctor", "void", ["number"], [_ptr]);
|
|
15389
|
-
var _nPtr = getNativePointer(_ptr);
|
|
15390
|
-
return new LoginTokenInfo(_nPtr);
|
|
15391
|
-
}
|
|
15392
|
-
delete() {
|
|
15393
|
-
if (this.ownsPointer && !this.disposed) {
|
|
15394
|
-
Module.ccall("csp_systems_LoginTokenInfo_Dtor", "void", ["number"], [this.pointer]);
|
|
15395
|
-
this.disposed = true;
|
|
15396
|
-
}
|
|
15397
|
-
}
|
|
15398
|
-
get accessToken() {
|
|
15399
|
-
let _result = Module.ccall("csp_systems_LoginTokenInfo__Get_AccessToken", "string", ["number"], [this.pointer]);
|
|
15400
|
-
return _result;
|
|
15401
|
-
}
|
|
15402
|
-
set accessToken(value) {
|
|
15403
|
-
Module.ccall("csp_systems_LoginTokenInfo__Set_AccessToken", "void", ["number", "string"], [this.pointer, value]);
|
|
15404
|
-
}
|
|
15405
|
-
get accessExpiryTime() {
|
|
15406
|
-
let _result = Module.ccall("csp_systems_LoginTokenInfo__Get_AccessExpiryTime", "string", ["number"], [this.pointer]);
|
|
15407
|
-
return _result;
|
|
15408
|
-
}
|
|
15409
|
-
set accessExpiryTime(value) {
|
|
15410
|
-
Module.ccall("csp_systems_LoginTokenInfo__Set_AccessExpiryTime", "void", ["number", "string"], [this.pointer, value]);
|
|
15411
|
-
}
|
|
15412
|
-
get refreshToken() {
|
|
15413
|
-
let _result = Module.ccall("csp_systems_LoginTokenInfo__Get_RefreshToken", "string", ["number"], [this.pointer]);
|
|
15414
|
-
return _result;
|
|
15415
|
-
}
|
|
15416
|
-
set refreshToken(value) {
|
|
15417
|
-
Module.ccall("csp_systems_LoginTokenInfo__Set_RefreshToken", "void", ["number", "string"], [this.pointer, value]);
|
|
15418
|
-
}
|
|
15419
|
-
get refreshExpiryTime() {
|
|
15420
|
-
let _result = Module.ccall("csp_systems_LoginTokenInfo__Get_RefreshExpiryTime", "string", ["number"], [this.pointer]);
|
|
15421
|
-
return _result;
|
|
15422
|
-
}
|
|
15423
|
-
set refreshExpiryTime(value) {
|
|
15424
|
-
Module.ccall("csp_systems_LoginTokenInfo__Set_RefreshExpiryTime", "void", ["number", "string"], [this.pointer, value]);
|
|
15425
|
-
}
|
|
15426
|
-
}
|
|
15427
|
-
Systems.LoginTokenInfo = LoginTokenInfo;
|
|
15428
|
-
})(Systems || (Systems = {}));
|
|
15429
|
-
(function (Systems) {
|
|
15430
|
-
/**
|
|
15431
|
-
* @description Data structure for an Agora user token, giving userID, referenceID, channel name and settings regarding sharing of audio/video/screenshare.
|
|
15432
|
-
*/
|
|
15433
|
-
class AgoraUserTokenParams extends NativeClassWrapper {
|
|
15434
|
-
/** @internal */
|
|
15435
|
-
constructor(pointer) {
|
|
15436
|
-
super(pointer);
|
|
15437
|
-
}
|
|
15438
|
-
static create() {
|
|
15439
|
-
var _ptr = Module._malloc(8);
|
|
15440
|
-
Module.ccall("csp_systems_AgoraUserTokenParams_Ctor", "void", ["number"], [_ptr]);
|
|
15441
|
-
var _nPtr = getNativePointer(_ptr);
|
|
15442
|
-
return new AgoraUserTokenParams(_nPtr);
|
|
15443
|
-
}
|
|
15444
|
-
delete() {
|
|
15445
|
-
if (this.ownsPointer && !this.disposed) {
|
|
15446
|
-
Module.ccall("csp_systems_AgoraUserTokenParams_Dtor", "void", ["number"], [this.pointer]);
|
|
15447
|
-
this.disposed = true;
|
|
15448
|
-
}
|
|
15449
|
-
}
|
|
15450
|
-
get agoraUserId() {
|
|
15451
|
-
let _result = Module.ccall("csp_systems_AgoraUserTokenParams__Get_AgoraUserId", "string", ["number"], [this.pointer]);
|
|
15452
|
-
return _result;
|
|
15453
|
-
}
|
|
15454
|
-
set agoraUserId(value) {
|
|
15455
|
-
Module.ccall("csp_systems_AgoraUserTokenParams__Set_AgoraUserId", "void", ["number", "string"], [this.pointer, value]);
|
|
15456
|
-
}
|
|
15457
|
-
get channelName() {
|
|
15458
|
-
let _result = Module.ccall("csp_systems_AgoraUserTokenParams__Get_ChannelName", "string", ["number"], [this.pointer]);
|
|
15459
|
-
return _result;
|
|
15460
|
-
}
|
|
15461
|
-
set channelName(value) {
|
|
15462
|
-
Module.ccall("csp_systems_AgoraUserTokenParams__Set_ChannelName", "void", ["number", "string"], [this.pointer, value]);
|
|
15463
|
-
}
|
|
15464
|
-
get referenceId() {
|
|
15465
|
-
let _result = Module.ccall("csp_systems_AgoraUserTokenParams__Get_ReferenceId", "string", ["number"], [this.pointer]);
|
|
15466
|
-
return _result;
|
|
15467
|
-
}
|
|
15468
|
-
set referenceId(value) {
|
|
15469
|
-
Module.ccall("csp_systems_AgoraUserTokenParams__Set_ReferenceId", "void", ["number", "string"], [this.pointer, value]);
|
|
15470
|
-
}
|
|
15471
|
-
get lifespan() {
|
|
15472
|
-
let _result = Module.ccall("csp_systems_AgoraUserTokenParams__Get_Lifespan", "number", ["number"], [this.pointer]);
|
|
15473
|
-
return _result;
|
|
15474
|
-
}
|
|
15475
|
-
set lifespan(value) {
|
|
15476
|
-
Module.ccall("csp_systems_AgoraUserTokenParams__Set_Lifespan", "void", ["number", "number"], [this.pointer, value]);
|
|
15477
|
-
}
|
|
15478
|
-
get readOnly() {
|
|
15479
|
-
let _result = Module.ccall("csp_systems_AgoraUserTokenParams__Get_ReadOnly", "boolean", ["number"], [this.pointer]);
|
|
15480
|
-
return _result;
|
|
15481
|
-
}
|
|
15482
|
-
set readOnly(value) {
|
|
15483
|
-
Module.ccall("csp_systems_AgoraUserTokenParams__Set_ReadOnly", "void", ["number", "boolean"], [this.pointer, value]);
|
|
15484
|
-
}
|
|
15485
|
-
get shareAudio() {
|
|
15486
|
-
let _result = Module.ccall("csp_systems_AgoraUserTokenParams__Get_ShareAudio", "boolean", ["number"], [this.pointer]);
|
|
15487
|
-
return _result;
|
|
15488
|
-
}
|
|
15489
|
-
set shareAudio(value) {
|
|
15490
|
-
Module.ccall("csp_systems_AgoraUserTokenParams__Set_ShareAudio", "void", ["number", "boolean"], [this.pointer, value]);
|
|
15491
|
-
}
|
|
15492
|
-
get shareVideo() {
|
|
15493
|
-
let _result = Module.ccall("csp_systems_AgoraUserTokenParams__Get_ShareVideo", "boolean", ["number"], [this.pointer]);
|
|
15581
|
+
}
|
|
15582
|
+
get z() {
|
|
15583
|
+
let _result = Module.ccall("csp_systems_OlyRotation__Get_Z", "number", ["number"], [this.pointer]);
|
|
15494
15584
|
return _result;
|
|
15495
15585
|
}
|
|
15496
|
-
set
|
|
15497
|
-
Module.ccall("
|
|
15586
|
+
set z(value) {
|
|
15587
|
+
Module.ccall("csp_systems_OlyRotation__Set_Z", "void", ["number", "number"], [this.pointer, value]);
|
|
15498
15588
|
}
|
|
15499
|
-
get
|
|
15500
|
-
let _result = Module.ccall("
|
|
15589
|
+
get w() {
|
|
15590
|
+
let _result = Module.ccall("csp_systems_OlyRotation__Get_W", "number", ["number"], [this.pointer]);
|
|
15501
15591
|
return _result;
|
|
15502
15592
|
}
|
|
15503
|
-
set
|
|
15504
|
-
Module.ccall("
|
|
15593
|
+
set w(value) {
|
|
15594
|
+
Module.ccall("csp_systems_OlyRotation__Set_W", "void", ["number", "number"], [this.pointer, value]);
|
|
15505
15595
|
}
|
|
15506
15596
|
}
|
|
15507
|
-
Systems.
|
|
15597
|
+
Systems.OlyRotation = OlyRotation;
|
|
15508
15598
|
})(Systems || (Systems = {}));
|
|
15509
15599
|
(function (Systems) {
|
|
15510
15600
|
/**
|
|
15511
|
-
* @description Data
|
|
15601
|
+
* @description Data for access and refresh tokens, and their expiry times.
|
|
15512
15602
|
*/
|
|
15513
|
-
class
|
|
15603
|
+
class LoginTokenInfo extends NativeClassWrapper {
|
|
15514
15604
|
/** @internal */
|
|
15515
15605
|
constructor(pointer) {
|
|
15516
15606
|
super(pointer);
|
|
15517
15607
|
}
|
|
15518
15608
|
static create() {
|
|
15519
15609
|
var _ptr = Module._malloc(8);
|
|
15520
|
-
Module.ccall("
|
|
15610
|
+
Module.ccall("csp_systems_LoginTokenInfo_Ctor", "void", ["number"], [_ptr]);
|
|
15521
15611
|
var _nPtr = getNativePointer(_ptr);
|
|
15522
|
-
return new
|
|
15612
|
+
return new LoginTokenInfo(_nPtr);
|
|
15523
15613
|
}
|
|
15524
15614
|
delete() {
|
|
15525
15615
|
if (this.ownsPointer && !this.disposed) {
|
|
15526
|
-
Module.ccall("
|
|
15616
|
+
Module.ccall("csp_systems_LoginTokenInfo_Dtor", "void", ["number"], [this.pointer]);
|
|
15527
15617
|
this.disposed = true;
|
|
15528
15618
|
}
|
|
15529
15619
|
}
|
|
15530
|
-
get
|
|
15531
|
-
let _result = Module.ccall("
|
|
15620
|
+
get accessToken() {
|
|
15621
|
+
let _result = Module.ccall("csp_systems_LoginTokenInfo__Get_AccessToken", "string", ["number"], [this.pointer]);
|
|
15532
15622
|
return _result;
|
|
15533
15623
|
}
|
|
15534
|
-
set
|
|
15535
|
-
Module.ccall("
|
|
15624
|
+
set accessToken(value) {
|
|
15625
|
+
Module.ccall("csp_systems_LoginTokenInfo__Set_AccessToken", "void", ["number", "string"], [this.pointer, value]);
|
|
15536
15626
|
}
|
|
15537
|
-
get
|
|
15538
|
-
let _result = Module.ccall("
|
|
15627
|
+
get accessExpiryTime() {
|
|
15628
|
+
let _result = Module.ccall("csp_systems_LoginTokenInfo__Get_AccessExpiryTime", "string", ["number"], [this.pointer]);
|
|
15539
15629
|
return _result;
|
|
15540
15630
|
}
|
|
15541
|
-
set
|
|
15542
|
-
Module.ccall("
|
|
15631
|
+
set accessExpiryTime(value) {
|
|
15632
|
+
Module.ccall("csp_systems_LoginTokenInfo__Set_AccessExpiryTime", "void", ["number", "string"], [this.pointer, value]);
|
|
15543
15633
|
}
|
|
15544
|
-
get
|
|
15545
|
-
let _result = Module.ccall("
|
|
15634
|
+
get refreshToken() {
|
|
15635
|
+
let _result = Module.ccall("csp_systems_LoginTokenInfo__Get_RefreshToken", "string", ["number"], [this.pointer]);
|
|
15546
15636
|
return _result;
|
|
15547
15637
|
}
|
|
15548
|
-
set
|
|
15549
|
-
Module.ccall("
|
|
15638
|
+
set refreshToken(value) {
|
|
15639
|
+
Module.ccall("csp_systems_LoginTokenInfo__Set_RefreshToken", "void", ["number", "string"], [this.pointer, value]);
|
|
15550
15640
|
}
|
|
15551
|
-
get
|
|
15552
|
-
|
|
15553
|
-
|
|
15554
|
-
const _nPtr = getNativePointer(_ptr);
|
|
15555
|
-
return new Common.Map(_nPtr, StringFactory, "String", StringFactory, "String");
|
|
15641
|
+
get refreshExpiryTime() {
|
|
15642
|
+
let _result = Module.ccall("csp_systems_LoginTokenInfo__Get_RefreshExpiryTime", "string", ["number"], [this.pointer]);
|
|
15643
|
+
return _result;
|
|
15556
15644
|
}
|
|
15557
|
-
set
|
|
15558
|
-
Module.ccall("
|
|
15645
|
+
set refreshExpiryTime(value) {
|
|
15646
|
+
Module.ccall("csp_systems_LoginTokenInfo__Set_RefreshExpiryTime", "void", ["number", "string"], [this.pointer, value]);
|
|
15559
15647
|
}
|
|
15560
15648
|
}
|
|
15561
|
-
Systems.
|
|
15649
|
+
Systems.LoginTokenInfo = LoginTokenInfo;
|
|
15562
15650
|
})(Systems || (Systems = {}));
|
|
15563
15651
|
(function (Systems) {
|
|
15564
15652
|
/**
|
|
@@ -16692,6 +16780,100 @@ export class CSPFoundation {
|
|
|
16692
16780
|
}
|
|
16693
16781
|
Multiplayer.OnlineRealtimeEngine = OnlineRealtimeEngine;
|
|
16694
16782
|
})(Multiplayer || (Multiplayer = {}));
|
|
16783
|
+
(function (Multiplayer) {
|
|
16784
|
+
class AIChatbotSpaceComponent extends Multiplayer.ComponentBase {
|
|
16785
|
+
/** @internal */
|
|
16786
|
+
constructor(pointer) {
|
|
16787
|
+
super(pointer);
|
|
16788
|
+
}
|
|
16789
|
+
static fromComponentBase(baseInstance) {
|
|
16790
|
+
const nativeClassWrapper = baseInstance;
|
|
16791
|
+
return new Multiplayer.AIChatbotSpaceComponent(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
|
|
16792
|
+
}
|
|
16793
|
+
static create_logSystem_parent(logSystem, parent) {
|
|
16794
|
+
var _ptr = Module._malloc(8);
|
|
16795
|
+
Module.ccall("csp_multiplayer_AIChatbotSpaceComponent_Ctor_LogSystemP_SpaceEntityP", "void", ["number", "number", "number"], [_ptr, logSystem.pointer, parent.pointer]);
|
|
16796
|
+
var _nPtr = getNativePointer(_ptr);
|
|
16797
|
+
return new AIChatbotSpaceComponent(_nPtr);
|
|
16798
|
+
}
|
|
16799
|
+
/**
|
|
16800
|
+
* @description Gets the voice name of the TTS model associated with this AI chatbot.
|
|
16801
|
+
* @return The name of the TTS voice associated with this AI chatbot.
|
|
16802
|
+
*/
|
|
16803
|
+
getVoice() {
|
|
16804
|
+
let _result = Module.ccall("csp_multiplayer_AIChatbotSpaceComponent_GetVoiceC_StringRC", "number", ["number"], [this.pointer]);
|
|
16805
|
+
const _resultString = Module.UTF8ToString(_result);
|
|
16806
|
+
free(_result);
|
|
16807
|
+
_result = _resultString;
|
|
16808
|
+
return _result;
|
|
16809
|
+
}
|
|
16810
|
+
/**
|
|
16811
|
+
* @description Sets the voice name of the TTS model associated with this AI chatbot.
|
|
16812
|
+
* @param value - The name of the TTS voice associated with this AI chatbot.
|
|
16813
|
+
*/
|
|
16814
|
+
setVoice(value) {
|
|
16815
|
+
Module.ccall("csp_multiplayer_AIChatbotSpaceComponent_SetVoice_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
|
|
16816
|
+
}
|
|
16817
|
+
/**
|
|
16818
|
+
* @description Gets the ID of the guardrail asset associated with this AI chatbot.
|
|
16819
|
+
* @return The ID of the guardrail asset collection associated with this AI chatbot.
|
|
16820
|
+
*/
|
|
16821
|
+
getGuardrailAssetCollectionId() {
|
|
16822
|
+
let _result = Module.ccall("csp_multiplayer_AIChatbotSpaceComponent_GetGuardrailAssetCollectionIdC_StringRC", "number", ["number"], [this.pointer]);
|
|
16823
|
+
const _resultString = Module.UTF8ToString(_result);
|
|
16824
|
+
free(_result);
|
|
16825
|
+
_result = _resultString;
|
|
16826
|
+
return _result;
|
|
16827
|
+
}
|
|
16828
|
+
/**
|
|
16829
|
+
* @description Sets the ID of the guardrail asset associated with this AI chatbot.
|
|
16830
|
+
* @param value - The ID of the guardrail asset collection associated with this AI chatbot.
|
|
16831
|
+
*/
|
|
16832
|
+
setGuardrailAssetCollectionId(value) {
|
|
16833
|
+
Module.ccall("csp_multiplayer_AIChatbotSpaceComponent_SetGuardrailAssetCollectionId_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
|
|
16834
|
+
}
|
|
16835
|
+
/**
|
|
16836
|
+
* @description Retrieves the visual state of the AI chatbot for this component.
|
|
16837
|
+
* @return The visual state of the AI chatbot.
|
|
16838
|
+
*/
|
|
16839
|
+
getVisualState() {
|
|
16840
|
+
let _result = Module.ccall("csp_multiplayer_AIChatbotSpaceComponent_GetVisualStateC_AIChatbotVisualState", "number", ["number"], [this.pointer]);
|
|
16841
|
+
return _result;
|
|
16842
|
+
}
|
|
16843
|
+
/**
|
|
16844
|
+
* @description Sets the visual state of the AI chatbot for this component.
|
|
16845
|
+
* @param value - The visual state of the AI chatbot.
|
|
16846
|
+
*/
|
|
16847
|
+
setVisualState(value) {
|
|
16848
|
+
Module.ccall("csp_multiplayer_AIChatbotSpaceComponent_SetVisualState_void_AIChatbotVisualState", "void", ["number", "number"], [this.pointer, value]);
|
|
16849
|
+
}
|
|
16850
|
+
/**
|
|
16851
|
+
* \addtogroup IPositionComponent
|
|
16852
|
+
@{
|
|
16853
|
+
@copydoc IPositionComponent::GetPosition()
|
|
16854
|
+
*/
|
|
16855
|
+
getPosition() {
|
|
16856
|
+
var _ret = Module._malloc(8);
|
|
16857
|
+
Module.ccall("csp_multiplayer_AIChatbotSpaceComponent_GetPositionC_Vector3RC", "void", ["number", "number"], [_ret, this.pointer]);
|
|
16858
|
+
var _nPtr = new Common.Vector3(getNativePointer(_ret));
|
|
16859
|
+
Module._free(_ret);
|
|
16860
|
+
return _nPtr;
|
|
16861
|
+
}
|
|
16862
|
+
/**
|
|
16863
|
+
@copydoc IPositionComponent::SetPosition()
|
|
16864
|
+
*/
|
|
16865
|
+
setPosition(value) {
|
|
16866
|
+
Module.ccall("csp_multiplayer_AIChatbotSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
16867
|
+
}
|
|
16868
|
+
delete() {
|
|
16869
|
+
if (this.ownsPointer && !this.disposed) {
|
|
16870
|
+
Module.ccall("csp_multiplayer_AIChatbotSpaceComponent_Dtor", "void", ["number"], [this.pointer]);
|
|
16871
|
+
this.disposed = true;
|
|
16872
|
+
}
|
|
16873
|
+
}
|
|
16874
|
+
}
|
|
16875
|
+
Multiplayer.AIChatbotSpaceComponent = AIChatbotSpaceComponent;
|
|
16876
|
+
})(Multiplayer || (Multiplayer = {}));
|
|
16695
16877
|
(function (Multiplayer) {
|
|
16696
16878
|
/**
|
|
16697
16879
|
@ingroup AnimatedModelSpaceComponent
|
|
@@ -19687,7 +19869,7 @@ export class CSPFoundation {
|
|
|
19687
19869
|
return _result;
|
|
19688
19870
|
}
|
|
19689
19871
|
/**
|
|
19690
|
-
* @description Sets the type of fog
|
|
19872
|
+
* @description Sets the type of fog to be used by this fog component.
|
|
19691
19873
|
* @param value - The modality of fog to be used by this component.
|
|
19692
19874
|
*/
|
|
19693
19875
|
setFogMode(value) {
|
|
@@ -19761,20 +19943,18 @@ export class CSPFoundation {
|
|
|
19761
19943
|
}
|
|
19762
19944
|
/**
|
|
19763
19945
|
@}
|
|
19764
|
-
* @description
|
|
19765
|
-
*
|
|
19766
|
-
*
|
|
19767
|
-
* @return Current start distance
|
|
19946
|
+
* @description Gets start distance.
|
|
19947
|
+
* NOTE: Distance from camera that the fog will start. 0 = this property has no effect.
|
|
19948
|
+
* @return Current start distance.
|
|
19768
19949
|
*/
|
|
19769
19950
|
getStartDistance() {
|
|
19770
19951
|
let _result = Module.ccall("csp_multiplayer_FogSpaceComponent_GetStartDistanceC_float", "number", ["number"], [this.pointer]);
|
|
19771
19952
|
return _result;
|
|
19772
19953
|
}
|
|
19773
19954
|
/**
|
|
19774
|
-
* @description
|
|
19775
|
-
*
|
|
19776
|
-
*
|
|
19777
|
-
* @param value - Current start distance
|
|
19955
|
+
* @description Sets start distance.
|
|
19956
|
+
* NOTE: Distance from camera that the fog will start. 0 = this property has no effect.
|
|
19957
|
+
* @param value - Start distance.
|
|
19778
19958
|
*/
|
|
19779
19959
|
setStartDistance(value) {
|
|
19780
19960
|
assert(value >= Limits.FLOAT_MIN);
|
|
@@ -19782,20 +19962,18 @@ export class CSPFoundation {
|
|
|
19782
19962
|
Module.ccall("csp_multiplayer_FogSpaceComponent_SetStartDistance_void_float", "void", ["number", "number"], [this.pointer, value]);
|
|
19783
19963
|
}
|
|
19784
19964
|
/**
|
|
19785
|
-
* @description
|
|
19786
|
-
*
|
|
19787
|
-
*
|
|
19788
|
-
* @return Current end distance
|
|
19965
|
+
* @description Gets end distance.
|
|
19966
|
+
* NOTE: Objects passed this distance will not be affected by fog. 0 = this property has no effect.
|
|
19967
|
+
* @return Current end distance.
|
|
19789
19968
|
*/
|
|
19790
19969
|
getEndDistance() {
|
|
19791
19970
|
let _result = Module.ccall("csp_multiplayer_FogSpaceComponent_GetEndDistanceC_float", "number", ["number"], [this.pointer]);
|
|
19792
19971
|
return _result;
|
|
19793
19972
|
}
|
|
19794
19973
|
/**
|
|
19795
|
-
* @description
|
|
19796
|
-
*
|
|
19797
|
-
*
|
|
19798
|
-
* @param value - Current end distance
|
|
19974
|
+
* @description Sets end distance.
|
|
19975
|
+
* NOTE: Objects passed this distance will not be affected by fog. 0 = this property has no effect.
|
|
19976
|
+
* @param value - End distance.
|
|
19799
19977
|
*/
|
|
19800
19978
|
setEndDistance(value) {
|
|
19801
19979
|
assert(value >= Limits.FLOAT_MIN);
|
|
@@ -19803,8 +19981,8 @@ export class CSPFoundation {
|
|
|
19803
19981
|
Module.ccall("csp_multiplayer_FogSpaceComponent_SetEndDistance_void_float", "void", ["number", "number"], [this.pointer, value]);
|
|
19804
19982
|
}
|
|
19805
19983
|
/**
|
|
19806
|
-
* @description
|
|
19807
|
-
* @return Current fog color
|
|
19984
|
+
* @description Gets fog color.
|
|
19985
|
+
* @return Current fog color.
|
|
19808
19986
|
*/
|
|
19809
19987
|
getColor() {
|
|
19810
19988
|
var _ret = Module._malloc(8);
|
|
@@ -19814,25 +19992,23 @@ export class CSPFoundation {
|
|
|
19814
19992
|
return _nPtr;
|
|
19815
19993
|
}
|
|
19816
19994
|
/**
|
|
19817
|
-
* @description
|
|
19818
|
-
* @param value -
|
|
19995
|
+
* @description Sets fog color.
|
|
19996
|
+
* @param value - Fog color.
|
|
19819
19997
|
*/
|
|
19820
19998
|
setColor(value) {
|
|
19821
19999
|
Module.ccall("csp_multiplayer_FogSpaceComponent_SetColor_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
|
|
19822
20000
|
}
|
|
19823
20001
|
/**
|
|
19824
|
-
* @description
|
|
19825
|
-
*
|
|
19826
|
-
* @return Current Global density factor
|
|
20002
|
+
* @description Gets global density factor.
|
|
20003
|
+
* @return Current global density factor.
|
|
19827
20004
|
*/
|
|
19828
20005
|
getDensity() {
|
|
19829
20006
|
let _result = Module.ccall("csp_multiplayer_FogSpaceComponent_GetDensityC_float", "number", ["number"], [this.pointer]);
|
|
19830
20007
|
return _result;
|
|
19831
20008
|
}
|
|
19832
20009
|
/**
|
|
19833
|
-
* @description
|
|
19834
|
-
*
|
|
19835
|
-
* @param value - Global density factor
|
|
20010
|
+
* @description Sets global density factor.
|
|
20011
|
+
* @param value - Global density factor.
|
|
19836
20012
|
*/
|
|
19837
20013
|
setDensity(value) {
|
|
19838
20014
|
assert(value >= Limits.FLOAT_MIN);
|
|
@@ -19840,18 +20016,18 @@ export class CSPFoundation {
|
|
|
19840
20016
|
Module.ccall("csp_multiplayer_FogSpaceComponent_SetDensity_void_float", "void", ["number", "number"], [this.pointer, value]);
|
|
19841
20017
|
}
|
|
19842
20018
|
/**
|
|
19843
|
-
* @description
|
|
19844
|
-
*
|
|
19845
|
-
* @return Current
|
|
20019
|
+
* @description Gets Height density factor.
|
|
20020
|
+
* NOTE: Controls how the density increases and height decreases. Smaller values make the visible transition larger.
|
|
20021
|
+
* @return Current height density factor.
|
|
19846
20022
|
*/
|
|
19847
20023
|
getHeightFalloff() {
|
|
19848
20024
|
let _result = Module.ccall("csp_multiplayer_FogSpaceComponent_GetHeightFalloffC_float", "number", ["number"], [this.pointer]);
|
|
19849
20025
|
return _result;
|
|
19850
20026
|
}
|
|
19851
20027
|
/**
|
|
19852
|
-
* @description
|
|
19853
|
-
*
|
|
19854
|
-
* @param value - Height density factor
|
|
20028
|
+
* @description Sets Height density factor.
|
|
20029
|
+
* NOTE: Controls how the density increases and height decreases. Smaller values make the visible transition larger.
|
|
20030
|
+
* @param value - Height density factor.
|
|
19855
20031
|
*/
|
|
19856
20032
|
setHeightFalloff(value) {
|
|
19857
20033
|
assert(value >= Limits.FLOAT_MIN);
|
|
@@ -19859,19 +20035,18 @@ export class CSPFoundation {
|
|
|
19859
20035
|
Module.ccall("csp_multiplayer_FogSpaceComponent_SetHeightFalloff_void_float", "void", ["number", "number"], [this.pointer, value]);
|
|
19860
20036
|
}
|
|
19861
20037
|
/**
|
|
19862
|
-
* @description
|
|
19863
|
-
*
|
|
19864
|
-
*
|
|
19865
|
-
* Note: 0 = fog colour will have no impact.
|
|
19866
|
-
* @return Current Maximum opacity of the Fog
|
|
20038
|
+
* @description Gets maximum opacity of the fog.
|
|
20039
|
+
* NOTE: 1 = fog becomes fully opaque at a distance and replaces the scene colour completely. 0 = fog colour will have no impact.
|
|
20040
|
+
* @return Current maximum opacity.
|
|
19867
20041
|
*/
|
|
19868
20042
|
getMaxOpacity() {
|
|
19869
20043
|
let _result = Module.ccall("csp_multiplayer_FogSpaceComponent_GetMaxOpacityC_float", "number", ["number"], [this.pointer]);
|
|
19870
20044
|
return _result;
|
|
19871
20045
|
}
|
|
19872
20046
|
/**
|
|
19873
|
-
* @description
|
|
19874
|
-
*
|
|
20047
|
+
* @description Sets maximum opacity of the fog.
|
|
20048
|
+
* NOTE: 1 = fog becomes fully opaque at a distance and replaces the scene colour completely. 0 = fog colour will have no impact.
|
|
20049
|
+
* @param value - Maximum opacity of the fog.
|
|
19875
20050
|
*/
|
|
19876
20051
|
setMaxOpacity(value) {
|
|
19877
20052
|
assert(value >= Limits.FLOAT_MIN);
|
|
@@ -19879,16 +20054,16 @@ export class CSPFoundation {
|
|
|
19879
20054
|
Module.ccall("csp_multiplayer_FogSpaceComponent_SetMaxOpacity_void_float", "void", ["number", "number"], [this.pointer, value]);
|
|
19880
20055
|
}
|
|
19881
20056
|
/**
|
|
19882
|
-
* @description
|
|
19883
|
-
* @
|
|
20057
|
+
* @description Gets IsFogVolumetric.
|
|
20058
|
+
* @return Current fog volumetric flag.
|
|
19884
20059
|
*/
|
|
19885
20060
|
getIsVolumetric() {
|
|
19886
20061
|
let _result = Module.ccall("csp_multiplayer_FogSpaceComponent_GetIsVolumetricC_bool", "boolean", ["number"], [this.pointer]);
|
|
19887
20062
|
return _result;
|
|
19888
20063
|
}
|
|
19889
20064
|
/**
|
|
19890
|
-
* @description
|
|
19891
|
-
* @param value -
|
|
20065
|
+
* @description Sets IsFogVolumetric.
|
|
20066
|
+
* @param value - Fog Volumetric Flag.
|
|
19892
20067
|
*/
|
|
19893
20068
|
setIsVolumetric(value) {
|
|
19894
20069
|
Module.ccall("csp_multiplayer_FogSpaceComponent_SetIsVolumetric_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
|
|
@@ -23511,6 +23686,29 @@ export class CSPFoundation {
|
|
|
23511
23686
|
}
|
|
23512
23687
|
Systems.AssetCollectionCountResult = AssetCollectionCountResult;
|
|
23513
23688
|
})(Systems || (Systems = {}));
|
|
23689
|
+
(function (Systems) {
|
|
23690
|
+
/**
|
|
23691
|
+
@ingroup Asset System
|
|
23692
|
+
* @description Data class used to process and represent information relating to copied asset collections.
|
|
23693
|
+
*/
|
|
23694
|
+
class AssetCollectionsCopyResult extends Systems.AssetCollectionsResult {
|
|
23695
|
+
/** @internal */
|
|
23696
|
+
constructor(pointer) {
|
|
23697
|
+
super(pointer);
|
|
23698
|
+
}
|
|
23699
|
+
static fromAssetCollectionsResult(baseInstance) {
|
|
23700
|
+
const nativeClassWrapper = baseInstance;
|
|
23701
|
+
return new Systems.AssetCollectionsCopyResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
|
|
23702
|
+
}
|
|
23703
|
+
delete() {
|
|
23704
|
+
if (this.ownsPointer && !this.disposed) {
|
|
23705
|
+
Module.ccall("csp_systems_AssetCollectionsCopyResult_Dtor", "void", ["number"], [this.pointer]);
|
|
23706
|
+
this.disposed = true;
|
|
23707
|
+
}
|
|
23708
|
+
}
|
|
23709
|
+
}
|
|
23710
|
+
Systems.AssetCollectionsCopyResult = AssetCollectionsCopyResult;
|
|
23711
|
+
})(Systems || (Systems = {}));
|
|
23514
23712
|
(function (Systems) {
|
|
23515
23713
|
/**
|
|
23516
23714
|
@ingroup Asset System
|
|
@@ -25841,6 +26039,122 @@ export class CSPFoundation {
|
|
|
25841
26039
|
}
|
|
25842
26040
|
Systems.EventTicketingSystem = EventTicketingSystem;
|
|
25843
26041
|
})(Systems || (Systems = {}));
|
|
26042
|
+
(function (Systems) {
|
|
26043
|
+
/**
|
|
26044
|
+
* @description Data class used to contain information relating to invocations via the external service proxy system.
|
|
26045
|
+
*/
|
|
26046
|
+
class ExternalServiceInvocationResult extends Systems.StringResult {
|
|
26047
|
+
/** @internal */
|
|
26048
|
+
constructor(pointer) {
|
|
26049
|
+
super(pointer);
|
|
26050
|
+
}
|
|
26051
|
+
static fromStringResult(baseInstance) {
|
|
26052
|
+
const nativeClassWrapper = baseInstance;
|
|
26053
|
+
return new Systems.ExternalServiceInvocationResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
|
|
26054
|
+
}
|
|
26055
|
+
delete() {
|
|
26056
|
+
if (this.ownsPointer && !this.disposed) {
|
|
26057
|
+
Module.ccall("csp_systems_ExternalServiceInvocationResult_Dtor", "void", ["number"], [this.pointer]);
|
|
26058
|
+
this.disposed = true;
|
|
26059
|
+
}
|
|
26060
|
+
}
|
|
26061
|
+
}
|
|
26062
|
+
Systems.ExternalServiceInvocationResult = ExternalServiceInvocationResult;
|
|
26063
|
+
})(Systems || (Systems = {}));
|
|
26064
|
+
(function (Systems) {
|
|
26065
|
+
/**
|
|
26066
|
+
* @description A specialisation of the result data class that handles respnses from the external service proxy system.
|
|
26067
|
+
*/
|
|
26068
|
+
class GetAgoraTokenResult extends Systems.ExternalServiceInvocationResult {
|
|
26069
|
+
/** @internal */
|
|
26070
|
+
constructor(pointer) {
|
|
26071
|
+
super(pointer);
|
|
26072
|
+
}
|
|
26073
|
+
static fromExternalServiceInvocationResult(baseInstance) {
|
|
26074
|
+
const nativeClassWrapper = baseInstance;
|
|
26075
|
+
return new Systems.GetAgoraTokenResult(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
|
|
26076
|
+
}
|
|
26077
|
+
delete() {
|
|
26078
|
+
if (this.ownsPointer && !this.disposed) {
|
|
26079
|
+
Module.ccall("csp_systems_GetAgoraTokenResult_Dtor", "void", ["number"], [this.pointer]);
|
|
26080
|
+
this.disposed = true;
|
|
26081
|
+
}
|
|
26082
|
+
}
|
|
26083
|
+
}
|
|
26084
|
+
Systems.GetAgoraTokenResult = GetAgoraTokenResult;
|
|
26085
|
+
})(Systems || (Systems = {}));
|
|
26086
|
+
(function (Systems) {
|
|
26087
|
+
/**
|
|
26088
|
+
* *******************************************************************************************************************
|
|
26089
|
+
@ingroup External Service Proxy System
|
|
26090
|
+
* @description Public facing system that allows client applications to interact with
|
|
26091
|
+
* backend services acting as a proxy for some other set of services.
|
|
26092
|
+
* /// In situations where a CSP client application needs secure access to some other set of third-party
|
|
26093
|
+
* services (like AI, VOIP, ECommerce etc), this system can be particularly helpful,
|
|
26094
|
+
* as it enables services that CSP interfaces with to own the responsibility of distributing secure tokens to those platforms.
|
|
26095
|
+
*/
|
|
26096
|
+
class ExternalServiceProxySystem extends Systems.SystemBase {
|
|
26097
|
+
/** @internal */
|
|
26098
|
+
constructor(pointer) {
|
|
26099
|
+
super(pointer);
|
|
26100
|
+
}
|
|
26101
|
+
static fromSystemBase(baseInstance) {
|
|
26102
|
+
const nativeClassWrapper = baseInstance;
|
|
26103
|
+
return new Systems.ExternalServiceProxySystem(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
|
|
26104
|
+
}
|
|
26105
|
+
/**
|
|
26106
|
+
* @description Generic function which will make a post request to the services proxy endpoint to trigger some specified operation of specified
|
|
26107
|
+
* service. The nature of the operation and what is returned is entirely dependent on the service and operation name provided.
|
|
26108
|
+
* @param params - Params to specify service, operation, set help and parameters.
|
|
26109
|
+
* @param callback - Callback to call when a response is received.
|
|
26110
|
+
*/
|
|
26111
|
+
async invokeOperation(params) {
|
|
26112
|
+
var _resolve;
|
|
26113
|
+
var _promise = new Promise((_r) => {
|
|
26114
|
+
_resolve = _r;
|
|
26115
|
+
});
|
|
26116
|
+
var _callbackPtr;
|
|
26117
|
+
var _callback = (_stateObject__, result) => {
|
|
26118
|
+
var _resultPtr = getNativePointer(result);
|
|
26119
|
+
var _resultInstance = new Systems.StringResult(_resultPtr);
|
|
26120
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
26121
|
+
return;
|
|
26122
|
+
}
|
|
26123
|
+
_resolve(_resultInstance);
|
|
26124
|
+
Module.removeFunction(_callbackPtr);
|
|
26125
|
+
};
|
|
26126
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
26127
|
+
Module.ccall("csp_systems_ExternalServiceProxySystem_InvokeOperation_void_ExternalServicesOperationParamsRC_StringResultCallback", "void", ["number", "number", "number", "number"], [this.pointer, params.pointer, _callbackPtr, 0]);
|
|
26128
|
+
return _promise;
|
|
26129
|
+
}
|
|
26130
|
+
/**
|
|
26131
|
+
* @description Specialised utility function which executes a post call to the external services proxy, specifically to retrieve Agora user token
|
|
26132
|
+
* credentials. A good example for how client applications may wish to use PostServiceProxy.
|
|
26133
|
+
* @param params - Params to configure the User token.
|
|
26134
|
+
* @param callback - Callback to call when a response is received.
|
|
26135
|
+
*/
|
|
26136
|
+
async getAgoraUserToken(params) {
|
|
26137
|
+
var _resolve;
|
|
26138
|
+
var _promise = new Promise((_r) => {
|
|
26139
|
+
_resolve = _r;
|
|
26140
|
+
});
|
|
26141
|
+
var _callbackPtr;
|
|
26142
|
+
var _callback = (_stateObject__, result) => {
|
|
26143
|
+
var _resultPtr = getNativePointer(result);
|
|
26144
|
+
var _resultInstance = new Systems.StringResult(_resultPtr);
|
|
26145
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
26146
|
+
return;
|
|
26147
|
+
}
|
|
26148
|
+
_resolve(_resultInstance);
|
|
26149
|
+
Module.removeFunction(_callbackPtr);
|
|
26150
|
+
};
|
|
26151
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
26152
|
+
Module.ccall("csp_systems_ExternalServiceProxySystem_GetAgoraUserToken_void_AgoraUserTokenParamsRC_StringResultCallback", "void", ["number", "number", "number", "number"], [this.pointer, params.pointer, _callbackPtr, 0]);
|
|
26153
|
+
return _promise;
|
|
26154
|
+
}
|
|
26155
|
+
}
|
|
26156
|
+
Systems.ExternalServiceProxySystem = ExternalServiceProxySystem;
|
|
26157
|
+
})(Systems || (Systems = {}));
|
|
25844
26158
|
(function (Systems) {
|
|
25845
26159
|
/**
|
|
25846
26160
|
@ingroup GraphQL System
|
|
@@ -31000,54 +31314,6 @@ export class CSPFoundation {
|
|
|
31000
31314
|
Module.ccall("csp_systems_UserSystem_Ping_void_NullResultCallback", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
|
|
31001
31315
|
return _promise;
|
|
31002
31316
|
}
|
|
31003
|
-
/**
|
|
31004
|
-
* @description Retrieve User token from Agora
|
|
31005
|
-
* @param params - Params to configure the User token
|
|
31006
|
-
* @param callback - Callback to call when a response is received
|
|
31007
|
-
*/
|
|
31008
|
-
async getAgoraUserToken(params) {
|
|
31009
|
-
var _resolve;
|
|
31010
|
-
var _promise = new Promise((_r) => {
|
|
31011
|
-
_resolve = _r;
|
|
31012
|
-
});
|
|
31013
|
-
var _callbackPtr;
|
|
31014
|
-
var _callback = (_stateObject__, result) => {
|
|
31015
|
-
var _resultPtr = getNativePointer(result);
|
|
31016
|
-
var _resultInstance = new Systems.StringResult(_resultPtr);
|
|
31017
|
-
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
31018
|
-
return;
|
|
31019
|
-
}
|
|
31020
|
-
_resolve(_resultInstance);
|
|
31021
|
-
Module.removeFunction(_callbackPtr);
|
|
31022
|
-
};
|
|
31023
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
31024
|
-
Module.ccall("csp_systems_UserSystem_GetAgoraUserToken_void_AgoraUserTokenParamsRC_StringResultCallback", "void", ["number", "number", "number", "number"], [this.pointer, params.pointer, _callbackPtr, 0]);
|
|
31025
|
-
return _promise;
|
|
31026
|
-
}
|
|
31027
|
-
/**
|
|
31028
|
-
* @description Post Service Proxy to perform specified operation of specified service
|
|
31029
|
-
* @param params - Params to specify service, operation, set help and parameters
|
|
31030
|
-
* @param callback - Callback to call when a response is received
|
|
31031
|
-
*/
|
|
31032
|
-
async postServiceProxy(params) {
|
|
31033
|
-
var _resolve;
|
|
31034
|
-
var _promise = new Promise((_r) => {
|
|
31035
|
-
_resolve = _r;
|
|
31036
|
-
});
|
|
31037
|
-
var _callbackPtr;
|
|
31038
|
-
var _callback = (_stateObject__, result) => {
|
|
31039
|
-
var _resultPtr = getNativePointer(result);
|
|
31040
|
-
var _resultInstance = new Systems.StringResult(_resultPtr);
|
|
31041
|
-
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
31042
|
-
return;
|
|
31043
|
-
}
|
|
31044
|
-
_resolve(_resultInstance);
|
|
31045
|
-
Module.removeFunction(_callbackPtr);
|
|
31046
|
-
};
|
|
31047
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
31048
|
-
Module.ccall("csp_systems_UserSystem_PostServiceProxy_void_TokenInfoParamsRC_StringResultCallback", "void", ["number", "number", "number", "number"], [this.pointer, params.pointer, _callbackPtr, 0]);
|
|
31049
|
-
return _promise;
|
|
31050
|
-
}
|
|
31051
31317
|
/**
|
|
31052
31318
|
* @description Re-send user verification email
|
|
31053
31319
|
* @param inEmail - User's email address
|