@rtsdk/topia 0.18.0 → 0.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +25 -25
- package/dist/index.js +2 -2
- package/package.json +2 -1
package/dist/index.cjs
CHANGED
|
@@ -43278,7 +43278,7 @@ class Visitor extends User {
|
|
|
43278
43278
|
/**
|
|
43279
43279
|
* Grants an inventory item to this visitor.
|
|
43280
43280
|
*
|
|
43281
|
-
* @param
|
|
43281
|
+
* @param item The ID of the inventory item to grant.
|
|
43282
43282
|
* @param quantity The quantity to grant (default 1).
|
|
43283
43283
|
*
|
|
43284
43284
|
* @example
|
|
@@ -43313,7 +43313,7 @@ class Visitor extends User {
|
|
|
43313
43313
|
/**
|
|
43314
43314
|
* Modifies the quantity of an inventory item in this visitor's inventory.
|
|
43315
43315
|
*
|
|
43316
|
-
* @param
|
|
43316
|
+
* @param item The ID of the inventory item to modify.
|
|
43317
43317
|
* @param quantity The new quantity to set.
|
|
43318
43318
|
*
|
|
43319
43319
|
* @example
|
package/dist/index.d.ts
CHANGED
|
@@ -74,7 +74,7 @@ type DroppedAssetLinkType = {
|
|
|
74
74
|
linkSamlQueryParams?: string;
|
|
75
75
|
};
|
|
76
76
|
|
|
77
|
-
type InteractiveCredentials
|
|
77
|
+
type InteractiveCredentials = {
|
|
78
78
|
apiKey?: string;
|
|
79
79
|
assetId?: string;
|
|
80
80
|
interactiveNonce?: string;
|
|
@@ -88,22 +88,22 @@ type InteractiveCredentials$1 = {
|
|
|
88
88
|
|
|
89
89
|
type AssetOptions = {
|
|
90
90
|
attributes?: AssetInterface | undefined;
|
|
91
|
-
credentials?: InteractiveCredentials
|
|
91
|
+
credentials?: InteractiveCredentials | undefined;
|
|
92
92
|
};
|
|
93
93
|
type DroppedAssetOptions = {
|
|
94
94
|
attributes?: DroppedAssetInterface | undefined;
|
|
95
|
-
credentials?: InteractiveCredentials
|
|
95
|
+
credentials?: InteractiveCredentials | undefined;
|
|
96
96
|
};
|
|
97
97
|
type UserOptions = {
|
|
98
|
-
credentials?: InteractiveCredentials
|
|
98
|
+
credentials?: InteractiveCredentials | undefined;
|
|
99
99
|
};
|
|
100
100
|
type VisitorOptions = {
|
|
101
101
|
attributes?: VisitorInterface | undefined;
|
|
102
|
-
credentials?: InteractiveCredentials
|
|
102
|
+
credentials?: InteractiveCredentials | undefined;
|
|
103
103
|
};
|
|
104
104
|
type WorldOptions = {
|
|
105
105
|
attributes?: WorldDetailsInterface | undefined;
|
|
106
|
-
credentials?: InteractiveCredentials
|
|
106
|
+
credentials?: InteractiveCredentials | undefined;
|
|
107
107
|
};
|
|
108
108
|
|
|
109
109
|
type ResponseType$1 = {
|
|
@@ -2055,7 +2055,7 @@ declare class Visitor extends User implements VisitorInterface {
|
|
|
2055
2055
|
/**
|
|
2056
2056
|
* Grants an inventory item to this visitor.
|
|
2057
2057
|
*
|
|
2058
|
-
* @param
|
|
2058
|
+
* @param item The ID of the inventory item to grant.
|
|
2059
2059
|
* @param quantity The quantity to grant (default 1).
|
|
2060
2060
|
*
|
|
2061
2061
|
* @example
|
|
@@ -2069,7 +2069,7 @@ declare class Visitor extends User implements VisitorInterface {
|
|
|
2069
2069
|
/**
|
|
2070
2070
|
* Modifies the quantity of an inventory item in this visitor's inventory.
|
|
2071
2071
|
*
|
|
2072
|
-
* @param
|
|
2072
|
+
* @param item The ID of the inventory item to modify.
|
|
2073
2073
|
* @param quantity The new quantity to set.
|
|
2074
2074
|
*
|
|
2075
2075
|
* @example
|
|
@@ -2122,7 +2122,7 @@ declare enum WorldActivityType {
|
|
|
2122
2122
|
}
|
|
2123
2123
|
|
|
2124
2124
|
interface SDKInterface {
|
|
2125
|
-
credentials?: InteractiveCredentials
|
|
2125
|
+
credentials?: InteractiveCredentials;
|
|
2126
2126
|
jwt?: string;
|
|
2127
2127
|
requestOptions: object;
|
|
2128
2128
|
topia: Topia;
|
|
@@ -2159,7 +2159,7 @@ interface AssetInterface extends SDKInterface {
|
|
|
2159
2159
|
}
|
|
2160
2160
|
type AssetOptionalInterface = {
|
|
2161
2161
|
attributes?: AssetInterface | object;
|
|
2162
|
-
credentials?: InteractiveCredentials
|
|
2162
|
+
credentials?: InteractiveCredentials;
|
|
2163
2163
|
};
|
|
2164
2164
|
|
|
2165
2165
|
interface DroppedAssetInterface extends AssetInterface {
|
|
@@ -2281,7 +2281,7 @@ interface DroppedAssetOptionalInterface {
|
|
|
2281
2281
|
text?: string;
|
|
2282
2282
|
urlSlug?: string;
|
|
2283
2283
|
};
|
|
2284
|
-
credentials?: InteractiveCredentials
|
|
2284
|
+
credentials?: InteractiveCredentials | object;
|
|
2285
2285
|
}
|
|
2286
2286
|
interface UpdateBroadcastInterface {
|
|
2287
2287
|
assetBroadcast?: boolean;
|
|
@@ -2373,7 +2373,7 @@ interface EcosystemInterface {
|
|
|
2373
2373
|
incrementDataObjectValue(path: string, amount: number, options: object): Promise<void | ResponseType$1>;
|
|
2374
2374
|
}
|
|
2375
2375
|
interface EcosystemOptionalInterface {
|
|
2376
|
-
credentials?: InteractiveCredentials
|
|
2376
|
+
credentials?: InteractiveCredentials;
|
|
2377
2377
|
}
|
|
2378
2378
|
|
|
2379
2379
|
interface SceneInterface {
|
|
@@ -2401,7 +2401,7 @@ interface SceneInterface {
|
|
|
2401
2401
|
}
|
|
2402
2402
|
type SceneOptionalInterface = {
|
|
2403
2403
|
attributes?: SceneInterface | object;
|
|
2404
|
-
credentials?: InteractiveCredentials
|
|
2404
|
+
credentials?: InteractiveCredentials;
|
|
2405
2405
|
};
|
|
2406
2406
|
|
|
2407
2407
|
interface FireToastInterface {
|
|
@@ -2444,7 +2444,7 @@ interface UserInterface {
|
|
|
2444
2444
|
dataObject?: object | null;
|
|
2445
2445
|
}
|
|
2446
2446
|
interface UserOptionalInterface {
|
|
2447
|
-
credentials?: InteractiveCredentials
|
|
2447
|
+
credentials?: InteractiveCredentials;
|
|
2448
2448
|
profileId?: string | null;
|
|
2449
2449
|
visitorId?: number | null;
|
|
2450
2450
|
urlSlug?: string;
|
|
@@ -2515,7 +2515,7 @@ interface VisitorInterface extends SDKInterface {
|
|
|
2515
2515
|
}
|
|
2516
2516
|
interface VisitorOptionalInterface {
|
|
2517
2517
|
attributes?: VisitorInterface | object;
|
|
2518
|
-
credentials?: InteractiveCredentials
|
|
2518
|
+
credentials?: InteractiveCredentials;
|
|
2519
2519
|
}
|
|
2520
2520
|
interface MoveVisitorInterface {
|
|
2521
2521
|
shouldTeleportVisitor: boolean;
|
|
@@ -2548,12 +2548,12 @@ interface WebRTCConnectorInterface {
|
|
|
2548
2548
|
getTwilioConfig(): Promise<void | ResponseType$1>;
|
|
2549
2549
|
}
|
|
2550
2550
|
interface WebRTCConnectorOptionalInterface {
|
|
2551
|
-
credentials?: InteractiveCredentials
|
|
2551
|
+
credentials?: InteractiveCredentials;
|
|
2552
2552
|
twilioConfig?: object;
|
|
2553
2553
|
}
|
|
2554
2554
|
|
|
2555
2555
|
interface WorldActivityOptionalInterface {
|
|
2556
|
-
credentials?: InteractiveCredentials
|
|
2556
|
+
credentials?: InteractiveCredentials;
|
|
2557
2557
|
}
|
|
2558
2558
|
interface MoveAllVisitorsInterface {
|
|
2559
2559
|
shouldFetchVisitors?: boolean;
|
|
@@ -2643,13 +2643,13 @@ interface WorldInterface extends SDKInterface, WorldDetailsInterface {
|
|
|
2643
2643
|
}
|
|
2644
2644
|
interface WorldOptionalInterface {
|
|
2645
2645
|
attributes?: WorldDetailsInterface | object;
|
|
2646
|
-
credentials?: InteractiveCredentials
|
|
2646
|
+
credentials?: InteractiveCredentials;
|
|
2647
2647
|
}
|
|
2648
2648
|
interface WorldWebhooksInterface {
|
|
2649
2649
|
webhooks: Array<WebhookInterface>;
|
|
2650
2650
|
}
|
|
2651
2651
|
|
|
2652
|
-
type InteractiveCredentials = {
|
|
2652
|
+
type InteractiveCredentials$1 = {
|
|
2653
2653
|
apiKey?: string;
|
|
2654
2654
|
assetId?: string;
|
|
2655
2655
|
interactiveNonce?: string;
|
|
@@ -2678,7 +2678,7 @@ interface InventoryItemInterface extends SDKInterface {
|
|
|
2678
2678
|
}
|
|
2679
2679
|
type InventoryItemOptionalInterface = {
|
|
2680
2680
|
attributes?: InventoryItemInterface | object;
|
|
2681
|
-
credentials?: InteractiveCredentials;
|
|
2681
|
+
credentials?: InteractiveCredentials$1;
|
|
2682
2682
|
};
|
|
2683
2683
|
|
|
2684
2684
|
/**
|
|
@@ -2696,7 +2696,7 @@ interface UserInventoryItemInterface extends InventoryItemInterface {
|
|
|
2696
2696
|
}
|
|
2697
2697
|
type UserInventoryItemOptionalInterface = {
|
|
2698
2698
|
attributes?: UserInventoryItemInterface | object;
|
|
2699
|
-
credentials?: InteractiveCredentials;
|
|
2699
|
+
credentials?: InteractiveCredentials$1;
|
|
2700
2700
|
};
|
|
2701
2701
|
|
|
2702
2702
|
/**
|
|
@@ -2752,11 +2752,11 @@ declare class Topia implements TopiaInterface {
|
|
|
2752
2752
|
* ```
|
|
2753
2753
|
*/
|
|
2754
2754
|
declare abstract class SDKController implements SDKInterface {
|
|
2755
|
-
credentials: InteractiveCredentials
|
|
2755
|
+
credentials: InteractiveCredentials | undefined;
|
|
2756
2756
|
jwt?: string;
|
|
2757
2757
|
requestOptions: object;
|
|
2758
2758
|
topia: Topia;
|
|
2759
|
-
constructor(topia: Topia, credentials?: InteractiveCredentials
|
|
2759
|
+
constructor(topia: Topia, credentials?: InteractiveCredentials);
|
|
2760
2760
|
topiaPublicApi(): axios.AxiosInstance;
|
|
2761
2761
|
errorHandler({ error, message, params, sdkMethod, }: {
|
|
2762
2762
|
error?: Error | AxiosError | unknown;
|
|
@@ -3336,7 +3336,7 @@ declare class DroppedAssetFactory extends SDKController {
|
|
|
3336
3336
|
*
|
|
3337
3337
|
* @returns {Promise<DroppedAsset>} Returns a new DroppedAsset object with all properties already fetched.
|
|
3338
3338
|
*/
|
|
3339
|
-
getWithUniqueName(uniqueName: string, urlSlug: string, interactiveSecret: string, credentials: InteractiveCredentials
|
|
3339
|
+
getWithUniqueName(uniqueName: string, urlSlug: string, interactiveSecret: string, credentials: InteractiveCredentials): Promise<DroppedAsset>;
|
|
3340
3340
|
/**
|
|
3341
3341
|
* Drops an asset in a world and returns a new instance of DroppedAsset class with all properties.
|
|
3342
3342
|
*
|
|
@@ -3918,4 +3918,4 @@ declare class WorldFactory extends SDKController {
|
|
|
3918
3918
|
}>;
|
|
3919
3919
|
}
|
|
3920
3920
|
|
|
3921
|
-
export { AnalyticType, AnimationMetaType, Asset, AssetFactory, AssetInterface, AssetOptionalInterface, AssetOptions, AssetType, DroppedAsset, DroppedAssetClickType, DroppedAssetFactory, DroppedAssetInterface, DroppedAssetLinkType, DroppedAssetMediaType, DroppedAssetMediaVolumeRadius, DroppedAssetOptionalInterface, DroppedAssetOptions, Ecosystem, EcosystemFactory, EcosystemInterface, EcosystemOptionalInterface, FireToastInterface, FrameType, InteractiveCredentials
|
|
3921
|
+
export { AnalyticType, AnimationMetaType, Asset, AssetFactory, AssetInterface, AssetOptionalInterface, AssetOptions, AssetType, DroppedAsset, DroppedAssetClickType, DroppedAssetFactory, DroppedAssetInterface, DroppedAssetLinkType, DroppedAssetMediaType, DroppedAssetMediaVolumeRadius, DroppedAssetOptionalInterface, DroppedAssetOptions, Ecosystem, EcosystemFactory, EcosystemInterface, EcosystemOptionalInterface, FireToastInterface, FrameType, InteractiveCredentials, InventoryItemInterface, InventoryItemOptionalInterface, MoveAllVisitorsInterface, MoveVisitorInterface, OpenIframeInterface, RemoveClickableLinkInterface, ResponseType$1 as ResponseType, SDKController, SDKInterface, Scene, SceneFactory, SceneInterface, SceneOptionalInterface, SetClickableLinkMultiInterface, Topia, TopiaInterface, UpdateBroadcastInterface, UpdateClickTypeInterface, UpdateClickableLinkMultiInterface, UpdateDroppedAssetInterface, UpdateMediaTypeInterface, UpdatePrivateZoneInterface, User, UserFactory, UserInterface, UserInventoryItemInterface, UserInventoryItemOptionalInterface, UserOptionalInterface, UserOptions, Visitor, VisitorFactory, VisitorInterface, VisitorOptionalInterface, VisitorOptions, VisitorType, VisitorsToMoveArrayType, VisitorsToMoveType, WebRTCConnector, WebRTCConnectorFactory, WebRTCConnectorInterface, WebRTCConnectorOptionalInterface, WebhookInterface, World, WorldActivity, WorldActivityFactory, WorldActivityOptionalInterface, WorldActivityType, WorldDetailsInterface, WorldFactory, WorldInterface, WorldOptionalInterface, WorldOptions, WorldWebhooksInterface };
|
package/dist/index.js
CHANGED
|
@@ -43276,7 +43276,7 @@ class Visitor extends User {
|
|
|
43276
43276
|
/**
|
|
43277
43277
|
* Grants an inventory item to this visitor.
|
|
43278
43278
|
*
|
|
43279
|
-
* @param
|
|
43279
|
+
* @param item The ID of the inventory item to grant.
|
|
43280
43280
|
* @param quantity The quantity to grant (default 1).
|
|
43281
43281
|
*
|
|
43282
43282
|
* @example
|
|
@@ -43311,7 +43311,7 @@ class Visitor extends User {
|
|
|
43311
43311
|
/**
|
|
43312
43312
|
* Modifies the quantity of an inventory item in this visitor's inventory.
|
|
43313
43313
|
*
|
|
43314
|
-
* @param
|
|
43314
|
+
* @param item The ID of the inventory item to modify.
|
|
43315
43315
|
* @param quantity The new quantity to set.
|
|
43316
43316
|
*
|
|
43317
43317
|
* @example
|
package/package.json
CHANGED
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"rollup-plugin-typescript2": "^0.34.1",
|
|
28
28
|
"ts-jest": "^29.0.3",
|
|
29
29
|
"typedoc": "^0.28.8",
|
|
30
|
+
"typedoc-plugin-frontmatter": "^1.3.0",
|
|
30
31
|
"typescript": "^5.0.4",
|
|
31
32
|
"yalc": "^1.0.0-pre.53"
|
|
32
33
|
},
|
|
@@ -60,5 +61,5 @@
|
|
|
60
61
|
"yalc-push": "yarn build && yalc publish --push --dev --no-scripts"
|
|
61
62
|
},
|
|
62
63
|
"type": "module",
|
|
63
|
-
"version": "0.18.
|
|
64
|
+
"version": "0.18.01"
|
|
64
65
|
}
|