connected-spaces-platform.web 6.7.0 → 6.8.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 -63
- 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 +253 -105
- package/connectedspacesplatform.js +528 -244
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +961 -479
- package/package.json +1 -1
|
@@ -498,6 +498,22 @@ function csp_multiplayer_LockTypeFactory(
|
|
|
498
498
|
ProxyClassFactories["csp_multiplayer_LockType"] =
|
|
499
499
|
csp_multiplayer_LockTypeFactory;
|
|
500
500
|
|
|
501
|
+
function csp_multiplayer_AIChatbotPropertyKeysFactory(
|
|
502
|
+
nativePointer: NativePointer,
|
|
503
|
+
): Multiplayer.AIChatbotPropertyKeys {
|
|
504
|
+
return nativePointer.pointer as Multiplayer.AIChatbotPropertyKeys;
|
|
505
|
+
}
|
|
506
|
+
ProxyClassFactories["csp_multiplayer_AIChatbotPropertyKeys"] =
|
|
507
|
+
csp_multiplayer_AIChatbotPropertyKeysFactory;
|
|
508
|
+
|
|
509
|
+
function csp_multiplayer_AIChatbotVisualStateFactory(
|
|
510
|
+
nativePointer: NativePointer,
|
|
511
|
+
): Multiplayer.AIChatbotVisualState {
|
|
512
|
+
return nativePointer.pointer as Multiplayer.AIChatbotVisualState;
|
|
513
|
+
}
|
|
514
|
+
ProxyClassFactories["csp_multiplayer_AIChatbotVisualState"] =
|
|
515
|
+
csp_multiplayer_AIChatbotVisualStateFactory;
|
|
516
|
+
|
|
501
517
|
function csp_multiplayer_AnimatedModelActionsFactory(
|
|
502
518
|
nativePointer: NativePointer,
|
|
503
519
|
): Multiplayer.AnimatedModelActions {
|
|
@@ -1461,6 +1477,22 @@ function csp_systems_TicketedEventVendorAuthInfoFactory(
|
|
|
1461
1477
|
ProxyClassFactories["csp_systems_TicketedEventVendorAuthInfo"] =
|
|
1462
1478
|
csp_systems_TicketedEventVendorAuthInfoFactory;
|
|
1463
1479
|
|
|
1480
|
+
function csp_systems_ExternalServicesOperationParamsFactory(
|
|
1481
|
+
nativePointer: NativePointer,
|
|
1482
|
+
): NativeClassWrapper {
|
|
1483
|
+
return new Systems.ExternalServicesOperationParams(nativePointer);
|
|
1484
|
+
}
|
|
1485
|
+
ProxyClassFactories["csp_systems_ExternalServicesOperationParams"] =
|
|
1486
|
+
csp_systems_ExternalServicesOperationParamsFactory;
|
|
1487
|
+
|
|
1488
|
+
function csp_systems_AgoraUserTokenParamsFactory(
|
|
1489
|
+
nativePointer: NativePointer,
|
|
1490
|
+
): NativeClassWrapper {
|
|
1491
|
+
return new Systems.AgoraUserTokenParams(nativePointer);
|
|
1492
|
+
}
|
|
1493
|
+
ProxyClassFactories["csp_systems_AgoraUserTokenParams"] =
|
|
1494
|
+
csp_systems_AgoraUserTokenParamsFactory;
|
|
1495
|
+
|
|
1464
1496
|
function csp_systems_HotspotGroupFactory(
|
|
1465
1497
|
nativePointer: NativePointer,
|
|
1466
1498
|
): NativeClassWrapper {
|
|
@@ -1607,22 +1639,6 @@ function csp_systems_LoginTokenInfoFactory(
|
|
|
1607
1639
|
ProxyClassFactories["csp_systems_LoginTokenInfo"] =
|
|
1608
1640
|
csp_systems_LoginTokenInfoFactory;
|
|
1609
1641
|
|
|
1610
|
-
function csp_systems_AgoraUserTokenParamsFactory(
|
|
1611
|
-
nativePointer: NativePointer,
|
|
1612
|
-
): NativeClassWrapper {
|
|
1613
|
-
return new Systems.AgoraUserTokenParams(nativePointer);
|
|
1614
|
-
}
|
|
1615
|
-
ProxyClassFactories["csp_systems_AgoraUserTokenParams"] =
|
|
1616
|
-
csp_systems_AgoraUserTokenParamsFactory;
|
|
1617
|
-
|
|
1618
|
-
function csp_systems_TokenInfoParamsFactory(
|
|
1619
|
-
nativePointer: NativePointer,
|
|
1620
|
-
): NativeClassWrapper {
|
|
1621
|
-
return new Systems.TokenInfoParams(nativePointer);
|
|
1622
|
-
}
|
|
1623
|
-
ProxyClassFactories["csp_systems_TokenInfoParams"] =
|
|
1624
|
-
csp_systems_TokenInfoParamsFactory;
|
|
1625
|
-
|
|
1626
1642
|
function csp_systems_TokenOptionsFactory(
|
|
1627
1643
|
nativePointer: NativePointer,
|
|
1628
1644
|
): NativeClassWrapper {
|
|
@@ -1702,6 +1718,14 @@ function csp_multiplayer_OnlineRealtimeEngineFactory(
|
|
|
1702
1718
|
ProxyClassFactories["csp_multiplayer_OnlineRealtimeEngine"] =
|
|
1703
1719
|
csp_multiplayer_OnlineRealtimeEngineFactory;
|
|
1704
1720
|
|
|
1721
|
+
function csp_multiplayer_AIChatbotSpaceComponentFactory(
|
|
1722
|
+
nativePointer: NativePointer,
|
|
1723
|
+
): NativeClassWrapper {
|
|
1724
|
+
return new Multiplayer.AIChatbotSpaceComponent(nativePointer);
|
|
1725
|
+
}
|
|
1726
|
+
ProxyClassFactories["csp_multiplayer_AIChatbotSpaceComponent"] =
|
|
1727
|
+
csp_multiplayer_AIChatbotSpaceComponentFactory;
|
|
1728
|
+
|
|
1705
1729
|
function csp_multiplayer_AnimatedModelSpaceComponentFactory(
|
|
1706
1730
|
nativePointer: NativePointer,
|
|
1707
1731
|
): NativeClassWrapper {
|
|
@@ -2067,6 +2091,14 @@ function csp_systems_AssetCollectionCountResultFactory(
|
|
|
2067
2091
|
ProxyClassFactories["csp_systems_AssetCollectionCountResult"] =
|
|
2068
2092
|
csp_systems_AssetCollectionCountResultFactory;
|
|
2069
2093
|
|
|
2094
|
+
function csp_systems_AssetCollectionsCopyResultFactory(
|
|
2095
|
+
nativePointer: NativePointer,
|
|
2096
|
+
): NativeClassWrapper {
|
|
2097
|
+
return new Systems.AssetCollectionsCopyResult(nativePointer);
|
|
2098
|
+
}
|
|
2099
|
+
ProxyClassFactories["csp_systems_AssetCollectionsCopyResult"] =
|
|
2100
|
+
csp_systems_AssetCollectionsCopyResultFactory;
|
|
2101
|
+
|
|
2070
2102
|
function csp_systems_AssetSystemFactory(
|
|
2071
2103
|
nativePointer: NativePointer,
|
|
2072
2104
|
): NativeClassWrapper {
|
|
@@ -2218,6 +2250,30 @@ function csp_systems_EventTicketingSystemFactory(
|
|
|
2218
2250
|
ProxyClassFactories["csp_systems_EventTicketingSystem"] =
|
|
2219
2251
|
csp_systems_EventTicketingSystemFactory;
|
|
2220
2252
|
|
|
2253
|
+
function csp_systems_ExternalServiceInvocationResultFactory(
|
|
2254
|
+
nativePointer: NativePointer,
|
|
2255
|
+
): NativeClassWrapper {
|
|
2256
|
+
return new Systems.ExternalServiceInvocationResult(nativePointer);
|
|
2257
|
+
}
|
|
2258
|
+
ProxyClassFactories["csp_systems_ExternalServiceInvocationResult"] =
|
|
2259
|
+
csp_systems_ExternalServiceInvocationResultFactory;
|
|
2260
|
+
|
|
2261
|
+
function csp_systems_GetAgoraTokenResultFactory(
|
|
2262
|
+
nativePointer: NativePointer,
|
|
2263
|
+
): NativeClassWrapper {
|
|
2264
|
+
return new Systems.GetAgoraTokenResult(nativePointer);
|
|
2265
|
+
}
|
|
2266
|
+
ProxyClassFactories["csp_systems_GetAgoraTokenResult"] =
|
|
2267
|
+
csp_systems_GetAgoraTokenResultFactory;
|
|
2268
|
+
|
|
2269
|
+
function csp_systems_ExternalServiceProxySystemFactory(
|
|
2270
|
+
nativePointer: NativePointer,
|
|
2271
|
+
): NativeClassWrapper {
|
|
2272
|
+
return new Systems.ExternalServiceProxySystem(nativePointer);
|
|
2273
|
+
}
|
|
2274
|
+
ProxyClassFactories["csp_systems_ExternalServiceProxySystem"] =
|
|
2275
|
+
csp_systems_ExternalServiceProxySystemFactory;
|
|
2276
|
+
|
|
2221
2277
|
function csp_systems_GraphQLResultFactory(
|
|
2222
2278
|
nativePointer: NativePointer,
|
|
2223
2279
|
): NativeClassWrapper {
|
|
@@ -3608,6 +3664,7 @@ export namespace Multiplayer {
|
|
|
3608
3664
|
Hotspot = 26,
|
|
3609
3665
|
CinematicCamera = 27,
|
|
3610
3666
|
ScreenSharing = 28,
|
|
3667
|
+
AIChatbot = 29,
|
|
3611
3668
|
//,
|
|
3612
3669
|
spare,
|
|
3613
3670
|
values,
|
|
@@ -3713,6 +3770,33 @@ export namespace Multiplayer {
|
|
|
3713
3770
|
}
|
|
3714
3771
|
}
|
|
3715
3772
|
|
|
3773
|
+
export namespace Multiplayer {
|
|
3774
|
+
/**
|
|
3775
|
+
* @description Enumerates the list of properties that can be replicated for a AI chatbot component.
|
|
3776
|
+
*/
|
|
3777
|
+
export enum AIChatbotPropertyKeys {
|
|
3778
|
+
Position = 0,
|
|
3779
|
+
Voice,
|
|
3780
|
+
GuardrailAssetCollectionId,
|
|
3781
|
+
VisualState,
|
|
3782
|
+
Num,
|
|
3783
|
+
}
|
|
3784
|
+
}
|
|
3785
|
+
|
|
3786
|
+
export namespace Multiplayer {
|
|
3787
|
+
/**
|
|
3788
|
+
* @description Enumerates the list of potential visual states that can be replicated for a AI chatbot component.
|
|
3789
|
+
*/
|
|
3790
|
+
export enum AIChatbotVisualState {
|
|
3791
|
+
Waiting = 0,
|
|
3792
|
+
Listening,
|
|
3793
|
+
Thinking,
|
|
3794
|
+
Speaking,
|
|
3795
|
+
Unknown,
|
|
3796
|
+
Num,
|
|
3797
|
+
}
|
|
3798
|
+
}
|
|
3799
|
+
|
|
3716
3800
|
export namespace Multiplayer {
|
|
3717
3801
|
/**
|
|
3718
3802
|
* @description Enumerates the actions that can be performed on an animated model component.
|
|
@@ -21684,6 +21768,47 @@ export namespace Common {
|
|
|
21684
21768
|
}
|
|
21685
21769
|
}
|
|
21686
21770
|
|
|
21771
|
+
/**
|
|
21772
|
+
* @description Copy constructor
|
|
21773
|
+
* @param other - The value to copy.
|
|
21774
|
+
*/
|
|
21775
|
+
static create_other(other: Common.ReplicatedValue): ReplicatedValue {
|
|
21776
|
+
var _ptr = Module._malloc(8);
|
|
21777
|
+
Module.ccall(
|
|
21778
|
+
"csp_common_ReplicatedValue_Ctor_ReplicatedValueRC",
|
|
21779
|
+
"void",
|
|
21780
|
+
["number", "number"],
|
|
21781
|
+
[_ptr, other.pointer],
|
|
21782
|
+
);
|
|
21783
|
+
var _nPtr = getNativePointer(_ptr);
|
|
21784
|
+
|
|
21785
|
+
return new ReplicatedValue(_nPtr);
|
|
21786
|
+
}
|
|
21787
|
+
|
|
21788
|
+
/**
|
|
21789
|
+
* @description Copy assignment operator overload.
|
|
21790
|
+
* @param inValue - Other replicated value to set from.
|
|
21791
|
+
*/
|
|
21792
|
+
// operator=
|
|
21793
|
+
|
|
21794
|
+
/**
|
|
21795
|
+
* @description Move assignment operator overload.
|
|
21796
|
+
* @param inValue - Other replicated value to move from.
|
|
21797
|
+
*/
|
|
21798
|
+
// operator=
|
|
21799
|
+
|
|
21800
|
+
/**
|
|
21801
|
+
* @description Equality operator overload.
|
|
21802
|
+
* @param replicatedValue - Other value to compare to.
|
|
21803
|
+
*/
|
|
21804
|
+
// operator==
|
|
21805
|
+
|
|
21806
|
+
/**
|
|
21807
|
+
* @description Inequality operator overload.
|
|
21808
|
+
* @param replicatedValue - Other value to compare to.
|
|
21809
|
+
*/
|
|
21810
|
+
// operator!=
|
|
21811
|
+
|
|
21687
21812
|
/**
|
|
21688
21813
|
* @description Gets the type of replicated value.
|
|
21689
21814
|
* @return Enum representing all supported replication base types.
|
|
@@ -23811,19 +23936,19 @@ export namespace Common {
|
|
|
23811
23936
|
* @description Set a callback for handling a log. Can be used to debug Connected Spaces Platform within a client application.
|
|
23812
23937
|
* @param inLogCallback - The callback to execute when a log occurs.
|
|
23813
23938
|
*/
|
|
23814
|
-
setLogCallback(callback: (arg1: string) => void) {
|
|
23815
|
-
var _callback = (_stateObject__: number, arg1) => {
|
|
23939
|
+
setLogCallback(callback: (arg1: Common.LogLevel, arg2: string) => void) {
|
|
23940
|
+
var _callback = (_stateObject__: number, arg1, arg2) => {
|
|
23816
23941
|
{
|
|
23817
|
-
const _stringValue = Module.UTF8ToString(
|
|
23818
|
-
free(
|
|
23942
|
+
const _stringValue = Module.UTF8ToString(arg2);
|
|
23943
|
+
free(arg2);
|
|
23819
23944
|
|
|
23820
|
-
|
|
23945
|
+
arg2 = _stringValue;
|
|
23821
23946
|
}
|
|
23822
23947
|
|
|
23823
|
-
callback(arg1);
|
|
23948
|
+
callback(arg1, arg2);
|
|
23824
23949
|
};
|
|
23825
23950
|
|
|
23826
|
-
var _callbackPtr = Module.addFunction(_callback, "
|
|
23951
|
+
var _callbackPtr = Module.addFunction(_callback, "viii");
|
|
23827
23952
|
|
|
23828
23953
|
Module.ccall(
|
|
23829
23954
|
"csp_common_LogSystem_SetLogCallback_void_LogCallbackHandler",
|
|
@@ -27856,6 +27981,28 @@ export namespace Systems {
|
|
|
27856
27981
|
return _nPtr;
|
|
27857
27982
|
}
|
|
27858
27983
|
|
|
27984
|
+
/**
|
|
27985
|
+
* @description Retrieves external services proxy system.
|
|
27986
|
+
* @return Pointer to the external services proxy system class.
|
|
27987
|
+
*/
|
|
27988
|
+
|
|
27989
|
+
getExternalServicesProxySystem(): Systems.ExternalServiceProxySystem {
|
|
27990
|
+
var _ret = Module._malloc(8);
|
|
27991
|
+
|
|
27992
|
+
Module.ccall(
|
|
27993
|
+
"csp_systems_SystemsManager_GetExternalServicesProxySystem_ExternalServiceProxySystemP",
|
|
27994
|
+
"void",
|
|
27995
|
+
["number", "number"],
|
|
27996
|
+
[_ret, this.pointer],
|
|
27997
|
+
);
|
|
27998
|
+
var _nPtr = new Systems.ExternalServiceProxySystem(
|
|
27999
|
+
getNativePointer(_ret),
|
|
28000
|
+
);
|
|
28001
|
+
Module._free(_ret);
|
|
28002
|
+
|
|
28003
|
+
return _nPtr;
|
|
28004
|
+
}
|
|
28005
|
+
|
|
27859
28006
|
getMultiplayerConnection(): Multiplayer.MultiplayerConnection {
|
|
27860
28007
|
var _ret = Module._malloc(8);
|
|
27861
28008
|
|
|
@@ -31317,6 +31464,338 @@ export namespace Systems {
|
|
|
31317
31464
|
}
|
|
31318
31465
|
}
|
|
31319
31466
|
|
|
31467
|
+
export namespace Systems {
|
|
31468
|
+
/**
|
|
31469
|
+
* *******************************************************************************************************************
|
|
31470
|
+
* @description Data structure used when making invocations of the external service proxy.
|
|
31471
|
+
*/
|
|
31472
|
+
export class ExternalServicesOperationParams
|
|
31473
|
+
extends NativeClassWrapper
|
|
31474
|
+
implements INativeResource
|
|
31475
|
+
{
|
|
31476
|
+
/** @internal */
|
|
31477
|
+
constructor(pointer: NativePointer) {
|
|
31478
|
+
super(pointer);
|
|
31479
|
+
}
|
|
31480
|
+
|
|
31481
|
+
static create(): ExternalServicesOperationParams {
|
|
31482
|
+
var _ptr = Module._malloc(8);
|
|
31483
|
+
Module.ccall(
|
|
31484
|
+
"csp_systems_ExternalServicesOperationParams_Ctor",
|
|
31485
|
+
"void",
|
|
31486
|
+
["number"],
|
|
31487
|
+
[_ptr],
|
|
31488
|
+
);
|
|
31489
|
+
var _nPtr = getNativePointer(_ptr);
|
|
31490
|
+
|
|
31491
|
+
return new ExternalServicesOperationParams(_nPtr);
|
|
31492
|
+
}
|
|
31493
|
+
|
|
31494
|
+
delete(): void {
|
|
31495
|
+
if (this.ownsPointer && !this.disposed) {
|
|
31496
|
+
Module.ccall(
|
|
31497
|
+
"csp_systems_ExternalServicesOperationParams_Dtor",
|
|
31498
|
+
"void",
|
|
31499
|
+
["number"],
|
|
31500
|
+
[this.pointer],
|
|
31501
|
+
);
|
|
31502
|
+
|
|
31503
|
+
this.disposed = true;
|
|
31504
|
+
}
|
|
31505
|
+
}
|
|
31506
|
+
|
|
31507
|
+
get serviceName(): string {
|
|
31508
|
+
let _result = Module.ccall(
|
|
31509
|
+
"csp_systems_ExternalServicesOperationParams__Get_ServiceName",
|
|
31510
|
+
"string",
|
|
31511
|
+
["number"],
|
|
31512
|
+
[this.pointer],
|
|
31513
|
+
);
|
|
31514
|
+
|
|
31515
|
+
return _result;
|
|
31516
|
+
}
|
|
31517
|
+
|
|
31518
|
+
set serviceName(value: string) {
|
|
31519
|
+
Module.ccall(
|
|
31520
|
+
"csp_systems_ExternalServicesOperationParams__Set_ServiceName",
|
|
31521
|
+
"void",
|
|
31522
|
+
["number", "string"],
|
|
31523
|
+
[this.pointer, value],
|
|
31524
|
+
);
|
|
31525
|
+
}
|
|
31526
|
+
|
|
31527
|
+
get operationName(): string {
|
|
31528
|
+
let _result = Module.ccall(
|
|
31529
|
+
"csp_systems_ExternalServicesOperationParams__Get_OperationName",
|
|
31530
|
+
"string",
|
|
31531
|
+
["number"],
|
|
31532
|
+
[this.pointer],
|
|
31533
|
+
);
|
|
31534
|
+
|
|
31535
|
+
return _result;
|
|
31536
|
+
}
|
|
31537
|
+
|
|
31538
|
+
set operationName(value: string) {
|
|
31539
|
+
Module.ccall(
|
|
31540
|
+
"csp_systems_ExternalServicesOperationParams__Set_OperationName",
|
|
31541
|
+
"void",
|
|
31542
|
+
["number", "string"],
|
|
31543
|
+
[this.pointer, value],
|
|
31544
|
+
);
|
|
31545
|
+
}
|
|
31546
|
+
|
|
31547
|
+
get setHelp(): boolean {
|
|
31548
|
+
let _result = Module.ccall(
|
|
31549
|
+
"csp_systems_ExternalServicesOperationParams__Get_SetHelp",
|
|
31550
|
+
"boolean",
|
|
31551
|
+
["number"],
|
|
31552
|
+
[this.pointer],
|
|
31553
|
+
);
|
|
31554
|
+
|
|
31555
|
+
return _result;
|
|
31556
|
+
}
|
|
31557
|
+
|
|
31558
|
+
set setHelp(value: boolean) {
|
|
31559
|
+
Module.ccall(
|
|
31560
|
+
"csp_systems_ExternalServicesOperationParams__Set_SetHelp",
|
|
31561
|
+
"void",
|
|
31562
|
+
["number", "boolean"],
|
|
31563
|
+
[this.pointer, value],
|
|
31564
|
+
);
|
|
31565
|
+
}
|
|
31566
|
+
|
|
31567
|
+
get parameters(): Common.Map<string, string> {
|
|
31568
|
+
const _ptr = Module._malloc(8);
|
|
31569
|
+
Module.ccall(
|
|
31570
|
+
"csp_systems_ExternalServicesOperationParams__Get_Parameters",
|
|
31571
|
+
"void",
|
|
31572
|
+
["number", "number"],
|
|
31573
|
+
[_ptr, this.pointer],
|
|
31574
|
+
);
|
|
31575
|
+
|
|
31576
|
+
const _nPtr = getNativePointer(_ptr);
|
|
31577
|
+
return new Common.Map<string, string>(
|
|
31578
|
+
_nPtr,
|
|
31579
|
+
StringFactory,
|
|
31580
|
+
"String",
|
|
31581
|
+
StringFactory,
|
|
31582
|
+
"String",
|
|
31583
|
+
);
|
|
31584
|
+
}
|
|
31585
|
+
|
|
31586
|
+
set parameters(value: Common.Map<string, string>) {
|
|
31587
|
+
Module.ccall(
|
|
31588
|
+
"csp_systems_ExternalServicesOperationParams__Set_Parameters",
|
|
31589
|
+
"void",
|
|
31590
|
+
["number", "number"],
|
|
31591
|
+
[this.pointer, value.pointer],
|
|
31592
|
+
);
|
|
31593
|
+
}
|
|
31594
|
+
}
|
|
31595
|
+
}
|
|
31596
|
+
|
|
31597
|
+
export namespace Systems {
|
|
31598
|
+
/**
|
|
31599
|
+
* *******************************************************************************************************************
|
|
31600
|
+
* @description Specialised data structure that can be used to retrieve an Agora user token via the proxy service.
|
|
31601
|
+
*/
|
|
31602
|
+
export class AgoraUserTokenParams
|
|
31603
|
+
extends NativeClassWrapper
|
|
31604
|
+
implements INativeResource
|
|
31605
|
+
{
|
|
31606
|
+
/** @internal */
|
|
31607
|
+
constructor(pointer: NativePointer) {
|
|
31608
|
+
super(pointer);
|
|
31609
|
+
}
|
|
31610
|
+
|
|
31611
|
+
static create(): AgoraUserTokenParams {
|
|
31612
|
+
var _ptr = Module._malloc(8);
|
|
31613
|
+
Module.ccall(
|
|
31614
|
+
"csp_systems_AgoraUserTokenParams_Ctor",
|
|
31615
|
+
"void",
|
|
31616
|
+
["number"],
|
|
31617
|
+
[_ptr],
|
|
31618
|
+
);
|
|
31619
|
+
var _nPtr = getNativePointer(_ptr);
|
|
31620
|
+
|
|
31621
|
+
return new AgoraUserTokenParams(_nPtr);
|
|
31622
|
+
}
|
|
31623
|
+
|
|
31624
|
+
delete(): void {
|
|
31625
|
+
if (this.ownsPointer && !this.disposed) {
|
|
31626
|
+
Module.ccall(
|
|
31627
|
+
"csp_systems_AgoraUserTokenParams_Dtor",
|
|
31628
|
+
"void",
|
|
31629
|
+
["number"],
|
|
31630
|
+
[this.pointer],
|
|
31631
|
+
);
|
|
31632
|
+
|
|
31633
|
+
this.disposed = true;
|
|
31634
|
+
}
|
|
31635
|
+
}
|
|
31636
|
+
|
|
31637
|
+
get agoraUserId(): string {
|
|
31638
|
+
let _result = Module.ccall(
|
|
31639
|
+
"csp_systems_AgoraUserTokenParams__Get_AgoraUserId",
|
|
31640
|
+
"string",
|
|
31641
|
+
["number"],
|
|
31642
|
+
[this.pointer],
|
|
31643
|
+
);
|
|
31644
|
+
|
|
31645
|
+
return _result;
|
|
31646
|
+
}
|
|
31647
|
+
|
|
31648
|
+
set agoraUserId(value: string) {
|
|
31649
|
+
Module.ccall(
|
|
31650
|
+
"csp_systems_AgoraUserTokenParams__Set_AgoraUserId",
|
|
31651
|
+
"void",
|
|
31652
|
+
["number", "string"],
|
|
31653
|
+
[this.pointer, value],
|
|
31654
|
+
);
|
|
31655
|
+
}
|
|
31656
|
+
|
|
31657
|
+
get channelName(): string {
|
|
31658
|
+
let _result = Module.ccall(
|
|
31659
|
+
"csp_systems_AgoraUserTokenParams__Get_ChannelName",
|
|
31660
|
+
"string",
|
|
31661
|
+
["number"],
|
|
31662
|
+
[this.pointer],
|
|
31663
|
+
);
|
|
31664
|
+
|
|
31665
|
+
return _result;
|
|
31666
|
+
}
|
|
31667
|
+
|
|
31668
|
+
set channelName(value: string) {
|
|
31669
|
+
Module.ccall(
|
|
31670
|
+
"csp_systems_AgoraUserTokenParams__Set_ChannelName",
|
|
31671
|
+
"void",
|
|
31672
|
+
["number", "string"],
|
|
31673
|
+
[this.pointer, value],
|
|
31674
|
+
);
|
|
31675
|
+
}
|
|
31676
|
+
|
|
31677
|
+
get referenceId(): string {
|
|
31678
|
+
let _result = Module.ccall(
|
|
31679
|
+
"csp_systems_AgoraUserTokenParams__Get_ReferenceId",
|
|
31680
|
+
"string",
|
|
31681
|
+
["number"],
|
|
31682
|
+
[this.pointer],
|
|
31683
|
+
);
|
|
31684
|
+
|
|
31685
|
+
return _result;
|
|
31686
|
+
}
|
|
31687
|
+
|
|
31688
|
+
set referenceId(value: string) {
|
|
31689
|
+
Module.ccall(
|
|
31690
|
+
"csp_systems_AgoraUserTokenParams__Set_ReferenceId",
|
|
31691
|
+
"void",
|
|
31692
|
+
["number", "string"],
|
|
31693
|
+
[this.pointer, value],
|
|
31694
|
+
);
|
|
31695
|
+
}
|
|
31696
|
+
|
|
31697
|
+
get lifespan(): number {
|
|
31698
|
+
let _result = Module.ccall(
|
|
31699
|
+
"csp_systems_AgoraUserTokenParams__Get_Lifespan",
|
|
31700
|
+
"number",
|
|
31701
|
+
["number"],
|
|
31702
|
+
[this.pointer],
|
|
31703
|
+
);
|
|
31704
|
+
|
|
31705
|
+
return _result;
|
|
31706
|
+
}
|
|
31707
|
+
|
|
31708
|
+
set lifespan(value: number) {
|
|
31709
|
+
Module.ccall(
|
|
31710
|
+
"csp_systems_AgoraUserTokenParams__Set_Lifespan",
|
|
31711
|
+
"void",
|
|
31712
|
+
["number", "number"],
|
|
31713
|
+
[this.pointer, value],
|
|
31714
|
+
);
|
|
31715
|
+
}
|
|
31716
|
+
|
|
31717
|
+
get readOnly(): boolean {
|
|
31718
|
+
let _result = Module.ccall(
|
|
31719
|
+
"csp_systems_AgoraUserTokenParams__Get_ReadOnly",
|
|
31720
|
+
"boolean",
|
|
31721
|
+
["number"],
|
|
31722
|
+
[this.pointer],
|
|
31723
|
+
);
|
|
31724
|
+
|
|
31725
|
+
return _result;
|
|
31726
|
+
}
|
|
31727
|
+
|
|
31728
|
+
set readOnly(value: boolean) {
|
|
31729
|
+
Module.ccall(
|
|
31730
|
+
"csp_systems_AgoraUserTokenParams__Set_ReadOnly",
|
|
31731
|
+
"void",
|
|
31732
|
+
["number", "boolean"],
|
|
31733
|
+
[this.pointer, value],
|
|
31734
|
+
);
|
|
31735
|
+
}
|
|
31736
|
+
|
|
31737
|
+
get shareAudio(): boolean {
|
|
31738
|
+
let _result = Module.ccall(
|
|
31739
|
+
"csp_systems_AgoraUserTokenParams__Get_ShareAudio",
|
|
31740
|
+
"boolean",
|
|
31741
|
+
["number"],
|
|
31742
|
+
[this.pointer],
|
|
31743
|
+
);
|
|
31744
|
+
|
|
31745
|
+
return _result;
|
|
31746
|
+
}
|
|
31747
|
+
|
|
31748
|
+
set shareAudio(value: boolean) {
|
|
31749
|
+
Module.ccall(
|
|
31750
|
+
"csp_systems_AgoraUserTokenParams__Set_ShareAudio",
|
|
31751
|
+
"void",
|
|
31752
|
+
["number", "boolean"],
|
|
31753
|
+
[this.pointer, value],
|
|
31754
|
+
);
|
|
31755
|
+
}
|
|
31756
|
+
|
|
31757
|
+
get shareVideo(): boolean {
|
|
31758
|
+
let _result = Module.ccall(
|
|
31759
|
+
"csp_systems_AgoraUserTokenParams__Get_ShareVideo",
|
|
31760
|
+
"boolean",
|
|
31761
|
+
["number"],
|
|
31762
|
+
[this.pointer],
|
|
31763
|
+
);
|
|
31764
|
+
|
|
31765
|
+
return _result;
|
|
31766
|
+
}
|
|
31767
|
+
|
|
31768
|
+
set shareVideo(value: boolean) {
|
|
31769
|
+
Module.ccall(
|
|
31770
|
+
"csp_systems_AgoraUserTokenParams__Set_ShareVideo",
|
|
31771
|
+
"void",
|
|
31772
|
+
["number", "boolean"],
|
|
31773
|
+
[this.pointer, value],
|
|
31774
|
+
);
|
|
31775
|
+
}
|
|
31776
|
+
|
|
31777
|
+
get shareScreen(): boolean {
|
|
31778
|
+
let _result = Module.ccall(
|
|
31779
|
+
"csp_systems_AgoraUserTokenParams__Get_ShareScreen",
|
|
31780
|
+
"boolean",
|
|
31781
|
+
["number"],
|
|
31782
|
+
[this.pointer],
|
|
31783
|
+
);
|
|
31784
|
+
|
|
31785
|
+
return _result;
|
|
31786
|
+
}
|
|
31787
|
+
|
|
31788
|
+
set shareScreen(value: boolean) {
|
|
31789
|
+
Module.ccall(
|
|
31790
|
+
"csp_systems_AgoraUserTokenParams__Set_ShareScreen",
|
|
31791
|
+
"void",
|
|
31792
|
+
["number", "boolean"],
|
|
31793
|
+
[this.pointer, value],
|
|
31794
|
+
);
|
|
31795
|
+
}
|
|
31796
|
+
}
|
|
31797
|
+
}
|
|
31798
|
+
|
|
31320
31799
|
export namespace Systems {
|
|
31321
31800
|
/**
|
|
31322
31801
|
@ingroup HotspotSequence System
|
|
@@ -33960,336 +34439,6 @@ export namespace Systems {
|
|
|
33960
34439
|
}
|
|
33961
34440
|
}
|
|
33962
34441
|
|
|
33963
|
-
export namespace Systems {
|
|
33964
|
-
/**
|
|
33965
|
-
* @description Data structure for an Agora user token, giving userID, referenceID, channel name and settings regarding sharing of audio/video/screenshare.
|
|
33966
|
-
*/
|
|
33967
|
-
export class AgoraUserTokenParams
|
|
33968
|
-
extends NativeClassWrapper
|
|
33969
|
-
implements INativeResource
|
|
33970
|
-
{
|
|
33971
|
-
/** @internal */
|
|
33972
|
-
constructor(pointer: NativePointer) {
|
|
33973
|
-
super(pointer);
|
|
33974
|
-
}
|
|
33975
|
-
|
|
33976
|
-
static create(): AgoraUserTokenParams {
|
|
33977
|
-
var _ptr = Module._malloc(8);
|
|
33978
|
-
Module.ccall(
|
|
33979
|
-
"csp_systems_AgoraUserTokenParams_Ctor",
|
|
33980
|
-
"void",
|
|
33981
|
-
["number"],
|
|
33982
|
-
[_ptr],
|
|
33983
|
-
);
|
|
33984
|
-
var _nPtr = getNativePointer(_ptr);
|
|
33985
|
-
|
|
33986
|
-
return new AgoraUserTokenParams(_nPtr);
|
|
33987
|
-
}
|
|
33988
|
-
|
|
33989
|
-
delete(): void {
|
|
33990
|
-
if (this.ownsPointer && !this.disposed) {
|
|
33991
|
-
Module.ccall(
|
|
33992
|
-
"csp_systems_AgoraUserTokenParams_Dtor",
|
|
33993
|
-
"void",
|
|
33994
|
-
["number"],
|
|
33995
|
-
[this.pointer],
|
|
33996
|
-
);
|
|
33997
|
-
|
|
33998
|
-
this.disposed = true;
|
|
33999
|
-
}
|
|
34000
|
-
}
|
|
34001
|
-
|
|
34002
|
-
get agoraUserId(): string {
|
|
34003
|
-
let _result = Module.ccall(
|
|
34004
|
-
"csp_systems_AgoraUserTokenParams__Get_AgoraUserId",
|
|
34005
|
-
"string",
|
|
34006
|
-
["number"],
|
|
34007
|
-
[this.pointer],
|
|
34008
|
-
);
|
|
34009
|
-
|
|
34010
|
-
return _result;
|
|
34011
|
-
}
|
|
34012
|
-
|
|
34013
|
-
set agoraUserId(value: string) {
|
|
34014
|
-
Module.ccall(
|
|
34015
|
-
"csp_systems_AgoraUserTokenParams__Set_AgoraUserId",
|
|
34016
|
-
"void",
|
|
34017
|
-
["number", "string"],
|
|
34018
|
-
[this.pointer, value],
|
|
34019
|
-
);
|
|
34020
|
-
}
|
|
34021
|
-
|
|
34022
|
-
get channelName(): string {
|
|
34023
|
-
let _result = Module.ccall(
|
|
34024
|
-
"csp_systems_AgoraUserTokenParams__Get_ChannelName",
|
|
34025
|
-
"string",
|
|
34026
|
-
["number"],
|
|
34027
|
-
[this.pointer],
|
|
34028
|
-
);
|
|
34029
|
-
|
|
34030
|
-
return _result;
|
|
34031
|
-
}
|
|
34032
|
-
|
|
34033
|
-
set channelName(value: string) {
|
|
34034
|
-
Module.ccall(
|
|
34035
|
-
"csp_systems_AgoraUserTokenParams__Set_ChannelName",
|
|
34036
|
-
"void",
|
|
34037
|
-
["number", "string"],
|
|
34038
|
-
[this.pointer, value],
|
|
34039
|
-
);
|
|
34040
|
-
}
|
|
34041
|
-
|
|
34042
|
-
get referenceId(): string {
|
|
34043
|
-
let _result = Module.ccall(
|
|
34044
|
-
"csp_systems_AgoraUserTokenParams__Get_ReferenceId",
|
|
34045
|
-
"string",
|
|
34046
|
-
["number"],
|
|
34047
|
-
[this.pointer],
|
|
34048
|
-
);
|
|
34049
|
-
|
|
34050
|
-
return _result;
|
|
34051
|
-
}
|
|
34052
|
-
|
|
34053
|
-
set referenceId(value: string) {
|
|
34054
|
-
Module.ccall(
|
|
34055
|
-
"csp_systems_AgoraUserTokenParams__Set_ReferenceId",
|
|
34056
|
-
"void",
|
|
34057
|
-
["number", "string"],
|
|
34058
|
-
[this.pointer, value],
|
|
34059
|
-
);
|
|
34060
|
-
}
|
|
34061
|
-
|
|
34062
|
-
get lifespan(): number {
|
|
34063
|
-
let _result = Module.ccall(
|
|
34064
|
-
"csp_systems_AgoraUserTokenParams__Get_Lifespan",
|
|
34065
|
-
"number",
|
|
34066
|
-
["number"],
|
|
34067
|
-
[this.pointer],
|
|
34068
|
-
);
|
|
34069
|
-
|
|
34070
|
-
return _result;
|
|
34071
|
-
}
|
|
34072
|
-
|
|
34073
|
-
set lifespan(value: number) {
|
|
34074
|
-
Module.ccall(
|
|
34075
|
-
"csp_systems_AgoraUserTokenParams__Set_Lifespan",
|
|
34076
|
-
"void",
|
|
34077
|
-
["number", "number"],
|
|
34078
|
-
[this.pointer, value],
|
|
34079
|
-
);
|
|
34080
|
-
}
|
|
34081
|
-
|
|
34082
|
-
get readOnly(): boolean {
|
|
34083
|
-
let _result = Module.ccall(
|
|
34084
|
-
"csp_systems_AgoraUserTokenParams__Get_ReadOnly",
|
|
34085
|
-
"boolean",
|
|
34086
|
-
["number"],
|
|
34087
|
-
[this.pointer],
|
|
34088
|
-
);
|
|
34089
|
-
|
|
34090
|
-
return _result;
|
|
34091
|
-
}
|
|
34092
|
-
|
|
34093
|
-
set readOnly(value: boolean) {
|
|
34094
|
-
Module.ccall(
|
|
34095
|
-
"csp_systems_AgoraUserTokenParams__Set_ReadOnly",
|
|
34096
|
-
"void",
|
|
34097
|
-
["number", "boolean"],
|
|
34098
|
-
[this.pointer, value],
|
|
34099
|
-
);
|
|
34100
|
-
}
|
|
34101
|
-
|
|
34102
|
-
get shareAudio(): boolean {
|
|
34103
|
-
let _result = Module.ccall(
|
|
34104
|
-
"csp_systems_AgoraUserTokenParams__Get_ShareAudio",
|
|
34105
|
-
"boolean",
|
|
34106
|
-
["number"],
|
|
34107
|
-
[this.pointer],
|
|
34108
|
-
);
|
|
34109
|
-
|
|
34110
|
-
return _result;
|
|
34111
|
-
}
|
|
34112
|
-
|
|
34113
|
-
set shareAudio(value: boolean) {
|
|
34114
|
-
Module.ccall(
|
|
34115
|
-
"csp_systems_AgoraUserTokenParams__Set_ShareAudio",
|
|
34116
|
-
"void",
|
|
34117
|
-
["number", "boolean"],
|
|
34118
|
-
[this.pointer, value],
|
|
34119
|
-
);
|
|
34120
|
-
}
|
|
34121
|
-
|
|
34122
|
-
get shareVideo(): boolean {
|
|
34123
|
-
let _result = Module.ccall(
|
|
34124
|
-
"csp_systems_AgoraUserTokenParams__Get_ShareVideo",
|
|
34125
|
-
"boolean",
|
|
34126
|
-
["number"],
|
|
34127
|
-
[this.pointer],
|
|
34128
|
-
);
|
|
34129
|
-
|
|
34130
|
-
return _result;
|
|
34131
|
-
}
|
|
34132
|
-
|
|
34133
|
-
set shareVideo(value: boolean) {
|
|
34134
|
-
Module.ccall(
|
|
34135
|
-
"csp_systems_AgoraUserTokenParams__Set_ShareVideo",
|
|
34136
|
-
"void",
|
|
34137
|
-
["number", "boolean"],
|
|
34138
|
-
[this.pointer, value],
|
|
34139
|
-
);
|
|
34140
|
-
}
|
|
34141
|
-
|
|
34142
|
-
get shareScreen(): boolean {
|
|
34143
|
-
let _result = Module.ccall(
|
|
34144
|
-
"csp_systems_AgoraUserTokenParams__Get_ShareScreen",
|
|
34145
|
-
"boolean",
|
|
34146
|
-
["number"],
|
|
34147
|
-
[this.pointer],
|
|
34148
|
-
);
|
|
34149
|
-
|
|
34150
|
-
return _result;
|
|
34151
|
-
}
|
|
34152
|
-
|
|
34153
|
-
set shareScreen(value: boolean) {
|
|
34154
|
-
Module.ccall(
|
|
34155
|
-
"csp_systems_AgoraUserTokenParams__Set_ShareScreen",
|
|
34156
|
-
"void",
|
|
34157
|
-
["number", "boolean"],
|
|
34158
|
-
[this.pointer, value],
|
|
34159
|
-
);
|
|
34160
|
-
}
|
|
34161
|
-
}
|
|
34162
|
-
}
|
|
34163
|
-
|
|
34164
|
-
export namespace Systems {
|
|
34165
|
-
/**
|
|
34166
|
-
* @description Data structure for a custom service proxy posting, giving service name, operation name, set help and parameters
|
|
34167
|
-
*/
|
|
34168
|
-
export class TokenInfoParams
|
|
34169
|
-
extends NativeClassWrapper
|
|
34170
|
-
implements INativeResource
|
|
34171
|
-
{
|
|
34172
|
-
/** @internal */
|
|
34173
|
-
constructor(pointer: NativePointer) {
|
|
34174
|
-
super(pointer);
|
|
34175
|
-
}
|
|
34176
|
-
|
|
34177
|
-
static create(): TokenInfoParams {
|
|
34178
|
-
var _ptr = Module._malloc(8);
|
|
34179
|
-
Module.ccall(
|
|
34180
|
-
"csp_systems_TokenInfoParams_Ctor",
|
|
34181
|
-
"void",
|
|
34182
|
-
["number"],
|
|
34183
|
-
[_ptr],
|
|
34184
|
-
);
|
|
34185
|
-
var _nPtr = getNativePointer(_ptr);
|
|
34186
|
-
|
|
34187
|
-
return new TokenInfoParams(_nPtr);
|
|
34188
|
-
}
|
|
34189
|
-
|
|
34190
|
-
delete(): void {
|
|
34191
|
-
if (this.ownsPointer && !this.disposed) {
|
|
34192
|
-
Module.ccall(
|
|
34193
|
-
"csp_systems_TokenInfoParams_Dtor",
|
|
34194
|
-
"void",
|
|
34195
|
-
["number"],
|
|
34196
|
-
[this.pointer],
|
|
34197
|
-
);
|
|
34198
|
-
|
|
34199
|
-
this.disposed = true;
|
|
34200
|
-
}
|
|
34201
|
-
}
|
|
34202
|
-
|
|
34203
|
-
get serviceName(): string {
|
|
34204
|
-
let _result = Module.ccall(
|
|
34205
|
-
"csp_systems_TokenInfoParams__Get_ServiceName",
|
|
34206
|
-
"string",
|
|
34207
|
-
["number"],
|
|
34208
|
-
[this.pointer],
|
|
34209
|
-
);
|
|
34210
|
-
|
|
34211
|
-
return _result;
|
|
34212
|
-
}
|
|
34213
|
-
|
|
34214
|
-
set serviceName(value: string) {
|
|
34215
|
-
Module.ccall(
|
|
34216
|
-
"csp_systems_TokenInfoParams__Set_ServiceName",
|
|
34217
|
-
"void",
|
|
34218
|
-
["number", "string"],
|
|
34219
|
-
[this.pointer, value],
|
|
34220
|
-
);
|
|
34221
|
-
}
|
|
34222
|
-
|
|
34223
|
-
get operationName(): string {
|
|
34224
|
-
let _result = Module.ccall(
|
|
34225
|
-
"csp_systems_TokenInfoParams__Get_OperationName",
|
|
34226
|
-
"string",
|
|
34227
|
-
["number"],
|
|
34228
|
-
[this.pointer],
|
|
34229
|
-
);
|
|
34230
|
-
|
|
34231
|
-
return _result;
|
|
34232
|
-
}
|
|
34233
|
-
|
|
34234
|
-
set operationName(value: string) {
|
|
34235
|
-
Module.ccall(
|
|
34236
|
-
"csp_systems_TokenInfoParams__Set_OperationName",
|
|
34237
|
-
"void",
|
|
34238
|
-
["number", "string"],
|
|
34239
|
-
[this.pointer, value],
|
|
34240
|
-
);
|
|
34241
|
-
}
|
|
34242
|
-
|
|
34243
|
-
get setHelp(): boolean {
|
|
34244
|
-
let _result = Module.ccall(
|
|
34245
|
-
"csp_systems_TokenInfoParams__Get_SetHelp",
|
|
34246
|
-
"boolean",
|
|
34247
|
-
["number"],
|
|
34248
|
-
[this.pointer],
|
|
34249
|
-
);
|
|
34250
|
-
|
|
34251
|
-
return _result;
|
|
34252
|
-
}
|
|
34253
|
-
|
|
34254
|
-
set setHelp(value: boolean) {
|
|
34255
|
-
Module.ccall(
|
|
34256
|
-
"csp_systems_TokenInfoParams__Set_SetHelp",
|
|
34257
|
-
"void",
|
|
34258
|
-
["number", "boolean"],
|
|
34259
|
-
[this.pointer, value],
|
|
34260
|
-
);
|
|
34261
|
-
}
|
|
34262
|
-
|
|
34263
|
-
get parameters(): Common.Map<string, string> {
|
|
34264
|
-
const _ptr = Module._malloc(8);
|
|
34265
|
-
Module.ccall(
|
|
34266
|
-
"csp_systems_TokenInfoParams__Get_Parameters",
|
|
34267
|
-
"void",
|
|
34268
|
-
["number", "number"],
|
|
34269
|
-
[_ptr, this.pointer],
|
|
34270
|
-
);
|
|
34271
|
-
|
|
34272
|
-
const _nPtr = getNativePointer(_ptr);
|
|
34273
|
-
return new Common.Map<string, string>(
|
|
34274
|
-
_nPtr,
|
|
34275
|
-
StringFactory,
|
|
34276
|
-
"String",
|
|
34277
|
-
StringFactory,
|
|
34278
|
-
"String",
|
|
34279
|
-
);
|
|
34280
|
-
}
|
|
34281
|
-
|
|
34282
|
-
set parameters(value: Common.Map<string, string>) {
|
|
34283
|
-
Module.ccall(
|
|
34284
|
-
"csp_systems_TokenInfoParams__Set_Parameters",
|
|
34285
|
-
"void",
|
|
34286
|
-
["number", "number"],
|
|
34287
|
-
[this.pointer, value.pointer],
|
|
34288
|
-
);
|
|
34289
|
-
}
|
|
34290
|
-
}
|
|
34291
|
-
}
|
|
34292
|
-
|
|
34293
34442
|
export namespace Systems {
|
|
34294
34443
|
/**
|
|
34295
34444
|
* @description Data structure for overrides to the default token options
|
|
@@ -36432,6 +36581,193 @@ export namespace Multiplayer {
|
|
|
36432
36581
|
}
|
|
36433
36582
|
}
|
|
36434
36583
|
|
|
36584
|
+
export namespace Multiplayer {
|
|
36585
|
+
export class AIChatbotSpaceComponent
|
|
36586
|
+
extends Multiplayer.ComponentBase
|
|
36587
|
+
implements Multiplayer.IPositionComponent, INativeResource
|
|
36588
|
+
{
|
|
36589
|
+
/** @internal */
|
|
36590
|
+
constructor(pointer: NativePointer) {
|
|
36591
|
+
super(pointer);
|
|
36592
|
+
}
|
|
36593
|
+
|
|
36594
|
+
static fromComponentBase(
|
|
36595
|
+
baseInstance: Multiplayer.ComponentBase,
|
|
36596
|
+
): Multiplayer.AIChatbotSpaceComponent {
|
|
36597
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
36598
|
+
return new Multiplayer.AIChatbotSpaceComponent(
|
|
36599
|
+
new NativePointer(
|
|
36600
|
+
nativeClassWrapper.pointer,
|
|
36601
|
+
nativeClassWrapper.ownsPointer,
|
|
36602
|
+
),
|
|
36603
|
+
);
|
|
36604
|
+
}
|
|
36605
|
+
|
|
36606
|
+
static create_logSystem_parent(
|
|
36607
|
+
logSystem: Common.LogSystem,
|
|
36608
|
+
parent: Multiplayer.SpaceEntity,
|
|
36609
|
+
): AIChatbotSpaceComponent {
|
|
36610
|
+
var _ptr = Module._malloc(8);
|
|
36611
|
+
Module.ccall(
|
|
36612
|
+
"csp_multiplayer_AIChatbotSpaceComponent_Ctor_LogSystemP_SpaceEntityP",
|
|
36613
|
+
"void",
|
|
36614
|
+
["number", "number", "number"],
|
|
36615
|
+
[_ptr, logSystem.pointer, parent.pointer],
|
|
36616
|
+
);
|
|
36617
|
+
var _nPtr = getNativePointer(_ptr);
|
|
36618
|
+
|
|
36619
|
+
return new AIChatbotSpaceComponent(_nPtr);
|
|
36620
|
+
}
|
|
36621
|
+
|
|
36622
|
+
/**
|
|
36623
|
+
* @description Gets the voice name of the TTS model associated with this AI chatbot.
|
|
36624
|
+
* @return The name of the TTS voice associated with this AI chatbot.
|
|
36625
|
+
*/
|
|
36626
|
+
|
|
36627
|
+
getVoice(): string {
|
|
36628
|
+
let _result = Module.ccall(
|
|
36629
|
+
"csp_multiplayer_AIChatbotSpaceComponent_GetVoiceC_StringRC",
|
|
36630
|
+
"number",
|
|
36631
|
+
["number"],
|
|
36632
|
+
[this.pointer],
|
|
36633
|
+
);
|
|
36634
|
+
|
|
36635
|
+
const _resultString = Module.UTF8ToString(_result);
|
|
36636
|
+
free(_result);
|
|
36637
|
+
|
|
36638
|
+
_result = _resultString;
|
|
36639
|
+
|
|
36640
|
+
return _result;
|
|
36641
|
+
}
|
|
36642
|
+
|
|
36643
|
+
/**
|
|
36644
|
+
* @description Sets the voice name of the TTS model associated with this AI chatbot.
|
|
36645
|
+
* @param value - The name of the TTS voice associated with this AI chatbot.
|
|
36646
|
+
*/
|
|
36647
|
+
|
|
36648
|
+
setVoice(value: string): void {
|
|
36649
|
+
Module.ccall(
|
|
36650
|
+
"csp_multiplayer_AIChatbotSpaceComponent_SetVoice_void_StringRC",
|
|
36651
|
+
"void",
|
|
36652
|
+
["number", "string"],
|
|
36653
|
+
[this.pointer, value],
|
|
36654
|
+
);
|
|
36655
|
+
}
|
|
36656
|
+
|
|
36657
|
+
/**
|
|
36658
|
+
* @description Gets the ID of the guardrail asset associated with this AI chatbot.
|
|
36659
|
+
* @return The ID of the guardrail asset collection associated with this AI chatbot.
|
|
36660
|
+
*/
|
|
36661
|
+
|
|
36662
|
+
getGuardrailAssetCollectionId(): string {
|
|
36663
|
+
let _result = Module.ccall(
|
|
36664
|
+
"csp_multiplayer_AIChatbotSpaceComponent_GetGuardrailAssetCollectionIdC_StringRC",
|
|
36665
|
+
"number",
|
|
36666
|
+
["number"],
|
|
36667
|
+
[this.pointer],
|
|
36668
|
+
);
|
|
36669
|
+
|
|
36670
|
+
const _resultString = Module.UTF8ToString(_result);
|
|
36671
|
+
free(_result);
|
|
36672
|
+
|
|
36673
|
+
_result = _resultString;
|
|
36674
|
+
|
|
36675
|
+
return _result;
|
|
36676
|
+
}
|
|
36677
|
+
|
|
36678
|
+
/**
|
|
36679
|
+
* @description Sets the ID of the guardrail asset associated with this AI chatbot.
|
|
36680
|
+
* @param value - The ID of the guardrail asset collection associated with this AI chatbot.
|
|
36681
|
+
*/
|
|
36682
|
+
|
|
36683
|
+
setGuardrailAssetCollectionId(value: string): void {
|
|
36684
|
+
Module.ccall(
|
|
36685
|
+
"csp_multiplayer_AIChatbotSpaceComponent_SetGuardrailAssetCollectionId_void_StringRC",
|
|
36686
|
+
"void",
|
|
36687
|
+
["number", "string"],
|
|
36688
|
+
[this.pointer, value],
|
|
36689
|
+
);
|
|
36690
|
+
}
|
|
36691
|
+
|
|
36692
|
+
/**
|
|
36693
|
+
* @description Retrieves the visual state of the AI chatbot for this component.
|
|
36694
|
+
* @return The visual state of the AI chatbot.
|
|
36695
|
+
*/
|
|
36696
|
+
|
|
36697
|
+
getVisualState(): Multiplayer.AIChatbotVisualState {
|
|
36698
|
+
let _result = Module.ccall(
|
|
36699
|
+
"csp_multiplayer_AIChatbotSpaceComponent_GetVisualStateC_AIChatbotVisualState",
|
|
36700
|
+
"number",
|
|
36701
|
+
["number"],
|
|
36702
|
+
[this.pointer],
|
|
36703
|
+
);
|
|
36704
|
+
|
|
36705
|
+
return _result;
|
|
36706
|
+
}
|
|
36707
|
+
|
|
36708
|
+
/**
|
|
36709
|
+
* @description Sets the visual state of the AI chatbot for this component.
|
|
36710
|
+
* @param value - The visual state of the AI chatbot.
|
|
36711
|
+
*/
|
|
36712
|
+
|
|
36713
|
+
setVisualState(value: Multiplayer.AIChatbotVisualState): void {
|
|
36714
|
+
Module.ccall(
|
|
36715
|
+
"csp_multiplayer_AIChatbotSpaceComponent_SetVisualState_void_AIChatbotVisualState",
|
|
36716
|
+
"void",
|
|
36717
|
+
["number", "number"],
|
|
36718
|
+
[this.pointer, value],
|
|
36719
|
+
);
|
|
36720
|
+
}
|
|
36721
|
+
|
|
36722
|
+
/**
|
|
36723
|
+
* \addtogroup IPositionComponent
|
|
36724
|
+
@{
|
|
36725
|
+
@copydoc IPositionComponent::GetPosition()
|
|
36726
|
+
*/
|
|
36727
|
+
|
|
36728
|
+
getPosition(): Common.Vector3 {
|
|
36729
|
+
var _ret = Module._malloc(8);
|
|
36730
|
+
|
|
36731
|
+
Module.ccall(
|
|
36732
|
+
"csp_multiplayer_AIChatbotSpaceComponent_GetPositionC_Vector3RC",
|
|
36733
|
+
"void",
|
|
36734
|
+
["number", "number"],
|
|
36735
|
+
[_ret, this.pointer],
|
|
36736
|
+
);
|
|
36737
|
+
var _nPtr = new Common.Vector3(getNativePointer(_ret));
|
|
36738
|
+
Module._free(_ret);
|
|
36739
|
+
|
|
36740
|
+
return _nPtr;
|
|
36741
|
+
}
|
|
36742
|
+
|
|
36743
|
+
/**
|
|
36744
|
+
@copydoc IPositionComponent::SetPosition()
|
|
36745
|
+
*/
|
|
36746
|
+
|
|
36747
|
+
setPosition(value: Common.Vector3): void {
|
|
36748
|
+
Module.ccall(
|
|
36749
|
+
"csp_multiplayer_AIChatbotSpaceComponent_SetPosition_void_Vector3RC",
|
|
36750
|
+
"void",
|
|
36751
|
+
["number", "number"],
|
|
36752
|
+
[this.pointer, value.pointer],
|
|
36753
|
+
);
|
|
36754
|
+
}
|
|
36755
|
+
|
|
36756
|
+
delete(): void {
|
|
36757
|
+
if (this.ownsPointer && !this.disposed) {
|
|
36758
|
+
Module.ccall(
|
|
36759
|
+
"csp_multiplayer_AIChatbotSpaceComponent_Dtor",
|
|
36760
|
+
"void",
|
|
36761
|
+
["number"],
|
|
36762
|
+
[this.pointer],
|
|
36763
|
+
);
|
|
36764
|
+
|
|
36765
|
+
this.disposed = true;
|
|
36766
|
+
}
|
|
36767
|
+
}
|
|
36768
|
+
}
|
|
36769
|
+
}
|
|
36770
|
+
|
|
36435
36771
|
export namespace Multiplayer {
|
|
36436
36772
|
/**
|
|
36437
36773
|
@ingroup AnimatedModelSpaceComponent
|
|
@@ -41992,7 +42328,7 @@ export namespace Multiplayer {
|
|
|
41992
42328
|
}
|
|
41993
42329
|
|
|
41994
42330
|
/**
|
|
41995
|
-
* @description Sets the type of fog
|
|
42331
|
+
* @description Sets the type of fog to be used by this fog component.
|
|
41996
42332
|
* @param value - The modality of fog to be used by this component.
|
|
41997
42333
|
*/
|
|
41998
42334
|
|
|
@@ -42136,10 +42472,9 @@ export namespace Multiplayer {
|
|
|
42136
42472
|
|
|
42137
42473
|
/**
|
|
42138
42474
|
@}
|
|
42139
|
-
* @description
|
|
42140
|
-
*
|
|
42141
|
-
*
|
|
42142
|
-
* @return Current start distance
|
|
42475
|
+
* @description Gets start distance.
|
|
42476
|
+
* NOTE: Distance from camera that the fog will start. 0 = this property has no effect.
|
|
42477
|
+
* @return Current start distance.
|
|
42143
42478
|
*/
|
|
42144
42479
|
|
|
42145
42480
|
getStartDistance(): number {
|
|
@@ -42154,10 +42489,9 @@ export namespace Multiplayer {
|
|
|
42154
42489
|
}
|
|
42155
42490
|
|
|
42156
42491
|
/**
|
|
42157
|
-
* @description
|
|
42158
|
-
*
|
|
42159
|
-
*
|
|
42160
|
-
* @param value - Current start distance
|
|
42492
|
+
* @description Sets start distance.
|
|
42493
|
+
* NOTE: Distance from camera that the fog will start. 0 = this property has no effect.
|
|
42494
|
+
* @param value - Start distance.
|
|
42161
42495
|
*/
|
|
42162
42496
|
|
|
42163
42497
|
setStartDistance(value: number): void {
|
|
@@ -42173,10 +42507,9 @@ export namespace Multiplayer {
|
|
|
42173
42507
|
}
|
|
42174
42508
|
|
|
42175
42509
|
/**
|
|
42176
|
-
* @description
|
|
42177
|
-
*
|
|
42178
|
-
*
|
|
42179
|
-
* @return Current end distance
|
|
42510
|
+
* @description Gets end distance.
|
|
42511
|
+
* NOTE: Objects passed this distance will not be affected by fog. 0 = this property has no effect.
|
|
42512
|
+
* @return Current end distance.
|
|
42180
42513
|
*/
|
|
42181
42514
|
|
|
42182
42515
|
getEndDistance(): number {
|
|
@@ -42191,10 +42524,9 @@ export namespace Multiplayer {
|
|
|
42191
42524
|
}
|
|
42192
42525
|
|
|
42193
42526
|
/**
|
|
42194
|
-
* @description
|
|
42195
|
-
*
|
|
42196
|
-
*
|
|
42197
|
-
* @param value - Current end distance
|
|
42527
|
+
* @description Sets end distance.
|
|
42528
|
+
* NOTE: Objects passed this distance will not be affected by fog. 0 = this property has no effect.
|
|
42529
|
+
* @param value - End distance.
|
|
42198
42530
|
*/
|
|
42199
42531
|
|
|
42200
42532
|
setEndDistance(value: number): void {
|
|
@@ -42210,8 +42542,8 @@ export namespace Multiplayer {
|
|
|
42210
42542
|
}
|
|
42211
42543
|
|
|
42212
42544
|
/**
|
|
42213
|
-
* @description
|
|
42214
|
-
* @return Current fog color
|
|
42545
|
+
* @description Gets fog color.
|
|
42546
|
+
* @return Current fog color.
|
|
42215
42547
|
*/
|
|
42216
42548
|
|
|
42217
42549
|
getColor(): Common.Vector3 {
|
|
@@ -42230,8 +42562,8 @@ export namespace Multiplayer {
|
|
|
42230
42562
|
}
|
|
42231
42563
|
|
|
42232
42564
|
/**
|
|
42233
|
-
* @description
|
|
42234
|
-
* @param value -
|
|
42565
|
+
* @description Sets fog color.
|
|
42566
|
+
* @param value - Fog color.
|
|
42235
42567
|
*/
|
|
42236
42568
|
|
|
42237
42569
|
setColor(value: Common.Vector3): void {
|
|
@@ -42244,9 +42576,8 @@ export namespace Multiplayer {
|
|
|
42244
42576
|
}
|
|
42245
42577
|
|
|
42246
42578
|
/**
|
|
42247
|
-
* @description
|
|
42248
|
-
*
|
|
42249
|
-
* @return Current Global density factor
|
|
42579
|
+
* @description Gets global density factor.
|
|
42580
|
+
* @return Current global density factor.
|
|
42250
42581
|
*/
|
|
42251
42582
|
|
|
42252
42583
|
getDensity(): number {
|
|
@@ -42261,9 +42592,8 @@ export namespace Multiplayer {
|
|
|
42261
42592
|
}
|
|
42262
42593
|
|
|
42263
42594
|
/**
|
|
42264
|
-
* @description
|
|
42265
|
-
*
|
|
42266
|
-
* @param value - Global density factor
|
|
42595
|
+
* @description Sets global density factor.
|
|
42596
|
+
* @param value - Global density factor.
|
|
42267
42597
|
*/
|
|
42268
42598
|
|
|
42269
42599
|
setDensity(value: number): void {
|
|
@@ -42279,9 +42609,9 @@ export namespace Multiplayer {
|
|
|
42279
42609
|
}
|
|
42280
42610
|
|
|
42281
42611
|
/**
|
|
42282
|
-
* @description
|
|
42283
|
-
*
|
|
42284
|
-
* @return Current
|
|
42612
|
+
* @description Gets Height density factor.
|
|
42613
|
+
* NOTE: Controls how the density increases and height decreases. Smaller values make the visible transition larger.
|
|
42614
|
+
* @return Current height density factor.
|
|
42285
42615
|
*/
|
|
42286
42616
|
|
|
42287
42617
|
getHeightFalloff(): number {
|
|
@@ -42296,9 +42626,9 @@ export namespace Multiplayer {
|
|
|
42296
42626
|
}
|
|
42297
42627
|
|
|
42298
42628
|
/**
|
|
42299
|
-
* @description
|
|
42300
|
-
*
|
|
42301
|
-
* @param value - Height density factor
|
|
42629
|
+
* @description Sets Height density factor.
|
|
42630
|
+
* NOTE: Controls how the density increases and height decreases. Smaller values make the visible transition larger.
|
|
42631
|
+
* @param value - Height density factor.
|
|
42302
42632
|
*/
|
|
42303
42633
|
|
|
42304
42634
|
setHeightFalloff(value: number): void {
|
|
@@ -42314,11 +42644,9 @@ export namespace Multiplayer {
|
|
|
42314
42644
|
}
|
|
42315
42645
|
|
|
42316
42646
|
/**
|
|
42317
|
-
* @description
|
|
42318
|
-
*
|
|
42319
|
-
*
|
|
42320
|
-
* Note: 0 = fog colour will have no impact.
|
|
42321
|
-
* @return Current Maximum opacity of the Fog
|
|
42647
|
+
* @description Gets maximum opacity of the fog.
|
|
42648
|
+
* NOTE: 1 = fog becomes fully opaque at a distance and replaces the scene colour completely. 0 = fog colour will have no impact.
|
|
42649
|
+
* @return Current maximum opacity.
|
|
42322
42650
|
*/
|
|
42323
42651
|
|
|
42324
42652
|
getMaxOpacity(): number {
|
|
@@ -42333,8 +42661,9 @@ export namespace Multiplayer {
|
|
|
42333
42661
|
}
|
|
42334
42662
|
|
|
42335
42663
|
/**
|
|
42336
|
-
* @description
|
|
42337
|
-
*
|
|
42664
|
+
* @description Sets maximum opacity of the fog.
|
|
42665
|
+
* NOTE: 1 = fog becomes fully opaque at a distance and replaces the scene colour completely. 0 = fog colour will have no impact.
|
|
42666
|
+
* @param value - Maximum opacity of the fog.
|
|
42338
42667
|
*/
|
|
42339
42668
|
|
|
42340
42669
|
setMaxOpacity(value: number): void {
|
|
@@ -42350,8 +42679,8 @@ export namespace Multiplayer {
|
|
|
42350
42679
|
}
|
|
42351
42680
|
|
|
42352
42681
|
/**
|
|
42353
|
-
* @description
|
|
42354
|
-
* @
|
|
42682
|
+
* @description Gets IsFogVolumetric.
|
|
42683
|
+
* @return Current fog volumetric flag.
|
|
42355
42684
|
*/
|
|
42356
42685
|
|
|
42357
42686
|
getIsVolumetric(): boolean {
|
|
@@ -42366,8 +42695,8 @@ export namespace Multiplayer {
|
|
|
42366
42695
|
}
|
|
42367
42696
|
|
|
42368
42697
|
/**
|
|
42369
|
-
* @description
|
|
42370
|
-
* @param value -
|
|
42698
|
+
* @description Sets IsFogVolumetric.
|
|
42699
|
+
* @param value - Fog Volumetric Flag.
|
|
42371
42700
|
*/
|
|
42372
42701
|
|
|
42373
42702
|
setIsVolumetric(value: boolean): void {
|
|
@@ -49314,6 +49643,47 @@ export namespace Systems {
|
|
|
49314
49643
|
}
|
|
49315
49644
|
}
|
|
49316
49645
|
|
|
49646
|
+
export namespace Systems {
|
|
49647
|
+
/**
|
|
49648
|
+
@ingroup Asset System
|
|
49649
|
+
* @description Data class used to process and represent information relating to copied asset collections.
|
|
49650
|
+
*/
|
|
49651
|
+
export class AssetCollectionsCopyResult
|
|
49652
|
+
extends Systems.AssetCollectionsResult
|
|
49653
|
+
implements INativeResource
|
|
49654
|
+
{
|
|
49655
|
+
/** @internal */
|
|
49656
|
+
constructor(pointer: NativePointer) {
|
|
49657
|
+
super(pointer);
|
|
49658
|
+
}
|
|
49659
|
+
|
|
49660
|
+
static fromAssetCollectionsResult(
|
|
49661
|
+
baseInstance: Systems.AssetCollectionsResult,
|
|
49662
|
+
): Systems.AssetCollectionsCopyResult {
|
|
49663
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
49664
|
+
return new Systems.AssetCollectionsCopyResult(
|
|
49665
|
+
new NativePointer(
|
|
49666
|
+
nativeClassWrapper.pointer,
|
|
49667
|
+
nativeClassWrapper.ownsPointer,
|
|
49668
|
+
),
|
|
49669
|
+
);
|
|
49670
|
+
}
|
|
49671
|
+
|
|
49672
|
+
delete(): void {
|
|
49673
|
+
if (this.ownsPointer && !this.disposed) {
|
|
49674
|
+
Module.ccall(
|
|
49675
|
+
"csp_systems_AssetCollectionsCopyResult_Dtor",
|
|
49676
|
+
"void",
|
|
49677
|
+
["number"],
|
|
49678
|
+
[this.pointer],
|
|
49679
|
+
);
|
|
49680
|
+
|
|
49681
|
+
this.disposed = true;
|
|
49682
|
+
}
|
|
49683
|
+
}
|
|
49684
|
+
}
|
|
49685
|
+
}
|
|
49686
|
+
|
|
49317
49687
|
export namespace Systems {
|
|
49318
49688
|
/**
|
|
49319
49689
|
@ingroup Asset System
|
|
@@ -53249,6 +53619,200 @@ export namespace Systems {
|
|
|
53249
53619
|
}
|
|
53250
53620
|
}
|
|
53251
53621
|
|
|
53622
|
+
export namespace Systems {
|
|
53623
|
+
/**
|
|
53624
|
+
* @description Data class used to contain information relating to invocations via the external service proxy system.
|
|
53625
|
+
*/
|
|
53626
|
+
export class ExternalServiceInvocationResult
|
|
53627
|
+
extends Systems.StringResult
|
|
53628
|
+
implements INativeResource
|
|
53629
|
+
{
|
|
53630
|
+
/** @internal */
|
|
53631
|
+
constructor(pointer: NativePointer) {
|
|
53632
|
+
super(pointer);
|
|
53633
|
+
}
|
|
53634
|
+
|
|
53635
|
+
static fromStringResult(
|
|
53636
|
+
baseInstance: Systems.StringResult,
|
|
53637
|
+
): Systems.ExternalServiceInvocationResult {
|
|
53638
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
53639
|
+
return new Systems.ExternalServiceInvocationResult(
|
|
53640
|
+
new NativePointer(
|
|
53641
|
+
nativeClassWrapper.pointer,
|
|
53642
|
+
nativeClassWrapper.ownsPointer,
|
|
53643
|
+
),
|
|
53644
|
+
);
|
|
53645
|
+
}
|
|
53646
|
+
|
|
53647
|
+
delete(): void {
|
|
53648
|
+
if (this.ownsPointer && !this.disposed) {
|
|
53649
|
+
Module.ccall(
|
|
53650
|
+
"csp_systems_ExternalServiceInvocationResult_Dtor",
|
|
53651
|
+
"void",
|
|
53652
|
+
["number"],
|
|
53653
|
+
[this.pointer],
|
|
53654
|
+
);
|
|
53655
|
+
|
|
53656
|
+
this.disposed = true;
|
|
53657
|
+
}
|
|
53658
|
+
}
|
|
53659
|
+
}
|
|
53660
|
+
}
|
|
53661
|
+
|
|
53662
|
+
export namespace Systems {
|
|
53663
|
+
/**
|
|
53664
|
+
* @description A specialisation of the result data class that handles respnses from the external service proxy system.
|
|
53665
|
+
*/
|
|
53666
|
+
export class GetAgoraTokenResult
|
|
53667
|
+
extends Systems.ExternalServiceInvocationResult
|
|
53668
|
+
implements INativeResource
|
|
53669
|
+
{
|
|
53670
|
+
/** @internal */
|
|
53671
|
+
constructor(pointer: NativePointer) {
|
|
53672
|
+
super(pointer);
|
|
53673
|
+
}
|
|
53674
|
+
|
|
53675
|
+
static fromExternalServiceInvocationResult(
|
|
53676
|
+
baseInstance: Systems.ExternalServiceInvocationResult,
|
|
53677
|
+
): Systems.GetAgoraTokenResult {
|
|
53678
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
53679
|
+
return new Systems.GetAgoraTokenResult(
|
|
53680
|
+
new NativePointer(
|
|
53681
|
+
nativeClassWrapper.pointer,
|
|
53682
|
+
nativeClassWrapper.ownsPointer,
|
|
53683
|
+
),
|
|
53684
|
+
);
|
|
53685
|
+
}
|
|
53686
|
+
|
|
53687
|
+
delete(): void {
|
|
53688
|
+
if (this.ownsPointer && !this.disposed) {
|
|
53689
|
+
Module.ccall(
|
|
53690
|
+
"csp_systems_GetAgoraTokenResult_Dtor",
|
|
53691
|
+
"void",
|
|
53692
|
+
["number"],
|
|
53693
|
+
[this.pointer],
|
|
53694
|
+
);
|
|
53695
|
+
|
|
53696
|
+
this.disposed = true;
|
|
53697
|
+
}
|
|
53698
|
+
}
|
|
53699
|
+
}
|
|
53700
|
+
}
|
|
53701
|
+
|
|
53702
|
+
export namespace Systems {
|
|
53703
|
+
/**
|
|
53704
|
+
* *******************************************************************************************************************
|
|
53705
|
+
@ingroup External Service Proxy System
|
|
53706
|
+
* @description Public facing system that allows client applications to interact with
|
|
53707
|
+
* backend services acting as a proxy for some other set of services.
|
|
53708
|
+
* /// In situations where a CSP client application needs secure access to some other set of third-party
|
|
53709
|
+
* services (like AI, VOIP, ECommerce etc), this system can be particularly helpful,
|
|
53710
|
+
* as it enables services that CSP interfaces with to own the responsibility of distributing secure tokens to those platforms.
|
|
53711
|
+
*/
|
|
53712
|
+
export class ExternalServiceProxySystem extends Systems.SystemBase {
|
|
53713
|
+
/** @internal */
|
|
53714
|
+
constructor(pointer: NativePointer) {
|
|
53715
|
+
super(pointer);
|
|
53716
|
+
}
|
|
53717
|
+
|
|
53718
|
+
static fromSystemBase(
|
|
53719
|
+
baseInstance: Systems.SystemBase,
|
|
53720
|
+
): Systems.ExternalServiceProxySystem {
|
|
53721
|
+
const nativeClassWrapper = baseInstance as unknown as NativeClassWrapper;
|
|
53722
|
+
return new Systems.ExternalServiceProxySystem(
|
|
53723
|
+
new NativePointer(
|
|
53724
|
+
nativeClassWrapper.pointer,
|
|
53725
|
+
nativeClassWrapper.ownsPointer,
|
|
53726
|
+
),
|
|
53727
|
+
);
|
|
53728
|
+
}
|
|
53729
|
+
|
|
53730
|
+
/**
|
|
53731
|
+
* @description Generic function which will make a post request to the services proxy endpoint to trigger some specified operation of specified
|
|
53732
|
+
* service. The nature of the operation and what is returned is entirely dependent on the service and operation name provided.
|
|
53733
|
+
* @param params - Params to specify service, operation, set help and parameters.
|
|
53734
|
+
* @param callback - Callback to call when a response is received.
|
|
53735
|
+
*/
|
|
53736
|
+
|
|
53737
|
+
async invokeOperation(
|
|
53738
|
+
params: Systems.ExternalServicesOperationParams,
|
|
53739
|
+
): Promise<Systems.StringResult> {
|
|
53740
|
+
var _resolve;
|
|
53741
|
+
|
|
53742
|
+
var _promise = new Promise<Systems.StringResult>((_r) => {
|
|
53743
|
+
_resolve = _r;
|
|
53744
|
+
});
|
|
53745
|
+
|
|
53746
|
+
var _callbackPtr: number;
|
|
53747
|
+
var _callback = (_stateObject__: number, result) => {
|
|
53748
|
+
var _resultPtr = getNativePointer(result);
|
|
53749
|
+
var _resultInstance = new Systems.StringResult(_resultPtr);
|
|
53750
|
+
|
|
53751
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
53752
|
+
return;
|
|
53753
|
+
}
|
|
53754
|
+
|
|
53755
|
+
_resolve(_resultInstance);
|
|
53756
|
+
|
|
53757
|
+
Module.removeFunction(_callbackPtr);
|
|
53758
|
+
};
|
|
53759
|
+
|
|
53760
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
53761
|
+
|
|
53762
|
+
Module.ccall(
|
|
53763
|
+
"csp_systems_ExternalServiceProxySystem_InvokeOperation_void_ExternalServicesOperationParamsRC_StringResultCallback",
|
|
53764
|
+
"void",
|
|
53765
|
+
["number", "number", "number", "number"],
|
|
53766
|
+
[this.pointer, params.pointer, _callbackPtr, 0],
|
|
53767
|
+
);
|
|
53768
|
+
|
|
53769
|
+
return _promise;
|
|
53770
|
+
}
|
|
53771
|
+
|
|
53772
|
+
/**
|
|
53773
|
+
* @description Specialised utility function which executes a post call to the external services proxy, specifically to retrieve Agora user token
|
|
53774
|
+
* credentials. A good example for how client applications may wish to use PostServiceProxy.
|
|
53775
|
+
* @param params - Params to configure the User token.
|
|
53776
|
+
* @param callback - Callback to call when a response is received.
|
|
53777
|
+
*/
|
|
53778
|
+
|
|
53779
|
+
async getAgoraUserToken(
|
|
53780
|
+
params: Systems.AgoraUserTokenParams,
|
|
53781
|
+
): Promise<Systems.StringResult> {
|
|
53782
|
+
var _resolve;
|
|
53783
|
+
|
|
53784
|
+
var _promise = new Promise<Systems.StringResult>((_r) => {
|
|
53785
|
+
_resolve = _r;
|
|
53786
|
+
});
|
|
53787
|
+
|
|
53788
|
+
var _callbackPtr: number;
|
|
53789
|
+
var _callback = (_stateObject__: number, result) => {
|
|
53790
|
+
var _resultPtr = getNativePointer(result);
|
|
53791
|
+
var _resultInstance = new Systems.StringResult(_resultPtr);
|
|
53792
|
+
|
|
53793
|
+
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
53794
|
+
return;
|
|
53795
|
+
}
|
|
53796
|
+
|
|
53797
|
+
_resolve(_resultInstance);
|
|
53798
|
+
|
|
53799
|
+
Module.removeFunction(_callbackPtr);
|
|
53800
|
+
};
|
|
53801
|
+
|
|
53802
|
+
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
53803
|
+
|
|
53804
|
+
Module.ccall(
|
|
53805
|
+
"csp_systems_ExternalServiceProxySystem_GetAgoraUserToken_void_AgoraUserTokenParamsRC_StringResultCallback",
|
|
53806
|
+
"void",
|
|
53807
|
+
["number", "number", "number", "number"],
|
|
53808
|
+
[this.pointer, params.pointer, _callbackPtr, 0],
|
|
53809
|
+
);
|
|
53810
|
+
|
|
53811
|
+
return _promise;
|
|
53812
|
+
}
|
|
53813
|
+
}
|
|
53814
|
+
}
|
|
53815
|
+
|
|
53252
53816
|
export namespace Systems {
|
|
53253
53817
|
/**
|
|
53254
53818
|
@ingroup GraphQL System
|
|
@@ -61970,88 +62534,6 @@ export namespace Systems {
|
|
|
61970
62534
|
return _promise;
|
|
61971
62535
|
}
|
|
61972
62536
|
|
|
61973
|
-
/**
|
|
61974
|
-
* @description Retrieve User token from Agora
|
|
61975
|
-
* @param params - Params to configure the User token
|
|
61976
|
-
* @param callback - Callback to call when a response is received
|
|
61977
|
-
*/
|
|
61978
|
-
|
|
61979
|
-
async getAgoraUserToken(
|
|
61980
|
-
params: Systems.AgoraUserTokenParams,
|
|
61981
|
-
): Promise<Systems.StringResult> {
|
|
61982
|
-
var _resolve;
|
|
61983
|
-
|
|
61984
|
-
var _promise = new Promise<Systems.StringResult>((_r) => {
|
|
61985
|
-
_resolve = _r;
|
|
61986
|
-
});
|
|
61987
|
-
|
|
61988
|
-
var _callbackPtr: number;
|
|
61989
|
-
var _callback = (_stateObject__: number, result) => {
|
|
61990
|
-
var _resultPtr = getNativePointer(result);
|
|
61991
|
-
var _resultInstance = new Systems.StringResult(_resultPtr);
|
|
61992
|
-
|
|
61993
|
-
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
61994
|
-
return;
|
|
61995
|
-
}
|
|
61996
|
-
|
|
61997
|
-
_resolve(_resultInstance);
|
|
61998
|
-
|
|
61999
|
-
Module.removeFunction(_callbackPtr);
|
|
62000
|
-
};
|
|
62001
|
-
|
|
62002
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
62003
|
-
|
|
62004
|
-
Module.ccall(
|
|
62005
|
-
"csp_systems_UserSystem_GetAgoraUserToken_void_AgoraUserTokenParamsRC_StringResultCallback",
|
|
62006
|
-
"void",
|
|
62007
|
-
["number", "number", "number", "number"],
|
|
62008
|
-
[this.pointer, params.pointer, _callbackPtr, 0],
|
|
62009
|
-
);
|
|
62010
|
-
|
|
62011
|
-
return _promise;
|
|
62012
|
-
}
|
|
62013
|
-
|
|
62014
|
-
/**
|
|
62015
|
-
* @description Post Service Proxy to perform specified operation of specified service
|
|
62016
|
-
* @param params - Params to specify service, operation, set help and parameters
|
|
62017
|
-
* @param callback - Callback to call when a response is received
|
|
62018
|
-
*/
|
|
62019
|
-
|
|
62020
|
-
async postServiceProxy(
|
|
62021
|
-
params: Systems.TokenInfoParams,
|
|
62022
|
-
): Promise<Systems.StringResult> {
|
|
62023
|
-
var _resolve;
|
|
62024
|
-
|
|
62025
|
-
var _promise = new Promise<Systems.StringResult>((_r) => {
|
|
62026
|
-
_resolve = _r;
|
|
62027
|
-
});
|
|
62028
|
-
|
|
62029
|
-
var _callbackPtr: number;
|
|
62030
|
-
var _callback = (_stateObject__: number, result) => {
|
|
62031
|
-
var _resultPtr = getNativePointer(result);
|
|
62032
|
-
var _resultInstance = new Systems.StringResult(_resultPtr);
|
|
62033
|
-
|
|
62034
|
-
if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
|
|
62035
|
-
return;
|
|
62036
|
-
}
|
|
62037
|
-
|
|
62038
|
-
_resolve(_resultInstance);
|
|
62039
|
-
|
|
62040
|
-
Module.removeFunction(_callbackPtr);
|
|
62041
|
-
};
|
|
62042
|
-
|
|
62043
|
-
_callbackPtr = Module.addFunction(_callback, "vii");
|
|
62044
|
-
|
|
62045
|
-
Module.ccall(
|
|
62046
|
-
"csp_systems_UserSystem_PostServiceProxy_void_TokenInfoParamsRC_StringResultCallback",
|
|
62047
|
-
"void",
|
|
62048
|
-
["number", "number", "number", "number"],
|
|
62049
|
-
[this.pointer, params.pointer, _callbackPtr, 0],
|
|
62050
|
-
);
|
|
62051
|
-
|
|
62052
|
-
return _promise;
|
|
62053
|
-
}
|
|
62054
|
-
|
|
62055
62537
|
/**
|
|
62056
62538
|
* @description Re-send user verification email
|
|
62057
62539
|
* @param inEmail - User's email address
|