@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 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
@@ -60,5 +60,5 @@
60
60
  "yalc-push": "yarn build && yalc publish --push --dev --no-scripts"
61
61
  },
62
62
  "type": "module",
63
- "version": "0.15.07"
63
+ "version": "0.15.08"
64
64
  }