@caido/sdk-frontend 0.51.2-beta.0 → 0.51.2-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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caido/sdk-frontend",
3
- "version": "0.51.2-beta.0",
3
+ "version": "0.51.2-beta.2",
4
4
  "description": "Typing for the Caido Frontend SDK",
5
5
  "author": "Caido Labs Inc. <dev@caido.io>",
6
6
  "license": "MIT",
@@ -2859,6 +2859,7 @@ export type ReplayEntrySettings = {
2859
2859
  placeholders: Array<ReplayPlaceholder>;
2860
2860
  };
2861
2861
  export type ReplayEntrySettingsInput = {
2862
+ connectionClose: Scalars["Boolean"]["input"];
2862
2863
  placeholders: Array<ReplayPlaceholderInput>;
2863
2864
  updateContentLength: Scalars["Boolean"]["input"];
2864
2865
  };
@@ -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
  */
@@ -117,6 +117,11 @@ export type SendRequestOptions = {
117
117
  * Defaults to true.
118
118
  */
119
119
  updateContentLength?: boolean;
120
+ /**
121
+ * Whether to force close the connection by setting Connection: close header.
122
+ * Defaults to true.
123
+ */
124
+ connectionClose?: boolean;
120
125
  /**
121
126
  * Whether to overwrite the editor's draft content.
122
127
  * If true, draft content will be overwritten with the new request.