@caido/schema-proxy 0.58.0 → 0.58.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/schema.graphql +218 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caido/schema-proxy",
3
- "version": "0.58.0",
3
+ "version": "0.58.2",
4
4
  "description": "Caido Proxy API schemas (GraphQL and OpenAPI)",
5
5
  "author": "Caido Labs Inc. <dev@caido.io>",
6
6
  "repository": "https://github.com/caido/schemas/",
package/schema.graphql CHANGED
@@ -882,6 +882,22 @@ union CreateProjectPayloadError =
882
882
  | CloudUserError
883
883
  | OtherUserError
884
884
 
885
+ union CreateReplayPipelineHttpOneSessionError =
886
+ | PermissionDeniedUserError
887
+ | CloudUserError
888
+ | OtherUserError
889
+
890
+ type CreateReplayPipelineHttpOneSessionPayload {
891
+ error: CreateReplayPipelineHttpOneSessionError
892
+ session: ReplaySessionHttpOnePipeline
893
+ }
894
+
895
+ input CreateReplayPipelineSessionInput {
896
+ collectionId: ID
897
+ requestSources: [RequestSourceInput!]!
898
+ settings: ReplaySessionHttpOnePipelineSettingsInput!
899
+ }
900
+
885
901
  input CreateReplaySessionCollectionInput {
886
902
  name: String!
887
903
  }
@@ -905,11 +921,9 @@ type CreateReplaySessionPayload {
905
921
  }
906
922
 
