@rtsdk/topia 0.17.5 → 0.17.7
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 -0
- package/dist/index.d.ts +84 -5
- package/dist/index.js +1 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -39782,6 +39782,7 @@ class Asset extends SDKController {
|
|
|
39782
39782
|
try {
|
|
39783
39783
|
const response = yield this.topiaPublicApi().put(`/assets/${this.id}`, params, this.requestOptions);
|
|
39784
39784
|
Object.assign(this, response.data);
|
|
39785
|
+
return response.data;
|
|
39785
39786
|
}
|
|
39786
39787
|
catch (error) {
|
|
39787
39788
|
throw this.errorHandler({ error, params, sdkMethod: "Asset.updateAsset" });
|
package/dist/index.d.ts
CHANGED
|
@@ -1824,6 +1824,15 @@ interface SDKInterface {
|
|
|
1824
1824
|
|
|
1825
1825
|
interface AssetInterface extends SDKInterface {
|
|
1826
1826
|
fetchAssetById(): Promise<object | ResponseType>;
|
|
1827
|
+
updateAsset({ assetName, bottomLayerURL, creatorTags, isPublic, shouldUploadImages, tagJson, topLayerURL, }: {
|
|
1828
|
+
assetName: string;
|
|
1829
|
+
bottomLayerURL?: string;
|
|
1830
|
+
creatorTags: object;
|
|
1831
|
+
isPublic: boolean;
|
|
1832
|
+
shouldUploadImages?: boolean;
|
|
1833
|
+
tagJson: string;
|
|
1834
|
+
topLayerURL?: string;
|
|
1835
|
+
}): Promise<object | ResponseType>;
|
|
1827
1836
|
addedOn?: string;
|
|
1828
1837
|
assetName?: string;
|
|
1829
1838
|
creatorTags?: object;
|
|
@@ -1859,10 +1868,16 @@ interface DroppedAssetInterface extends AssetInterface {
|
|
|
1859
1868
|
updateCustomTextAsset(style: object | undefined | null, text: string | null | undefined): Promise<void | ResponseType$1>;
|
|
1860
1869
|
updateMediaType({ audioRadius, audioSliderVolume, isVideo, mediaLink, mediaName, mediaType, portalName, syncUserMedia, }: UpdateMediaTypeInterface): Promise<void | ResponseType$1>;
|
|
1861
1870
|
updateMuteZone(isMutezone: boolean): Promise<void | ResponseType$1>;
|
|
1871
|
+
updateLandmarkZone({ isLandmarkZoneEnabled, landmarkZoneName, landmarkZoneIsVisible, }: {
|
|
1872
|
+
isLandmarkZoneEnabled: boolean;
|
|
1873
|
+
landmarkZoneName?: string;
|
|
1874
|
+
landmarkZoneIsVisible?: boolean;
|
|
1875
|
+
}): Promise<void | ResponseType$1>;
|
|
1862
1876
|
updateWebhookZone(isWebhookZoneEnabled: boolean): Promise<void | ResponseType$1>;
|
|
1863
1877
|
updatePosition(x: number, y: number, yOrderAdjust?: number): Promise<void | ResponseType$1>;
|
|
1864
1878
|
updatePrivateZone({ isPrivateZone, isPrivateZoneChatDisabled, privateZoneUserCap, }: UpdatePrivateZoneInterface): Promise<void | ResponseType$1>;
|
|
1865
1879
|
updateScale(assetScale: number): Promise<void | ResponseType$1>;
|
|
1880
|
+
flip(): Promise<void | ResponseType$1>;
|
|
1866
1881
|
updateUploadedMediaSelected(mediaId: string): Promise<void | ResponseType$1>;
|
|
1867
1882
|
updateWebImageLayers(bottom: string, top: string): Promise<void | ResponseType$1>;
|
|
1868
1883
|
addWebhook({ dataObject, description, isUniqueOnly, title, type, url, }: {
|
|
@@ -1880,6 +1895,11 @@ interface DroppedAssetInterface extends AssetInterface {
|
|
|
1880
1895
|
setClickableLinkMulti({ clickableLinks }: SetClickableLinkMultiInterface): Promise<void | ResponseType$1>;
|
|
1881
1896
|
updateClickableLinkMulti({ clickableLink, clickableLinkTitle, isForceLinkInIframe, isOpenLinkInDrawer, existingLinkId, linkSamlQueryParams, }: UpdateClickableLinkMultiInterface): Promise<void | ResponseType$1>;
|
|
1882
1897
|
removeClickableLink({ linkId }: RemoveClickableLinkInterface): Promise<void | ResponseType$1>;
|
|
1898
|
+
fetchDroppedAssetAnalytics({ periodType, dateValue, year, }: {
|
|
1899
|
+
periodType: "week" | "month" | "quarter" | "year";
|
|
1900
|
+
dateValue: number;
|
|
1901
|
+
year: number;
|
|
1902
|
+
}): Promise<void | ResponseType$1>;
|
|
1883
1903
|
id?: string;
|
|
1884
1904
|
assetId?: string;
|
|
1885
1905
|
assetScale?: number | null;
|
|
@@ -2094,10 +2114,24 @@ interface TopiaInterface {
|
|
|
2094
2114
|
}
|
|
2095
2115
|
|
|
2096
2116
|
interface UserInterface {
|
|
2117
|
+
checkInteractiveCredentials(): Promise<void | ResponseType$1>;
|
|
2118
|
+
fetchAvatars(): Promise<void | ResponseType$1>;
|
|
2119
|
+
addAvatar(formData: FormData): Promise<void | ResponseType$1>;
|
|
2120
|
+
updateAvatar(avatarId: string, formData: FormData): Promise<void | ResponseType$1>;
|
|
2121
|
+
deleteAvatar(avatarId: string): Promise<void | ResponseType$1>;
|
|
2097
2122
|
fetchAssets(): Promise<void | ResponseType$1>;
|
|
2098
2123
|
fetchPlatformAssets(): Promise<object | ResponseType$1>;
|
|
2099
2124
|
fetchScenes(): Promise<void | ResponseType$1>;
|
|
2100
2125
|
fetchWorldsByKey(): Promise<void | ResponseType$1>;
|
|
2126
|
+
sendEmail({ html, subject, to }: {
|
|
2127
|
+
html: string;
|
|
2128
|
+
subject: string;
|
|
2129
|
+
to: string;
|
|
2130
|
+
}): Promise<object | ResponseType$1>;
|
|
2131
|
+
getExpressions({ name, getUnlockablesOnly }: {
|
|
2132
|
+
name?: string;
|
|
2133
|
+
getUnlockablesOnly?: boolean;
|
|
2134
|
+
}): Promise<ResponseType$1>;
|
|
2101
2135
|
fetchDataObject(appPublicKey?: string, appJWT?: string): Promise<void | ResponseType$1>;
|
|
2102
2136
|
setDataObject(dataObject: object | null | undefined, options: object): Promise<void | ResponseType$1>;
|
|
2103
2137
|
incrementDataObjectValue(path: string, amount: number, options: object): Promise<void | ResponseType$1>;
|
|
@@ -2115,11 +2149,31 @@ interface VisitorInterface extends SDKInterface {
|
|
|
2115
2149
|
moveVisitor({ shouldTeleportVisitor, x, y }: MoveVisitorInterface): Promise<void | ResponseType$1>;
|
|
2116
2150
|
fireToast({ groupId, title, text }: FireToastInterface): Promise<void | ResponseType$1>;
|
|
2117
2151
|
openIframe({ link, shouldOpenInDrawer, title }: OpenIframeInterface): Promise<void | ResponseType$1>;
|
|
2152
|
+
reloadIframe(droppedAssetId: string): Promise<void | ResponseType$1>;
|
|
2118
2153
|
closeIframe(droppedAssetId: string): Promise<void | ResponseType$1>;
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2154
|
+
turnAVOff(): Promise<void | ResponseType$1>;
|
|
2155
|
+
getExpressions({ name, getUnlockablesOnly }: {
|
|
2156
|
+
name?: string;
|
|
2157
|
+
getUnlockablesOnly?: boolean;
|
|
2158
|
+
}): Promise<ResponseType$1>;
|
|
2159
|
+
grantExpression({ id, name }: {
|
|
2160
|
+
id?: string;
|
|
2161
|
+
name?: string;
|
|
2162
|
+
}): Promise<ResponseType$1>;
|
|
2163
|
+
getAllParticles(): Promise<ResponseType$1>;
|
|
2164
|
+
triggerParticle({ id, name, duration, }: {
|
|
2165
|
+
id?: string;
|
|
2166
|
+
name?: string;
|
|
2167
|
+
duration?: number;
|
|
2168
|
+
fetchDataObject(appPublicKey?: string, appJWT?: string, sharedAppPublicKey?: string, sharedAppJWT?: string): Promise<void | ResponseType$1>;
|
|
2169
|
+
setDataObject(dataObject: object | null | undefined, options: object): Promise<void | ResponseType$1>;
|
|
2170
|
+
updateDataObject(dataObject: object, options: object): Promise<void | ResponseType$1>;
|
|
2171
|
+
incrementDataObjectValue(path: string, amount: number, options: object): Promise<void | ResponseType$1>;
|
|
2172
|
+
updatePublicKeyAnalytics(analytics?: AnalyticType[]): Promise<void | ResponseType$1>;
|
|
2173
|
+
sendSignalToVisitor(signal: any): Promise<void | (ResponseType$1 & {
|
|
2174
|
+
answerSignal: any;
|
|
2175
|
+
})>;
|
|
2176
|
+
}): Promise<ResponseType$1 | string>;
|
|
2123
2177
|
color?: string;
|
|
2124
2178
|
dataObject?: object | null | undefined;
|
|
2125
2179
|
displayName?: string;
|
|
@@ -2227,6 +2281,10 @@ interface WorldDetailsInterface {
|
|
|
2227
2281
|
interface WorldInterface extends SDKInterface, WorldDetailsInterface {
|
|
2228
2282
|
fetchDetails(): Promise<void | ResponseType$1>;
|
|
2229
2283
|
updateDetails({ controls, description, forceAuthOnLogin, height, name, spawnPosition, width, }: WorldDetailsInterface): Promise<void | ResponseType$1>;
|
|
2284
|
+
updateCloseWorldSettings({ closeWorldDescription, isWorldClosed, }: {
|
|
2285
|
+
closeWorldDescription: string;
|
|
2286
|
+
isWorldClosed: boolean;
|
|
2287
|
+
}): Promise<void | ResponseType$1>;
|
|
2230
2288
|
fetchDroppedAssets(): Promise<void | ResponseType$1>;
|
|
2231
2289
|
fetchDroppedAssetsWithUniqueName({ uniqueName, isPartial, isReversed, }: {
|
|
2232
2290
|
uniqueName: string;
|
|
@@ -2238,17 +2296,38 @@ interface WorldInterface extends SDKInterface, WorldDetailsInterface {
|
|
|
2238
2296
|
uniqueName?: string;
|
|
2239
2297
|
}): Promise<DroppedAsset[]>;
|
|
2240
2298
|
updateCustomTextDroppedAssets(droppedAssetsToUpdate: Array<DroppedAsset>, style: object): Promise<object>;
|
|
2299
|
+
fetchLandmarkZones(landmarkZoneName?: string, sceneDropId?: string): Promise<DroppedAsset[]>;
|
|
2300
|
+
fetchSceneDropIds(): Promise<object | ResponseType$1>;
|
|
2301
|
+
fetchScenes(): Promise<object | ResponseType$1>;
|
|
2241
2302
|
dropScene({ assetSuffix, position, sceneId, }: {
|
|
2242
2303
|
assetSuffix: string;
|
|
2243
2304
|
position: object;
|
|
2244
2305
|
sceneId: string;
|
|
2245
2306
|
}): Promise<object | ResponseType$1>;
|
|
2246
2307
|
replaceScene(sceneId: string): Promise<void | ResponseType$1>;
|
|
2308
|
+
getAllParticles(): Promise<ResponseType$1>;
|
|
2309
|
+
triggerParticle({ id, name, duration, position, }: {
|
|
2310
|
+
id?: string;
|
|
2311
|
+
name?: string;
|
|
2312
|
+
duration?: number;
|
|
2313
|
+
position?: object;
|
|
2314
|
+
}): Promise<ResponseType$1 | string>;
|
|
2315
|
+
triggerActivity({ type, assetId, excludeFromNotification, }: {
|
|
2316
|
+
type: WorldActivityType;
|
|
2317
|
+
assetId: string;
|
|
2318
|
+
excludeFromNotification?: (string | number)[];
|
|
2319
|
+
}): Promise<ResponseType$1 | string>;
|
|
2247
2320
|
fireToast({ groupId, title, text }: FireToastInterface): Promise<void | ResponseType$1>;
|
|
2248
2321
|
fetchDataObject(appPublicKey?: string, appJWT?: string, sharedAppPublicKey?: string, sharedAppJWT?: string): Promise<void | ResponseType$1>;
|
|
2249
2322
|
setDataObject(dataObject: object | null | undefined, options: object): Promise<void | ResponseType$1>;
|
|
2250
2323
|
updateDataObject(dataObject: object, options: object): Promise<void | ResponseType$1>;
|
|
2251
2324
|
incrementDataObjectValue(path: string, amount: number, options: object): Promise<void | ResponseType$1>;
|
|
2325
|
+
fetchWebhooks(): Promise<void | ResponseType$1>;
|
|
2326
|
+
fetchWorldAnalytics({ periodType, dateValue, year, }: {
|
|
2327
|
+
periodType: "week" | "month" | "quarter" | "year";
|
|
2328
|
+
dateValue: number;
|
|
2329
|
+
year: number;
|
|
2330
|
+
}): Promise<void | ResponseType$1>;
|
|
2252
2331
|
dataObject?: object | null;
|
|
2253
2332
|
}
|
|
2254
2333
|
interface WorldOptionalInterface {
|
|
@@ -2388,7 +2467,7 @@ declare class Asset extends SDKController implements AssetInterface {
|
|
|
2388
2467
|
shouldUploadImages?: boolean;
|
|
2389
2468
|
tagJson: string;
|
|
2390
2469
|
topLayerURL?: string;
|
|
2391
|
-
}): Promise<
|
|
2470
|
+
}): Promise<object | ResponseType$1>;
|
|
2392
2471
|
}
|
|
2393
2472
|
|
|
2394
2473
|
/**
|
package/dist/index.js
CHANGED
|
@@ -39780,6 +39780,7 @@ class Asset extends SDKController {
|
|
|
39780
39780
|
try {
|
|
39781
39781
|
const response = yield this.topiaPublicApi().put(`/assets/${this.id}`, params, this.requestOptions);
|
|
39782
39782
|
Object.assign(this, response.data);
|
|
39783
|
+
return response.data;
|
|
39783
39784
|
}
|
|
39784
39785
|
catch (error) {
|
|
39785
39786
|
throw this.errorHandler({ error, params, sdkMethod: "Asset.updateAsset" });
|
package/package.json
CHANGED