connected-spaces-platform.web 4.18.0 → 4.19.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.
@@ -4021,6 +4021,12 @@ export declare namespace Multiplayer {
4021
4021
  * /// @return True if deselection occurred. False if not.
4022
4022
  */
4023
4023
  deselect(): boolean;
4024
+ /**
4025
+ * @description Checks if the entity can be modified.
4026
+ * Specifically whether the local client already owns the entity or can take ownership of the entity.
4027
+ * @return True if the entity can be modified, False if not.
4028
+ */
4029
+ isModifiable(): boolean;
4024
4030
  }
4025
4031
  }
4026
4032
  export declare namespace Multiplayer {
@@ -4648,7 +4654,6 @@ export declare namespace Systems {
4648
4654
  class AnalyticsSystem extends NativeClassWrapper {
4649
4655
  /** @internal */
4650
4656
  constructor(pointer: NativePointer);
4651
- static create(): AnalyticsSystem;
4652
4657
  /**
4653
4658
  * @description Send an event
4654
4659
  * @param event - AnalyticsEvent
@@ -4823,8 +4828,8 @@ export declare namespace Systems {
4823
4828
  set pointOfInterestId(value: string);
4824
4829
  get parentId(): string;
4825
4830
  set parentId(value: string);
4826
- get spaceIds(): Common.Array<string>;
4827
- set spaceIds(value: Common.Array<string>);
4831
+ get spaceId(): string;
4832
+ set spaceId(value: string);
4828
4833
  get createdBy(): string;
4829
4834
  set createdBy(value: string);
4830
4835
  get createdAt(): string;
@@ -5646,10 +5651,10 @@ export declare namespace Systems {
5646
5651
  delete(): void;
5647
5652
  get agoraUserId(): string;
5648
5653
  set agoraUserId(value: string);
5649
- get lifespan(): number;
5650
- set lifespan(value: number);
5651
5654
  get channelName(): string;
5652
5655
  set channelName(value: string);
5656
+ get lifespan(): number;
5657
+ set lifespan(value: number);
5653
5658
  get readOnly(): boolean;
5654
5659
  set readOnly(value: boolean);
5655
5660
  get shareAudio(): boolean;
@@ -8304,6 +8309,16 @@ export declare namespace Systems {
8304
8309
  * @param callback - Callback when asynchronous task finishes
8305
8310
  */
8306
8311
  deleteAssetCollection(assetCollection: Systems.AssetCollection): Promise<Systems.NullResult>;
8312
+ /**
8313
+ * @description Copies an array of asset collections to another space. Note that all source asset collections must belong to the same space.
8314
+ * @param sourceAssetCollections - The array of asset collections to copy. They must all belong to the same
8315
+ * space.
8316
+ * @param destSpaceId - The unique identifier of the space to copy these asset collections to.
8317
+ * @param copyAsync - Whether to instruct the services to perform the copy of the asset collections
8318
+ * asynchronously.
8319
+ * @param callback - Callback when asynchronous task finishes
8320
+ */
8321
+ copyAssetCollectionsToSpace(sourceAssetCollections: Common.Array<Systems.AssetCollection>, destSpaceId: string, copyAsync: boolean): Promise<Systems.AssetCollectionsResult>;
8307
8322
  /**
8308
8323
  * @description Finds an asset collection by its Id.
8309
8324
  * @param assetCollectionId - Asset collection to delete
@@ -8316,12 +8331,6 @@ export declare namespace Systems {
8316
8331
  * @param callback - Callback when asynchronous task finishes
8317
8332
  */
8318
8333
  getAssetCollectionByName(assetCollectionName: string): Promise<Systems.AssetCollectionResult>;
8319
- /**
8320
- * @description Finds a collection of asset collections by their Ids.
8321
- * @param assetCollectionIds - An array of ids to search for
8322
- * @param callback - Callback when asynchronous task finishes
8323
- */
8324
- getAssetCollectionsByIds(assetCollectionIds: Common.Array<string>): Promise<Systems.AssetCollectionsResult>;
8325
8334
  /**
8326
8335
  * @description Retrieves asset collections based on the specified search criteria.
8327
8336
  * Results pagination is supported through the use of ResultsSkipNumber and ResultsMaxNumber.
@@ -8337,7 +8346,7 @@ export declare namespace Systems {
8337
8346
  * entries pass nullptr.
8338
8347
  * @param callback - Callback when asynchronous task finishes
8339
8348
  */
8340
- getAssetCollectionsByCriteria(spaceId: string | null, assetCollectionParentId: string | null, assetCollectionType: Systems.EAssetCollectionType | null, assetCollectionTags: Common.Array<string> | null, assetCollectionNames: Common.Array<string> | null, resultsSkipNumber: number | null, resultsMaxNumber: number | null): Promise<Systems.AssetCollectionsResult>;
8349
+ findAssetCollections(ids: Common.Array<string> | null, parentId: string | null, names: Common.Array<string> | null, types: Common.Array<Systems.EAssetCollectionType> | null, tags: Common.Array<string> | null, spaceIds: Common.Array<string> | null, resultsSkipNumber: number | null, resultsMaxNumber: number | null): Promise<Systems.AssetCollectionsResult>;
8341
8350
  /**
8342
8351
  * @description Updates the Metadata field of an Asset Collection
8343
8352
  * @param assetCollection - Asset collection to be updated
@@ -8547,7 +8556,6 @@ export declare namespace Systems {
8547
8556
  /** @internal */
8548
8557
  constructor(pointer: NativePointer);
8549
8558
  static fromSystemBase(baseInstance: Systems.SystemBase): Systems.ECommerceSystem;
8550
- static create(): ECommerceSystem;
8551
8559
  /**
8552
8560
  * @description Get product information from a shopify store within a space
8553
8561
  * @param spaceId - Space id of product
@@ -9036,24 +9044,24 @@ export declare namespace Systems {
9036
9044
  * @param inValue - Boolean reflecting desired state to store in magnopus connected services.
9037
9045
  * @param callback - Callback when asynchronous task finishes.
9038
9046
  */
9039
- setNDAStatus(userId: string, value: boolean): Promise<Systems.NullResult>;
9047
+ setNDAStatus(value: boolean): Promise<Systems.NullResult>;
9040
9048
  /**
9041
9049
  * @description Get a boolean indicating whether the current user has completed a non-disclosure agreement.
9042
9050
  * @param callback - Callback to call when a response is received.
9043
9051
  */
9044
- getNDAStatus(userId: string): Promise<Systems.BooleanResult>;
9052
+ getNDAStatus(): Promise<Systems.BooleanResult>;
9045
9053
  /**
9046
9054
  * @description Opt in or out to receiving a newsletter for the current user.
9047
9055
  * NullResultCallback. Returns status of the update task, no payload expected.
9048
9056
  * @param inValue - Boolean reflecting desired state to store in magnopus connected services
9049
9057
  * @param callback - Callback when asynchronous task finishes
9050
9058
  */
9051
- setNewsletterStatus(userId: string, value: boolean): Promise<Systems.NullResult>;
9059
+ setNewsletterStatus(value: boolean): Promise<Systems.NullResult>;
9052
9060
  /**
9053
9061
  * @description Get a boolean indicating whether the current user has opted into receiving a newsletter.
9054
9062
  * @param callback - Callback to call when a response is received.
9055
9063
  */
9056
- getNewsletterStatus(userId: string): Promise<Systems.BooleanResult>;
9064
+ getNewsletterStatus(): Promise<Systems.BooleanResult>;
9057
9065
  /**
9058
9066
  * @description Add a Space to the current user's list of recently visited Spaces
9059
9067
  * Supplying a SpaceID will store as the most recent space, manages the list order and storing to Magnopus Connected Services.
@@ -9061,18 +9069,18 @@ export declare namespace Systems {
9061
9069
  * @param inSpaceID - SpaceID of most recent space entered
9062
9070
  * @param callback - Callback when asynchronous task finishes
9063
9071
  */
9064
- addRecentlyVisitedSpace(userId: string, spaceID: string): Promise<Systems.NullResult>;
9072
+ addRecentlyVisitedSpace(spaceID: string): Promise<Systems.NullResult>;
9065
9073
  /**
9066
9074
  * @description Get an array of the most recently visited Spaces for the current user.
9067
9075
  * Returns an csp::common::Array of csp::common::Strings ordered from most to least recent spaces up to a maximum of 10 entries.
9068
9076
  * @param callback - Callback to call when a response is received.
9069
9077
  */
9070
- getRecentlyVisitedSpaces(userId: string): Promise<Systems.StringArrayResult>;
9078
+ getRecentlyVisitedSpaces(): Promise<Systems.StringArrayResult>;
9071
9079
  /**
9072
9080
  * @description Clear the list of recently-visited spaces for the current user.
9073
9081
  * @param callback - Callback when asynchronous task finishes.
9074
9082
  */
9075
- clearRecentlyVisitedSpaces(userId: string): Promise<Systems.NullResult>;
9083
+ clearRecentlyVisitedSpaces(): Promise<Systems.NullResult>;
9076
9084
  /**
9077
9085
  * @description Block a space for the current user.
9078
9086
  * The client is expected to implement the actual space filtering functionality as this function only adds the provided space to a list and will
@@ -9080,60 +9088,55 @@ export declare namespace Systems {
9080
9088
  * @param inSpaceID - SpaceID of most space to block
9081
9089
  * @param callback - Callback when asynchronous task finishes
9082
9090
  */
9083
- addBlockedSpace(userId: string, spaceID: string): Promise<Systems.NullResult>;
9091
+ addBlockedSpace(spaceID: string): Promise<Systems.NullResult>;
9084
9092
  /**
9085
9093
  * @description Unblock a space for the current user.
9086
9094
  * @param inSpaceID - SpaceID of most space to block
9087
9095
  * @param callback - Callback when asynchronous task finishes
9088
9096
  */
9089
- removeBlockedSpace(userId: string, spaceID: string): Promise<Systems.NullResult>;
9097
+ removeBlockedSpace(spaceID: string): Promise<Systems.NullResult>;
9090
9098
  /**
9091
9099
  * @description Get a list of Spaces that were blocked by the current user.
9092
9100
  * Returns an csp::common::Array of csp::common::Strings ordered from most to least recent blocked spaces.
9093
9101
  * @param callback - Callback to call when a response is received.
9094
9102
  */
9095
- getBlockedSpaces(userId: string): Promise<Systems.StringArrayResult>;
9103
+ getBlockedSpaces(): Promise<Systems.StringArrayResult>;
9096
9104
  /**
9097
9105
  * @description Clear the list of blocked Spaces for the current user.
9098
9106
  * @param callback - Callback when asynchronous task finishes.
9099
9107
  */
9100
- clearBlockedSpaces(userId: string): Promise<Systems.NullResult>;
9108
+ clearBlockedSpaces(): Promise<Systems.NullResult>;
9101
9109
  /**
9102
9110
  * @description Updates the Portrait Avatar image or adds one if it didn't have it previously using FileAssetDataSource
9103
- * @param userId - UserId of Avatar Portrait
9104
9111
  * @param newAvatarPortrait - New Portrait Avatar information
9105
9112
  * @param callback - Callback when asynchronous task finishes
9106
9113
  */
9107
- updateAvatarPortrait(userId: string, newAvatarPortrait: Systems.FileAssetDataSource): Promise<Systems.NullResult>;
9114
+ updateAvatarPortrait(newAvatarPortrait: Systems.FileAssetDataSource): Promise<Systems.NullResult>;
9108
9115
  /**
9109
9116
  * @description Retrieves the Avatar Portrait information associated with the space
9110
9117
  * If the user of the Avatar portrait associated with it the result callback will be successful, the HTTP res code will be ResponseNotFound
9111
9118
  * and the Uri field inside the UriResult will be empty
9112
- * @param userId - UserId of Avatar Portrait
9113
9119
  * @param callback - Callback when asynchronous task finishes
9114
9120
  */
9115
- getAvatarPortrait(userId: string): Promise<Systems.UriResult>;
9121
+ getAvatarPortrait(): Promise<Systems.UriResult>;
9116
9122
  /**
9117
9123
  * @description Updates the Avatar Portrait image or adds one if it didn't have it previously using BufferAssetDataSource
9118
- * @param userId - UserId of Avatar Portrait
9119
9124
  * @param newAvatarPortrait - New Avatar Portrait information
9120
9125
  * @param callback - Callback when asynchronous task finishes
9121
9126
  */
9122
- updateAvatarPortraitWithBuffer(userId: string, newAvatarPortrait: Systems.BufferAssetDataSource): Promise<Systems.NullResult>;
9127
+ updateAvatarPortraitWithBuffer(newAvatarPortrait: Systems.BufferAssetDataSource): Promise<Systems.NullResult>;
9123
9128
  /**
9124
9129
  * @description Sets the avatar type and identifier for a user.
9125
- * @param inUserId - The ID of the user to set avatar info for.
9126
9130
  * @param inType - The type of avatar (predefined, Ready Player Me, or custom).
9127
9131
  * @param inIdentifier - A value used to identify or locate the avatar. Differs depending on the value of InType.
9128
9132
  * @param callback - Callback to call when task finishes.
9129
9133
  */
9130
- setAvatarInfo(userId: string, type: Systems.AvatarType, identifier: Common.Variant): Promise<Systems.NullResult>;
9134
+ setAvatarInfo(type: Systems.AvatarType, identifier: Common.Variant): Promise<Systems.NullResult>;
9131
9135
  /**
9132
9136
  * @description Retrieves the avatar type and identifier for a user.
9133
- * @param inUserId - The ID of the user to get avatar info for.
9134
9137
  * @param callback - Callback to call when task finishes.
9135
9138
  */
9136
- getAvatarInfo(userId: string): Promise<Systems.AvatarInfoResult>;
9139
+ getAvatarInfo(): Promise<Systems.AvatarInfoResult>;
9137
9140
  }
9138
9141
  }
9139
9142
  export declare namespace Systems {
@@ -9835,83 +9838,19 @@ export declare namespace Systems {
9835
9838
  delete(): void;
9836
9839
  }
9837
9840
  }
9838
- export declare namespace Systems {
9839
- /**
9840
- * @description Result structure for a logout state request.
9841
- */
9842
- class LogoutResult extends Systems.NullResult implements INativeResource {
9843
- /** @internal */
9844
- constructor(pointer: NativePointer);
9845
- static fromNullResult(baseInstance: Systems.NullResult): Systems.LogoutResult;
9846
- delete(): void;
9847
- }
9848
- }
9849
9841
  export declare namespace Systems {
9850
9842
  /**
9851
9843
  @ingroup User System
9852
9844
  * @description @brief Data class used to contain information when the login token has changed
9853
9845
  */
9854
- class LoginTokenReceived extends Systems.ResultBase implements INativeResource {
9846
+ class LoginTokenInfoResult extends Systems.ResultBase implements INativeResource {
9855
9847
  /** @internal */
9856
9848
  constructor(pointer: NativePointer);
9857
- static fromResultBase(baseInstance: Systems.ResultBase): Systems.LoginTokenReceived;
9849
+ static fromResultBase(baseInstance: Systems.ResultBase): Systems.LoginTokenInfoResult;
9858
9850
  getLoginTokenInfo(): Systems.LoginTokenInfo;
9859
9851
  delete(): void;
9860
9852
  }
9861
9853
  }
9862
- export declare namespace Systems {
9863
- /**
9864
- @ingroup User System
9865
- * @description @brief Data class used to contain information when a ping response is received
9866
- */
9867
- class PingResponseReceived extends Systems.ResultBase implements INativeResource {
9868
- /** @internal */
9869
- constructor(pointer: NativePointer);
9870
- static fromResultBase(baseInstance: Systems.ResultBase): Systems.PingResponseReceived;
9871
- delete(): void;
9872
- }
9873
- }
9874
- export declare namespace Systems {
9875
- /**
9876
- @ingroup User System
9877
- * @description @brief Data class used to contain information requesting a user token
9878
- */
9879
- class AgoraUserTokenResult extends Systems.ResultBase implements INativeResource {
9880
- /** @internal */
9881
- constructor(pointer: NativePointer);
9882
- static fromResultBase(baseInstance: Systems.ResultBase): Systems.AgoraUserTokenResult;
9883
- getUserToken(): string;
9884
- delete(): void;
9885
- }
9886
- }
9887
- export declare namespace Systems {
9888
- /**
9889
- * @description Result url for a tier checkout session request
9890
- */
9891
- class CheckoutSessionUrlResult extends Systems.ResultBase implements INativeResource {
9892
- /** @internal */
9893
- constructor(pointer: NativePointer);
9894
- static fromResultBase(baseInstance: Systems.ResultBase): Systems.CheckoutSessionUrlResult;
9895
- static create(): CheckoutSessionUrlResult;
9896
- static create_arg1(arg1: number): CheckoutSessionUrlResult;
9897
- getUrl(): string;
9898
- delete(): void;
9899
- }
9900
- }
9901
- export declare namespace Systems {
9902
- /**
9903
- * @description Result url for a user customer portal request
9904
- */
9905
- class CustomerPortalUrlResult extends Systems.ResultBase implements INativeResource {
9906
- /** @internal */
9907
- constructor(pointer: NativePointer);
9908
- static fromResultBase(baseInstance: Systems.ResultBase): Systems.CustomerPortalUrlResult;
9909
- static create(): CustomerPortalUrlResult;
9910
- static create_arg1(arg1: number): CustomerPortalUrlResult;
9911
- getUrl(): string;
9912
- delete(): void;
9913
- }
9914
- }
9915
9854
  export declare namespace Systems {
9916
9855
  /**
9917
9856
  * @description Data structure for a full user profile, which incudes user email, roles, and data for creation and update history.
@@ -10001,7 +9940,7 @@ export declare namespace Systems {
10001
9940
  * For C#: register a callback to the OnNewLoginTokenReceived event
10002
9941
  * @param callback - Callback that gets called as described above
10003
9942
  */
10004
- setNewLoginTokenReceivedCallback(callback: (result: Systems.LoginTokenReceived) => void): void;
9943
+ setNewLoginTokenReceivedCallback(callback: (result: Systems.LoginTokenInfoResult) => void): void;
10005
9944
  /**
10006
9945
  * @description Log in to Magnopus Connected Services services using a username-password or email-password combination.
10007
9946
  * @param userName - Csp::common::string
@@ -10064,7 +10003,7 @@ export declare namespace Systems {
10064
10003
  * @description Logout from Magnopus Connected Services.
10065
10004
  * @param callback - Callback to call when a response is received
10066
10005
  */
10067
- logout(): Promise<Systems.LogoutResult>;
10006
+ logout(): Promise<Systems.NullResult>;
10068
10007
  /**
10069
10008
  * @description Creates a new user profile.
10070
10009
  * @param userName - User name associated with the new profile
@@ -10138,13 +10077,13 @@ export declare namespace Systems {
10138
10077
  * @description Ping Magnopus Connected Services
10139
10078
  * @param callback - Callback to call when a response is received
10140
10079
  */
10141
- ping(): Promise<Systems.PingResponseReceived>;
10080
+ ping(): Promise<Systems.NullResult>;
10142
10081
  /**
10143
10082
  * @description Retrieve User token from Agora
10144
10083
  * @param params - Params to configure the User token
10145
10084
  * @param callback - Callback to call when a response is received
10146
10085
  */
10147
- getAgoraUserToken(params: Systems.AgoraUserTokenParams): Promise<Systems.AgoraUserTokenResult>;
10086
+ getAgoraUserToken(params: Systems.AgoraUserTokenParams): Promise<Systems.StringResult>;
10148
10087
  /**
10149
10088
  * @description Re-send user verification email
10150
10089
  * @param inEmail - User's email address
@@ -10157,13 +10096,13 @@ export declare namespace Systems {
10157
10096
  * @param userId - The id of the user associated with the customer portal
10158
10097
  * @param callback - Callback that contains the customer portal url of the user
10159
10098
  */
10160
- getCustomerPortalUrl(userId: string): Promise<Systems.CustomerPortalUrlResult>;
10099
+ getCustomerPortalUrl(userId: string): Promise<Systems.StringResult>;
10161
10100
  /**
10162
10101
  * @description Get the checkout session Url for a user from Stripe
10163
10102
  * @param tier - The tier of the checkout session needed
10164
10103
  * @param callback - Callback that contains the checkout session url of the tier
10165
10104
  */
10166
- getCheckoutSessionUrl(tier: Systems.TierNames): Promise<Systems.CheckoutSessionUrlResult>;
10105
+ getCheckoutSessionUrl(tier: Systems.TierNames): Promise<Systems.StringResult>;
10167
10106
  }
10168
10107
  }
10169
10108
  export declare namespace Common {
@@ -10180,6 +10119,7 @@ export declare namespace Common {
10180
10119
  static ofcsp_systems_EAssetPlatform(): Array<Systems.EAssetPlatform>;
10181
10120
  static ofcsp_systems_Asset(): Array<Systems.Asset>;
10182
10121
  static ofcsp_systems_AssetCollection(): Array<Systems.AssetCollection>;
10122
+ static ofcsp_systems_EAssetCollectionType(): Array<Systems.EAssetCollectionType>;
10183
10123
  static ofcsp_systems_EAssetType(): Array<Systems.EAssetType>;
10184
10124
  static ofcsp_systems_LODAsset(): Array<Systems.LODAsset>;
10185
10125
  static ofcsp_systems_VariantOptionInfo(): Array<Systems.VariantOptionInfo>;
@@ -10214,6 +10154,7 @@ export declare namespace Common {
10214
10154
  static ofcsp_systems_EAssetPlatform_number(size: number): Array<Systems.EAssetPlatform>;
10215
10155
  static ofcsp_systems_Asset_number(size: number): Array<Systems.Asset>;
10216
10156
  static ofcsp_systems_AssetCollection_number(size: number): Array<Systems.AssetCollection>;
10157
+ static ofcsp_systems_EAssetCollectionType_number(size: number): Array<Systems.EAssetCollectionType>;
10217
10158
  static ofcsp_systems_EAssetType_number(size: number): Array<Systems.EAssetType>;
10218
10159
  static ofcsp_systems_LODAsset_number(size: number): Array<Systems.LODAsset>;
10219
10160
  static ofcsp_systems_VariantOptionInfo_number(size: number): Array<Systems.VariantOptionInfo>;