@rtsdk/topia 0.2.2 → 0.2.3

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.
Files changed (58) hide show
  1. package/dist/index.cjs +1179 -41168
  2. package/dist/index.d.ts +1251 -0
  3. package/dist/index.js +194 -101
  4. package/package.json +5 -2
  5. package/dist/types/example.d.ts +0 -6
  6. package/dist/types/src/__mocks__/assets.d.ts +0 -99
  7. package/dist/types/src/__mocks__/index.d.ts +0 -4
  8. package/dist/types/src/__mocks__/scenes.d.ts +0 -79
  9. package/dist/types/src/__mocks__/visitors.d.ts +0 -83
  10. package/dist/types/src/__mocks__/worlds.d.ts +0 -73
  11. package/dist/types/src/controllers/Asset.d.ts +0 -20
  12. package/dist/types/src/controllers/DroppedAsset.d.ts +0 -285
  13. package/dist/types/src/controllers/SDKController.d.ts +0 -48
  14. package/dist/types/src/controllers/Scene.d.ts +0 -19
  15. package/dist/types/src/controllers/Topia.d.ts +0 -33
  16. package/dist/types/src/controllers/User.d.ts +0 -112
  17. package/dist/types/src/controllers/Visitor.d.ts +0 -102
  18. package/dist/types/src/controllers/World.d.ts +0 -143
  19. package/dist/types/src/controllers/WorldActivity.d.ts +0 -83
  20. package/dist/types/src/controllers/__tests__/asset.test.d.ts +0 -1
  21. package/dist/types/src/controllers/__tests__/droppedAsset.test.d.ts +0 -1
  22. package/dist/types/src/controllers/__tests__/scene.test.d.ts +0 -1
  23. package/dist/types/src/controllers/__tests__/user.test.d.ts +0 -1
  24. package/dist/types/src/controllers/__tests__/visitor.test.d.ts +0 -1
  25. package/dist/types/src/controllers/__tests__/world.test.d.ts +0 -1
  26. package/dist/types/src/controllers/__tests__/worldActivity.test.d.ts +0 -1
  27. package/dist/types/src/controllers/index.d.ts +0 -9
  28. package/dist/types/src/factories/AssetFactory.d.ts +0 -8
  29. package/dist/types/src/factories/DroppedAssetFactory.d.ts +0 -16
  30. package/dist/types/src/factories/SceneFactory.d.ts +0 -9
  31. package/dist/types/src/factories/UserFactory.d.ts +0 -8
  32. package/dist/types/src/factories/VisitorFactory.d.ts +0 -9
  33. package/dist/types/src/factories/WorldActivityFactory.d.ts +0 -8
  34. package/dist/types/src/factories/WorldFactory.d.ts +0 -8
  35. package/dist/types/src/factories/index.d.ts +0 -7
  36. package/dist/types/src/index.d.ts +0 -4
  37. package/dist/types/src/interfaces/AssetInterfaces.d.ts +0 -26
  38. package/dist/types/src/interfaces/DroppedAssetInterfaces.d.ts +0 -104
  39. package/dist/types/src/interfaces/SDKInterfaces.d.ts +0 -8
  40. package/dist/types/src/interfaces/SceneInterfaces.d.ts +0 -27
  41. package/dist/types/src/interfaces/TopiaInterfaces.d.ts +0 -10
  42. package/dist/types/src/interfaces/UserInterfaces.d.ts +0 -7
  43. package/dist/types/src/interfaces/VisitorInterfaces.d.ts +0 -37
  44. package/dist/types/src/interfaces/WorldActivityInterfaces.d.ts +0 -11
  45. package/dist/types/src/interfaces/WorldInterfaces.d.ts +0 -32
  46. package/dist/types/src/interfaces/index.d.ts +0 -9
  47. package/dist/types/src/types/DroppedAssetTypes.d.ts +0 -10
  48. package/dist/types/src/types/InteractiveCredentialsTypes.d.ts +0 -9
  49. package/dist/types/src/types/OptionsTypes.d.ts +0 -21
  50. package/dist/types/src/types/ResponseTypes.d.ts +0 -4
  51. package/dist/types/src/types/VisitorTypes.d.ts +0 -33
  52. package/dist/types/src/types/index.d.ts +0 -5
  53. package/dist/types/src/utils/__tests__/removeUndefined.test.d.ts +0 -1
  54. package/dist/types/src/utils/__tests__/scatterVisitors.test.d.ts +0 -1
  55. package/dist/types/src/utils/getBrowserWarning.d.ts +0 -1
  56. package/dist/types/src/utils/index.d.ts +0 -3
  57. package/dist/types/src/utils/removeUndefined.d.ts +0 -8
  58. package/dist/types/src/utils/scatterVisitors.d.ts +0 -4
