@caido/sdk-backend 0.45.1 → 0.45.2-beta.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/typing.d.ts +13 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caido/sdk-backend",
3
- "version": "0.45.1",
3
+ "version": "0.45.2-beta.1",
4
4
  "description": "Typing for the Caido Backend SDK",
5
5
  "author": "Caido Labs Inc. <dev@caido.io>",
6
6
  "license": "MIT",
@@ -9,7 +9,7 @@
9
9
  "src/*"
10
10
  ],
11
11
  "dependencies": {
12
- "@caido/quickjs-types": "0.16.1",
12
+ "@caido/quickjs-types": "0.17.2",
13
13
  "@caido/sdk-shared": "^0.1.0"
14
14
  },
15
15
  "scripts": {
package/src/typing.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  declare module "caido:plugin" {
2
- import { Database } from "sqlite";
3
- import {
2
+ import type { Database } from "sqlite";
3
+ import type {
4
4
  MaybePromise,
5
5
  FindingsSDK,
6
6
  RequestsSDK,
@@ -10,6 +10,7 @@ declare module "caido:plugin" {
10
10
  ProjectsSDK,
11
11
  Project,
12
12
  EnvironmentSDK,
13
+ RuntimeSDK,
13
14
  } from "caido:utils";
14
15
 
15
16
  /**
@@ -118,6 +119,12 @@ declare module "caido:plugin" {
118
119
  * You can store data related to your plugin in this directory.
119
120
  */
120
121
  path(): string;
122
+ /**
123
+ * The directory of the plugin's assets in Caido Data.
124
+ * You can read static data from your plugin in this directory.
125
+ * You shouldn't write anything there, as the contents can be reset at any time.
126
+ */
127
+ assetsPath(): string;
121
128
  /**
122
129
  * Get a sqlite database for the plugin stored in Caido Data.
123
130
  * You can use this to store data related to your plugin.
@@ -179,5 +186,9 @@ declare module "caido:plugin" {
179
186
  * The SDK for metadata information about the plugin.
180
187
  */
181
188
  meta: MetaSDK;
189
+ /**
190
+ * The SDK for the runtime information.
191
+ */
192
+ runtime: RuntimeSDK;
182
193
  }
183
194
  }