@caido/sdk-frontend 0.57.2-beta.1 → 0.57.2-beta.2

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.57.2-beta.1",
3
+ "version": "0.57.2-beta.2",
4
4
  "description": "Typing for the Caido Frontend SDK",
5
5
  "author": "Caido Labs Inc. <dev@caido.io>",
6
6
  "repository": "https://github.com/caido/sdk-js/",
@@ -1447,6 +1447,15 @@ export type EnvironmentVariableKind = (typeof EnvironmentVariableKind)[keyof typ
1447
1447
  export type ExpiredViewerProfilePayload = {
1448
1448
  expiredAt: Scalars["Timestamp"]["output"];
1449
1449
  };
1450
+ export type ExportAutomateEntriesError = OtherUserError | PermissionDeniedUserError;
1451
+ export type ExportAutomateEntriesInput = {
1452
+ sessions: Array<Scalars["ID"]["input"]>;
1453
+ settings: DataExportSettingsInput;
1454
+ };
1455
+ export type ExportAutomateEntriesPayload = {
1456
+ error?: Maybe<ExportAutomateEntriesError>;
1457
+ export?: Maybe<DataExportOnDemand>;
1458
+ };
1450
1459
  export type ExportFindingsError = OtherUserError | PermissionDeniedUserError;
1451
1460
  export type ExportFindingsInput = {
1452
1461
  filter: FilterClauseFindingInput;
@@ -1945,6 +1954,7 @@ export type MutationRoot = {
1945
1954
  deleteWorkflow: DeleteWorkflowPayload;
1946
1955
  dropInterceptMessage: DropInterceptMessagePayload;
1947
1956
  duplicateAutomateSession: DuplicateAutomateSessionPayload;
1957
+ exportAutomateEntries: ExportAutomateEntriesPayload;
1948
1958
  exportFindings: ExportFindingsPayload;
1949
1959
  exportSitemapEntries: ExportSitemapEntriesPayload;
1950
1960
  exportTamper: ExportTamperPayload;
@@ -2217,6 +2227,9 @@ export type MutationRootDropInterceptMessageArgs = {
2217
2227
  export type MutationRootDuplicateAutomateSessionArgs = {
2218
2228
  id: Scalars["ID"]["input"];
2219
2229
  };
2230
+ export type MutationRootExportAutomateEntriesArgs = {
2231
+ input: ExportAutomateEntriesInput;
2232
+ };
2220
2233
  export type MutationRootExportFindingsArgs = {
2221
2234
  input: ExportFindingsInput;
2222
2235
  };
@@ -7842,6 +7855,25 @@ export type StartAutomateTaskMutation = {
7842
7855
  } | undefined | null;
7843
7856
  };
7844
7857
  };
7858
+ export type ExportAutomateEntriesMutationVariables = Exact<{
7859
+ input: ExportAutomateEntriesInput;
7860
+ }>;
7861
+ export type ExportAutomateEntriesMutation = {
7862
+ exportAutomateEntries: {
7863
+ export?: {
7864
+ downloadUri: string;
7865
+ id: string;
7866
+ } | undefined | null;
7867
+ error?: {
7868
+ __typename: "OtherUserError";
7869
+ code: string;
7870
+ } | {
7871
+ __typename: "PermissionDeniedUserError";
7872
+ code: string;
7873
+ permissionDeniedReason: PermissionDeniedErrorReason;
7874
+ } | undefined | null;
7875
+ };
7876
+ };
7845
7877
  export type CreatedAutomateEntryRequestSubscriptionVariables = Exact<{
7846
7878
  order?: InputMaybe<AutomateEntryRequestOrderInput>;
7847
7879
  filter?: InputMaybe<HttpqlInput>;
@@ -123837,6 +123869,7 @@ export declare const CancelAutomateTaskDocument = "\n mutation cancelAutomate
123837
123869
  export declare const PauseAutomateTaskDocument = "\n mutation pauseAutomateTask($id: ID!) {\n pauseAutomateTask(id: $id) {\n automateTask {\n ...automateTaskMeta\n }\n userError {\n ... on UnknownIdUserError {\n ...unknownIdUserErrorFull\n }\n ... on OtherUserError {\n ...otherUserErrorFull\n }\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 \n\n fragment unknownIdUserErrorFull on UnknownIdUserError {\n ...userErrorFull\n id\n}\n \n\n fragment userErrorFull on UserError {\n __typename\n code\n}\n \n\n fragment otherUserErrorFull on OtherUserError {\n ...userErrorFull\n}\n ";
123838
123870
  export declare const ResumeAutomateTaskDocument = "\n mutation resumeAutomateTask($id: ID!) {\n resumeAutomateTask(id: $id) {\n automateTask {\n ...automateTaskMeta\n }\n userError {\n ... on UnknownIdUserError {\n ...unknownIdUserErrorFull\n }\n ... on OtherUserError {\n ...otherUserErrorFull\n }\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 \n\n fragment unknownIdUserErrorFull on UnknownIdUserError {\n ...userErrorFull\n id\n}\n \n\n fragment userErrorFull on UserError {\n __typename\n code\n}\n \n\n fragment otherUserErrorFull on OtherUserError {\n ...userErrorFull\n}\n ";
123839
123871
  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 ";
123872
+ export declare const ExportAutomateEntriesDocument = "\n mutation exportAutomateEntries($input: ExportAutomateEntriesInput!) {\n exportAutomateEntries(input: $input) {\n export {\n ...dataExportOnDemandMeta\n }\n error {\n ... on OtherUserError {\n ...otherUserErrorFull\n }\n ... on PermissionDeniedUserError {\n ...permissionDeniedUserErrorFull\n }\n }\n }\n}\n \n fragment dataExportOnDemandMeta on DataExportOnDemand {\n downloadUri\n id\n}\n \n\n fragment otherUserErrorFull on OtherUserError {\n ...userErrorFull\n}\n \n\n fragment userErrorFull on UserError {\n __typename\n code\n}\n \n\n fragment permissionDeniedUserErrorFull on PermissionDeniedUserError {\n ...userErrorFull\n permissionDeniedReason: reason\n}\n ";
123840
123873
  export declare const CreatedAutomateEntryRequestDocument = "\n subscription createdAutomateEntryRequest($order: AutomateEntryRequestOrderInput, $filter: HTTPQLInput) {\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 extracts {\n ...automateEntryRequestExtractFull\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 \n\n fragment automateEntryRequestExtractFull on AutomateEntryExtract {\n __typename\n name\n raw\n}\n ";
123841
123874
  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 ";
123842
123875
  export declare const DeletedAutomateTaskDocument = "\n subscription deletedAutomateTask {\n deletedAutomateTask {\n deletedAutomateTaskId\n snapshot\n status\n }\n}\n ";
@@ -124195,6 +124228,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
124195
124228
  pauseAutomateTask(variables: PauseAutomateTaskMutationVariables, options?: C): Promise<PauseAutomateTaskMutation>;
124196
124229
  resumeAutomateTask(variables: ResumeAutomateTaskMutationVariables, options?: C): Promise<ResumeAutomateTaskMutation>;
124197
124230
  startAutomateTask(variables: StartAutomateTaskMutationVariables, options?: C): Promise<StartAutomateTaskMutation>;
124231
+ exportAutomateEntries(variables: ExportAutomateEntriesMutationVariables, options?: C): Promise<ExportAutomateEntriesMutation>;
124198
124232
  createdAutomateEntryRequest(variables?: CreatedAutomateEntryRequestSubscriptionVariables, options?: C): AsyncIterable<CreatedAutomateEntryRequestSubscription>;
124199
124233
  createdAutomateTask(variables?: CreatedAutomateTaskSubscriptionVariables, options?: C): AsyncIterable<CreatedAutomateTaskSubscription>;
124200
124234
  deletedAutomateTask(variables?: DeletedAutomateTaskSubscriptionVariables, options?: C): AsyncIterable<DeletedAutomateTaskSubscription>;