connected-spaces-platform.web 5.8.1 → 5.9.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.
@@ -131,7 +131,10 @@ export declare namespace Multiplayer {
131
131
  GaussianSplat = 24,
132
132
  Text = 25,
133
133
  Hotspot = 26,
134
- CinematicCamera = 27
134
+ CinematicCamera = 27,
135
+ spare = 28,
136
+ values = 29,
137
+ Delete = 56
135
138
  }
136
139
  }
137
140
  export declare namespace Multiplayer {
@@ -9744,9 +9747,11 @@ export declare namespace Systems {
9744
9747
  * @description Creates a new material backed by an AssetCollection/Asset.
9745
9748
  * @param name - The name of the new material.
9746
9749
  * @param spaceId - The space id this material is associated with.
9750
+ * @param metadata - The metadata to be associated with the created material.
9751
+ * @param assetTags - Tags to be associated with the created material.
9747
9752
  * @param callback - Callback when asynchronous task finishes.
9748
9753
  */
9749
- createMaterial(name: string, spaceId: string): Promise<Systems.GLTFMaterialResult>;
9754
+ createMaterial(name: string, spaceId: string, metadata: Common.Map<string, string>, assetTags: Common.Array<string>): Promise<Systems.GLTFMaterialResult>;
9750
9755
  /**
9751
9756
  * @description Updates an existing material's properties.
9752
9757
  * The material should be retrieved through GetMaterials or GetMaterial.
@@ -9777,7 +9782,7 @@ export declare namespace Systems {
9777
9782
  */
9778
9783
  getMaterial(assetCollectionId: string, assetId: string): Promise<Systems.GLTFMaterialResult>;
9779
9784
  /**
9780
- * @description Sets a callback for an asset changed event.
9785
+ * @description Sets a callback for an asset changed event. Triggered when assets, such as textures or meshes, are modified
9781
9786
  * @param callback - Callback to receive data for the asset that has been changed.
9782
9787
  */
9783
9788
  setAssetDetailBlobChangedCallback(callback: (arg1: Multiplayer.AssetDetailBlobParams) => void): void;
@@ -11301,6 +11306,8 @@ export declare namespace Systems {
11301
11306
  * @description Enter a space if you have permission to, based on the Space settings.
11302
11307
  * This includes setting scopes (and toggling event listening in order to set the scope).
11303
11308
  * It also retrieves all entities in the space. Ensure Connect is called prior to this.
11309
+ * If user does not have permission to discover or enter the space, callback will be called with EResultCode::Failed and
11310
+ * ERequestFailureReason::UserSpaceAccessDenied
11304
11311
  * @param space - Space to enter into
11305
11312
  * @param callback - Callback when asynchronous task finishes
11306
11313
  */
@@ -12069,7 +12076,9 @@ export declare namespace Systems {
12069
12076
  getCheckoutSessionUrl(tier: Systems.TierNames): Promise<Systems.StringResult>;
12070
12077
  /**
12071
12078
  * @description Sets a callback for an access control changed event.
12072
- * @param callback - Callback to receive data for the user permissions that has been changed.
12079
+ * /// Occurs when a user's permissions are altered, impacting their ability to interact with specific spaces.
12080
+ * Clients can use this event to reflect access levels in real time.
12081
+ * /// @param Callback UserPermissionsChangedCallbackHandler: Callback to receive data for the user permissions that has been changed.
12073
12082
  */
12074
12083
  setUserPermissionsChangedCallback(callback: (arg1: Multiplayer.UserPermissionsParams) => void): void;
12075
12084
  /**
@@ -1895,6 +1895,10 @@ export var Multiplayer;
1895
1895
  ComponentType[ComponentType["Text"] = 25] = "Text";
1896
1896
  ComponentType[ComponentType["Hotspot"] = 26] = "Hotspot";
1897
1897
  ComponentType[ComponentType["CinematicCamera"] = 27] = "CinematicCamera";
1898
+ //,
1899
+ ComponentType[ComponentType["spare"] = 28] = "spare";
1900
+ ComponentType[ComponentType["values"] = 29] = "values";
1901
+ ComponentType[ComponentType["Delete"] = 56] = "Delete";
1898
1902
  })(ComponentType = Multiplayer.ComponentType || (Multiplayer.ComponentType = {}));
1899
1903
  })(Multiplayer || (Multiplayer = {}));
1900
1904
  (function (Multiplayer) {
@@ -11808,6 +11812,8 @@ export class CSPFoundation {
11808
11812
  this.disposed = true;
11809
11813
  }
11810
11814
  }
11815
+ // operator==
11816
+ // operator!=
11811
11817
  /**
11812
11818
  * @description Status of this response.
11813
11819
  * @return EResultCode
@@ -22077,9 +22083,11 @@ export class CSPFoundation {
22077
22083
  * @description Creates a new material backed by an AssetCollection/Asset.
22078
22084
  * @param name - The name of the new material.
22079
22085
  * @param spaceId - The space id this material is associated with.
22086
+ * @param metadata - The metadata to be associated with the created material.
22087
+ * @param assetTags - Tags to be associated with the created material.
22080
22088
  * @param callback - Callback when asynchronous task finishes.
22081
22089
  */
22082
- async createMaterial(name, spaceId) {
22090
+ async createMaterial(name, spaceId, metadata, assetTags) {
22083
22091
  var _resolve;
22084
22092
  var _promise = new Promise((_r) => {
22085
22093
  _resolve = _r;
@@ -22095,7 +22103,15 @@ export class CSPFoundation {
22095
22103
  Module.removeFunction(_callbackPtr);
22096
22104
  };
22097
22105
  _callbackPtr = Module.addFunction(_callback, "vii");
22098
- Module.ccall("csp_systems_AssetSystem_CreateMaterial_void_StringRC_StringRC_GLTFMaterialResultCallback", "void", ["number", "string", "string", "number", "number"], [this.pointer, name, spaceId, _callbackPtr, 0]);
22106
+ Module.ccall("csp_systems_AssetSystem_CreateMaterial_void_StringRC_StringRC_MapRC_ArrayRC_GLTFMaterialResultCallback", "void", ["number", "string", "string", "number", "number", "number", "number"], [
22107
+ this.pointer,
22108
+ name,
22109
+ spaceId,
22110
+ metadata.pointer,
22111
+ assetTags.pointer,
22112
+ _callbackPtr,
22113
+ 0,
22114
+ ]);
22099
22115
  return _promise;
22100
22116
  }
22101
22117
  /**
@@ -22200,7 +22216,7 @@ export class CSPFoundation {
22200
22216
  return _promise;
22201
22217
  }
22202
22218
  /**
22203
- * @description Sets a callback for an asset changed event.
22219
+ * @description Sets a callback for an asset changed event. Triggered when assets, such as textures or meshes, are modified
22204
22220
  * @param callback - Callback to receive data for the asset that has been changed.
22205
22221
  */
22206
22222
  setAssetDetailBlobChangedCallback(callback) {
@@ -26112,6 +26128,8 @@ export class CSPFoundation {
26112
26128
  * @description Enter a space if you have permission to, based on the Space settings.
26113
26129
  * This includes setting scopes (and toggling event listening in order to set the scope).
26114
26130
  * It also retrieves all entities in the space. Ensure Connect is called prior to this.
26131
+ * If user does not have permission to discover or enter the space, callback will be called with EResultCode::Failed and
26132
+ * ERequestFailureReason::UserSpaceAccessDenied
26115
26133
  * @param space - Space to enter into
26116
26134
  * @param callback - Callback when asynchronous task finishes
26117
26135
  */
@@ -28804,7 +28822,9 @@ export class CSPFoundation {
28804
28822
  }
28805
28823
  /**
28806
28824
  * @description Sets a callback for an access control changed event.
28807
- * @param callback - Callback to receive data for the user permissions that has been changed.
28825
+ * /// Occurs when a user's permissions are altered, impacting their ability to interact with specific spaces.
28826
+ * Clients can use this event to reflect access levels in real time.
28827
+ * /// @param Callback UserPermissionsChangedCallbackHandler: Callback to receive data for the user permissions that has been changed.
28808
28828
  */
28809
28829
  setUserPermissionsChangedCallback(callback) {
28810
28830
  var _callback = (_stateObject__, arg1) => {