connected-spaces-platform.web 6.0.0 → 6.1.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.
@@ -205,6 +205,33 @@ export declare namespace Web {
205
205
  ResponseNetworkAuthenticationRequired = 511
206
206
  }
207
207
  }
208
+ export declare namespace Multiplayer {
209
+ /**
210
+ * @description Enumerates the supported states for an avatar.
211
+ * These are used to establish the related animation that the avatar will use on its state machine.
212
+ */
213
+ enum AvatarState {
214
+ Idle = 0,
215
+ Walking = 1,
216
+ Running = 2,
217
+ Flying = 3,
218
+ Jumping = 4,
219
+ Falling = 5,
220
+ Num = 6
221
+ }
222
+ }
223
+ export declare namespace Multiplayer {
224
+ /**
225
+ * @description Enumerates the supported play mode for the avatar.
226
+ */
227
+ enum AvatarPlayMode {
228
+ Default = 0,
229
+ AR = 1,
230
+ VR = 2,
231
+ Creator = 3,
232
+ Num = 4
233
+ }
234
+ }
208
235
  export declare namespace Multiplayer {
209
236
  /**
210
237
  * @description Enum used to indicate the failure state of a multiplayer request.
@@ -351,8 +378,9 @@ export declare namespace Multiplayer {
351
378
  Text = 25,
352
379
  Hotspot = 26,
353
380
  CinematicCamera = 27,
354
- spare = 28,
355
- values = 29,
381
+ ScreenSharing = 28,
382
+ spare = 29,
383
+ values = 30,
356
384
  Delete = 56
357
385
  }
358
386
  }
@@ -522,33 +550,6 @@ export declare namespace Multiplayer {
522
550
  Num = 11
523
551
  }
524
552
  }
525
- export declare namespace Multiplayer {
526
- /**
527
- * @description Enumerates the supported states for an avatar.
528
- * These are used to establish the related animation that the avatar will use on its state machine.
529
- */
530
- enum AvatarState {
531
- Idle = 0,
532
- Walking = 1,
533
- Running = 2,
534
- Flying = 3,
535
- Jumping = 4,
536
- Falling = 5,
537
- Num = 6
538
- }
539
- }
540
- export declare namespace Multiplayer {
541
- /**
542
- * @description Enumerates the supported play mode for the avatar.
543
- */
544
- enum AvatarPlayMode {
545
- Default = 0,
546
- AR = 1,
547
- VR = 2,
548
- Creator = 3,
549
- Num = 4
550
- }
551
- }
552
553
  export declare namespace Multiplayer {
553
554
  /**
554
555
  * @description Enumerates the supported locomotion models available for the avatar movements.
@@ -938,6 +939,24 @@ export declare namespace Multiplayer {
938
939
  UnitBox = 1
939
940
  }
940
941
  }
942
+ export declare namespace Multiplayer {
943
+ /**
944
+ * @description Enumerates the list of properties that can be replicated for a screen sharing component.
945
+ */
946
+ enum ScreenSharingPropertyKeys {
947
+ Position = 0,
948
+ Rotation = 1,
949
+ Scale = 2,
950
+ IsVisible = 3,
951
+ IsARVisible = 4,
952
+ IsShadowCaster = 5,
953
+ UserId = 6,
954
+ DefaultImageCollectionId = 7,
955
+ DefaultImageAssetId = 8,
956
+ AttenuationRadius = 9,
957
+ Num = 10
958
+ }
959
+ }
941
960
  export declare namespace Multiplayer {
942
961
  /**
943
962
  * @description Enumerates the supported scopes of a script.
@@ -8869,6 +8888,139 @@ export declare namespace Multiplayer {
8869
8888
  delete(): void;
8870
8889
  }
8871
8890
  }
8891
+ export declare namespace Multiplayer {
8892
+ /**
8893
+ @ingroup ScreenSharingSpaceComponent
8894
+ * @description Enables screen sharing within the space.
8895
+ * /// The screen sharing component facilitates the sharing of a user's screen within a space.
8896
+ * The component itself does not make assumptions about the mechanism by which the screen is shared.
8897
+ * It provides properties to define a default image to be displayed when no users are
8898
+ * sharing their screen, as well a UserId property to store the Id of the user currently sharing their screen.
8899
+ */
8900
+ class ScreenSharingSpaceComponent extends Multiplayer.ComponentBase implements Multiplayer.IShadowCasterComponent, Multiplayer.ITransformComponent, Multiplayer.IVisibleComponent, INativeResource {
8901
+ /** @internal */
8902
+ constructor(pointer: NativePointer);
8903
+ static fromComponentBase(baseInstance: Multiplayer.ComponentBase): Multiplayer.ScreenSharingSpaceComponent;
8904
+ /**
8905
+ * @description Constructs the screen sharing component, and associates it with the specified Parent space entity.
8906
+ * @param parent - The Space entity that owns this component.
8907
+ */
8908
+ static create_logSystem_parent(logSystem: Common.LogSystem, parent: Multiplayer.SpaceEntity): ScreenSharingSpaceComponent;
8909
+ /**
8910
+ * @description Gets the ID of the user who is currently sharing their screen to this component.
8911
+ * NOTE: An empty string means that no user is currently sharing their screen to this component.
8912
+ * @return The ID of the user who is currently sharing their screen to this component.
8913
+ */
8914
+ getUserId(): string;
8915
+ /**
8916
+ * @description Sets the ID of the user who is sharing their screen to this component.
8917
+ * @param value - The ID of the user who is sharing their screen to this component. This must be set to an empty string when
8918
+ * the user finishes sharing.
8919
+ */
8920
+ setUserId(value: string): void;
8921
+ /**
8922
+ * @description Gets the ID of the asset collection associated with the default image for this component.
8923
+ * NOTE: To retrieve this component's default image, both the DefaultImageCollectionId and the DefaultImageAssetId are required.
8924
+ * @return The ID of the default image asset collection associated with this component.
8925
+ */
8926
+ getDefaultImageCollectionId(): string;
8927
+ /**
8928
+ * @description Sets the ID of the asset collection associated with the default image for this component.
8929
+ * NOTE: To retrieve this component's default image, both the DefaultImageCollectionId and the DefaultImageAssetId are required.
8930
+ * @param value - The ID of the default image asset collection associated with this component.
8931
+ */
8932
+ setDefaultImageCollectionId(value: string): void;
8933
+ /**
8934
+ * @description Gets the ID of the asset associated with the default image for this component.
8935
+ * NOTE: To retrieve this component's default image, both the DefaultImageCollectionId and the DefaultImageAssetId are required.
8936
+ * @return The ID of the default image asset associated with this component.
8937
+ */
8938
+ getDefaultImageAssetId(): string;
8939
+ /**
8940
+ * @description Sets the ID of the asset associated with the default image for this component.
8941
+ * NOTE: To retrieve this component's default image, both the DefaultImageCollectionId and the DefaultImageAssetId are required.
8942
+ * @param value - The ID of the default image asset associated with this component.
8943
+ */
8944
+ setDefaultImageAssetId(value: string): void;
8945
+ /**
8946
+ * @description Gets the radius from this component origin within which the audio of this video can be heard by the user.
8947
+ * NOTE: Only when the user position is within this radius the audio of the video should be heard.
8948
+ * @return The radius within which the audio of the video can be heard by the user.
8949
+ */
8950
+ getAttenuationRadius(): number;
8951
+ /**
8952
+ * @description Sets the radius from this component origin within which the audio of this video can be heard by the user.
8953
+ * NOTE: Only when the user position is within this radius the audio of the video should be heard.
8954
+ * @param value - The radius within which the audio of the video can be heard by the user.
8955
+ */
8956
+ setAttenuationRadius(value: number): void;
8957
+ /**
8958
+ * \addtogroup ITransformComponent
8959
+ @{
8960
+ @copydoc IPositionComponent::GetPosition()
8961
+ */
8962
+ getPosition(): Common.Vector3;
8963
+ /**
8964
+ @copydoc IPositionComponent::SetPosition()
8965
+ */
8966
+ setPosition(value: Common.Vector3): void;
8967
+ /**
8968
+ @copydoc IRotationComponent::GetRotation()
8969
+ */
8970
+ getRotation(): Common.Vector4;
8971
+ /**
8972
+ @copydoc IRotationComponent::SetRotation()
8973
+ */
8974
+ setRotation(value: Common.Vector4): void;
8975
+ /**
8976
+ @copydoc IScaleComponent::GetScale()
8977
+ */
8978
+ getScale(): Common.Vector3;
8979
+ /**
8980
+ @copydoc IScaleComponent::SetScale()
8981
+ */
8982
+ setScale(value: Common.Vector3): void;
8983
+ /**
8984
+ @copydoc ITransformComponent::GetTransform()
8985
+ */
8986
+ getTransform(): Multiplayer.SpaceTransform;
8987
+ /**
8988
+ @copydoc ITransformComonent::SetTransform()
8989
+ */
8990
+ setTransform(value: Multiplayer.SpaceTransform): void;
8991
+ /**
8992
+ @}
8993
+ * \addtogroup IVisibleComponent
8994
+ @{
8995
+ @copydoc IVisibleComponent::GetIsVisible()
8996
+ */
8997
+ getIsVisible(): boolean;
8998
+ /**
8999
+ @copydoc IVisibleComponent::SetIsVisible()
9000
+ */
9001
+ setIsVisible(value: boolean): void;
9002
+ /**
9003
+ @copydoc IVisibleComponent::GetIsARVisible()
9004
+ */
9005
+ getIsARVisible(): boolean;
9006
+ /**
9007
+ @copydoc IVisibleComponent::SetIsARVisible()
9008
+ */
9009
+ setIsARVisible(value: boolean): void;
9010
+ /**
9011
+ @}
9012
+ * \addtogroup IShadowCasterComponent
9013
+ @{
9014
+ @copydoc IShadowCasterComponent::GetIsShadowCaster()
9015
+ */
9016
+ getIsShadowCaster(): boolean;
9017
+ /**
9018
+ @copydoc IShadowCasterComponent::SetIsShadowCaster()
9019
+ */
9020
+ setIsShadowCaster(value: boolean): void;
9021
+ delete(): void;
9022
+ }
9023
+ }
8872
9024
  export declare namespace Multiplayer {
8873
9025
  /**
8874
9026
  @ingroup ScriptSpaceComponent
@@ -11294,10 +11446,17 @@ export declare namespace Systems {
11294
11446
  constructor(pointer: NativePointer);
11295
11447
  static fromResultBase(baseInstance: Systems.ResultBase): Systems.AvatarInfoResult;
11296
11448
  /**
11297
- * @description A getter which returns the String passed via the result.
11449
+ * @description Returns the type of avatar selected by the user.
11298
11450
  */
11299
11451
  getAvatarType(): Systems.AvatarType;
11452
+ /**
11453
+ * @description Returns the string used to identify or locate the avatar.
11454
+ */
11300
11455
  getAvatarIdentifier(): string;
11456
+ /**
11457
+ * @description Returns whether or not the user's avatar is intended to be visible or not.
11458
+ */
11459
+ getAvatarVisible(): boolean;
11301
11460
  delete(): void;
11302
11461
  }
