@rtsdk/topia 0.8.4 → 0.9.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.
package/dist/index.d.ts CHANGED
@@ -44,7 +44,7 @@ type WorldOptions = {
44
44
  credentials?: InteractiveCredentials | undefined;
45
45
  };
46
46
 
47
- type ResponseType = {
47
+ type ResponseType$1 = {
48
48
  message: string;
49
49
  success: boolean;
50
50
  };
@@ -64,7 +64,17 @@ type ResponseType = {
64
64
  declare class Scene extends SDKController implements SceneInterface {
65
65
  readonly id: string;
66
66
  constructor(topia: Topia, id: string, options?: SceneOptionalInterface);
67
- fetchSceneById(): Promise<void | ResponseType>;
67
+ /**
68
+ * @summary
69
+ * Retrieves scene details.
70
+ *
71
+ * @usage
72
+ * ```ts
73
+ * await scene.fetchSceneById();
74
+ * const { name } = scene;
75
+ * ```
76
+ */
77
+ fetchSceneById(): Promise<void | ResponseType$1>;
68
78
  }
69
79
 
70
80
  /**
@@ -81,12 +91,16 @@ declare class Scene extends SDKController implements SceneInterface {
81
91
  */
82
92
  declare class DroppedAsset extends Asset implements DroppedAssetInterface {
83
93
  #private;
84
- dataObject?: object | null;
85
94
  readonly id?: string | undefined;
86
- text?: string | null | undefined;
87
- urlSlug: string;
95
+ dataObject?: object | null;
88
96
  isInteractive?: boolean | null;
89
97
  interactivePublicKey?: string | null;
98
+ position?: {
99
+ x: number;
100
+ y: number;
101
+ };
102
+ text?: string | null | undefined;
103
+ urlSlug: string;
90
104
  constructor(topia: Topia, id: string, urlSlug: string, options?: DroppedAssetOptionalInterface);
91
105
  /**
92
106
  * @summary
@@ -98,7 +112,7 @@ declare class DroppedAsset extends Asset implements DroppedAssetInterface {
98
112
  * const { assetName } = droppedAsset;
99
113
  * ```
100
114
  */
101
- fetchDroppedAssetById(): Promise<void | ResponseType>;
115
+ fetchDroppedAssetById(): Promise<void | ResponseType$1>;
102
116
  /**
103
117
  * @summary
104
118
  * Delete dropped asset.
@@ -108,7 +122,7 @@ declare class DroppedAsset extends Asset implements DroppedAssetInterface {
108
122
  * await droppedAsset.deleteDroppedAsset();
109
123
  * ```
110
124
  */
111
- deleteDroppedAsset(): Promise<void | ResponseType>;
125
+ deleteDroppedAsset(): Promise<void | ResponseType$1>;
112
126
  /**
113
127
  * @summary
114
128
  * Retrieves the data object for a dropped asset.
@@ -118,7 +132,7 @@ declare class DroppedAsset extends Asset implements DroppedAssetInterface {
118
132
  * const dataObject = await droppedAsset.fetchDataObject();
119
133
  * ```
120
134
  */
121
- fetchDataObject(): Promise<void | ResponseType>;
135
+ fetchDataObject(): Promise<void | ResponseType$1>;
122
136
  /**
123
137
  * @summary
124
138
  * Sets the data object for a dropped asset.
@@ -133,11 +147,12 @@ declare class DroppedAsset extends Asset implements DroppedAssetInterface {
133
147
  * ```
134
148
  */
135
149
  setDataObject(dataObject: object, options?: {
150
+ analytics?: string[];
136
151
  lock?: {
137
152
  lockId: string;
138
153
  releaseLock?: boolean;
139
154
  };
140
- }): Promise<void | ResponseType>;
155
+ }): Promise<void | ResponseType$1>;
141
156
  /**
142
157
  * @summary
143
158
  * Updates the data object for a dropped asset.
@@ -152,11 +167,12 @@ declare class DroppedAsset extends Asset implements DroppedAssetInterface {
152
167
  * ```
153
168
  */
154
169
  updateDataObject(dataObject: object, options?: {
170
+ analytics?: string[];
155
171
  lock?: {
156
172
  lockId: string;
157
173
  releaseLock?: boolean;
158
174
  };
159
- }): Promise<void | ResponseType>;
175
+ }): Promise<void | ResponseType$1>;
160
176
  /**
161
177
  * @summary
162
178
  * Increments a specific value in the data object for a dropped asset by the amount specified. Must have valid interactive credentials from a visitor in the world.
@@ -172,11 +188,12 @@ declare class DroppedAsset extends Asset implements DroppedAssetInterface {
172
188
  * ```
173
189
  */
174
190
  incrementDataObjectValue(path: string, amount: number, options?: {
191
+ analytics?: string[];
175
192
  lock?: {
176
193
  lockId: string;
177
194
  releaseLock?: boolean;
178
195
  };
179
- }): Promise<void | ResponseType>;
196
+ }): Promise<void | ResponseType$1>;
180
197
  /**
181
198
  * @summary
182
199
  * Updates broadcast options for a dropped asset.
@@ -190,7 +207,7 @@ declare class DroppedAsset extends Asset implements DroppedAssetInterface {
190
207
  * });
191
208
  * ```
192
209
  */
193
- updateBroadcast({ assetBroadcast, assetBroadcastAll, broadcasterEmail, }: UpdateBroadcastInterface): Promise<void | ResponseType>;
210
+ updateBroadcast({ assetBroadcast, assetBroadcastAll, broadcasterEmail, }: UpdateBroadcastInterface): Promise<void | ResponseType$1>;
194
211
  /**
195
212
  * @summary
196
213
  * Updates click options for a dropped asset.
@@ -211,7 +228,7 @@ declare class DroppedAsset extends Asset implements DroppedAssetInterface {
211
228
  * });
212
229
  * ```
213
230
  */
214
- updateClickType({ clickType, clickableLink, clickableLinkTitle, clickableDisplayTextDescription, clickableDisplayTextHeadline, isForceLinkInIframe, isOpenLinkInDrawer, portalName, position, }: UpdateClickTypeInterface): Promise<void | ResponseType>;
231
+ updateClickType({ clickType, clickableLink, clickableLinkTitle, clickableDisplayTextDescription, clickableDisplayTextHeadline, isForceLinkInIframe, isOpenLinkInDrawer, portalName, position, }: UpdateClickTypeInterface): Promise<void | ResponseType$1>;
215
232
  /**
216
233
  * @summary
217
234
  * Updates text and style of a dropped asset.
@@ -228,7 +245,7 @@ declare class DroppedAsset extends Asset implements DroppedAssetInterface {
228
245
  * await droppedAsset.updateCustomTextAsset(style, "hello world");
229
246
  * ```
230
247
  */
231
- updateCustomTextAsset(style: object | undefined | null, text: string | null | undefined): Promise<void | ResponseType>;
248
+ updateCustomTextAsset(style: object | undefined | null, text: string | null | undefined): Promise<void | ResponseType$1>;
232
249
  /**
233
250
  * @summary
234
251
  * Updates media options for a dropped asset.
@@ -247,7 +264,7 @@ declare class DroppedAsset extends Asset implements DroppedAssetInterface {
247
264
  * });
248
265
  * ```
249
266
  */