907
923
  input CreateRequestInput {
908
- alteration: Alteration!
909
924
  host: String!
910
925
  isTls: Boolean!
911
926
  method: String!
912
- parentId: ID
913
927
  path: String!
914
928
  port: Int!
915
929
  query: String!
@@ -925,11 +939,8 @@ type CreateRequestPayload {
925
939
  }
926
940
 
927
941
  input CreateResponseInput {
928
- alteration: Alteration!
929
- parentId: ID
930
942
  raw: Blob!
931
943
  roundtripTime: Int!
932
- source: Source!
933
944
  statusCode: Int!
934
945
  }
935
946
 
@@ -1667,6 +1678,11 @@ type ExportTamperPayload {
1667
1678
  export: DataExportOnDemand
1668
1679
  }
1669
1680
 
1681
+ enum FailureBehavior {
1682
+ ABORT_ON_PARTIAL
1683
+ FIRE_ON_PARTIAL
1684
+ }
1685
+
1670
1686
  input FilterClauseFindingInput {
1671
1687
  reporter: String
1672
1688
  }
@@ -1940,6 +1956,22 @@ type InstallPluginPackagePayload {
1940
1956
  package: PluginPackage
1941
1957
  }
1942
1958
 
1959
+ union InstallPluginPackagesError =
1960
+ | PluginUserError
1961
+ | StoreUserError
1962
+ | CloudUserError
1963
+ | OtherUserError
1964
+
1965
+ input InstallPluginPackagesInput {
1966
+ force: Boolean
1967
+ sources: [PluginPackageSource!]!
1968
+ }
1969
+
1970
+ type InstallPluginPackagesPayload {
1971
+ errors: [InstallPluginPackagesError!]!
1972
+ packages: [PluginPackage!]!
1973
+ }
1974
+
1943
1975
  type InstanceSettings {
1944
1976
  aiProviders: AIProviders!
1945
1977
  analytic: AnalyticStatus!
@@ -2214,7 +2246,10 @@ type MutationRoot {
2214
2246
  createFilterPreset(input: CreateFilterPresetInput!): CreateFilterPresetPayload! @cloud
2215
2247
  createFinding(requestId: ID!, input: CreateFindingInput!): CreateFindingPayload!
2216
2248
  createProject(input: CreateProjectInput!): CreateProjectPayload! @cloud
2217
- createReplaySession(input: CreateReplaySessionInput!): CreateReplaySessionPayload!
2249
+ createReplayPipelineHttpOneSession(
2250
+ input: CreateReplayPipelineSessionInput!
2251
+ ): CreateReplayPipelineHttpOneSessionPayload! @cloud
2252
+ createReplaySession(input: CreateReplaySessionInput!): CreateReplaySessionPayload! @cloud
2218
2253
  createReplaySessionCollection(
2219
2254
  input: CreateReplaySessionCollectionInput!
2220
2255
  ): CreateReplaySessionCollectionPayload!
@@ -2269,6 +2304,7 @@ type MutationRoot {
2269
2304
  importData(input: ImportDataInput!): DataImportResult! @cloud
2270
2305
  installBrowser: InstallBrowserPayload! @cloud
2271
2306
  installPluginPackage(input: InstallPluginPackageInput!): InstallPluginPackagePayload! @cloud
2307
+ installPluginPackages(input: InstallPluginPackagesInput!): InstallPluginPackagesPayload! @cloud
2272
2308
  localizeWorkflow(id: ID!): LocalizeWorkflowPayload!
2273
2309
  loginAsGuest: GuestAuthenticationPayload! @cloud
2274
2310
  logout: LogoutPayload! @cloud
@@ -2313,12 +2349,17 @@ type MutationRoot {
2313
2349
  input: SendReplayTaskMessageInput!
2314
2350
  ): SendReplayTaskMessagePayload!
2315
2351
  sendReplayTaskMessageDraft(task: ID!): SendReplayTaskMessagePayload!
2352
+ setActiveReplayPipelineEntryHttpEntry(
2353
+ id: ID!
2354
+ httpEntryId: ID!
2355
+ ): SetActiveReplayPipelineEntryHttpEntryPayload!
2316
2356
  setActiveReplaySessionEntry(id: ID!, entryId: ID!): SetActiveReplaySessionEntryPayload!
2317
2357
  @deprecated(reason: "Remove usage, no replacement")
2318
2358
  setGlobalConfigPort(input: Int!): SetConfigPortPayload!
2319
2359
  setGlobalConfigProject(input: SetConfigProjectInput!): SetConfigProjectPayload!
2320
2360
  setInstanceSettings(input: SetInstanceSettingsInput!): SetInstanceSettingsPayload!
2321
2361
  setInterceptOptions(input: InterceptOptionsInput!): SetInterceptOptionsPayload!
2362
+ setPassthroughOptions(input: PassthroughOptionsInput!): SetPassthroughOptionsPayload!
2322
2363
  setPluginData(id: ID!, data: JSON!): SetPluginDataPayload!
2323
2364
  setProjectConfigStream(input: ProjectConfigStreamInput!): SetProjectConfigStreamPayload!
2324
2365
  startAuthenticationFlow: StartAuthenticationFlowPayload! @cloud
@@ -2347,6 +2388,7 @@ type MutationRoot {
2347
2388
  toggleWorkflow(id: ID!, enabled: Boolean!): ToggleWorkflowPayload!
2348
2389
  track(input: TrackInput!): TrackPayload!
2349
2390
  uninstallPluginPackage(id: ID!): UninstallPluginPackagePayload!
2391
+ uninstallPluginPackages(ids: [ID!]!): UninstallPluginPackagesPayload!
2350
2392
  updateAutomateSession(id: ID!, input: UpdateAutomateSessionInput!): UpdateAutomateSessionPayload!
2351
2393
  @cloud
2352
2394
  updateBrowser: UpdateBrowserPayload! @cloud
@@ -2359,6 +2401,10 @@ type MutationRoot {
2359
2401
  id: ID!
2360
2402
  input: UpdateReplayEntryDraftInput!
2361
2403
  ): UpdateReplayEntryDraftPayload!
2404
+ updateReplayEntryHttpOnePipelineDraftHttpEntries(
2405
+ id: ID!
2406
+ input: UpdateReplayEntryHttpOnePipelineDraftHttpEntriesInput!
2407
+ ): UpdateReplayEntryDraftPayload!
2362
2408
  updateReplaySessionSettings(
2363
2409
  id: ID!
2364
2410
  input: ReplaySessionSettingsInput!
@@ -2429,6 +2475,26 @@ type PageInfo {
2429
2475
  startCursor: String
2430
2476
  }
2431
2477
 
2478
+ type PassthroughOptions {
2479
+ passthroughOptions: PassthroughOptionsObject
2480
+ }
2481
+
2482
+ input PassthroughOptionsInput {
2483
+ outofscope: Boolean!
2484
+ targets: PassthroughTargets!
2485
+ }
2486
+
2487
+ type PassthroughOptionsObject {
2488
+ allowlist: [String!]
2489
+ denylist: [String!]
2490
+ outOfScope: Boolean!
2491
+ }
2492
+
2493
+ input PassthroughTargets {
2494
+ allowlist: [String!]
2495
+ denylist: [String!]
2496
+ }
2497
+
2432
2498
  union PauseAutomateTaskError = UnknownIdUserError | OtherUserError
2433
2499
 
2434
2500
  type PauseAutomateTaskPayload {
@@ -2458,6 +2524,43 @@ type PersistProjectPayload {
2458
2524
 
2459
2525
  union PersistProjectPayloadError = PermissionDeniedUserError | UnknownIdUserError | OtherUserError
2460
2526
 
2527
+ union PipelineStrategy =
2528
+ | PipelineStrategySequential
2529
+ | PipelineStrategyLastByteSynchronization
2530
+ | PipelineStrategySinglePacketAttack
2531
+
2532
+ input PipelineStrategyInput @oneOf {
2533
+ lastByteSynchronization: PipelineStrategyLastByteSynchronizationInput
2534
+ sequential: PipelineStrategySequentialInput
2535
+ singlePacketAttack: PipelineStrategySinglePacketAttackInput
2536
+ }
2537
+
2538
+ type PipelineStrategyLastByteSynchronization {
2539
+ failureBehavior: FailureBehavior!
2540
+ }
2541
+
2542
+ input PipelineStrategyLastByteSynchronizationInput {
2543
+ failureBehavior: FailureBehavior!
2544
+ }
2545
+
2546
+ type PipelineStrategySequential {
2547
+ abortOnFailure: Boolean!
2548
+ }
2549
+
2550
+ input PipelineStrategySequentialInput {
2551
+ abortOnFailure: Boolean!
2552
+ }
2553
+
2554
+ type PipelineStrategySinglePacketAttack {
2555
+ convertToHttp2: Boolean!
2556
+ failureBehavior: FailureBehavior!
2557
+ }
2558
+
2559
+ input PipelineStrategySinglePacketAttackInput {
2560
+ convertToHttp2: Boolean!
2561
+ failureBehavior: FailureBehavior!
2562
+ }
2563
+
2461
2564
  interface Plugin {
2462
2565
  enabled: Boolean!
2463
2566
  id: ID!
@@ -2515,10 +2618,17 @@ type PluginPackage {
2515
2618
  links: PluginLinks
2516
2619
  manifestId: ID!
2517
2620
  name: String
2621
+ origin: PluginPackageOrigin!
2518
2622
  plugins: [Plugin!]!
2519
2623
  version: String!
2520
2624
  }
2521
2625
 
2626
+ enum PluginPackageOrigin {
2627
+ FILE
2628
+ STORE
2629
+ URL
2630
+ }
2631
+
2522
2632
  input PluginPackageSource @oneOf {
2523
2633
  file: Upload
2524
2634
  manifestId: ID
@@ -2685,6 +2795,7 @@ type QueryRoot {
2685
2795
  ): InterceptMessageConnection!
2686
2796
  interceptOptions: InterceptOptions!
2687
2797
  interceptStatus: InterceptStatus!
2798
+ passthroughOptions: PassthroughOptions!
2688
2799
  pluginPackages: [PluginPackage!]!
2689
2800
  projects: [Project!]! @cloud
2690
2801
  replayEntry(id: ID!, sessionKind: ReplaySessionKind!): ReplayEntry
@@ -3024,6 +3135,36 @@ type ReplayEntryHttpDraft {
3024
3135
  settings: ReplayEntryHttpSettings!
3025
3136
  }
3026
3137
 
3138
+ type ReplayEntryHttpOnePipeline implements ReplayEntry {
3139
+ activeHttpEntry: ReplayEntryHttp
3140
+ createdAt: Timestamp!
3141
+ draft: ReplayEntryHttpOnePipelineDraft
3142
+ error: String
3143
+ httpEntries: [ReplayEntryHttp!]!
3144
+ id: ID!
3145
+ rank: Rank!
3146
+ session: ReplaySession!
3147
+ settings: ReplayEntryHttpOnePipelineSettings!
3148
+ }
3149
+
3150
+ type ReplayEntryHttpOnePipelineDraft {
3151
+ settings: ReplayEntryHttpOnePipelineSettings!
3152
+ }
3153
+
3154
+ enum ReplayEntryHttpOnePipelineDraftHttpEntryOperationKind {
3155
+ ADD
3156
+ RANK
3157
+ REMOVE
3158
+ }
3159
+
3160
+ type ReplayEntryHttpOnePipelineSettings {
3161
+ strategy: PipelineStrategy!
3162
+ }
3163
+
3164
+ input ReplayEntryHttpOnePipelineSettingsInput {
3165
+ strategy: PipelineStrategyInput!
3166
+ }
3167
+
3027
3168
  type ReplayEntryHttpSettings {
3028
3169
  placeholders: [ReplayPlaceholder!]!
3029
3170
  }
@@ -3205,6 +3346,30 @@ type ReplaySessionHttp implements ReplaySession {
3205
3346
  settings: ReplaySessionHttpSettings
3206
3347
  }
3207
3348
 
3349
+ type ReplaySessionHttpOnePipeline implements ReplaySession {
3350
+ activeEntry: ReplayEntry
3351
+ collection: ReplaySessionCollection!
3352
+ entries(
3353
+ after: String
3354
+ before: String
3355
+ first: Int
3356
+ last: Int
3357
+ order: ReplayEntryOrderInput
3358
+ ): ReplayEntryConnection!
3359
+ id: ID!
3360
+ name: String!
3361
+ rank: Rank!
3362
+ settings: ReplaySessionHttpOnePipelineSettings
3363
+ }
3364
+
3365
+ type ReplaySessionHttpOnePipelineSettings {
3366
+ strategy: PipelineStrategy!
3367
+ }
3368
+
3369
+ input ReplaySessionHttpOnePipelineSettingsInput {
3370
+ strategy: PipelineStrategyInput!
3371
+ }
3372
+
3208
3373
  type ReplaySessionHttpSettings {
3209
3374
  connectionClose: Boolean!
3210
3375
  updateContentLength: Boolean!
@@ -3217,11 +3382,13 @@ input ReplaySessionHttpSettingsInput {
3217
3382
 
3218
3383
  enum ReplaySessionKind {
3219
3384
  HTTP
3385
+ HTTP_ONE_PIPELINE
3220
3386
  WS
3221
3387
  }
3222
3388
 
3223
3389
  input ReplaySessionSettingsInput @oneOf {
3224
3390
  http: ReplaySessionHttpSettingsInput
3391
+ httpOnePipeline: ReplaySessionHttpOnePipelineSettingsInput
3225
3392
  }
3226
3393
 
3227
3394
  type ReplaySessionWs implements ReplaySession {
@@ -3518,6 +3685,10 @@ type SendReplayTaskMessagePayload {
3518
3685
 
3519
3686
  scalar Sensitive
3520
3687
 
3688
+ type SetActiveReplayPipelineEntryHttpEntryPayload {
3689
+ entry: ReplayEntryHttpOnePipeline
3690
+ }
3691
+
3521
3692
  type SetActiveReplaySessionEntryPayload {
3522
3693
  session: ReplaySession
3523
3694
  }
@@ -3550,6 +3721,10 @@ type SetInterceptOptionsPayload {
3550
3721
  options: InterceptOptions!
3551
3722
  }
3552
3723
 
3724
+ type SetPassthroughOptionsPayload {
3725
+ options: PassthroughOptions!
3726
+ }
3727
+
3553
3728
  union SetPluginDataError = UnknownIdUserError | PluginUserError | OtherUserError
3554
3729
 
3555
3730
  type SetPluginDataPayload {
@@ -3750,12 +3925,15 @@ enum StoreErrorReason {
3750
3925
 
3751
3926
  type StorePluginPackage {
3752
3927
  author: StorePluginPackageAuthor
3928
+ changelogUrl: Url
3753
3929
  description: String
3754
3930
  downloads: Int!
3755
3931
  license: String!
3756
3932
  manifestId: ID!
3757
3933
  name: String
3758
3934
  official: Boolean!
3935
+ quality: StorePluginPackageQuality!
3936
+ readmeUrl: Url
3759
3937
  repository: Url!
3760
3938
  version: Version!
3761
3939
  }
@@ -3766,6 +3944,12 @@ type StorePluginPackageAuthor {
3766
3944
  url: String
3767
3945
  }
3768
3946
 
3947
+ enum StorePluginPackageQuality {
3948
+ BRONZE
3949
+ GOLD
3950
+ SILVER
3951
+ }
3952
+
3769
3953
  type StoreUserError implements UserError {
3770
3954
  code: String!
3771
3955
  reason: StoreErrorReason!
@@ -4014,6 +4198,7 @@ type SubscriptionRoot {
4014
4198
  updatedInterceptEntry(filter: HTTPQLInput, scopeId: ID): UpdatedInterceptEntryPayload!
4015
4199
  updatedInterceptOptions: UpdatedInterceptOptionsPayload!
4016
4200
  updatedInterceptStatus: UpdatedInterceptStatusPayload!
4201
+ updatedPassthroughOptions: UpdatedPassthroughOptionsPayload!
4017
4202
  updatedPlugin: UpdatedPluginPayload!
4018
4203
  updatedPluginPackage: UpdatedPluginPackagePayload!
4019
4204
  updatedProject: UpdatedProjectPayload!
@@ -4687,6 +4872,13 @@ type UninstallPluginPackagePayload {
4687
4872
  error: UninstallPluginPackageError
4688
4873
  }
4689
4874
 
4875
+ union UninstallPluginPackagesError = UnknownIdUserError | OtherUserError
4876
+
4877
+ type UninstallPluginPackagesPayload {
4878
+ deletedIds: [ID!]!
4879
+ errors: [UninstallPluginPackagesError!]!
4880
+ }
4881
+
4690
4882
  type UnknownIdUserError implements UserError {
4691
4883
  code: String!
4692
4884
  id: ID!
@@ -4789,6 +4981,7 @@ type UpdateFindingPayload {
4789
4981
 
4790
4982
  input UpdateReplayEntryDraftInput @oneOf {
4791
4983
  http: UpdateReplayEntryHttpDraftInput
4984
+ httpOnePipeline: UpdateReplayEntryHttpOnePipelineDraftInput
4792
4985
  ws: UpdateReplayEntryWsDraftInput
4793
4986
  }
4794
4987
 
@@ -4803,6 +4996,21 @@ input UpdateReplayEntryHttpDraftInput {
4803
4996
  settings: ReplayEntryHttpSettingsInput!
4804
4997
  }
4805
4998
 
4999
+ input UpdateReplayEntryHttpOnePipelineDraftHttpEntriesInput {
5000
+ operations: [UpdateReplayEntryHttpOnePipelineDraftHttpEntryOperationInput!]!
5001
+ }
5002
+
5003
+ input UpdateReplayEntryHttpOnePipelineDraftHttpEntryOperationInput {
5004
+ httpEntryId: ID
5005
+ operation: ReplayEntryHttpOnePipelineDraftHttpEntryOperationKind!
5006
+ rank: RankInput
5007
+ requestSource: RequestSourceInput
5008
+ }
5009
+
5010
+ input UpdateReplayEntryHttpOnePipelineDraftInput {
5011
+ settings: ReplayEntryHttpOnePipelineSettingsInput!
5012
+ }
5013
+
4806
5014
  input UpdateReplayEntryWsDraftInput {
4807
5015
  direction: StreamMessageDirection!
4808
5016
  editorState: Blob!
@@ -5012,6 +5220,10 @@ type UpdatedInterceptStatusPayload {
5012
5220
  status: InterceptStatus!
5013
5221
  }
5014
5222
 
5223
+ type UpdatedPassthroughOptionsPayload {
5224
+ options: PassthroughOptions!
5225
+ }
5226
+
5015
5227
  type UpdatedPluginPackagePayload {
5016
5228
  package: PluginPackage!
5017
5229
  }