@rtsdk/topia 0.16.0 → 0.16.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 CHANGED
@@ -39988,12 +39988,12 @@ class DroppedAsset extends Asset {
39988
39988
  * const dataObject = await droppedAsset.fetchDataObject();
39989
39989
  * ```
39990
39990
  */
39991
- fetchDataObject(appPublicKey, appPublicKeyJWT) {
39991
+ fetchDataObject(appPublicKey, appJWT) {
39992
39992
  return __awaiter(this, void 0, void 0, function* () {
39993
39993
  try {
39994
39994
  let query = "";
39995
39995
  if (appPublicKey)
39996
- query = `?appPublicKey=${appPublicKey}&appPublicKeyJWT=${appPublicKeyJWT}`;
39996
+ query = `?appPublicKey=${appPublicKey}&appJWT=${appJWT}`;
39997
39997
  const response = yield this.topiaPublicApi().get(`/world/${this.urlSlug}/assets/${this.id}/data-object${query}`, this.requestOptions);
39998
39998
  this.dataObject = response.data;
39999
39999
  return response.data;
@@ -40502,12 +40502,12 @@ class Ecosystem extends SDKController {
40502
40502
  * const dataObject = await ecosystem.fetchDataObject("exampleAppPublicKey", "exampleAppPublicKeyJWT");
40503
40503
  * ```
40504
40504
  */
40505
- fetchDataObject(appPublicKey, appPublicKeyJWT) {
40505
+ fetchDataObject(appPublicKey, appJWT) {
40506
40506
  return __awaiter(this, void 0, void 0, function* () {
40507
40507
  try {
40508
40508
  let query = "";
40509
40509
  if (appPublicKey)
40510
- query = `?appPublicKey=${appPublicKey}&appPublicKeyJWT=${appPublicKeyJWT}`;
40510
+ query = `?appPublicKey=${appPublicKey}&appJWT=${appJWT}`;
40511
40511
  const response = yield this.topiaPublicApi().get(`/ecosystem/data-object${query}`, this.requestOptions);
40512
40512
  this.dataObject = response.data;
40513
40513
  return response.data;
@@ -40526,8 +40526,8 @@ class Ecosystem extends SDKController {
40526
40526
  * @usage
40527
40527
  * ```ts
40528
40528
  * await ecosystem.setDataObject({ "exampleKey": "exampleValue" }, {
40529
- * appPublicKey: "exampleAppPublicKey",
40530
- * appPublicKeyJWT: "exampleAppPublicKeyJWT",}
40529
+ * sharedAppPublicKey: "exampleAppPublicKey",
40530
+ * sharedAppJWT: "exampleAppPublicKeyJWT",}
40531
40531
  * });
40532
40532
  * ```
40533
40533
  */
@@ -40551,8 +40551,8 @@ class Ecosystem extends SDKController {
40551
40551
  * @usage
40552
40552
  * ```ts
40553
40553
  * await ecosystem.updateDataObject({ "exampleKey": "exampleValue" }, {
40554
- * appPublicKey: "exampleAppPublicKey",
40555
- * appPublicKeyJWT: "exampleAppPublicKeyJWT",}
40554
+ * sharedAppPublicKey: "exampleAppPublicKey",
40555
+ * sharedAppJWT: "exampleAppPublicKeyJWT",}
40556
40556
  * });
40557
40557
  * ```
40558
40558
  */
@@ -40576,8 +40576,8 @@ class Ecosystem extends SDKController {
40576
40576
  * @usage
40577
40577
  * ```ts
40578
40578
  * await ecosystem.incrementDataObjectValue("key", 1, {
40579
- * appPublicKey: "exampleAppPublicKey",
40580
- * appPublicKeyJWT: "exampleAppPublicKeyJWT",}
40579
+ * sharedAppPublicKey: "exampleAppPublicKey",
40580
+ * sharedAppJWT: "exampleAppPublicKeyJWT",}
40581
40581
  * });
40582
40582
  * ```
40583
40583
  */
@@ -40705,11 +40705,11 @@ class World extends SDKController {
40705
40705
  * const { dataObject } = world;
40706
40706
  * ```
40707
40707
  */
40708
- this.fetchDataObject = (appPublicKey, appPublicKeyJWT) => __awaiter(this, void 0, void 0, function* () {
40708
+ this.fetchDataObject = (appPublicKey, appJWT) => __awaiter(this, void 0, void 0, function* () {
40709
40709
  try {
40710
40710
  let query = "";
40711
40711
  if (appPublicKey)
40712
- query = `?appPublicKey=${appPublicKey}&appPublicKeyJWT=${appPublicKeyJWT}`;
40712
+ query = `?appPublicKey=${appPublicKey}&appJWT=${appJWT}`;
40713
40713
  const response = yield this.topiaPublicApi().get(`/world/${this.urlSlug}/get-data-object${query}`, this.requestOptions);
40714
40714
  this.dataObject = response.data;
40715
40715
  return response.data;
@@ -41845,14 +41845,14 @@ class User extends SDKController {
41845
41845
  * const dataObject = await user.fetchDataObject();
41846
41846
  * ```
41847
41847
  */
41848
- fetchDataObject(appPublicKey, appPublicKeyJWT) {
41848
+ fetchDataObject(appPublicKey, appJWT) {
41849
41849
  return __awaiter(this, void 0, void 0, function* () {
41850
41850
  try {
41851
41851
  if (!this.profileId)
41852
41852
  throw "This method requires the use of a profileId";
41853
41853
  let query = "";
41854
41854
  if (appPublicKey)
41855
- query = `?appPublicKey=${appPublicKey}&appPublicKeyJWT=${appPublicKeyJWT}`;
41855
+ query = `?appPublicKey=${appPublicKey}&appJWT=${appJWT}`;
41856
41856
  const response = yield this.topiaPublicApi().get(`/user/dataObjects/${this.profileId}/get-data-object${query}`, this.requestOptions);
41857
41857
  this.dataObject = response.data;
41858
41858
  return response.data;
@@ -42245,12 +42245,12 @@ class Visitor extends User {
42245
42245
  * const dataObject = await visitor.fetchDataObject();
42246
42246
  * ```
42247
42247
  */
42248
- fetchDataObject(appPublicKey, appPublicKeyJWT) {
42248
+ fetchDataObject(appPublicKey, appJWT) {
42249
42249
  return __awaiter(this, void 0, void 0, function* () {
42250
42250
  try {
42251
42251
  let query = "";
42252
42252
  if (appPublicKey)
42253
- query = `?appPublicKey=${appPublicKey}&appPublicKeyJWT=${appPublicKeyJWT}`;
42253
+ query = `?appPublicKey=${appPublicKey}&appJWT=${appJWT}`;
42254
42254
  const response = yield this.topiaPublicApi().get(`/world/${this.urlSlug}/visitors/${this.id}/get-data-object${query}`, this.requestOptions);
42255
42255
  this.dataObject = response.data;
42256
42256
  return response.data;
package/dist/index.d.ts CHANGED
@@ -213,7 +213,7 @@ declare class DroppedAsset extends Asset implements DroppedAssetInterface {
213
213
  * const dataObject = await droppedAsset.fetchDataObject();
214
214
  * ```
215
215
  */
216
- fetchDataObject(appPublicKey?: string, appPublicKeyJWT?: string): Promise<void | ResponseType$1>;
216
+ fetchDataObject(appPublicKey?: string, appJWT?: string): Promise<void | ResponseType$1>;
217
217
  /**
218
218
  * @summary
219
219
  * Sets the data object for a dropped asset.
@@ -228,8 +228,8 @@ declare class DroppedAsset extends Asset implements DroppedAssetInterface {
228
228
  * ```
229
229
  */
230
230
  setDataObject(dataObject: object, options?: {
231
- appPublicKey?: string;
232
- appPublicKeyJWT?: string;
231
+ sharedAppPublicKey?: string;
232
+ sharedAppJWT?: string;
233
233
  analytics?: AnalyticType[];
234
234
  lock?: {
235
235
  lockId: string;
@@ -250,8 +250,8 @@ declare class DroppedAsset extends Asset implements DroppedAssetInterface {
250
250
  * ```
251
251
  */
252
252
  updateDataObject(dataObject: object, options?: {
253
- appPublicKey?: string;
254
- appPublicKeyJWT?: string;
253
+ sharedAppPublicKey?: string;
254
+ sharedAppJWT?: string;
255
255
  analytics?: AnalyticType[];
256
256
  lock?: {
257
257
  lockId: string;
@@ -270,8 +270,8 @@ declare class DroppedAsset extends Asset implements DroppedAssetInterface {
270
270
  * ```
271
271
  */
272
272
  incrementDataObjectValue(path: string, amount: number, options?: {
273
- appPublicKey?: string;
274
- appPublicKeyJWT?: string;
273
+ sharedAppPublicKey?: string;
274
+ sharedAppJWT?: string;
275
275
  analytics?: AnalyticType[];
276
276
  lock?: {
277
277
  lockId: string;
@@ -827,7 +827,7 @@ declare class World extends SDKController implements WorldInterface {
827
827
  * const { dataObject } = world;
828
828
  * ```
829
829
  */
830
- fetchDataObject: (appPublicKey?: string, appPublicKeyJWT?: string) => Promise<void | ResponseType$1>;
830
+ fetchDataObject: (appPublicKey?: string, appJWT?: string) => Promise<void | ResponseType$1>;
831
831
  /**
832
832
  * @summary
833
833
  * Sets the data object for a user. Must have valid interactive credentials from a visitor in the world.
@@ -843,8 +843,8 @@ declare class World extends SDKController implements WorldInterface {
843
843
  * ```
844
844
  */
845
845
  setDataObject: (dataObject: object | null | undefined, options?: {
846
- appPublicKey?: string;
847
- appPublicKeyJWT?: string;
846
+ sharedAppPublicKey?: string;
847
+ sharedAppJWT?: string;
848
848
  analytics?: AnalyticType[];
849
849
  lock?: {
850
850
  lockId: string;
@@ -866,8 +866,8 @@ declare class World extends SDKController implements WorldInterface {
866
866
  * ```
867
867
  */
868
868
  updateDataObject: (dataObject: object, options?: {
869
- appPublicKey?: string;
870
- appPublicKeyJWT?: string;
869
+ sharedAppPublicKey?: string;
870
+ sharedAppJWT?: string;
871
871
  analytics?: AnalyticType[];
872
872
  lock?: {
873
873
  lockId: string;
@@ -886,8 +886,8 @@ declare class World extends SDKController implements WorldInterface {
886
886
  * ```
887
887
  */
888
888
  incrementDataObjectValue(path: string, amount: number, options?: {
889
- appPublicKey?: string;
890
- appPublicKeyJWT?: string;
889
+ sharedAppPublicKey?: string;
890
+ sharedAppJWT?: string;
891
891
  analytics?: AnalyticType[];
892
892
  lock?: {
893
893
  lockId: string;
@@ -1238,7 +1238,7 @@ declare class User extends SDKController implements UserInterface {
1238
1238
  * const dataObject = await user.fetchDataObject();
1239
1239
  * ```
1240
1240
  */
1241
- fetchDataObject(appPublicKey?: string, appPublicKeyJWT?: string): Promise<void | ResponseType$1>;
1241
+ fetchDataObject(appPublicKey?: string, appJWT?: string): Promise<void | ResponseType$1>;
1242
1242
  /**
1243
1243
  * @summary
1244
1244
  * Sets the data object for a user.
@@ -1253,8 +1253,8 @@ declare class User extends SDKController implements UserInterface {
1253
1253
  * ```
1254
1254
  */
1255
1255
  setDataObject(dataObject: object | null | undefined, options?: {
1256
- appPublicKey?: string;
1257
- appPublicKeyJWT?: string;
1256
+ sharedAppPublicKey?: string;
1257
+ sharedAppJWT?: string;
1258
1258
  analytics?: AnalyticType[];
1259
1259
  lock?: {
1260
1260
  lockId: string;
@@ -1275,8 +1275,8 @@ declare class User extends SDKController implements UserInterface {
1275
1275
  * ```
1276
1276
  */
1277
1277
  updateDataObject(dataObject: object, options?: {
1278
- appPublicKey?: string;
1279
- appPublicKeyJWT?: string;
1278
+ sharedAppPublicKey?: string;
1279
+ sharedAppJWT?: string;
1280
1280
  analytics?: AnalyticType[];
1281
1281
  lock?: {
1282
1282
  lockId: string;
@@ -1295,8 +1295,8 @@ declare class User extends SDKController implements UserInterface {
1295
1295
  * ```
1296
1296
  */
1297
1297
  incrementDataObjectValue(path: string, amount: number, options?: {
1298
- appPublicKey?: string;
1299
- appPublicKeyJWT?: string;
1298
+ sharedAppPublicKey?: string;
1299
+ sharedAppJWT?: string;
1300
1300
  analytics?: AnalyticType[];
1301
1301
  lock?: {
1302
1302
  lockId: string;
@@ -1468,7 +1468,7 @@ declare class Visitor extends User implements VisitorInterface {
1468
1468
  * const dataObject = await visitor.fetchDataObject();
1469
1469
  * ```
1470
1470
  */
1471
- fetchDataObject(appPublicKey?: string, appPublicKeyJWT?: string): Promise<void | ResponseType$1>;
1471
+ fetchDataObject(appPublicKey?: string, appJWT?: string): Promise<void | ResponseType$1>;
1472
1472
  /**
1473
1473
  * @summary
1474
1474
  * Sets the data object for a visitor.
@@ -1483,8 +1483,8 @@ declare class Visitor extends User implements VisitorInterface {
1483
1483
  * ```
1484
1484
  */
1485
1485
  setDataObject(dataObject: object | null | undefined, options?: {
1486
- appPublicKey?: string;
1487
- appPublicKeyJWT?: string;
1486
+ sharedAppPublicKey?: string;
1487
+ sharedAppJWT?: string;
1488
1488
  analytics?: AnalyticType[];
1489
1489
  lock?: {
1490
1490
  lockId: string;
@@ -1505,8 +1505,8 @@ declare class Visitor extends User implements VisitorInterface {
1505
1505
  * ```
1506
1506
  */
1507
1507
  updateDataObject(dataObject: object, options?: {
1508
- appPublicKey?: string;
1509
- appPublicKeyJWT?: string;
1508
+ sharedAppPublicKey?: string;
1509
+ sharedAppJWT?: string;
1510
1510
  analytics?: AnalyticType[];
1511
1511
  lock?: {
1512
1512
  lockId: string;
@@ -1525,8 +1525,8 @@ declare class Visitor extends User implements VisitorInterface {
1525
1525
  * ```
1526
1526
  */
1527
1527
  incrementDataObjectValue(path: string, amount: number, options?: {
1528
- appPublicKey?: string;
1529
- appPublicKeyJWT?: string;
1528
+ sharedAppPublicKey?: string;
1529
+ sharedAppJWT?: string;
1530
1530
  analytics?: AnalyticType[];
1531
1531
  lock?: {
1532
1532
  lockId: string;
@@ -1631,7 +1631,7 @@ type AssetOptionalInterface = {
1631
1631
  interface DroppedAssetInterface extends AssetInterface {
1632
1632
  fetchDroppedAssetById(): Promise<void | ResponseType$1>;
1633
1633
  deleteDroppedAsset(): Promise<void | ResponseType$1>;
1634
- fetchDataObject(appPublicKey?: string, appPublicKeyJWT?: string): Promise<void | ResponseType$1>;
1634
+ fetchDataObject(appPublicKey?: string, appJWT?: string): Promise<void | ResponseType$1>;
1635
1635
  setDataObject(dataObject: object, options: object): Promise<void | ResponseType$1>;
1636
1636
  updateDataObject(dataObject: object, options: object): Promise<void | ResponseType$1>;
1637
1637
  incrementDataObjectValue(path: string, amount: number, options: object): Promise<void | ResponseType$1>;
@@ -1794,7 +1794,7 @@ interface UpdatePrivateZoneInterface {
1794
1794
  }
1795
1795
 
1796
1796
  interface EcosystemInterface {
1797
- fetchDataObject(appPublicKey?: string, appPublicKeyJWT?: string): Promise<void | ResponseType$1>;
1797
+ fetchDataObject(appPublicKey?: string, appJWT?: string): Promise<void | ResponseType$1>;
1798
1798
  setDataObject(dataObject: object | null | undefined, options: object): Promise<void | ResponseType$1>;
1799
1799
  updateDataObject(dataObject: object, options: object): Promise<void | ResponseType$1>;
1800
1800
  incrementDataObjectValue(path: string, amount: number, options: object): Promise<void | ResponseType$1>;
@@ -1851,7 +1851,7 @@ interface UserInterface {
1851
1851
  fetchPlatformAssets(): Promise<object | ResponseType$1>;
1852
1852
  fetchScenes(): Promise<void | ResponseType$1>;
1853
1853
  fetchWorldsByKey(): Promise<void | ResponseType$1>;
1854
- fetchDataObject(appPublicKey?: string, appPublicKeyJWT?: string): Promise<void | ResponseType$1>;
1854
+ fetchDataObject(appPublicKey?: string, appJWT?: string): Promise<void | ResponseType$1>;
1855
1855
  setDataObject(dataObject: object | null | undefined, options: object): Promise<void | ResponseType$1>;
1856
1856
  incrementDataObjectValue(path: string, amount: number, options: object): Promise<void | ResponseType$1>;
1857
1857
  dataObject?: object | null;
@@ -1868,7 +1868,7 @@ interface VisitorInterface extends SDKInterface {
1868
1868
  moveVisitor({ shouldTeleportVisitor, x, y }: MoveVisitorInterface): Promise<void | ResponseType$1>;
1869
1869
  fireToast({ groupId, title, text }: FireToastInterface): Promise<void | ResponseType$1>;
1870
1870
  openIframe({ link, shouldOpenInDrawer, title }: OpenIframeInterface): Promise<void | ResponseType$1>;
1871
- fetchDataObject(appPublicKey?: string, appPublicKeyJWT?: string): Promise<void | ResponseType$1>;
1871
+ fetchDataObject(appPublicKey?: string, appJWT?: string): Promise<void | ResponseType$1>;
1872
1872
  setDataObject(dataObject: object | null | undefined, options: object): Promise<void | ResponseType$1>;
1873
1873
  updateDataObject(dataObject: object, options: object): Promise<void | ResponseType$1>;
1874
1874
  incrementDataObjectValue(path: string, amount: number, options: object): Promise<void | ResponseType$1>;
@@ -1995,7 +1995,7 @@ interface WorldInterface extends SDKInterface, WorldDetailsInterface {
1995
1995
  }): Promise<object | ResponseType$1>;
1996
1996
  replaceScene(sceneId: string): Promise<void | ResponseType$1>;
1997
1997
  fireToast({ groupId, title, text }: FireToastInterface): Promise<void | ResponseType$1>;
1998
- fetchDataObject(appPublicKey?: string, appPublicKeyJWT?: string): Promise<void | ResponseType$1>;
1998
+ fetchDataObject(appPublicKey?: string, appJWT?: string): Promise<void | ResponseType$1>;
1999
1999
  setDataObject(dataObject: object | null | undefined, options: object): Promise<void | ResponseType$1>;
2000
2000
  updateDataObject(dataObject: object, options: object): Promise<void | ResponseType$1>;
2001
2001
  incrementDataObjectValue(path: string, amount: number, options: object): Promise<void | ResponseType$1>;
@@ -2167,7 +2167,7 @@ declare class Ecosystem extends SDKController {
2167
2167
  * const dataObject = await ecosystem.fetchDataObject("exampleAppPublicKey", "exampleAppPublicKeyJWT");
2168
2168
  * ```
2169
2169
  */
2170
- fetchDataObject(appPublicKey?: string, appPublicKeyJWT?: string): Promise<void | ResponseType$1>;
2170
+ fetchDataObject(appPublicKey?: string, appJWT?: string): Promise<void | ResponseType$1>;
2171
2171
  /**
2172
2172
  * @summary
2173
2173
  * Sets the data object for a Topia ecosystem.
@@ -2177,14 +2177,14 @@ declare class Ecosystem extends SDKController {
2177
2177
  * @usage
2178
2178
  * ```ts
2179
2179
  * await ecosystem.setDataObject({ "exampleKey": "exampleValue" }, {
2180
- * appPublicKey: "exampleAppPublicKey",
2181
- * appPublicKeyJWT: "exampleAppPublicKeyJWT",}
2180
+ * sharedAppPublicKey: "exampleAppPublicKey",
2181
+ * sharedAppJWT: "exampleAppPublicKeyJWT",}
2182
2182
  * });
2183
2183
  * ```
2184
2184
  */
2185
2185
  setDataObject(dataObject: object | null | undefined, options?: {
2186
- appPublicKey?: string;
2187
- appPublicKeyJWT?: string;
2186
+ sharedAppPublicKey?: string;
2187
+ sharedAppJWT?: string;
2188
2188
  analytics?: AnalyticType[];
2189
2189
  lock?: {
2190
2190
  lockId: string;
@@ -2200,14 +2200,14 @@ declare class Ecosystem extends SDKController {
2200
2200
  * @usage
2201
2201
  * ```ts
2202
2202
  * await ecosystem.updateDataObject({ "exampleKey": "exampleValue" }, {
2203
- * appPublicKey: "exampleAppPublicKey",
2204
- * appPublicKeyJWT: "exampleAppPublicKeyJWT",}
2203
+ * sharedAppPublicKey: "exampleAppPublicKey",
2204
+ * sharedAppJWT: "exampleAppPublicKeyJWT",}
2205
2205
  * });
2206
2206
  * ```
2207
2207
  */
2208
2208
  updateDataObject(dataObject: object, options?: {
2209
- appPublicKey?: string;
2210
- appPublicKeyJWT?: string;
2209
+ sharedAppPublicKey?: string;
2210
+ sharedAppJWT?: string;
2211
2211
  analytics?: AnalyticType[];
2212
2212
  lock?: {
2213
2213
  lockId: string;
@@ -2223,14 +2223,14 @@ declare class Ecosystem extends SDKController {
2223
2223
  * @usage
2224
2224
  * ```ts
2225
2225
  * await ecosystem.incrementDataObjectValue("key", 1, {
2226
- * appPublicKey: "exampleAppPublicKey",
2227
- * appPublicKeyJWT: "exampleAppPublicKeyJWT",}
2226
+ * sharedAppPublicKey: "exampleAppPublicKey",
2227
+ * sharedAppJWT: "exampleAppPublicKeyJWT",}
2228
2228
  * });
2229
2229
  * ```
2230
2230
  */
2231
2231
  incrementDataObjectValue(path: string, amount: number, options?: {
2232
- appPublicKey?: string;
2233
- appPublicKeyJWT?: string;
2232
+ sharedAppPublicKey?: string;
2233
+ sharedAppJWT?: string;
2234
2234
  analytics?: AnalyticType[];
2235
2235
  lock?: {
2236
2236
  lockId: string;
package/dist/index.js CHANGED
@@ -39986,12 +39986,12 @@ class DroppedAsset extends Asset {
39986
39986
  * const dataObject = await droppedAsset.fetchDataObject();
39987
39987
  * ```
39988
39988
  */
39989
- fetchDataObject(appPublicKey, appPublicKeyJWT) {
39989
+ fetchDataObject(appPublicKey, appJWT) {
39990
39990
  return __awaiter(this, void 0, void 0, function* () {
39991
39991
  try {
39992
39992
  let query = "";
39993
39993
  if (appPublicKey)
39994
- query = `?appPublicKey=${appPublicKey}&appPublicKeyJWT=${appPublicKeyJWT}`;
39994
+ query = `?appPublicKey=${appPublicKey}&appJWT=${appJWT}`;
39995
39995
  const response = yield this.topiaPublicApi().get(`/world/${this.urlSlug}/assets/${this.id}/data-object${query}`, this.requestOptions);
39996
39996
  this.dataObject = response.data;
39997
39997
  return response.data;
@@ -40500,12 +40500,12 @@ class Ecosystem extends SDKController {
40500
40500
  * const dataObject = await ecosystem.fetchDataObject("exampleAppPublicKey", "exampleAppPublicKeyJWT");
40501
40501
  * ```
40502
40502
  */
40503
- fetchDataObject(appPublicKey, appPublicKeyJWT) {
40503
+ fetchDataObject(appPublicKey, appJWT) {
40504
40504
  return __awaiter(this, void 0, void 0, function* () {
40505
40505
  try {
40506
40506
  let query = "";
40507
40507
  if (appPublicKey)
40508
- query = `?appPublicKey=${appPublicKey}&appPublicKeyJWT=${appPublicKeyJWT}`;
40508
+ query = `?appPublicKey=${appPublicKey}&appJWT=${appJWT}`;
40509
40509
  const response = yield this.topiaPublicApi().get(`/ecosystem/data-object${query}`, this.requestOptions);
40510
40510
  this.dataObject = response.data;
40511
40511
  return response.data;
@@ -40524,8 +40524,8 @@ class Ecosystem extends SDKController {
40524
40524
  * @usage
40525
40525
  * ```ts
40526
40526
  * await ecosystem.setDataObject({ "exampleKey": "exampleValue" }, {
40527
- * appPublicKey: "exampleAppPublicKey",
40528
- * appPublicKeyJWT: "exampleAppPublicKeyJWT",}
40527
+ * sharedAppPublicKey: "exampleAppPublicKey",
40528
+ * sharedAppJWT: "exampleAppPublicKeyJWT",}
40529
40529
  * });
40530
40530
  * ```
40531
40531
  */
@@ -40549,8 +40549,8 @@ class Ecosystem extends SDKController {
40549
40549
  * @usage
40550
40550
  * ```ts
40551
40551
  * await ecosystem.updateDataObject({ "exampleKey": "exampleValue" }, {
40552
- * appPublicKey: "exampleAppPublicKey",
40553
- * appPublicKeyJWT: "exampleAppPublicKeyJWT",}
40552
+ * sharedAppPublicKey: "exampleAppPublicKey",
40553
+ * sharedAppJWT: "exampleAppPublicKeyJWT",}
40554
40554
  * });
40555
40555
  * ```
40556
40556
  */
@@ -40574,8 +40574,8 @@ class Ecosystem extends SDKController {
40574
40574
  * @usage
40575
40575
  * ```ts
40576
40576
  * await ecosystem.incrementDataObjectValue("key", 1, {
40577
- * appPublicKey: "exampleAppPublicKey",
40578
- * appPublicKeyJWT: "exampleAppPublicKeyJWT",}
40577
+ * sharedAppPublicKey: "exampleAppPublicKey",
40578
+ * sharedAppJWT: "exampleAppPublicKeyJWT",}
40579
40579
  * });
40580
40580
  * ```
40581
40581
  */
@@ -40703,11 +40703,11 @@ class World extends SDKController {
40703
40703
  * const { dataObject } = world;
40704
40704
  * ```
40705
40705
  */
40706
- this.fetchDataObject = (appPublicKey, appPublicKeyJWT) => __awaiter(this, void 0, void 0, function* () {
40706
+ this.fetchDataObject = (appPublicKey, appJWT) => __awaiter(this, void 0, void 0, function* () {
40707
40707
  try {
40708
40708
  let query = "";
40709
40709
  if (appPublicKey)
40710
- query = `?appPublicKey=${appPublicKey}&appPublicKeyJWT=${appPublicKeyJWT}`;
40710
+ query = `?appPublicKey=${appPublicKey}&appJWT=${appJWT}`;
40711
40711
  const response = yield this.topiaPublicApi().get(`/world/${this.urlSlug}/get-data-object${query}`, this.requestOptions);
40712
40712
  this.dataObject = response.data;
40713
40713
  return response.data;
@@ -41843,14 +41843,14 @@ class User extends SDKController {
41843
41843
  * const dataObject = await user.fetchDataObject();
41844
41844
  * ```
41845
41845
  */
41846
- fetchDataObject(appPublicKey, appPublicKeyJWT) {
41846
+ fetchDataObject(appPublicKey, appJWT) {
41847
41847
  return __awaiter(this, void 0, void 0, function* () {
41848
41848
  try {
41849
41849
  if (!this.profileId)
41850
41850
  throw "This method requires the use of a profileId";
41851
41851
  let query = "";
41852
41852
  if (appPublicKey)
41853
- query = `?appPublicKey=${appPublicKey}&appPublicKeyJWT=${appPublicKeyJWT}`;
41853
+ query = `?appPublicKey=${appPublicKey}&appJWT=${appJWT}`;
41854
41854
  const response = yield this.topiaPublicApi().get(`/user/dataObjects/${this.profileId}/get-data-object${query}`, this.requestOptions);
41855
41855
  this.dataObject = response.data;
41856
41856
  return response.data;
@@ -42243,12 +42243,12 @@ class Visitor extends User {
42243
42243
  * const dataObject = await visitor.fetchDataObject();
42244
42244
  * ```
42245
42245
  */
42246
- fetchDataObject(appPublicKey, appPublicKeyJWT) {
42246
+ fetchDataObject(appPublicKey, appJWT) {
42247
42247
  return __awaiter(this, void 0, void 0, function* () {
42248
42248
  try {
42249
42249
  let query = "";
42250
42250
  if (appPublicKey)
42251
- query = `?appPublicKey=${appPublicKey}&appPublicKeyJWT=${appPublicKeyJWT}`;
42251
+ query = `?appPublicKey=${appPublicKey}&appJWT=${appJWT}`;
42252
42252
  const response = yield this.topiaPublicApi().get(`/world/${this.urlSlug}/visitors/${this.id}/get-data-object${query}`, this.requestOptions);
42253
42253
  this.dataObject = response.data;
42254
42254
  return response.data;
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.16.00"
63
+ "version": "0.16.01"
64
64
  }