250
- updateMediaType({ audioRadius, audioSliderVolume, isVideo, mediaLink, mediaName, mediaType, portalName, syncUserMedia, }: UpdateMediaTypeInterface): Promise<void | ResponseType>;
267
+ updateMediaType({ audioRadius, audioSliderVolume, isVideo, mediaLink, mediaName, mediaType, portalName, syncUserMedia, }: UpdateMediaTypeInterface): Promise<void | ResponseType$1>;
251
268
  /**
252
269
  * @summary
253
270
  * Updates mute zone options for a dropped asset.
@@ -257,7 +274,7 @@ declare class DroppedAsset extends Asset implements DroppedAssetInterface {
257
274
  * await droppedAsset.updateMuteZone(true);
258
275
  * ```
259
276
  */
260
- updateMuteZone(isMutezone: boolean): Promise<void | ResponseType>;
277
+ updateMuteZone(isMutezone: boolean): Promise<void | ResponseType$1>;
261
278
  /**
262
279
  * @summary
263
280
  * Updates webhook zone options for a dropped asset.
@@ -267,7 +284,7 @@ declare class DroppedAsset extends Asset implements DroppedAssetInterface {
267
284
  * await droppedAsset.updateWebhookZone(true);
268
285
  * ```
269
286
  */
270
- updateWebhookZone(isWebhookZoneEnabled: boolean): Promise<void | ResponseType>;
287
+ updateWebhookZone(isWebhookZoneEnabled: boolean): Promise<void | ResponseType$1>;
271
288
  /**
272
289
  * @summary
273
290
  * Moves a dropped asset to specified coordinates.
@@ -277,7 +294,7 @@ declare class DroppedAsset extends Asset implements DroppedAssetInterface {
277
294
  * await droppedAsset.updatePosition(100,200);
278
295
  * ```
279
296
  */
280
- updatePosition(x: number, y: number, yOrderAdjust?: number): Promise<void | ResponseType>;
297
+ updatePosition(x: number, y: number, yOrderAdjust?: number): Promise<void | ResponseType$1>;
281
298
  /**
282
299
  * @summary
283
300
  * Updates private zone options for a dropped asset.
@@ -291,7 +308,7 @@ declare class DroppedAsset extends Asset implements DroppedAssetInterface {
291
308
  * });
292
309
  * ```
293
310
  */
294
- updatePrivateZone({ isPrivateZone, isPrivateZoneChatDisabled, privateZoneUserCap, }: UpdatePrivateZoneInterface): Promise<void | ResponseType>;
311
+ updatePrivateZone({ isPrivateZone, isPrivateZoneChatDisabled, privateZoneUserCap, }: UpdatePrivateZoneInterface): Promise<void | ResponseType$1>;
295
312
  /**
296
313
  * @summary
297
314
  * Updates the size of a dropped asset.
@@ -301,7 +318,7 @@ declare class DroppedAsset extends Asset implements DroppedAssetInterface {
301
318
  * await droppedAsset.assetScale(.5);
302
319
  * ```
303
320
  */
304
- updateScale(assetScale: number): Promise<void | ResponseType>;
321
+ updateScale(assetScale: number): Promise<void | ResponseType$1>;
305
322
  /**
306
323
  * @summary
307
324
  * Flip an dropped asset.
@@ -311,7 +328,7 @@ declare class DroppedAsset extends Asset implements DroppedAssetInterface {
311
328
  * await droppedAsset.flip(.5);
312
329
  * ```
313
330
  */
314
- flip(): Promise<void | ResponseType>;
331
+ flip(): Promise<void | ResponseType$1>;
315
332
  /**
316
333
  * @summary
317
334
  * Change or remove media embedded in a dropped asset.
@@ -321,7 +338,7 @@ declare class DroppedAsset extends Asset implements DroppedAssetInterface {
321
338
  * await droppedAsset.updateUploadedMediaSelected("LVWyxwNxI96eLjnXWwYO");
322
339
  * ```
323
340
  */
324
- updateUploadedMediaSelected(mediaId: string): Promise<void | ResponseType>;
341
+ updateUploadedMediaSelected(mediaId: string): Promise<void | ResponseType$1>;
325
342
  /**
326
343
  * @summary
327
344
  * Change or remove top and bottom layers of a dropped asset.
@@ -331,7 +348,7 @@ declare class DroppedAsset extends Asset implements DroppedAssetInterface {
331
348
  * await droppedAsset.updateWebImageLayers("","https://www.shutterstock.com/image-vector/colorful-illustration-test-word-260nw-1438324490.jpg");
332
349
  * ```
333
350
  */
334
- updateWebImageLayers(bottom: string, top: string): Promise<void | ResponseType>;
351
+ updateWebImageLayers(bottom: string, top: string): Promise<void | ResponseType$1>;
335
352
  /**
336
353
  * @summary
337
354
  * Add a webhook to a dropped asset
@@ -339,7 +356,6 @@ declare class DroppedAsset extends Asset implements DroppedAssetInterface {
339
356
  * @usage
340
357
  * ```ts
341
358
  * await droppedAsset.addWebhook({
342
- * active: true,
343
359
  * dataObject: {},
344
360
  * description: "Webhook desc",
345
361
  * enteredBy: "you",
@@ -347,7 +363,6 @@ declare class DroppedAsset extends Asset implements DroppedAssetInterface {
347
363
  * title: "title",
348
364
  * type: "type",
349
365
  * url: "https://url.com",
350
- * urlSlug: "world",
351
366
  * });
352
367
  * ```
353
368
  */
@@ -376,7 +391,7 @@ declare class DroppedAsset extends Asset implements DroppedAssetInterface {
376
391
  setInteractiveSettings({ isInteractive, interactivePublicKey, }: {
377
392
  isInteractive?: boolean;
378
393
  interactivePublicKey: string;
379
- }): Promise<void | ResponseType>;
394
+ }): Promise<void | ResponseType$1>;
380
395
  /**
381
396
  * @summary
382
397
  * Retrieve analytics for a dropped asset by day, week, month, quarter, or year
@@ -394,7 +409,7 @@ declare class DroppedAsset extends Asset implements DroppedAssetInterface {
394
409
  periodType: "week" | "month" | "quarter" | "year";
395
410
  dateValue: number;
396
411
  year: number;
397
- }): Promise<void | ResponseType>;
412
+ }): Promise<void | ResponseType$1>;
398
413
  }
399
414
 
400
415
  /**
@@ -430,7 +445,7 @@ declare class World extends SDKController implements WorldInterface {
430
445
  * const { name } = world;
431
446
  * ```
432
447
  */
433
- fetchDetails(): Promise<void | ResponseType>;
448
+ fetchDetails(): Promise<void | ResponseType$1>;
434
449
  /**
435
450
  * @summary
436
451
  * Update details of a world.
@@ -453,7 +468,33 @@ declare class World extends SDKController implements WorldInterface {
453
468
  * });
454
469
  * ```
455
470
  */
