@caido/sdk-frontend 0.45.1-beta.0 → 0.45.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caido/sdk-frontend",
3
- "version": "0.45.1-beta.0",
3
+ "version": "v0.45.1",
4
4
  "description": "Typing for the Caido Frontend SDK",
5
5
  "author": "Caido Labs Inc. <dev@caido.io>",
6
6
  "license": "MIT",
@@ -1,5 +1,4 @@
1
1
  import type { Sdk as GraphqlSDK } from "./__generated__/graphql-sdk";
2
- import type { AssetsSDK } from "./assets";
3
2
  import type { BackendEndpoints, BackendEvents, BackendSDK } from "./backend";
4
3
  import type { CommandPaletteSDK } from "./commandPalette";
5
4
  import type { CommandsSDK } from "./commands";
@@ -75,10 +74,6 @@ export type API<T extends BackendEndpoints = Record<string, never>, E extends Ba
75
74
  * Utilities to interact with frontend-plugin storage.
76
75
  */
77
76
  storage: StorageSDK;
78
- /**
79
- * Utilities to interact with the plugin's static assets.
80
- */
81
- assets: AssetsSDK;
82
77
  /**
83
78
  * Utilities to interact with shortcuts.
84
79
  */
@@ -1,22 +0,0 @@
1
- /**
2
- * Utilities to interact with the plugin's static assets.
3
- * @category Files
4
- */
5
- export type AssetsSDK = {
6
- /**
7
- * Get a file from the assets folder.
8
- * @returns The asset file.
9
- */
10
- get: (path: string) => Promise<Asset>;
11
- };
12
- /**
13
- * A static asset.
14
- * @category Files
15
- */
16
- type Asset = {
17
- asReadableStream: () => ReadableStream;
18
- asArrayBuffer: () => Promise<ArrayBuffer>;
19
- asString: () => Promise<string>;
20
- asJson: <T = unknown>() => Promise<T>;
21
- };
22
- export {};