@rtsdk/topia 0.15.7 → 0.15.8
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 +1 -1
- package/dist/index.d.ts +1 -6
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -42580,7 +42580,7 @@ class DroppedAssetFactory extends SDKController {
|
|
|
42580
42580
|
throw "An apiKey or interactive credentials are required.";
|
|
42581
42581
|
const response = yield this.topiaPublicApi().get(`/world/${urlSlug}/asset-by-unique-name/${uniqueName}`, { headers });
|
|
42582
42582
|
const { id } = response.data;
|
|
42583
|
-
return new DroppedAsset(this.topia, id, urlSlug, { attributes: response.data });
|
|
42583
|
+
return new DroppedAsset(this.topia, id, urlSlug, { attributes: response.data, credentials });
|
|
42584
42584
|
}
|
|
42585
42585
|
catch (error) {
|
|
42586
42586
|
throw this.errorHandler({ error, params, sdkMethod: "DroppedAssetFactory.getWithUniqueName" });
|
package/dist/index.d.ts
CHANGED
|
@@ -2310,12 +2310,7 @@ declare class DroppedAssetFactory extends SDKController {
|
|
|
2310
2310
|
* const droppedAssetInstance = await DroppedAsset.getWithUniqueName("exampleUniqueName", urlSlug, interactiveSecret, credentials);
|
|
2311
2311
|
* ```
|
|
2312
2312
|
*/
|
|
2313
|
-
getWithUniqueName(uniqueName: string, urlSlug: string, interactiveSecret: string, credentials:
|
|
2314
|
-
apiKey?: string;
|
|
2315
|
-
interactiveNonce?: string;
|
|
2316
|
-
interactivePublicKey: string;
|
|
2317
|
-
visitorId?: number;
|
|
2318
|
-
}): Promise<DroppedAsset>;
|
|
2313
|
+
getWithUniqueName(uniqueName: string, urlSlug: string, interactiveSecret: string, credentials: InteractiveCredentials): Promise<DroppedAsset>;
|
|
2319
2314
|
/**
|
|
2320
2315
|
* @summary
|
|
2321
2316
|
* Drops an asset in a world and returns a new instance of DroppedAsset class with all properties.
|
package/dist/index.js
CHANGED
|
@@ -42578,7 +42578,7 @@ class DroppedAssetFactory extends SDKController {
|
|
|
42578
42578
|
throw "An apiKey or interactive credentials are required.";
|
|
42579
42579
|
const response = yield this.topiaPublicApi().get(`/world/${urlSlug}/asset-by-unique-name/${uniqueName}`, { headers });
|
|
42580
42580
|
const { id } = response.data;
|
|
42581
|
-
return new DroppedAsset(this.topia, id, urlSlug, { attributes: response.data });
|
|
42581
|
+
return new DroppedAsset(this.topia, id, urlSlug, { attributes: response.data, credentials });
|
|
42582
42582
|
}
|
|
42583
42583
|
catch (error) {
|
|
42584
42584
|
throw this.errorHandler({ error, params, sdkMethod: "DroppedAssetFactory.getWithUniqueName" });
|
package/package.json
CHANGED