456
- updateDetails({ controls, description, forceAuthOnLogin, height, name, spawnPosition, width, }: WorldDetailsInterface): Promise<void | ResponseType>;
471
+ updateDetails({ controls, description, forceAuthOnLogin, height, name, spawnPosition, width, }: WorldDetailsInterface): Promise<void | ResponseType$1>;
472
+ /**
473
+ * @summary
474
+ * Set close world settings
475
+ *
476
+ * @usage
477
+ * ```ts
478
+ * await world.updateCloseWorldSettings({
479
+ * controls: {
480
+ * allowMuteAll: true,
481
+ * disableHideVideo: true,
482
+ * isMobileDisabled: false,
483
+ * isShowingCurrentGuests: false,
484
+ * },
485
+ * description: 'Welcome to my world.',
486
+ * forceAuthOnLogin: false,
487
+ * height: 2000,
488
+ * name: 'Example',
489
+ * spawnPosition: { x: 100, y: 100 },
490
+ * width: 2000
491
+ * });
492
+ * ```
493
+ */
494
+ updateCloseWorldSettings({ closeWorldDescription, isWorldClosed, }: {
495
+ closeWorldDescription: string;
496
+ isWorldClosed: boolean;
497
+ }): Promise<void | ResponseType$1>;
457
498
  /**
458
499
  * @summary
459
500
  * Retrieve all assets dropped in a world.
@@ -464,7 +505,7 @@ declare class World extends SDKController implements WorldInterface {
464
505
  * const assets = world.droppedAssets;
465
506
  * ```
466
507
  */
467
- fetchDroppedAssets(): Promise<void | ResponseType>;
508
+ fetchDroppedAssets(): Promise<void | ResponseType$1>;
468
509
  /**
469
510
  * @summary
470
511
  * Retrieve all assets dropped in a world matching uniqueName.
@@ -534,7 +575,7 @@ declare class World extends SDKController implements WorldInterface {
534
575
  * { sceneDropIds: [] }
535
576
  * ```
536
577
  */
537
- fetchSceneDropIds(): Promise<object | ResponseType>;
578
+ fetchSceneDropIds(): Promise<object | ResponseType$1>;
538
579
  /**
539
580
  * @summary
540
581
  * Fetch a list of all scene drop ids and dropped assets in a world
@@ -563,7 +604,7 @@ declare class World extends SDKController implements WorldInterface {
563
604
  * }
564
605
  * ```
565
606
  */
566
- fetchScenes(): Promise<object | ResponseType>;
607
+ fetchScenes(): Promise<object | ResponseType$1>;
567
608
  /**
568
609
  * @summary
569
610
  * Drops a scene in a world and returns sceneDropId.
@@ -589,7 +630,7 @@ declare class World extends SDKController implements WorldInterface {
589
630
  assetSuffix: string;
590
631
  position: object;
591
632
  sceneId: string;
592
- }): Promise<object | ResponseType>;
633
+ }): Promise<object | ResponseType$1>;
593
634
  /**
594
635
  * @summary
595
636
  * Replace the current scene of a world.
@@ -607,7 +648,7 @@ declare class World extends SDKController implements WorldInterface {
607
648
  * await world.replaceScene(SCENE_ID);
608
649
  * ```
609
650
  */
610
- replaceScene(sceneId: string): Promise<void | ResponseType>;
651
+ replaceScene(sceneId: string): Promise<void | ResponseType$1>;
611
652
  /**
612
653
  * @summary
613
654
  * Retrieves the data object for a world. Must have valid interactive credentials from a visitor in the world.
@@ -618,7 +659,7 @@ declare class World extends SDKController implements WorldInterface {
618
659
  * const { dataObject } = world;
619
660
  * ```
620
661
  */
621
- fetchDataObject: () => Promise<void | ResponseType>;
662
+ fetchDataObject: () => Promise<void | ResponseType$1>;
622
663
  /**
623
664
  * @summary
624
665
  * Sets the data object for a user. Must have valid interactive credentials from a visitor in the world.
@@ -634,11 +675,12 @@ declare class World extends SDKController implements WorldInterface {
634
675
  * ```
635
676
  */
636
677
  setDataObject: (dataObject: object | null | undefined, options?: {
678
+ analytics?: string[];
637
679
  lock?: {
638
680
  lockId: string;
639
681
  releaseLock?: boolean;
640
682
  };
641
- }) => Promise<void | ResponseType>;
683
+ }) => Promise<void | ResponseType$1>;
642
684
  /**
643
685
  * @summary
644
686
  * Updates the data object for a world. Must have valid interactive credentials from a visitor in the world.
@@ -654,11 +696,12 @@ declare class World extends SDKController implements WorldInterface {
654
696
  * ```
655
697
  */
656
698
  updateDataObject: (dataObject: object, options?: {
699
+ analytics?: string[];
657
700
  lock?: {
658
701
  lockId: string;
659
702
  releaseLock?: boolean;
660
703
  };
661
- }) => Promise<void | ResponseType>;
704
+ }) => Promise<void | ResponseType$1>;
662
705
  /**
663
706
  * @summary
664
707
  * Increments a specific value in the data object for a world by the amount specified. Must have valid interactive credentials from a visitor in the world.
@@ -674,11 +717,12 @@ declare class World extends SDKController implements WorldInterface {
674
717
  * ```
675
718
  */
676
719
  incrementDataObjectValue(path: string, amount: number, options?: {
720
+ analytics?: string[];
677
721
  lock?: {
678
722
  lockId: string;
679
723
  releaseLock?: boolean;
680
724
  };
681
- }): Promise<void | ResponseType>;
725
+ }): Promise<void | ResponseType$1>;
682
726
  /**
683
727
  * @summary
684
728
  * Retrieve all webhooks in a world.
@@ -689,7 +733,7 @@ declare class World extends SDKController implements WorldInterface {
689
733
  * const webhooks = world.webhooks;
690
734
  * ```
691
735
  */
692
- fetchWebhooks(): Promise<void | ResponseType>;
736
+ fetchWebhooks(): Promise<void | ResponseType$1>;
693
737
  /**
694
738
  * @summary
695
739
  * Retrieve world analytics by day, week, month, quarter, or year
@@ -707,7 +751,7 @@ declare class World extends SDKController implements WorldInterface {
707
751
  periodType: "week" | "month" | "quarter" | "year";
708
752
  dateValue: number;
709
753
  year: number;
710
- }): Promise<void | ResponseType>;
754
+ }): Promise<void | ResponseType$1>;
711
755
  }
712
756
 
713
757
  /**
@@ -743,13 +787,35 @@ declare class User extends SDKController implements UserInterface {
743
787
  /**
744
788
  * @summary
745
789
  * Returns all assets owned by User when an email address is provided.
790
+ *
791
+ * @usage
792
+ * ```ts
793
+ * await user.fetchAssets();
794
+ * const userAssets = user.assets;
795
+ * ```
796
+ */
797
+ fetchAssets(): Promise<void | ResponseType$1>;
798
+ /**
799
+ * @summary
800
+ * Returns all platform assets.
801
+ *
802
+ * @usage
803
+ * ```ts
804
+ * const assets = await user.fetchPlatformAssets();
805
+ * ```
746
806
  */
747
- fetchAssets(): Promise<void | ResponseType>;
807
+ fetchPlatformAssets(): Promise<object | ResponseType$1>;
748
808
  /**
749
809
  * @summary
750
- * Returns all scenes owned by User
810
+ * Returns all scenes owned by User.
811
+ *
812
+ * @usage
813
+ * ```ts
814
+ * await user.fetchScenes();
815
+ * const userScenes = user.scenes;
816
+ * ```
751
817
  */