11303
11462
  }
@@ -11403,9 +11562,10 @@ export declare namespace Systems {
11403
11562
  * @description Sets the avatar type and identifier for a user.
11404
11563
  * @param inType - The type of avatar (predefined, Ready Player Me, or custom).
11405
11564
  * @param inIdentifier - A string used to identify or locate the avatar.
11565
+ * @param inAvatarVisible - A bool used to identify whether the user's avatar should be visible or not.
11406
11566
  * @param callback - Callback to call when task finishes.
11407
11567
  */
11408
- setAvatarInfo(type: Systems.AvatarType, identifier: string): Promise<Systems.NullResult>;
11568
+ setAvatarInfo(type: Systems.AvatarType, identifier: string, avatarVisible: boolean): Promise<Systems.NullResult>;
11409
11569
  /**
11410
11570
  * @description Retrieves the avatar type and identifier for a user.
11411
11571
  * @param callback - Callback to call when task finishes.
@@ -11649,7 +11809,7 @@ export declare namespace Systems {
11649
11809
  * The initial load behaviour will differ based on the concrete IRealtimeEngine passed to this function.
11650
11810
  * If user does not have permission to discover or enter the space, callback will be called with EResultCode::Failed and
11651
11811
  * ERequestFailureReason::UserSpaceAccessDenied
11652
- * @param space - Space to enter into
11812
+ * @param spaceId - Space id to enter into
11653
11813
  * @param realtimeEngine - RealtimeEngine to load the space with. This object belongs to the caller, and does not
11654
11814
  * transfer ownership. Once the space is loaded, the caller should be sure to maintain the lifetime of the RealtimeEngine so long
11655
11815
  * as the space is active. Once the caller has called csp::systems::SpaceSystem::ExitSpace and received the callback, then they are
@@ -11699,7 +11859,7 @@ export declare namespace Systems {
11699
11859
  createSpaceWithBuffer(name: string, description: string, attributes: Systems.SpaceAttributes, inviteUsers: Systems.InviteUserRoleInfoCollection | null, metadata: Common.Map<string, string>, thumbnail: Systems.BufferAssetDataSource, tags: Common.Array<string> | null): Promise<Systems.SpaceResult>;
11700
11860
  /**
11701
11861
  * @description Updates the name and/or the description of a Space
11702
- * @param space - The space to update
11862
+ * @param spaceId - The space id to update
11703
11863
  * @param name - If a new name is provided it will be used to update the space name
11704
11864
  * @param description - If a new description is provided it will be used to update the space
11705
11865
  * description
@@ -11710,7 +11870,7 @@ export declare namespace Systems {
11710
11870
  updateSpace(spaceId: string, name: string | null, description: string | null, type: Systems.SpaceAttributes | null, tags: Common.Array<string> | null): Promise<Systems.BasicSpaceResult>;
11711
11871
  /**
11712
11872
  * @description Deletes a given space and the associated objects that belong to it. Including UserService group, Metadata, and Thumbnail.
11713
- * @param space - Space to delete
11873
+ * @param spaceId - Space id to delete
11714
11874
  * @param callback - Callback when asynchronous task finishes
11715
11875
  */
11716
11876
  deleteSpace(spaceId: string): Promise<Systems.NullResult>;
@@ -11756,7 +11916,7 @@ export declare namespace Systems {
11756
11916
  getSpace(spaceId: string): Promise<Systems.SpaceResult>;
11757
11917
  /**
11758
11918
  * @description Invites a given email to a specific space.
11759
- * @param space - Space to invite to
11919
+ * @param spaceId - Space id to invite to
11760
11920
  * @param email - Email to invite to space
11761
11921
  * @param isModeratorRole - If present and true sets the user's role in the space to "moderator", pass false or
11762
11922
  * nullptr to leave role as default
@@ -11767,67 +11927,67 @@ export declare namespace Systems {
11767
11927
  inviteToSpace(spaceId: string, email: string, isModeratorRole: boolean | null, emailLinkUrl: string | null, signupUrl: string | null): Promise<Systems.NullResult>;
11768
11928
  /**
11769
11929
  * @description Invites all the given emails to a specific space.
11770
- * @param space - Space to invite to
11930
+ * @param spaceId - Space id to invite to
11771
11931
  * @param inviteUsers - Collection containing the email link URL and the users to invite with their emails and roles
11772
11932
  * @param callback - Callback when asynchronous task finishes
11773
11933
  */
11774
11934
  bulkInviteToSpace(spaceId: string, inviteUsers: Systems.InviteUserRoleInfoCollection): Promise<Systems.NullResult>;
11775
11935
  /**
11776
11936
  * @description Returns an array of obfuscated email addresses, addresses of users that have not yet accepted the space invite
11777
- * @param space - Space for which the invites where sent
11937
+ * @param spaceId - Space ID for which the invites where sent
11778
11938
  * @param callback - Callback when asynchronous task finishes
11779
11939
  */
11780
11940
  getPendingUserInvites(spaceId: string): Promise<Systems.PendingInvitesResult>;
11781
11941
  /**
11782
11942
  * @description Returns an array of ids of users that accepted the space invite
11783
- * @param space - Space for which the invites where sent
11943
+ * @param spaceId - Space ID for which the invites where sent
11784
11944
  * @param callback - Callback when asynchronous task finishes
11785
11945
  */
11786
11946
  getAcceptedUserInvites(spaceId: string): Promise<Systems.AcceptedInvitesResult>;
11787
11947
  /**
11788
11948
  * @description Removes a user from a space by the user's unique ID.
11789
- * @param space - Space to remove user from
11949
+ * @param spaceId - Space id to remove user from
11790
11950
  * @param userId - Unique id of user
11791
11951
  * @param callback - Callback when asynchronous task finishes
11792
11952
  */
11793
11953
  removeUserFromSpace(spaceId: string, userId: string): Promise<Systems.NullResult>;
11794
11954
  /**
11795
11955
  * @description Adds a user to a space by the user's unique ID.
11796
- * @param space - Space to add user to
11956
+ * @param spaceId - Space id to add user to
11797
11957
  * @param userId - Unique id of user
11798
11958
  * @param callback - Callback when asynchronous task finishes
11799
11959
  */
11800
11960
  addUserToSpace(spaceId: string, userId: string): Promise<Systems.SpaceResult>;
11801
11961
  /**
11802
11962
  * @description Creates new Site information and associates it with the Space.
11803
- * @param space - Space to associate the Site information with
11963
+ * @param spaceId - Space ID to associate the Site information with
11804
11964
  * @param siteInfo - Site information to be added
11805
11965
  * @param callback - Callback when asynchronous task finishes
11806
11966
  */
11807
11967
  addSiteInfo(spaceId: string, siteInfo: Systems.Site): Promise<Systems.SiteResult>;
11808
11968
  /**
11809
11969
  * @description Removes the Site information from the Space.
11810
- * @param space - Space for which to remove the associated Site information
11970
+ * @param spaceId - Space ID for which to remove the associated Site information
11811
11971
  * @param siteInfo - Site information to be removed
11812
11972
  * @param callback - Callback when asynchronous task
11813
11973
  */
11814
11974
  removeSiteInfo(spaceId: string, siteInfo: Systems.Site): Promise<Systems.NullResult>;
11815
11975
  /**
11816
11976
  * @description Retrieves the Sites information associated with a Space.
11817
- * @param space - Space to be queried for Site information
11977
+ * @param spaceId - Space ID to be queried for Site information
11818
11978
  * @param callback - Callback when asynchronous task finishes
11819
11979
  */
11820
11980
  getSitesInfo(spaceId: string): Promise<Systems.SitesCollectionResult>;
11821
11981
  /**
11822
11982
  * @description Updates the space role for a particular user
11823
- * @param space - The space that the requested user is part of
11983
+ * @param spaceId - The space ID that the requested user is part of
11824
11984
  * @param newUserRoleInfo - New user role information containing the new role for the specified user
11825
11985
  * @param callback - Callback when asynchronous task finishes
11826
11986
  */
11827
11987
  updateUserRole(spaceId: string, newUserRoleInfo: Systems.UserRoleInfo): Promise<Systems.NullResult>;
11828
11988
  /**
11829
11989
  * @description Retrieves the User role information for the User Ids that have been passed in
11830
- * @param space - Space for which the User Roles will be retrieved
11990
+ * @param spaceId - Space ID for which the User Roles will be retrieved
11831
11991
  * @param requestedUserIds - Array of User Ids for which the User Roles will be retrieved
11832
11992
  * @param callback - Callback when asynchronous task finishes
11833
11993
  */
@@ -11847,20 +12007,20 @@ export declare namespace Systems {
11847
12007
  getSpacesMetadata(spaces: Common.Array<string>): Promise<Systems.SpacesMetadataResult>;
11848
12008
  /**
11849
12009
  * @description Retrieves the Space metadata information
11850
- * @param space - Space for which the metadata will be retrieved
12010
+ * @param spaceId - Space ID for which the metadata will be retrieved
11851
12011
  * @param callback - Callback when asynchronous task finishes
11852
12012
  */
11853
12013
  getSpaceMetadata(spaceId: string): Promise<Systems.SpaceMetadataResult>;
11854
12014
  /**
11855
12015
  * @description Updates the Space thumbnail image or adds one if it didn't have it previously using FileAssetDataSource
11856
- * @param space - Space for which the thumbnail will be updated
12016
+ * @param spaceId - Space ID for which the thumbnail will be updated
11857
12017
  * @param newThumbnail - New thumbnail information
11858
12018
  * @param callback - Callback when asynchronous task finishes
11859
12019
  */
11860
12020
  updateSpaceThumbnail(spaceId: string, newThumbnail: Systems.FileAssetDataSource): Promise<Systems.NullResult>;
11861
12021
  /**
11862
12022
  * @description Updates the Space thumbnail image or adds one if it didn't have it previously using BufferAssetDataSource
11863
- * @param space - Space for which the thumbnail will be updated
12023
+ * @param spaceId - Space ID for which the thumbnail will be updated
11864
12024
  * @param newThumbnail - New thumbnail information
11865
12025
  * @param callback - Callback when asynchronous task finishes
11866
12026
  */
@@ -11869,20 +12029,20 @@ export declare namespace Systems {
11869
12029
  * @description Retrieves the space thumbnail information associated with the space
11870
12030
  * If the space does not have a thumbnail associated with it the result callback will be successful, the HTTP res code will be ResponseNotFound
11871
12031
  * and the Uri field inside the UriResult will be empty
11872
- * @param space - Space for which the thumbnail information will be retrieved
12032
+ * @param spaceId - Space ID for which the thumbnail information will be retrieved
11873
12033
  * @param callback - Callback when asynchronous task finishes
11874
12034
  */
11875
12035
  getSpaceThumbnail(spaceId: string): Promise<Systems.UriResult>;
11876
12036
  /**
11877
12037
  * @description Adds user to group banned list. Banned list can be retrieved from the space
11878
- * @param space - Space for which the ban will be issued on
12038
+ * @param spaceId - Space ID for which the ban will be issued on
11879
12039
  * @param requestedUserId - User id to be banned from the space
11880
12040
  * @param callback - Callback when asynchronous task finishes
11881
12041
  */
11882
12042
  addUserToSpaceBanList(spaceId: string, requestedUserId: string): Promise<Systems.NullResult>;
11883
12043
  /**
11884
12044
  * @description Deletes user from group banned list. Banned list can be retrieved from the space
11885
- * @param space - Space for which the Space for which the ban will be removed on
12045
+ * @param spaceId - Space ID for which the Space for which the ban will be removed on
11886
12046
  * @param requestedUserId - User id to have ban removed from the space
11887
12047
  * @param callback - Callback when asynchronous task finishes
11888
12048
  */