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.
@@ -260,6 +260,10 @@ function NumberFactory(nativePointer) {
260
260
  return nativePointer.pointer;
261
261
  }
262
262
  ProxyClassFactories["Number"] = NumberFactory;
263
+ function csp_EFeatureFlagFactory(nativePointer) {
264
+ return nativePointer.pointer;
265
+ }
266
+ ProxyClassFactories["csp_EFeatureFlag"] = csp_EFeatureFlagFactory;
263
267
  function csp_common_EAssetChangeTypeFactory(nativePointer) {
264
268
  return nativePointer.pointer;
265
269
  }
@@ -579,6 +583,11 @@ function csp_multiplayer_VideoPlayerSourceTypeFactory(nativePointer) {
579
583
  }
580
584
  ProxyClassFactories["csp_multiplayer_VideoPlayerSourceType"] =
581
585
  csp_multiplayer_VideoPlayerSourceTypeFactory;
586
+ function csp_multiplayer_StereoVideoTypeFactory(nativePointer) {
587
+ return nativePointer.pointer;
588
+ }
589
+ ProxyClassFactories["csp_multiplayer_StereoVideoType"] =
590
+ csp_multiplayer_StereoVideoTypeFactory;
582
591
  function csp_multiplayer_VideoPlayerPropertyKeysFactory(nativePointer) {
583
592
  return nativePointer.pointer;
584
593
  }
@@ -677,6 +686,10 @@ function csp_systems_EThirdPartyAuthenticationProvidersFactory(nativePointer) {
677
686
  }
678
687
  ProxyClassFactories["csp_systems_EThirdPartyAuthenticationProviders"] =
679
688
  csp_systems_EThirdPartyAuthenticationProvidersFactory;
689
+ function csp_FeatureFlagFactory(nativePointer) {
690
+ return new FeatureFlag(nativePointer);
691
+ }
692
+ ProxyClassFactories["csp_FeatureFlag"] = csp_FeatureFlagFactory;
680
693
  function csp_ServiceDefinitionFactory(nativePointer) {
681
694
  return new ServiceDefinition(nativePointer);
682
695
  }
@@ -1104,6 +1117,11 @@ function csp_common_SequenceChangedNetworkEventDataFactory(nativePointer) {
1104
1117
  }
1105
1118
  ProxyClassFactories["csp_common_SequenceChangedNetworkEventData"] =
1106
1119
  csp_common_SequenceChangedNetworkEventDataFactory;
1120
+ function csp_common_AsyncCallCompletedEventDataFactory(nativePointer) {
1121
+ return new Common.AsyncCallCompletedEventData(nativePointer);
1122
+ }
1123
+ ProxyClassFactories["csp_common_AsyncCallCompletedEventData"] =
1124
+ csp_common_AsyncCallCompletedEventDataFactory;
1107
1125
  function csp_multiplayer_OfflineRealtimeEngineFactory(nativePointer) {
1108
1126
  return new Multiplayer.OfflineRealtimeEngine(nativePointer);
1109
1127
  }
@@ -1712,6 +1730,11 @@ function csp_common_Array_csp_multiplayer_ComponentUpdateInfoFactory(nativePoint
1712
1730
  }
1713
1731
  ProxyClassFactories["csp_common_Array_csp_multiplayer_ComponentUpdateInfo"] =
1714
1732
  csp_common_Array_csp_multiplayer_ComponentUpdateInfoFactory;
1733
+ function csp_common_Array_csp_FeatureFlagFactory(nativePointer) {
1734
+ return new Common.Array(nativePointer, csp_FeatureFlagFactory, "csp_FeatureFlag");
1735
+ }
1736
+ ProxyClassFactories["csp_common_Array_csp_FeatureFlag"] =
1737
+ csp_common_Array_csp_FeatureFlagFactory;
1715
1738
  function csp_common_Array_csp_common_ReplicatedValueFactory(nativePointer) {
1716
1739
  return new Common.Array(nativePointer, csp_common_ReplicatedValueFactory, "csp_common_ReplicatedValue");
1717
1740
  }
