@caido/sdk-frontend 0.49.0 → 0.49.1-beta.1

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": "v0.49.0",
3
+ "version": "0.49.1-beta.1",
4
4
  "description": "Typing for the Caido Frontend SDK",
5
5
  "author": "Caido Labs Inc. <dev@caido.io>",
6
6
  "license": "MIT",
@@ -1098,6 +1098,13 @@ export type DeleteEnvironmentPayload = {
1098
1098
  export type DeleteFilterPresetPayload = {
1099
1099
  deletedId?: Maybe<Scalars["ID"]["output"]>;
1100
1100
  };
1101
+ export type DeleteFindingsInput = {
1102
+ ids: Array<Scalars["ID"]["input"]>;
1103
+ reporter?: never;
1104
+ } | {
1105
+ ids?: never;
1106
+ reporter: Scalars["String"]["input"];
1107
+ };
1101
1108
  export type DeleteFindingsPayload = {
1102
1109
  deletedIds?: Maybe<Array<Scalars["ID"]["output"]>>;
1103
1110
  };
@@ -1304,6 +1311,7 @@ export type Finding = {
1304
1311
  createdAt: Scalars["Timestamp"]["output"];
1305
1312
  dedupeKey?: Maybe<Scalars["String"]["output"]>;
1306
1313
  description?: Maybe<Scalars["String"]["output"]>;
1314
+ hidden: Scalars["Boolean"]["output"];
1307
1315
  host: Scalars["String"]["output"];
1308
1316
  id: Scalars["ID"]["output"];
1309
1317
  path: Scalars["String"]["output"];
@@ -1422,6 +1430,16 @@ export type GuestUser = {
1422
1430
  plugins: Array<PluginFrontend>;
1423
1431
  settings?: Maybe<UserSettings>;
1424
1432
  };
1433
+ export type HideFindingsInput = {
1434
+ ids: Array<Scalars["ID"]["input"]>;
1435
+ reporter?: never;
1436
+ } | {
1437
+ ids?: never;
1438
+ reporter: Scalars["String"]["input"];
1439
+ };
1440
+ export type HideFindingsPayload = {
1441
+ findings?: Maybe<Array<Finding>>;
1442
+ };
1425
1443
  export type HostedFile = {
1426
1444
  createdAt: Scalars["DateTime"]["output"];
1427
1445
  id: Scalars["ID"]["output"];
@@ -1676,6 +1694,7 @@ export type MutationRoot = {
1676
1694
  duplicateAutomateSession: DuplicateAutomateSessionPayload;
1677
1695
  forwardInterceptMessage: ForwardInterceptMessagePayload;
1678
1696
  globalizeWorkflow: GlobalizeWorkflowPayload;
1697
+ hideFindings: HideFindingsPayload;
1679
1698
  importCertificate: ImportCertificatePayload;
1680
1699
  installBrowser: InstallBrowserPayload;
1681
1700
  installPluginPackage: InstallPluginPackagePayload;
@@ -1746,6 +1765,7 @@ export type MutationRoot = {
1746
1765
  updateDnsUpstream: UpdateDnsUpstreamPayload;
1747
1766
  updateEnvironment: UpdateEnvironmentPayload;
1748
1767
  updateFilterPreset: UpdateFilterPresetPayload;
1768
+ updateFinding: UpdateFindingPayload;
1749
1769
  updateRequestMetadata: UpdateRequestMetadataPayload;
1750
1770
  updateScope: UpdateScopePayload;
1751
1771
  updateTamperRule: UpdateTamperRulePayload;
@@ -1853,7 +1873,7 @@ export type MutationRootDeleteFilterPresetArgs = {
1853
1873
  id: Scalars["ID"]["input"];
1854
1874
  };
1855
1875
  export type MutationRootDeleteFindingsArgs = {
1856
- ids: Array<Scalars["ID"]["input"]>;
1876
+ input?: InputMaybe<DeleteFindingsInput>;
1857
1877
  };
1858
1878
  export type MutationRootDeleteHostedFileArgs = {
1859
1879
  id: Scalars["ID"]["input"];
@@ -1908,6 +1928,9 @@ export type MutationRootForwardInterceptMessageArgs = {
1908
1928
  export type MutationRootGlobalizeWorkflowArgs = {
1909
1929
  id: Scalars["ID"]["input"];
1910
1930
  };
1931
+ export type MutationRootHideFindingsArgs = {
1932
+ input?: InputMaybe<HideFindingsInput>;
1933
+ };
1911
1934
  export type MutationRootImportCertificateArgs = {
1912
1935
  input: ImportCertificateInput;
1913
1936
  };
@@ -2128,6 +2151,10 @@ export type MutationRootUpdateFilterPresetArgs = {
2128
2151
  id: Scalars["ID"]["input"];
2129
2152
  input: UpdateFilterPresetInput;
2130
2153
  };
2154
+ export type MutationRootUpdateFindingArgs = {
2155
+ id: Scalars["ID"]["input"];
2156
+ input: UpdateFindingInput;
2157
+ };
2131
2158
  export type MutationRootUpdateRequestMetadataArgs = {
2132
2159
  id: Scalars["ID"]["input"];
2133
2160
  input: UpdateRequestMetadataInput;
@@ -3419,6 +3446,7 @@ export type SubscriptionRoot = {
3419
3446
  updatedEnvironment: UpdatedEnvironmentPayload;
3420
3447
  updatedEnvironmentContext: UpdatedEnvironmentContextPayload;
3421
3448
  updatedFilterPreset: UpdatedFilterPresetPayload;
3449
+ updatedFindings: UpdatedFindingsPayload;
3422
3450
  updatedHostedFile: UpdatedHostedFilePayload;
3423
3451
  updatedInterceptEntry: UpdatedInterceptEntryPayload;
3424
3452
  updatedInterceptOptions: UpdatedInterceptOptionsPayload;
@@ -4041,6 +4069,16 @@ export type UpdateFilterPresetPayload = {
4041
4069
  error?: Maybe<UpdateFilterPresetError>;
4042
4070
  filter?: Maybe<FilterPreset>;
4043
4071
  };
4072
+ export type UpdateFindingError = OtherUserError | UnknownIdUserError;
4073
+ export type UpdateFindingInput = {
4074
+ description?: InputMaybe<Scalars["String"]["input"]>;
4075
+ hidden?: InputMaybe<Scalars["Boolean"]["input"]>;
4076
+ title?: InputMaybe<Scalars["String"]["input"]>;
4077
+ };
4078
+ export type UpdateFindingPayload = {
4079
+ error?: Maybe<UpdateFindingError>;
4080
+ finding?: Maybe<Finding>;
4081
+ };
4044
4082
  export type UpdateRequestMetadataInput = {
4045
4083
  color?: InputMaybe<Scalars["String"]["input"]>;
4046
4084
  };
@@ -4153,6 +4191,16 @@ export type UpdatedEnvironmentPayload = {
4153
4191
  export type UpdatedFilterPresetPayload = {
4154
4192
  filterEdge: FilterPresetEdge;
4155
4193
  };
4194
+ export type UpdatedFindingPayload = {
4195
+ findingEdge: FindingEdge;
4196
+ snapshot: Scalars["Snapshot"]["output"];
4197
+ };
4198
+ export type UpdatedFindingPayloadFindingEdgeArgs = {
4199
+ order?: InputMaybe<FindingOrderInput>;
4200
+ };
4201
+ export type UpdatedFindingsPayload = {
4202
+ findings: Array<UpdatedFindingPayload>;
4203
+ };
4156
4204
  export type UpdatedHostedFilePayload = {
4157
4205
  hostedFile: HostedFile;
4158
4206
  };
@@ -9075,6 +9123,63 @@ export type DeletedFindingsSubscription = {
9075
9123
  snapshot: number;
9076
9124
  };
9077
9125
  };
9126
+ export type UpdatedFindingsSubscriptionVariables = Exact<{
9127
+ order?: InputMaybe<FindingOrderInput>;
9128
+ }>;
9129
+ export type UpdatedFindingsSubscription = {
9130
+ updatedFindings: {
9131
+ findings: Array<{
9132
+ snapshot: number;
9133
+ findingEdge: {
9134
+ cursor: string;
9135
+ node: {
9136
+ id: string;
9137
+ title: string;
9138
+ description?: string | undefined | null;
9139
+ reporter: string;
9140
+ host: string;
9141
+ path: string;
9142
+ createdAt: Date;
9143
+ request: {
9144
+ __typename: "Request";
9145
+ id: string;
9146
+ host: string;
9147
+ port: number;
9148
+ path: string;
9149
+ query: string;
9150
+ method: string;
9151
+ edited: boolean;
9152
+ isTls: boolean;
9153
+ sni?: string | undefined | null;
9154
+ length: number;
9155
+ alteration: Alteration;
9156
+ fileExtension?: string | undefined | null;
9157
+ source: Source;
9158
+ createdAt: Date;
9159
+ metadata: {
9160
+ __typename: "RequestMetadata";
9161
+ id: string;
9162
+ color?: string | undefined | null;
9163
+ };
9164
+ response?: {
9165
+ __typename: "Response";
9166
+ id: string;
9167
+ statusCode: number;
9168
+ roundtripTime: number;
9169
+ length: number;
9170
+ createdAt: Date;
9171
+ alteration: Alteration;
9172
+ edited: boolean;
9173
+ } | undefined | null;
9174
+ stream?: {
9175
+ id: string;
9176
+ } | undefined | null;
9177
+ };
9178
+ };
9179
+ };
9180
+ }>;
9181
+ };
9182
+ };
9078
9183
  export type CreateFindingMutationVariables = Exact<{
9079
9184
  requestId: Scalars["ID"]["input"];
9080
9185
  input: CreateFindingInput;
@@ -9136,13 +9241,73 @@ export type CreateFindingMutation = {
9136
9241
  };
9137
9242
  };
9138
9243
  export type DeleteFindingsMutationVariables = Exact<{
9139
- ids: Array<Scalars["ID"]["input"]> | Scalars["ID"]["input"];
9244
+ input: DeleteFindingsInput;
9140
9245
  }>;
9141
9246
  export type DeleteFindingsMutation = {
9142
9247
  deleteFindings: {
9143
9248
  deletedIds?: Array<string> | undefined | null;
9144
9249
  };
9145
9250
  };
9251
+ export type UpdateFindingMutationVariables = Exact<{
9252
+ id: Scalars["ID"]["input"];
9253
+ input: UpdateFindingInput;
9254
+ }>;
9255
+ export type UpdateFindingMutation = {
9256
+ updateFinding: {
9257
+ finding?: {
9258
+ id: string;
9259
+ title: string;
9260
+ description?: string | undefined | null;
9261
+ reporter: string;
9262
+ host: string;
9263
+ path: string;
9264
+ createdAt: Date;
9265
+ request: {
9266
+ __typename: "Request";
9267
+ id: string;
9268
+ host: string;
9269
+ port: number;
9270
+ path: string;
9271
+ query: string;
9272
+ method: string;
9273
+ edited: boolean;
9274
+ isTls: boolean;
9275
+ sni?: string | undefined | null;
9276
+ length: number;
9277
+ alteration: Alteration;
9278
+ fileExtension?: string | undefined | null;
9279
+ source: Source;
9280
+ createdAt: Date;
9281
+ metadata: {
9282
+ __typename: "RequestMetadata";
9283
+ id: string;
9284
+ color?: string | undefined | null;
9285
+ };
9286
+ response?: {
9287
+ __typename: "Response";
9288
+ id: string;
9289
+ statusCode: number;
9290
+ roundtripTime: number;
9291
+ length: number;
9292
+ createdAt: Date;
9293
+ alteration: Alteration;
9294
+ edited: boolean;
9295
+ } | undefined | null;
9296
+ stream?: {
9297
+ id: string;
9298
+ } | undefined | null;
9299
+ };
9300
+ } | undefined | null;
9301
+ error?: {
9302
+ __typename: "OtherUserError";
9303
+ code: string;
9304
+ } | {
9305
+ __typename: "UnknownIdUserError";
9306
+ id: string;
9307
+ code: string;
9308
+ } | undefined | null;
9309
+ };
9310
+ };
9146
9311
  export type InterceptEntryFullFragment = {
9147
9312
  __typename: "InterceptEntry";
9148
9313
  id: string;
@@ -9524,6 +9689,28 @@ export type InterceptEntryCountQuery = {
9524
9689
  };
9525
9690
  };
9526
9691
  };
9692
+ export type RequestOffsetQueryVariables = Exact<{
9693
+ filter?: InputMaybe<Scalars["HTTPQL"]["input"]>;
9694
+ id: Scalars["ID"]["input"];
9695
+ order?: InputMaybe<RequestResponseOrderInput>;
9696
+ scopeId?: InputMaybe<Scalars["ID"]["input"]>;
9697
+ }>;
9698
+ export type RequestOffsetQuery = {
9699
+ requestOffset?: {
9700
+ offset: number;
9701
+ } | undefined | null;
9702
+ };
9703
+ export type InterceptEntryOffsetQueryVariables = Exact<{
9704
+ filter?: InputMaybe<Scalars["HTTPQL"]["input"]>;
9705
+ id: Scalars["ID"]["input"];
9706
+ order?: InputMaybe<InterceptEntryOrderInput>;
9707
+ scopeId?: InputMaybe<Scalars["ID"]["input"]>;
9708
+ }>;
9709
+ export type InterceptEntryOffsetQuery = {
9710
+ interceptEntryOffset?: {
9711
+ offset: number;
9712
+ } | undefined | null;
9713
+ };
9527
9714
  export type DeleteInterceptEntriesMutationVariables = Exact<{
9528
9715
  filter?: InputMaybe<Scalars["HTTPQL"]["input"]>;
9529
9716
  scopeId?: InputMaybe<Scalars["ID"]["input"]>;
@@ -21264,6 +21451,16 @@ export type UpdatedViewerProfileSubscription = {
21264
21451
  };
21265
21452
  };
21266
21453
  };
21454
+ export type UpdatedViewerSettingsSubscriptionVariables = Exact<{
21455
+ [key: string]: never;
21456
+ }>;
21457
+ export type UpdatedViewerSettingsSubscription = {
21458
+ updatedViewerSettings: {
21459
+ settings: {
21460
+ data: unknown;
21461
+ };
21462
+ };
21463
+ };
21267
21464
  export type WorkflowQueryVariables = Exact<{
21268
21465
  id: Scalars["ID"]["input"];
21269
21466
  }>;
@@ -22041,12 +22238,16 @@ export declare const GetFindingsCountDocument = "\n query getFindingsCount($f
22041
22238
  export declare const FindingReportersDocument = "\n query findingReporters {\n findingReporters\n}\n ";
22042
22239
  export declare const CreatedFindingDocument = "\n subscription createdFinding($order: FindingOrderInput) {\n createdFinding {\n findingEdge(order: $order) {\n ...findingEdgeMeta\n }\n snapshot\n }\n}\n \n fragment findingEdgeMeta on FindingEdge {\n cursor\n node {\n ...findingMeta\n }\n}\n \n\n fragment findingMeta on Finding {\n id\n title\n description\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 ";
22043
22240
  export declare const DeletedFindingsDocument = "\n subscription deletedFindings {\n deletedFindings {\n deletedFindingIds\n snapshot\n }\n}\n ";
22241
+ export declare const UpdatedFindingsDocument = "\n subscription updatedFindings($order: FindingOrderInput) {\n updatedFindings {\n findings {\n findingEdge(order: $order) {\n ...findingEdgeMeta\n }\n snapshot\n }\n }\n}\n \n fragment findingEdgeMeta on FindingEdge {\n cursor\n node {\n ...findingMeta\n }\n}\n \n\n fragment findingMeta on Finding {\n id\n title\n description\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 ";
22044
22242
  export declare const CreateFindingDocument = "\n mutation createFinding($requestId: ID!, $input: CreateFindingInput!) {\n createFinding(requestId: $requestId, 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 description\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 ";
22045
- export declare const DeleteFindingsDocument = "\n mutation deleteFindings($ids: [ID!]!) {\n deleteFindings(ids: $ids) {\n deletedIds\n }\n}\n ";
22243
+ export declare const DeleteFindingsDocument = "\n mutation deleteFindings($input: DeleteFindingsInput!) {\n deleteFindings(input: $input) {\n deletedIds\n }\n}\n ";
22244
+ 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 description\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 ";
22046
22245
  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 ";
22047
22246
  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 ";
22048
22247
  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 ";
22049
22248
  export declare const InterceptEntryCountDocument = "\n query interceptEntryCount($filter: HTTPQL, $scopeId: ID) {\n interceptEntries(first: 0, filter: $filter, scopeId: $scopeId) {\n count {\n ...countFull\n }\n }\n}\n \n fragment countFull on Count {\n __typename\n value\n snapshot\n}\n ";
22249
+ export declare const RequestOffsetDocument = "\n query RequestOffset($filter: HTTPQL, $id: ID!, $order: RequestResponseOrderInput, $scopeId: ID) {\n requestOffset(filter: $filter, id: $id, order: $order, scopeId: $scopeId) {\n offset\n }\n}\n ";
22250
+ export declare const InterceptEntryOffsetDocument = "\n query InterceptEntryOffset($filter: HTTPQL, $id: ID!, $order: InterceptEntryOrderInput, $scopeId: ID) {\n interceptEntryOffset(filter: $filter, id: $id, order: $order, scopeId: $scopeId) {\n offset\n }\n}\n ";
22050
22251
  export declare const DeleteInterceptEntriesDocument = "\n mutation deleteInterceptEntries($filter: HTTPQL, $scopeId: ID) {\n deleteInterceptEntries(filter: $filter, scopeId: $scopeId) {\n task {\n ...deleteInterceptEntriesTaskFull\n }\n error: userError {\n ... on TaskInProgressUserError {\n ...taskInProgressUserErrorFull\n }\n ... on OtherUserError {\n ...otherUserErrorFull\n }\n }\n }\n}\n \n fragment deleteInterceptEntriesTaskFull on DeleteInterceptEntriesTask {\n __typename\n id\n deletedEntryIds\n}\n \n\n fragment taskInProgressUserErrorFull on TaskInProgressUserError {\n ...userErrorFull\n taskId\n}\n \n\n fragment userErrorFull on UserError {\n __typename\n code\n}\n \n\n fragment otherUserErrorFull on OtherUserError {\n ...userErrorFull\n}\n ";
22051
22252
  export declare const DeleteInterceptEntryDocument = "\n mutation deleteInterceptEntry($id: ID!) {\n deleteInterceptEntry(id: $id) {\n deletedId\n error: userError {\n ... on UnknownIdUserError {\n ...unknownIdUserErrorFull\n }\n ... on OtherUserError {\n ...otherUserErrorFull\n }\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 ";
22052
22253
  export declare const CreatedInterceptEntryDocument = "\n subscription createdInterceptEntry($order: InterceptEntryOrderInput, $filter: HTTPQL, $scopeId: ID) {\n createdInterceptEntry(filter: $filter, scopeId: $scopeId) {\n interceptEntryEdge(order: $order) {\n ...interceptEntryEdgeMeta\n }\n snapshot\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 ";
@@ -22199,6 +22400,7 @@ export declare const UpdateViewerSettingsDocument = "\n mutation updateViewer
22199
22400
  export declare const UserProfileDocument = "\n query userProfile {\n viewer {\n ... on CloudUser {\n __typename\n id\n profile {\n ...userProfileFull\n }\n }\n ... on GuestUser {\n __typename\n }\n }\n}\n \n fragment userProfileFull on UserProfile {\n __typename\n identity {\n __typename\n name\n email\n }\n subscription {\n __typename\n entitlements {\n __typename\n name\n }\n plan {\n __typename\n name\n }\n }\n}\n ";
22200
22401
  export declare const UserSettingsDocument = "\n query userSettings {\n viewer {\n ... on CloudUser {\n __typename\n id\n settings {\n ...userSettingsFull\n }\n }\n ... on GuestUser {\n __typename\n id\n settings {\n ...userSettingsFull\n }\n }\n }\n}\n \n fragment userSettingsFull on UserSettings {\n __typename\n data\n migrations\n}\n ";
22201
22402
  export declare const UpdatedViewerProfileDocument = "\n subscription updatedViewerProfile {\n updatedViewerProfile {\n profile {\n ...userProfileFull\n }\n }\n}\n \n fragment userProfileFull on UserProfile {\n __typename\n identity {\n __typename\n name\n email\n }\n subscription {\n __typename\n entitlements {\n __typename\n name\n }\n plan {\n __typename\n name\n }\n }\n}\n ";
22403
+ export declare const UpdatedViewerSettingsDocument = "\n subscription updatedViewerSettings {\n updatedViewerSettings {\n settings {\n data\n }\n }\n}\n ";
22202
22404
  export declare const WorkflowDocument = "\n query workflow($id: ID!) {\n workflow(id: $id) {\n ...workflowFull\n }\n}\n \n fragment workflowFull on Workflow {\n ...workflowMeta\n definition\n}\n \n\n fragment workflowMeta on Workflow {\n __typename\n id\n kind\n name\n enabled\n global\n readOnly\n}\n ";
22203
22405
  export declare const WorkflowsStateDocument = "\n query workflowsState {\n workflows {\n ...workflowFull\n }\n workflowNodeDefinitions {\n ...workflowNodeDefinitionFull\n }\n}\n \n fragment workflowFull on Workflow {\n ...workflowMeta\n definition\n}\n \n\n fragment workflowMeta on Workflow {\n __typename\n id\n kind\n name\n enabled\n global\n readOnly\n}\n \n\n fragment workflowNodeDefinitionFull on WorkflowNodeDefinition {\n __typename\n raw\n}\n ";
22204
22406
  export declare const CreatedWorkflowDocument = "\n subscription createdWorkflow {\n createdWorkflow {\n workflowEdge {\n ...workflowEdgeFull\n }\n }\n}\n \n fragment workflowEdgeFull on WorkflowEdge {\n cursor\n node {\n ...workflowFull\n }\n}\n \n\n fragment workflowFull on Workflow {\n ...workflowMeta\n definition\n}\n \n\n fragment workflowMeta on Workflow {\n __typename\n id\n kind\n name\n enabled\n global\n readOnly\n}\n ";
@@ -22343,12 +22545,16 @@ export declare function getSdk<C>(requester: Requester<C>): {
22343
22545
  findingReporters(variables?: FindingReportersQueryVariables, options?: C): Promise<FindingReportersQuery>;
22344
22546
  createdFinding(variables?: CreatedFindingSubscriptionVariables, options?: C): AsyncIterable<CreatedFindingSubscription>;
22345
22547
  deletedFindings(variables?: DeletedFindingsSubscriptionVariables, options?: C): AsyncIterable<DeletedFindingsSubscription>;
22548
+ updatedFindings(variables?: UpdatedFindingsSubscriptionVariables, options?: C): AsyncIterable<UpdatedFindingsSubscription>;
22346
22549
  createFinding(variables: CreateFindingMutationVariables, options?: C): Promise<CreateFindingMutation>;
22347
22550
  deleteFindings(variables: DeleteFindingsMutationVariables, options?: C): Promise<DeleteFindingsMutation>;
22551
+ updateFinding(variables: UpdateFindingMutationVariables, options?: C): Promise<UpdateFindingMutation>;
22348
22552
  interceptEntries(variables?: InterceptEntriesQueryVariables, options?: C): Promise<InterceptEntriesQuery>;
22349
22553
  interceptEntriesByOffset(variables?: InterceptEntriesByOffsetQueryVariables, options?: C): Promise<InterceptEntriesByOffsetQuery>;
22350
22554
  interceptEntry(variables: InterceptEntryQueryVariables, options?: C): Promise<InterceptEntryQuery>;
22351
22555
  interceptEntryCount(variables?: InterceptEntryCountQueryVariables, options?: C): Promise<InterceptEntryCountQuery>;
22556
+ RequestOffset(variables: RequestOffsetQueryVariables, options?: C): Promise<RequestOffsetQuery>;
22557
+ InterceptEntryOffset(variables: InterceptEntryOffsetQueryVariables, options?: C): Promise<InterceptEntryOffsetQuery>;
22352
22558
  deleteInterceptEntries(variables?: DeleteInterceptEntriesMutationVariables, options?: C): Promise<DeleteInterceptEntriesMutation>;
22353
22559
  deleteInterceptEntry(variables: DeleteInterceptEntryMutationVariables, options?: C): Promise<DeleteInterceptEntryMutation>;
22354
22560
  createdInterceptEntry(variables?: CreatedInterceptEntrySubscriptionVariables, options?: C): AsyncIterable<CreatedInterceptEntrySubscription>;
@@ -22501,6 +22707,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
22501
22707
  userProfile(variables?: UserProfileQueryVariables, options?: C): Promise<UserProfileQuery>;
22502
22708
  userSettings(variables?: UserSettingsQueryVariables, options?: C): Promise<UserSettingsQuery>;
22503
22709
  updatedViewerProfile(variables?: UpdatedViewerProfileSubscriptionVariables, options?: C): AsyncIterable<UpdatedViewerProfileSubscription>;
22710
+ updatedViewerSettings(variables?: UpdatedViewerSettingsSubscriptionVariables, options?: C): AsyncIterable<UpdatedViewerSettingsSubscription>;
22504
22711
  workflow(variables: WorkflowQueryVariables, options?: C): Promise<WorkflowQuery>;
22505
22712
  workflowsState(variables?: WorkflowsStateQueryVariables, options?: C): Promise<WorkflowsStateQuery>;
22506
22713
  createdWorkflow(variables?: CreatedWorkflowSubscriptionVariables, options?: C): AsyncIterable<CreatedWorkflowSubscription>;
@@ -0,0 +1,43 @@
1
+ import { type ButtonSlotContent, type CommandSlotContent, type CustomSlotContent, type DefineAddToSlotFn } from "./slots";
2
+ export declare const FooterSlot: {
3
+ readonly FooterSlotPrimary: "footer-primary";
4
+ readonly FooterSlotSecondary: "footer-secondary";
5
+ };
6
+ export type FooterSlot = (typeof FooterSlot)[keyof typeof FooterSlot];
7
+ /**
8
+ * Utilities to interact with the footer.
9
+ * @category Footer
10
+ */
11
+ export type FooterSDK = {
12
+ /**
13
+ * Add a component to a slot.
14
+ * @param slot The slot to add the component to.
15
+ * @param content The content to add to the slot.
16
+ * @example
17
+ * ```ts
18
+ * addToSlot(FooterSlot.FooterSlotPrimary, {
19
+ * kind: "Command",
20
+ * commandId: "my-command",
21
+ * icon: "my-icon",
22
+ * });
23
+ *
24
+ * addToSlot(FooterSlot.FooterSlotPrimary, {
25
+ * kind: "Button",
26
+ * label: "My button",
27
+ * icon: "fas fa-rocket",
28
+ * onClick: () => {
29
+ * console.log("Button clicked");
30
+ * },
31
+ * });
32
+ *
33
+ * addToSlot(FooterSlot.FooterSlotSecondary, {
34
+ * kind: "Custom",
35
+ * component: MyComponent,
36
+ * });
37
+ * ```
38
+ */
39
+ addToSlot: DefineAddToSlotFn<{
40
+ [FooterSlot.FooterSlotPrimary]: ButtonSlotContent | CustomSlotContent | CommandSlotContent;
41
+ [FooterSlot.FooterSlotSecondary]: ButtonSlotContent | CustomSlotContent | CommandSlotContent;
42
+ }>;
43
+ };
@@ -7,6 +7,7 @@ import type { EnvironmentSDK } from "./environment";
7
7
  import type { FilesSDK } from "./files";
8
8
  import type { FiltersSDK } from "./filters";
9
9
  import type { FindingsSDK } from "./findings";
10
+ import type { FooterSDK } from "./footer";
10
11
  import type { HTTPHistorySDK } from "./httpHistory";
11
12
  import type { InterceptSDK } from "./intercept";
12
13
  import type { MatchReplaceSDK } from "./matchReplace";
@@ -23,6 +24,8 @@ import type { StorageSDK } from "./storage";
23
24
  import type { UISDK } from "./ui";
24
25
  import type { WindowSDK } from "./window";
25
26
  import type { WorkflowSDK } from "./workflows";
27
+ export { FooterSlot } from "./footer";
28
+ export type { DialogOptions } from "./window";
26
29
  export type { CommandContext } from "./commands";
27
30
  export type { MenuItem } from "./menu";
28
31
  export { type ReplayTab, type ReplaySession, type ReplayCollection, ReplaySlot, } from "./replay";
@@ -140,4 +143,8 @@ export type API<T extends BackendEndpoints = Record<string, never>, E extends Ba
140
143
  * Utilities to interact with workflows.
141
144
  */
142
145
  workflows: WorkflowSDK;
146
+ /**
147
+ * Utilities to interact with the footer.
148
+ */
149
+ footer: FooterSDK;
143
150
  };
@@ -1,4 +1,5 @@
1
1
  import type { Editor } from "./editor";
2
+ import type { CustomSlotContent } from "./slots";
2
3
  /**
3
4
  * Utilities to interact with the active page.
4
5
  * @category Window
@@ -20,4 +21,24 @@ export type WindowSDK = {
20
21
  variant?: "success" | "error" | "warning" | "info";
21
22
  duration?: number;
22
23
  }) => void;
24
+ /**
25
+ * Show a dialog component.
26
+ * @param component The custom slot content to display in the dialog.
27
+ * @param options Options for the dialog.
28
+ * @param options.title The title text for the dialog. Defaults to ""
29
+ * @param options.draggable Whether the dialog is draggable. Defaults to false
30
+ * @param options.closeOnEscape Whether the dialog closes when pressing Escape. Defaults to true
31
+ * @param options.modal Whether the dialog is modal. Defaults to true
32
+ * @param options.position The position of the dialog on the screen. Defaults to center
33
+ * @param options.closable Whether the close icon is hidden . Defaults to false
34
+ */
35
+ showDialog: (component: CustomSlotContent, options?: DialogOptions) => void;
36
+ };
37
+ export type DialogOptions = {
38
+ title?: string;
39
+ draggable?: boolean;
40
+ closeOnEscape?: boolean;
41
+ closable?: boolean;
42
+ modal?: boolean;
43
+ position?: "left" | "right" | "top" | "bottom" | "center" | "topleft" | "topright" | "bottomleft" | "bottomright";
23
44
  };