|
38 | 38 |
|
39 | 39 | # Add response code "202" to "/devices/entities/devices/tags/v1" endpoint
|
40 | 40 | | .paths."/devices/entities/devices/tags/v1".patch.responses."202" = .paths."/devices/entities/devices/tags/v1".patch.responses."200"
|
41 |
| - |
| 41 | + |
42 | 42 |
|
43 | 43 | # CGP should be Gcp
|
44 | 44 | | .paths."/cloud-connect-gcp/entities/account/v1".get.operationId = "GetD4CGcpAccount"
|
|
49 | 49 | # looks like spotlight is staying to reverting it again... keeping this code incase it can be used some other time.
|
50 | 50 | # | walk(
|
51 | 51 | # if type == "object" and .tags and (.tags | index("spotlight-vulnerabilities")) then
|
52 |
| - # .tags |= map(gsub("spotlight-vulnerabilities"; "vulnerabilities")) |
| 52 | + # .tags |= map(gsub("spotlight-vulnerabilities"; "vulnerabilities")) |
53 | 53 | # elif type == "object" and .tags and (.tags | index("spotlight-evaluation-logic")) then
|
54 |
| - # .tags |= map(gsub("spotlight-evaluation-logic"; "vulnerabilities-evaluation-logic")) |
55 |
| - # else |
| 54 | + # .tags |= map(gsub("spotlight-evaluation-logic"; "vulnerabilities-evaluation-logic")) |
| 55 | + # else |
56 | 56 | # .
|
57 | 57 | # end
|
58 | 58 | # )
|
59 |
| - |
| 59 | + |
60 | 60 | # Revert msaspec.QueryResponse back to msa.QueryResponse for falconcomplete-dashboard
|
61 | 61 | | if .paths."/falcon-complete-dashboards/queries/alerts/v1".get.responses."200".schema."$ref" = "#/definitions/msaspec.QueryResponse" then .paths."/falcon-complete-dashboards/queries/alerts/v1".get.responses."200".schema |= {"$ref": "#/definitions/msa.QueryResponse"} else . end
|
62 | 62 | | if .paths."/falcon-complete-dashboards/queries/devicecount-collections/v1".get.responses."200".schema."$ref" = "#/definitions/msaspec.QueryResponse" then .paths."/falcon-complete-dashboards/queries/devicecount-collections/v1".get.responses."200".schema |= {"$ref": "#/definitions/msa.QueryResponse"} else . end
|
|
68 | 68 | | if .paths."/falcon-complete-dashboards/queries/remediations/v1".get.responses."200".schema."$ref" = "#/definitions/msaspec.QueryResponse" then .paths."/falcon-complete-dashboards/queries/remediations/v1".get.responses."200".schema |= {"$ref": "#/definitions/msa.QueryResponse"} else . end
|
69 | 69 |
|
70 | 70 | # Revert changes.GetChangesResponse back to public.GetChangesResponse for filevantage
|
71 |
| - | if .paths."/filevantage/entities/changes/v2".get.responses."200".schema."$ref" = "#/definitions/changes.GetChangesResponse" then |
72 |
| - .paths."/filevantage/entities/changes/v2".get.responses."200".schema = {"$ref": "#/definitions/public.GetChangesResponse"} |
73 |
| - |.definitions."public.GetChangesResponse" = .definitions."changes.GetChangesResponse" |
| 71 | + | if .paths."/filevantage/entities/changes/v2".get.responses."200".schema."$ref" = "#/definitions/changes.GetChangesResponse" then |
| 72 | + .paths."/filevantage/entities/changes/v2".get.responses."200".schema = {"$ref": "#/definitions/public.GetChangesResponse"} |
| 73 | + |.definitions."public.GetChangesResponse" = .definitions."changes.GetChangesResponse" |
74 | 74 | |del(.definitions."changes.GetChangesResponse") else . end
|
75 | 75 |
|
76 | 76 | # Make message-center use consistent return type
|
77 |
| - | if .paths."/message-center/aggregates/cases/GET/v1".post.responses."403".schema."$ref" = "#/definitions/msa.ReplyMetaOnly" then |
78 |
| - .paths."/message-center/aggregates/cases/GET/v1".post.responses."403".schema = {"$ref": "#/definitions/msaspec.ResponseFields"} |
79 |
| - else . end |
| 77 | + | if .paths."/message-center/aggregates/cases/GET/v1".post.responses."403".schema."$ref" = "#/definitions/msa.ReplyMetaOnly" then |
| 78 | + .paths."/message-center/aggregates/cases/GET/v1".post.responses."403".schema = {"$ref": "#/definitions/msaspec.ResponseFields"} |
| 79 | + else . end |
80 | 80 |
|
81 | 81 | # Custom Storage "custom-type" rename
|
82 | 82 | | .definitions."CustomStorageObjectKeys" = .definitions."CustomType_1255839303"
|
83 | 83 | | del(.definitions."CustomType_1255839303")
|
84 |
| - | if .paths."/customobjects/v1/collections/{collection_name}/{collection_version}/objects".get.responses."200".schema."$ref" = "#/definitions/CustomType_1255839303" then |
85 |
| - .paths."/customobjects/v1/collections/{collection_name}/{collection_version}/objects".get.responses."200".schema = {"$ref": "#/definitions/CustomStorageObjectKeys"} else . end |
86 |
| - | if .paths."/customobjects/v1/collections/{collection_name}/objects".get.responses."200".schema."$ref" = "#/definitions/CustomType_1255839303" then |
87 |
| - .paths."/customobjects/v1/collections/{collection_name}/objects".get.responses."200".schema = {"$ref": "#/definitions/CustomStorageObjectKeys"} else . end |
| 84 | + | if .paths."/customobjects/v1/collections/{collection_name}/{collection_version}/objects".get.responses."200".schema."$ref" = "#/definitions/CustomType_1255839303" then |
| 85 | + .paths."/customobjects/v1/collections/{collection_name}/{collection_version}/objects".get.responses."200".schema = {"$ref": "#/definitions/CustomStorageObjectKeys"} else . end |
| 86 | + | if .paths."/customobjects/v1/collections/{collection_name}/objects".get.responses."200".schema."$ref" = "#/definitions/CustomType_1255839303" then |
| 87 | + .paths."/customobjects/v1/collections/{collection_name}/objects".get.responses."200".schema = {"$ref": "#/definitions/CustomStorageObjectKeys"} else . end |
88 | 88 |
|
89 | 89 | | .definitions."CustomStorageResponse" = .definitions."CustomType_3191042536"
|
90 | 90 | | del(.definitions."CustomType_3191042536")
|
91 |
| - | if .paths."/customobjects/v1/collections/{collection_name}/objects".post.responses."200".schema."$ref" = "#/definitions/CustomType_3191042536" then |
| 91 | + | if .paths."/customobjects/v1/collections/{collection_name}/objects".post.responses."200".schema."$ref" = "#/definitions/CustomType_3191042536" then |
92 | 92 | .paths."/customobjects/v1/collections/{collection_name}/objects".post.responses."200".schema = {"$ref": "#/definitions/CustomStorageResponse"} else . end
|
93 |
| - | if .paths."/customobjects/v1/collections/{collection_name}/objects/{object_key}".put.responses."200".schema."$ref" = "#/definitions/CustomType_3191042536" then |
94 |
| - .paths."/customobjects/v1/collections/{collection_name}/objects/{object_key}".put.responses."200".schema = {"$ref": "#/definitions/CustomStorageResponse"} else . end |
95 |
| - | if .paths."/customobjects/v1/collections/{collection_name}/objects/{object_key}".delete.responses."200".schema."$ref" = "#/definitions/CustomType_3191042536" then |
96 |
| - .paths."/customobjects/v1/collections/{collection_name}/objects/{object_key}".delete.responses."200".schema = {"$ref": "#/definitions/CustomStorageResponse"} else . end |
97 |
| - | if .paths."/customobjects/v1/collections/{collection_name}/objects/{object_key}/metadata".get.responses."200".schema."$ref" = "#/definitions/CustomType_3191042536" then |
98 |
| - .paths."/customobjects/v1/collections/{collection_name}/objects/{object_key}/metadata".get.responses."200".schema = {"$ref": "#/definitions/CustomStorageResponse"} else . end |
99 |
| - | if .paths."/customobjects/v1/collections/{collection_name}/{collection_version}/objects".post.responses."200".schema."$ref" = "#/definitions/CustomType_3191042536" then |
100 |
| - .paths."/customobjects/v1/collections/{collection_name}/{collection_version}/objects".post.responses."200".schema = {"$ref": "#/definitions/CustomStorageResponse"} else . end |
101 |
| - | if .paths."/customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}".put.responses."200".schema."$ref" = "#/definitions/CustomType_3191042536" then |
102 |
| - .paths."/customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}".put.responses."200".schema = {"$ref": "#/definitions/CustomStorageResponse"} else . end |
103 |
| - | if .paths."/customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}".delete.responses."200".schema."$ref" = "#/definitions/CustomType_3191042536" then |
104 |
| - .paths."/customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}".delete.responses."200".schema = {"$ref": "#/definitions/CustomStorageResponse"} else . end |
105 |
| - | if .paths."/customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}/metadata".get.responses."200".schema."$ref" = "#/definitions/CustomType_3191042536" then |
106 |
| - .paths."/customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}/metadata".get.responses."200".schema = {"$ref": "#/definitions/CustomStorageResponse"} else . end |
107 |
| - |
| 93 | + | if .paths."/customobjects/v1/collections/{collection_name}/objects/{object_key}".put.responses."200".schema."$ref" = "#/definitions/CustomType_3191042536" then |
| 94 | + .paths."/customobjects/v1/collections/{collection_name}/objects/{object_key}".put.responses."200".schema = {"$ref": "#/definitions/CustomStorageResponse"} else . end |
| 95 | + | if .paths."/customobjects/v1/collections/{collection_name}/objects/{object_key}".delete.responses."200".schema."$ref" = "#/definitions/CustomType_3191042536" then |
| 96 | + .paths."/customobjects/v1/collections/{collection_name}/objects/{object_key}".delete.responses."200".schema = {"$ref": "#/definitions/CustomStorageResponse"} else . end |
| 97 | + | if .paths."/customobjects/v1/collections/{collection_name}/objects/{object_key}/metadata".get.responses."200".schema."$ref" = "#/definitions/CustomType_3191042536" then |
| 98 | + .paths."/customobjects/v1/collections/{collection_name}/objects/{object_key}/metadata".get.responses."200".schema = {"$ref": "#/definitions/CustomStorageResponse"} else . end |
| 99 | + | if .paths."/customobjects/v1/collections/{collection_name}/{collection_version}/objects".post.responses."200".schema."$ref" = "#/definitions/CustomType_3191042536" then |
| 100 | + .paths."/customobjects/v1/collections/{collection_name}/{collection_version}/objects".post.responses."200".schema = {"$ref": "#/definitions/CustomStorageResponse"} else . end |
| 101 | + | if .paths."/customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}".put.responses."200".schema."$ref" = "#/definitions/CustomType_3191042536" then |
| 102 | + .paths."/customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}".put.responses."200".schema = {"$ref": "#/definitions/CustomStorageResponse"} else . end |
| 103 | + | if .paths."/customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}".delete.responses."200".schema."$ref" = "#/definitions/CustomType_3191042536" then |
| 104 | + .paths."/customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}".delete.responses."200".schema = {"$ref": "#/definitions/CustomStorageResponse"} else . end |
| 105 | + | if .paths."/customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}/metadata".get.responses."200".schema."$ref" = "#/definitions/CustomType_3191042536" then |
| 106 | + .paths."/customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}/metadata".get.responses."200".schema = {"$ref": "#/definitions/CustomStorageResponse"} else . end |
| 107 | + |
108 | 108 | # Better operationId for workflows collection
|
109 | 109 | | .paths."/workflows/entities/execute/v1".post.operationId = "Execute"
|
110 | 110 | | .paths."/workflows/entities/execution-actions/v1".post.operationId = "ExecutionAction"
|
|
123 | 123 | | .paths."/loggingapi/entities/saved-searches/job-results-download/v1".get.operationId = "DownloadResults"
|
124 | 124 | | .paths."/loggingapi/entities/views/v1".get.operationId = "ListViews"
|
125 | 125 |
|
126 |
| - # Better operationId for custom-storage collection |
| 126 | + # Better operationId for custom-storage collection |
127 | 127 | | .paths."/customobjects/v1/collections/{collection_name}/objects".get.operationId = "list"
|
128 | 128 | | .paths."/customobjects/v1/collections/{collection_name}/objects".post.operationId = "search"
|
129 | 129 | | .paths."/customobjects/v1/collections/{collection_name}/objects/{object_key}".get.operationId = "get"
|
|
546 | 546 | }
|
547 | 547 | }
|
548 | 548 |
|
549 |
| -# Prevent unnecessary renaming |
| 549 | +# Add new credential definitions for nested response structure |
| 550 | +| .definitions."common.Credentials" = { |
| 551 | + "type": "object", |
| 552 | + "properties": { |
| 553 | + "meta": { |
| 554 | + "$ref": "#/definitions/msa.MetaInfo" |
| 555 | + }, |
| 556 | + "resources": { |
| 557 | + "type": "object", |
| 558 | + "properties": { |
| 559 | + "token": { |
| 560 | + "type": "string" |
| 561 | + } |
| 562 | + }, |
| 563 | + "required": ["token"] |
| 564 | + }, |
| 565 | + "errors": { |
| 566 | + "type": "array", |
| 567 | + "items": { |
| 568 | + "$ref": "#/definitions/msa.APIError" |
| 569 | + } |
| 570 | + } |
| 571 | + } |
| 572 | +} |
| 573 | +| .definitions."common.RegistryCredentialsResponse" = { |
| 574 | + "required": [ |
| 575 | + "errors", |
| 576 | + "meta", |
| 577 | + "resources" |
| 578 | + ], |
| 579 | + "properties": { |
| 580 | + "errors": { |
| 581 | + "type": "array", |
| 582 | + "items": { |
| 583 | + "$ref": "#/definitions/msa.APIError" |
| 584 | + } |
| 585 | + }, |
| 586 | + "meta": { |
| 587 | + "$ref": "#/definitions/msa.MetaInfo" |
| 588 | + }, |
| 589 | + "resources": { |
| 590 | + "$ref": "#/definitions/common.Credentials" |
| 591 | + } |
| 592 | + } |
| 593 | +} |
| 594 | + |
| 595 | +# Prevent unnecessary renaming |
550 | 596 | | .paths."/snapshots/entities/image-registry-credentials/v1".get.operationId = "GetCredentialsMixin0Mixin60"
|
551 | 597 | | .paths."/falconx/queries/submissions/v1".get.operationId = "QuerySubmissions"
|
552 | 598 | | .paths."/scanner/queries/scans/v1".get.operationId = "QuerySubmissionsMixin0"
|
|
0 commit comments