@caido/schema-proxy 0.2.0 → 0.3.0

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 +40 -151
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caido/schema-proxy",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
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
@@ -687,10 +687,6 @@ type CertificateUserError implements UserError {
687
687
  reason: CertificateErrorReason!
688
688
  }
689
689
 
690
- type ClearReplayEntryDraftPayload {
691
- entry: ReplayEntry
692
- }
693
-
694
690
  type ClearSitemapEntriesPayload {
695
691
  deletedIds: [ID!]!
696
692
  }
@@ -863,7 +859,6 @@ type CreateReplaySessionCollectionPayload {
863
859
  input CreateReplaySessionInput {
864
860
  collectionId: ID
865
861
  requestSource: RequestSourceInput
866
- settings: ReplaySessionSettingsInput
867
862
  }
868
863
 
869
864
  type CreateReplaySessionPayload {
@@ -1800,10 +1795,6 @@ input HTTPQLInput {
1800
1795
  code: String!
1801
1796
  }
1802
1797
 
1803
- type HiddenStreamWsMessage {
1804
- hiddenId: ID!
1805
- }
1806
-
1807
1798
  input HideFindingsInput @oneOf {
1808
1799
  ids: [ID!]
1809
1800
  reporter: String
@@ -2071,21 +2062,11 @@ type InvalidHTTPQLUserError implements UserError {
2071
2062
  query: String!
2072
2063
  }
2073
2064
 
2074
- type InvalidRangeUserError implements UserError {
2075
- code: String!
2076
- range: Range!
2077
- }
2078
-
2079
2065
  type InvalidRegexUserError implements UserError {
2080
2066
  code: String!
2081
2067
  term: String!
2082
2068
  }
2083
2069
 
2084
- type InvalidStreamQLUserError implements UserError {
2085
- code: String!
2086
- query: String!
2087
- }
2088
-
2089
2070
  """
2090
2071
  A scalar that can represent any JSON value.
2091
2072
  """
@@ -2141,7 +2122,6 @@ type MutationRoot {
2141
2122
  cancelBackupTask(id: ID!): CancelBackupTaskPayload!
2142
2123
  cancelRestoreBackupTask(id: ID!): CancelRestoreBackupTaskPayload!
2143
2124
  cancelTask(id: ID!): CancelTaskPayload!
2144
- clearReplayEntryDraft(id: ID!): ClearReplayEntryDraftPayload!
2145
2125
  clearSitemapEntries: ClearSitemapEntriesPayload!
2146
2126
  createAssistantSession(
2147
2127
  input: CreateAssistantSessionInput!
@@ -2317,7 +2297,10 @@ type MutationRoot {
2317
2297
  startExportRequestsTask(
2318
2298
  input: StartExportRequestsTaskInput!
2319
2299
  ): StartExportRequestsTaskPayload! @cloud
2320
- startReplayTask(sessionId: ID!): StartReplayTaskPayload! @cloud
2300
+ startReplayTask(
2301
+ sessionId: ID!
2302
+ input: StartReplayTaskInput!
2303
+ ): StartReplayTaskPayload! @cloud
2321
2304
  testAiProvider(input: TestAIProviderInput!): TestAIProviderPayload! @cloud
2322
2305
  testTamperRule(input: TestTamperRuleInput!): TestTamperRulePayload!
2323
2306
  testUpstreamProxyHttp(
@@ -2372,14 +2355,6 @@ type MutationRoot {
2372
2355
  input: UpdateFilterPresetInput!
2373
2356
  ): UpdateFilterPresetPayload!
2374
2357
  updateFinding(id: ID!, input: UpdateFindingInput!): UpdateFindingPayload!
2375
- updateReplayEntryDraft(
2376
- id: ID!
2377
- input: UpdateReplayEntryDraftInput!
2378
- ): UpdateReplayEntryDraftPayload!
2379
- updateReplaySessionSettings(
2380
- id: ID!
2381
- input: ReplaySessionSettingsInput!
2382
- ): UpdateReplaySessionSettingsPayload!
2383
2358
  updateRequestMetadata(
2384
2359
  id: ID!
2385
2360
  input: UpdateRequestMetadataInput!
@@ -2782,14 +2757,12 @@ type QueryRoot {
2782
2757
  first: Int
2783
2758
  last: Int
2784
2759
  order: StreamWsMessageOrderInput
2785
- filter: StreamQLInput
2786
2760
  streamId: ID!
2787
2761
  ): StreamWsMessageConnection!
2788
2762
  streamWsMessagesByOffset(
2789
2763
  limit: Int
2790
2764
  offset: Int
2791
2765
  order: StreamWsMessageOrderInput
2792
- filter: StreamQLInput
2793
2766
  streamId: ID!
2794
2767
  ): StreamWsMessageConnection!
2795
2768
  streams(
@@ -2797,14 +2770,14 @@ type QueryRoot {
2797
2770
  before: String
2798
2771
  first: Int
2799
2772
  last: Int
2800
- filter: StreamQLInput
2773
+ protocol: StreamProtocol!
2801
2774
  order: StreamOrderInput
2802
2775
  scopeId: ID
2803
2776
  ): StreamConnection!
2804
2777
  streamsByOffset(
2805
2778
  limit: Int
2806
2779
  offset: Int
2807
- filter: StreamQLInput
2780
+ protocol: StreamProtocol!
2808
2781
  order: StreamOrderInput
2809
2782
  scopeId: ID
2810
2783
  ): StreamConnection!
@@ -3023,11 +2996,15 @@ type RenderRequestPayload {
3023
2996
  render: Image
3024
2997
  }
3025
2998
 
3026
- interface ReplayEntry {
2999
+ type ReplayEntry {
3000
+ connection: ConnectionInfo!
3027
3001
  createdAt: Timestamp!
3028
3002
  error: String
3029
3003
  id: ID!
3004
+ raw: Blob!
3005
+ request: Request
3030
3006
  session: ReplaySession!
3007
+ settings: ReplayEntrySettings!
3031
3008
  }
3032
3009
 
3033
3010
  type ReplayEntryConnection {
@@ -3061,40 +3038,23 @@ type ReplayEntryEdge {
3061
3038
  node: ReplayEntry!
3062
3039
  }
3063
3040
 
3064
- type ReplayEntryHttp implements ReplayEntry {
3065
- connection: ConnectionInfo!
3066
- createdAt: Timestamp!
3067
- draft: ReplayEntryHttpDraft
3068
- error: String
3069
- id: ID!
3070
- raw: Blob!
3071
- request: Request
3072
- session: ReplaySession!
3073
- settings: ReplayEntryHttpSettings!
3041
+ enum ReplayEntryOrderBy {
3042
+ ID
3074
3043
  }
3075
3044
 
3076
- type ReplayEntryHttpDraft {
3077
- connection: ConnectionInfo!
3078
- editorState: Blob!
3079
- raw: Blob!
3080
- settings: ReplayEntryHttpSettings!
3045
+ input ReplayEntryOrderInput {
3046
+ by: ReplayEntryOrderBy!
3047
+ ordering: Ordering!
3081
3048
  }
3082
3049
 
3083
- type ReplayEntryHttpSettings {
3050
+ type ReplayEntrySettings {
3084
3051
  placeholders: [ReplayPlaceholder!]!
3085
3052
  }
3086
3053
 
3087
- input ReplayEntryHttpSettingsInput {
3054
+ input ReplayEntrySettingsInput {
3055
+ connectionClose: Boolean!
3088
3056
  placeholders: [ReplayPlaceholderInput!]!
3089
- }
3090
-
3091
- enum ReplayEntryOrderBy {
3092
- ID
3093
- }
3094
-
3095
- input ReplayEntryOrderInput {
3096
- by: ReplayEntryOrderBy!
3097
- ordering: Ordering!
3057
+ updateContentLength: Boolean!
3098
3058
  }
3099
3059
 
3100
3060
  type ReplayEnvironmentPreprocessor {
@@ -3148,7 +3108,16 @@ input ReplayPreprocessorOptionsInput @oneOf {
3148
3108
  workflow: ReplayWorkflowPreprocessorInput
3149
3109
  }
3150
3110
 
3151
- interface ReplaySession {
3111
+ type ReplaySession {
3112
+ activeEntry: ReplayEntry
3113
+ collection: ReplaySessionCollection!
3114
+ entries(
3115
+ after: String
3116
+ before: String
3117
+ first: Int
3118
+ last: Int
3119
+ order: ReplayEntryOrderInput
3120
+ ): ReplayEntryConnection!
3152
3121
  id: ID!
3153
3122
  name: String!
3154
3123
  rank: Rank!
@@ -3223,36 +3192,6 @@ type ReplaySessionEdge {
3223
3192
  node: ReplaySession!
3224
3193
  }
3225
3194
 
3226
- type ReplaySessionHttp implements ReplaySession {
3227
- activeEntry: ReplayEntry
3228
- collection: ReplaySessionCollection!
3229
- entries(
3230
- after: String
3231
- before: String
3232
- first: Int
3233
- last: Int
3234
- order: ReplayEntryOrderInput
3235
- ): ReplayEntryConnection!
3236
- id: ID!
3237
- name: String!
3238
- rank: Rank!
3239
- settings: ReplaySessionHttpSettings
3240
- }
3241
-
3242
- type ReplaySessionHttpSettings {
3243
- connectionClose: Boolean!
3244
- updateContentLength: Boolean!
3245
- }
3246
-
3247
- input ReplaySessionHttpSettingsInput {
3248
- connectionClose: Boolean!
3249
- updateContentLength: Boolean!
3250
- }
3251
-
3252
- input ReplaySessionSettingsInput @oneOf {
3253
- http: ReplaySessionHttpSettingsInput
3254
- }
3255
-
3256
3195
  type ReplaySuffixPreprocessor {
3257
3196
  value: String!
3258
3197
  }
@@ -3698,12 +3637,17 @@ union StartExportRequestsTaskPayloadError =
3698
3637
  | OtherUserError
3699
3638
 
3700
3639
  union StartReplayTaskError =
3701
- UnknownIdUserError
3702
- | TaskInProgressUserError
3640
+ TaskInProgressUserError
3703
3641
  | PermissionDeniedUserError
3704
3642
  | CloudUserError
3705
3643
  | OtherUserError
3706
3644
 
3645
+ input StartReplayTaskInput {
3646
+ connection: ConnectionInfoInput!
3647
+ raw: Blob!
3648
+ settings: ReplayEntrySettingsInput!
3649
+ }
3650
+
3707
3651
  type StartReplayTaskPayload {
3708
3652
  error: StartReplayTaskError
3709
3653
  task: ReplayTask
@@ -3936,7 +3880,7 @@ type SubscriptionRoot {
3936
3880
  createdScope: CreatedScopePayload!
3937
3881
  createdSitemapEntry(scopeId: ID): CreatedSitemapEntryPayload!
3938
3882
  createdStream(protocol: StreamProtocol!, scopeId: ID): CreatedStreamPayload!
3939
- createdStreamWsMessage(filter: StreamQLInput): CreatedStreamWsMessagePayload!
3883
+ createdStreamWsMessage: CreatedStreamWsMessagePayload!
3940
3884
  createdTamperRule: CreatedTamperRulePayload!
3941
3885
  createdTamperRuleCollection: CreatedTamperRuleCollectionPayload!
3942
3886
  createdUpstreamPlugin: CreatedUpstreamPluginPayload!
@@ -4014,7 +3958,7 @@ type SubscriptionRoot {
4014
3958
  updatedRequestMetadata: UpdatedRequestMetadataPayload!
4015
3959
  updatedScope: UpdatedScopePayload!
4016
3960
  updatedSitemapEntry(scopeId: ID): UpdatedSitemapEntryPayload!
4017
- updatedStreamWsMessage(filter: StreamQLInput): UpdatedStreamWsMessagePayload!
3961
+ updatedStreamWsMessage: UpdatedStreamWsMessagePayload!
4018
3962
  updatedTamperRule: UpdatedTamperRulePayload!
4019
3963
  updatedTamperRuleCollection: UpdatedTamperRuleCollectionPayload!
4020
3964
  updatedUpstreamPlugin: UpdatedUpstreamPluginPayload!
@@ -4283,22 +4227,6 @@ input TamperOperationStatusCodeUpdateInput {
4283
4227
  replacer: TamperReplacerInput!
4284
4228
  }
4285
4229
 
4286
- union TamperOperationStreamWsMessage = TamperOperationStreamWsMessageRaw
4287
-
4288
- input TamperOperationStreamWsMessageInput @oneOf {
4289
- raw: TamperOperationStreamWsMessageRawInput
4290
- }
4291
-
4292
- type TamperOperationStreamWsMessageRaw {
4293
- matcher: TamperMatcherRaw!
4294
- replacer: TamperReplacer!
4295
- }
4296
-
4297
- input TamperOperationStreamWsMessageRawInput {
4298
- matcher: TamperMatcherRawInput!
4299
- replacer: TamperReplacerInput!
4300
- }
4301
-
4302
4230
  union TamperReplacer = TamperReplacerTerm | TamperReplacerWorkflow
4303
4231
 
4304
4232
  input TamperReplacerInput @oneOf {
@@ -4370,8 +4298,6 @@ union TamperSection =
4370
4298
  | TamperSectionResponseFirstLine
4371
4299
  | TamperSectionResponseHeader
4372
4300
  | TamperSectionResponseAll
4373
- | TamperSectionStreamWsMessageUpstream
4374
- | TamperSectionStreamWsMessageDownstream
4375
4301
 
4376
4302
  input TamperSectionInput @oneOf {
4377
4303
  requestAll: TamperSectionRequestAllInput
@@ -4387,8 +4313,6 @@ input TamperSectionInput @oneOf {
4387
4313
  responseFirstLine: TamperSectionResponseFirstLineInput
4388
4314
  responseHeader: TamperSectionResponseHeaderInput
4389
4315
  responseStatusCode: TamperSectionResponseStatusCodeInput
4390
- streamWsMessageDownstream: TamperSectionStreamWsMessageInput
4391
- streamWsMessageUpstream: TamperSectionStreamWsMessageInput
4392
4316
  }
4393
4317
 
4394
4318
  type TamperSectionRequestAll {
@@ -4495,18 +4419,6 @@ input TamperSectionResponseStatusCodeInput {
4495
4419
  operation: TamperOperationStatusCodeInput!
4496
4420
  }
4497
4421
 
4498
- type TamperSectionStreamWsMessageDownstream {
4499
- operation: TamperOperationStreamWsMessage!
4500
- }
4501
-
4502
- input TamperSectionStreamWsMessageInput {
4503
- operation: TamperOperationStreamWsMessageInput!
4504
- }
4505
-
4506
- type TamperSectionStreamWsMessageUpstream {
4507
- operation: TamperOperationStreamWsMessage!
4508
- }
4509
-
4510
4422
  type TamperSummary {
4511
4423
  collectionsCreated: Int!
4512
4424
  rulesImported: Int!
@@ -4784,25 +4696,6 @@ type UpdateFindingPayload {
4784
4696
  finding: Finding
4785
4697
  }
4786
4698
 
4787
- input UpdateReplayEntryDraftInput @oneOf {
4788
- http: UpdateReplayEntryHttpDraftInput
4789
- }
4790
-
4791
- type UpdateReplayEntryDraftPayload {
4792
- entry: ReplayEntry
4793
- }
4794
-
4795
- input UpdateReplayEntryHttpDraftInput {
4796
- connection: ConnectionInfoInput!
4797
- editorState: Blob!
4798
- raw: Blob!
4799
- settings: ReplayEntryHttpSettingsInput!
4800
- }
4801
-
4802
- type UpdateReplaySessionSettingsPayload {
4803
- session: ReplaySession
4804
- }
4805
-
4806
4699
  input UpdateRequestMetadataInput {
4807
4700
  color: String
4808
4701
  }
@@ -5045,15 +4938,11 @@ type UpdatedSitemapEntryPayload {
5045
4938
  snapshot: Snapshot!
5046
4939
  }
5047
4940
 
5048
- type UpdatedStreamWsMessage {
4941
+ type UpdatedStreamWsMessagePayload {
5049
4942
  messageEdge(order: StreamWsMessageOrderInput): StreamWsMessageEdge!
5050
4943
  snapshot: Snapshot!
5051
4944
  }
5052
4945
 
5053
- union UpdatedStreamWsMessagePayload =
5054
- UpdatedStreamWsMessage
5055
- | HiddenStreamWsMessage
5056
-
5057
4946
  type UpdatedTamperRuleCollectionPayload {
5058
4947
  collectionEdge: TamperRuleCollectionEdge!
5059
4948
  snapshot: Snapshot!