@caido/sdk-frontend 0.51.2-beta.0 → 0.51.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.
package/package.json
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Extension } from "@codemirror/state";
|
|
2
|
+
import type { RequestViewModeOptions } from "../types/request";
|
|
3
|
+
/**
|
|
4
|
+
* Utilities to interact with the Automate page.
|
|
5
|
+
* @category Automate
|
|
6
|
+
*/
|
|
7
|
+
export type AutomateSDK = {
|
|
8
|
+
/**
|
|
9
|
+
* Add an extension to the request editor.
|
|
10
|
+
* @param extension The extension to add.
|
|
11
|
+
*/
|
|
12
|
+
addRequestEditorExtension: (extension: Extension) => void;
|
|
13
|
+
/**
|
|
14
|
+
* Add a custom request view mode.
|
|
15
|
+
* @param options The view mode options.
|
|
16
|
+
*/
|
|
17
|
+
addRequestViewMode: (options: RequestViewModeOptions) => void;
|
|
18
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Sdk as GraphqlSDK } from "../__generated__/graphql-sdk";
|
|
2
2
|
import { type BackendEndpoints, type BackendEvents } from "../types/backend";
|
|
3
3
|
import type { AssetsSDK } from "./assets";
|
|
4
|
+
import type { AutomateSDK } from "./automate";
|
|
4
5
|
import type { BackendSDK } from "./backend";
|
|
5
6
|
import type { CommandPaletteSDK } from "./commandPalette";
|
|
6
7
|
import type { CommandsSDK } from "./commands";
|
|
@@ -98,6 +99,10 @@ export type API<T extends BackendEndpoints = Record<string, never>, E extends Ba
|
|
|
98
99
|
* Utilities to interact with the HTTP History page.
|
|
99
100
|
*/
|
|
100
101
|
httpHistory: HTTPHistorySDK;
|
|
102
|
+
/**
|
|
103
|
+
* Utilities to interact with the Automate page.
|
|
104
|
+
*/
|
|
105
|
+
automate: AutomateSDK;
|
|
101
106
|
/**
|
|
102
107
|
* Utilities to interact with the Files page.
|
|
103
108
|
*/
|