connected-spaces-platform.web 4.27.2 → 4.28.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.
@@ -359,6 +359,11 @@ function csp_multiplayer_AvatarComponentPropertyKeysFactory(nativePointer) {
359
359
  }
360
360
  ProxyClassFactories["csp_multiplayer_AvatarComponentPropertyKeys"] =
361
361
  csp_multiplayer_AvatarComponentPropertyKeysFactory;
362
+ function csp_multiplayer_BillboardModeFactory(nativePointer) {
363
+ return nativePointer.pointer;
364
+ }
365
+ ProxyClassFactories["csp_multiplayer_BillboardMode"] =
366
+ csp_multiplayer_BillboardModeFactory;
362
367
  function csp_multiplayer_ButtonPropertyKeysFactory(nativePointer) {
363
368
  return nativePointer.pointer;
364
369
  }
@@ -428,11 +433,6 @@ function csp_multiplayer_ImagePropertyKeysFactory(nativePointer) {
428
433
  }
429
434
  ProxyClassFactories["csp_multiplayer_ImagePropertyKeys"] =
430
435
  csp_multiplayer_ImagePropertyKeysFactory;
431
- function csp_multiplayer_BillboardModeFactory(nativePointer) {
432
- return nativePointer.pointer;
433
- }
434
- ProxyClassFactories["csp_multiplayer_BillboardMode"] =
435
- csp_multiplayer_BillboardModeFactory;
436
436
  function csp_multiplayer_DisplayModeFactory(nativePointer) {
437
437
  return nativePointer.pointer;
438
438
  }
@@ -493,6 +493,11 @@ function csp_multiplayer_StaticModelPropertyKeysFactory(nativePointer) {
493
493
  }
494
494
  ProxyClassFactories["csp_multiplayer_StaticModelPropertyKeys"] =
495
495
  csp_multiplayer_StaticModelPropertyKeysFactory;
496
+ function csp_multiplayer_TextPropertyKeysFactory(nativePointer) {
497
+ return nativePointer.pointer;
498
+ }
499
+ ProxyClassFactories["csp_multiplayer_TextPropertyKeys"] =
500
+ csp_multiplayer_TextPropertyKeysFactory;
496
501
  function csp_multiplayer_VideoPlayerPlaybackStateFactory(nativePointer) {
497
502
  return nativePointer.pointer;
498
503
  }
@@ -1057,6 +1062,11 @@ function csp_multiplayer_StaticModelSpaceComponentFactory(nativePointer) {
1057
1062
  }
1058
1063
  ProxyClassFactories["csp_multiplayer_StaticModelSpaceComponent"] =
1059
1064
  csp_multiplayer_StaticModelSpaceComponentFactory;
1065
+ function csp_multiplayer_TextSpaceComponentFactory(nativePointer) {
1066
+ return new Multiplayer.TextSpaceComponent(nativePointer);
1067
+ }
1068
+ ProxyClassFactories["csp_multiplayer_TextSpaceComponent"] =
1069
+ csp_multiplayer_TextSpaceComponentFactory;
1060
1070
  function csp_multiplayer_VideoPlayerSpaceComponentFactory(nativePointer) {
1061
1071
  return new Multiplayer.VideoPlayerSpaceComponent(nativePointer);
1062
1072
  }
@@ -1723,6 +1733,7 @@ export var Multiplayer;
1723
1733
  ComponentType[ComponentType["ECommerce"] = 22] = "ECommerce";
1724
1734
  ComponentType[ComponentType["FiducialMarker"] = 23] = "FiducialMarker";
1725
1735
  ComponentType[ComponentType["GaussianSplat"] = 24] = "GaussianSplat";
1736
+ ComponentType[ComponentType["Text"] = 25] = "Text";
1726
1737
  })(ComponentType = Multiplayer.ComponentType || (Multiplayer.ComponentType = {}));
1727
1738
  })(Multiplayer || (Multiplayer = {}));
1728
1739
  (function (Multiplayer) {
@@ -1980,6 +1991,14 @@ export var Multiplayer;
1980
1991
  AvatarComponentPropertyKeys[AvatarComponentPropertyKeys["Num"] = 15] = "Num";
1981
1992
  })(AvatarComponentPropertyKeys = Multiplayer.AvatarComponentPropertyKeys || (Multiplayer.AvatarComponentPropertyKeys = {}));