752
- fetchScenes(): Promise<void | ResponseType>;
818
+ fetchScenes(): Promise<void | ResponseType$1>;
753
819
  /**
754
820
  * @summary
755
821
  * Retrieves all worlds owned by user with matching API Key,
@@ -767,7 +833,7 @@ declare class User extends SDKController implements UserInterface {
767
833
  * { urlSlug: new World({ apiKey, worldArgs, urlSlug }) }
768
834
  * ```
769
835
  */
770
- fetchWorldsByKey(): Promise<void | ResponseType>;
836
+ fetchWorldsByKey(): Promise<void | ResponseType$1>;
771
837
  /**
772
838
  * @summary
773
839
  * Retrieves all worlds a user with matching API Key is an admin in,
@@ -780,7 +846,7 @@ declare class User extends SDKController implements UserInterface {
780
846
  * const adminWorlds = user.adminWorlds;
781
847
  * ```
782
848
  */
783
- fetchAdminWorldsByKey(): Promise<void | ResponseType>;
849
+ fetchAdminWorldsByKey(): Promise<void | ResponseType$1>;
784
850
  /**
785
851
  * @summary
786
852
  * Retrieves ids of all dropped assets in all worlds with a matching interactivePublicKey.
@@ -791,7 +857,7 @@ declare class User extends SDKController implements UserInterface {
791
857
  * const interactiveWorlds = user.interactiveWorlds;
792
858
  * ```
793
859
  */
794
- fetchInteractiveWorldsByKey(interactivePublicKey: string): Promise<object | ResponseType>;
860
+ fetchInteractiveWorldsByKey(interactivePublicKey: string): Promise<object | ResponseType$1>;
795
861
  /**
796
862
  * @summary
797
863
  * Retrieves the data object for a user.
@@ -801,7 +867,7 @@ declare class User extends SDKController implements UserInterface {
801
867
  * const dataObject = await user.fetchDataObject();
802
868
  * ```
803
869
  */
804
- fetchDataObject(): Promise<void | ResponseType>;
870
+ fetchDataObject(): Promise<void | ResponseType$1>;
805
871
  /**
806
872
  * @summary
807
873
  * Sets the data object for a user.
@@ -816,11 +882,12 @@ declare class User extends SDKController implements UserInterface {
816
882
  * ```
817
883
  */
818
884
  setDataObject(dataObject: object | null | undefined, options?: {
885
+ analytics?: string[];
819
886
  lock?: {
820
887
  lockId: string;
821
888
  releaseLock?: boolean;
822
889
  };
823
- }): Promise<void | ResponseType>;
890
+ }): Promise<void | ResponseType$1>;
824
891
  /**
825
892
  * @summary
826
893
  * Updates the data object for a user.
@@ -835,11 +902,12 @@ declare class User extends SDKController implements UserInterface {
835
902
  * ```
836
903
  */
837
904
  updateDataObject(dataObject: object, options?: {
905
+ analytics?: string[];
838
906
  lock?: {
839
907
  lockId: string;
840
908
  releaseLock?: boolean;
841
909
  };
842
- }): Promise<void | ResponseType>;
910
+ }): Promise<void | ResponseType$1>;
843
911
  /**
844
912
  * @summary
845
913
  * Increments a specific value in the data object for a user by the amount specified. Must have valid interactive credentials from a visitor in the world.
@@ -855,11 +923,12 @@ declare class User extends SDKController implements UserInterface {
855
923
  * ```
856
924
  */
857
925
  incrementDataObjectValue(path: string, amount: number, options?: {
926
+ analytics?: string[];
858
927
  lock?: {
859
928
  lockId: string;
860
929
  releaseLock?: boolean;
861
930
  };
862
- }): Promise<void | ResponseType>;
931
+ }): Promise<void | ResponseType$1>;
863
932
  }
864
933
 
865
934
  /**
@@ -888,7 +957,7 @@ declare class Visitor extends User implements VisitorInterface {
888
957
  * @result
889
958
  * Returns details for a visitor in a world by id and urlSlug
890
959
  */
891
- fetchVisitor(): Promise<void | ResponseType>;
960
+ fetchVisitor(): Promise<void | ResponseType$1>;
892
961
  /**
893
962
  * @summary
894
963
  * Teleport or walk a visitor currently in a world to a single set of coordinates.
@@ -905,7 +974,7 @@ declare class Visitor extends User implements VisitorInterface {
905
974
  * @result
906
975
  * Updates each Visitor instance and world.visitors map.
907
976
  */
908
- moveVisitor({ shouldTeleportVisitor, x, y }: MoveVisitorInterface): Promise<void | ResponseType>;
977
+ moveVisitor({ shouldTeleportVisitor, x, y }: MoveVisitorInterface): Promise<void | ResponseType$1>;
909
978
  /**
910
979
  * @summary
911
980
  * Display a message via a toast to a visitor currently in a world.
@@ -919,7 +988,7 @@ declare class Visitor extends User implements VisitorInterface {
919
988
  * });
920
989
  * ```
921
990
  */
922
- fireToast({ groupId, title, text }: FireToastInterface): Promise<void | ResponseType>;
991
+ fireToast({ groupId, title, text }: FireToastInterface): Promise<void | ResponseType$1>;
923
992
  /**
924
993
  * @summary
925
994
  * Open an iframe in a drawer or modal for a visitor currently in a world.
@@ -934,7 +1003,7 @@ declare class Visitor extends User implements VisitorInterface {
934
1003
  * });
935
1004
  * ```
936
1005
  */
937
- openIframe({ droppedAssetId, link, shouldOpenInDrawer, title, }: OpenIframeInterface): Promise<void | ResponseType>;
1006
+ openIframe({ droppedAssetId, link, shouldOpenInDrawer, title, }: OpenIframeInterface): Promise<void | ResponseType$1>;
938
1007
  /**
939
1008
  * @summary
940
1009
  * Reload an iframe for a visitor currently in a world.
@@ -944,7 +1013,7 @@ declare class Visitor extends User implements VisitorInterface {
944
1013
  * await visitor.reloadIframe("droppedAssetId");
945
1014
  * ```
946
1015
  */
947
- reloadIframe(droppedAssetId: string): Promise<void | ResponseType>;
1016
+ reloadIframe(droppedAssetId: string): Promise<void | ResponseType$1>;
948
1017
  /**
949
1018
  * @summary
950
1019
  * Close an iframe for a visitor currently in a world.
@@ -954,7 +1023,7 @@ declare class Visitor extends User implements VisitorInterface {
954
1023
  * await visitor.closeIframe("droppedAssetId");
955
1024
  * ```
956
1025
  */
957
- closeIframe(droppedAssetId: string): Promise<void | ResponseType>;
1026
+ closeIframe(droppedAssetId: string): Promise<void | ResponseType$1>;
958
1027
  /**
959
1028
  * @summary
960
1029
  * Mute and turn video off for a visitor currently in a world.
@@ -964,7 +1033,7 @@ declare class Visitor extends User implements VisitorInterface {
964
1033
  * await visitor.turnAVOff();
965
1034
  * ```
966
1035
  */
967
- turnAVOff(): Promise<void | ResponseType>;
1036
+ turnAVOff(): Promise<void | ResponseType$1>;
968
1037
  /**
969
1038
  * @summary
970
1039
  * Grant expression to a visitor by id or name.
@@ -977,7 +1046,7 @@ declare class Visitor extends User implements VisitorInterface {
977
1046
  grantExpression({ id, name }: {
978
1047
  id?: string;
979
1048
  name?: string;
980
- }): Promise<object | ResponseType>;
1049
+ }): Promise<object | ResponseType$1>;
981
1050
  /**
982
1051
  * @summary
983
1052
  * Retrieves the data object for a visitor.
@@ -987,7 +1056,7 @@ declare class Visitor extends User implements VisitorInterface {
987
1056
  * const dataObject = await visitor.fetchDataObject();
988
1057
  * ```
989
1058
  */
