@caido/sdk-frontend 0.51.2-beta.13 → 0.51.2-beta.15

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.13",
3
+ "version": "0.51.2-beta.15",
4
4
  "description": "Typing for the Caido Frontend SDK",
5
5
  "author": "Caido Labs Inc. <dev@caido.io>",
6
6
  "license": "MIT",
@@ -10240,6 +10240,7 @@ export type InstanceSettingsFullFragment = {
10240
10240
  } | undefined | null;
10241
10241
  openai?: {
10242
10242
  apiKey: string;
10243
+ url?: string | undefined | null;
10243
10244
  } | undefined | null;
10244
10245
  openrouter?: {
10245
10246
  apiKey: string;
@@ -10272,6 +10273,7 @@ export type SetInstanceSettingsMutation = {
10272
10273
  } | undefined | null;
10273
10274
  openai?: {
10274
10275
  apiKey: string;
10276
+ url?: string | undefined | null;
10275
10277
  } | undefined | null;
10276
10278
  openrouter?: {
10277
10279
  apiKey: string;
@@ -10310,6 +10312,7 @@ export type InstanceSettingsQuery = {
10310
10312
  } | undefined | null;
10311
10313
  openai?: {
10312
10314
  apiKey: string;
10315
+ url?: string | undefined | null;
10313
10316
  } | undefined | null;
10314
10317
  openrouter?: {
10315
10318
  apiKey: string;
@@ -10333,6 +10336,7 @@ export type UpdatedInstanceSettingsSubscription = {
10333
10336
  } | undefined | null;
10334
10337
  openai?: {
10335
10338
  apiKey: string;
10339
+ url?: string | undefined | null;
10336
10340
  } | undefined | null;
10337
10341
  openrouter?: {
10338
10342
  apiKey: string;
@@ -23107,7 +23111,7 @@ export declare const InterceptEntryFullFragmentDoc = "\n fragment interceptEn
23107
23111
  export declare const InterceptEntryEdgeMetaFragmentDoc = "\n fragment interceptEntryEdgeMeta on InterceptEntryEdge {\n __typename\n cursor\n node {\n ...interceptEntryMeta\n }\n}\n ";
23108
23112
  export declare const DeleteInterceptEntriesTaskFullFragmentDoc = "\n fragment deleteInterceptEntriesTaskFull on DeleteInterceptEntriesTask {\n __typename\n id\n deletedEntryIds\n}\n ";
23109
23113
  export declare const HostedFileFullFragmentDoc = "\n fragment hostedFileFull on HostedFile {\n __typename\n id\n name\n path\n size\n status\n updatedAt\n createdAt\n}\n ";
23110
- export declare const InstanceSettingsFullFragmentDoc = "\n fragment instanceSettingsFull on InstanceSettings {\n __typename\n aiProviders {\n anthropic {\n apiKey\n }\n google {\n apiKey\n }\n openai {\n apiKey\n }\n openrouter {\n apiKey\n }\n }\n}\n ";
23114
+ export declare const InstanceSettingsFullFragmentDoc = "\n fragment instanceSettingsFull on InstanceSettings {\n __typename\n aiProviders {\n anthropic {\n apiKey\n }\n google {\n apiKey\n }\n openai {\n apiKey\n url\n }\n openrouter {\n apiKey\n }\n }\n}\n ";
23111
23115
  export declare const TestAiProviderPayloadFullFragmentDoc = "\n fragment testAiProviderPayloadFull on TestAIProviderPayload {\n error {\n ... on AIUserError {\n code\n message\n reason\n }\n ... on OtherUserError {\n code\n }\n }\n success\n}\n ";
23112
23116
  export declare const InterceptRequestMessageFullFragmentDoc = "\n fragment interceptRequestMessageFull on InterceptRequestMessage {\n __typename\n id\n request {\n ...requestFull\n }\n}\n ";
23113
23117
  export declare const InterceptRequestMessageMetaFragmentDoc = "\n fragment interceptRequestMessageMeta on InterceptRequestMessage {\n __typename\n id\n request {\n ...requestMeta\n }\n}\n ";
@@ -23349,10 +23353,10 @@ export declare const DeleteHostedFileDocument = "\n mutation deleteHostedFile
23349
23353
  export declare const RenameHostedFileDocument = "\n mutation renameHostedFile($id: ID!, $name: String!) {\n renameHostedFile(id: $id, name: $name) {\n hostedFile {\n ...hostedFileFull\n }\n }\n}\n \n fragment hostedFileFull on HostedFile {\n __typename\n id\n name\n path\n size\n status\n updatedAt\n createdAt\n}\n ";
23350
23354
  export declare const UploadHostedFileDocument = "\n mutation uploadHostedFile($input: UploadHostedFileInput!) {\n uploadHostedFile(input: $input) {\n hostedFile {\n ...hostedFileFull\n }\n }\n}\n \n fragment hostedFileFull on HostedFile {\n __typename\n id\n name\n path\n size\n status\n updatedAt\n createdAt\n}\n ";
23351
23355
  export declare const HostedFilesDocument = "\n query hostedFiles {\n hostedFiles {\n ...hostedFileFull\n }\n}\n \n fragment hostedFileFull on HostedFile {\n __typename\n id\n name\n path\n size\n status\n updatedAt\n createdAt\n}\n ";
23352
- export declare const SetInstanceSettingsDocument = "\n mutation setInstanceSettings($input: SetInstanceSettingsInput!) {\n setInstanceSettings(input: $input) {\n settings {\n ...instanceSettingsFull\n }\n }\n}\n \n fragment instanceSettingsFull on InstanceSettings {\n __typename\n aiProviders {\n anthropic {\n apiKey\n }\n google {\n apiKey\n }\n openai {\n apiKey\n }\n openrouter {\n apiKey\n }\n }\n}\n ";
23356
+ export declare const SetInstanceSettingsDocument = "\n mutation setInstanceSettings($input: SetInstanceSettingsInput!) {\n setInstanceSettings(input: $input) {\n settings {\n ...instanceSettingsFull\n }\n }\n}\n \n fragment instanceSettingsFull on InstanceSettings {\n __typename\n aiProviders {\n anthropic {\n apiKey\n }\n google {\n apiKey\n }\n openai {\n apiKey\n url\n }\n openrouter {\n apiKey\n }\n }\n}\n ";
23353
23357
  export declare const TestAiProviderDocument = "\n mutation testAiProvider($input: TestAIProviderInput!) {\n testAiProvider(input: $input) {\n ...testAiProviderPayloadFull\n }\n}\n \n fragment testAiProviderPayloadFull on TestAIProviderPayload {\n error {\n ... on AIUserError {\n code\n message\n reason\n }\n ... on OtherUserError {\n code\n }\n }\n success\n}\n ";
23354
- export declare const InstanceSettingsDocument = "\n query instanceSettings {\n instanceSettings {\n ...instanceSettingsFull\n }\n}\n \n fragment instanceSettingsFull on InstanceSettings {\n __typename\n aiProviders {\n anthropic {\n apiKey\n }\n google {\n apiKey\n }\n openai {\n apiKey\n }\n openrouter {\n apiKey\n }\n }\n}\n ";
23355
- export declare const UpdatedInstanceSettingsDocument = "\n subscription updatedInstanceSettings {\n updatedInstanceSettings {\n settings {\n ...instanceSettingsFull\n }\n }\n}\n \n fragment instanceSettingsFull on InstanceSettings {\n __typename\n aiProviders {\n anthropic {\n apiKey\n }\n google {\n apiKey\n }\n openai {\n apiKey\n }\n openrouter {\n apiKey\n }\n }\n}\n ";
23358
+ export declare const InstanceSettingsDocument = "\n query instanceSettings {\n instanceSettings {\n ...instanceSettingsFull\n }\n}\n \n fragment instanceSettingsFull on InstanceSettings {\n __typename\n aiProviders {\n anthropic {\n apiKey\n }\n google {\n apiKey\n }\n openai {\n apiKey\n url\n }\n openrouter {\n apiKey\n }\n }\n}\n ";
23359
+ export declare const UpdatedInstanceSettingsDocument = "\n subscription updatedInstanceSettings {\n updatedInstanceSettings {\n settings {\n ...instanceSettingsFull\n }\n }\n}\n \n fragment instanceSettingsFull on InstanceSettings {\n __typename\n aiProviders {\n anthropic {\n apiKey\n }\n google {\n apiKey\n }\n openai {\n apiKey\n url\n }\n openrouter {\n apiKey\n }\n }\n}\n ";
23356
23360
  export declare const ForwardInterceptMessageDocument = "\n mutation forwardInterceptMessage($id: ID!, $input: ForwardInterceptMessageInput) {\n forwardInterceptMessage(id: $id, input: $input) {\n forwardedId\n }\n}\n ";
23357
23361
  export declare const DropInterceptMesageDocument = "\n mutation dropInterceptMesage($id: ID!) {\n dropInterceptMessage(id: $id) {\n droppedId\n }\n}\n ";
23358
23362
  export declare const SetInterceptOptionsDocument = "\n mutation setInterceptOptions($input: InterceptOptionsInput!) {\n setInterceptOptions(input: $input) {\n options {\n ...interceptOptionsMeta\n }\n }\n}\n \n fragment interceptOptionsMeta on InterceptOptions {\n request {\n ...interceptRequestOptionsMeta\n }\n response {\n ...interceptResponseOptionsMeta\n }\n streamWs {\n ...interceptStreamWsOptionsMeta\n }\n scope {\n ...interceptScopeOptionsMeta\n }\n}\n \n\n fragment interceptRequestOptionsMeta on InterceptRequestOptions {\n enabled\n filter\n}\n \n\n fragment interceptResponseOptionsMeta on InterceptResponseOptions {\n enabled\n filter\n}\n \n\n fragment interceptStreamWsOptionsMeta on InterceptStreamWsOptions {\n enabled\n}\n \n\n fragment interceptScopeOptionsMeta on InterceptScopeOptions {\n scopeId\n}\n ";
@@ -16,3 +16,4 @@ export type { Workflow, WorkflowKind, OnCreatedWorkflowCallback, OnUpdatedWorkfl
16
16
  export type { ListenerHandle } from "./types/utils";
17
17
  export type { AIProvider } from "./types/ai";
18
18
  export type { API } from "./sdks";
19
+ export { Routes } from "./types/navigation";
@@ -1,18 +1,23 @@
1
+ import { type Routes } from "../types/navigation";
1
2
  /**
2
3
  * Utilities to interact with navigation.
3
4
  * @category Navigation
4
5
  */
5
6
  export type NavigationSDK = {
6
7
  /**
7
- * Navigate to a path.
8
- * @param path The path to navigate to.
8
+ * Navigate to a route or path.
9
+ * @param route The route to navigate to. Can be a route ID object or a custom path string.
9
10
  *
10
11
  * @example
11
12
  * ```ts
13
+ * sdk.navigation.goTo({ id: Routes.Replay });
14
+ * sdk.navigation.goTo({ id: Routes.Projects });
12
15
  * sdk.navigation.goTo("/my-plugin-page");
13
16
  * ```
14
17
  */
15
- goTo: (path: string) => void;
18
+ goTo: (route: string | {
19
+ id: Routes;
20
+ }) => void;
16
21
  /**
17
22
  * Add a page to the navigation.
18
23
  * @param path The path of the page.
@@ -0,0 +1,25 @@
1
+ export declare const Routes: {
2
+ readonly Sitemap: "Sitemap";
3
+ readonly Intercept: "Intercept";
4
+ readonly Search: "Search";
5
+ readonly HTTPHistory: "HTTPHistory";
6
+ readonly Websockets: "Websockets";
7
+ readonly Workflows: "Workflows";
8
+ readonly Replay: "Replay";
9
+ readonly Automate: "Automate";
10
+ readonly Projects: "Projects";
11
+ readonly Backups: "Backups";
12
+ readonly MatchReplace: "Tamper";
13
+ readonly Assistant: "Assistant";
14
+ readonly Environment: "Environment";
15
+ readonly Scope: "Scope";
16
+ readonly Filter: "Filter";
17
+ readonly Exports: "Exports";
18
+ readonly Findings: "Findings";
19
+ readonly Files: "Files";
20
+ readonly Plugins: "Plugins";
21
+ readonly Certificate: "Certificate";
22
+ readonly About: "About";
23
+ readonly Settings: "Settings";
24
+ };
25
+ export type Routes = (typeof Routes)[keyof typeof Routes];