@caido/sdk-frontend 0.49.1-beta.1 → 0.49.1-beta.3
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/index.d.ts +17 -150
- package/src/types/{assets.d.ts → sdks/assets.d.ts} +1 -11
- package/src/types/{backend.d.ts → sdks/backend.d.ts} +2 -15
- package/src/types/{commandPalette.d.ts → sdks/commandPalette.d.ts} +2 -1
- package/src/types/sdks/commands.d.ts +31 -0
- package/src/types/{environment.d.ts → sdks/environment.d.ts} +1 -14
- package/src/types/{files.d.ts → sdks/files.d.ts} +1 -30
- package/src/types/{filters.d.ts → sdks/filters.d.ts} +2 -24
- package/src/types/{findings.d.ts → sdks/findings.d.ts} +2 -32
- package/src/types/{footer.d.ts → sdks/footer.d.ts} +3 -10
- package/src/types/{httpHistory.d.ts → sdks/httpHistory.d.ts} +7 -1
- package/src/types/sdks/index.d.ts +137 -0
- package/src/types/{intercept.d.ts → sdks/intercept.d.ts} +1 -1
- package/src/types/sdks/matchReplace.d.ts +87 -0
- package/src/types/sdks/menu.d.ts +21 -0
- package/src/types/{replay.d.ts → sdks/replay.d.ts} +3 -54
- package/src/types/{scopes.d.ts → sdks/scopes.d.ts} +2 -23
- package/src/types/{search.d.ts → sdks/search.d.ts} +1 -1
- package/src/types/{shortcuts.d.ts → sdks/shortcuts.d.ts} +1 -1
- package/src/types/{sidebar.d.ts → sdks/sidebar.d.ts} +2 -13
- package/src/types/{sitemap.d.ts → sdks/sitemap.d.ts} +1 -1
- package/src/types/{storage.d.ts → sdks/storage.d.ts} +1 -1
- package/src/types/{ui.d.ts → sdks/ui.d.ts} +2 -2
- package/src/types/{window.d.ts → sdks/window.d.ts} +3 -10
- package/src/types/{workflows.d.ts → sdks/workflows.d.ts} +2 -25
- package/src/types/types/assets.d.ts +10 -0
- package/src/types/types/backend.d.ts +14 -0
- package/src/types/{commands.d.ts → types/commands.d.ts} +5 -28
- package/src/types/types/environment.d.ts +14 -0
- package/src/types/types/files.d.ts +30 -0
- package/src/types/types/filter.d.ts +24 -0
- package/src/types/types/findings.d.ts +31 -0
- package/src/types/types/footer.d.ts +10 -0
- package/src/types/types/json.d.ts +9 -0
- package/src/types/{matchReplace.d.ts → types/matchReplace.d.ts} +1 -86
- package/src/types/{menu.d.ts → types/menu.d.ts} +2 -21
- package/src/types/types/replay.d.ts +53 -0
- package/src/types/types/request.d.ts +11 -0
- package/src/types/types/scopes.d.ts +23 -0
- package/src/types/types/sidebar.d.ts +11 -0
- package/src/types/{slots.d.ts → types/slots.d.ts} +1 -1
- package/src/types/{utils.d.ts → types/utils.d.ts} +0 -16
- package/src/types/types/window.d.ts +8 -0
- package/src/types/types/workflows.d.ts +25 -0
- /package/src/types/{navigation.d.ts → sdks/navigation.d.ts} +0 -0
- /package/src/types/{runtime.d.ts → sdks/runtime.d.ts} +0 -0
- /package/src/types/{editor.d.ts → types/editor.d.ts} +0 -0
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
type JSONPrimitive = string | number | boolean | null | undefined;
|
|
2
1
|
/**
|
|
3
2
|
* A unique Caido identifier per type.
|
|
4
3
|
*/
|
|
5
4
|
export type ID = string & {
|
|
6
5
|
__id?: never;
|
|
7
6
|
};
|
|
8
|
-
/**
|
|
9
|
-
* A unique command identifier.
|
|
10
|
-
* @example "my-super-command"
|
|
11
|
-
*/
|
|
12
|
-
export type CommandID = string & {
|
|
13
|
-
__commandId?: never;
|
|
14
|
-
};
|
|
15
7
|
/**
|
|
16
8
|
* An HTTPQL expression.
|
|
17
9
|
* @example `req.method.eq:"POST"`
|
|
@@ -26,13 +18,6 @@ export type HTTPQL = string & {
|
|
|
26
18
|
export type Icon = string & {
|
|
27
19
|
__icon?: never;
|
|
28
20
|
};
|
|
29
|
-
export type JSONValue = JSONPrimitive | JSONValue[] | {
|
|
30
|
-
[key: string]: JSONValue;
|
|
31
|
-
};
|
|
32
|
-
type NotAssignableToJson = bigint | symbol | Function;
|
|
33
|
-
export type JSONCompatible<T> = unknown extends T ? never : {
|
|
34
|
-
[P in keyof T]: T[P] extends JSONValue ? T[P] : T[P] extends NotAssignableToJson ? never : JSONCompatible<T[P]>;
|
|
35
|
-
};
|
|
36
21
|
export type PromisifiedReturnType<T extends (...args: unknown[]) => unknown> = ReturnType<T> extends Promise<infer U> ? Promise<U> : Promise<ReturnType<T>>;
|
|
37
22
|
/**
|
|
38
23
|
* A handle for a listener.
|
|
@@ -43,4 +28,3 @@ export type ListenerHandle = {
|
|
|
43
28
|
*/
|
|
44
29
|
stop: () => void;
|
|
45
30
|
};
|
|
46
|
-
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type ID } from "./utils";
|
|
2
|
+
/**
|
|
3
|
+
* A workflow
|
|
4
|
+
* @category Workflows
|
|
5
|
+
*/
|
|
6
|
+
export type Workflow = {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
description: string;
|
|
10
|
+
kind: WorkflowKind;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* The kind of workflow.
|
|
14
|
+
* @category Workflows
|
|
15
|
+
*/
|
|
16
|
+
export type WorkflowKind = "Convert" | "Active" | "Passive";
|
|
17
|
+
export type OnCreatedWorkflowCallback = (event: {
|
|
18
|
+
workflow: Workflow;
|
|
19
|
+
}) => void;
|
|
20
|
+
export type OnUpdatedWorkflowCallback = (event: {
|
|
21
|
+
workflow: Workflow;
|
|
22
|
+
}) => void;
|
|
23
|
+
export type OnDeletedWorkflowCallback = (event: {
|
|
24
|
+
id: ID;
|
|
25
|
+
}) => void;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|