@caido/sdk-frontend 0.42.1-beta.1 → 0.42.1-beta.2
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 +1 -1
- package/src/types/httpHistory.d.ts +16 -0
- package/src/types/index.d.ts +11 -1
- package/src/types/search.d.ts +16 -0
package/package.json
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utilities to interact with the HTTP History page.
|
|
3
|
+
* @category HTTP History
|
|
4
|
+
*/
|
|
5
|
+
export type HTTPHistorySDK = {
|
|
6
|
+
/**
|
|
7
|
+
* Set the HTTPQL query that will be applied on the HTTP History table results.
|
|
8
|
+
* @param query The HTTPQL query.
|
|
9
|
+
*/
|
|
10
|
+
setQuery: (query: string) => void;
|
|
11
|
+
/**
|
|
12
|
+
* Get the current HTTPQL query.
|
|
13
|
+
* @returns The current HTTPQL query.
|
|
14
|
+
*/
|
|
15
|
+
getQuery: () => string;
|
|
16
|
+
};
|
package/src/types/index.d.ts
CHANGED
|
@@ -12,6 +12,8 @@ import type { StorageSDK } from "./storage";
|
|
|
12
12
|
import type { UISDK } from "./ui";
|
|
13
13
|
import type { WindowSDK } from "./window";
|
|
14
14
|
import type { ReplaySDK } from "./replay";
|
|
15
|
+
import type { SearchSDK } from "./search";
|
|
16
|
+
import type { HTTPHistorySDK } from "./httpHistory";
|
|
15
17
|
export type { CommandContext } from "./commands";
|
|
16
18
|
export type { MenuItem } from "./menu";
|
|
17
19
|
export type { ReplayTab, ReplaySession, ReplayCollection } from "./replay";
|
|
@@ -73,7 +75,15 @@ export type API<T extends BackendEndpoints = Record<string, never>, E extends Ba
|
|
|
73
75
|
*/
|
|
74
76
|
sidebar: SidebarSDK;
|
|
75
77
|
/**
|
|
76
|
-
* Utilities to interact with Replay.
|
|
78
|
+
* Utilities to interact with the Replay page.
|
|
77
79
|
*/
|
|
78
80
|
replay: ReplaySDK;
|
|
81
|
+
/**
|
|
82
|
+
* Utilities to interact with the Search page.
|
|
83
|
+
*/
|
|
84
|
+
search: SearchSDK;
|
|
85
|
+
/**
|
|
86
|
+
* Utilities to interact with the HTTP History page.
|
|
87
|
+
*/
|
|
88
|
+
httpHistory: HTTPHistorySDK;
|
|
79
89
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utilities to interact with the Search page.
|
|
3
|
+
* @category Search
|
|
4
|
+
*/
|
|
5
|
+
export type SearchSDK = {
|
|
6
|
+
/**
|
|
7
|
+
* Set the HTTPQL query that will be applied on the search table results.
|
|
8
|
+
* @param query The HTTPQL query.
|
|
9
|
+
*/
|
|
10
|
+
setQuery: (query: string) => void;
|
|
11
|
+
/**
|
|
12
|
+
* Get the current HTTPQL query.
|
|
13
|
+
* @returns The current HTTPQL query.
|
|
14
|
+
*/
|
|
15
|
+
getQuery: () => string;
|
|
16
|
+
};
|