990
- fetchDataObject(): Promise<void | ResponseType>;
1059
+ fetchDataObject(): Promise<void | ResponseType$1>;
991
1060
  /**
992
1061
  * @summary
993
1062
  * Sets the data object for a visitor.
@@ -1002,11 +1071,12 @@ declare class Visitor extends User implements VisitorInterface {
1002
1071
  * ```
1003
1072
  */
1004
1073
  setDataObject(dataObject: object | null | undefined, options?: {
1074
+ analytics?: string[];
1005
1075
  lock?: {
1006
1076
  lockId: string;
1007
1077
  releaseLock?: boolean;
1008
1078
  };
1009
- }): Promise<void | ResponseType>;
1079
+ }): Promise<void | ResponseType$1>;
1010
1080
  /**
1011
1081
  * @summary
1012
1082
  * Updates the data object for a visitor.
@@ -1021,11 +1091,12 @@ declare class Visitor extends User implements VisitorInterface {
1021
1091
  * ```
1022
1092
  */
1023
1093
  updateDataObject(dataObject: object, options?: {
1094
+ analytics?: string[];
1024
1095
  lock?: {
1025
1096
  lockId: string;
1026
1097
  releaseLock?: boolean;
1027
1098
  };
1028
- }): Promise<void | ResponseType>;
1099
+ }): Promise<void | ResponseType$1>;
1029
1100
  /**
1030
1101
  * @summary
1031
1102
  * Increments a specific value in the data object for a visitor by the amount specified. Must have valid interactive credentials from a visitor in the world.
@@ -1041,11 +1112,12 @@ declare class Visitor extends User implements VisitorInterface {
1041
1112
  * ```
1042
1113
  */
1043
1114
  incrementDataObjectValue(path: string, amount: number, options?: {
1115
+ analytics?: string[];
1044
1116
  lock?: {
1045
1117
  lockId: string;
1046
1118
  releaseLock?: boolean;
1047
1119
  };
1048
- }): Promise<void | ResponseType>;
1120
+ }): Promise<void | ResponseType$1>;
1049
1121
  }
1050
1122
 