@@ -1981,6 +2004,10 @@ function csp_common_Map_String_csp_common_Array_StringFactory(nativePointer) {
1981
2004
  }
1982
2005
  ProxyClassFactories["csp_common_Map_String_csp_common_Array_String"] =
1983
2006
  csp_common_Map_String_csp_common_Array_StringFactory;
2007
+ export var EFeatureFlag;
2008
+ (function (EFeatureFlag) {
2009
+ EFeatureFlag[EFeatureFlag["Invalid"] = 0] = "Invalid";
2010
+ })(EFeatureFlag || (EFeatureFlag = {}));
1984
2011
  export var Common;
1985
2012
  (function (Common) {
1986
2013
  /**
@@ -3079,6 +3106,18 @@ export var Systems;
3079
3106
  VideoPlayerSourceType[VideoPlayerSourceType["Num"] = 3] = "Num";
3080
3107
  })(VideoPlayerSourceType = Multiplayer.VideoPlayerSourceType || (Multiplayer.VideoPlayerSourceType = {}));
3081
3108
  })(Multiplayer || (Multiplayer = {}));
3109
+ (function (Multiplayer) {
3110
+ /**
3111
+ * @description Enumerates the type of stereo the video player supports.
3112
+ */
3113
+ let StereoVideoType;
3114
+ (function (StereoVideoType) {
3115
+ StereoVideoType[StereoVideoType["None"] = 0] = "None";
3116
+ StereoVideoType[StereoVideoType["SideBySide"] = 1] = "SideBySide";
3117
+ StereoVideoType[StereoVideoType["TopBottom"] = 2] = "TopBottom";
3118
+ StereoVideoType[StereoVideoType["Num"] = 3] = "Num";
3119
+ })(StereoVideoType = Multiplayer.StereoVideoType || (Multiplayer.StereoVideoType = {}));
3120
+ })(Multiplayer || (Multiplayer = {}));
3082
3121
  (function (Multiplayer) {
3083
3122
  /**
3084
3123
  * @description Enumerates the list of properties that can be replicated for a video player component.
@@ -3106,7 +3145,8 @@ export var Systems;
3106
3145
  VideoPlayerPropertyKeys[VideoPlayerPropertyKeys["MeshComponentId"] = 18] = "MeshComponentId";
3107
3146
  VideoPlayerPropertyKeys[VideoPlayerPropertyKeys["IsEnabled"] = 19] = "IsEnabled";
3108
3147
  VideoPlayerPropertyKeys[VideoPlayerPropertyKeys["IsVirtualVisible"] = 20] = "IsVirtualVisible";
3109
- VideoPlayerPropertyKeys[VideoPlayerPropertyKeys["Num"] = 21] = "Num";
3148
+ VideoPlayerPropertyKeys[VideoPlayerPropertyKeys["StereoVideoType"] = 21] = "StereoVideoType";
3149
+ VideoPlayerPropertyKeys[VideoPlayerPropertyKeys["Num"] = 22] = "Num";
3110
3150
  })(VideoPlayerPropertyKeys = Multiplayer.VideoPlayerPropertyKeys || (Multiplayer.VideoPlayerPropertyKeys = {}));
3111
3151
  })(Multiplayer || (Multiplayer = {}));
3112
3152
  (function (Multiplayer) {
@@ -3276,7 +3316,8 @@ export var Systems;
3276
3316
  TierFeatures[TierFeatures["OpenAI"] = 6] = "OpenAI";
3277
3317
  TierFeatures[TierFeatures["Shopify"] = 7] = "Shopify";
3278
3318
  TierFeatures[TierFeatures["TicketedSpace"] = 8] = "TicketedSpace";
3279
- TierFeatures[TierFeatures["Invalid"] = 9] = "Invalid";
3319
+ TierFeatures[TierFeatures["GoogleGenAI"] = 9] = "GoogleGenAI";
3320
+ TierFeatures[TierFeatures["Invalid"] = 10] = "Invalid";
3280
3321
  })(TierFeatures = Systems.TierFeatures || (Systems.TierFeatures = {}));
3281
3322
  })(Systems || (Systems = {}));
3282
3323
  (function (Systems) {
@@ -3350,6 +3391,51 @@ export var Systems;
3350
3391
  EThirdPartyAuthenticationProviders[EThirdPartyAuthenticationProviders["Invalid"] = 3] = "Invalid";
3351
3392
  })(EThirdPartyAuthenticationProviders = Systems.EThirdPartyAuthenticationProviders || (Systems.EThirdPartyAuthenticationProviders = {}));
3352
3393
  })(Systems || (Systems = {}));
3394
+ export class FeatureFlag extends NativeClassWrapper {
3395
+ /** @internal */
3396
+ constructor(pointer) {
3397
+ super(pointer);
3398
+ }
3399
+ static create() {
3400
+ var _ptr = Module._malloc(8);
3401
+ Module.ccall("csp_FeatureFlag_Ctor", "void", ["number"], [_ptr]);
3402
+ var _nPtr = getNativePointer(_ptr);
3403
+ return new FeatureFlag(_nPtr);
3404
+ }
3405
+ static create_type_isEnabled(type, isEnabled) {
3406
+ var _ptr = Module._malloc(8);
3407
+ Module.ccall("csp_FeatureFlag_Ctor_EFeatureFlag_bool", "void", ["number", "number", "boolean"], [_ptr, type, isEnabled]);
3408
+ var _nPtr = getNativePointer(_ptr);
3409
+ return new FeatureFlag(_nPtr);
3410
+ }
3411
+ getDescription() {
3412
+ let _result = Module.ccall("csp_FeatureFlag_GetDescription_StringRC", "number", ["number"], [this.pointer]);
3413
+ const _resultString = Module.UTF8ToString(_result);
3414
+ free(_result);
3415
+ _result = _resultString;
3416
+ return _result;
3417
+ }
3418
+ delete() {
3419
+ if (this.ownsPointer && !this.disposed) {
3420
+ Module.ccall("csp_FeatureFlag_Dtor", "void", ["number"], [this.pointer]);
3421
+ this.disposed = true;
3422
+ }
3423
+ }
3424
+ get type() {
3425
+ let _result = Module.ccall("csp_FeatureFlag__Get_Type", "number", ["number"], [this.pointer]);
3426
+ return _result;
3427
+ }
3428
+ set type(value) {
3429
+ Module.ccall("csp_FeatureFlag__Set_Type", "void", ["number", "number"], [this.pointer, value]);
3430
+ }
3431
+ get enabled() {
3432
+ let _result = Module.ccall("csp_FeatureFlag__Get_Enabled", "boolean", ["number"], [this.pointer]);
3433
+ return _result;
3434
+ }
3435
+ set enabled(value) {
3436
+ Module.ccall("csp_FeatureFlag__Set_Enabled", "void", ["number", "boolean"], [this.pointer, value]);
3437
+ }
3438
+ }
3353
3439
  /**
3354
3440
  * @description Represents definition for identifying and versioning an external service endpoint.
3355
3441
  */
@@ -3562,10 +3648,18 @@ export class CSPFoundation {
3562
3648
  * @param tenant - Tenant for Magnopus Services. Data is not shared between tenants so clients using separate tenants
3563
3649
  * cannot interact with each other.
3564
3650
  * @param clientUserAgentHeader - The Client Info data
3651
+ * @param featureFlagOverrides - Optional list of feature flags whose default
3652
+ * enabled state is to be overriden. The FeatureFlag.Description property can be ignored when passing in feature flags here as this is defined by
3653
+ * the developer who creates the flag.
3565
3654
  * @return True for successful initialisation.
3566
3655
  */
3567
- static initialise(endpointRootURI, tenant, clientUserAgentHeader) {
3568
- let _result = Module.ccall("csp_CSPFoundation_Initialise_bool_StringRC_StringRC_ClientUserAgentRC", "boolean", ["string", "string", "number"], [endpointRootURI, tenant, clientUserAgentHeader.pointer]);
3656
+ static initialise(endpointRootURI, tenant, clientUserAgentHeader, featureFlagOverrides) {
3657
+ let _result = Module.ccall("csp_CSPFoundation_Initialise_bool_StringRC_StringRC_ClientUserAgentRC_ArrayRC", "boolean", ["string", "string", "number", "number"], [
3658
+ endpointRootURI,
3659
+ tenant,
3660
+ clientUserAgentHeader.pointer,
3661
+ featureFlagOverrides.pointer,
3662
+ ]);
3569
3663
  return _result;
3570
3664
  }
3571
3665
  /**
@@ -3697,6 +3791,38 @@ export class CSPFoundation {
3697
3791
  _result = _resultString;
3698
3792
  return _result;
3699
3793
  }
3794
+ /**
3795
+ * @description Checks if a given feature flag is enabled.
3796
+ * @param flag - The feature flag to check
3797
+ * @return True if the feature flag is enabled, false otherwise
3798
+ */
3799
+ static isFeatureEnabled(flag) {
3800
+ let _result = Module.ccall("csp_CSPFoundation_IsFeatureEnabled_bool_EFeatureFlag", "boolean", ["number"], [flag]);
3801
+ return _result;
3802
+ }
3803
+ /**
3804
+ * @description Returns an array of feature flags.
3805
+ * @return An array of the defined feature flags
3806
+ */
3807
+ static getFeatureFlags() {
3808
+ var _ret = Module._malloc(8);
3809
+ Module.ccall("csp_CSPFoundation_GetFeatureFlags_ArrayRC", "void", ["number"], [_ret]);
3810
+ var _nPtr = new Common.Array(getNativePointer(_ret), csp_FeatureFlagFactory, "csp_FeatureFlag");
3811
+ Module._free(_ret);
3812
+ return _nPtr;
3813
+ }
3814
+ /**
3815
+ * @description Get the description of a feature flag.
3816
+ * @param flag - The feature flag whose description is to be retrieved
3817
+ * @return The description of the feature flag
3818
+ */
3819
+ static getFeatureFlagDescription(flag) {
3820
+ let _result = Module.ccall("csp_CSPFoundation_GetFeatureFlagDescription_String_EFeatureFlag", "number", ["number"], [flag]);
3821
+ const _resultString = Module.UTF8ToString(_result);
3822
+ free(_result);
3823
+ _result = _resultString;
3824
+ return _result;
3825
+ }
3700
3826
  }
3701
3827
  (function (Common) {
3702
3828
  /**
@@ -12504,9 +12630,13 @@ export class CSPFoundation {
12504
12630
  })(Systems || (Systems = {}));
12505
12631
  (function (Systems) {
12506
12632
  /**
12507
- * @description Base class for all Connected Spaces Platform Systems, which enforces passing of a WebClient or NetworkEventBus instance in the constructor
12508
- * of each System.
12509
- */
12633
+ * @description Base class for all Connected Spaces Platform Systems, which enforces passing of a WebClient or NetworkEventBus instance in the constructor
12634
+ * of each System.
12635
+ @invariant EventBusPtr can never be null. The NetworkEventBus is owned by the MultiplayerConnection and persists for it's lifetime. It is passed
12636
+ * to each system (which derive from SystemBase) by reference to their ctor. This ref is dereferenced before being passed to the SystemBase ctor.
12637
+ @invariant LogSystem can never be null. The LogSystem is owned by the SystemsManager and persists for it's lifetime. It is passed to
12638
+ * each system (which derive from SystemBase) by reference to their ctor. This ref is dereferenced before being passed to the SystemBase ctor.
12639
+ */
12510
12640
  class SystemBase extends NativeClassWrapper {
12511
12641
  /** @internal */
12512
12642
  constructor(pointer) {
@@ -12521,12 +12651,6 @@ export class CSPFoundation {
12521
12651
  registerSystemCallback() {
12522
12652
  Module.ccall("csp_systems_SystemBase_RegisterSystemCallback_void", "void", ["number"], [this.pointer]);
12523
12653
  }
12524
- /**
12525
- * @description Deregisters the system from listening for the default event.
12526
- */
12527
- deregisterSystemCallback() {
12528
- Module.ccall("csp_systems_SystemBase_DeregisterSystemCallback_void", "void", ["number"], [this.pointer]);
12529
- }
12530
12654
  }
12531
12655
  Systems.SystemBase = SystemBase;
12532
12656
  })(Systems || (Systems = {}));
@@ -16034,6 +16158,52 @@ export class CSPFoundation {
16034
16158
  }
16035
16159
  Common.SequenceChangedNetworkEventData = SequenceChangedNetworkEventData;
16036
16160
  })(Common || (Common = {}));
16161
+ (function (Common) {
16162
+ class AsyncCallCompletedEventData extends Common.NetworkEventData {
16163
+ /** @internal */
16164
+ constructor(pointer) {
16165
+ super(pointer);
16166
+ }
16167
+ static fromNetworkEventData(baseInstance) {
16168
+ const nativeClassWrapper = baseInstance;
16169
+ return new Common.AsyncCallCompletedEventData(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
16170
+ }
16171
+ static create() {
16172
+ var _ptr = Module._malloc(8);
16173
+ Module.ccall("csp_common_AsyncCallCompletedEventData_Ctor", "void", ["number"], [_ptr]);
16174
+ var _nPtr = getNativePointer(_ptr);
16175
+ return new AsyncCallCompletedEventData(_nPtr);
16176
+ }
16177
+ delete() {
16178
+ if (this.ownsPointer && !this.disposed) {
16179
+ Module.ccall("csp_common_AsyncCallCompletedEventData_Dtor", "void", ["number"], [this.pointer]);
16180
+ this.disposed = true;
16181
+ }
16182
+ }
16183
+ get operationName() {
16184
+ let _result = Module.ccall("csp_common_AsyncCallCompletedEventData__Get_OperationName", "string", ["number"], [this.pointer]);
16185
+ return _result;
16186
+ }
16187
+ set operationName(value) {
16188
+ Module.ccall("csp_common_AsyncCallCompletedEventData__Set_OperationName", "void", ["number", "string"], [this.pointer, value]);
16189
+ }
16190
+ get referenceId() {
16191
+ let _result = Module.ccall("csp_common_AsyncCallCompletedEventData__Get_ReferenceId", "string", ["number"], [this.pointer]);
16192
+ return _result;
16193
+ }
16194
+ set referenceId(value) {
16195
+ Module.ccall("csp_common_AsyncCallCompletedEventData__Set_ReferenceId", "void", ["number", "string"], [this.pointer, value]);
16196
+ }
16197
+ get referenceType() {
16198
+ let _result = Module.ccall("csp_common_AsyncCallCompletedEventData__Get_ReferenceType", "string", ["number"], [this.pointer]);
16199
+ return _result;
16200
+ }
16201
+ set referenceType(value) {
16202
+ Module.ccall("csp_common_AsyncCallCompletedEventData__Set_ReferenceType", "void", ["number", "string"], [this.pointer, value]);
16203
+ }
16204
+ }
16205
+ Common.AsyncCallCompletedEventData = AsyncCallCompletedEventData;
16206
+ })(Common || (Common = {}));
16037
16207
  (function (Multiplayer) {
16038
16208
  /**
16039
16209
  * @description Class for creating and managing objects in an offline context.
@@ -22592,6 +22762,21 @@ export class CSPFoundation {
22592
22762
  setVideoPlayerSourceType(value) {
22593
22763
  Module.ccall("csp_multiplayer_VideoPlayerSpaceComponent_SetVideoPlayerSourceType_void_VideoPlayerSourceType", "void", ["number", "number"], [this.pointer, value]);
22594
22764
  }
22765
+ /**
22766
+ * @description Gets the type of stereo the video of this component uses.
22767
+ * @return The type of stereo used by this video.
22768
+ */
22769
+ getStereoVideoType() {
22770
+ let _result = Module.ccall("csp_multiplayer_VideoPlayerSpaceComponent_GetStereoVideoTypeC_StereoVideoType", "number", ["number"], [this.pointer]);
22771
+ return _result;
22772
+ }
22773
+ /**
22774
+ * @description Sets the type of stereo the video of this component uses.
22775
+ * @param value - The type of stereo used by this video.
22776
+ */
22777
+ setStereoVideoType(value) {
22778
+ Module.ccall("csp_multiplayer_VideoPlayerSpaceComponent_SetStereoVideoType_void_StereoVideoType", "void", ["number", "number"], [this.pointer, value]);
22779
+ }
22595
22780
  /**
22596
22781
  * \addtogroup IVisibleComponent
22597
22782
  @{
@@ -24692,12 +24877,6 @@ export class CSPFoundation {
24692
24877
  registerSystemCallback() {
24693
24878
  Module.ccall("csp_systems_AssetSystem_RegisterSystemCallback_void", "void", ["number"], [this.pointer]);
24694
24879
  }
24695
- /**
24696
- * @description Deregisters the system from listening for the named event.
24697
- */
24698
- deregisterSystemCallback() {
24699
- Module.ccall("csp_systems_AssetSystem_DeregisterSystemCallback_void", "void", ["number"], [this.pointer]);
24700
- }
24701
24880
  }
24702
24881
  Systems.AssetSystem = AssetSystem;
24703
24882
  })(Systems || (Systems = {}));
@@ -26346,7 +26525,7 @@ export class CSPFoundation {
26346
26525
  }
26347
26526
  static create_sequenceSystem_spaceSystem_eventBus_logSystem(sequenceSystem, spaceSystem, eventBus, logSystem) {
26348
26527
  var _ptr = Module._malloc(8);
26349
- Module.ccall("csp_systems_HotspotSequenceSystem_Ctor_SequenceSystemP_SpaceSystemP_NetworkEventBusP_LogSystemR", "void", ["number", "number", "number", "number", "number"], [
26528
+ Module.ccall("csp_systems_HotspotSequenceSystem_Ctor_SequenceSystemP_SpaceSystemP_NetworkEventBusR_LogSystemR", "void", ["number", "number", "number", "number", "number"], [
26350
26529
  _ptr,
26351
26530
  sequenceSystem.pointer,
26352
26531
  spaceSystem.pointer,
@@ -26552,12 +26731,6 @@ export class CSPFoundation {
26552
26731
  registerSystemCallback() {
26553
26732
  Module.ccall("csp_systems_HotspotSequenceSystem_RegisterSystemCallback_void", "void", ["number"], [this.pointer]);
26554
26733
  }
26555
- /**
26556
- * @description Deregisters the system from listening for the named event.
26557
- */
26558
- deregisterSystemCallback() {
26559
- Module.ccall("csp_systems_HotspotSequenceSystem_DeregisterSystemCallback_void", "void", ["number"], [this.pointer]);
26560
- }
26561
26734
  }
26562
26735
  Systems.HotspotSequenceSystem = HotspotSequenceSystem;
26563
26736
  })(Systems || (Systems = {}));
@@ -27443,12 +27616,6 @@ export class CSPFoundation {
27443
27616
  registerSystemCallback() {
27444
27617
  Module.ccall("csp_systems_SequenceSystem_RegisterSystemCallback_void", "void", ["number"], [this.pointer]);
27445
27618
  }
27446
- /**
27447
- * @description Deregisters the system from listening for the named event.
27448
- */
27449
- deregisterSystemCallback() {
27450
- Module.ccall("csp_systems_SequenceSystem_DeregisterSystemCallback_void", "void", ["number"], [this.pointer]);
27451
- }
27452
27619
  }
27453
27620
  Systems.SequenceSystem = SequenceSystem;
27454
27621
  })(Systems || (Systems = {}));
@@ -29617,14 +29784,19 @@ export class CSPFoundation {
29617
29784
  return _promise;
29618
29785
  }
29619
29786
  /**
29620
- * @description Duplicate an existing space and assign it to the current user
29787
+ * @description Duplicate an existing space and assign it to the current user.
29788
+ * This is a synchronous operation and can have a high execution time for complex spaces. If the user disconnects while waiting for the operation
29789
+ * to complete, the duplicate space request will be cancelled.
29790
+ * \deprecated Use DuplicateSpaceAsync() instead. This method performs a synchronous duplication of a Space which can timeout and fail for
29791
+ * complex Spaces or if the backend services are under excessive load.
29621
29792
  * @param spaceId - Id of the space to duplicate.
29622
29793
  * @param newName - A unique name for the duplicated space.
29623
29794
  * @param newAttributes - Attributes to apply to the duplicated space.
29624
- * @param memberGroupIds - An optional array of group (space) IDs to copy users from.
29795
+ * @param memberGroupIds - An optional array of group (space) IDs. Members of these groups will be added
29796
+ * to the duplicated space with the same roles.
29625
29797
  * @param shallowCopy - If true, the duplicated space will reference the assets of the original space. Otherwise, all assets will be
29626
29798
  * duplicated.
29627
- * @param callback - Callback when asynchronous task finishes
29799
+ * @param callback - Callback when asynchronous task finishes.
29628
29800
  */
29629
29801
  async duplicateSpace(spaceId, newName, newAttributes, memberGroupIds, shallowCopy) {
29630
29802
  var _resolve;
@@ -29663,6 +29835,72 @@ export class CSPFoundation {
29663
29835
  ]);
29664
29836
  return _promise;
29665
29837
  }
29838
+ /**
29839
+ * @description Duplicate an existing space and assign it to the current user.
29840
+ * This is an asynchronous operation. If the user disconnects while waiting for the operation to complete it will continue unaffected. Please
29841
+ * subcribe to the AsyncCallCompletedCallback via @ref SpaceSystem::SetAsyncCallCompletedCallback() to be notified when the duplication operation
29842
+ * is complete. The AsyncCallCompletedEventData returned by the AsyncCallCompletedCallback will contain the following information:
29843
+ * - OperationName: "DuplicateSpaceAsync".
29844
+ * - ReferenceId: Id of the newly duplicated Space.
29845
+ * - ReferenceType: "GroupId".
29846
+ * @param spaceId - Id of the space to duplicate.
29847
+ * @param newName - A unique name for the duplicated space.
29848
+ * @param newAttributes - Attributes to apply to the duplicated space.
29849
+ * @param memberGroupIds - An optional array of group (space) IDs. Members of these groups will be added
29850
+ * to the duplicated space with the same roles.
29851
+ * @param shallowCopy - If true, the duplicated space will reference the assets of the original space. Otherwise, all assets will be
29852
+ * duplicated.
29853
+ * @param callback - Callback when asynchronous task is successfully received by the backend services.
29854
+ */
29855
+ async duplicateSpaceAsync(spaceId, newName, newAttributes, memberGroupIds, shallowCopy) {
29856
+ var _resolve;
29857
+ var _promise = new Promise((_r) => {
29858
+ _resolve = _r;
29859
+ });
29860
+ var _callbackPtr;
29861
+ var _callback = (_stateObject__, result) => {
29862
+ var _resultPtr = getNativePointer(result);
29863
+ var _resultInstance = new Systems.NullResult(_resultPtr);
29864
+ if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
29865
+ return;
29866
+ }
29867
+ _resolve(_resultInstance);
29868
+ Module.removeFunction(_callbackPtr);
29869
+ };
29870
+ _callbackPtr = Module.addFunction(_callback, "vii");
29871
+ Module.ccall("csp_systems_SpaceSystem_DuplicateSpaceAsync_void_StringRC_StringRC_SpaceAttributes_ArrayRC_bool_NullResultCallback", "void", [
29872
+ "number",
29873
+ "string",
29874
+ "string",
29875
+ "number",
29876
+ "number",
29877
+ "boolean",
29878
+ "number",
29879
+ "number",
29880
+ ], [
29881
+ this.pointer,
29882
+ spaceId,
29883
+ newName,
29884
+ newAttributes,
29885
+ memberGroupIds != null ? memberGroupIds.pointer : 0,
29886
+ shallowCopy,
29887
+ _callbackPtr,
29888
+ 0,
29889
+ ]);
29890
+ return _promise;
29891
+ }
29892
+ /**
29893
+ * @description Sets a callback for the async call completed event. Triggered when an async call to DuplicateSpace is completed.
29894
+ * @param callback - Callback to receive data concerning the Space duplication.
29895
+ */
29896
+ setAsyncCallCompletedCallback(callback) {
29897
+ var _callback = (_stateObject__, arg1) => {
29898
+ var _arg1 = new Common.AsyncCallCompletedEventData(getNativePointer(arg1));
29899
+ callback(_arg1);
29900
+ };
29901
+ var _callbackPtr = Module.addFunction(_callback, "vii");
29902
+ Module.ccall("csp_systems_SpaceSystem_SetAsyncCallCompletedCallback_void_AsyncCallCompletedCallbackHandler", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
29903
+ }
29666
29904
  }
29667
29905
  Systems.SpaceSystem = SpaceSystem;
29668
29906
  })(Systems || (Systems = {}));