1982
1993
  })(Multiplayer || (Multiplayer = {}));
1994
+ (function (Multiplayer) {
1995
+ let BillboardMode;
1996
+ (function (BillboardMode) {
1997
+ BillboardMode[BillboardMode["Off"] = 0] = "Off";
1998
+ BillboardMode[BillboardMode["Billboard"] = 1] = "Billboard";
1999
+ BillboardMode[BillboardMode["YawLockedBillboard"] = 2] = "YawLockedBillboard";
2000
+ })(BillboardMode = Multiplayer.BillboardMode || (Multiplayer.BillboardMode = {}));
2001
+ })(Multiplayer || (Multiplayer = {}));
1983
2002
  (function (Multiplayer) {
1984
2003
  /**
1985
2004
  * @description Enumerates the list of properties that can be replicated for a button component.
@@ -2195,17 +2214,6 @@ export var Multiplayer;
2195
2214
  ImagePropertyKeys[ImagePropertyKeys["Num"] = 11] = "Num";
2196
2215
  })(ImagePropertyKeys = Multiplayer.ImagePropertyKeys || (Multiplayer.ImagePropertyKeys = {}));
2197
2216
  })(Multiplayer || (Multiplayer = {}));
2198
- (function (Multiplayer) {
2199
- /**
2200
- * @description The billboard mode supported by this image space component.
2201
- */
2202
- let BillboardMode;
2203
- (function (BillboardMode) {
2204
- BillboardMode[BillboardMode["Off"] = 0] = "Off";
2205
- BillboardMode[BillboardMode["Billboard"] = 1] = "Billboard";
2206
- BillboardMode[BillboardMode["YawLockedBillboard"] = 2] = "YawLockedBillboard";
2207
- })(BillboardMode = Multiplayer.BillboardMode || (Multiplayer.BillboardMode = {}));
2208
- })(Multiplayer || (Multiplayer = {}));
2209
2217
  (function (Multiplayer) {
2210
2218
  /**
2211
2219
  * @description The display mode supported by this image space component.
@@ -2373,6 +2381,27 @@ export var Multiplayer;
2373
2381
  StaticModelPropertyKeys[StaticModelPropertyKeys["Num"] = 10] = "Num";
2374
2382
  })(StaticModelPropertyKeys = Multiplayer.StaticModelPropertyKeys || (Multiplayer.StaticModelPropertyKeys = {}));
2375
2383
  })(Multiplayer || (Multiplayer = {}));
2384
+ (function (Multiplayer) {
2385
+ /**
2386
+ * @description Enumerates the list of properties that can be replicated for an text space component.
2387
+ */
2388
+ let TextPropertyKeys;
2389
+ (function (TextPropertyKeys) {
2390
+ TextPropertyKeys[TextPropertyKeys["Position"] = 0] = "Position";
2391
+ TextPropertyKeys[TextPropertyKeys["Rotation"] = 1] = "Rotation";
2392
+ TextPropertyKeys[TextPropertyKeys["Scale"] = 2] = "Scale";
2393
+ TextPropertyKeys[TextPropertyKeys["Text"] = 3] = "Text";
2394
+ TextPropertyKeys[TextPropertyKeys["TextColor"] = 4] = "TextColor";
2395
+ TextPropertyKeys[TextPropertyKeys["BackgroundColor"] = 5] = "BackgroundColor";
2396
+ TextPropertyKeys[TextPropertyKeys["IsBackgroundVisible"] = 6] = "IsBackgroundVisible";
2397
+ TextPropertyKeys[TextPropertyKeys["Width"] = 7] = "Width";
2398
+ TextPropertyKeys[TextPropertyKeys["Height"] = 8] = "Height";
2399
+ TextPropertyKeys[TextPropertyKeys["BillboardMode"] = 9] = "BillboardMode";
2400
+ TextPropertyKeys[TextPropertyKeys["IsVisible"] = 10] = "IsVisible";
2401
+ TextPropertyKeys[TextPropertyKeys["IsARVisible"] = 11] = "IsARVisible";
2402
+ TextPropertyKeys[TextPropertyKeys["Num"] = 12] = "Num";
2403
+ })(TextPropertyKeys = Multiplayer.TextPropertyKeys || (Multiplayer.TextPropertyKeys = {}));
2404
+ })(Multiplayer || (Multiplayer = {}));
2376
2405
  (function (Multiplayer) {
2377
2406
  /**
2378
2407
  * @description Enumerates the possible playback states for a video player.
@@ -8493,12 +8522,12 @@ export class CSPFoundation {
8493
8522
  return new Variant(_nPtr);
8494
8523
  }
8495
8524
  /**
8496
- * @description Construct a Variant based on a float type.
8525
+ * @description Construct a Variant based on a double-precision float type.
8497
8526
  * @param inFloatValue - In value
8498
8527
  */
8499
8528
  static create_floatValue(floatValue) {
8500
8529
  var _ptr = Module._malloc(8);
8501
- Module.ccall("csp_common_Variant_Ctor_float", "void", ["number", "number"], [_ptr, floatValue]);
8530
+ Module.ccall("csp_common_Variant_Ctor_double", "void", ["number", "number"], [_ptr, floatValue]);
8502
8531
  var _nPtr = getNativePointer(_ptr);
8503
8532
  return new Variant(_nPtr);
8504
8533
  }
@@ -8587,19 +8616,19 @@ export class CSPFoundation {
8587
8616
  return _result;
8588
8617
  }
8589
8618
  /**
8590
- * @description Sets internal variant type as a float.
8619
+ * @description Sets internal variant type as a double-precision float.
8591
8620
  */
8592
8621
  setFloat(value) {
8593
- assert(value >= Limits.FLOAT_MIN);
8594
- assert(value <= Limits.FLOAT_MAX);
8595
- Module.ccall("csp_common_Variant_SetFloat_void_float", "void", ["number", "number"], [this.pointer, value]);
8622
+ assert(value >= Limits.DOUBLE_MIN);
8623
+ assert(value <= Limits.DOUBLE_MAX);
8624
+ Module.ccall("csp_common_Variant_SetFloat_void_double", "void", ["number", "number"], [this.pointer, value]);
8596
8625
  }
8597
8626
  /**
8598
- * @description Gets internal variant type as a float.
8599
- * @return Float
8627
+ * @description Gets internal variant type as a double-precision float.
8628
+ * @return Double
8600
8629
  */
8601
8630
  getFloat() {
8602
- let _result = Module.ccall("csp_common_Variant_GetFloatC_float", "number", ["number"], [this.pointer]);
8631
+ let _result = Module.ccall("csp_common_Variant_GetFloatC_double", "number", ["number"], [this.pointer]);
8603
8632
  return _result;
8604
8633
  }
8605
8634
  /**
@@ -11888,6 +11917,13 @@ export class CSPFoundation {
11888
11917
  set version(value) {
11889
11918
  Module.ccall("csp_systems_AssetCollection__Set_Version", "void", ["number", "string"], [this.pointer, value]);
11890
11919
  }
11920
+ get organizationId() {
11921
+ let _result = Module.ccall("csp_systems_AssetCollection__Get_OrganizationId", "string", ["number"], [this.pointer]);
11922
+ return _result;
11923
+ }
11924
+ set organizationId(value) {
11925
+ Module.ccall("csp_systems_AssetCollection__Set_OrganizationId", "void", ["number", "string"], [this.pointer, value]);
11926
+ }
11891
11927
  }
11892
11928
  Systems.AssetCollection = AssetCollection;
11893
11929
  })(Systems || (Systems = {}));
@@ -12189,6 +12225,13 @@ export class CSPFoundation {
12189
12225
  set unitPrice(value) {
12190
12226
  Module.ccall("csp_systems_ProductVariantInfo__Set_UnitPrice", "void", ["number", "number"], [this.pointer, value.pointer]);
12191
12227
  }
12228
+ get availableStock() {
12229
+ let _result = Module.ccall("csp_systems_ProductVariantInfo__Get_AvailableStock", "number", ["number"], [this.pointer]);
12230
+ return _result;
12231
+ }
12232
+ set availableStock(value) {
12233
+ Module.ccall("csp_systems_ProductVariantInfo__Set_AvailableStock", "void", ["number", "number"], [this.pointer, value]);
12234
+ }
12192
12235
  }
12193
12236
  Systems.ProductVariantInfo = ProductVariantInfo;
12194
12237
  })(Systems || (Systems = {}));
@@ -13042,13 +13085,6 @@ export class CSPFoundation {
13042
13085
  set name(value) {
13043
13086
  Module.ccall("csp_systems_Organization__Set_Name", "void", ["number", "string"], [this.pointer, value]);
13044
13087
  }
13045
- get description() {
13046
- let _result = Module.ccall("csp_systems_Organization__Get_Description", "string", ["number"], [this.pointer]);
13047
- return _result;
13048
- }
13049
- set description(value) {
13050
- Module.ccall("csp_systems_Organization__Set_Description", "void", ["number", "string"], [this.pointer, value]);
13051
- }
13052
13088
  get members() {
13053
13089
  const _ptr = Module._malloc(8);
13054
13090
  Module.ccall("csp_systems_Organization__Get_Members", "void", ["number", "number"], [_ptr, this.pointer]);
@@ -18339,6 +18375,252 @@ export class CSPFoundation {
18339
18375
  }
18340
18376
  Multiplayer.StaticModelSpaceComponent = StaticModelSpaceComponent;
18341
18377
  })(Multiplayer || (Multiplayer = {}));
18378
+ (function (Multiplayer) {
18379
+ /**
18380
+ @ingroup TextSpaceComponent
18381
+ * @description Data representation of an TextSpaceComponent.
18382
+ */
18383
+ class TextSpaceComponent extends Multiplayer.ComponentBase {
18384
+ /** @internal */
18385
+ constructor(pointer) {
18386
+ super(pointer);
18387
+ }
18388
+ static fromComponentBase(baseInstance) {
18389
+ const nativeClassWrapper = baseInstance;
18390
+ return new Multiplayer.TextSpaceComponent(new NativePointer(nativeClassWrapper.pointer, nativeClassWrapper.ownsPointer));
18391
+ }
18392
+ /**
18393
+ * @description Constructs the text space component, and associates it with the specified Parent space entity.
18394
+ * @param parent - The Space entity that owns this component.
18395
+ */
18396
+ static create_parent(parent) {
18397
+ var _ptr = Module._malloc(8);
18398
+ Module.ccall("csp_multiplayer_TextSpaceComponent_Ctor_SpaceEntityP", "void", ["number", "number"], [_ptr, parent.pointer]);
18399
+ var _nPtr = getNativePointer(_ptr);
18400
+ return new TextSpaceComponent(_nPtr);
18401
+ }
18402
+ /**
18403
+ * @description Gets the text this text component refers to.
18404
+ * @return The text this text component refers to.
18405
+ */
18406
+ getText() {
18407
+ let _result = Module.ccall("csp_multiplayer_TextSpaceComponent_GetTextC_StringRC", "number", ["number"], [this.pointer]);
18408
+ const _resultString = Module.UTF8ToString(_result);
18409
+ free(_result);
18410
+ _result = _resultString;
18411
+ return _result;
18412
+ }
18413
+ /**
18414
+ * @description Sets the text this text component refers to.
18415
+ * @param value - The text this text component refers to.
18416
+ */
18417
+ setText(value) {
18418
+ Module.ccall("csp_multiplayer_TextSpaceComponent_SetText_void_StringRC", "void", ["number", "string"], [this.pointer, value]);
18419
+ }
18420
+ /**
18421
+ * @description Gets the text color.
18422
+ * @return The text color, expected to be in RGB color space, with each value normalised between 0...1.
18423
+ */
18424
+ getTextColor() {
18425
+ var _ret = Module._malloc(8);
18426
+ Module.ccall("csp_multiplayer_TextSpaceComponent_GetTextColorC_Vector3RC", "void", ["number", "number"], [_ret, this.pointer]);
18427
+ var _nPtr = new Common.Vector3(getNativePointer(_ret));
18428
+ Module._free(_ret);
18429
+ return _nPtr;
18430
+ }
18431
+ /**
18432
+ * @description Sets the text color.
18433
+ * @param value - The text color, expected to be in RGB color space, with each value normalised between 0...1.
18434
+ */
18435
+ setTextColor(value) {
18436
+ Module.ccall("csp_multiplayer_TextSpaceComponent_SetTextColor_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
18437
+ }
18438
+ /**
18439
+ * @description Gets the background color that should be globally applied text associated with this component.
18440
+ * @return The background color, expected to be in RGB color space, with each value normalised between 0...1.
18441
+ */
18442
+ getBackgroundColor() {
18443
+ var _ret = Module._malloc(8);
18444
+ Module.ccall("csp_multiplayer_TextSpaceComponent_GetBackgroundColorC_Vector3RC", "void", ["number", "number"], [_ret, this.pointer]);
18445
+ var _nPtr = new Common.Vector3(getNativePointer(_ret));
18446
+ Module._free(_ret);
18447
+ return _nPtr;
18448
+ }
18449
+ /**
18450
+ * @description Sets the background color.
18451
+ * @param value - The background color, expected to be in RGB color space, with each value normalised between 0...1.
18452
+ */
18453
+ setBackgroundColor(value) {
18454
+ Module.ccall("csp_multiplayer_TextSpaceComponent_SetBackgroundColor_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
18455
+ }
18456
+ /**
18457
+ * @description Sets the background visibility.
18458
+ * @param value - The background visibility.
18459
+ */
18460
+ getIsBackgroundVisible() {
18461
+ let _result = Module.ccall("csp_multiplayer_TextSpaceComponent_GetIsBackgroundVisibleC_bool", "boolean", ["number"], [this.pointer]);
18462
+ return _result;
18463
+ }
18464
+ /**
18465
+ * @description Sets the background visibility.
18466
+ * @param value - The background visibility.
18467
+ */
18468
+ setIsBackgroundVisible(value) {
18469
+ Module.ccall("csp_multiplayer_TextSpaceComponent_SetIsBackgroundVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
18470
+ }
18471
+ /**
18472
+ * @description Sets the Text Width.
18473
+ * @param value - The Text Width.
18474
+ */
18475
+ getWidth() {
18476
+ let _result = Module.ccall("csp_multiplayer_TextSpaceComponent_GetWidthC_float", "number", ["number"], [this.pointer]);
18477
+ return _result;
18478
+ }
18479
+ /**
18480
+ * @description Sets the Text Width.
18481
+ * @param value - The Text Width.
18482
+ */
18483
+ setWidth(value) {
18484
+ assert(value >= Limits.FLOAT_MIN);
18485
+ assert(value <= Limits.FLOAT_MAX);
18486
+ Module.ccall("csp_multiplayer_TextSpaceComponent_SetWidth_void_float", "void", ["number", "number"], [this.pointer, value]);
18487
+ }
18488
+ /**
18489
+ * @description Sets the Text Height.
18490
+ * @param value - The Text Height.
18491
+ */
18492
+ getHeight() {
18493
+ let _result = Module.ccall("csp_multiplayer_TextSpaceComponent_GetHeightC_float", "number", ["number"], [this.pointer]);
18494
+ return _result;
18495
+ }
18496
+ /**
18497
+ * @description Sets the Text Height.
18498
+ * @param value - The Text Height.
18499
+ */
18500
+ setHeight(value) {
18501
+ assert(value >= Limits.FLOAT_MIN);
18502
+ assert(value <= Limits.FLOAT_MAX);
18503
+ Module.ccall("csp_multiplayer_TextSpaceComponent_SetHeight_void_float", "void", ["number", "number"], [this.pointer, value]);
18504
+ }
18505
+ /**
18506
+ * \addtogroup ITransformComponent
18507
+ @{
18508
+ @copydoc IPositionComponent::GetPosition()
18509
+ */
18510
+ getPosition() {
18511
+ var _ret = Module._malloc(8);
18512
+ Module.ccall("csp_multiplayer_TextSpaceComponent_GetPositionC_Vector3RC", "void", ["number", "number"], [_ret, this.pointer]);
18513
+ var _nPtr = new Common.Vector3(getNativePointer(_ret));
18514
+ Module._free(_ret);
18515
+ return _nPtr;
18516
+ }
18517
+ /**
18518
+ @copydoc IPositionComponent::SetPosition()
18519
+ */
18520
+ setPosition(value) {
18521
+ Module.ccall("csp_multiplayer_TextSpaceComponent_SetPosition_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
18522
+ }
18523
+ /**
18524
+ @copydoc IRotationComponent::GetRotation()
18525
+ */
18526
+ getRotation() {
18527
+ var _ret = Module._malloc(8);
18528
+ Module.ccall("csp_multiplayer_TextSpaceComponent_GetRotationC_Vector4RC", "void", ["number", "number"], [_ret, this.pointer]);
18529
+ var _nPtr = new Common.Vector4(getNativePointer(_ret));
18530
+ Module._free(_ret);
18531
+ return _nPtr;
18532
+ }
18533
+ /**
18534
+ @copydoc IRotationComponent::SetRotation()
18535
+ */
18536
+ setRotation(value) {
18537
+ Module.ccall("csp_multiplayer_TextSpaceComponent_SetRotation_void_Vector4RC", "void", ["number", "number"], [this.pointer, value.pointer]);
18538
+ }
18539
+ /**
18540
+ @copydoc IScaleComponent::GetScale()
18541
+ */
18542
+ getScale() {
18543
+ var _ret = Module._malloc(8);
18544
+ Module.ccall("csp_multiplayer_TextSpaceComponent_GetScaleC_Vector3RC", "void", ["number", "number"], [_ret, this.pointer]);
18545
+ var _nPtr = new Common.Vector3(getNativePointer(_ret));
18546
+ Module._free(_ret);
18547
+ return _nPtr;
18548
+ }
18549
+ /**
18550
+ @copydoc IScaleComponent::SetScale()
18551
+ */
18552
+ setScale(value) {
18553
+ Module.ccall("csp_multiplayer_TextSpaceComponent_SetScale_void_Vector3RC", "void", ["number", "number"], [this.pointer, value.pointer]);
18554
+ }
18555
+ /**
18556
+ @copydoc ITransformComponent::GetTransform()
18557
+ */
18558
+ getTransform() {
18559
+ var _ret = Module._malloc(8);
18560
+ Module.ccall("csp_multiplayer_TextSpaceComponent_GetTransformC_SpaceTransform", "void", ["number", "number"], [_ret, this.pointer]);
18561
+ var _nPtr = new Multiplayer.SpaceTransform(getNativePointer(_ret));
18562
+ Module._free(_ret);
18563
+ return _nPtr;
18564
+ }
18565
+ /**
18566
+ @copydoc ITransformComonent::SetTransform()
18567
+ */
18568
+ setTransform(value) {
18569
+ Module.ccall("csp_multiplayer_TextSpaceComponent_SetTransform_void_SpaceTransformRC", "void", ["number", "number"], [this.pointer, value.pointer]);
18570
+ }
18571
+ /**
18572
+ @}
18573
+ * @description Gets the billboard mode used by this text component.
18574
+ * @return The billboard mode used by this text component.
18575
+ */
18576
+ getBillboardMode() {
18577
+ let _result = Module.ccall("csp_multiplayer_TextSpaceComponent_GetBillboardModeC_BillboardMode", "number", ["number"], [this.pointer]);
18578
+ return _result;
18579
+ }
18580
+ /**
18581
+ * @description Sets the billboard mode used by this text component.
18582
+ * @param billboardMode - The billboard mode used by this text component.
18583
+ */
18584
+ setBillboardMode(billboardMode) {
18585
+ Module.ccall("csp_multiplayer_TextSpaceComponent_SetBillboardMode_void_BillboardMode", "void", ["number", "number"], [this.pointer, billboardMode]);
18586
+ }
18587
+ /**
18588
+ * \addtogroup IVisibleComponent
18589
+ @{
18590
+ @copydoc IVisibleComponent::GetIsVisible()
18591
+ */
18592
+ getIsVisible() {
18593
+ let _result = Module.ccall("csp_multiplayer_TextSpaceComponent_GetIsVisibleC_bool", "boolean", ["number"], [this.pointer]);
18594
+ return _result;
18595
+ }
18596
+ /**
18597
+ @copydoc IVisibleComponent::SetIsVisible()
18598
+ */
18599
+ setIsVisible(value) {
18600
+ Module.ccall("csp_multiplayer_TextSpaceComponent_SetIsVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
18601
+ }
18602
+ /**
18603
+ @copydoc IVisibleComponent::GetIsARVisible()
18604
+ */
18605
+ getIsARVisible() {
18606
+ let _result = Module.ccall("csp_multiplayer_TextSpaceComponent_GetIsARVisibleC_bool", "boolean", ["number"], [this.pointer]);
18607
+ return _result;
18608
+ }
18609
+ /**
18610
+ @copydoc IVisibleComponent::SetIsARVisible()
18611
+ */
18612
+ setIsARVisible(value) {
18613
+ Module.ccall("csp_multiplayer_TextSpaceComponent_SetIsARVisible_void_bool", "void", ["number", "boolean"], [this.pointer, value]);
18614
+ }
18615
+ delete() {
18616
+ if (this.ownsPointer && !this.disposed) {
18617
+ Module.ccall("csp_multiplayer_TextSpaceComponent_Dtor", "void", ["number"], [this.pointer]);
18618
+ this.disposed = true;
18619
+ }
18620
+ }
18621
+ }
18622
+ Multiplayer.TextSpaceComponent = TextSpaceComponent;
18623
+ })(Multiplayer || (Multiplayer = {}));
18342
18624
  (function (Multiplayer) {
18343
18625
  /**
18344
18626
  @ingroup VideoPlayerSpaceComponent
@@ -21352,6 +21634,127 @@ export class CSPFoundation {
21352
21634
  var _callbackPtr = Module.addFunction(_callback, "vii");
21353
21635
  Module.ccall("csp_systems_OrganizationSystem_SetMemberJoinedOrganizationCallback_void_MemberJoinedOrganizationCallback", "void", ["number", "number", "number"], [this.pointer, _callbackPtr, 0]);
21354
21636
  }
21637
+ /**
21638
+ * @description Create a new Organization.
21639
+ * Only a User with tenant admin permissions can create an Organization.
21640
+ * If the user does not have the required permissions their call will be rejected.
21641
+ * @param organizationOwnerId - Id of the Organization owner.
21642
+ * @param organizationName - The Organization name
21643
+ * @param callback - Callback when asynchronous task finishes.
21644
+ */
21645
+ async createOrganization(organizationOwnerId, organizationName) {
21646
+ var _resolve;
21647
+ var _promise = new Promise((_r) => {
21648
+ _resolve = _r;
21649
+ });
21650
+ var _callbackPtr;
21651
+ var _callback = (_stateObject__, result) => {
21652
+ var _resultPtr = getNativePointer(result);
21653
+ var _resultInstance = new Systems.OrganizationResult(_resultPtr);
21654
+ if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
21655
+ return;
21656
+ }
21657
+ _resolve(_resultInstance);
21658
+ Module.removeFunction(_callbackPtr);
21659
+ };
21660
+ _callbackPtr = Module.addFunction(_callback, "vii");
21661
+ Module.ccall("csp_systems_OrganizationSystem_CreateOrganization_void_StringRC_StringRC_OrganizationResultCallback", "void", ["number", "string", "string", "number", "number"], [this.pointer, organizationOwnerId, organizationName, _callbackPtr, 0]);
21662
+ return _promise;
21663
+ }
21664
+ /**
21665
+ * @description Retrieves Organization info for the specified Organization.
21666
+ * If this request is made by a User with an Owner or Admin Organization role, the resultant Organization object will contain an array of
21667
+ * OrganizationRoleInfo objects for each Organization member. If the request is made by a User who does not have the Owner or Admin role, the
21668
+ * resultant Organization object will contain an array with a single OrganizationRoleInfo object which represents them.
21669
+ * @param organizationId - Id of the Organization to retrieve information on. If no Id is specified,
21670
+ * the Id of the Organization the user is currently authenticated against will be used.
21671
+ * @param callback - Callback when asynchronous task finishes.
21672
+ */
21673
+ async getOrganization(organizationId) {
21674
+ var _resolve;
21675
+ var _promise = new Promise((_r) => {
21676
+ _resolve = _r;
21677
+ });
21678
+ var _callbackPtr;
21679
+ var _callback = (_stateObject__, result) => {
21680
+ var _resultPtr = getNativePointer(result);
21681
+ var _resultInstance = new Systems.OrganizationResult(_resultPtr);
21682
+ if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
21683
+ return;
21684
+ }
21685
+ _resolve(_resultInstance);
21686
+ Module.removeFunction(_callbackPtr);
21687
+ };
21688
+ _callbackPtr = Module.addFunction(_callback, "vii");
21689
+ Module.ccall("csp_systems_OrganizationSystem_GetOrganization_void_StringRC_OrganizationResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, organizationId, _callbackPtr, 0]);
21690
+ return _promise;
21691
+ }
21692
+ /**
21693
+ * @description Get the Id of the Organization the user is authenticated against.
21694
+ * @return The Id of the Organization the User belongs to.
21695
+ */
21696
+ getCurrentOrganizationId() {
21697
+ let _result = Module.ccall("csp_systems_OrganizationSystem_GetCurrentOrganizationIdC_StringRC", "number", ["number"], [this.pointer]);
21698
+ const _resultString = Module.UTF8ToString(_result);
21699
+ free(_result);
21700
+ _result = _resultString;
21701
+ return _result;
21702
+ }
21703
+ /**
21704
+ * @description Updates the name and/or the description of the specified Organization.
21705
+ * Only a User with an Organization Owner role can update an Organization. If the user does not have the required Organization role
21706
+ * their call will be rejected.
21707
+ * @param organizationId - Id of the Organization to update. If no Id is specified,
21708
+ * the Id of the Organization the user is currently authenticated against will be used.
21709
+ * @param name - The new Organization name
21710
+ * @param callback - Callback when asynchronous task finishes.
21711
+ */
21712
+ async updateOrganization(organizationId, name) {
21713
+ var _resolve;
21714
+ var _promise = new Promise((_r) => {
21715
+ _resolve = _r;
21716
+ });
21717
+ var _callbackPtr;
21718
+ var _callback = (_stateObject__, result) => {
21719
+ var _resultPtr = getNativePointer(result);
21720
+ var _resultInstance = new Systems.OrganizationResult(_resultPtr);
21721
+ if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
21722
+ return;
21723
+ }
21724
+ _resolve(_resultInstance);
21725
+ Module.removeFunction(_callbackPtr);
21726
+ };
21727
+ _callbackPtr = Module.addFunction(_callback, "vii");
21728
+ Module.ccall("csp_systems_OrganizationSystem_UpdateOrganization_void_StringRC_StringRC_OrganizationResultCallback", "void", ["number", "string", "string", "number", "number"], [this.pointer, organizationId, name, _callbackPtr, 0]);
21729
+ return _promise;
21730
+ }
21731
+ /**
21732
+ * @description Deactivates the specified Organization.
21733
+ * This call performs a soft-delete of the Organization and will allow for Organization reactivation in the future.
21734
+ * Only A User with owner-level permissions can deactivate an Organization. If the user does not have the required role their call will be
21735
+ * rejected.
21736
+ * @param organizationId - Id of the Organization to deactivate.
21737
+ * @param callback - Callback when asynchronous task finishes.
21738
+ */
21739
+ async deactivateOrganization(organizationId) {
21740
+ var _resolve;
21741
+ var _promise = new Promise((_r) => {
21742
+ _resolve = _r;
21743
+ });
21744
+ var _callbackPtr;
21745
+ var _callback = (_stateObject__, result) => {
21746
+ var _resultPtr = getNativePointer(result);
21747
+ var _resultInstance = new Systems.NullResult(_resultPtr);
21748
+ if (_resultInstance.getResultCode() == Systems.EResultCode.InProgress) {
21749
+ return;
21750
+ }
21751
+ _resolve(_resultInstance);
21752
+ Module.removeFunction(_callbackPtr);
21753
+ };
21754
+ _callbackPtr = Module.addFunction(_callback, "vii");
21755
+ Module.ccall("csp_systems_OrganizationSystem_DeactivateOrganization_void_StringRC_NullResultCallback", "void", ["number", "string", "number", "number"], [this.pointer, organizationId, _callbackPtr, 0]);
21756
+ return _promise;
21757
+ }
21355
21758
  /**
21356
21759
  * @description Invites a given email to the User's Organization.
21357
21760
  * Only a User with an Admin or Owner Organization role can invite people to the organization. If the User does not have the required role their
@@ -22493,6 +22896,13 @@ export class CSPFoundation {
22493
22896
  set bannedUserIds(value) {
22494
22897
  Module.ccall("csp_systems_Space__Set_BannedUserIds", "void", ["number", "number"], [this.pointer, value.pointer]);
22495
22898
  }
22899
+ get organizationId() {
22900
+ let _result = Module.ccall("csp_systems_Space__Get_OrganizationId", "string", ["number"], [this.pointer]);
22901
+ return _result;
22902
+ }
22903
+ set organizationId(value) {
22904
+ Module.ccall("csp_systems_Space__Set_OrganizationId", "void", ["number", "string"], [this.pointer, value]);
22905
+ }
22496
22906
  }
22497
22907
  Systems.Space = Space;
22498
22908
  })(Systems || (Systems = {}));