github.com/Redstoneguy129/cli@v0.0.0-20230211220159-15dca4e91917/pkg/api/types.gen.go (about) 1 // Package api provides primitives to interact with the openapi HTTP API. 2 // 3 // Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT. 4 package api 5 6 const ( 7 ApiKeyHeaderScopes = "apiKeyHeader.Scopes" 8 ApiKeyParamScopes = "apiKeyParam.Scopes" 9 BearerScopes = "bearer.Scopes" 10 ) 11 12 // Defines values for CreateProjectBodyPlan. 13 const ( 14 Free CreateProjectBodyPlan = "free" 15 Pro CreateProjectBodyPlan = "pro" 16 ) 17 18 // Defines values for CreateProjectBodyRegion. 19 const ( 20 ApNortheast1 CreateProjectBodyRegion = "ap-northeast-1" 21 ApNortheast2 CreateProjectBodyRegion = "ap-northeast-2" 22 ApSouth1 CreateProjectBodyRegion = "ap-south-1" 23 ApSoutheast1 CreateProjectBodyRegion = "ap-southeast-1" 24 ApSoutheast2 CreateProjectBodyRegion = "ap-southeast-2" 25 CaCentral1 CreateProjectBodyRegion = "ca-central-1" 26 EuCentral1 CreateProjectBodyRegion = "eu-central-1" 27 EuWest1 CreateProjectBodyRegion = "eu-west-1" 28 EuWest2 CreateProjectBodyRegion = "eu-west-2" 29 EuWest3 CreateProjectBodyRegion = "eu-west-3" 30 SaEast1 CreateProjectBodyRegion = "sa-east-1" 31 UsEast1 CreateProjectBodyRegion = "us-east-1" 32 UsWest1 CreateProjectBodyRegion = "us-west-1" 33 ) 34 35 // Defines values for FunctionResponseStatus. 36 const ( 37 FunctionResponseStatusACTIVE FunctionResponseStatus = "ACTIVE" 38 FunctionResponseStatusREMOVED FunctionResponseStatus = "REMOVED" 39 FunctionResponseStatusTHROTTLED FunctionResponseStatus = "THROTTLED" 40 ) 41 42 // Defines values for FunctionSlugResponseStatus. 43 const ( 44 FunctionSlugResponseStatusACTIVE FunctionSlugResponseStatus = "ACTIVE" 45 FunctionSlugResponseStatusREMOVED FunctionSlugResponseStatus = "REMOVED" 46 FunctionSlugResponseStatusTHROTTLED FunctionSlugResponseStatus = "THROTTLED" 47 ) 48 49 // Defines values for NetworkRestrictionsResponseEntitlement. 50 const ( 51 Allowed NetworkRestrictionsResponseEntitlement = "allowed" 52 Disallowed NetworkRestrictionsResponseEntitlement = "disallowed" 53 ) 54 55 // Defines values for NetworkRestrictionsResponseStatus. 56 const ( 57 Applied NetworkRestrictionsResponseStatus = "applied" 58 Stored NetworkRestrictionsResponseStatus = "stored" 59 ) 60 61 // Defines values for UpdateCustomHostnameResponseStatus. 62 const ( 63 N1NotStarted UpdateCustomHostnameResponseStatus = "1_not_started" 64 N2Initiated UpdateCustomHostnameResponseStatus = "2_initiated" 65 N3ChallengeVerified UpdateCustomHostnameResponseStatus = "3_challenge_verified" 66 N4OriginSetupCompleted UpdateCustomHostnameResponseStatus = "4_origin_setup_completed" 67 N5ServicesReconfigured UpdateCustomHostnameResponseStatus = "5_services_reconfigured" 68 ) 69 70 // Defines values for VanitySubdomainConfigResponseStatus. 71 const ( 72 Active VanitySubdomainConfigResponseStatus = "active" 73 CustomDomainUsed VanitySubdomainConfigResponseStatus = "custom-domain-used" 74 NotUsed VanitySubdomainConfigResponseStatus = "not-used" 75 ) 76 77 // ActivateVanitySubdomainResponse defines model for ActivateVanitySubdomainResponse. 78 type ActivateVanitySubdomainResponse struct { 79 CustomDomain string `json:"custom_domain"` 80 } 81 82 // CreateFunctionBody defines model for CreateFunctionBody. 83 type CreateFunctionBody struct { 84 Body string `json:"body"` 85 Name string `json:"name"` 86 Slug string `json:"slug"` 87 VerifyJwt *bool `json:"verify_jwt,omitempty"` 88 } 89 90 // CreateOrganizationBody defines model for CreateOrganizationBody. 91 type CreateOrganizationBody struct { 92 Name string `json:"name"` 93 } 94 95 // CreateProjectBody defines model for CreateProjectBody. 96 type CreateProjectBody struct { 97 DbPass string `json:"db_pass"` 98 KpsEnabled *bool `json:"kps_enabled,omitempty"` 99 Name string `json:"name"` 100 OrganizationId string `json:"organization_id"` 101 Plan CreateProjectBodyPlan `json:"plan"` 102 Region CreateProjectBodyRegion `json:"region"` 103 } 104 105 // CreateProjectBodyPlan defines model for CreateProjectBody.Plan. 106 type CreateProjectBodyPlan string 107 108 // CreateProjectBodyRegion defines model for CreateProjectBody.Region. 109 type CreateProjectBodyRegion string 110 111 // CreateSecretBody defines model for CreateSecretBody. 112 type CreateSecretBody struct { 113 Name string `json:"name"` 114 Value string `json:"value"` 115 } 116 117 // DatabaseResponse defines model for DatabaseResponse. 118 type DatabaseResponse struct { 119 Host string `json:"host"` 120 Version string `json:"version"` 121 } 122 123 // FunctionResponse defines model for FunctionResponse. 124 type FunctionResponse struct { 125 CreatedAt float32 `json:"created_at"` 126 Id string `json:"id"` 127 ImportMap *bool `json:"import_map,omitempty"` 128 Name string `json:"name"` 129 Slug string `json:"slug"` 130 Status FunctionResponseStatus `json:"status"` 131 UpdatedAt float32 `json:"updated_at"` 132 VerifyJwt *bool `json:"verify_jwt,omitempty"` 133 Version float32 `json:"version"` 134 } 135 136 // FunctionResponseStatus defines model for FunctionResponse.Status. 137 type FunctionResponseStatus string 138 139 // FunctionSlugResponse defines model for FunctionSlugResponse. 140 type FunctionSlugResponse struct { 141 Body *string `json:"body,omitempty"` 142 CreatedAt float32 `json:"created_at"` 143 Id string `json:"id"` 144 ImportMap *bool `json:"import_map,omitempty"` 145 Name string `json:"name"` 146 Slug string `json:"slug"` 147 Status FunctionSlugResponseStatus `json:"status"` 148 UpdatedAt float32 `json:"updated_at"` 149 VerifyJwt *bool `json:"verify_jwt,omitempty"` 150 Version float32 `json:"version"` 151 } 152 153 // FunctionSlugResponseStatus defines model for FunctionSlugResponse.Status. 154 type FunctionSlugResponseStatus string 155 156 // NetworkBanResponse defines model for NetworkBanResponse. 157 type NetworkBanResponse struct { 158 BannedIpv4Addresses []string `json:"banned_ipv4_addresses"` 159 } 160 161 // NetworkRestrictionsRequest defines model for NetworkRestrictionsRequest. 162 type NetworkRestrictionsRequest struct { 163 DbAllowedCidrs []string `json:"dbAllowedCidrs"` 164 } 165 166 // NetworkRestrictionsResponse defines model for NetworkRestrictionsResponse. 167 type NetworkRestrictionsResponse struct { 168 Config NetworkRestrictionsRequest `json:"config"` 169 Entitlement NetworkRestrictionsResponseEntitlement `json:"entitlement"` 170 Status NetworkRestrictionsResponseStatus `json:"status"` 171 } 172 173 // NetworkRestrictionsResponseEntitlement defines model for NetworkRestrictionsResponse.Entitlement. 174 type NetworkRestrictionsResponseEntitlement string 175 176 // NetworkRestrictionsResponseStatus defines model for NetworkRestrictionsResponse.Status. 177 type NetworkRestrictionsResponseStatus string 178 179 // OrganizationResponse defines model for OrganizationResponse. 180 type OrganizationResponse struct { 181 Id string `json:"id"` 182 Name string `json:"name"` 183 } 184 185 // PgsodiumConfigResponse defines model for PgsodiumConfigResponse. 186 type PgsodiumConfigResponse struct { 187 RootKey string `json:"root_key"` 188 } 189 190 // PostgrestConfigResponse defines model for PostgrestConfigResponse. 191 type PostgrestConfigResponse struct { 192 DbExtraSearchPath string `json:"db_extra_search_path"` 193 DbSchema string `json:"db_schema"` 194 MaxRows int `json:"max_rows"` 195 } 196 197 // ProjectResponse defines model for ProjectResponse. 198 type ProjectResponse struct { 199 CreatedAt string `json:"created_at"` 200 Database *DatabaseResponse `json:"database,omitempty"` 201 Id string `json:"id"` 202 Name string `json:"name"` 203 OrganizationId string `json:"organization_id"` 204 Region string `json:"region"` 205 } 206 207 // RemoveNetworkBanRequest defines model for RemoveNetworkBanRequest. 208 type RemoveNetworkBanRequest struct { 209 Ipv4Addresses []string `json:"ipv4_addresses"` 210 } 211 212 // SecretResponse defines model for SecretResponse. 213 type SecretResponse struct { 214 Name string `json:"name"` 215 Value string `json:"value"` 216 } 217 218 // SslEnforcementRequest defines model for SslEnforcementRequest. 219 type SslEnforcementRequest struct { 220 RequestedConfig SslEnforcements `json:"requestedConfig"` 221 } 222 223 // SslEnforcementResponse defines model for SslEnforcementResponse. 224 type SslEnforcementResponse struct { 225 AppliedSuccessfully bool `json:"appliedSuccessfully"` 226 CurrentConfig SslEnforcements `json:"currentConfig"` 227 } 228 229 // SslEnforcements defines model for SslEnforcements. 230 type SslEnforcements struct { 231 Database bool `json:"database"` 232 } 233 234 // SubdomainAvailabilityResponse defines model for SubdomainAvailabilityResponse. 235 type SubdomainAvailabilityResponse struct { 236 Available bool `json:"available"` 237 } 238 239 // TypescriptResponse defines model for TypescriptResponse. 240 type TypescriptResponse struct { 241 Types string `json:"types"` 242 } 243 244 // UpdateCustomHostnameBody defines model for UpdateCustomHostnameBody. 245 type UpdateCustomHostnameBody struct { 246 CustomHostname string `json:"custom_hostname"` 247 } 248 249 // UpdateCustomHostnameResponse defines model for UpdateCustomHostnameResponse. 250 type UpdateCustomHostnameResponse struct { 251 CustomHostname string `json:"custom_hostname"` 252 Data map[string]interface{} `json:"data"` 253 Status UpdateCustomHostnameResponseStatus `json:"status"` 254 } 255 256 // UpdateCustomHostnameResponseStatus defines model for UpdateCustomHostnameResponse.Status. 257 type UpdateCustomHostnameResponseStatus string 258 259 // UpdateFunctionBody defines model for UpdateFunctionBody. 260 type UpdateFunctionBody struct { 261 Body *string `json:"body,omitempty"` 262 Name *string `json:"name,omitempty"` 263 VerifyJwt *bool `json:"verify_jwt,omitempty"` 264 } 265 266 // UpdatePgsodiumConfigBody defines model for UpdatePgsodiumConfigBody. 267 type UpdatePgsodiumConfigBody struct { 268 RootKey string `json:"root_key"` 269 } 270 271 // UpdatePostgrestConfigBody defines model for UpdatePostgrestConfigBody. 272 type UpdatePostgrestConfigBody struct { 273 DbExtraSearchPath *string `json:"db_extra_search_path,omitempty"` 274 DbSchema *string `json:"db_schema,omitempty"` 275 MaxRows *int `json:"max_rows,omitempty"` 276 } 277 278 // VanitySubdomainBody defines model for VanitySubdomainBody. 279 type VanitySubdomainBody struct { 280 VanitySubdomain string `json:"vanity_subdomain"` 281 } 282 283 // VanitySubdomainConfigResponse defines model for VanitySubdomainConfigResponse. 284 type VanitySubdomainConfigResponse struct { 285 CustomDomain *string `json:"custom_domain,omitempty"` 286 Status VanitySubdomainConfigResponseStatus `json:"status"` 287 } 288 289 // VanitySubdomainConfigResponseStatus defines model for VanitySubdomainConfigResponse.Status. 290 type VanitySubdomainConfigResponseStatus string 291 292 // CreateFunctionParams defines parameters for CreateFunction. 293 type CreateFunctionParams struct { 294 Slug *string `form:"slug,omitempty" json:"slug,omitempty"` 295 Name *string `form:"name,omitempty" json:"name,omitempty"` 296 VerifyJwt *bool `form:"verify_jwt,omitempty" json:"verify_jwt,omitempty"` 297 ImportMap *bool `form:"import_map,omitempty" json:"import_map,omitempty"` 298 } 299 300 // UpdateFunctionParams defines parameters for UpdateFunction. 301 type UpdateFunctionParams struct { 302 Slug *string `form:"slug,omitempty" json:"slug,omitempty"` 303 Name *string `form:"name,omitempty" json:"name,omitempty"` 304 VerifyJwt *bool `form:"verify_jwt,omitempty" json:"verify_jwt,omitempty"` 305 ImportMap *bool `form:"import_map,omitempty" json:"import_map,omitempty"` 306 } 307 308 // DeleteSecretsJSONBody defines parameters for DeleteSecrets. 309 type DeleteSecretsJSONBody = []string 310 311 // CreateSecretsJSONBody defines parameters for CreateSecrets. 312 type CreateSecretsJSONBody = []CreateSecretBody 313 314 // GetTypescriptTypesParams defines parameters for GetTypescriptTypes. 315 type GetTypescriptTypesParams struct { 316 IncludedSchemas *string `form:"included_schemas,omitempty" json:"included_schemas,omitempty"` 317 } 318 319 // CreateOrganizationJSONRequestBody defines body for CreateOrganization for application/json ContentType. 320 type CreateOrganizationJSONRequestBody = CreateOrganizationBody 321 322 // CreateProjectJSONRequestBody defines body for CreateProject for application/json ContentType. 323 type CreateProjectJSONRequestBody = CreateProjectBody 324 325 // CreateCustomHostnameConfigJSONRequestBody defines body for CreateCustomHostnameConfig for application/json ContentType. 326 type CreateCustomHostnameConfigJSONRequestBody = UpdateCustomHostnameBody 327 328 // CreateFunctionJSONRequestBody defines body for CreateFunction for application/json ContentType. 329 type CreateFunctionJSONRequestBody = CreateFunctionBody 330 331 // UpdateFunctionJSONRequestBody defines body for UpdateFunction for application/json ContentType. 332 type UpdateFunctionJSONRequestBody = UpdateFunctionBody 333 334 // RemoveNetworkBanJSONRequestBody defines body for RemoveNetworkBan for application/json ContentType. 335 type RemoveNetworkBanJSONRequestBody = RemoveNetworkBanRequest 336 337 // ApplyNetworkRestrictionsJSONRequestBody defines body for ApplyNetworkRestrictions for application/json ContentType. 338 type ApplyNetworkRestrictionsJSONRequestBody = NetworkRestrictionsRequest 339 340 // UpdateConfigJSONRequestBody defines body for UpdateConfig for application/json ContentType. 341 type UpdateConfigJSONRequestBody = UpdatePgsodiumConfigBody 342 343 // UpdatePostgRESTConfigJSONRequestBody defines body for UpdatePostgRESTConfig for application/json ContentType. 344 type UpdatePostgRESTConfigJSONRequestBody = UpdatePostgrestConfigBody 345 346 // DeleteSecretsJSONRequestBody defines body for DeleteSecrets for application/json ContentType. 347 type DeleteSecretsJSONRequestBody = DeleteSecretsJSONBody 348 349 // CreateSecretsJSONRequestBody defines body for CreateSecrets for application/json ContentType. 350 type CreateSecretsJSONRequestBody = CreateSecretsJSONBody 351 352 // UpdateSslEnforcementConfigJSONRequestBody defines body for UpdateSslEnforcementConfig for application/json ContentType. 353 type UpdateSslEnforcementConfigJSONRequestBody = SslEnforcementRequest 354 355 // ActivateVanitySubdomainPleaseJSONRequestBody defines body for ActivateVanitySubdomainPlease for application/json ContentType. 356 type ActivateVanitySubdomainPleaseJSONRequestBody = VanitySubdomainBody 357 358 // CheckVanitySubdomainAvailabilityJSONRequestBody defines body for CheckVanitySubdomainAvailability for application/json ContentType. 359 type CheckVanitySubdomainAvailabilityJSONRequestBody = VanitySubdomainBody