connected-spaces-platform.web 4.11.2 → 4.12.1
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 +39 -3
- package/Debug/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/Debug/ConnectedSpacesPlatform_WASM.wasm.debug.wasm +0 -0
- package/README.md +38 -204
- package/Release/ConnectedSpacesPlatform_WASM.js +1 -1
- package/Release/ConnectedSpacesPlatform_WASM.wasm +0 -0
- package/connectedspacesplatform.d.ts +41 -3
- package/connectedspacesplatform.js +110 -12
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +233 -12
- package/package.json +1 -1
|
@@ -358,6 +358,14 @@ function csp_multiplayer_EAssetChangeTypeFactory(
|
|
|
358
358
|
ProxyClassFactories["csp_multiplayer_EAssetChangeType"] =
|
|
359
359
|
csp_multiplayer_EAssetChangeTypeFactory;
|
|
360
360
|
|
|
361
|
+
function csp_multiplayer_EPermissionChangeTypeFactory(
|
|
362
|
+
nativePointer: NativePointer,
|
|
363
|
+
): Multiplayer.EPermissionChangeType {
|
|
364
|
+
return nativePointer.pointer as Multiplayer.EPermissionChangeType;
|
|
365
|
+
}
|
|
366
|
+
ProxyClassFactories["csp_multiplayer_EPermissionChangeType"] =
|
|
367
|
+
csp_multiplayer_EPermissionChangeTypeFactory;
|
|
368
|
+
|
|
361
369
|
function csp_multiplayer_ConnectionStateFactory(
|
|
362
370
|
nativePointer: NativePointer,
|
|
363
371
|
): Multiplayer.ConnectionState {
|
|
@@ -931,6 +939,14 @@ function csp_multiplayer_ConversationSystemParamsFactory(
|
|
|
931
939
|
ProxyClassFactories["csp_multiplayer_ConversationSystemParams"] =
|
|
932
940
|
csp_multiplayer_ConversationSystemParamsFactory;
|
|
933
941
|
|
|
942
|
+
function csp_multiplayer_UserPermissionsParamsFactory(
|
|
943
|
+
nativePointer: NativePointer,
|
|
944
|
+
): NativeClassWrapper {
|
|
945
|
+
return new Multiplayer.UserPermissionsParams(nativePointer);
|
|
946
|
+
}
|
|
947
|
+
ProxyClassFactories["csp_multiplayer_UserPermissionsParams"] =
|
|
948
|
+
csp_multiplayer_UserPermissionsParamsFactory;
|
|
949
|
+
|
|
934
950
|
function csp_multiplayer_MultiplayerConnectionFactory(
|
|
935
951
|
nativePointer: NativePointer,
|
|
936
952
|
): NativeClassWrapper {
|
|
@@ -2078,6 +2094,18 @@ function csp_common_Array_csp_multiplayer_ComponentUpdateInfoFactory(
|
|
|
2078
2094
|
ProxyClassFactories["csp_common_Array_csp_multiplayer_ComponentUpdateInfo"] =
|
|
2079
2095
|
csp_common_Array_csp_multiplayer_ComponentUpdateInfoFactory;
|
|
2080
2096
|
|
|
2097
|
+
function csp_common_Array_csp_systems_SpaceUserRoleFactory(
|
|
2098
|
+
nativePointer: NativePointer,
|
|
2099
|
+
): NativeClassWrapper {
|
|
2100
|
+
return new Common.Array<Systems.SpaceUserRole>(
|
|
2101
|
+
nativePointer,
|
|
2102
|
+
csp_systems_SpaceUserRoleFactory,
|
|
2103
|
+
"csp_systems_SpaceUserRole",
|
|
2104
|
+
);
|
|
2105
|
+
}
|
|
2106
|
+
ProxyClassFactories["csp_common_Array_csp_systems_SpaceUserRole"] =
|
|
2107
|
+
csp_common_Array_csp_systems_SpaceUserRoleFactory;
|
|
2108
|
+
|
|
2081
2109
|
function csp_common_Array_csp_multiplayer_MessageInfoFactory(
|
|
2082
2110
|
nativePointer: NativePointer,
|
|
2083
2111
|
): NativeClassWrapper {
|
|
@@ -2550,6 +2578,18 @@ export namespace Multiplayer {
|
|
|
2550
2578
|
}
|
|
2551
2579
|
}
|
|
2552
2580
|
|
|
2581
|
+
export namespace Multiplayer {
|
|
2582
|
+
/**
|
|
2583
|
+
* @description Enum specifying the type of change that occured to a user's permissions whilst in a space.
|
|
2584
|
+
*/
|
|
2585
|
+
export enum EPermissionChangeType {
|
|
2586
|
+
Created,
|
|
2587
|
+
Updated,
|
|
2588
|
+
Removed,
|
|
2589
|
+
Invalid,
|
|
2590
|
+
}
|
|
2591
|
+
}
|
|
2592
|
+
|
|
2553
2593
|
export namespace Multiplayer {
|
|
2554
2594
|
/**
|
|
2555
2595
|
* @description Enum used to specify the current state of the muiltiplayer connection.
|
|
@@ -3314,6 +3354,7 @@ export namespace Systems {
|
|
|
3314
3354
|
Owner,
|
|
3315
3355
|
Moderator,
|
|
3316
3356
|
User,
|
|
3357
|
+
Invalid,
|
|
3317
3358
|
}
|
|
3318
3359
|
}
|
|
3319
3360
|
|
|
@@ -20763,7 +20804,7 @@ export namespace Multiplayer {
|
|
|
20763
20804
|
|
|
20764
20805
|
export namespace Multiplayer {
|
|
20765
20806
|
/**
|
|
20766
|
-
* @description
|
|
20807
|
+
* @description Describes the changes an asset has undergone when the client application is connected to a space.
|
|
20767
20808
|
*/
|
|
20768
20809
|
export class AssetDetailBlobParams
|
|
20769
20810
|
extends NativeClassWrapper
|
|
@@ -20904,7 +20945,7 @@ export namespace Multiplayer {
|
|
|
20904
20945
|
|
|
20905
20946
|
export namespace Multiplayer {
|
|
20906
20947
|
/**
|
|
20907
|
-
* @description Class used to provide details of a conversation message
|
|
20948
|
+
* @description Class used to provide details of a conversation message that has been received whilst the client application is connected to a space.
|
|
20908
20949
|
*/
|
|
20909
20950
|
export class ConversationSystemParams
|
|
20910
20951
|
extends NativeClassWrapper
|
|
@@ -20983,6 +21024,133 @@ export namespace Multiplayer {
|
|
|
20983
21024
|
}
|
|
20984
21025
|
}
|
|
20985
21026
|
|
|
21027
|
+
export namespace Multiplayer {
|
|
21028
|
+
/**
|
|
21029
|
+
* @description Class used to provide details of a permission change that has happened to a user whilst the client application is connected to a space.
|
|
21030
|
+
*/
|
|
21031
|
+
export class UserPermissionsParams
|
|
21032
|
+
extends NativeClassWrapper
|
|
21033
|
+
implements INativeResource
|
|
21034
|
+
{
|
|
21035
|
+
/** @internal */
|
|
21036
|
+
constructor(pointer: NativePointer) {
|
|
21037
|
+
super(pointer);
|
|
21038
|
+
}
|
|
21039
|
+
|
|
21040
|
+
static create(): UserPermissionsParams {
|
|
21041
|
+
var _ptr = Module._malloc(8);
|
|
21042
|
+
Module.ccall(
|
|
21043
|
+
"csp_multiplayer_UserPermissionsParams_Ctor",
|
|
21044
|
+
"void",
|
|
21045
|
+
["number"],
|
|
21046
|
+
[_ptr],
|
|
21047
|
+
);
|
|
21048
|
+
var _nPtr = getNativePointer(_ptr);
|
|
21049
|
+
|
|
21050
|
+
return new UserPermissionsParams(_nPtr);
|
|
21051
|
+
}
|
|
21052
|
+
|
|
21053
|
+
delete(): void {
|
|
21054
|
+
if (this.ownsPointer && !this.disposed) {
|
|
21055
|
+
Module.ccall(
|
|
21056
|
+
"csp_multiplayer_UserPermissionsParams_Dtor",
|
|
21057
|
+
"void",
|
|
21058
|
+
["number"],
|
|
21059
|
+
[this.pointer],
|
|
21060
|
+
);
|
|
21061
|
+
|
|
21062
|
+
this.disposed = true;
|
|
21063
|
+
}
|
|
21064
|
+
}
|
|
21065
|
+
|
|
21066
|
+
get spaceId(): string {
|
|
21067
|
+
let _result = Module.ccall(
|
|
21068
|
+
"csp_multiplayer_UserPermissionsParams__Get_SpaceId",
|
|
21069
|
+
"string",
|
|
21070
|
+
["number"],
|
|
21071
|
+
[this.pointer],
|
|
21072
|
+
);
|
|
21073
|
+
|
|
21074
|
+
return _result;
|
|
21075
|
+
}
|
|
21076
|
+
|
|
21077
|
+
set spaceId(value: string) {
|
|
21078
|
+
Module.ccall(
|
|
21079
|
+
"csp_multiplayer_UserPermissionsParams__Set_SpaceId",
|
|
21080
|
+
"void",
|
|
21081
|
+
["number", "string"],
|
|
21082
|
+
[this.pointer, value],
|
|
21083
|
+
);
|
|
21084
|
+
}
|
|
21085
|
+
|
|
21086
|
+
get userRoles(): Common.Array<Systems.SpaceUserRole> {
|
|
21087
|
+
const _ptr = Module._malloc(8);
|
|
21088
|
+
Module.ccall(
|
|
21089
|
+
"csp_multiplayer_UserPermissionsParams__Get_UserRoles",
|
|
21090
|
+
"void",
|
|
21091
|
+
["number", "number"],
|
|
21092
|
+
[_ptr, this.pointer],
|
|
21093
|
+
);
|
|
21094
|
+
|
|
21095
|
+
const _nPtr = getNativePointer(_ptr);
|
|
21096
|
+
return new Common.Array<Systems.SpaceUserRole>(
|
|
21097
|
+
_nPtr,
|
|
21098
|
+
csp_systems_SpaceUserRoleFactory,
|
|
21099
|
+
"csp_systems_SpaceUserRole",
|
|
21100
|
+
);
|
|
21101
|
+
}
|
|
21102
|
+
|
|
21103
|
+
set userRoles(value: Common.Array<Systems.SpaceUserRole>) {
|
|
21104
|
+
Module.ccall(
|
|
21105
|
+
"csp_multiplayer_UserPermissionsParams__Set_UserRoles",
|
|
21106
|
+
"void",
|
|
21107
|
+
["number", "number"],
|
|
21108
|
+
[this.pointer, value.pointer],
|
|
21109
|
+
);
|
|
21110
|
+
}
|
|
21111
|
+
|
|
21112
|
+
get changeType(): Multiplayer.EPermissionChangeType {
|
|
21113
|
+
let _result = Module.ccall(
|
|
21114
|
+
"csp_multiplayer_UserPermissionsParams__Get_ChangeType",
|
|
21115
|
+
"number",
|
|
21116
|
+
["number"],
|
|
21117
|
+
[this.pointer],
|
|
21118
|
+
);
|
|
21119
|
+
|
|
21120
|
+
return _result;
|
|
21121
|
+
}
|
|
21122
|
+
|
|
21123
|
+
set changeType(value: Multiplayer.EPermissionChangeType) {
|
|
21124
|
+
Module.ccall(
|
|
21125
|
+
"csp_multiplayer_UserPermissionsParams__Set_ChangeType",
|
|
21126
|
+
"void",
|
|
21127
|
+
["number", "number"],
|
|
21128
|
+
[this.pointer, value],
|
|
21129
|
+
);
|
|
21130
|
+
}
|
|
21131
|
+
|
|
21132
|
+
get userId(): string {
|
|
21133
|
+
let _result = Module.ccall(
|
|
21134
|
+
"csp_multiplayer_UserPermissionsParams__Get_UserId",
|
|
21135
|
+
"string",
|
|
21136
|
+
["number"],
|
|
21137
|
+
[this.pointer],
|
|
21138
|
+
);
|
|
21139
|
+
|
|
21140
|
+
return _result;
|
|
21141
|
+
}
|
|
21142
|
+
|
|
21143
|
+
set userId(value: string) {
|
|
21144
|
+
Module.ccall(
|
|
21145
|
+
"csp_multiplayer_UserPermissionsParams__Set_UserId",
|
|
21146
|
+
"void",
|
|
21147
|
+
["number", "string"],
|
|
21148
|
+
[this.pointer, value],
|
|
21149
|
+
);
|
|
21150
|
+
}
|
|
21151
|
+
}
|
|
21152
|
+
}
|
|
21153
|
+
|
|
20986
21154
|
export namespace Multiplayer {
|
|
20987
21155
|
/**
|
|
20988
21156
|
@ingroup Multiplayer
|
|
@@ -21321,6 +21489,31 @@ export namespace Multiplayer {
|
|
|
21321
21489
|
);
|
|
21322
21490
|
}
|
|
21323
21491
|
|
|
21492
|
+
/**
|
|
21493
|
+
* @description Sets a callback for an access control changed event.
|
|
21494
|
+
* @param callback - Callback to receive data for the user permissions that has been changed.
|
|
21495
|
+
*/
|
|
21496
|
+
setUserPermissionsChangedCallback(
|
|
21497
|
+
callback: (arg1: Multiplayer.UserPermissionsParams) => void,
|
|
21498
|
+
) {
|
|
21499
|
+
var _callback = (_stateObject__: number, arg1) => {
|
|
21500
|
+
var _arg1 = new Multiplayer.UserPermissionsParams(
|
|
21501
|
+
getNativePointer(arg1),
|
|
21502
|
+
);
|
|
21503
|
+
|
|
21504
|
+
callback(_arg1);
|
|
21505
|
+
};
|
|
21506
|
+
|
|
21507
|
+
var _callbackPtr = Module.addFunction(_callback, "vii");
|
|
21508
|
+
|
|
21509
|
+
Module.ccall(
|
|
21510
|
+
"csp_multiplayer_MultiplayerConnection_SetUserPermissionsChangedCallback_void_UserPermissionsChangedCallbackHandler",
|
|
21511
|
+
"void",
|
|
21512
|
+
["number", "number", "number"],
|
|
21513
|
+
[this.pointer, _callbackPtr, 0],
|
|
21514
|
+
);
|
|
21515
|
+
}
|
|
21516
|
+
|
|
21324
21517
|
/**
|
|
21325
21518
|
* @description Registers a callback to listen for the named event.
|
|
21326
21519
|
* @param eventName - The identifying name for the event to listen for.
|
|
@@ -40503,7 +40696,6 @@ export namespace Systems {
|
|
|
40503
40696
|
var assetCollectionTypePointer = 0;
|
|
40504
40697
|
if (assetCollectionType != null) {
|
|
40505
40698
|
assetCollectionTypePointer = Module._malloc(4);
|
|
40506
|
-
Module.setValue(assetCollectionTypePointer, assetCollectionType, "i32");
|
|
40507
40699
|
}
|
|
40508
40700
|
|
|
40509
40701
|
var resultsSkipNumberPointer = 0;
|
|
@@ -40655,7 +40847,6 @@ export namespace Systems {
|
|
|
40655
40847
|
var thirdPartyPlatformPointer = 0;
|
|
40656
40848
|
if (thirdPartyPlatform != null) {
|
|
40657
40849
|
thirdPartyPlatformPointer = Module._malloc(4);
|
|
40658
|
-
Module.setValue(thirdPartyPlatformPointer, thirdPartyPlatform, "i32");
|
|
40659
40850
|
}
|
|
40660
40851
|
|
|
40661
40852
|
Module.ccall(
|
|
@@ -45062,7 +45253,6 @@ export namespace Systems {
|
|
|
45062
45253
|
var typePointer = 0;
|
|
45063
45254
|
if (type != null) {
|
|
45064
45255
|
typePointer = Module._malloc(4);
|
|
45065
|
-
Module.setValue(typePointer, type, "i32");
|
|
45066
45256
|
}
|
|
45067
45257
|
|
|
45068
45258
|
Module.ccall(
|
|
@@ -45212,13 +45402,11 @@ export namespace Systems {
|
|
|
45212
45402
|
var isDiscoverablePointer = 0;
|
|
45213
45403
|
if (isDiscoverable != null) {
|
|
45214
45404
|
isDiscoverablePointer = Module._malloc(4);
|
|
45215
|
-
Module.setValue(isDiscoverablePointer, isDiscoverable, "i32");
|
|
45216
45405
|
}
|
|
45217
45406
|
|
|
45218
45407
|
var requiresInvitePointer = 0;
|
|
45219
45408
|
if (requiresInvite != null) {
|
|
45220
45409
|
requiresInvitePointer = Module._malloc(4);
|
|
45221
|
-
Module.setValue(requiresInvitePointer, requiresInvite, "i32");
|
|
45222
45410
|
}
|
|
45223
45411
|
|
|
45224
45412
|
var resultsSkipPointer = 0;
|
|
@@ -45440,7 +45628,6 @@ export namespace Systems {
|
|
|
45440
45628
|
var isModeratorRolePointer = 0;
|
|
45441
45629
|
if (isModeratorRole != null) {
|
|
45442
45630
|
isModeratorRolePointer = Module._malloc(4);
|
|
45443
|
-
Module.setValue(isModeratorRolePointer, isModeratorRole, "i32");
|
|
45444
45631
|
}
|
|
45445
45632
|
|
|
45446
45633
|
Module.ccall(
|
|
@@ -46972,7 +47159,6 @@ export namespace Systems {
|
|
|
46972
47159
|
var allTagsPointer = 0;
|
|
46973
47160
|
if (allTags != null) {
|
|
46974
47161
|
allTagsPointer = Module._malloc(4);
|
|
46975
|
-
Module.setValue(allTagsPointer, allTags, "i32");
|
|
46976
47162
|
}
|
|
46977
47163
|
|
|
46978
47164
|
var skipPointer = 0;
|
|
@@ -48319,7 +48505,6 @@ export namespace Systems {
|
|
|
48319
48505
|
var userHasVerifiedAgePointer = 0;
|
|
48320
48506
|
if (userHasVerifiedAge != null) {
|
|
48321
48507
|
userHasVerifiedAgePointer = Module._malloc(4);
|
|
48322
|
-
Module.setValue(userHasVerifiedAgePointer, userHasVerifiedAge, "i32");
|
|
48323
48508
|
}
|
|
48324
48509
|
|
|
48325
48510
|
Module.ccall(
|
|
@@ -48427,7 +48612,6 @@ export namespace Systems {
|
|
|
48427
48612
|
var userHasVerifiedAgePointer = 0;
|
|
48428
48613
|
if (userHasVerifiedAge != null) {
|
|
48429
48614
|
userHasVerifiedAgePointer = Module._malloc(4);
|
|
48430
|
-
Module.setValue(userHasVerifiedAgePointer, userHasVerifiedAge, "i32");
|
|
48431
48615
|
}
|
|
48432
48616
|
|
|
48433
48617
|
Module.ccall(
|
|
@@ -48560,7 +48744,6 @@ export namespace Systems {
|
|
|
48560
48744
|
var userHasVerifiedAgePointer = 0;
|
|
48561
48745
|
if (userHasVerifiedAge != null) {
|
|
48562
48746
|
userHasVerifiedAgePointer = Module._malloc(4);
|
|
48563
|
-
Module.setValue(userHasVerifiedAgePointer, userHasVerifiedAge, "i32");
|
|
48564
48747
|
}
|
|
48565
48748
|
|
|
48566
48749
|
Module.ccall(
|
|
@@ -49247,6 +49430,24 @@ export namespace Common {
|
|
|
49247
49430
|
return _inst;
|
|
49248
49431
|
}
|
|
49249
49432
|
|
|
49433
|
+
static ofcsp_systems_SpaceUserRole(): Array<Systems.SpaceUserRole> {
|
|
49434
|
+
var _ret = Module._malloc(8);
|
|
49435
|
+
Module.ccall(
|
|
49436
|
+
"csp_common_Array_Ctor_csp_systems_SpaceUserRole",
|
|
49437
|
+
"void",
|
|
49438
|
+
["number"],
|
|
49439
|
+
[_ret],
|
|
49440
|
+
);
|
|
49441
|
+
var _inst = new Array<Systems.SpaceUserRole>(
|
|
49442
|
+
getNativePointer(_ret),
|
|
49443
|
+
csp_systems_SpaceUserRoleFactory,
|
|
49444
|
+
"csp_systems_SpaceUserRole",
|
|
49445
|
+
);
|
|
49446
|
+
Module._free(_ret);
|
|
49447
|
+
|
|
49448
|
+
return _inst;
|
|
49449
|
+
}
|
|
49450
|
+
|
|
49250
49451
|
static ofcsp_multiplayer_MessageInfo(): Array<Multiplayer.MessageInfo> {
|
|
49251
49452
|
var _ret = Module._malloc(8);
|
|
49252
49453
|
Module.ccall(
|
|
@@ -49776,6 +49977,26 @@ export namespace Common {
|
|
|
49776
49977
|
return _inst;
|
|
49777
49978
|
}
|
|
49778
49979
|
|
|
49980
|
+
static ofcsp_systems_SpaceUserRole_number(
|
|
49981
|
+
size: number,
|
|
49982
|
+
): Array<Systems.SpaceUserRole> {
|
|
49983
|
+
var _ret = Module._malloc(8);
|
|
49984
|
+
Module.ccall(
|
|
49985
|
+
"csp_common_Array_Conv_size_tC_csp_systems_SpaceUserRole",
|
|
49986
|
+
"void",
|
|
49987
|
+
["number", "number"],
|
|
49988
|
+
[_ret, size],
|
|
49989
|
+
);
|
|
49990
|
+
var _inst = new Array<Systems.SpaceUserRole>(
|
|
49991
|
+
getNativePointer(_ret),
|
|
49992
|
+
csp_systems_SpaceUserRoleFactory,
|
|
49993
|
+
"csp_systems_SpaceUserRole",
|
|
49994
|
+
);
|
|
49995
|
+
Module._free(_ret);
|
|
49996
|
+
|
|
49997
|
+
return _inst;
|
|
49998
|
+
}
|
|
49999
|
+
|
|
49779
50000
|
static ofcsp_multiplayer_MessageInfo_number(
|
|
49780
50001
|
size: number,
|
|
49781
50002
|
): Array<Multiplayer.MessageInfo> {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "connected-spaces-platform.web",
|
|
3
3
|
"displayName": "connected-spaces-platform.web",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.12.1+481",
|
|
5
5
|
"description": "This package provides the binaries required to interface with the Connected Spaces Platform API.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"dependencies": {
|