@caido/sdk-frontend 0.46.1-beta.5 → 0.46.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caido/sdk-frontend",
3
- "version": "0.46.1-beta.5",
3
+ "version": "0.46.1-beta.6",
4
4
  "description": "Typing for the Caido Frontend SDK",
5
5
  "author": "Caido Labs Inc. <dev@caido.io>",
6
6
  "license": "MIT",
@@ -22,6 +22,7 @@ import type { SitemapSDK } from "./sitemap";
22
22
  import type { StorageSDK } from "./storage";
23
23
  import type { UISDK } from "./ui";
24
24
  import type { WindowSDK } from "./window";
25
+ import type { WorkflowSDK } from "./workflows";
25
26
  export type { CommandContext } from "./commands";
26
27
  export type { MenuItem } from "./menu";
27
28
  export type { ReplayTab, ReplaySession, ReplayCollection } from "./replay";
@@ -31,6 +32,7 @@ export type { HTTPQL, ID } from "./utils";
31
32
  export type { MatchReplaceRule, MatchReplaceCollection, MatchReplaceSection, MatchReplaceSectionRequestBody, MatchReplaceSectionRequestFirstLine, MatchReplaceSectionRequestHeader, MatchReplaceSectionRequestMethod, MatchReplaceSectionRequestPath, MatchReplaceSectionRequestQuery, MatchReplaceSectionResponseBody, MatchReplaceSectionResponseFirstLine, MatchReplaceSectionResponseHeader, MatchReplaceSectionResponseStatusCode, MatchReplaceOperationStatusCode, MatchReplaceOperationStatusCodeUpdate, MatchReplaceOperationQuery, MatchReplaceOperationQueryRaw, MatchReplaceOperationQueryAdd, MatchReplaceOperationQueryRemove, MatchReplaceOperationQueryUpdate, MatchReplaceOperationPath, MatchReplaceOperationPathRaw, MatchReplaceOperationMethod, MatchReplaceOperationMethodUpdate, MatchReplaceOperationHeader, MatchReplaceOperationHeaderRaw, MatchReplaceOperationHeaderAdd, MatchReplaceOperationHeaderRemove, MatchReplaceOperationHeaderUpdate, MatchReplaceOperationBody, MatchReplaceOperationBodyRaw, MatchReplaceOperationFirstLine, MatchReplaceOperationFirstLineRaw, MatchReplaceReplacer, MatchReplaceReplacerTerm, MatchReplaceReplacerWorkflow, MatchReplaceMatcherName, MatchReplaceMatcherRaw, MatchReplaceMatcherRawFull, MatchReplaceMatcherRawRegex, MatchReplaceMatcherRawValue, } from "./matchReplace";
32
33
  export type { Scope } from "./scopes";
33
34
  export type { EnvironmentVariable } from "./environment";
35
+ export type { Workflow, WorkflowKind } from "./workflows";
34
36
  /**
35
37
  * Utilities for frontend plugins.
36
38
  * @category SDK
@@ -132,4 +134,8 @@ export type API<T extends BackendEndpoints = Record<string, never>, E extends Ba
132
134
  * Utilities to interact with the runtime.
133
135
  */
134
136
  runtime: RuntimeSDK;
137
+ /**
138
+ * Utilities to interact with workflows.
139
+ */
140
+ workflows: WorkflowSDK;
135
141
  };
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Utilities to interact with workflows.
3
+ * @category Workflows
4
+ */
5
+ export type WorkflowSDK = {
6
+ /**
7
+ * Get all workflows.
8
+ * @returns All workflows.
9
+ */
10
+ getWorkflows: () => Workflow[];
11
+ };
12
+ /**
13
+ * A workflow
14
+ * @category Workflows
15
+ */
16
+ export type Workflow = {
17
+ id: string;
18
+ name: string;
19
+ description: string;
20
+ kind: WorkflowKind;
21
+ };
22
+ /**
23
+ * The kind of workflow.
24
+ * @category Workflows
25
+ */
26
+ export type WorkflowKind = "Convert" | "Active" | "Passive";