@rtsdk/topia 0.15.7 → 0.15.9
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/README.md +0 -2
- package/dist/index.cjs +2 -1
- package/dist/index.d.ts +1 -6
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -31,7 +31,6 @@ Topia offers a robust SDK and API that allows anyone to build custom apps or int
|
|
|
31
31
|
- [NPM Package](https://www.npmjs.com/package/@rtsdk/topia)
|
|
32
32
|
- [Demo World](https://topia.io/sdk-demos)
|
|
33
33
|
- [Typescript Boilerplate](https://github.com/metaversecloud-com/sdk-ts-boilerplate)
|
|
34
|
-
- [Javascript Boilerplate](https://github.com/metaversecloud-com/sdk-ts-boilerplate)
|
|
35
34
|
|
|
36
35
|
#### Need inspiration?! Check out the following applications which utilizes the SDK to create new and enhanced features inside [topia.io](https://topia.io/):
|
|
37
36
|
|
|
@@ -117,7 +116,6 @@ A Topia provided API Key can be included with every object initialization as a p
|
|
|
117
116
|
|
|
118
117
|
We have two boilerplates available to help you get started. Pick the one that best suits your needs, clone it, and let the coding begin!
|
|
119
118
|
|
|
120
|
-
- [Javascript](https://github.com/metaversecloud-com/sdk-boilerplate)
|
|
121
119
|
- [Typescript](https://github.com/metaversecloud-com/sdk-ts-boilerplate)
|
|
122
120
|
|
|
123
121
|
Run `yarn add @rtsdk/topia` or `npm install @rtsdk/topia`
|
package/dist/index.cjs
CHANGED
|
@@ -41112,6 +41112,7 @@ class World extends SDKController {
|
|
|
41112
41112
|
return result.data;
|
|
41113
41113
|
}
|
|
41114
41114
|
catch (error) {
|
|
41115
|
+
// TODO: don't throw error if status 409
|
|
41115
41116
|
throw this.errorHandler({ error, params: { type }, sdkMethod: "World.triggerActivity" });
|
|
41116
41117
|
}
|
|
41117
41118
|
});
|
|
@@ -42580,7 +42581,7 @@ class DroppedAssetFactory extends SDKController {
|
|
|
42580
42581
|
throw "An apiKey or interactive credentials are required.";
|
|
42581
42582
|
const response = yield this.topiaPublicApi().get(`/world/${urlSlug}/asset-by-unique-name/${uniqueName}`, { headers });
|
|
42582
42583
|
const { id } = response.data;
|
|
42583
|
-
return new DroppedAsset(this.topia, id, urlSlug, { attributes: response.data });
|
|
42584
|
+
return new DroppedAsset(this.topia, id, urlSlug, { attributes: response.data, credentials });
|
|
42584
42585
|
}
|
|
42585
42586
|
catch (error) {
|
|
42586
42587
|
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
|
@@ -41110,6 +41110,7 @@ class World extends SDKController {
|
|
|
41110
41110
|
return result.data;
|
|
41111
41111
|
}
|
|
41112
41112
|
catch (error) {
|
|
41113
|
+
// TODO: don't throw error if status 409
|
|
41113
41114
|
throw this.errorHandler({ error, params: { type }, sdkMethod: "World.triggerActivity" });
|
|
41114
41115
|
}
|
|
41115
41116
|
});
|
|
@@ -42578,7 +42579,7 @@ class DroppedAssetFactory extends SDKController {
|
|
|
42578
42579
|
throw "An apiKey or interactive credentials are required.";
|
|
42579
42580
|
const response = yield this.topiaPublicApi().get(`/world/${urlSlug}/asset-by-unique-name/${uniqueName}`, { headers });
|
|
42580
42581
|
const { id } = response.data;
|
|
42581
|
-
return new DroppedAsset(this.topia, id, urlSlug, { attributes: response.data });
|
|
42582
|
+
return new DroppedAsset(this.topia, id, urlSlug, { attributes: response.data, credentials });
|
|
42582
42583
|
}
|
|
42583
42584
|
catch (error) {
|
|
42584
42585
|
throw this.errorHandler({ error, params, sdkMethod: "DroppedAssetFactory.getWithUniqueName" });
|
package/package.json
CHANGED