1051
1123
  type VisitorType = {
@@ -1089,7 +1161,7 @@ interface SDKInterface {
1089
1161
  }
1090
1162
 
1091
1163
  interface AssetInterface extends SDKInterface {
1092
- fetchPlatformAssets(): Promise<object>;
1164
+ fetchAssetById(): Promise<object | ResponseType>;
1093
1165
  addedOn?: string;
1094
1166
  assetName?: string;
1095
1167
  creatorTags?: object;
@@ -1114,23 +1186,23 @@ type AssetOptionalInterface = {
1114
1186
  };
1115
1187
 
1116
1188
  interface DroppedAssetInterface extends AssetInterface {
1117
- fetchDroppedAssetById(): Promise<void | ResponseType>;
1118
- deleteDroppedAsset(): Promise<void | ResponseType>;
1119
- fetchDataObject(): Promise<void | ResponseType>;
1120
- setDataObject(dataObject: object, options: object): Promise<void | ResponseType>;
1121
- updateDataObject(dataObject: object, options: object): Promise<void | ResponseType>;
1122
- incrementDataObjectValue(path: string, amount: number, options: object): Promise<void | ResponseType>;
1123
- updateBroadcast({ assetBroadcast, assetBroadcastAll, broadcasterEmail, }: UpdateBroadcastInterface): Promise<void | ResponseType>;
1124
- updateClickType({ clickType, clickableLink, clickableLinkTitle, clickableDisplayTextDescription, clickableDisplayTextHeadline, isForceLinkInIframe, isOpenLinkInDrawer, portalName, position, }: UpdateClickTypeInterface): Promise<void | ResponseType>;
1125
- updateCustomTextAsset(style: object | undefined | null, text: string | null | undefined): Promise<void | ResponseType>;
1126
- updateMediaType({ audioRadius, audioSliderVolume, isVideo, mediaLink, mediaName, mediaType, portalName, syncUserMedia, }: UpdateMediaTypeInterface): Promise<void | ResponseType>;
1127
- updateMuteZone(isMutezone: boolean): Promise<void | ResponseType>;
1128
- updateWebhookZone(isWebhookZoneEnabled: boolean): Promise<void | ResponseType>;
1129
- updatePosition(x: number, y: number, yOrderAdjust: number): Promise<void | ResponseType>;
1130
- updatePrivateZone({ isPrivateZone, isPrivateZoneChatDisabled, privateZoneUserCap, }: UpdatePrivateZoneInterface): Promise<void | ResponseType>;
1131
- updateScale(assetScale: number): Promise<void | ResponseType>;
1132
- updateUploadedMediaSelected(mediaId: string): Promise<void | ResponseType>;
1133
- updateWebImageLayers(bottom: string, top: string): Promise<void | ResponseType>;
1189
+ fetchDroppedAssetById(): Promise<void | ResponseType$1>;
1190
+ deleteDroppedAsset(): Promise<void | ResponseType$1>;
1191
+ fetchDataObject(): Promise<void | ResponseType$1>;
1192
+ setDataObject(dataObject: object, options: object): Promise<void | ResponseType$1>;
1193
+ updateDataObject(dataObject: object, options: object): Promise<void | ResponseType$1>;
1194
+ incrementDataObjectValue(path: string, amount: number, options: object): Promise<void | ResponseType$1>;
1195
+ updateBroadcast({ assetBroadcast, assetBroadcastAll, broadcasterEmail, }: UpdateBroadcastInterface): Promise<void | ResponseType$1>;
1196
+ updateClickType({ clickType, clickableLink, clickableLinkTitle, clickableDisplayTextDescription, clickableDisplayTextHeadline, isForceLinkInIframe, isOpenLinkInDrawer, portalName, position, }: UpdateClickTypeInterface): Promise<void | ResponseType$1>;
1197
+ updateCustomTextAsset(style: object | undefined | null, text: string | null | undefined): Promise<void | ResponseType$1>;
1198
+ updateMediaType({ audioRadius, audioSliderVolume, isVideo, mediaLink, mediaName, mediaType, portalName, syncUserMedia, }: UpdateMediaTypeInterface): Promise<void | ResponseType$1>;
1199
+ updateMuteZone(isMutezone: boolean): Promise<void | ResponseType$1>;
1200
+ updateWebhookZone(isWebhookZoneEnabled: boolean): Promise<void | ResponseType$1>;
1201
+ updatePosition(x: number, y: number, yOrderAdjust: number): Promise<void | ResponseType$1>;
1202
+ updatePrivateZone({ isPrivateZone, isPrivateZoneChatDisabled, privateZoneUserCap, }: UpdatePrivateZoneInterface): Promise<void | ResponseType$1>;
1203
+ updateScale(assetScale: number): Promise<void | ResponseType$1>;
1204
+ updateUploadedMediaSelected(mediaId: string): Promise<void | ResponseType$1>;
1205
+ updateWebImageLayers(bottom: string, top: string): Promise<void | ResponseType$1>;
1134
1206
  addWebhook({ dataObject, description, isUniqueOnly, title, type, url, }: {
1135
1207
  dataObject: object;
1136
1208
  description: string;
@@ -1142,7 +1214,7 @@ interface DroppedAssetInterface extends AssetInterface {
1142
1214
  setInteractiveSettings({ isInteractive, interactivePublicKey, }: {
1143
1215
  isInteractive?: boolean;
1144
1216
  interactivePublicKey: string;
1145
- }): Promise<void | ResponseType>;
1217
+ }): Promise<void | ResponseType$1>;
1146
1218
  id?: string;
1147
1219
  assetId?: string;
1148
1220
  assetScale?: number | null;
@@ -1247,7 +1319,7 @@ interface UpdatePrivateZoneInterface {
1247
1319
  }
1248
1320
 
1249
1321
  interface SceneInterface {
1250
- fetchSceneById(): Promise<void | ResponseType>;
1322
+ fetchSceneById(): Promise<void | ResponseType$1>;
1251
1323
  id: string;
1252
1324
  background?: null;
1253
1325
  description?: string;
@@ -1284,12 +1356,13 @@ interface TopiaInterface {
1284
1356
  }
1285
1357
 
1286
1358
  interface UserInterface {
1287
- fetchAssets(): Promise<void | ResponseType>;
1288
- fetchScenes(): Promise<void | ResponseType>;
1289
- fetchWorldsByKey(): Promise<void | ResponseType>;
1290
- fetchDataObject(): Promise<void | ResponseType>;
1291
- setDataObject(dataObject: object | null | undefined, options: object): Promise<void | ResponseType>;
1292
- incrementDataObjectValue(path: string, amount: number, options: object): Promise<void | ResponseType>;
1359
+ fetchAssets(): Promise<void | ResponseType$1>;
1360
+ fetchPlatformAssets(): Promise<object | ResponseType$1>;
1361
+ fetchScenes(): Promise<void | ResponseType$1>;
1362
+ fetchWorldsByKey(): Promise<void | ResponseType$1>;
1363
+ fetchDataObject(): Promise<void | ResponseType$1>;
1364
+ setDataObject(dataObject: object | null | undefined, options: object): Promise<void | ResponseType$1>;
1365
+ incrementDataObjectValue(path: string, amount: number, options: object): Promise<void | ResponseType$1>;
1293
1366
  dataObject?: object | null;
1294
1367
  }
1295
1368
  interface UserOptionalInterface {
@@ -1300,14 +1373,14 @@ interface UserOptionalInterface {
1300
1373
  }
1301
1374
 
1302
1375
  interface VisitorInterface extends SDKInterface {
1303
- fetchVisitor(): Promise<void | ResponseType>;
1304
- moveVisitor({ shouldTeleportVisitor, x, y }: MoveVisitorInterface): Promise<void | ResponseType>;
1305
- fireToast({ groupId, title, text }: FireToastInterface): Promise<void | ResponseType>;
1306
- openIframe({ link, shouldOpenInDrawer, title }: OpenIframeInterface): Promise<void | ResponseType>;
1307
- fetchDataObject(): Promise<void | ResponseType>;
1308
- setDataObject(dataObject: object | null | undefined, options: object): Promise<void | ResponseType>;
1309
- updateDataObject(dataObject: object, options: object): Promise<void | ResponseType>;
1310
- incrementDataObjectValue(path: string, amount: number, options: object): Promise<void | ResponseType>;
1376
+ fetchVisitor(): Promise<void | ResponseType$1>;
1377
+ moveVisitor({ shouldTeleportVisitor, x, y }: MoveVisitorInterface): Promise<void | ResponseType$1>;
1378
+ fireToast({ groupId, title, text }: FireToastInterface): Promise<void | ResponseType$1>;
1379
+ openIframe({ link, shouldOpenInDrawer, title }: OpenIframeInterface): Promise<void | ResponseType$1>;
1380
+ fetchDataObject(): Promise<void | ResponseType$1>;
1381
+ setDataObject(dataObject: object | null | undefined, options: object): Promise<void | ResponseType$1>;
1382
+ updateDataObject(dataObject: object, options: object): Promise<void | ResponseType$1>;
1383
+ incrementDataObjectValue(path: string, amount: number, options: object): Promise<void | ResponseType$1>;
1311
1384
  color?: string;
1312
1385
  dataObject?: object | null | undefined;
1313
1386
  displayName?: string;
@@ -1408,9 +1481,9 @@ interface WorldDetailsInterface {
1408
1481
  width?: number;
1409
1482
  }
1410
1483
  interface WorldInterface extends SDKInterface, WorldDetailsInterface {
1411
- fetchDetails(): Promise<void | ResponseType>;
1412
- updateDetails({ controls, description, forceAuthOnLogin, height, name, spawnPosition, width, }: WorldDetailsInterface): Promise<void | ResponseType>;
1413
- fetchDroppedAssets(): Promise<void | ResponseType>;
1484
+ fetchDetails(): Promise<void | ResponseType$1>;
1485
+ updateDetails({ controls, description, forceAuthOnLogin, height, name, spawnPosition, width, }: WorldDetailsInterface): Promise<void | ResponseType$1>;
1486
+ fetchDroppedAssets(): Promise<void | ResponseType$1>;
1414
1487
  fetchDroppedAssetsWithUniqueName({ uniqueName, isPartial, isReversed, }: {
1415
1488
  uniqueName: string;
1416
1489
  isPartial?: boolean;
@@ -1421,12 +1494,12 @@ interface WorldInterface extends SDKInterface, WorldDetailsInterface {
1421
1494
  assetSuffix: string;
1422
1495
  position: object;
1423
1496
  sceneId: string;
1424
- }): Promise<object | ResponseType>;
1425
- replaceScene(sceneId: string): Promise<void | ResponseType>;
1426
- fetchDataObject(): Promise<void | ResponseType>;
1427
- setDataObject(dataObject: object | null | undefined, options: object): Promise<void | ResponseType>;
1428
- updateDataObject(dataObject: object, options: object): Promise<void | ResponseType>;
1429
- incrementDataObjectValue(path: string, amount: number, options: object): Promise<void | ResponseType>;
1497
+ }): Promise<object | ResponseType$1>;
1498
+ replaceScene(sceneId: string): Promise<void | ResponseType$1>;
1499
+ fetchDataObject(): Promise<void | ResponseType$1>;
1500
+ setDataObject(dataObject: object | null | undefined, options: object): Promise<void | ResponseType$1>;
1501
+ updateDataObject(dataObject: object, options: object): Promise<void | ResponseType$1>;
1502
+ incrementDataObjectValue(path: string, amount: number, options: object): Promise<void | ResponseType$1>;
1430
1503
  dataObject?: object | null;
1431
1504
  }
1432
1505
  interface WorldOptionalInterface {
@@ -1489,7 +1562,7 @@ declare class Topia implements TopiaInterface {
1489
1562
  * await new SDKController({ credentials, topia });
1490
1563
  * ```
1491
1564
  */
1492
- declare class SDKController implements SDKInterface {
1565
+ declare abstract class SDKController implements SDKInterface {
1493
1566
  credentials: InteractiveCredentials | undefined;
1494
1567
  jwt?: string;
1495
1568
  requestOptions: object;
@@ -1529,8 +1602,19 @@ declare class SDKController implements SDKInterface {
1529
1602
  */
1530
1603
  declare class Asset extends SDKController implements AssetInterface {
1531
1604
  readonly id?: string;
1605
+ urlSlug?: string;
1532
1606
  constructor(topia: Topia, id: string, options?: AssetOptionalInterface);
1533
- fetchPlatformAssets(): Promise<object | ResponseType>;
1607
+ /**
1608
+ * @summary
1609
+ * Retrieves platform asset details.
1610
+ *
1611
+ * @usage
1612
+ * ```ts
1613
+ * await asset.fetchAssetById();
1614
+ * const { assetName } = asset;
1615
+ * ```
1616
+ */
1617
+ fetchAssetById(): Promise<object | ResponseType$1>;
1534
1618
  }
1535
1619
 
1536
1620
  /**
@@ -1587,7 +1671,7 @@ declare class WorldActivity extends SDKController {
1587
1671
  * @result
1588
1672
  * Updates each Visitor instance and worldActivity.visitors map.
1589
1673
  */
1590
- moveAllVisitors({ shouldFetchVisitors, shouldTeleportVisitors, scatterVisitorsBy, x, y, }: MoveAllVisitorsInterface): Promise<(void | ResponseType)[] | undefined>;
1674
+ moveAllVisitors({ shouldFetchVisitors, shouldTeleportVisitors, scatterVisitorsBy, x, y, }: MoveAllVisitorsInterface): Promise<(void | ResponseType$1)[] | undefined>;
1591
1675
  /**
1592
1676
  * @summary
1593
1677
  * Teleport or walk a list of visitors currently in a world to various coordinates.
@@ -1613,20 +1697,92 @@ declare class WorldActivity extends SDKController {
1613
1697
  * @result
1614
1698
  * Updates each Visitor instance and worldActivity.visitors map.
1615
1699
  */
1616
- moveVisitors(visitorsToMove: VisitorsToMoveArrayType): Promise<(void | ResponseType)[]>;
1700
+ moveVisitors(visitorsToMove: VisitorsToMoveArrayType): Promise<(void | ResponseType$1)[]>;
1617
1701
  }
1618
1702
 
1703
+ /**
1704
+ * @usage
1705
+ * ```ts
1706
+ * const Asset = new AssetFactory(myTopiaInstance);
1707
+ * ```
1708
+ */
1619
1709
  declare class AssetFactory {
1620
1710
  topia: Topia;
1621
1711
  constructor(topia: Topia);
1712
+ /**
1713
+ * @summary
1714
+ * Instantiate a new instance of Asset class.
1715
+ *
1716
+ * @usage
1717
+ * ```
1718
+ * const assetInstance = await Asset.create(id, { credentials: { interactiveNonce, interactivePublicKey, visitorId } });
1719
+ * ```
1720
+ */
1622
1721
  create(id: string, options?: AssetOptionalInterface): Asset;
1623
1722
  }
1624
1723
 
1724
+ /**
1725
+ * @usage
1726
+ * ```ts
1727
+ * const DroppedAsset = new DroppedAssetFactory(myTopiaInstance);
1728
+ * ```
1729
+ */
1625
1730
  declare class DroppedAssetFactory extends SDKController {
1626
1731
  constructor(topia: Topia);
1732
+ /**
1733
+ * @summary
1734
+ * Instantiate a new instance of DroppedAsset class.
1735
+ *
1736
+ * @usage
1737
+ * ```
1738
+ * const droppedAssetInstance = await DroppedAsset.create(assetId, urlSlug, { credentials: { interactiveNonce, interactivePublicKey, visitorId } });
1739
+ * ```
1740
+ */
1627
1741
  create(id: string, urlSlug: string, options?: DroppedAssetOptionalInterface): DroppedAsset;
1742
+ /**
1743
+ * @summary
1744
+ * Instantiate a new instance of DroppedAsset class and retrieve all properties.
1745
+ *
1746
+ * @usage
1747
+ * ```
1748
+ * const droppedAssetInstance = await DroppedAsset.get(assetId, urlSlug, { credentials: { interactiveNonce, interactivePublicKey, visitorId } });
1749
+ * ```
1750
+ */
1628
1751
  get(id: string, urlSlug: string, options?: DroppedAssetOptionalInterface): Promise<DroppedAsset>;
1629
- getWithUniqueName(uniqueName: string, urlSlug: string, interactivePublicKey: string, interactiveSecret: string): Promise<DroppedAsset>;
1752
+ /**
1753
+ * @summary
1754
+ * Searches dropped assets within a world by a provide `uniqueName`. If a single match is found, a new instance of DroppedAsset class is returned all properties.
1755
+ *
1756
+ * @usage
1757
+ * ```
1758
+ * const droppedAssetInstance = await DroppedAsset.getWithUniqueName("exampleUniqueName", urlSlug, { interactivePublicKey, interactiveSecret });
1759
+ * ```
1760
+ */
1761
+ getWithUniqueName(uniqueName: string, urlSlug: string, credentials: {
1762
+ apiKey?: string;
1763
+ interactivePublicKey?: string;
1764
+ interactiveSecret?: string;
1765
+ }): Promise<DroppedAsset>;
1766
+ /**
1767
+ * @summary
1768
+ * Drops an asset in a world and returns a new instance of DroppedAsset class with all properties.
1769
+ *
1770
+ * @usage
1771
+ * ```
1772
+ * const assetInstance = await Asset.create(id, { credentials: { interactiveNonce, interactivePublicKey, visitorId } });
1773
+ * const droppedAssetInstance = await DroppedAsset.get(assetInstance, {
1774
+ assetScale: 1.5,
1775
+ flipped: true,
1776
+ layer0: "",
1777
+ layer1: "https://pathtoimage.png",
1778
+ interactivePublicKey,
1779
+ isInteractive: true,
1780
+ position: { x: 0, y: 0 },
1781
+ uniqueName: "exampleUniqueName",
1782
+ urlSlug,
1783
+ });
1784
+ * ```
1785
+ */
1630
1786
  drop(asset: Asset, { assetScale, flipped, interactivePublicKey, isInteractive, layer0, layer1, position: { x, y }, sceneDropId, text, textColor, textSize, textWeight, textWidth, uniqueName, urlSlug, yOrderAdjust, }: {
1631
1787
  assetScale?: number;
1632
1788
  flipped?: boolean;
@@ -1650,38 +1806,144 @@ declare class DroppedAssetFactory extends SDKController {
1650
1806
  }): Promise<DroppedAsset>;
1651
1807
  }
1652
1808
 
1809
+ /**
1810
+ * @usage
1811
+ * ```ts
1812
+ * const Scene = new SceneFactory(myTopiaInstance);
1813
+ * ```
1814
+ */
1653
1815
  declare class SceneFactory {
1654
1816
  topia: Topia;
1655
1817
  constructor(topia: Topia);
1818
+ /**
1819
+ * @summary
1820
+ * Instantiate a new instance of Scene class.
1821
+ *
1822
+ * @usage
1823
+ * ```
1824
+ * const sceneInstance = await Scene.create(id, { credentials: { interactiveNonce, interactivePublicKey, visitorId } });
1825
+ * ```
1826
+ */
1656
1827
  create(id: string, options?: SceneOptionalInterface): Scene;
1828
+ /**
1829
+ * @summary
1830
+ * Instantiate a new instance of Scene class and retrieve all properties.
1831
+ *
1832
+ * @usage
1833
+ * ```
1834
+ * const sceneInstance = await Scene.get(id, { credentials: { interactiveNonce, interactivePublicKey, visitorId } });
1835
+ * ```
1836
+ */
1657
1837
  get(id: string, options?: SceneOptionalInterface): Promise<Scene>;
1658
1838
  }
1659
1839
 
1840
+ /**
1841
+ * @usage
1842
+ * ```ts
1843
+ * const User = new UserFactory(myTopiaInstance);
1844
+ * ```
1845
+ */
1660
1846
  declare class UserFactory {
1661
1847
  topia: Topia;
1662
1848
  constructor(topia: Topia);
1849
+ /**
1850
+ * @summary
1851
+ * Instantiate a new instance of User class.
1852
+ *
1853
+ * @usage
1854
+ * ```
1855
+ * const userInstance = await User.create({ credentials: { interactiveNonce, interactivePublicKey, visitorId } });
1856
+ * ```
1857
+ */
1663
1858
  create(options?: UserOptionalInterface): User;
1664
1859
  }
1665
1860
 
1861
+ /**
1862
+ * @usage
1863
+ * ```ts
1864
+ * const Visitor = new VisitorFactory(myTopiaInstance);
1865
+ * ```
1866
+ */
1666
1867
  declare class VisitorFactory {
1667
1868
  topia: Topia;
1668
1869
  constructor(topia: Topia);
1870
+ /**
1871
+ * @summary
1872
+ * Instantiate a new instance of Visitor class.
1873
+ *
1874
+ * @usage
1875
+ * ```
1876
+ * const visitorInstance = await Visitor.create(id, urlSlug, { credentials: { interactiveNonce, interactivePublicKey, visitorId } });
1877
+ * ```
1878
+ */
1669
1879
  create(id: number, urlSlug: string, options?: VisitorOptionalInterface): Visitor;
1880
+ /**
1881
+ * @summary
1882
+ * Instantiate a new instance of Visitor class and retrieve all properties.
1883
+ *
1884
+ * @usage
1885
+ * ```
1886
+ * const visitorInstance = await Visitor.get(id, urlSlug, { credentials: { interactiveNonce, interactivePublicKey, visitorId } });
1887
+ * ```
1888
+ */
1670
1889
  get(id: number, urlSlug: string, options?: VisitorOptionalInterface): Promise<Visitor>;
1671
1890
  }
1672
1891
 
1892
+ /**
1893
+ * @usage
1894
+ * ```ts
1895
+ * const WorldActivity = new WorldActivityFactory(myTopiaInstance);
1896
+ * ```
1897
+ */
1673
1898
  declare class WorldActivityFactory {
1674
1899
  topia: Topia;
1675
1900
  constructor(topia: Topia);
1901
+ /**
1902
+ * @summary
1903
+ * Instantiate a new instance of WorldActivity class.
1904
+ *
1905
+ * @usage
1906
+ * ```
1907
+ * const worldActivityInstance = await WorldActivity.create(urlSlug, { credentials: { interactiveNonce, interactivePublicKey, visitorId } });
1908
+ * ```
1909
+ */
1676
1910
  create(urlSlug: string, options?: WorldOptionalInterface): WorldActivity;
1677
1911
  }
1678
1912
 
1913
+ /**
1914
+ * @usage
1915
+ * ```ts
1916
+ * const World = new WorldFactory(myTopiaInstance);
1917
+ * ```
1918
+ */
1679
1919
  declare class WorldFactory extends SDKController {
1680
1920
  constructor(topia: Topia);
1921
+ /**
1922
+ * @summary
1923
+ * Instantiate a new instance of World class.
1924
+ *
1925
+ * @usage
1926
+ * ```
1927
+ * const worldInstance = await World.create(urlSlug, { credentials: { interactiveNonce, interactivePublicKey, visitorId } });
1928
+ * ```
1929
+ */
1681
1930
  create(urlSlug: string, options?: WorldOptionalInterface): World;
1682
- deleteDroppedAssets(urlSlug: string, droppedAssetIds: string[], interactivePublicKey: string, interactiveSecret: string): Promise<{
1931
+ /**
1932
+ * @summary
1933
+ * Deletes an array of Dropped Assets from within a world and returns success: true
1934
+ *
1935
+ * @usage
1936
+ * ```
1937
+ * await World.deleteDroppedAssets(urlSlug, ["exampleDroppedAssetId1", "exampleDroppedAssetId2"], { interactiveNonce, interactivePublicKey, visitorId });
1938
+ * ```
1939
+ */
1940
+ deleteDroppedAssets(urlSlug: string, droppedAssetIds: string[], credentials: {
1941
+ apiKey?: string;
1942
+ interactivePublicKey?: string;
1943
+ interactiveSecret?: string;
1944
+ }): Promise<{
1683
1945
  success: boolean;
1684
1946
  }>;
1685
1947
  }
1686
1948
 
1687
- export { Asset, AssetFactory, AssetInterface, AssetOptionalInterface, AssetOptions, DroppedAsset, DroppedAssetClickType, DroppedAssetFactory, DroppedAssetInterface, DroppedAssetMediaType, DroppedAssetOptionalInterface, DroppedAssetOptions, FireToastInterface, InteractiveCredentials, MoveAllVisitorsInterface, MoveVisitorInterface, OpenIframeInterface, ResponseType, SDKController, SDKInterface, Scene, SceneFactory, SceneInterface, SceneOptionalInterface, Topia, TopiaInterface, UpdateBroadcastInterface, UpdateClickTypeInterface, UpdateMediaTypeInterface, UpdatePrivateZoneInterface, User, UserFactory, UserInterface, UserOptionalInterface, UserOptions, Visitor, VisitorFactory, VisitorInterface, VisitorOptionalInterface, VisitorOptions, VisitorType, VisitorsToMoveArrayType, VisitorsToMoveType, WebhookInterface, World, WorldActivity, WorldActivityFactory, WorldActivityOptionalInterface, WorldDetailsInterface, WorldFactory, WorldInterface, WorldOptionalInterface, WorldOptions, WorldWebhooksInterface };
1949
+ export { Asset, AssetFactory, AssetInterface, AssetOptionalInterface, AssetOptions, DroppedAsset, DroppedAssetClickType, DroppedAssetFactory, DroppedAssetInterface, DroppedAssetMediaType, DroppedAssetOptionalInterface, DroppedAssetOptions, FireToastInterface, InteractiveCredentials, MoveAllVisitorsInterface, MoveVisitorInterface, OpenIframeInterface, ResponseType$1 as ResponseType, SDKController, SDKInterface, Scene, SceneFactory, SceneInterface, SceneOptionalInterface, Topia, TopiaInterface, UpdateBroadcastInterface, UpdateClickTypeInterface, UpdateMediaTypeInterface, UpdatePrivateZoneInterface, User, UserFactory, UserInterface, UserOptionalInterface, UserOptions, Visitor, VisitorFactory, VisitorInterface, VisitorOptionalInterface, VisitorOptions, VisitorType, VisitorsToMoveArrayType, VisitorsToMoveType, WebhookInterface, World, WorldActivity, WorldActivityFactory, WorldActivityOptionalInterface, WorldDetailsInterface, WorldFactory, WorldInterface, WorldOptionalInterface, WorldOptions, WorldWebhooksInterface };