@@ -31407,12 +31645,6 @@ export class CSPFoundation {
31407
31645
  registerSystemCallback() {
31408
31646
  Module.ccall("csp_systems_UserSystem_RegisterSystemCallback_void", "void", ["number"], [this.pointer]);
31409
31647
  }
31410
- /**
31411
- * @description Deregisters the system from listening for the named event.
31412
- */
31413
- deregisterSystemCallback() {
31414
- Module.ccall("csp_systems_UserSystem_DeregisterSystemCallback_void", "void", ["number"], [this.pointer]);
31415
- }
31416
31648
  }
31417
31649
  Systems.UserSystem = UserSystem;
31418
31650
  })(Systems || (Systems = {}));
@@ -31431,6 +31663,13 @@ export class CSPFoundation {
31431
31663
  Module._free(_ret);
31432
31664
  return _inst;
31433
31665
  }
31666
+ static ofcsp_FeatureFlag() {
31667
+ var _ret = Module._malloc(8);
31668
+ Module.ccall("csp_common_Array_Ctor_csp_FeatureFlag", "void", ["number"], [_ret]);
31669
+ var _inst = new Array(getNativePointer(_ret), csp_FeatureFlagFactory, "csp_FeatureFlag");
31670
+ Module._free(_ret);
31671
+ return _inst;
31672
+ }
31434
31673
  static ofcsp_common_ReplicatedValue() {
31435
31674
  var _ret = Module._malloc(8);
31436
31675
  Module.ccall("csp_common_Array_Ctor_csp_common_ReplicatedValue", "void", ["number"], [_ret]);
@@ -31739,6 +31978,13 @@ export class CSPFoundation {
31739
31978
  Module._free(_ret);
31740
31979
  return _inst;
31741
31980
  }
31981
+ static ofcsp_FeatureFlag_number(size) {
31982
+ var _ret = Module._malloc(8);
31983
+ Module.ccall("csp_common_Array_Conv_size_tC_csp_FeatureFlag", "void", ["number", "number"], [_ret, size]);
31984
+ var _inst = new Array(getNativePointer(_ret), csp_FeatureFlagFactory, "csp_FeatureFlag");
31985
+ Module._free(_ret);
31986
+ return _inst;
31987
+ }
31742
31988
  static ofcsp_common_ReplicatedValue_number(size) {
31743
31989
  var _ret = Module._malloc(8);
31744
31990
  Module.ccall("csp_common_Array_Conv_size_tC_csp_common_ReplicatedValue", "void", ["number", "number"], [_ret, size]);