113
113
"description" : " Get a URL to upload image that will be publicly accessible" ,
114
114
"operationId" : " UploadImage" ,
115
115
"parameters" : [ ],
116
+ "requestBody" : {
117
+ "content" : {
118
+ "application/json" : {
119
+ "schema" : {
120
+ "$ref" : " #/components/schemas/UploadImage_request"
121
+ }
122
+ }
123
+ },
124
+ "required" : false
125
+ },
116
126
"responses" : {
117
127
"200" : {
118
128
"content" : {
6833
6843
"required" : [ " message" , " status" ],
6834
6844
"title" : " Basic Error"
6835
6845
},
6846
+ "ContentType" : {
6847
+ "description" : " The HTTP Content-Type of the image or asset" ,
6848
+ "enum" : [ " image/jpeg" , " image/png" , " image/gif" , " image/webp" ],
6849
+ "example" : " image/png" ,
6850
+ "type" : " string"
6851
+ },
6836
6852
"ImageURL" : {
6837
6853
"properties" : {
6838
6854
"upload_url" : {
6842
6858
"download_url" : {
6843
6859
"example" : " https://cloudquery.io/api/v1/download/1234567890abcdef1234567890abcdef" ,
6844
6860
"type" : " string"
6861
+ },
6862
+ "required_headers" : {
6863
+ "additionalProperties" : {
6864
+ "items" : {
6865
+ "type" : " string"
6866
+ }
6867
+ },
6868
+ "description" : " Required HTTP headers to include for the upload"
6845
6869
}
6846
6870
},
6847
- "required" : [ " download_url" , " upload_url" ]
6871
+ "required" : [ " download_url" , " required_headers " , " upload_url" ]
6848
6872
},
6849
6873
"TeamName" : {
6850
6874
"description" : " The unique name for the team." ,
8153
8177
"minLength" : 40 ,
8154
8178
"pattern" : " ^[a-f0-9]+$" ,
8155
8179
"type" : " string"
8180
+ },
8181
+ "content_type" : {
8182
+ "$ref" : " #/components/schemas/ContentType"
8156
8183
}
8157
8184
},
8158
8185
"required" : [ " checksum" , " name" ],
8177
8204
"description" : " URL to upload image" ,
8178
8205
"type" : " string" ,
8179
8206
"x-go-name" : " UploadURL"
8207
+ },
8208
+ "required_headers" : {
8209
+ "additionalProperties" : {
8210
+ "items" : {
8211
+ "type" : " string"
8212
+ }
8213
+ },
8214
+ "description" : " Required HTTP headers to include for the upload"
8180
8215
}
8181
8216
},
8182
- "required" : [ " checksum" , " name" , " url" ]
8217
+ "required" : [ " checksum" , " name" , " required_headers " , " url" ]
8183
8218
},
8184
8219
"AddonOrderID" : {
8185
8220
"description" : " ID of the addon order" ,
10088
10123
},
10089
10124
"required" : [ " base_url" , " return_url" ]
10090
10125
},
10126
+ "UploadImage_request" : {
10127
+ "properties" : {
10128
+ "content_type" : {
10129
+ "$ref" : " #/components/schemas/ContentType"
10130
+ }
10131
+ }
10132
+ },
10091
10133
"ListPluginNotificationRequests_200_response" : {
10092
10134
"properties" : {
10093
10135
"items" : {
10710
10752
"format" : " email"
10711
10753
},
10712
10754
"subdomain" : {
10713
- "description" : " Subdomain to use in the URL"
10755
+ "description" : " Subdomain to use in the URL" ,
10756
+ "pattern" : " ^[a-zA-Z0-9-]+$"
10714
10757
}
10715
10758
},
10716
10759
"required" : [ " email" ]
@@ -10724,10 +10767,12 @@
10724
10767
},
10725
10768
"return_to" : {
10726
10769
"description" : " Return to this URL after verification" ,
10727
- "format" : " url"
10770
+ "format" : " url" ,
10771
+ "pattern" : " ^https:\\ /\\ /(.*\\ .)?cloudquery\\ .io(\\ /.*)?$"
10728
10772
},
10729
10773
"subdomain" : {
10730
- "description" : " Subdomain to use in the URL"
10774
+ "description" : " Subdomain to use in the URL" ,
10775
+ "pattern" : " ^[a-zA-Z0-9-]+$"
10731
10776
}
10732
10777
},
10733
10778
"required" : [ " email" ]
0 commit comments