@caido/sdk-backend 0.41.0 → 0.41.1-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.
- package/package.json +6 -3
- package/src/typing.d.ts +10 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caido/sdk-backend",
|
|
3
|
-
"version": "0.41.
|
|
3
|
+
"version": "0.41.1-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,10 @@
|
|
|
9
9
|
"src/*"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@caido/quickjs-types": "0.
|
|
13
|
-
"@caido/sdk-shared": "0.1.
|
|
12
|
+
"@caido/quickjs-types": "0.8.2",
|
|
13
|
+
"@caido/sdk-shared": "0.1.1"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"documentation": "typedoc"
|
|
14
17
|
}
|
|
15
18
|
}
|
package/src/typing.d.ts
CHANGED
|
@@ -6,10 +6,12 @@ declare module "caido:plugin" {
|
|
|
6
6
|
RequestsSDK,
|
|
7
7
|
Request,
|
|
8
8
|
Response,
|
|
9
|
+
ReplaySDK,
|
|
9
10
|
} from "caido:utils";
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* The SDK for the API RPC service.
|
|
14
|
+
* @category APISDK
|
|
13
15
|
*/
|
|
14
16
|
export type APISDK<API = {}, Events = {}> = {
|
|
15
17
|
/**
|
|
@@ -36,6 +38,7 @@ declare module "caido:plugin" {
|
|
|
36
38
|
|
|
37
39
|
/**
|
|
38
40
|
* The SDK for the API RPC service.
|
|
41
|
+
* @category EventsSDK
|
|
39
42
|
*/
|
|
40
43
|
export type EventsSDK<API = {}, Events = {}> = {
|
|
41
44
|
/**
|
|
@@ -73,6 +76,7 @@ declare module "caido:plugin" {
|
|
|
73
76
|
|
|
74
77
|
/**
|
|
75
78
|
* The SDK for metadata information about the plugin.
|
|
79
|
+
* @category MetaSDK
|
|
76
80
|
*/
|
|
77
81
|
export type MetaSDK = {
|
|
78
82
|
/**
|
|
@@ -89,6 +93,7 @@ declare module "caido:plugin" {
|
|
|
89
93
|
|
|
90
94
|
/**
|
|
91
95
|
* The SDK object available to all scripts.
|
|
96
|
+
* @category SDK
|
|
92
97
|
*/
|
|
93
98
|
export interface SDK<API = {}, Events = {}> {
|
|
94
99
|
/**
|
|
@@ -102,9 +107,13 @@ declare module "caido:plugin" {
|
|
|
102
107
|
*/
|
|
103
108
|
findings: FindingsSDK;
|
|
104
109
|
/**
|
|
105
|
-
* The SDK for the Requests
|
|
110
|
+
* The SDK for the Requests service.
|
|
106
111
|
*/
|
|
107
112
|
requests: RequestsSDK;
|
|
113
|
+
/**
|
|
114
|
+
* The SDK for the Replay service.
|
|
115
|
+
*/
|
|
116
|
+
replay: ReplaySDK;
|
|
108
117
|
/**
|
|
109
118
|
* The SDK for the API RPC service.
|
|
110
119
|
*/
|