@caido/sdk-frontend 0.57.1-beta.4 → 0.57.1-beta.6
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/__generated__/graphql-sdk.d.ts +82205 -15969
- package/src/types/index.d.ts +1 -2
- package/src/types/sdks/replay.d.ts +21 -5
- package/src/types/types/replay.d.ts +13 -0
package/src/types/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export type { _AnalyticsSDK } from "./private/analytics";
|
|
|
4
4
|
export type { MessageViewModeOptions, StreamWsMessageMeta, MessageViewModePropsInternal, MessageViewModeProps, } from "./types/websocket";
|
|
5
5
|
export type { CommandContext, CommandContextRequest, CommandContextRequestRow, CommandContextResponse, CommandContextBase, } from "./types/commands";
|
|
6
6
|
export type { MenuItem } from "./types/menu";
|
|
7
|
-
export { type AddCollectionIndicatorOptions, type AddSessionIndicatorOptions, type ReplayTab, type ReplaySession, type ReplayEntry, type ReplayCollection, type SendRequestOptions, ReplaySlot, type ReplaySlotContent, type RequestSource, type CurrentReplaySessionChangeEvent, } from "./types/replay";
|
|
7
|
+
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";
|
|
8
8
|
export type { AutomateSession, AutomateEntry } from "./types/automate";
|
|
9
9
|
export type { SitemapEntry, SitemapRootEntry, ChildState, } from "./types/sitemap";
|
|
10
10
|
export { SearchSlot, type SearchSlotContent } from "./types/search";
|
|
@@ -43,7 +43,6 @@ export type { FindingsPageContext } from "./types/findings";
|
|
|
43
43
|
export type { HTTPHistoryPageContext } from "./types/httpHistory";
|
|
44
44
|
export type { InterceptPageContext } from "./types/intercept";
|
|
45
45
|
export type { ProjectsPageContext } from "./types/projects";
|
|
46
|
-
export type { ReplayPageContext } from "./types/replay";
|
|
47
46
|
export type { ScopePageContext } from "./types/scopes";
|
|
48
47
|
export type { SearchPageContext } from "./types/search";
|
|
49
48
|
export type { SitemapPageContext } from "./types/sitemap";
|
|
@@ -1,5 +1,5 @@
|
|
|
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 ReplaySlotContent, type ReplayTab, type RequestSource, type SendRequestOptions } from "../types/replay";
|
|
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
3
|
import type { RequestViewModeOptions, RequestWritableViewModeProps } from "../types/request";
|
|
4
4
|
import type { ResponseViewModeOptions, ResponseViewModeProps } from "../types/response";
|
|
5
5
|
import { type DefineAddToSlotFn } from "../types/slots";
|
|
@@ -27,9 +27,13 @@ export type ReplaySDK = {
|
|
|
27
27
|
getTabs: () => ReplayTab[];
|
|
28
28
|
/**
|
|
29
29
|
* Get the list of all replay sessions.
|
|
30
|
+
* @param options The options for getting the sessions.
|
|
31
|
+
* @param options.collectionId The ID of the collection to get the sessions for.
|
|
30
32
|
* @returns The list of all replay sessions.
|
|
31
33
|
*/
|
|
32
|
-
getSessions: (
|
|
34
|
+
getSessions: (options?: {
|
|
35
|
+
collectionId?: ID;
|
|
36
|
+
}) => ReplaySession[];
|
|
33
37
|
/**
|
|
34
38
|
* Get the currently selected replay session.
|
|
35
39
|
* @returns The currently selected replay session, or undefined if no session is selected.
|
|
@@ -79,10 +83,22 @@ export type ReplaySDK = {
|
|
|
79
83
|
deleteSessions: (sessionIds: ID[]) => Promise<ID[]>;
|
|
80
84
|
/**
|
|
81
85
|
* Create a session.
|
|
82
|
-
* @param
|
|
83
|
-
* @param collectionId The ID of the collection to add the
|
|
86
|
+
* @param source The source of the session to create.
|
|
87
|
+
* @param collectionId The ID of the collection to add the session to.
|
|
88
|
+
* @example
|
|
89
|
+
* ```ts
|
|
90
|
+
* sdk.replay.createSession({
|
|
91
|
+
* type: "Raw",
|
|
92
|
+
* raw: "GET / HTTP/1.1\r\nHost: example.com\r\n\r\n",
|
|
93
|
+
* connectionInfo: {
|
|
94
|
+
* host: "example.com",
|
|
95
|
+
* port: 443,
|
|
96
|
+
* isTLS: true,
|
|
97
|
+
* },
|
|
98
|
+
* });
|
|
99
|
+
* ```
|
|
84
100
|
*/
|
|
85
|
-
createSession: (source: RequestSource, collectionId?: ID) => Promise<
|
|
101
|
+
createSession: (source: RequestSource, collectionId?: ID, sessionKind?: ReplaySessionKind) => Promise<ReplaySession>;
|
|
86
102
|
/**
|
|
87
103
|
* Get the list of all replay collections.
|
|
88
104
|
* @returns The list of all replay collections.
|
|
@@ -224,6 +224,19 @@ export type AddSessionIndicatorOptions = AddIndicatorOptions & {
|
|
|
224
224
|
* @category Replay
|
|
225
225
|
*/
|
|
226
226
|
export type AddCollectionIndicatorOptions = AddIndicatorOptions;
|
|
227
|
+
/**
|
|
228
|
+
* The kind of a replay session.
|
|
229
|
+
* @category Replay
|
|
230
|
+
*/
|
|
231
|
+
export declare const ReplaySessionKind: {
|
|
232
|
+
readonly Http: "HTTP";
|
|
233
|
+
readonly Ws: "WS";
|
|
234
|
+
};
|
|
235
|
+
/**
|
|
236
|
+
* The kind of a replay session.
|
|
237
|
+
* @category Replay
|
|
238
|
+
*/
|
|
239
|
+
export type ReplaySessionKind = (typeof ReplaySessionKind)[keyof typeof ReplaySessionKind];
|
|
227
240
|
/**
|
|
228
241
|
* A unique replay session identifier.
|
|
229
242
|
* @category Replay
|