@@ -1,112 +0,0 @@
1
- import { Asset } from "controllers/Asset";
2
- import { Scene } from "controllers/Scene";
3
- import { SDKController } from "controllers/SDKController";
4
- import { Topia } from "controllers/Topia";
5
- import { World } from "controllers/World";
6
- import { UserOptionalInterface } from "interfaces";
7
- import { ResponseType } from "types";
8
- /**
9
- * @summary
10
- * Create an instance of User class with optional session credentials.
11
- *
12
- * @usage
13
- * ```ts
14
- * await new User(topia, { interactiveNonce: "exampleNonce", interactivePublicKey: "examplePublicKey", visitorId: 1 });
15
- * ```
16
- */
17
- export declare class User extends SDKController {
18
- #private;
19
- profileId?: string | null;
20
- dataObject?: object;
21
- profile?: object;
22
- constructor(topia: Topia, options?: UserOptionalInterface);
23
- get assets(): {
24
- [key: string]: Asset;
25
- };
26
- get scenes(): {
27
- [key: string]: Scene;
28
- };
29
- get worlds(): {
30
- [key: string]: World;
31
- };
32
- /**
33
- * @summary
34
- * Returns all assets owned by User when an email address is provided.
35
- */
36
- fetchAssets(): Promise<void | ResponseType>;
37
- /**
38
- * @summary
39
- * Returns all scenes owned by User
40
- */
41
- fetchScenes(): Promise<void | ResponseType>;
42
- /**
43
- * @summary
44
- * Retrieves all worlds owned by user with matching API Key,
45
- * creates a new World object for each,
46
- * and creates new map of Worlds accessible via user.worlds.
47
- *
48
- * @usage
49
- * ```ts
50
- * await user.fetchWorldsByKey();
51
- * const userWorlds = user.worlds;
52
- * ```
53
- *
54
- * @result
55
- * ```ts
56
- * { urlSlug: new World({ apiKey, worldArgs, urlSlug }) }
57
- * ```
58
- */
59
- fetchWorldsByKey(): Promise<void | ResponseType>;
60
- /**
61
- * @summary
62
- * Retrieves the data object for a visitor.
63
- *
64
- * @usage
65
- * ```ts
66
- * await droppedAsset.fetchUserDataObject();
67
- * const { dataObject } = droppedAsset;
68
- * ```
69
- */
70
- fetchUserDataObject(): Promise<void | ResponseType>;
71
- /**
72
- * @summary
73
- * Sets the data object for a visitor.
74
- *
75
- * Optionally, a lock can be provided with this request to ensure only one update happens at a time between all updates that share the same lock id
76
- *
77
- * @usage
78
- * ```ts
79
- * await droppedAsset.setUserDataObject({
80
- * "exampleKey": "exampleValue",
81
- * });
82
- * const { dataObject } = droppedAsset;
83
- * ```
84
- */
85
- setUserDataObject(dataObject: object, options?: {
86
- lock?: {
87
- lockId: string;
88
- releaseLock?: boolean;
89
- };
90
- }): Promise<void | ResponseType>;
91
- /**
92
- * @summary
93
- * Updates the data object for a visitor.
94
- *
95
- * Optionally, a lock can be provided with this request to ensure only one update happens at a time between all updates that share the same lock id
96
- *
97
- * @usage
98
- * ```ts
99
- * await droppedAsset.updateUserDataObject({
100
- * "exampleKey": "exampleValue",
101
- * });
102
- * const { dataObject } = droppedAsset;
103
- * ```
104
- */
105
- updateUserDataObject(dataObject: object, options?: {
106
- lock?: {
107
- lockId: string;
108
- releaseLock?: boolean;
109
- };
110
- }): Promise<void | ResponseType>;
111
- }
112
- export default User;
@@ -1,102 +0,0 @@
1
- import { Topia } from "controllers/Topia";
2
- import { User } from "controllers/User";
3
- import { MoveVisitorInterface, VisitorInterface, VisitorOptionalInterface } from "interfaces";
4
- import { ResponseType } from "types";
5
- /**
6
- * @summary
7
- * Create an instance of Visitor class with a given id and optional attributes and session credentials.
8
- *
9
- * @usage
10
- * ```ts
11
- * await new Visitor(topia, id, urlSlug, { attributes: { moveTo: { x: 0, y: 0 } } });
12
- * ```
13
- */
14
- export declare class Visitor extends User implements VisitorInterface {
15
- readonly id: number;
16
- urlSlug: string;
17
- user?: User;
18
- profile?: any;
19
- constructor(topia: Topia, id: number, urlSlug: string, options?: VisitorOptionalInterface);
20
- /**
21
- * @summary
22
- * Get a single visitor from a world
23
- *
24
- * @usage
25
- * ```ts
26
- * await visitor.fetchVisitor();
27
- * ```
28
- *
29
- * @result
30
- * Returns details for a visitor in a world by id and urlSlug
31
- */
32
- fetchVisitor(): Promise<void | ResponseType>;
33
- /**
34
- * @summary
35
- * Teleport or walk a visitor currently in a world to a single set of coordinates.
36
- *
37
- * @usage
38
- * ```ts
39
- * await visitor.moveVisitor({
40
- * shouldTeleportVisitor: true,
41
- * x: 100,
42
- * y: 100,
43
- * });
44
- * ```
45
- *
46
- * @result
47
- * Updates each Visitor instance and world.visitors map.
48
- */
49
- moveVisitor({ shouldTeleportVisitor, x, y }: MoveVisitorInterface): Promise<void | ResponseType>;
50
- /**
51
- * @summary
52
- * Retrieves the data object for a visitor.
53
- *
54
- * @usage
55
- * ```ts
56
- * await droppedAsset.fetchVisitorDataObject();
57
- * const { dataObject } = droppedAsset;
58
- * ```
59
- */
60
- fetchVisitorDataObject(): Promise<void | ResponseType>;
61
- /**
62
- * @summary
63
- * Sets the data object for a visitor.
64
- *
65
- * Optionally, a lock can be provided with this request to ensure only one update happens at a time between all updates that share the same lock id
66
- *
67
- * @usage
68
- * ```ts
69
- * await droppedAsset.setVisitorDataObject({
70
- * "exampleKey": "exampleValue",
71
- * });
72
- * const { dataObject } = droppedAsset;
73
- * ```
74
- */
75
- setVisitorDataObject(dataObject: object, options?: {
76
- lock?: {
77
- lockId: string;
78
- releaseLock?: boolean;
79
- };
80
- }): Promise<void | ResponseType>;
81
- /**
82
- * @summary
83
- * Updates the data object for a visitor.
84
- *
85
- * Optionally, a lock can be provided with this request to ensure only one update happens at a time between all updates that share the same lock id
86
- *
87
- * @usage
88
- * ```ts
89
- * await droppedAsset.updateVisitorDataObject({
90
- * "exampleKey": "exampleValue",
91
- * });
92
- * const { dataObject } = droppedAsset;
93
- * ```
94
- */
95
- updateVisitorDataObject(dataObject: object, options?: {
96
- lock?: {
97
- lockId: string;
98
- releaseLock?: boolean;
99
- };
100
- }): Promise<void | ResponseType>;
101
- }
102
- export default Visitor;
@@ -1,143 +0,0 @@
1
- import { DroppedAsset } from "controllers/DroppedAsset";
2
- import { SDKController } from "controllers/SDKController";
3
- import { Topia } from "controllers/Topia";
4
- import { WorldInterface, WorldOptionalInterface } from "interfaces";
5
- import { ResponseType } from "types";
6
- /**
7
- * @summary
8
- * Create an instance of World class with a given url slug and optional attributes and session credentials.
9
- *
10
- * @usage
11
- * ```ts
12
- * await new World(topia, "exampleWorld", { attributes: { name: "Example World" } });
13
- * ```
14
- */
15
- export declare class World extends SDKController implements WorldInterface {
16
- #private;
17
- urlSlug: string;
18
- constructor(topia: Topia, urlSlug: string, options?: WorldOptionalInterface);
19
- get droppedAssets(): {
20
- [key: string]: DroppedAsset;
21
- };
22
- /**
23
- * @summary
24
- * Retrieves details of a world.
25
- *
26
- * @usage
27
- * ```ts
28
- * await world.fetchDetails();
29
- * const { name } = world;
30
- * ```
31
- */
32
- fetchDetails(): Promise<void | ResponseType>;
33
- /**
34
- * @summary
35
- * Update details of a world.
36
- *
37
- * @usage
38
- * ```ts
39
- * await world.updateDetails({
40
- * controls: {
41
- * allowMuteAll: true,
42
- * disableHideVideo: true,
43
- * isMobileDisabled: false,
44
- * isShowingCurrentGuests: false,
45
- * },
46
- * description: 'Welcome to my world.',
47
- * forceAuthOnLogin: false,
48
- * height: 2000,
49
- * name: 'Example',
50
- * spawnPosition: { x: 100, y: 100 },
51
- * width: 2000
52
- * });
53
- * ```
54
- */
55
- updateDetails({ controls, description, forceAuthOnLogin, height, name, spawnPosition, width, }: WorldInterface): Promise<void | ResponseType>;
56
- /**
57
- * @summary
58
- * Retrieve all assets dropped in a world.
59
- *
60
- * @usage
61
- * ```ts
62
- * await world.fetchDroppedAssets();
63
- * const assets = world.droppedAssets;
64
- * ```
65
- */
66
- fetchDroppedAssets(): Promise<void | ResponseType>;
67
- /**
68
- * @summary
69
- * Retrieve all assets dropped in a world matching uniqueName.
70
- *
71
- * @usage
72
- * ```ts
73
- * await world.fetchDroppedAssets();
74
- * const assets = world.droppedAssets;
75
- * ```
76
- */
77
- fetchDroppedAssetsWithUniqueName({ uniqueName, isPartial, isReversed, }: {
78
- uniqueName: string;
79
- isPartial?: boolean;
80
- isReversed?: boolean;
81
- }): Promise<DroppedAsset[]>;
82
- /**
83
- * @summary
84
- * Update multiple custom text dropped assets with a single style while preserving text for specified dropped assets only.
85
- *
86
- * @usage
87
- * ```ts
88
- * const droppedAssetsToUpdate = [world.droppedAssets["6"], world.droppedAssets["12"]];
89
- * const style = {
90
- * "textColor": "#abc123",
91
- * "textFontFamily": "Arial",
92
- * "textSize": 40,
93
- * "textWeight": "normal",
94
- * "textWidth": 200
95
- * };
96
- * await world.updateCustomText(droppedAssetsToUpdate, style);
97
- * ```
98
- *
99
- * @result
100
- * Updates each DroppedAsset instance and world.droppedAssets map.
101
- */
102
- updateCustomTextDroppedAssets(droppedAssetsToUpdate: Array<DroppedAsset>, style: object): Promise<object>;
103
- /**
104
- * @summary
105
- * Drop a scene in a world.
106
- *
107
- * @usage
108
- * ```ts
109
- * await world.dropScene({
110
- * "sceneId": "string",
111
- * "position": {
112
- * "x": 0,
113
- * "y": 0
114
- * },
115
- * "assetSuffix": "string"
116
- * });
117
- * ```
118
- */
119
- dropScene({ assetSuffix, position, sceneId, }: {
120
- assetSuffix: string;
121
- position: object;
122
- sceneId: string;
123
- }): Promise<void | ResponseType>;
124
- /**
125
- * @summary
126
- * Replace the current scene of a world.
127
- *
128
- * @usage
129
- * ```ts
130
- * const droppedAssetsToUpdate = [world.droppedAssets["6"], world.droppedAssets["12"]]
131
- * const style = {
132
- * "textColor": "#abc123",
133
- * "textFontFamily": "Arial",
134
- * "textSize": 40,
135
- * "textWeight": "normal",
136
- * "textWidth": 200
137
- * }
138
- * await world.replaceScene(SCENE_ID);
139
- * ```
140
- */
141
- replaceScene(sceneId: string): Promise<void | ResponseType>;
142
- }
143
- export default World;
@@ -1,83 +0,0 @@
1
- import { SDKController } from "controllers/SDKController";
2
- import { Topia } from "controllers/Topia";
3
- import { Visitor } from "controllers/Visitor";
4
- import { MoveAllVisitorsInterface, WorldActivityOptionalInterface } from "interfaces";
5
- import { ResponseType, VisitorsToMoveArrayType } from "types";
6
- /**
7
- * @summary
8
- * Create an instance of WorldActivity class with a given url slug and optional attributes and session credentials.
9
- *
10
- * This class is responsible for all activity of a specified world including editing dropped assets, moving current visitors, etc.
11
- *
12
- * @usage
13
- * ```ts
14
- * await new WorldActivity(topia, "exampleWorld", { attributes: { name: "Example World" } });
15
- * ```
16
- */
17
- export declare class WorldActivity extends SDKController {
18
- #private;
19
- urlSlug: string;
20
- constructor(topia: Topia, urlSlug: string, options?: WorldActivityOptionalInterface);
21
- get visitors(): {
22
- [key: string]: Visitor;
23
- };
24
- private fetchVisitors;
25
- /**
26
- * @summary
27
- * Retrieve all visitors currently in a world.
28
- *
29
- * @usage
30
- * ```ts
31
- * const visitors = await world.currentVisitors();
32
- * ```
33
- */
34
- currentVisitors(): Promise<unknown>;
35
- /**
36
- * @summary
37
- * Move all visitors currently in a world to a single set of coordinates.
38
- * Optionally refetch visitors, teleport or walk visitors to new location,
39
- * and scatter visitors by any number so that they don't all move to the exact same location.
40
- *
41
- * @usage
42
- * ```ts
43
- * await world.moveAllVisitors({
44
- * shouldFetchVisitors: true,
45
- * shouldTeleportVisitors: true,
46
- * scatterVisitorsBy: 40,
47
- * x: 100,
48
- * y: 100,
49
- * });
50
- * ```
51
- *
52
- * @result
53
- * Updates each Visitor instance and world.visitors map.
54
- */
55
- moveAllVisitors({ shouldFetchVisitors, shouldTeleportVisitors, scatterVisitorsBy, x, y, }: MoveAllVisitorsInterface): Promise<(void | ResponseType)[] | undefined>;
56
- /**
57
- * @summary
58
- * Teleport or walk a list of visitors currently in a world to various coordinates.
59
- *
60
- * @usage
61
- * ```ts
62
- * const visitorsToMove = [
63
- * {
64
- * visitorObj: world.visitors["1"],
65
- * shouldTeleportVisitor: true,
66
- * x: 100,
67
- * y: 100
68
- * }, {
69
- * visitorObj: world.visitors["2"],
70
- * shouldTeleportVisitor: false,
71
- * x: 100,
72
- * y: 100
73
- * }
74
- * ];
75
- * await world.moveVisitors(visitorsToMove);
76
- * ```
77
- *
78
- * @result
79
- * Updates each Visitor instance and world.visitors map.
80
- */
81
- moveVisitors(visitorsToMove: VisitorsToMoveArrayType): Promise<(void | ResponseType)[]>;
82
- }
83
- export default WorldActivity;
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,9 +0,0 @@
1
- export { Asset } from "./Asset";
2
- export { DroppedAsset } from "./DroppedAsset";
3
- export { Scene } from "./Scene";
4
- export { SDKController } from "./SDKController";
5
- export { User } from "./User";
6
- export { Visitor } from "./Visitor";
7
- export { World } from "./World";
8
- export { WorldActivity } from "./WorldActivity";
9
- export { Topia } from "./Topia";
@@ -1,8 +0,0 @@
1
- import { Asset, Topia } from "controllers";
2
- import { AssetOptionalInterface } from "interfaces";
3
- export declare class AssetFactory {
4
- topia: Topia;
5
- constructor(topia: Topia);
6
- create(id: string, options?: AssetOptionalInterface): Asset;
7
- }
8
- export default AssetFactory;
@@ -1,16 +0,0 @@
1
- import { DroppedAsset, Topia, Asset, SDKController } from "controllers";
2
- import { DroppedAssetOptionalInterface } from "interfaces";
3
- export declare class DroppedAssetFactory extends SDKController {
4
- constructor(topia: Topia);
5
- create(id: string, urlSlug: string, options?: DroppedAssetOptionalInterface): DroppedAsset;
6
- get(id: string, urlSlug: string, options?: DroppedAssetOptionalInterface): Promise<DroppedAsset>;
7
- drop(asset: Asset, { position: { x, y }, uniqueName, urlSlug, }: {
8
- position: {
9
- x: number;
10
- y: number;
11
- };
12
- uniqueName?: string;
13
- urlSlug: string;
14
- }): Promise<DroppedAsset>;
15
- }
16
- export default DroppedAssetFactory;
@@ -1,9 +0,0 @@
1
- import { Scene, Topia } from "controllers";
2
- import { SceneOptionalInterface } from "interfaces";
3
- export declare class SceneFactory {
4
- topia: Topia;
5
- constructor(topia: Topia);
6
- create(id: string, options?: SceneOptionalInterface): Scene;
7
- get(id: string, options?: SceneOptionalInterface): Promise<Scene>;
8
- }
9
- export default SceneFactory;
@@ -1,8 +0,0 @@
1
- import { Topia, User } from "controllers";
2
- import { UserOptionalInterface } from "interfaces";
3
- export declare class UserFactory {
4
- topia: Topia;
5
- constructor(topia: Topia);
6
- create(options?: UserOptionalInterface): User;
7
- }
8
- export default UserFactory;
@@ -1,9 +0,0 @@
1
- import { Topia, Visitor } from "controllers";
2
- import { VisitorOptionalInterface } from "interfaces";
3
- export declare class VisitorFactory {
4
- topia: Topia;
5
- constructor(topia: Topia);
6
- create(id: number, urlSlug: string, options?: VisitorOptionalInterface): Visitor;
7
- get(id: number, urlSlug: string, options?: VisitorOptionalInterface): Promise<Visitor>;
8
- }
9
- export default VisitorFactory;
@@ -1,8 +0,0 @@
1
- import { Topia, WorldActivity } from "controllers";
2
- import { WorldOptionalInterface } from "interfaces";
3
- export declare class WorldActivityFactory {
4
- topia: Topia;
5
- constructor(topia: Topia);
6
- create(urlSlug: string, options?: WorldOptionalInterface): WorldActivity;
7
- }
8
- export default WorldActivityFactory;
@@ -1,8 +0,0 @@
1
- import { Topia, World } from "controllers";
2
- import { WorldOptionalInterface } from "interfaces";
3
- export declare class WorldFactory {
4
- topia: Topia;
5
- constructor(topia: Topia);
6
- create(urlSlug: string, options?: WorldOptionalInterface): World;
7
- }
8
- export default WorldFactory;
@@ -1,7 +0,0 @@
1
- export { AssetFactory } from "./AssetFactory";
2
- export { DroppedAssetFactory } from "./DroppedAssetFactory";
3
- export { SceneFactory } from "./SceneFactory";
4
- export { UserFactory } from "./UserFactory";
5
- export { VisitorFactory } from "./VisitorFactory";
6
- export { WorldActivityFactory } from "./WorldActivityFactory";
7
- export { WorldFactory } from "./WorldFactory";
@@ -1,4 +0,0 @@
1
- export { Topia } from "controllers";
2
- export { AssetFactory, DroppedAssetFactory, SceneFactory, UserFactory, VisitorFactory, WorldActivityFactory, WorldFactory, } from "factories";
3
- export type { AssetOptions, DroppedAssetClickType, DroppedAssetMediaType, DroppedAssetOptions, InteractiveCredentials, ResponseType, UserOptions, VisitorOptions, VisitorType, VisitorsToMoveType, VisitorsToMoveArrayType, WorldOptions, } from "types";
4
- export * from "interfaces";
@@ -1,26 +0,0 @@
1
- import { InteractiveCredentials } from "types";
2
- import { SDKInterface } from "interfaces/SDKInterfaces";
3
- export interface AssetInterface extends SDKInterface {
4
- fetchPlatformAssets(): Promise<object>;
5
- addedOn?: string;
6
- assetName?: string;
7
- creatorTags?: object;
8
- readonly id?: string;
9
- isPublic?: boolean;
10
- library?: string;
11
- originalAssetId?: string;
12
- originalKit?: string;
13
- ownerId?: string;
14
- ownerName?: string;
15
- platformAsset?: boolean;
16
- purchased?: boolean;
17
- purchaseDate?: string;
18
- purchasedFrom?: string;
19
- specialType?: string | null;
20
- transactionId?: string;
21
- type?: string;
22
- }
23
- export type AssetOptionalInterface = {
24
- attributes?: AssetInterface | object;
25
- credentials?: InteractiveCredentials | object;
26
- };