connected-spaces-platform.web 6.9.0 → 6.10.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 +65 -15
- 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 +116 -29
- package/connectedspacesplatform.js +287 -41
- package/connectedspacesplatform.js.map +1 -1
- package/connectedspacesplatform.ts +520 -75
- package/package.json +1 -1
|
Binary file
|
|
@@ -72,6 +72,9 @@ export declare class NativeRef {
|
|
|
72
72
|
set value(value: number | bigint);
|
|
73
73
|
}
|
|
74
74
|
declare type ProxyClassFactory = (nativePointer: NativePointer) => NativeClassWrapper | number | string;
|
|
75
|
+
export declare enum EFeatureFlag {
|
|
76
|
+
Invalid = 0
|
|
77
|
+
}
|
|
75
78
|
export declare namespace Common {
|
|
76
79
|
/**
|
|
77
80
|
* @description Enum specifying the type of change that occured to an asset.
|
|
@@ -1100,6 +1103,17 @@ export declare namespace Multiplayer {
|
|
|
1100
1103
|
Num = 3
|
|
1101
1104
|
}
|
|
1102
1105
|
}
|
|
1106
|
+
export declare namespace Multiplayer {
|
|
1107
|
+
/**
|
|
1108
|
+
* @description Enumerates the type of stereo the video player supports.
|
|
1109
|
+
*/
|
|
1110
|
+
enum StereoVideoType {
|
|
1111
|
+
None = 0,
|
|
1112
|
+
SideBySide = 1,
|
|
1113
|
+
TopBottom = 2,
|
|
1114
|
+
Num = 3
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1103
1117
|
export declare namespace Multiplayer {
|
|
1104
1118
|
/**
|
|
1105
1119
|
* @description Enumerates the list of properties that can be replicated for a video player component.
|
|
@@ -1126,7 +1140,8 @@ export declare namespace Multiplayer {
|
|
|
1126
1140
|
MeshComponentId = 18,
|
|
1127
1141
|
IsEnabled = 19,
|
|
1128
1142
|
IsVirtualVisible = 20,
|
|
1129
|
-
|
|
1143
|
+
StereoVideoType = 21,
|
|
1144
|
+
Num = 22
|
|
1130
1145
|
}
|
|
1131
1146
|
}
|
|
1132
1147
|
export declare namespace Multiplayer {
|
|
@@ -1283,7 +1298,8 @@ export declare namespace Systems {
|
|
|
1283
1298
|
OpenAI = 6,
|
|
1284
1299
|
Shopify = 7,
|
|
1285
1300
|
TicketedSpace = 8,
|
|
1286
|
-
|
|
1301
|
+
GoogleGenAI = 9,
|
|
1302
|
+
Invalid = 10
|
|
1287
1303
|
}
|
|
1288
1304
|
}
|
|
1289
1305
|
export declare namespace Systems {
|
|
@@ -1623,6 +1639,18 @@ export declare namespace Systems {
|
|
|
1623
1639
|
setMimeType: (mimeType: string) => void;
|
|
1624
1640
|
}
|
|
1625
1641
|
}
|
|
1642
|
+
export declare class FeatureFlag extends NativeClassWrapper implements INativeResource {
|
|
1643
|
+
/** @internal */
|
|
1644
|
+
constructor(pointer: NativePointer);
|
|
1645
|
+
static create(): FeatureFlag;
|
|
1646
|
+
static create_type_isEnabled(type: EFeatureFlag, isEnabled: boolean): FeatureFlag;
|
|
1647
|
+
getDescription(): string;
|
|
1648
|
+
delete(): void;
|
|
1649
|
+
get type(): EFeatureFlag;
|
|
1650
|
+
set type(value: EFeatureFlag);
|
|
1651
|
+
get enabled(): boolean;
|
|
1652
|
+
set enabled(value: boolean);
|
|
1653
|
+
}
|
|
1626
1654
|
/**
|
|
1627
1655
|
* @description Represents definition for identifying and versioning an external service endpoint.
|
|
1628
1656
|
*/
|
|
@@ -1704,9 +1732,12 @@ export declare class CSPFoundation {
|
|
|
1704
1732
|
* @param tenant - Tenant for Magnopus Services. Data is not shared between tenants so clients using separate tenants
|
|
1705
1733
|
* cannot interact with each other.
|
|
1706
1734
|
* @param clientUserAgentHeader - The Client Info data
|
|
1735
|
+
* @param featureFlagOverrides - Optional list of feature flags whose default
|
|
1736
|
+
* enabled state is to be overriden. The FeatureFlag.Description property can be ignored when passing in feature flags here as this is defined by
|
|
1737
|
+
* the developer who creates the flag.
|
|
1707
1738
|
* @return True for successful initialisation.
|
|
1708
1739
|
*/
|
|
1709
|
-
static initialise(endpointRootURI: string, tenant: string, clientUserAgentHeader: ClientUserAgent): boolean;
|
|
1740
|
+
static initialise(endpointRootURI: string, tenant: string, clientUserAgentHeader: ClientUserAgent, featureFlagOverrides: Common.Array<FeatureFlag>): boolean;
|
|
1710
1741
|
/**
|
|
1711
1742
|
* @description This should be used at the end of the application lifecycle.
|
|
1712
1743
|
* Clears event queues and destroys foundation systems.
|
|
@@ -1774,6 +1805,23 @@ export declare class CSPFoundation {
|
|
|
1774
1805
|
* @return Const csp::common::string&
|
|
1775
1806
|
*/
|
|
1776
1807
|
static getTenant(): string;
|
|
1808
|
+
/**
|
|
1809
|
+
* @description Checks if a given feature flag is enabled.
|
|
1810
|
+
* @param flag - The feature flag to check
|
|
1811
|
+
* @return True if the feature flag is enabled, false otherwise
|
|
1812
|
+
*/
|
|
1813
|
+
static isFeatureEnabled(flag: EFeatureFlag): boolean;
|
|
1814
|
+
/**
|
|
1815
|
+
* @description Returns an array of feature flags.
|
|
1816
|
+
* @return An array of the defined feature flags
|
|
1817
|
+
*/
|
|
1818
|
+
static getFeatureFlags(): Common.Array<FeatureFlag>;
|
|
1819
|
+
/**
|
|
1820
|
+
* @description Get the description of a feature flag.
|
|
1821
|
+
* @param flag - The feature flag whose description is to be retrieved
|
|
1822
|
+
* @return The description of the feature flag
|
|
1823
|
+
*/
|
|
1824
|
+
static getFeatureFlagDescription(flag: EFeatureFlag): string;
|
|
1777
1825
|
}
|
|
1778
1826
|
export declare namespace Common {
|
|
1779
1827
|
/**
|
|
@@ -4940,9 +4988,13 @@ export declare namespace Systems {
|
|
|
4940
4988
|
}
|
|
4941
4989
|
export declare namespace Systems {
|
|
4942
4990
|
/**
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4991
|
+
* @description Base class for all Connected Spaces Platform Systems, which enforces passing of a WebClient or NetworkEventBus instance in the constructor
|
|
4992
|
+
* of each System.
|
|
4993
|
+
@invariant EventBusPtr can never be null. The NetworkEventBus is owned by the MultiplayerConnection and persists for it's lifetime. It is passed
|
|
4994
|
+
* to each system (which derive from SystemBase) by reference to their ctor. This ref is dereferenced before being passed to the SystemBase ctor.
|
|
4995
|
+
@invariant LogSystem can never be null. The LogSystem is owned by the SystemsManager and persists for it's lifetime. It is passed to
|
|
4996
|
+
* each system (which derive from SystemBase) by reference to their ctor. This ref is dereferenced before being passed to the SystemBase ctor.
|
|
4997
|
+
*/
|
|
4946
4998
|
class SystemBase extends NativeClassWrapper {
|
|
4947
4999
|
/** @internal */
|
|
4948
5000
|
constructor(pointer: NativePointer);
|
|
@@ -4953,10 +5005,6 @@ export declare namespace Systems {
|
|
|
4953
5005
|
* @description Registers the system to listen for the default event.
|
|
4954
5006
|
*/
|
|
4955
5007
|
registerSystemCallback(): void;
|
|
4956
|
-
/**
|
|
4957
|
-
* @description Deregisters the system from listening for the default event.
|
|
4958
|
-
*/
|
|
4959
|
-
deregisterSystemCallback(): void;
|
|
4960
5008
|
}
|
|
4961
5009
|
}
|
|
4962
5010
|
export declare namespace Systems {
|
|
@@ -6316,6 +6364,21 @@ export declare namespace Common {
|
|
|
6316
6364
|
set hotspotData(value: Common.HotspotSequenceChangedNetworkEventData);
|
|
6317
6365
|
}
|
|
6318
6366
|
}
|
|
6367
|
+
export declare namespace Common {
|
|
6368
|
+
class AsyncCallCompletedEventData extends Common.NetworkEventData implements INativeResource {
|
|
6369
|
+
/** @internal */
|
|
6370
|
+
constructor(pointer: NativePointer);
|
|
6371
|
+
static fromNetworkEventData(baseInstance: Common.NetworkEventData): Common.AsyncCallCompletedEventData;
|
|
6372
|
+
static create(): AsyncCallCompletedEventData;
|
|
6373
|
+
delete(): void;
|
|
6374
|
+
get operationName(): string;
|
|
6375
|
+
set operationName(value: string);
|
|
6376
|
+
get referenceId(): string;
|
|
6377
|
+
set referenceId(value: string);
|
|
6378
|
+
get referenceType(): string;
|
|
6379
|
+
set referenceType(value: string);
|
|
6380
|
+
}
|
|
6381
|
+
}
|
|
6319
6382
|
export declare namespace Multiplayer {
|
|
6320
6383
|
/**
|
|
6321
6384
|
* @description Class for creating and managing objects in an offline context.
|
|
@@ -9912,6 +9975,16 @@ export declare namespace Multiplayer {
|
|
|
9912
9975
|
* @param value - The type of video source used by this component.
|
|
9913
9976
|
*/
|
|
9914
9977
|
setVideoPlayerSourceType(value: Multiplayer.VideoPlayerSourceType): void;
|
|
9978
|
+
/**
|
|
9979
|
+
* @description Gets the type of stereo the video of this component uses.
|
|
9980
|
+
* @return The type of stereo used by this video.
|
|
9981
|
+
*/
|
|
9982
|
+
getStereoVideoType(): Multiplayer.StereoVideoType;
|
|
9983
|
+
/**
|
|
9984
|
+
* @description Sets the type of stereo the video of this component uses.
|
|
9985
|
+
* @param value - The type of stereo used by this video.
|
|
9986
|
+
*/
|
|
9987
|
+
setStereoVideoType(value: Multiplayer.StereoVideoType): void;
|
|
9915
9988
|
/**
|
|
9916
9989
|
* \addtogroup IVisibleComponent
|
|
9917
9990
|
@{
|
|
@@ -10716,10 +10789,6 @@ export declare namespace Systems {
|
|
|
10716
10789
|
* @description Registers the system to listen for the named event.
|
|
10717
10790
|
*/
|
|
10718
10791
|
registerSystemCallback(): void;
|
|
10719
|
-
/**
|
|
10720
|
-
* @description Deregisters the system from listening for the named event.
|
|
10721
|
-
*/
|
|
10722
|
-
deregisterSystemCallback(): void;
|
|
10723
10792
|
}
|
|
10724
10793
|
}
|
|
10725
10794
|
export declare namespace Systems {
|
|
@@ -11473,10 +11542,6 @@ export declare namespace Systems {
|
|
|
11473
11542
|
* @description Registers the system to listen for the named event.
|
|
11474
11543
|
*/
|
|
11475
11544
|
registerSystemCallback(): void;
|
|
11476
|
-
/**
|
|
11477
|
-
* @description Deregisters the system from listening for the named event.
|
|
11478
|
-
*/
|
|
11479
|
-
deregisterSystemCallback(): void;
|
|
11480
11545
|
}
|
|
11481
11546
|
}
|
|
11482
11547
|
export declare namespace Systems {
|
|
@@ -11815,10 +11880,6 @@ export declare namespace Systems {
|
|
|
11815
11880
|
* @description Registers the system to listen for the named event.
|
|
11816
11881
|
*/
|
|
11817
11882
|
registerSystemCallback(): void;
|
|
11818
|
-
/**
|
|
11819
|
-
* @description Deregisters the system from listening for the named event.
|
|
11820
|
-
*/
|
|
11821
|
-
deregisterSystemCallback(): void;
|
|
11822
11883
|
}
|
|
11823
11884
|
}
|
|
11824
11885
|
export declare namespace Systems {
|
|
@@ -12515,16 +12576,44 @@ export declare namespace Systems {
|
|
|
12515
12576
|
*/
|
|
12516
12577
|
deleteSpaceGeoLocation(spaceId: string): Promise<Systems.NullResult>;
|
|
12517
12578
|
/**
|
|
12518
|
-
* @description Duplicate an existing space and assign it to the current user
|
|
12579
|
+
* @description Duplicate an existing space and assign it to the current user.
|
|
12580
|
+
* This is a synchronous operation and can have a high execution time for complex spaces. If the user disconnects while waiting for the operation
|
|
12581
|
+
* to complete, the duplicate space request will be cancelled.
|
|
12582
|
+
* \deprecated Use DuplicateSpaceAsync() instead. This method performs a synchronous duplication of a Space which can timeout and fail for
|
|
12583
|
+
* complex Spaces or if the backend services are under excessive load.
|
|
12519
12584
|
* @param spaceId - Id of the space to duplicate.
|
|
12520
12585
|
* @param newName - A unique name for the duplicated space.
|
|
12521
12586
|
* @param newAttributes - Attributes to apply to the duplicated space.
|
|
12522
|
-
* @param memberGroupIds - An optional array of group (space) IDs
|
|
12587
|
+
* @param memberGroupIds - An optional array of group (space) IDs. Members of these groups will be added
|
|
12588
|
+
* to the duplicated space with the same roles.
|
|
12523
12589
|
* @param shallowCopy - If true, the duplicated space will reference the assets of the original space. Otherwise, all assets will be
|
|
12524
12590
|
* duplicated.
|
|
12525
|
-
* @param callback - Callback when asynchronous task finishes
|
|
12591
|
+
* @param callback - Callback when asynchronous task finishes.
|
|
12526
12592
|
*/
|
|
12527
12593
|
duplicateSpace(spaceId: string, newName: string, newAttributes: Systems.SpaceAttributes, memberGroupIds: Common.Array<string> | null, shallowCopy: boolean): Promise<Systems.SpaceResult>;
|
|
12594
|
+
/**
|
|
12595
|
+
* @description Duplicate an existing space and assign it to the current user.
|
|
12596
|
+
* This is an asynchronous operation. If the user disconnects while waiting for the operation to complete it will continue unaffected. Please
|
|
12597
|
+
* subcribe to the AsyncCallCompletedCallback via @ref SpaceSystem::SetAsyncCallCompletedCallback() to be notified when the duplication operation
|
|
12598
|
+
* is complete. The AsyncCallCompletedEventData returned by the AsyncCallCompletedCallback will contain the following information:
|
|
12599
|
+
* - OperationName: "DuplicateSpaceAsync".
|
|
12600
|
+
* - ReferenceId: Id of the newly duplicated Space.
|
|
12601
|
+
* - ReferenceType: "GroupId".
|
|
12602
|
+
* @param spaceId - Id of the space to duplicate.
|
|
12603
|
+
* @param newName - A unique name for the duplicated space.
|
|
12604
|
+
* @param newAttributes - Attributes to apply to the duplicated space.
|
|
12605
|
+
* @param memberGroupIds - An optional array of group (space) IDs. Members of these groups will be added
|
|
12606
|
+
* to the duplicated space with the same roles.
|
|
12607
|
+
* @param shallowCopy - If true, the duplicated space will reference the assets of the original space. Otherwise, all assets will be
|
|
12608
|
+
* duplicated.
|
|
12609
|
+
* @param callback - Callback when asynchronous task is successfully received by the backend services.
|
|
12610
|
+
*/
|
|
12611
|
+
duplicateSpaceAsync(spaceId: string, newName: string, newAttributes: Systems.SpaceAttributes, memberGroupIds: Common.Array<string> | null, shallowCopy: boolean): Promise<Systems.NullResult>;
|
|
12612
|
+
/**
|
|
12613
|
+
* @description Sets a callback for the async call completed event. Triggered when an async call to DuplicateSpace is completed.
|
|
12614
|
+
* @param callback - Callback to receive data concerning the Space duplication.
|
|
12615
|
+
*/
|
|
12616
|
+
setAsyncCallCompletedCallback(callback: (arg1: Common.AsyncCallCompletedEventData) => void): void;
|
|
12528
12617
|
}
|
|
12529
12618
|
}
|
|
12530
12619
|
export declare namespace Systems {
|
|
@@ -13078,10 +13167,6 @@ export declare namespace Systems {
|
|
|
13078
13167
|
* @description Registers the system to listen for the named event.
|
|
13079
13168
|
*/
|
|
13080
13169
|
registerSystemCallback(): void;
|
|
13081
|
-
/**
|
|
13082
|
-
* @description Deregisters the system from listening for the named event.
|
|
13083
|
-
*/
|
|
13084
|
-
deregisterSystemCallback(): void;
|
|
13085
13170
|
}
|
|
13086
13171
|
}
|
|
13087
13172
|
export declare namespace Common {
|
|
@@ -13091,6 +13176,7 @@ export declare namespace Common {
|
|
|
13091
13176
|
private TTypeFactory;
|
|
13092
13177
|
private TTypeName;
|
|
13093
13178
|
static ofcsp_multiplayer_ComponentUpdateInfo(): Array<Multiplayer.ComponentUpdateInfo>;
|
|
13179
|
+
static ofcsp_FeatureFlag(): Array<FeatureFlag>;
|
|
13094
13180
|
static ofcsp_common_ReplicatedValue(): Array<Common.ReplicatedValue>;
|
|
13095
13181
|
static ofcsp_systems_SpaceUserRole(): Array<Systems.SpaceUserRole>;
|
|
13096
13182
|
static ofcsp_multiplayer_NetworkEventRegistration(): Array<Multiplayer.NetworkEventRegistration>;
|
|
@@ -13135,6 +13221,7 @@ export declare namespace Common {
|
|
|
13135
13221
|
static ofcsp_common_Map_String_String(): Array<Common.Map<string, string>>;
|
|
13136
13222
|
static ofcsp_common_Array_String(): Array<Common.Array<string>>;
|
|
13137
13223
|
static ofcsp_multiplayer_ComponentUpdateInfo_number(size: number): Array<Multiplayer.ComponentUpdateInfo>;
|
|
13224
|
+
static ofcsp_FeatureFlag_number(size: number): Array<FeatureFlag>;
|
|
13138
13225
|
static ofcsp_common_ReplicatedValue_number(size: number): Array<Common.ReplicatedValue>;
|
|
13139
13226
|
static ofcsp_systems_SpaceUserRole_number(size: number): Array<Systems.SpaceUserRole>;
|
|
13140
13227
|
static ofcsp_multiplayer_NetworkEventRegistration_number(size: number): Array<Multiplayer.NetworkEventRegistration>;
|