@caido/sdk-frontend 0.51.2-beta.12 → 0.51.2-beta.14

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.12",
3
+ "version": "0.51.2-beta.14",
4
4
  "description": "Typing for the Caido Frontend SDK",
5
5
  "author": "Caido Labs Inc. <dev@caido.io>",
6
6
  "license": "MIT",
@@ -1214,6 +1214,7 @@ export type DeletedAutomateTaskPayload = {
1214
1214
  deletedAutomateTaskId: Scalars["ID"]["output"];
1215
1215
  error?: Maybe<DeletedAutomateTaskError>;
1216
1216
  snapshot: Scalars["Snapshot"]["output"];
1217
+ status: TaskStatus;
1217
1218
  };
1218
1219
  export type DeletedBackupPayload = {
1219
1220
  deletedBackupId: Scalars["ID"]["output"];
@@ -1424,6 +1425,7 @@ export type FinishedRestoreBackupTaskSuccess = {
1424
1425
  };
1425
1426
  export type FinishedTaskPayload = {
1426
1427
  error?: Maybe<UserError>;
1428
+ status: TaskStatus;
1427
1429
  task: Task;
1428
1430
  };
1429
1431
  export type ForwardInterceptMessageInput = {
@@ -4102,6 +4104,12 @@ export type TaskInProgressUserError = UserError & {
4102
4104
  code: Scalars["String"]["output"];
4103
4105
  taskId: Scalars["ID"]["output"];
4104
4106
  };
4107
+ export declare const TaskStatus: {
4108
+ readonly Cancelled: "CANCELLED";
4109
+ readonly Done: "DONE";
4110
+ readonly Error: "ERROR";
4111
+ };
4112
+ export type TaskStatus = (typeof TaskStatus)[keyof typeof TaskStatus];
4105
4113
  export type TestAiProviderError = AiUserError | OtherUserError;
4106
4114
  export type TestAiProviderInput = {
4107
4115
  anthropic: AiProviderAnthropicInput;
@@ -6749,6 +6757,7 @@ export type DeletedAutomateTaskSubscription = {
6749
6757
  deletedAutomateTask: {
6750
6758
  deletedAutomateTaskId: string;
6751
6759
  snapshot: number;
6760
+ status: TaskStatus;
6752
6761
  };
6753
6762
  };
6754
6763
  export type UpdatedAutomateTaskSubscriptionVariables = Exact<{
@@ -10231,6 +10240,7 @@ export type InstanceSettingsFullFragment = {
10231
10240
  } | undefined | null;
10232
10241
  openai?: {
10233
10242
  apiKey: string;
10243
+ url?: string | undefined | null;
10234
10244
  } | undefined | null;
10235
10245
  openrouter?: {
10236
10246
  apiKey: string;
@@ -10263,6 +10273,7 @@ export type SetInstanceSettingsMutation = {
10263
10273
  } | undefined | null;
10264
10274
  openai?: {
10265
10275
  apiKey: string;
10276
+ url?: string | undefined | null;
10266
10277
  } | undefined | null;
10267
10278
  openrouter?: {
10268
10279
  apiKey: string;
@@ -10301,6 +10312,7 @@ export type InstanceSettingsQuery = {
10301
10312
  } | undefined | null;
10302
10313
  openai?: {
10303
10314
  apiKey: string;
10315
+ url?: string | undefined | null;
10304
10316
  } | undefined | null;
10305
10317
  openrouter?: {
10306
10318
  apiKey: string;
@@ -10324,6 +10336,7 @@ export type UpdatedInstanceSettingsSubscription = {
10324
10336
  } | undefined | null;
10325
10337
  openai?: {
10326
10338
  apiKey: string;
10339
+ url?: string | undefined | null;
10327
10340
  } | undefined | null;
10328
10341
  openrouter?: {
10329
10342
  apiKey: string;
@@ -23098,7 +23111,7 @@ export declare const InterceptEntryFullFragmentDoc = "\n fragment interceptEn
23098
23111
  export declare const InterceptEntryEdgeMetaFragmentDoc = "\n fragment interceptEntryEdgeMeta on InterceptEntryEdge {\n __typename\n cursor\n node {\n ...interceptEntryMeta\n }\n}\n ";
23099
23112
  export declare const DeleteInterceptEntriesTaskFullFragmentDoc = "\n fragment deleteInterceptEntriesTaskFull on DeleteInterceptEntriesTask {\n __typename\n id\n deletedEntryIds\n}\n ";
23100
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 ";
23101
- 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 ";
23102
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 ";
23103
23116
  export declare const InterceptRequestMessageFullFragmentDoc = "\n fragment interceptRequestMessageFull on InterceptRequestMessage {\n __typename\n id\n request {\n ...requestFull\n }\n}\n ";
23104
23117
  export declare const InterceptRequestMessageMetaFragmentDoc = "\n fragment interceptRequestMessageMeta on InterceptRequestMessage {\n __typename\n id\n request {\n ...requestMeta\n }\n}\n ";
@@ -23231,7 +23244,7 @@ export declare const ResumeAutomateTaskDocument = "\n mutation resumeAutomate
23231
23244
  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 ";
23232
23245
  export declare const CreatedAutomateEntryRequestDocument = "\n subscription createdAutomateEntryRequest($order: AutomateEntryRequestOrderInput, $filter: HTTPQL) {\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}\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 ";
23233
23246
  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 ";
23234
- export declare const DeletedAutomateTaskDocument = "\n subscription deletedAutomateTask {\n deletedAutomateTask {\n deletedAutomateTaskId\n snapshot\n }\n}\n ";
23247
+ export declare const DeletedAutomateTaskDocument = "\n subscription deletedAutomateTask {\n deletedAutomateTask {\n deletedAutomateTaskId\n snapshot\n status\n }\n}\n ";
23235
23248
  export declare const UpdatedAutomateTaskDocument = "\n subscription updatedAutomateTask {\n updatedAutomateTask {\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 ";
23236
23249
  export declare const CreatedAutomateEntryDocument = "\n subscription createdAutomateEntry {\n createdAutomateEntry {\n automateEntryEdge {\n ...automateEntryEdgeMeta\n }\n }\n}\n \n fragment automateEntryEdgeMeta on AutomateEntryEdge {\n node {\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 ";
23237
23250
  export declare const UpdatedAutomateEntryDocument = "\n subscription updatedAutomateEntry {\n updatedAutomateEntry {\n automateEntryEdge {\n ...automateEntryEdgeMeta\n }\n snapshot\n }\n}\n \n fragment automateEntryEdgeMeta on AutomateEntryEdge {\n node {\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 ";
@@ -23340,10 +23353,10 @@ export declare const DeleteHostedFileDocument = "\n mutation deleteHostedFile
23340
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 ";
23341
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 ";
23342
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 ";
23343
- 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 ";
23344
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 ";
23345
- 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 ";
23346
- 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 ";
23347
23360
  export declare const ForwardInterceptMessageDocument = "\n mutation forwardInterceptMessage($id: ID!, $input: ForwardInterceptMessageInput) {\n forwardInterceptMessage(id: $id, input: $input) {\n forwardedId\n }\n}\n ";
23348
23361
  export declare const DropInterceptMesageDocument = "\n mutation dropInterceptMesage($id: ID!) {\n dropInterceptMessage(id: $id) {\n droppedId\n }\n}\n ";
23349
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 ";