@caido/sdk-frontend 0.57.2-beta.0 → 0.57.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.57.2-beta.0",
3
+ "version": "0.57.2-beta.2",
4
4
  "description": "Typing for the Caido Frontend SDK",
5
5
  "author": "Caido Labs Inc. <dev@caido.io>",
6
6
  "repository": "https://github.com/caido/sdk-js/",
@@ -1447,6 +1447,15 @@ export type EnvironmentVariableKind = (typeof EnvironmentVariableKind)[keyof typ
1447
1447
  export type ExpiredViewerProfilePayload = {
1448
1448
  expiredAt: Scalars["Timestamp"]["output"];
1449
1449
  };
1450
+ export type ExportAutomateEntriesError = OtherUserError | PermissionDeniedUserError;
1451
+ export type ExportAutomateEntriesInput = {
1452
+ sessions: Array<Scalars["ID"]["input"]>;
1453
+ settings: DataExportSettingsInput;
1454
+ };
1455
+ export type ExportAutomateEntriesPayload = {
1456
+ error?: Maybe<ExportAutomateEntriesError>;
1457
+ export?: Maybe<DataExportOnDemand>;
1458
+ };
1450
1459
  export type ExportFindingsError = OtherUserError | PermissionDeniedUserError;
1451
1460
  export type ExportFindingsInput = {
1452
1461
  filter: FilterClauseFindingInput;
@@ -1945,6 +1954,7 @@ export type MutationRoot = {
1945
1954
  deleteWorkflow: DeleteWorkflowPayload;
1946
1955
  dropInterceptMessage: DropInterceptMessagePayload;
1947
1956
  duplicateAutomateSession: DuplicateAutomateSessionPayload;
1957
+ exportAutomateEntries: ExportAutomateEntriesPayload;
1948
1958
  exportFindings: ExportFindingsPayload;
1949
1959
  exportSitemapEntries: ExportSitemapEntriesPayload;
1950
1960
  exportTamper: ExportTamperPayload;
@@ -2217,6 +2227,9 @@ export type MutationRootDropInterceptMessageArgs = {
2217
2227
  export type MutationRootDuplicateAutomateSessionArgs = {
2218
2228
  id: Scalars["ID"]["input"];
2219
2229
  };
2230
+ export type MutationRootExportAutomateEntriesArgs = {
2231
+ input: ExportAutomateEntriesInput;
2232
+ };
2220
2233
  export type MutationRootExportFindingsArgs = {
2221
2234
  input: ExportFindingsInput;
2222
2235
  };
@@ -7842,6 +7855,25 @@ export type StartAutomateTaskMutation = {
7842
7855
  } | undefined | null;
7843
7856
  };
7844
7857
  };
7858
+ export type ExportAutomateEntriesMutationVariables = Exact<{
7859
+ input: ExportAutomateEntriesInput;
7860
+ }>;
7861
+ export type ExportAutomateEntriesMutation = {
7862
+ exportAutomateEntries: {
7863
+ export?: {
7864
+ downloadUri: string;
7865
+ id: string;
7866
+ } | undefined | null;
7867
+ error?: {
7868
+ __typename: "OtherUserError";
7869
+ code: string;
7870
+ } | {
7871
+ __typename: "PermissionDeniedUserError";
7872
+ code: string;
7873
+ permissionDeniedReason: PermissionDeniedErrorReason;
7874
+ } | undefined | null;
7875
+ };
7876
+ };
7845
7877
  export type CreatedAutomateEntryRequestSubscriptionVariables = Exact<{
7846
7878
  order?: InputMaybe<AutomateEntryRequestOrderInput>;
7847
7879
  filter?: InputMaybe<HttpqlInput>;
@@ -123837,6 +123869,7 @@ export declare const CancelAutomateTaskDocument = "\n mutation cancelAutomate
123837
123869
  export declare const PauseAutomateTaskDocument = "\n mutation pauseAutomateTask($id: ID!) {\n pauseAutomateTask(id: $id) {\n automateTask {\n ...automateTaskMeta\n }\n userError {\n ... on UnknownIdUserError {\n ...unknownIdUserErrorFull\n }\n ... on OtherUserError {\n ...otherUserErrorFull\n }\n }\n }\n}\n \n fragment automateTaskMeta on AutomateTask {\n id\n paused\n entry {\n ...automateEntryMeta\n }\n}\n \n\n fragment automateEntryMeta on AutomateEntry {\n __typename\n id\n name\n createdAt\n session {\n id\n }\n}\n \n\n fragment unknownIdUserErrorFull on UnknownIdUserError {\n ...userErrorFull\n id\n}\n \n\n fragment userErrorFull on UserError {\n __typename\n code\n}\n \n\n fragment otherUserErrorFull on OtherUserError {\n ...userErrorFull\n}\n ";
123838
123870
  export declare const ResumeAutomateTaskDocument = "\n mutation resumeAutomateTask($id: ID!) {\n resumeAutomateTask(id: $id) {\n automateTask {\n ...automateTaskMeta\n }\n userError {\n ... on UnknownIdUserError {\n ...unknownIdUserErrorFull\n }\n ... on OtherUserError {\n ...otherUserErrorFull\n }\n }\n }\n}\n \n fragment automateTaskMeta on AutomateTask {\n id\n paused\n entry {\n ...automateEntryMeta\n }\n}\n \n\n fragment automateEntryMeta on AutomateEntry {\n __typename\n id\n name\n createdAt\n session {\n id\n }\n}\n \n\n fragment unknownIdUserErrorFull on UnknownIdUserError {\n ...userErrorFull\n id\n}\n \n\n fragment userErrorFull on UserError {\n __typename\n code\n}\n \n\n fragment otherUserErrorFull on OtherUserError {\n ...userErrorFull\n}\n ";
123839
123871
  export declare const StartAutomateTaskDocument = "\n mutation startAutomateTask($automateSessionId: ID!) {\n startAutomateTask(automateSessionId: $automateSessionId) {\n automateTask {\n ...automateTaskMeta\n }\n }\n}\n \n fragment automateTaskMeta on AutomateTask {\n id\n paused\n entry {\n ...automateEntryMeta\n }\n}\n \n\n fragment automateEntryMeta on AutomateEntry {\n __typename\n id\n name\n createdAt\n session {\n id\n }\n}\n ";
123872
+ export declare const ExportAutomateEntriesDocument = "\n mutation exportAutomateEntries($input: ExportAutomateEntriesInput!) {\n exportAutomateEntries(input: $input) {\n export {\n ...dataExportOnDemandMeta\n }\n error {\n ... on OtherUserError {\n ...otherUserErrorFull\n }\n ... on PermissionDeniedUserError {\n ...permissionDeniedUserErrorFull\n }\n }\n }\n}\n \n fragment dataExportOnDemandMeta on DataExportOnDemand {\n downloadUri\n id\n}\n \n\n fragment otherUserErrorFull on OtherUserError {\n ...userErrorFull\n}\n \n\n fragment userErrorFull on UserError {\n __typename\n code\n}\n \n\n fragment permissionDeniedUserErrorFull on PermissionDeniedUserError {\n ...userErrorFull\n permissionDeniedReason: reason\n}\n ";
123840
123873
  export declare const CreatedAutomateEntryRequestDocument = "\n subscription createdAutomateEntryRequest($order: AutomateEntryRequestOrderInput, $filter: HTTPQLInput) {\n createdAutomateEntryRequest(filter: $filter) {\n automateEntryRequestEdge(order: $order) {\n ...automateEntryRequestEdgeMeta\n }\n snapshot\n }\n}\n \n fragment automateEntryRequestEdgeMeta on AutomateEntryRequestEdge {\n __typename\n node {\n ...automateEntryRequestMeta\n }\n cursor\n}\n \n\n fragment automateEntryRequestMeta on AutomateEntryRequest {\n __typename\n sequenceId\n automateEntryId\n error\n request {\n ...requestMeta\n }\n payloads {\n ...automateEntryRequestPayloadFull\n }\n extracts {\n ...automateEntryRequestExtractFull\n }\n}\n \n\n fragment requestMeta on Request {\n __typename\n id\n host\n port\n path\n query\n method\n edited\n isTls\n sni\n length\n alteration\n metadata {\n ...requestMetadataFull\n }\n fileExtension\n source\n createdAt\n response {\n ...responseMeta\n }\n stream {\n id\n }\n}\n \n\n fragment requestMetadataFull on RequestMetadata {\n __typename\n id\n color\n}\n \n\n fragment responseMeta on Response {\n __typename\n id\n statusCode\n roundtripTime\n length\n createdAt\n alteration\n edited\n}\n \n\n fragment automateEntryRequestPayloadFull on AutomateEntryRequestPayload {\n __typename\n position\n raw\n}\n \n\n fragment automateEntryRequestExtractFull on AutomateEntryExtract {\n __typename\n name\n raw\n}\n ";
123841
123874
  export declare const CreatedAutomateTaskDocument = "\n subscription createdAutomateTask {\n createdAutomateTask {\n automateTaskEdge {\n ...automateTaskEdgeMeta\n }\n snapshot\n }\n}\n \n fragment automateTaskEdgeMeta on AutomateTaskEdge {\n node {\n ...automateTaskMeta\n }\n}\n \n\n fragment automateTaskMeta on AutomateTask {\n id\n paused\n entry {\n ...automateEntryMeta\n }\n}\n \n\n fragment automateEntryMeta on AutomateEntry {\n __typename\n id\n name\n createdAt\n session {\n id\n }\n}\n ";
123842
123875
  export declare const DeletedAutomateTaskDocument = "\n subscription deletedAutomateTask {\n deletedAutomateTask {\n deletedAutomateTaskId\n snapshot\n status\n }\n}\n ";
@@ -124195,6 +124228,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
124195
124228
  pauseAutomateTask(variables: PauseAutomateTaskMutationVariables, options?: C): Promise<PauseAutomateTaskMutation>;
124196
124229
  resumeAutomateTask(variables: ResumeAutomateTaskMutationVariables, options?: C): Promise<ResumeAutomateTaskMutation>;
124197
124230
  startAutomateTask(variables: StartAutomateTaskMutationVariables, options?: C): Promise<StartAutomateTaskMutation>;
124231
+ exportAutomateEntries(variables: ExportAutomateEntriesMutationVariables, options?: C): Promise<ExportAutomateEntriesMutation>;
124198
124232
  createdAutomateEntryRequest(variables?: CreatedAutomateEntryRequestSubscriptionVariables, options?: C): AsyncIterable<CreatedAutomateEntryRequestSubscription>;
124199
124233
  createdAutomateTask(variables?: CreatedAutomateTaskSubscriptionVariables, options?: C): AsyncIterable<CreatedAutomateTaskSubscription>;
124200
124234
  deletedAutomateTask(variables?: DeletedAutomateTaskSubscriptionVariables, options?: C): AsyncIterable<DeletedAutomateTaskSubscription>;
@@ -2,11 +2,12 @@ import type { DefineComponent } from "vue";
2
2
  import type { HTTPQLEditorProps } from "./types/httpqlEditor";
3
3
  export { FooterSlot, type FooterSlotContent } from "./types/footer";
4
4
  export type { DialogOptions, DialogComponent } from "./types/window";
5
+ export type { Editor } from "./types/editor";
5
6
  export type { _AnalyticsSDK } from "./private/analytics";
6
7
  export type { MessageViewModeOptions, StreamWsMessageMeta, MessageViewModePropsInternal, MessageViewModeProps, } from "./types/websocket";
7
8
  export type { CommandContext, CommandContextRequest, CommandContextRequestRow, CommandContextResponse, CommandContextBase, } from "./types/commands";
8
9
  export type { MenuItem } from "./types/menu";
9
- export { type AddCollectionIndicatorOptions, type AddSessionIndicatorOptions, type ReplayTab, type ReplaySession, type ReplayEntry, type ReplayCollection, type SendRequestOptions, ReplaySlot, type ReplaySlotContent, type RequestSource, type CurrentReplaySessionChangeEvent, ReplaySessionKind, type ReplayPageContext, } from "./types/replay";
10
+ export { type AddCollectionIndicatorOptions, type AddSessionIndicatorOptions, type ReplayTab, type ReplaySession, type ReplayEntry, type ReplaySelectedExchange, type ReplayWebSocketMessage, type ReplayCollection, type SendRequestOptions, ReplaySlot, type ReplaySlotContent, type RequestSource, type CurrentReplaySessionChangeEvent, ReplaySessionKind, type ReplayPageContext, } from "./types/replay";
10
11
  export type { AutomateSession, AutomateEntry } from "./types/automate";
11
12
  export type { SitemapEntry, SitemapRootEntry, ChildState, } from "./types/sitemap";
12
13
  export { SearchSlot, type SearchSlotContent } from "./types/search";
@@ -1,13 +1,23 @@
1
1
  import type { Extension } from "@codemirror/state";
2
2
  import type { AutomateEntry, AutomateSession } from "../types/automate";
3
- import type { RequestReadableViewModeProps, RequestViewModeOptions } from "../types/request";
4
- import type { ResponseViewModeOptions, ResponseViewModeProps } from "../types/response";
3
+ import type { RequestFull, RequestReadableViewModeProps, RequestViewModeOptions } from "../types/request";
4
+ import type { ResponseFull, ResponseViewModeOptions, ResponseViewModeProps } from "../types/response";
5
5
  import type { AddIndicatorOptions, ID, Indicator } from "../types/utils";
6
6
  /**
7
7
  * Utilities to interact with the Automate page.
8
8
  * @category Automate
9
9
  */
10
10
  export type AutomateSDK = {
11
+ /**
12
+ * Get the currently selected request.
13
+ * @returns The currently selected request.
14
+ */
15
+ getSelectedRequest: () => RequestFull | undefined;
16
+ /**
17
+ * Get the currently selected response.
18
+ * @returns The currently selected response.
19
+ */
20
+ getSelectedResponse: () => ResponseFull | undefined;
11
21
  /**
12
22
  * Add an extension to the request editor.
13
23
  * @param extension The extension to add.
@@ -1,7 +1,7 @@
1
1
  import type { Extension } from "@codemirror/state";
2
2
  import { type Finding } from "../types/findings";
3
- import type { RequestReadableViewModeProps, RequestViewModeOptions } from "../types/request";
4
- import type { ResponseViewModeOptions, ResponseViewModeProps } from "../types/response";
3
+ import type { RequestFull, RequestReadableViewModeProps, RequestViewModeOptions } from "../types/request";
4
+ import type { ResponseFull, ResponseViewModeOptions, ResponseViewModeProps } from "../types/response";
5
5
  import type { ID } from "../types/utils";
6
6
  /**
7
7
  * Utilities to interact with findings
@@ -24,6 +24,16 @@ export type FindingsSDK = {
24
24
  reporter: string;
25
25
  dedupeKey?: string;
26
26
  }) => Promise<Finding | undefined>;
27
+ /**
28
+ * Get the currently selected request.
29
+ * @returns The currently selected request.
30
+ */
31
+ getSelectedRequest: () => RequestFull | undefined;
32
+ /**
33
+ * Get the currently selected response.
34
+ * @returns The currently selected response.
35
+ */
36
+ getSelectedResponse: () => ResponseFull | undefined;
27
37
  /**
28
38
  * Add an extension to the request editor.
29
39
  * @param extension The extension to add.
@@ -1,7 +1,7 @@
1
1
  import type { Extension } from "@codemirror/state";
2
2
  import type { HTTPHistorySlotContent } from "../types/httpHistory";
3
- import type { RequestReadableViewModeProps, RequestViewModeOptions } from "../types/request";
4
- import type { ResponseViewModeOptions, ResponseViewModeProps } from "../types/response";
3
+ import type { RequestFull, RequestReadableViewModeProps, RequestViewModeOptions } from "../types/request";
4
+ import type { ResponseFull, ResponseViewModeOptions, ResponseViewModeProps } from "../types/response";
5
5
  import { type DefineAddToSlotFn } from "../types/slots";
6
6
  import type { HTTPQL, ID } from "../types/utils";
7
7
  /**
@@ -24,6 +24,16 @@ export type HTTPHistorySDK = {
24
24
  * @returns The current scope ID.
25
25
  */
26
26
  getScopeId: () => ID | undefined;
27
+ /**
28
+ * Get the currently selected request.
29
+ * @returns The currently selected request.
30
+ */
31
+ getSelectedRequest: () => RequestFull | undefined;
32
+ /**
33
+ * Get the currently selected response.
34
+ * @returns The currently selected response.
35
+ */
36
+ getSelectedResponse: () => ResponseFull | undefined;
27
37
  /**
28
38
  * Set the current scope.
29
39
  * @param id The ID of the scope to set.
@@ -1,5 +1,5 @@
1
- import type { RequestViewModeOptions, RequestWritableViewModeProps } from "../types/request";
2
- import type { ResponseViewModeOptions, ResponseViewModeProps } from "../types/response";
1
+ import type { RequestFull, RequestViewModeOptions, RequestWritableViewModeProps } from "../types/request";
2
+ import type { ResponseFull, ResponseViewModeOptions, ResponseViewModeProps } from "../types/response";
3
3
  import type { ID } from "../types/utils";
4
4
  /**
5
5
  * Utilities to interact with the Intercept page.
@@ -11,6 +11,16 @@ export type InterceptSDK = {
11
11
  * @returns The current scope ID.
12
12
  */
13
13
  getScopeId: () => ID | undefined;
14
+ /**
15
+ * Get the currently selected request.
16
+ * @returns The currently selected request.
17
+ */
18
+ getSelectedRequest: () => RequestFull | undefined;
19
+ /**
20
+ * Get the currently selected response.
21
+ * @returns The currently selected response.
22
+ */
23
+ getSelectedResponse: () => ResponseFull | undefined;
14
24
  /**
15
25
  * Set the current scope.
16
26
  * @param scopeId The ID of the scope to set.
@@ -1,7 +1,7 @@
1
1
  import { type Extension } from "@codemirror/state";
2
- import { type AddCollectionIndicatorOptions, type AddSessionIndicatorOptions, type CurrentReplaySessionChangeEvent, type OpenTabOptions, type ReplayCollection, type ReplayCollectionCreatedEvent, type ReplayEntry, type ReplaySession, type ReplaySessionCreatedEvent, type ReplaySessionKind, type ReplaySlotContent, type ReplayTab, type RequestSource, type SendRequestOptions } from "../types/replay";
3
- import type { RequestViewModeOptions, RequestWritableViewModeProps } from "../types/request";
4
- import type { ResponseViewModeOptions, ResponseViewModeProps } from "../types/response";
2
+ import { type AddCollectionIndicatorOptions, type AddSessionIndicatorOptions, type CurrentReplaySessionChangeEvent, type OpenTabOptions, type ReplayCollection, type ReplayCollectionCreatedEvent, type ReplayEntry, type ReplaySelectedExchange, type ReplaySession, type ReplaySessionCreatedEvent, type ReplaySessionKind, type ReplaySlotContent, type ReplayTab, type RequestSource, type SendRequestOptions } from "../types/replay";
3
+ import type { RequestFull, RequestViewModeOptions, RequestWritableViewModeProps } from "../types/request";
4
+ import type { ResponseFull, ResponseViewModeOptions, ResponseViewModeProps } from "../types/response";
5
5
  import { type DefineAddToSlotFn } from "../types/slots";
6
6
  import type { ID, Indicator, ListenerHandle } from "../types/utils";
7
7
  import type { MessageViewModeOptions, MessageViewModeProps } from "../types/websocket";
@@ -63,6 +63,21 @@ export type ReplaySDK = {
63
63
  * ```
64
64
  */
65
65
  getCurrentEntry: () => ReplayEntry | undefined;
66
+ /**
67
+ * Get the currently selected Replay exchange.
68
+ * @returns The currently selected Replay exchange.
69
+ */
70
+ getSelectedExchange: () => ReplaySelectedExchange | undefined;
71
+ /**
72
+ * Get the currently selected request.
73
+ * @returns The currently selected request.
74
+ */
75
+ getSelectedRequest: () => RequestFull | undefined;
76
+ /**
77
+ * Get the currently selected response.
78
+ * @returns The currently selected response.
79
+ */
80
+ getSelectedResponse: () => ResponseFull | undefined;
66
81
  /**
67
82
  * Rename a session.
68
83
  * @param id The ID of the session to rename.
@@ -1,6 +1,6 @@
1
1
  import type { Extension } from "@codemirror/state";
2
- import type { RequestReadableViewModeProps, RequestViewModeOptions } from "../types/request";
3
- import type { ResponseViewModeOptions, ResponseViewModeProps } from "../types/response";
2
+ import type { RequestFull, RequestReadableViewModeProps, RequestViewModeOptions } from "../types/request";
3
+ import type { ResponseFull, ResponseViewModeOptions, ResponseViewModeProps } from "../types/response";
4
4
  import type { SearchSlot, SearchSlotContent } from "../types/search";
5
5
  import type { HTTPQL, ID } from "../types/utils";
6
6
  /**
@@ -23,6 +23,16 @@ export type SearchSDK = {
23
23
  * @returns The current scope ID.
24
24
  */
25
25
  getScopeId: () => ID | undefined;
26
+ /**
27
+ * Get the currently selected request.
28
+ * @returns The currently selected request.
29
+ */
30
+ getSelectedRequest: () => RequestFull | undefined;
31
+ /**
32
+ * Get the currently selected response.
33
+ * @returns The currently selected response.
34
+ */
35
+ getSelectedResponse: () => ResponseFull | undefined;
26
36
  /**
27
37
  * Set the current scope.
28
38
  * @param id The ID of the scope to set.
@@ -1,6 +1,6 @@
1
1
  import type { Extension } from "@codemirror/state";
2
- import type { RequestReadableViewModeProps, RequestViewModeOptions } from "../types/request";
3
- import type { ResponseViewModeOptions, ResponseViewModeProps } from "../types/response";
2
+ import type { RequestFull, RequestReadableViewModeProps, RequestViewModeOptions } from "../types/request";
3
+ import type { ResponseFull, ResponseViewModeOptions, ResponseViewModeProps } from "../types/response";
4
4
  import type { SitemapEntry, SitemapEntryChildStateUpdateEvent, SitemapRootEntry } from "../types/sitemap";
5
5
  import type { AddIndicatorOptions, ID, Indicator, ListenerHandle } from "../types/utils";
6
6
  /**
@@ -39,6 +39,16 @@ export type SitemapSDK = {
39
39
  * @returns The current scope ID.
40
40
  */
41
41
  getScopeId: () => ID | undefined;
42
+ /**
43
+ * Get the currently selected request.
44
+ * @returns The currently selected request.
45
+ */
46
+ getSelectedRequest: () => RequestFull | undefined;
47
+ /**
48
+ * Get the currently selected response.
49
+ * @returns The currently selected response.
50
+ */
51
+ getSelectedResponse: () => ResponseFull | undefined;
42
52
  /**
43
53
  * Set the current scope.
44
54
  * @param id The ID of the scope to set.
@@ -11,6 +11,16 @@ export type WindowSDK = {
11
11
  * @returns The active editor.
12
12
  */
13
13
  getActiveEditor: () => Editor | undefined;
14
+ /**
15
+ * Get the active request editor.
16
+ * @returns The active request editor.
17
+ */
18
+ getActiveRequestEditor: () => Editor | undefined;
19
+ /**
20
+ * Get the active response editor.
21
+ * @returns The active response editor.
22
+ */
23
+ getActiveResponseEditor: () => Editor | undefined;
14
24
  /**
15
25
  * Show a toast message.
16
26
  * @param message The message to show.
@@ -1,3 +1,5 @@
1
+ import type { RequestFull } from "./request";
2
+ import type { ResponseFull } from "./response";
1
3
  import { type ButtonSlotContent, type CommandSlotContent, type CustomSlotContent, type SlotContentProps, type SlotContentPropsGroup } from "./slots";
2
4
  import { type AddIndicatorOptions, type ID, type Selection } from "./utils";
3
5
  /**
@@ -110,6 +112,35 @@ export type ReplayEntry = {
110
112
  */
111
113
  requestId?: ID;
112
114
  };
115
+ /**
116
+ * The currently selected Replay exchange.
117
+ * @category Replay
118
+ */
119
+ export type ReplaySelectedExchange = {
120
+ kind: typeof ReplaySessionKind.Http;
121
+ entryId: ID;
122
+ sessionId: ID;
123
+ request: RequestFull;
124
+ response?: ResponseFull;
125
+ } | {
126
+ kind: typeof ReplaySessionKind.Ws;
127
+ entryId: ID;
128
+ sessionId: ID;
129
+ streamId?: ID;
130
+ activeTab: "http-upgrade" | "messages";
131
+ upgradeRequest?: RequestFull;
132
+ upgradeResponse?: ResponseFull;
133
+ message?: ReplayWebSocketMessage;
134
+ };
135
+ /**
136
+ * The currently edited WebSocket message in Replay.
137
+ * @category Replay
138
+ */
139
+ export type ReplayWebSocketMessage = {
140
+ raw: string;
141
+ direction: "CLIENT" | "SERVER";
142
+ format: "BINARY" | "CLOSE" | "PING" | "PONG" | "TEXT";
143
+ };
113
144
  /**
114
145
  * A collection in Replay.
115
146
  * @category Replay