113113 "description" : " Get a URL to upload image that will be publicly accessible" ,
114114 "operationId" : " UploadImage" ,
115115 "parameters" : [ ],
116+ "requestBody" : {
117+ "content" : {
118+ "application/json" : {
119+ "schema" : {
120+ "$ref" : " #/components/schemas/UploadImage_request"
121+ }
122+ }
123+ },
124+ "required" : false
125+ },
116126 "responses" : {
117127 "200" : {
118128 "content" : {
68336843 "required" : [ " message" , " status" ],
68346844 "title" : " Basic Error"
68356845 },
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+ },
68366852 "ImageURL" : {
68376853 "properties" : {
68386854 "upload_url" : {
68426858 "download_url" : {
68436859 "example" : " https://cloudquery.io/api/v1/download/1234567890abcdef1234567890abcdef" ,
68446860 "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"
68456869 }
68466870 },
6847- "required" : [ " download_url" , " upload_url" ]
6871+ "required" : [ " download_url" , " required_headers " , " upload_url" ]
68486872 },
68496873 "TeamName" : {
68506874 "description" : " The unique name for the team." ,
81538177 "minLength" : 40 ,
81548178 "pattern" : " ^[a-f0-9]+$" ,
81558179 "type" : " string"
8180+ },
8181+ "content_type" : {
8182+ "$ref" : " #/components/schemas/ContentType"
81568183 }
81578184 },
81588185 "required" : [ " checksum" , " name" ],
81778204 "description" : " URL to upload image" ,
81788205 "type" : " string" ,
81798206 "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"
81808215 }
81818216 },
8182- "required" : [ " checksum" , " name" , " url" ]
8217+ "required" : [ " checksum" , " name" , " required_headers " , " url" ]
81838218 },
81848219 "AddonOrderID" : {
81858220 "description" : " ID of the addon order" ,
1008810123 },
1008910124 "required" : [ " base_url" , " return_url" ]
1009010125 },
10126+ "UploadImage_request" : {
10127+ "properties" : {
10128+ "content_type" : {
10129+ "$ref" : " #/components/schemas/ContentType"
10130+ }
10131+ }
10132+ },
1009110133 "ListPluginNotificationRequests_200_response" : {
1009210134 "properties" : {
1009310135 "items" : {
1071010752 "format" : " email"
1071110753 },
1071210754 "subdomain" : {
10713- "description" : " Subdomain to use in the URL"
10755+ "description" : " Subdomain to use in the URL" ,
10756+ "pattern" : " ^[a-zA-Z0-9-]+$"
1071410757 }
1071510758 },
1071610759 "required" : [ " email" ]
@@ -10724,10 +10767,12 @@
1072410767 },
1072510768 "return_to" : {
1072610769 "description" : " Return to this URL after verification" ,
10727- "format" : " url"
10770+ "format" : " url" ,
10771+ "pattern" : " ^https:\\ /\\ /(.*\\ .)?cloudquery\\ .io(\\ /.*)?$"
1072810772 },
1072910773 "subdomain" : {
10730- "description" : " Subdomain to use in the URL"
10774+ "description" : " Subdomain to use in the URL" ,
10775+ "pattern" : " ^[a-zA-Z0-9-]+$"
1073110776 }
1073210777 },
1073310778 "required" : [ " email" ]
0 commit comments