@caido/sdk-frontend 0.54.2-beta.11 → 0.54.2-beta.13

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.54.2-beta.11",
3
+ "version": "0.54.2-beta.13",
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/",
@@ -9820,6 +9820,18 @@ export type ExportFindingsMutation = {
9820
9820
  } | undefined | null;
9821
9821
  };
9822
9822
  };
9823
+ export type ImportFindingMutationVariables = Exact<{
9824
+ input: ImportFindingsInput;
9825
+ }>;
9826
+ export type ImportFindingMutation = {
9827
+ importData: {
9828
+ id: string;
9829
+ errors: Array<string>;
9830
+ summary?: {
9831
+ findingsImported: number;
9832
+ } | {} | undefined | null;
9833
+ };
9834
+ };
9823
9835
  export type InterceptEntryFullFragment = {
9824
9836
  __typename: "InterceptEntry";
9825
9837
  id: string;
@@ -21822,6 +21834,17 @@ export type CreatedLogLinesSubscription = {
21822
21834
  }>;
21823
21835
  };
21824
21836
  };
21837
+ export type UpdatedCloudStatusSubscriptionVariables = Exact<{
21838
+ [key: string]: never;
21839
+ }>;
21840
+ export type UpdatedCloudStatusSubscription = {
21841
+ updatedCloudStatus: {
21842
+ cloudStatus: {
21843
+ __typename: "CloudStatus";
21844
+ sync: boolean;
21845
+ };
21846
+ };
21847
+ };
21825
21848
  export type ScopeFullFragment = {
21826
21849
  __typename: "Scope";
21827
21850
  id: string;
@@ -24803,6 +24826,7 @@ export declare const CreateFindingDocument = "\n mutation createFinding($requ
24803
24826
  export declare const DeleteFindingsDocument = "\n mutation deleteFindings($input: DeleteFindingsInput) {\n deleteFindings(input: $input) {\n deletedIds\n }\n}\n ";
24804
24827
  export declare const UpdateFindingDocument = "\n mutation updateFinding($id: ID!, $input: UpdateFindingInput!) {\n updateFinding(id: $id, input: $input) {\n finding {\n ...findingMeta\n }\n error {\n ... on OtherUserError {\n ...otherUserErrorFull\n }\n ... on UnknownIdUserError {\n ...unknownIdUserErrorFull\n }\n }\n }\n}\n \n fragment findingMeta on Finding {\n id\n title\n reporter\n host\n path\n createdAt\n request {\n ...requestMeta\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 otherUserErrorFull on OtherUserError {\n ...userErrorFull\n}\n \n\n fragment userErrorFull on UserError {\n __typename\n code\n}\n \n\n fragment unknownIdUserErrorFull on UnknownIdUserError {\n ...userErrorFull\n id\n}\n ";
24805
24828
  export declare const ExportFindingsDocument = "\n mutation exportFindings($input: ExportFindingsInput!) {\n exportFindings(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 ";
24829
+ export declare const ImportFindingDocument = "\n mutation importFinding($input: ImportFindingsInput!) {\n importData(input: {findings: $input}) {\n id\n errors\n summary {\n ... on FindingsSummary {\n findingsImported\n }\n }\n }\n}\n ";
24806
24830
  export declare const InterceptEntriesDocument = "\n query interceptEntries($after: String, $first: Int, $before: String, $last: Int, $order: InterceptEntryOrderInput, $filter: HTTPQL, $scopeId: ID) {\n interceptEntries(\n after: $after\n first: $first\n before: $before\n last: $last\n order: $order\n filter: $filter\n scopeId: $scopeId\n ) {\n edges {\n ...interceptEntryEdgeMeta\n }\n snapshot\n pageInfo {\n ...pageInfoFull\n }\n }\n}\n \n fragment interceptEntryEdgeMeta on InterceptEntryEdge {\n __typename\n cursor\n node {\n ...interceptEntryMeta\n }\n}\n \n\n fragment interceptEntryMeta on InterceptEntry {\n __typename\n id\n request {\n ...requestMeta\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 pageInfoFull on PageInfo {\n __typename\n hasPreviousPage\n hasNextPage\n startCursor\n endCursor\n}\n ";
24807
24831
  export declare const InterceptEntriesByOffsetDocument = "\n query interceptEntriesByOffset($limit: Int, $offset: Int, $order: InterceptEntryOrderInput, $filter: HTTPQL, $scopeId: ID) {\n interceptEntriesByOffset(\n limit: $limit\n offset: $offset\n order: $order\n filter: $filter\n scopeId: $scopeId\n ) {\n edges {\n ...interceptEntryEdgeMeta\n }\n snapshot\n pageInfo {\n ...pageInfoFull\n }\n }\n}\n \n fragment interceptEntryEdgeMeta on InterceptEntryEdge {\n __typename\n cursor\n node {\n ...interceptEntryMeta\n }\n}\n \n\n fragment interceptEntryMeta on InterceptEntry {\n __typename\n id\n request {\n ...requestMeta\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 pageInfoFull on PageInfo {\n __typename\n hasPreviousPage\n hasNextPage\n startCursor\n endCursor\n}\n ";
24808
24832
  export declare const InterceptEntryDocument = "\n query interceptEntry($id: ID!) {\n interceptEntry(id: $id) {\n ...interceptEntryFull\n }\n}\n \n fragment interceptEntryFull on InterceptEntry {\n ...interceptEntryMeta\n request {\n ...requestFull\n }\n}\n \n\n fragment interceptEntryMeta on InterceptEntry {\n __typename\n id\n request {\n ...requestMeta\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 requestFull on Request {\n ...requestFullFields\n}\n \n\n fragment requestFullFields on Request {\n ...requestMeta\n raw\n edits {\n ...requestMeta\n }\n}\n ";
@@ -24916,6 +24940,7 @@ export declare const GetCertificateDocument = "\n query getCertificate($passw
24916
24940
  export declare const ImportCertificateDocument = "\n mutation importCertificate($input: ImportCertificateInput!) {\n importCertificate(input: $input) {\n error {\n __typename\n ... on CertificateUserError {\n ...certificateUserErrorFull\n }\n ... on OtherUserError {\n ...otherUserErrorFull\n }\n }\n }\n}\n \n fragment certificateUserErrorFull on CertificateUserError {\n ...userErrorFull\n certificateReason: reason\n}\n \n\n fragment userErrorFull on UserError {\n __typename\n code\n}\n \n\n fragment otherUserErrorFull on OtherUserError {\n ...userErrorFull\n}\n ";
24917
24941
  export declare const RegenerateCertificateDocument = "\n mutation regenerateCertificate {\n regenerateCertificate {\n success\n }\n}\n ";
24918
24942
  export declare const CreatedLogLinesDocument = "\n subscription createdLogLines($duration: Duration!) {\n createdLogLines(duration: $duration) {\n lines {\n ...logLineFull\n }\n }\n}\n \n fragment logLineFull on LogLine {\n __typename\n level\n message\n target\n timestamp\n}\n ";
24943
+ export declare const UpdatedCloudStatusDocument = "\n subscription updatedCloudStatus {\n updatedCloudStatus {\n cloudStatus {\n ...cloudStatusFull\n }\n }\n}\n \n fragment cloudStatusFull on CloudStatus {\n __typename\n sync\n}\n ";
24919
24944
  export declare const CreateScopeDocument = "\n mutation createScope($input: CreateScopeInput!) {\n createScope(input: $input) {\n error {\n ... on InvalidGlobTermsUserError {\n ...invalidGlobTermsUserErrorFull\n }\n ... on OtherUserError {\n ...otherUserErrorFull\n }\n }\n scope {\n ...scopeFull\n }\n }\n}\n \n fragment invalidGlobTermsUserErrorFull on InvalidGlobTermsUserError {\n ...userErrorFull\n terms\n}\n \n\n fragment userErrorFull on UserError {\n __typename\n code\n}\n \n\n fragment otherUserErrorFull on OtherUserError {\n ...userErrorFull\n}\n \n\n fragment scopeFull on Scope {\n __typename\n id\n name\n allowlist\n denylist\n indexed\n}\n ";
24920
24945
  export declare const UpdateScopeDocument = "\n mutation updateScope($id: ID!, $input: UpdateScopeInput!) {\n updateScope(id: $id, input: $input) {\n error {\n ... on InvalidGlobTermsUserError {\n ...invalidGlobTermsUserErrorFull\n }\n ... on OtherUserError {\n ...otherUserErrorFull\n }\n }\n scope {\n ...scopeFull\n }\n }\n}\n \n fragment invalidGlobTermsUserErrorFull on InvalidGlobTermsUserError {\n ...userErrorFull\n terms\n}\n \n\n fragment userErrorFull on UserError {\n __typename\n code\n}\n \n\n fragment otherUserErrorFull on OtherUserError {\n ...userErrorFull\n}\n \n\n fragment scopeFull on Scope {\n __typename\n id\n name\n allowlist\n denylist\n indexed\n}\n ";
24921
24946
  export declare const DeleteScopeDocument = "\n mutation deleteScope($id: ID!) {\n deleteScope(id: $id) {\n deletedId\n }\n}\n ";
@@ -25123,6 +25148,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
25123
25148
  deleteFindings(variables?: DeleteFindingsMutationVariables, options?: C): Promise<DeleteFindingsMutation>;
25124
25149
  updateFinding(variables: UpdateFindingMutationVariables, options?: C): Promise<UpdateFindingMutation>;
25125
25150
  exportFindings(variables: ExportFindingsMutationVariables, options?: C): Promise<ExportFindingsMutation>;
25151
+ importFinding(variables: ImportFindingMutationVariables, options?: C): Promise<ImportFindingMutation>;
25126
25152
  interceptEntries(variables?: InterceptEntriesQueryVariables, options?: C): Promise<InterceptEntriesQuery>;
25127
25153
  interceptEntriesByOffset(variables?: InterceptEntriesByOffsetQueryVariables, options?: C): Promise<InterceptEntriesByOffsetQuery>;
25128
25154
  interceptEntry(variables: InterceptEntryQueryVariables, options?: C): Promise<InterceptEntryQuery>;
@@ -25236,6 +25262,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
25236
25262
  importCertificate(variables: ImportCertificateMutationVariables, options?: C): Promise<ImportCertificateMutation>;
25237
25263
  regenerateCertificate(variables?: RegenerateCertificateMutationVariables, options?: C): Promise<RegenerateCertificateMutation>;
25238
25264
  createdLogLines(variables: CreatedLogLinesSubscriptionVariables, options?: C): AsyncIterable<CreatedLogLinesSubscription>;
25265
+ updatedCloudStatus(variables?: UpdatedCloudStatusSubscriptionVariables, options?: C): AsyncIterable<UpdatedCloudStatusSubscription>;
25239
25266
  createScope(variables: CreateScopeMutationVariables, options?: C): Promise<CreateScopeMutation>;
25240
25267
  updateScope(variables: UpdateScopeMutationVariables, options?: C): Promise<UpdateScopeMutation>;
25241
25268
  deleteScope(variables: DeleteScopeMutationVariables, options?: C): Promise<DeleteScopeMutation>;